1
0
mirror of https://github.com/taigaio/taiga-front synced 2025-10-05 23:32:47 +02:00
Files
taiga-front/elements.js
2023-08-17 08:15:43 +02:00

1 line
1.6 MiB

!function(e){function r(r){for(var n,l,f=r[0],i=r[1],p=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(a&&a(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++)0!==o[t[f]]&&(n=!1);n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={0:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,(function(r){return e[r]}).bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var p=0;p<f.length;p++)r(f[p]);var a=i;t()}([]);!function(){function t(t,n){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}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,c=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+2oP":function(t,e,n){"use strict";var r=n("I+eb"),o=n("hh1v"),i=n("6LWA"),a=n("I8vh"),c=n("UMSQ"),u=n("/GqU"),s=n("hBjN"),l=n("tiKp"),f=n("Hd5f"),p=n("rkAj"),h=f("slice"),v=p("slice",{ACCESSORS:!0,0:0,1:2}),d=l("species"),g=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!h||!v},{slice:function(t,e){var n,r,l,f=u(this),p=c(f.length),h=a(t,p),v=a(void 0===e?p:e,p);if(i(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[d])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(f,h,v);for(r=new(void 0===n?Array:n)(y(v-h,0)),l=0;h<v;h++,l++)h in f&&s(r,l,f[h]);return r.length=l,r}})},"/5zm":function(t,e,n){var r=n("I+eb"),o=n("jrUv"),i=Math.cosh,a=Math.abs,c=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(t){var e=o(a(t)-1)+1;return(e+1/(e*c*c))*(c/2)}})},"/GqU":function(t,e,n){var r=n("RK3t"),o=n("HYAF");t.exports=function(t){return r(o(t))}},"/b8u":function(t,e,n){var r=n("STAE");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"/byt":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"/qmn":function(t,e,n){var r=n("2oRo");t.exports=r.Promise},"07d7":function(t,e,n){var r=n("AO7/"),o=n("busE"),i=n("sEFX");r||o(Object.prototype,"toString",i,{unsafe:!0})},"0BK2":function(t,e){t.exports={}},"0Dky":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"0GbY":function(t,e,n){var r=n("Qo9l"),o=n("2oRo"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},"0eef":function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},"0oug":function(t,e,n){n("dG/n")("iterator")},"0rvr":function(t,e,n){var r=n("glrk"),o=n("O741");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},"14Sl":function(t,e,n){"use strict";n("rB9j");var r=n("busE"),o=n("0Dky"),i=n("tiKp"),a=n("kmMV"),c=n("kRJp"),u=i("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=i("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),h=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,f){var v=i(t),d=!o((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[v]=/./[v]),n.exec=function(){return e=!0,null},n[v](""),!e}));if(!d||!g||"replace"===t&&(!s||!l||p)||"split"===t&&!h){var y=/./[v],m=n(v,""[t],(function(t,e,n,r,o){return e.exec===a?d&&!o?{done:!0,value:y.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=m[1];r(String.prototype,t,m[0]),r(RegExp.prototype,v,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}f&&c(RegExp.prototype[v],"sham",!0)}},"1E5z":function(t,e,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},"1Y/n":function(t,e,n){var r=n("HAuM"),o=n("ewvW"),i=n("RK3t"),a=n("UMSQ"),c=function(t){return function(e,n,c,u){r(n);var s=o(e),l=i(s),f=a(s.length),p=t?f-1:0,h=t?-1:1;if(c<2)for(;;){if(p in l){u=l[p],p+=h;break}if(p+=h,t?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:f>p;p+=h)p in l&&(u=n(u,l[p],p,s));return u}};t.exports={left:c(!1),right:c(!0)}},2:function(t,e,n){n("mRIq"),n("R0gw"),t.exports=n("hN/g")},"2A+d":function(t,e,n){var r=n("I+eb"),o=n("/GqU"),i=n("UMSQ");r({target:"String",stat:!0},{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],c=0;n>c;)a.push(String(e[c++])),c<r&&a.push(String(arguments[c]));return a.join("")}})},"2B1R":function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").map,i=n("Hd5f"),a=n("rkAj"),c=i("map"),u=a("map");r({target:"Array",proto:!0,forced:!c||!u},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"2oRo":function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},"33Wh":function(t,e,n){var r=n("yoRg"),o=n("eDl+");t.exports=Object.keys||function(t){return r(t,o)}},"3I1R":function(t,e,n){n("dG/n")("hasInstance")},"3KgV":function(t,e,n){var r=n("I+eb"),o=n("uy83"),i=n("0Dky"),a=n("hh1v"),c=n("8YOa").onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(t){return u&&a(t)?u(c(t)):t}})},"3bBZ":function(t,e,n){var r=n("2oRo"),o=n("/byt"),i=n("4mDm"),a=n("kRJp"),c=n("tiKp"),u=c("iterator"),s=c("toStringTag"),l=i.values;for(var f in o){var p=r[f],h=p&&p.prototype;if(h){if(h[u]!==l)try{a(h,u,l)}catch(d){h[u]=l}if(h[s]||a(h,s,f),o[f])for(var v in i)if(h[v]!==i[v])try{a(h,v,i[v])}catch(d){h[v]=i[v]}}}},"4Brf":function(t,e,n){"use strict";var r=n("I+eb"),o=n("g6v/"),i=n("2oRo"),a=n("UTVS"),c=n("hh1v"),u=n("m/L8").f,s=n("6JNq"),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},p=function t(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),n=this instanceof t?new l(e):void 0===e?l():l(e);return""===e&&(f[n]=!0),n};s(p,l);var h=p.prototype=l.prototype;h.constructor=p;var v=h.toString,d="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(h,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=v.call(t);if(a(f,t))return"";var n=d?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},"4WOD":function(t,e,n){var r=n("UTVS"),o=n("ewvW"),i=n("93I0"),a=n("4Xet"),c=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"4Xet":function(t,e,n){var r=n("0Dky");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"4h0Y":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(t){return!i(t)||!!a&&a(t)}})},"4l63":function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({global:!0,forced:parseInt!=o},{parseInt:o})},"4mDm":function(t,e,n){"use strict";var r=n("/GqU"),o=n("RNIs"),i=n("P4y1"),a=n("afO8"),c=n("fdAy"),u=a.set,s=a.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},"4oU/":function(t,e,n){var r=n("2oRo").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},"4syw":function(t,e,n){var r=n("busE");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},"5D5o":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},"5DmW":function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("/GqU"),a=n("Bs8V").f,c=n("g6v/"),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!c||u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},"5Tg+":function(t,e,n){var r=n("tiKp");e.f=r},"5Yz+":function(t,e,n){"use strict";var r=n("/GqU"),o=n("ppGB"),i=n("UMSQ"),a=n("pkCn"),c=n("rkAj"),u=Math.min,s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),p=c("indexOf",{ACCESSORS:!0,1:0});t.exports=!l&&f&&p?s:function(t){if(l)return s.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}},"5mdu":function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"5s+n":function(t,e,n){"use strict";var r,o,i,a,c=n("I+eb"),u=n("xDBR"),s=n("2oRo"),l=n("0GbY"),f=n("/qmn"),p=n("busE"),h=n("4syw"),v=n("1E5z"),d=n("JiZb"),g=n("hh1v"),y=n("HAuM"),m=n("GarU"),b=n("xrYK"),E=n("iSVu"),k=n("ImZN"),T=n("HH4o"),w=n("SEBh"),S=n("LPSS").set,x=n("tXUg"),_=n("zfnd"),O=n("RN6c"),M=n("8GlL"),I=n("5mdu"),L=n("afO8"),D=n("lMq5"),A=n("tiKp"),P=n("LQDL"),R=A("species"),j="Promise",N=L.get,C=L.set,H=L.getterFor(j),F=f,Z=s.TypeError,z=s.document,U=s.process,W=l("fetch"),G=M.f,B=G,V="process"==b(U),K=!!(z&&z.createEvent&&s.dispatchEvent),Y=D(j,(function(){if(E(F)===String(F)){if(66===P)return!0;if(!V&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!F.prototype.finally)return!0;if(P>=51&&/native code/.test(F))return!1;var t=F.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[R]=e,!(t.then((function(){}))instanceof e)})),q=Y||!T((function(t){F.all(t).catch((function(){}))})),X=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},J=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;x((function(){for(var o=e.value,i=1==e.state,a=0;r.length>a;){var c,u,s,l=r[a++],f=i?l.ok:l.fail,p=l.resolve,h=l.reject,v=l.domain;try{f?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===f?c=o:(v&&v.enter(),c=f(o),v&&(v.exit(),s=!0)),c===l.promise?h(Z("Promise-chain cycle")):(u=X(c))?u.call(c,p,h):p(c)):h(o)}catch(d){v&&!s&&v.exit(),h(d)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&$(t,e)}))}},Q=function(t,e,n){var r,o;K?((r=z.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},(o=s["on"+t])?o(r):"unhandledrejection"===t&&O("Unhandled promise rejection",n)},$=function(t,e){S.call(s,(function(){var n,r=e.value;if(tt(e)&&(n=I((function(){V?U.emit("unhandledRejection",r,t):Q("unhandledrejection",t,r)})),e.rejection=V||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){S.call(s,(function(){V?U.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(o){t(e,n,o,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,J(t,e,!0))},ot=function t(e,n,r,o){if(!n.done){n.done=!0,o&&(n=o);try{if(e===r)throw Z("Promise can't be resolved itself");var i=X(r);i?x((function(){var o={done:!1};try{i.call(r,nt(t,e,o,n),nt(rt,e,o,n))}catch(a){rt(e,o,a,n)}})):(n.value=r,n.state=1,J(e,n,!1))}catch(a){rt(e,{done:!1},a,n)}}};Y&&(F=function(t){m(this,F,j),y(t),r.call(this);var e=N(this);try{t(nt(ot,this,e),nt(rt,this,e))}catch(n){rt(this,e,n)}},(r=function(t){C(this,{type:j,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(F.prototype,{then:function(t,e){var n=H(this),r=G(w(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=V?U.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=N(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(rt,t,e)},M.f=G=function(t){return t===F||t===i?new o(t):B(t)},u||"function"!=typeof f||(a=f.prototype.then,p(f.prototype,"then",(function(t,e){var n=this;return new F((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof W&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return _(F,W.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:Y},{Promise:F}),v(F,j,!1,!0),d(j),i=l(j),c({target:j,stat:!0,forced:Y},{reject:function(t){var e=G(this);return e.reject.call(void 0,t),e.promise}}),c({target:j,stat:!0,forced:u||Y},{resolve:function(t){return _(u&&this===i?F:this,t)}}),c({target:j,stat:!0,forced:q},{all:function(t){var e=this,n=G(e),r=n.resolve,o=n.reject,i=I((function(){var n=y(e.resolve),i=[],a=0,c=1;k(t,(function(t){var u=a++,s=!1;i.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=G(e),r=n.reject,o=I((function(){var o=y(e.resolve);k(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},"5uH8":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},"6JNq":function(t,e,n){var r=n("UTVS"),o=n("Vu81"),i=n("Bs8V"),a=n("m/L8");t.exports=function(t,e){for(var n=o(e),c=a.f,u=i.f,s=0;s<n.length;s++){var l=n[s];r(t,l)||c(t,l,u(e,l))}}},"6LWA":function(t,e,n){var r=n("xrYK");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"6VoE":function(t,e,n){var r=n("tiKp"),o=n("P4y1"),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},"6hpn":function(t,e,n){n("Uydy"),n("eajv"),n("n/mU"),n("PqOI"),n("QNnp"),n("/5zm"),n("CsgD"),n("9mRW"),n("QFcT"),n("vAFs"),n("a5NK"),n("yiG3"),n("kNcU"),n("KvGi"),n("AmFO"),n("eJiR"),n("I9xj"),n("tl/u");var r=n("Qo9l");t.exports=r.Math},"7+kd":function(t,e,n){n("dG/n")("isConcatSpreadable")},"7+zs":function(t,e,n){var r=n("kRJp"),o=n("UesL"),i=n("tiKp")("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},"7sbD":function(t,e,n){n("qePV"),n("NbN+"),n("8AyJ"),n("i6QF"),n("kSko"),n("WDsR"),n("r/Vq"),n("5uH8"),n("w1rZ"),n("JevA"),n("toAj"),n("VC3L");var r=n("Qo9l");t.exports=r.Number},"8AyJ":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{isFinite:n("4oU/")})},"8GlL":function(t,e,n){"use strict";var r=n("HAuM"),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},"8YOa":function(t,e,n){var r=n("0BK2"),o=n("hh1v"),i=n("UTVS"),a=n("m/L8").f,c=n("kOOl"),u=n("uy83"),s=c("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(t){a(t,s,{value:{objectID:"O"+ ++l,weakData:{}}})},h=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,s)){if(!f(t))return"F";if(!e)return"E";p(t)}return t[s].objectID},getWeakData:function(t,e){if(!i(t,s)){if(!f(t))return!0;if(!e)return!1;p(t)}return t[s].weakData},onFreeze:function(t){return u&&h.REQUIRED&&f(t)&&!i(t,s)&&p(t),t}};r[s]=!0},"90hW":function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},"93I0":function(t,e,n){var r=n("VpIT"),o=n("kOOl"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},"9LPj":function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("ewvW"),a=n("wE6v");r({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=i(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},"9N29":function(t,e,n){"use strict";var r=n("I+eb"),o=n("1Y/n").right,i=n("pkCn"),a=n("rkAj"),c=i("reduceRight"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduceRight:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"9bJ7":function(t,e,n){"use strict";var r=n("I+eb"),o=n("ZUd8").codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return o(this,t)}})},"9d/t":function(t,e,n){var r=n("AO7/"),o=n("xrYK"),i=n("tiKp")("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},"9mRW":function(t,e,n){n("I+eb")({target:"Math",stat:!0},{fround:n("vo4V")})},"9tb/":function(t,e,n){var r=n("I+eb"),o=n("I8vh"),i=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},A2ZE:function(t,e,n){var r=n("HAuM");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"AO7/":function(t,e,n){var r={};r[n("tiKp")("toStringTag")]="z",t.exports="[object z]"===String(r)},AmFO:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("jrUv"),a=Math.abs,c=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(i(t)-i(-t))/2:(c(t-1)-c(-t-1))*(u/2)}})},BNMt:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("blink")},{blink:function(){return o(this,"blink","","")}})},BTho:function(t,e,n){"use strict";var r=n("HAuM"),o=n("hh1v"),i=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),a=function r(){var o=n.concat(i.call(arguments));return this instanceof r?c(e,o.length,o):e.apply(t,o)};return o(e.prototype)&&(a.prototype=e.prototype),a}},"BX/b":function(t,e,n){var r=n("/GqU"),o=n("JBy8").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(e){return a.slice()}}(t):o(r(t))}},Bs8V:function(t,e,n){var r=n("g6v/"),o=n("0eef"),i=n("XGwC"),a=n("/GqU"),c=n("wE6v"),u=n("UTVS"),s=n("DPsx"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=c(e,!0),s)try{return l(t,e)}catch(n){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},CsgD:function(t,e,n){var r=n("I+eb"),o=n("jrUv");r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},DEfu:function(t,e,n){var r=n("2oRo");n("1E5z")(r.JSON,"JSON",!0)},DMt2:function(t,e,n){var r=n("UMSQ"),o=n("EUja"),i=n("HYAF"),a=Math.ceil,c=function(t){return function(e,n,c){var u,s,l=String(i(e)),f=l.length,p=void 0===c?" ":String(c),h=r(n);return h<=f||""==p?l:((s=o.call(p,a((u=h-f)/p.length))).length>u&&(s=s.slice(0,u)),t?l+s:s+l)}};t.exports={start:c(!1),end:c(!0)}},DPsx:function(t,e,n){var r=n("g6v/"),o=n("0Dky"),i=n("zBJ4");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},DQNa:function(t,e,n){var r=n("busE"),o=Date.prototype,i=o.toString,a=o.getTime;new Date(NaN)+""!="Invalid Date"&&r(o,"toString",(function(){var t=a.call(this);return t==t?i.call(this):"Invalid Date"}))},E5NM:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("big")},{big:function(){return o(this,"big","","")}})},E9XD:function(t,e,n){"use strict";var r=n("I+eb"),o=n("1Y/n").left,i=n("pkCn"),a=n("rkAj"),c=i("reduce"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},ENF9:function(t,e,n){"use strict";var r,o=n("2oRo"),i=n("4syw"),a=n("8YOa"),c=n("bWFh"),u=n("rKzb"),s=n("hh1v"),l=n("afO8").enforce,f=n("f5p1"),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},d=t.exports=c("WeakMap",v,u);if(f&&p){r=u.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var g=d.prototype,y=g.delete,m=g.has,b=g.get,E=g.set;i(g,{delete:function(t){if(s(t)&&!h(t)){var e=l(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.delete(t)}return y.call(this,t)},has:function(t){if(s(t)&&!h(t)){var e=l(this);return e.frozen||(e.frozen=new r),m.call(this,t)||e.frozen.has(t)}return m.call(this,t)},get:function(t){if(s(t)&&!h(t)){var e=l(this);return e.frozen||(e.frozen=new r),m.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(s(t)&&!h(t)){var n=l(this);n.frozen||(n.frozen=new r),m.call(this,t)?E.call(this,t,e):n.frozen.set(t,e)}else E.call(this,t,e);return this}})}},EUja:function(t,e,n){"use strict";var r=n("ppGB"),o=n("HYAF");t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},EnZy:function(t,e,n){"use strict";var r=n("14Sl"),o=n("ROdP"),i=n("glrk"),a=n("HYAF"),c=n("SEBh"),u=n("iqWW"),s=n("UMSQ"),l=n("FMNM"),f=n("kmMV"),p=n("0Dky"),h=[].push,v=Math.min,d=!p((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var c,u,s,l=[],p=0,v=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(c=f.call(v,r))&&!((u=v.lastIndex)>p&&(l.push(r.slice(p,c.index)),c.length>1&&c.index<r.length&&h.apply(l,c.slice(1)),s=c[0].length,p=u,l.length>=i));)v.lastIndex===c.index&&v.lastIndex++;return p===r.length?!s&&v.test("")||l.push(""):l.push(r.slice(p)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var a=n(r,t,this,o,r!==e);if(a.done)return a.value;var f=i(t),p=String(this),h=c(f,RegExp),g=f.unicode,y=new h(d?f:"^(?:"+f.source+")",(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(d?"y":"g")),m=void 0===o?4294967295:o>>>0;if(0===m)return[];if(0===p.length)return null===l(y,p)?[p]:[];for(var b=0,E=0,k=[];E<p.length;){y.lastIndex=d?E:0;var T,w=l(y,d?p:p.slice(E));if(null===w||(T=v(s(y.lastIndex+(d?0:E)),p.length))===b)E=u(p,E,g);else{if(k.push(p.slice(b,E)),k.length===m)return k;for(var S=1;S<=w.length-1;S++)if(k.push(w[S]),k.length===m)return k;E=b=T}}return k.push(p.slice(b)),k}]}),!d)},Ep9I:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},ExoC:function(t,e,n){n("I+eb")({target:"Object",stat:!0},{setPrototypeOf:n("0rvr")})},F8JR:function(t,e,n){"use strict";var r=n("tycR").forEach,o=n("pkCn"),i=n("rkAj"),a=o("forEach"),c=i("forEach");t.exports=a&&c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},FF6l:function(t,e,n){"use strict";var r=n("ewvW"),o=n("I8vh"),i=n("UMSQ"),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),c=i(n.length),u=o(t,c),s=o(e,c),l=arguments.length>2?arguments[2]:void 0,f=a((void 0===l?c:o(l,c))-s,c-u),p=1;for(s<u&&u<s+f&&(p=-1,s+=f-1,u+=f-1);f-- >0;)s in n?n[u]=n[s]:delete n[u],u+=p,s+=p;return n}},FMNM:function(t,e,n){var r=n("xrYK"),o=n("kmMV");t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},FZtP:function(t,e,n){var r=n("2oRo"),o=n("/byt"),i=n("F8JR"),a=n("kRJp");for(var c in o){var u=r[c],s=u&&u.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(l){s.forEach=i}}},"G+Rx":function(t,e,n){var r=n("0GbY");t.exports=r("document","documentElement")},GKVU:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},GRPF:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},GXvd:function(t,e,n){n("dG/n")("species")},GarU:function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},H0pb:function(t,e,n){n("ma9I"),n("07d7"),n("pNMO"),n("tjZM"),n("4Brf"),n("3I1R"),n("7+kd"),n("0oug"),n("KhsS"),n("jt2F"),n("gOCb"),n("a57n"),n("GXvd"),n("I1Gw"),n("gXIK"),n("lEou"),n("gbiT"),n("I9xj"),n("DEfu");var r=n("Qo9l");t.exports=r.Symbol},HAuM:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},HH4o:function(t,e,n){var r=n("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(c){}return n}},HNyW:function(t,e,n){var r=n("NC/Y");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},HRxU:function(t,e,n){var r=n("I+eb"),o=n("g6v/");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n("N+g0")})},HYAF:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},Hd5f:function(t,e,n){var r=n("0Dky"),o=n("tiKp"),i=n("LQDL"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},HsHA:function(t,e){var n=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},"I+eb":function(t,e,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("kRJp"),a=n("busE"),c=n("zk60"),u=n("6JNq"),s=n("lMq5");t.exports=function(t,e){var n,l,f,p,h,v=t.target,d=t.global,g=t.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(l in e){if(p=e[l],f=t.noTargetGet?(h=o(n,l))&&h.value:n[l],!s(d?l:v+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,t)}}},I1Gw:function(t,e,n){n("dG/n")("split")},I8vh:function(t,e,n){var r=n("ppGB"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},I9xj:function(t,e,n){n("1E5z")(Math,"Math",!0)},ImZN:function(t,e,n){var r=n("glrk"),o=n("6VoE"),i=n("UMSQ"),a=n("A2ZE"),c=n("NaFW"),u=n("m92n"),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,l,f){var p,h,v,d,g,y,m,b=a(e,n,l?2:1);if(f)p=t;else{if("function"!=typeof(h=c(t)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(t.length);d>v;v++)if((g=l?b(r(m=t[v])[0],m[1]):b(t[v]))&&g instanceof s)return g;return new s(!1)}p=h.call(t)}for(y=p.next;!(m=y.call(p)).done;)if("object"==typeof(g=u(p,b,m.value,l))&&g&&g instanceof s)return g;return new s(!1)}).stop=function(t){return new s(!0,t)}},IxXR:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("strike")},{strike:function(){return o(this,"strike","","")}})},J30X:function(t,e,n){n("I+eb")({target:"Array",stat:!0},{isArray:n("6LWA")})},JBy8:function(t,e,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},JTJg:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WjRb"),i=n("HYAF");r({target:"String",proto:!0,forced:!n("qxPZ")("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},JevA:function(t,e,n){var r=n("I+eb"),o=n("wg0c");r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},JfAA:function(t,e,n){"use strict";var r=n("busE"),o=n("glrk"),i=n("0Dky"),a=n("rW0t"),c=RegExp.prototype,u=c.toString;(i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))||"toString"!=u.name)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in c)?a.call(t):n)}),{unsafe:!0})},JiZb:function(t,e,n){"use strict";var r=n("0GbY"),o=n("m/L8"),i=n("tiKp"),a=n("g6v/"),c=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[c]&&(0,o.f)(e,c,{configurable:!0,get:function(){return this}})}},KJ4T:function(t,e){!function(t,e){"use strict";function n(){var t=x.splice(0,x.length);for(Jt=0;t.length;)t.shift().call(null,t.shift())}function r(t,e){for(var n=0,r=t.length;n<r;n++)v(t[n],e)}function o(t){return function(e){Nt(e)&&(v(e,t),it.length&&r(e.querySelectorAll(it),t))}}function i(t){var e=Ut.call(t,"is"),n=t.nodeName.toUpperCase(),r=ct.call(rt,e?tt+e.toUpperCase():$+n);return e&&-1<r&&!a(n,e)?-1:r}function a(t,e){return-1<it.indexOf(t+'[is="'+e+'"]')}function c(t){var e=t.currentTarget,n=t.attrChange,r=t.attrName,o=t.target,i=t[Y]||2,a=t[q]||3;!re||o&&o!==e||!e[U]||"style"===r||t.prevValue===t.newValue&&(""!==t.newValue||n!==i&&n!==a)||e[U](r,n===i?null:t.prevValue,n===a?null:t.newValue)}function u(t){var e=o(t);return function(t){x.push(e,t.target),Jt&&clearTimeout(Jt),Jt=setTimeout(n,1)}}function s(t){ne&&(ne=!1,t.currentTarget.removeEventListener(J,s)),it.length&&r((t.target||T).querySelectorAll(it),t.detail===Z?Z:H),Rt&&function(){for(var t,e=0,n=Ct.length;e<n;e++)at.contains(t=Ct[e])||(n--,Ct.splice(e--,1),v(t,Z))}()}function l(t,e){var n=this;Bt.call(n,t,e),_.call(n,{target:n})}function f(t,e,n){var r=e.apply(t,n),o=i(r);return-1<o&&A(r,ot[o]),n.pop()&&it.length&&function(t){for(var e,n=0,r=t.length;n<r;n++)A(e=t[n],ot[i(e)])}(r.querySelectorAll(it)),r}function p(t,e){Lt(t,e),I?I.observe(t,qt):(ee&&(t.setAttribute=l,t[N]=M(t),t[C](Q,_)),t[C](X,c)),t[V]&&re&&(t.created=!0,t[V](),t.created=!1)}function h(t){throw new Error("A "+t+" type is already registered")}function v(t,e){var n,r,o=i(t);-1<o&&!Zt.call(t,"TEMPLATE")&&(D(t,ot[o]),o=0,e!==H||t[H]?e!==Z||t[Z]||(t[H]=!1,t[Z]=!0,r="disconnected",o=1):(t[Z]=!1,t[H]=!0,r="connected",o=1,Rt&&ct.call(Ct,t)<0&&Ct.push(t)),o&&(n=t[e+F]||t[r+F])&&n.call(t))}function d(){}function g(t,e,n){var r=n&&n[z]||"",o=e.prototype,i=It(o),a=e.observedAttributes||pt,c={prototype:i};jt(i,V,{value:function(){if(St)St=!1;else if(!this[mt]){this[mt]=!0,new e(this),o[V]&&o[V].call(this);var t=xt[Ot.get(e)];(!Et||t.create.length>1)&&b(this)}}}),jt(i,U,{value:function(t){-1<ct.call(a,t)&&o[U]&&o[U].apply(this,arguments)}}),o[G]&&jt(i,W,{value:o[G]}),o[B]&&jt(i,K,{value:o[B]}),r&&(c[z]=r),t=t.toUpperCase(),xt[t]={constructor:e,create:r?[r,Mt(t)]:[t]},Ot.set(e,t),T[R](t.toLowerCase(),c),E(t),_t[t].r()}function y(t){var e=xt[t.toUpperCase()];return e&&e.constructor}function m(t){return"string"==typeof t?t:t&&t.is||""}function b(t){for(var e,n=t[U],r=n?t.attributes:pt,o=r.length;o--;)n.call(t,(e=r[o]).name||e.nodeName,null,e.value||e.nodeValue)}function E(t){return(t=t.toUpperCase())in _t||(_t[t]={},_t[t].p=new wt((function(e){_t[t].r=e}))),_t[t].p}function k(){bt&&delete t.customElements,ft(t,"customElements",{configurable:!0,value:new d}),ft(t,"CustomElementRegistry",{configurable:!0,value:d});for(var e=S.get(/^HTML[A-Z]*[a-z]/),n=e.length;n--;function(e){var n=t[e];if(n){t[e]=function(t){var e,r;return t||(t=this),t[mt]||(St=!0,e=xt[Ot.get(t.constructor)],(t=(r=Et&&1===e.create.length)?Reflect.construct(n,pt,e.constructor):T.createElement.apply(T,e.create))[mt]=!0,St=!1,r||b(t)),t},t[e].prototype=n.prototype;try{n.prototype.constructor=t[e]}catch(r){ft(n,mt,{value:t[e]})}}}(e[n]));T.createElement=function(t,e){var n=m(e);return n?Yt.call(this,t,Mt(n)):Yt.call(this,t)},Qt||(te=!0,T[R](""))}var T=t.document,w=t.Object,S=function(t){var e,n,r,o,i=/^[A-Z]+[a-z]/,a=function(t,e){(e=e.toLowerCase())in c||(c[t]=(c[t]||[]).concat(e),c[e]=c[e.toUpperCase()]=t)},c=(w.create||w)(null),u={};for(n in t)for(o in t[n])for(c[o]=r=t[n][o],e=0;e<r.length;e++)c[r[e].toLowerCase()]=c[r[e].toUpperCase()]=o;return u.get=function(t){return"string"==typeof t?c[t]||(i.test(t)?[]:""):function(t){var e,n=[];for(e in c)t.test(e)&&n.push(e);return n}(t)},u.set=function(t,e){return i.test(t)?a(t,e):a(e,t),u},u}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof e&&(e={type:e||"auto"});var x,_,O,M,I,L,D,A,P,R="registerElement",j=1e5*t.Math.random()>>0,N="__"+R+j,C="addEventListener",H="attached",F="Callback",Z="detached",z="extends",U="attributeChanged"+F,W=H+F,G="connected"+F,B="disconnected"+F,V="created"+F,K=Z+F,Y="ADDITION",q="REMOVAL",X="DOMAttrModified",J="DOMContentLoaded",Q="DOMSubtreeModified",$="<",tt="=",et=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,nt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],rt=[],ot=[],it="",at=T.documentElement,ct=rt.indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},ut=w.prototype,st=ut.hasOwnProperty,lt=ut.isPrototypeOf,ft=w.defineProperty,pt=[],ht=w.getOwnPropertyDescriptor,vt=w.getOwnPropertyNames,dt=w.getPrototypeOf,gt=w.setPrototypeOf,yt=!!w.__proto__,mt="__dreCEv1",bt=t.customElements,Et=!/^force/.test(e.type)&&!!(bt&&bt.define&&bt.get&&bt.whenDefined),kt=w.create||w,Tt=t.Map||function(){var t,e=[],n=[];return{get:function(t){return n[ct.call(e,t)]},set:function(r,o){(t=ct.call(e,r))<0?n[e.push(r)-1]=o:n[t]=o}}},wt=t.Promise||function(t){function e(t){for(r=!0;n.length;)n.shift()(t)}var n=[],r=!1,o={catch:function(){return o},then:function(t){return n.push(t),r&&setTimeout(e,1),o}};return t(e),o},St=!1,xt=kt(null),_t=kt(null),Ot=new Tt,Mt=function(t){return t.toLowerCase()},It=w.create||function t(e){return e?(t.prototype=e,new t):this},Lt=gt||(yt?function(t,e){return t.__proto__=e,t}:vt&&ht?function(){function t(t,e){for(var n,r=vt(e),o=0,i=r.length;o<i;o++)st.call(t,n=r[o])||ft(t,n,ht(e,n))}return function(e,n){do{t(e,n)}while((n=dt(n))&&!lt.call(n,e));return e}}():function(t,e){for(var n in e)t[n]=e[n];return t}),Dt=t.MutationObserver||t.WebKitMutationObserver,At=t.HTMLAnchorElement,Pt=(t.HTMLElement||t.Element||t.Node).prototype,Rt=!lt.call(Pt,at),jt=Rt?function(t,e,n){return t[e]=n.value,t}:ft,Nt=Rt?function(t){return 1===t.nodeType}:function(t){return lt.call(Pt,t)},Ct=Rt&&[],Ht=Pt.attachShadow,Ft=Pt.cloneNode,Zt=Pt.closest||function(t){for(var e=this;e&&e.nodeName!==t;)e=e.parentNode;return e},zt=Pt.dispatchEvent,Ut=Pt.getAttribute,Wt=Pt.hasAttribute,Gt=Pt.removeAttribute,Bt=Pt.setAttribute,Vt=T.createElement,Kt=T.importNode,Yt=Vt,qt=Dt&&{attributes:!0,characterData:!0,attributeOldValue:!0},Xt=Dt||function(t){ee=!1,at.removeEventListener(X,Xt)},Jt=0,Qt=R in T&&!/^force-all/.test(e.type),$t=!0,te=!1,ee=!0,ne=!0,re=!0;if(Dt&&((P=T.createElement("div")).innerHTML="<div><div></div></div>",new Dt((function(t,e){if(t[0]&&"childList"==t[0].type&&!t[0].removedNodes[0].childNodes.length){var n=(P=ht(Pt,"innerHTML"))&&P.set;n&&ft(Pt,"innerHTML",{set:function(t){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,t)}})}e.disconnect(),P=null})).observe(P,{childList:!0,subtree:!0}),P.innerHTML=""),Qt||(gt||yt?(D=function(t,e){lt.call(e,t)||p(t,e)},A=p):A=D=function(t,e){t[N]||(t[N]=w(!0),p(t,e))},Rt?(ee=!1,function(){var t=ht(Pt,C),e=t.value,n=function(t){var e=new CustomEvent(X,{bubbles:!0});e.attrName=t,e.prevValue=Ut.call(this,t),e.newValue=null,e[q]=e.attrChange=2,Gt.call(this,t),zt.call(this,e)},r=function(t,e){var n=Wt.call(this,t),r=n&&Ut.call(this,t),o=new CustomEvent(X,{bubbles:!0});Bt.call(this,t,e),o.attrName=t,o.prevValue=n?r:null,o.newValue=e,n?o.MODIFICATION=o.attrChange=1:o[Y]=o.attrChange=0,zt.call(this,o)},o=function(t){var e,n=t.currentTarget,r=n[N],o=t.propertyName;r.hasOwnProperty(o)&&(r=r[o],(e=new CustomEvent(X,{bubbles:!0})).attrName=r.name,e.prevValue=r.value||null,e.newValue=r.value=n[o]||null,null==e.prevValue?e[Y]=e.attrChange=0:e.MODIFICATION=e.attrChange=1,zt.call(n,e))};t.value=function(t,i,a){t===X&&this[U]&&this.setAttribute!==r&&(this[N]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,e.call(this,"propertychange",o)),e.call(this,t,i,a)},ft(Pt,C,t)}()):Dt||(at[C](X,Xt),at.setAttribute(N,1),at.removeAttribute(N),ee&&(_=function(t){var e,n,r,o=this;if(o===t.target){for(r in e=o[N],o[N]=n=M(o),n){if(!(r in e))return O(0,o,r,e[r],n[r],Y);if(n[r]!==e[r])return O(1,o,r,e[r],n[r],"MODIFICATION")}for(r in e)if(!(r in n))return O(2,o,r,e[r],n[r],q)}},O=function(t,e,n,r,o,i){var a={attrChange:t,currentTarget:e,attrName:n,prevValue:r,newValue:o};a[i]=t,c(a)},M=function(t){for(var e,n,r={},o=t.attributes,i=0,a=o.length;i<a;i++)"setAttribute"!==(n=(e=o[i]).name)&&(r[n]=e.value);return r})),T[R]=function(t,e){if(n=t.toUpperCase(),$t&&($t=!1,Dt?(I=function(t,e){function n(t,e){for(var n=0,r=t.length;n<r;e(t[n++]));}return new Dt((function(r){for(var o,i,a,c=0,u=r.length;c<u;c++)"childList"===(o=r[c]).type?(n(o.addedNodes,t),n(o.removedNodes,e)):(i=o.target,re&&i[U]&&"style"!==o.attributeName&&(a=Ut.call(i,o.attributeName))!==o.oldValue&&i[U](o.attributeName,o.oldValue,a))}))}(o(H),o(Z)),(L=function(t){return I.observe(t,{childList:!0,subtree:!0}),t})(T),Ht&&(Pt.attachShadow=function(){return L(Ht.apply(this,arguments))})):(x=[],T[C]("DOMNodeInserted",u(H)),T[C]("DOMNodeRemoved",u(Z))),T[C](J,s),T[C]("readystatechange",s),T.importNode=function(t,e){switch(t.nodeType){case 1:return f(T,Kt,[t,!!e]);case 11:for(var n=T.createDocumentFragment(),r=t.childNodes,o=r.length,i=0;i<o;i++)n.appendChild(T.importNode(r[i],!!e));return n;default:return Ft.call(t,!!e)}},Pt.cloneNode=function(t){return f(this,Ft,[!!t])}),te)return te=!1;if(-2<ct.call(rt,tt+n)+ct.call(rt,$+n)&&h(t),!et.test(n)||-1<ct.call(nt,n))throw new Error("The type "+t+" is invalid");var n,i,a=function(){return l?T.createElement(p,n):T.createElement(p)},c=e||ut,l=st.call(c,z),p=l?e[z].toUpperCase():n;return l&&-1<ct.call(rt,$+p)&&h(p),i=rt.push((l?tt:$)+n)-1,it=it.concat(it.length?",":"",l?p+'[is="'+t.toLowerCase()+'"]':p),a.prototype=ot[i]=st.call(c,"prototype")?c.prototype:It(Pt),it.length&&r(T.querySelectorAll(it),H),a},T.createElement=Yt=function(t,e){var n=m(e),r=n?Vt.call(T,t,Mt(n)):Vt.call(T,t),o=""+t,i=ct.call(rt,(n?tt:$)+(n||o).toUpperCase()),c=-1<i;return n&&(r.setAttribute("is",n=n.toLowerCase()),c&&(c=a(o.toUpperCase(),n))),re=!T.createElement.innerHTMLHelper,c&&A(r,ot[i]),r}),addEventListener("beforeunload",(function(){delete T.createElement,delete T.importNode,delete T[R]}),!1),d.prototype={constructor:d,define:Et?function(t,e,n){if(n)g(t,e,n);else{var r=t.toUpperCase();xt[r]={constructor:e,create:[r]},Ot.set(e,r),bt.define(t,e)}}:g,get:Et?function(t){return bt.get(t)||y(t)}:y,whenDefined:Et?function(t){return wt.race([bt.whenDefined(t),E(t)])}:E},!bt||/^force/.test(e.type))k();else if(!e.noBuiltIn)try{!function(e,n,r){var o=new RegExp("^<a\\s+is=('|\")"+r+"\\1></a>$");if(n[z]="a",(e.prototype=It(At.prototype)).constructor=e,t.customElements.define(r,e,n),!o.test(T.createElement("a",{is:r}).outerHTML)||!o.test((new e).outerHTML))throw n}((function t(){return Reflect.construct(At,[],t)}),{},"document-register-element-a"+j)}catch(oe){k()}if(!e.noBuiltIn)try{if(Vt.call(T,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(ie){Mt=function(t){return{is:t.toLowerCase()}}}}(window)},KhsS:function(t,e,n){n("dG/n")("match")},KvGi:function(t,e,n){n("I+eb")({target:"Math",stat:!0},{sign:n("90hW")})},Kxld:function(t,e,n){n("I+eb")({target:"Object",stat:!0},{is:n("Ep9I")})},LKBx:function(t,e,n){"use strict";var r,o=n("I+eb"),i=n("Bs8V").f,a=n("UMSQ"),c=n("WjRb"),u=n("HYAF"),s=n("qxPZ"),l=n("xDBR"),f="".startsWith,p=Math.min,h=s("startsWith");o({target:"String",proto:!0,forced:!(!l&&!h&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||h)},{startsWith:function(t){var e=String(u(this));c(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return f?f.call(e,r,n):e.slice(n,n+r.length)===r}})},LPSS:function(t,e,n){var r,o,i,a=n("2oRo"),c=n("0Dky"),u=n("xrYK"),s=n("A2ZE"),l=n("G+Rx"),f=n("zBJ4"),p=n("HNyW"),h=a.location,v=a.setImmediate,d=a.clearImmediate,g=a.process,y=a.MessageChannel,m=a.Dispatch,b=0,E={},k=function(t){if(E.hasOwnProperty(t)){var e=E[t];delete E[t],e()}},T=function(t){return function(){k(t)}},w=function(t){k(t.data)},S=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};v&&d||(v=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return E[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},d=function(t){delete E[t]},"process"==u(g)?r=function(t){g.nextTick(T(t))}:m&&m.now?r=function(t){m.now(T(t))}:y&&!p?(i=(o=new y).port2,o.port1.onmessage=w,r=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(S)?r="onreadystatechange"in f("script")?function(t){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),k(t)}}:function(t){setTimeout(T(t),0)}:(r=S,a.addEventListener("message",w,!1))),t.exports={set:v,clear:d}},LQDL:function(t,e,n){var r,o,i=n("2oRo"),a=n("NC/Y"),c=i.process,u=c&&c.versions,s=u&&u.v8;s?o=(r=s.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},"N+g0":function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},NBAS:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("ewvW"),a=n("4WOD"),c=n("4Xet");r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},"NC/Y":function(t,e,n){var r=n("0GbY");t.exports=r("navigator","userAgent")||""},NaFW:function(t,e,n){var r=n("9d/t"),o=n("P4y1"),i=n("tiKp")("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"NbN+":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},O741:function(t,e,n){var r=n("hh1v");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},OM9Z:function(t,e,n){n("I+eb")({target:"String",proto:!0},{repeat:n("EUja")})},P4y1:function(t,e){t.exports={}},PKPk:function(t,e,n){"use strict";var r=n("ZUd8").charAt,o=n("afO8"),i=n("fdAy"),a=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},PqOI:function(t,e,n){var r=n("I+eb"),o=n("90hW"),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return o(t=+t)*a(i(t),1/3)}})},QFcT:function(t,e,n){var r=n("I+eb"),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,o=0,c=0,u=arguments.length,s=0;c<u;)s<(n=i(arguments[c++]))?(o=o*(r=s/n)*r+1,s=n):o+=n>0?(r=n/s)*r:n;return s===1/0?1/0:s*a(o)}})},QIpd:function(t,e,n){var r=n("xrYK");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},QNnp:function(t,e,n){var r=n("I+eb"),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},QWBl:function(t,e,n){"use strict";var r=n("I+eb"),o=n("F8JR");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},Qo9l:function(t,e,n){var r=n("2oRo");t.exports=r},R0gw:function(t,e,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";var t,e,n,r,o,i;function a(){t=Zone.__symbol__,e=Object[t("defineProperty")]=Object.defineProperty,n=Object[t("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,r=Object.create,o=t("unconfigurables"),Object.defineProperty=function(t,e,n){if(u(t,e))throw new TypeError("Cannot assign to read only property '"+e+"' of "+t);var r=n.configurable;return"prototype"!==e&&(n=s(t,e,n)),l(t,e,n,r)},Object.defineProperties=function(t,e){return Object.keys(e).forEach((function(n){Object.defineProperty(t,n,e[n])})),t},Object.create=function(t,e){return"object"!=typeof e||Object.isFrozen(e)||Object.keys(e).forEach((function(n){e[n]=s(t,n,e[n])})),r(t,e)},Object.getOwnPropertyDescriptor=function(t,e){var r=n(t,e);return r&&u(t,e)&&(r.configurable=!1),r}}function c(t,e,n){var r=n.configurable;return l(t,e,n=s(t,e,n),r)}function u(t,e){return t&&t[o]&&t[o][e]}function s(t,n,r){return Object.isFrozen(r)||(r.configurable=!0),r.configurable||(t[o]||Object.isFrozen(t)||e(t,o,{writable:!0,value:{}}),t[o]&&(t[o][n]=!0)),r}function l(t,n,r,o){try{return e(t,n,r)}catch(a){if(!r.configurable)throw a;void 0===o?delete r.configurable:r.configurable=o;try{return e(t,n,r)}catch(a){var i=null;try{i=JSON.stringify(r)}catch(a){i=r.toString()}console.log("Attempting to configure '"+n+"' with descriptor '"+i+"' on object '"+t+"' and got error, giving up: "+a)}}}function f(t,e){var n=e.getGlobalObjects(),r=n.eventNames,o=n.globalSources,i=n.zoneSymbolEventNames,a=n.TRUE_STR,c=n.FALSE_STR,u=n.ZONE_SYMBOL_PREFIX,s="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),l=[],f=t.wtf,p="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");f?l=p.map((function(t){return"HTML"+t+"Element"})).concat(s):t.EventTarget?l.push("EventTarget"):l=s;for(var h=t.__Zone_disable_IE_check||!1,v=t.__Zone_enable_cross_context_check||!1,d=e.isIEOrEdge(),g="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",y={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},m=0;m<r.length;m++){var b=u+((S=r[m])+c),E=u+(S+a);i[S]={},i[S][c]=b,i[S][a]=E}for(m=0;m<p.length;m++)for(var k=p[m],T=o[k]={},w=0;w<r.length;w++){var S;T[S=r[w]]=k+".addEventListener:"+S}var x=[];for(m=0;m<l.length;m++){var _=t[l[m]];x.push(_&&_.prototype)}return e.patchEventTarget(t,x,{vh:function(t,e,n,r){if(!h&&d){if(v)try{var o;if("[object FunctionWrapper]"===(o=e.toString())||o==g)return t.apply(n,r),!1}catch(i){return t.apply(n,r),!1}else if("[object FunctionWrapper]"===(o=e.toString())||o==g)return t.apply(n,r),!1}else if(v)try{e.toString()}catch(i){return t.apply(n,r),!1}return!0},transferEventName:function(t){return y[t]||t}}),Zone[e.symbol("patchEventTarget")]=!!t.EventTarget,!0}function p(t,e){var n=t.getGlobalObjects();if((!n.isNode||n.isMix)&&!function(t,e){var n=t.getGlobalObjects();if((n.isBrowser||n.isMix)&&!t.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var r=t.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(r&&!r.configurable)return!1;if(r){t.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var o=!!document.createElement("div").onclick;return t.ObjectDefineProperty(Element.prototype,"onclick",r),o}}var i=e.XMLHttpRequest;if(!i)return!1;var a=i.prototype,c=t.ObjectGetOwnPropertyDescriptor(a,"onreadystatechange");if(c)return t.ObjectDefineProperty(a,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}}),o=!!(s=new i).onreadystatechange,t.ObjectDefineProperty(a,"onreadystatechange",c||{}),o;var u=t.symbol("fake");t.ObjectDefineProperty(a,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[u]},set:function(t){this[u]=t}});var s=new i,l=function(){};return s.onreadystatechange=l,o=s[u]===l,s.onreadystatechange=null,o}(t,e)){var r="undefined"!=typeof WebSocket;!function(t){for(var e=t.getGlobalObjects().eventNames,n=t.symbol("unbound"),r=function(r){var o=e[r],i="on"+o;self.addEventListener(o,(function(e){var r,o,a=e.target;for(o=a?a.constructor.name+"."+i:"unknown."+i;a;)a[i]&&!a[i][n]&&((r=t.wrapWithCurrentZone(a[i],o))[n]=a[i],a[i]=r),a=a.parentElement}),!0)},o=0;o<e.length;o++)r(o)}(t),t.patchClass("XMLHttpRequest"),r&&function(t,e){var n=t.getGlobalObjects(),r=n.ADD_EVENT_LISTENER_STR,o=n.REMOVE_EVENT_LISTENER_STR,i=e.WebSocket;e.EventTarget||t.patchEventTarget(e,[i.prototype]),e.WebSocket=function(e,n){var a,c,u=arguments.length>1?new i(e,n):new i(e),s=t.ObjectGetOwnPropertyDescriptor(u,"onmessage");return s&&!1===s.configurable?(a=t.ObjectCreate(u),c=u,[r,o,"send","close"].forEach((function(e){a[e]=function(){var n=t.ArraySlice.call(arguments);if(e===r||e===o){var i=n.length>0?n[0]:void 0;if(i){var c=Zone.__symbol__("ON_PROPERTY"+i);u[c]=a[c]}}return u[e].apply(u,n)}}))):a=u,t.patchOnProperties(a,["close","error","message","open"],c),a};var a=e.WebSocket;for(var c in i)a[c]=i[c]}(t,e),Zone[t.symbol("patchEvents")]=!0}}(i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})[(i.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var t=i.Zone;t.__load_patch("defineProperty",(function(t,e,n){n._redefineProperty=c,a()})),t.__load_patch("registerElement",(function(t,e,n){!function(t,e){var n=e.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in t.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(t,n)})),t.__load_patch("EventTargetLegacy",(function(t,e,n){f(t,n),p(n,t)}))}})?r.call(e,n,e,t):r)||(t.exports=o)},RK3t:function(t,e,n){var r=n("0Dky"),o=n("xrYK"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},RN6c:function(t,e,n){var r=n("2oRo");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},RNIs:function(t,e,n){var r=n("tiKp"),o=n("fHMY"),i=n("m/L8"),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},ROdP:function(t,e,n){var r=n("hh1v"),o=n("xrYK"),i=n("tiKp")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},Rfxz:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").some,i=n("pkCn"),a=n("rkAj"),c=i("some"),u=a("some");r({target:"Array",proto:!0,forced:!c||!u},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},Rm1S:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("UMSQ"),a=n("HYAF"),c=n("iqWW"),u=n("FMNM");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),s=String(this);if(!a.global)return u(a,s);var l=a.unicode;a.lastIndex=0;for(var f,p=[],h=0;null!==(f=u(a,s));){var v=String(f[0]);p[h]=v,""===v&&(a.lastIndex=c(s,i(a.lastIndex),l)),h++}return 0===h?null:p}]}))},SEBh:function(t,e,n){var r=n("glrk"),o=n("HAuM"),i=n("tiKp")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},STAE:function(t,e,n){var r=n("0Dky");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},SYor:function(t,e,n){"use strict";var r=n("I+eb"),o=n("WKiH").trim;r({target:"String",proto:!0,forced:n("yNLB")("trim")},{trim:function(){return o(this)}})},TFPT:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("sub")},{sub:function(){return o(this,"sub","","")}})},TWNs:function(t,e,n){var r=n("g6v/"),o=n("2oRo"),i=n("lMq5"),a=n("cVYH"),c=n("m/L8").f,u=n("JBy8").f,s=n("ROdP"),l=n("rW0t"),f=n("n3/R"),p=n("busE"),h=n("0Dky"),v=n("afO8").set,d=n("JiZb"),g=n("tiKp")("match"),y=o.RegExp,m=y.prototype,b=/a/g,E=/a/g,k=new y(b)!==b,T=f.UNSUPPORTED_Y;if(r&&i("RegExp",!k||T||h((function(){return E[g]=!1,y(b)!=b||y(E)==E||"/a/i"!=y(b,"i")})))){for(var w=function t(e,n){var r,o=this instanceof t,i=s(e),c=void 0===n;if(!o&&i&&e.constructor===t&&c)return e;k?i&&!c&&(e=e.source):e instanceof t&&(c&&(n=l.call(e)),e=e.source),T&&(r=!!n&&n.indexOf("y")>-1)&&(n=n.replace(/y/g,""));var u=a(k?new y(e,n):y(e,n),o?this:m,t);return T&&r&&v(u,{sticky:r}),u},S=function(t){t in w||c(w,t,{configurable:!0,get:function(){return y[t]},set:function(e){y[t]=e}})},x=u(y),_=0;x.length>_;)S(x[_++]);m.constructor=w,w.prototype=m,p(o,"RegExp",w)}d("RegExp")},TWQb:function(t,e,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh"),a=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),l=i(a,s);if(t&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},TeQF:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").filter,i=n("Hd5f"),a=n("rkAj"),c=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!c||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},TfTi:function(t,e,n){"use strict";var r=n("A2ZE"),o=n("ewvW"),i=n("m92n"),a=n("6VoE"),c=n("UMSQ"),u=n("hBjN"),s=n("NaFW");t.exports=function(t){var e,n,l,f,p,h,v=o(t),d="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,m=void 0!==y,b=s(v),E=0;if(m&&(y=r(y,g>2?arguments[2]:void 0,2)),null==b||d==Array&&a(b))for(n=new d(e=c(v.length));e>E;E++)h=m?y(v[E],E):v[E],u(n,E,h);else for(p=(f=b.call(v)).next,n=new d;!(l=p.call(f)).done;E++)h=m?i(f,y,[l.value,E],!0):l.value,u(n,E,h);return n.length=E,n}},ToJy:function(t,e,n){"use strict";var r=n("I+eb"),o=n("HAuM"),i=n("ewvW"),a=n("0Dky"),c=n("pkCn"),u=[],s=u.sort,l=a((function(){u.sort(void 0)})),f=a((function(){u.sort(null)})),p=c("sort");r({target:"Array",proto:!0,forced:l||!f||!p},{sort:function(t){return void 0===t?s.call(i(this)):s.call(i(this),o(t))}})},Tskq:function(t,e,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},U3f4:function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("rW0t"),a=n("n3/R").UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},UMSQ:function(t,e,n){var r=n("ppGB"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},UTVS:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},UesL:function(t,e,n){"use strict";var r=n("glrk"),o=n("wE6v");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},UxlC:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("ewvW"),a=n("UMSQ"),c=n("ppGB"),u=n("HYAF"),s=n("iqWW"),l=n("FMNM"),f=Math.max,p=Math.min,h=Math.floor,v=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,e,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,m=g?"$":"$0";return[function(n,r){var o=u(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!g&&y||"string"==typeof r&&-1===r.indexOf(m)){var i=n(e,t,this,r);if(i.done)return i.value}var u=o(t),h=String(this),v="function"==typeof r;v||(r=String(r));var d=u.global;if(d){var E=u.unicode;u.lastIndex=0}for(var k=[];;){var T=l(u,h);if(null===T)break;if(k.push(T),!d)break;""===String(T[0])&&(u.lastIndex=s(h,a(u.lastIndex),E))}for(var w,S="",x=0,_=0;_<k.length;_++){T=k[_];for(var O=String(T[0]),M=f(p(c(T.index),h.length),0),I=[],L=1;L<T.length;L++)I.push(void 0===(w=T[L])?w:String(w));var D=T.groups;if(v){var A=[O].concat(I,M,h);void 0!==D&&A.push(D);var P=String(r.apply(void 0,A))}else P=b(O,h,M,I,D,r);M>=x&&(S+=h.slice(x,M)+P,x=M+O.length)}return S+h.slice(x)}];function b(t,n,r,o,a,c){var u=r+t.length,s=o.length,l=d;return void 0!==a&&(a=i(a),l=v),e.call(c,l,(function(e,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":c=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return e;if(l>s){var f=h(l/10);return 0===f?e:f<=s?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):e}c=o[l-1]}return void 0===c?"":c}))}}))},Uydy:function(t,e,n){var r=n("I+eb"),o=n("HsHA"),i=Math.acosh,a=Math.log,c=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+u:o(t-1+c(t-1)*c(t+1))}})},VC3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("QIpd"),a=1..toPrecision;r({target:"Number",proto:!0,forced:o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))},{toPrecision:function(t){return void 0===t?a.call(i(this)):a.call(i(this),t)}})},VpIT:function(t,e,n){var r=n("xDBR"),o=n("xs3f");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(t,e,n){var r=n("0GbY"),o=n("JBy8"),i=n("dBg+"),a=n("glrk");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},WDsR:function(t,e,n){var r=n("I+eb"),o=n("Xol8"),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},WJkJ:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},WKiH:function(t,e,n){var r=n("HYAF"),o="["+n("WJkJ")+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},WjRb:function(t,e,n){var r=n("ROdP");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},XGwC:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},Xe3L:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("hBjN");r({target:"Array",stat:!0,forced:o((function(){function t(){}return!(Array.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},Xol8:function(t,e,n){var r=n("hh1v"),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},YGK4:function(t,e,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},YNrV:function(t,e,n){"use strict";var r=n("g6v/"),o=n("0Dky"),i=n("33Wh"),a=n("dBg+"),c=n("0eef"),u=n("ewvW"),s=n("RK3t"),l=Object.assign,f=Object.defineProperty;t.exports=!l||o((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||"abcdefghijklmnopqrst"!=i(l({},e)).join("")}))?function(t,e){for(var n=u(t),o=arguments.length,l=1,f=a.f,p=c.f;o>l;)for(var h,v=s(arguments[l++]),d=f?i(v).concat(f(v)):i(v),g=d.length,y=0;g>y;)h=d[y++],r&&!p.call(v,h)||(n[h]=v[h]);return n}:l},ZOXb:function(t,e,n){"use strict";var r=n("0Dky"),o=n("DMt2").start,i=Math.abs,a=Date.prototype,c=a.getTime,u=a.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=u.call(new Date(-50000000000001))}))||!r((function(){u.call(new Date(NaN))}))?function(){if(!isFinite(c.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+o(i(t),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(e,3,0)+"Z"}:u},ZUd8:function(t,e,n){var r=n("ppGB"),o=n("HYAF"),i=function(t){return function(e,n){var i,a,c=String(o(e)),u=r(n),s=c.length;return u<0||u>=s?t?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},ZWaQ:function(t,e,n){"use strict";var r=n("m/L8").f,o=n("fHMY"),i=n("4syw"),a=n("A2ZE"),c=n("GarU"),u=n("ImZN"),s=n("fdAy"),l=n("JiZb"),f=n("g6v/"),p=n("8YOa").fastKey,h=n("afO8"),v=h.set,d=h.getterFor;t.exports={getConstructor:function(t,e,n,s){var l=t((function(t,r){c(t,l,e),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=r&&u(r,t[s],t,n)})),h=d(e),g=function(t,e,n){var r,o,i=h(t),a=y(t,e);return a?a.value=n:(i.last=a={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},y=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(l.prototype,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=h(this),n=y(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),f?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),i(l.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),f&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",o=d(e),i=d(r);s(t,e,(function(t,e){v(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},ZfDv:function(t,e,n){var r=n("hh1v"),o=n("6LWA"),i=n("tiKp")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},Zk8X:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("sup")},{sup:function(){return o(this,"sup","","")}})},a57n:function(t,e,n){n("dG/n")("search")},a5NK:function(t,e,n){var r=n("I+eb"),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return o(t)*i}})},afO8:function(t,e,n){var r,o,i,a=n("f5p1"),c=n("2oRo"),u=n("hh1v"),s=n("kRJp"),l=n("UTVS"),f=n("93I0"),p=n("0BK2");if(a){var h=new(0,c.WeakMap),v=h.get,d=h.has,g=h.set;r=function(t,e){return g.call(h,t,e),e},o=function(t){return v.call(h,t)||{}},i=function(t){return d.call(h,t)}}else{var y=f("state");p[y]=!0,r=function(t,e){return s(t,y,e),e},o=function(t){return l(t,y)?t[y]:{}},i=function(t){return l(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},bWFh:function(t,e,n){"use strict";var r=n("I+eb"),o=n("2oRo"),i=n("lMq5"),a=n("busE"),c=n("8YOa"),u=n("ImZN"),s=n("GarU"),l=n("hh1v"),f=n("0Dky"),p=n("HH4o"),h=n("1E5z"),v=n("cVYH");t.exports=function(t,e,n){var d=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),y=d?"set":"add",m=o[t],b=m&&m.prototype,E=m,k={},T=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!l(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof m||!(g||b.forEach&&!f((function(){(new m).entries().next()})))))E=n.getConstructor(e,t,d,y),c.REQUIRED=!0;else if(i(t,!0)){var w=new E,S=w[y](g?{}:-0,1)!=w,x=f((function(){w.has(1)})),_=p((function(t){new m(t)})),O=!g&&f((function(){for(var t=new m,e=5;e--;)t[y](e,e);return!t.has(-0)}));_||((E=e((function(e,n){s(e,E,t);var r=v(new m,e,E);return null!=n&&u(n,r[y],r,d),r}))).prototype=b,b.constructor=E),(x||O)&&(T("delete"),T("has"),d&&T("get")),(O||S)&&T(y),g&&b.clear&&delete b.clear}return k[t]=E,r({global:!0,forced:E!=m},k),h(E,t),g||n.setStrong(E,t,d),E}},brp2:function(t,e,n){n("I+eb")({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},busE:function(t,e,n){var r=n("2oRo"),o=n("kRJp"),i=n("UTVS"),a=n("zk60"),c=n("iSVu"),u=n("afO8"),s=u.get,l=u.enforce,f=String(String).split("String");(t.exports=function(t,e,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),l(n).source=f.join("string"==typeof e?e:"")),t!==r?(u?!p&&t[e]&&(s=!0):delete t[e],s?t[e]=n:o(t,e,n)):s?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},cDke:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("BX/b").f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},cVYH:function(t,e,n){var r=n("hh1v"),o=n("0rvr");t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},"dBg+":function(t,e){e.f=Object.getOwnPropertySymbols},"dG/n":function(t,e,n){var r=n("Qo9l"),o=n("UTVS"),i=n("5Tg+"),a=n("m/L8").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},"eDl+":function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eJiR:function(t,e,n){var r=n("I+eb"),o=n("jrUv"),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},eajv:function(t,e,n){var r=n("I+eb"),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},eoL8:function(t,e,n){var r=n("I+eb"),o=n("g6v/");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n("m/L8").f})},ewvW:function(t,e,n){var r=n("HYAF");t.exports=function(t){return Object(r(t))}},f5p1:function(t,e,n){var r=n("2oRo"),o=n("iSVu"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},fHMY:function(t,e,n){var r,o=n("glrk"),i=n("N+g0"),a=n("eDl+"),c=n("0BK2"),u=n("G+Rx"),s=n("zBJ4"),l=n("93I0")("IE_PROTO"),f=function(){},p=function(t){return"<script>"+t+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var t,e;h=r?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=s("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f.prototype=o(t),n=new f,f.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},fbCW:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").find,i=n("RNIs"),a=n("rkAj"),c=!0,u=a("find");"find"in[]&&Array(1).find((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},fdAy:function(t,e,n){"use strict";var r=n("I+eb"),o=n("ntOU"),i=n("4WOD"),a=n("0rvr"),c=n("1E5z"),u=n("kRJp"),s=n("busE"),l=n("tiKp"),f=n("xDBR"),p=n("P4y1"),h=n("rpNk"),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),y=function(){return this};t.exports=function(t,e,n,l,h,m,b){o(n,e,l);var E,k,T,w=function(t){if(t===h&&M)return M;if(!d&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},S=e+" Iterator",x=!1,_=t.prototype,O=_[g]||_["@@iterator"]||h&&_[h],M=!d&&O||w(h),I="Array"==e&&_.entries||O;if(I&&(E=i(I.call(new t)),v!==Object.prototype&&E.next&&(f||i(E)===v||(a?a(E,v):"function"!=typeof E[g]&&u(E,g,y)),c(E,S,!0,!0),f&&(p[S]=y))),"values"==h&&O&&"values"!==O.name&&(x=!0,M=function(){return O.call(this)}),f&&!b||_[g]===M||u(_,g,M),p[e]=M,h)if(k={values:w("values"),keys:m?M:w("keys"),entries:w("entries")},b)for(T in k)(d||x||!(T in _))&&s(_,T,k[T]);else r({target:e,proto:!0,forced:d||x},k);return k}},fhKU:function(t,e,n){var r=n("2oRo"),o=n("WKiH").trim,i=n("WJkJ"),a=r.parseFloat,c=1/a(i+"-0")!=-1/0;t.exports=c?function(t){var e=o(String(t)),n=a(e);return 0===n&&"-"==e.charAt(0)?-0:n}:a},ftKg:function(t,e,n){n("brp2"),n("9LPj"),n("rMz7"),n("DQNa"),n("7+zs");var r=n("Qo9l");t.exports=r.Date},"g6v/":function(t,e,n){var r=n("0Dky");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},gOCb:function(t,e,n){n("dG/n")("replace")},gXIK:function(t,e,n){n("dG/n")("toPrimitive")},gbiT:function(t,e,n){n("dG/n")("unscopables")},gdVl:function(t,e,n){"use strict";var r=n("ewvW"),o=n("I8vh"),i=n("UMSQ");t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,c=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,s=void 0===u?n:o(u,n);s>c;)e[c++]=t;return e}},glrk:function(t,e,n){var r=n("hh1v");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},hBjN:function(t,e,n){"use strict";var r=n("wE6v"),o=n("m/L8"),i=n("XGwC");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},hByQ:function(t,e,n){"use strict";var r=n("14Sl"),o=n("glrk"),i=n("HYAF"),a=n("Ep9I"),c=n("FMNM");r("search",1,(function(t,e,n){return[function(e){var n=i(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=o(t),u=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var l=c(i,u);return a(i.lastIndex,s)||(i.lastIndex=s),null===l?-1:l.index}]}))},"hN/g":function(t,e,n){"use strict";n.r(e),n("pDpN"),n("KJ4T")},hXpO:function(t,e,n){var r=n("HYAF"),o=/"/g;t.exports=function(t,e,n,i){var a=String(r(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+String(i).replace(o,"&quot;")+'"'),c+">"+a+"</"+e+">"}},hh1v:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},i6QF:function(t,e,n){n("I+eb")({target:"Number",stat:!0},{isInteger:n("Xol8")})},iSVu:function(t,e,n){var r=n("xs3f"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},inlA:function(t,e,n){"use strict";var r,o=n("I+eb"),i=n("Bs8V").f,a=n("UMSQ"),c=n("WjRb"),u=n("HYAF"),s=n("qxPZ"),l=n("xDBR"),f="".endsWith,p=Math.min,h=s("endsWith");o({target:"String",proto:!0,forced:!(!l&&!h&&(r=i(String.prototype,"endsWith"),r&&!r.writable)||h)},{endsWith:function(t){var e=String(u(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),o=void 0===n?r:p(a(n),r),i=String(t);return f?f.call(e,i,o):e.slice(o-i.length,o)===i}})},iqWW:function(t,e,n){"use strict";var r=n("ZUd8").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},jrUv:function(t,e){var n=Math.expm1,r=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:n},jt2F:function(t,e,n){n("dG/n")("matchAll")},kNcU:function(t,e,n){var r=n("I+eb"),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return o(t)/i}})},kOOl:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},kRJp:function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("XGwC");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},kSko:function(t,e,n){n("I+eb")({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},kmMV:function(t,e,n){"use strict";var r,o,i=n("rW0t"),a=n("n3/R"),c=RegExp.prototype.exec,u=String.prototype.replace,s=c,l=(o=/b*/g,c.call(r=/a/,"a"),c.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||f)&&(s=function(t){var e,n,r,o,a=this,s=f&&a.sticky,h=i.call(a),v=a.source,d=0,g=t;return s&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),g=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(v="(?: "+v+")",g=" "+g,d++),n=new RegExp("^(?:"+v+")",h)),p&&(n=new RegExp("^"+v+"$(?!\\s)",h)),l&&(e=a.lastIndex),r=c.call(s?n:a,g),s?r?(r.input=r.input.slice(d),r[0]=r[0].slice(d),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:l&&r&&(a.lastIndex=a.global?r.index+r[0].length:e),p&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=s},l2dK:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("fontcolor")},{fontcolor:function(t){return o(this,"font","color",t)}})},lEou:function(t,e,n){n("dG/n")("toStringTag")},lMq5:function(t,e,n){var r=n("0Dky"),o=/#|\.prototype\./,i=function(t,e){var n=c[a(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},ls82:function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(t,e,n,r){var o=Object.create((e&&e.prototype instanceof l?e:l).prototype),i=new T(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=b(a,n);if(c){if(c===s)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,i),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=c;var s={};function l(){}function f(){}function p(){}var h={};h[o]=function(){return this};var v=Object.getPrototypeOf,d=v&&v(v(w([])));d&&d!==e&&n.call(d,o)&&(h=d);var g=p.prototype=l.prototype=Object.create(h);function y(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function m(t,e){var r;this._invoke=function(o,i){function a(){return new e((function(r,a){!function r(o,i,a,c){var s=u(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,s;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function w(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=g.constructor=p,p.constructor=f,p[a]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(m.prototype),m.prototype[i]=function(){return this},t.AsyncIterator=m,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new m(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),g[a]="Generator",g[o]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=w,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},"m/L8":function(t,e,n){var r=n("g6v/"),o=n("DPsx"),i=n("glrk"),a=n("wE6v"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},m92n:function(t,e,n){var r=n("glrk");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){var i=t.return;throw void 0!==i&&r(i.call(t)),a}}},mRH6:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("link")},{link:function(t){return o(this,"a","href",t)}})},mRIq:function(t,e,n){"use strict";n.r(e),n("H0pb"),n("wLYn"),n("sMBO"),n("tW5y"),n("uL8W"),n("eoL8"),n("HRxU"),n("5DmW"),n("NBAS"),n("tkto"),n("cDke"),n("3KgV"),n("r5Og"),n("zuhW"),n("4h0Y"),n("5D5o"),n("yQYn"),n("zKZe"),n("Kxld"),n("ExoC"),n("07d7"),n("ma9I"),n("J30X"),n("pjDv"),n("Xe3L"),n("oVuX"),n("+2oP"),n("pDQq"),n("ToJy"),n("QWBl"),n("2B1R"),n("TeQF"),n("Rfxz"),n("piMb"),n("E9XD"),n("9N29"),n("yXV3"),n("uqXc"),n("qHT+"),n("yyme"),n("fbCW"),n("x0AG"),n("4mDm"),n("9tb/"),n("2A+d"),n("SYor"),n("PKPk"),n("9bJ7"),n("inlA"),n("JTJg"),n("OM9Z"),n("LKBx"),n("GKVU"),n("E5NM"),n("BNMt"),n("zHFu"),n("x83w"),n("l2dK"),n("GRPF"),n("xdBZ"),n("mRH6"),n("yWo2"),n("IxXR"),n("TFPT"),n("Zk8X"),n("Rm1S"),n("UxlC"),n("hByQ"),n("EnZy"),n("4l63"),n("rNhl"),n("7sbD"),n("6hpn"),n("ftKg"),n("TWNs"),n("JfAA"),n("U3f4"),n("Tskq"),n("ENF9"),n("YGK4"),n("FZtP"),n("3bBZ"),n("5s+n"),n("DEfu"),n("ls82")},ma9I:function(t,e,n){"use strict";var r=n("I+eb"),o=n("0Dky"),i=n("6LWA"),a=n("hh1v"),c=n("ewvW"),u=n("UMSQ"),s=n("hBjN"),l=n("ZfDv"),f=n("Hd5f"),p=n("tiKp"),h=n("LQDL"),v=p("isConcatSpreadable"),d=h>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=f("concat"),y=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!d||!g},{concat:function(t){var e,n,r,o,i,a=c(this),f=l(a,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(y(i=-1===e?a:arguments[e])){if(p+(o=u(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&s(f,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(f,p++,i)}return f.length=p,f}})},"n/mU":function(t,e,n){var r=n("I+eb"),o=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:i((1+t)/(1-t))/2}})},"n3/R":function(t,e,n){"use strict";var r=n("0Dky");function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},ntOU:function(t,e,n){"use strict";var r=n("rpNk").IteratorPrototype,o=n("fHMY"),i=n("XGwC"),a=n("1E5z"),c=n("P4y1"),u=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,s,!1,!0),c[s]=u,t}},oVuX:function(t,e,n){"use strict";var r=n("I+eb"),o=n("RK3t"),i=n("/GqU"),a=n("pkCn"),c=[].join,u=o!=Object,s=a("join",",");r({target:"Array",proto:!0,forced:u||!s},{join:function(t){return c.call(i(this),void 0===t?",":t)}})},pDQq:function(t,e,n){"use strict";var r=n("I+eb"),o=n("I8vh"),i=n("ppGB"),a=n("UMSQ"),c=n("ewvW"),u=n("ZfDv"),s=n("hBjN"),l=n("Hd5f"),f=n("rkAj"),p=l("splice"),h=f("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,d=Math.min;r({target:"Array",proto:!0,forced:!p||!h},{splice:function(t,e){var n,r,l,f,p,h,g=c(this),y=a(g.length),m=o(t,y),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=y-m):(n=b-2,r=d(v(i(e),0),y-m)),y+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(l=u(g,r),f=0;f<r;f++)(p=m+f)in g&&s(l,f,g[p]);if(l.length=r,n<r){for(f=m;f<y-r;f++)h=f+n,(p=f+r)in g?g[h]=g[p]:delete g[h];for(f=y;f>y-r+n;f--)delete g[f-1]}else if(n>r)for(f=y-r;f>m;f--)h=f+n-1,(p=f+r-1)in g?g[h]=g[p]:delete g[h];for(f=0;f<n;f++)g[f+m]=arguments[f+2];return g.length=y-r+n,l}})},pDpN:function(e,r,i){var a,c;void 0===(c="function"==typeof(a=function(){"use strict";!function(t){var e=t.performance;function r(t){e&&e.mark&&e.mark(t)}function i(t,n){e&&e.measure&&e.measure(t,n)}r("Zone");var a=t.__Zone_symbol_prefix||"__zone_symbol__";function c(t){return a+t}var u=!0===t[c("forceDuplicateZoneCheck")];if(t.Zone){if(u||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}var s=function(){function e(t,r){n(this,e),this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new p(this,this._parent&&this._parent._zoneDelegate,r)}return o(e,[{key:"get",value:function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]}},{key:"getZoneWith",value:function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null}},{key:"fork",value:function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}},{key:"wrap",value:function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}}},{key:"run",value:function(t,e,n,r){P={parent:P,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{P=P.parent}}},{key:"runGuarded",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;P={parent:P,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{P=P.parent}}},{key:"runTask",value:function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||k).name+"; Execution: "+this.name+")");if(t.state!==T||t.type!==L&&t.type!==I){var r=t.state!=x;r&&t._transitionTo(x,S),t.runCount++;var o=R;R=t,P={parent:P,zone:this};try{t.type==I&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{t.state!==T&&t.state!==O&&(t.type==L||t.data&&t.data.isPeriodic?r&&t._transitionTo(S,x):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(T,x,T))),P=P.parent,R=o}}}},{key:"scheduleTask",value:function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(t.zone.name));e=e.parent}t._transitionTo(w,T);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(r){throw t._transitionTo(O,w,T),this._zoneDelegate.handleError(this,r),r}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==w&&t._transitionTo(S,w),t}},{key:"scheduleMicroTask",value:function(t,e,n,r){return this.scheduleTask(new h(M,t,e,n,r,void 0))}},{key:"scheduleMacroTask",value:function(t,e,n,r,o){return this.scheduleTask(new h(I,t,e,n,r,o))}},{key:"scheduleEventTask",value:function(t,e,n,r,o){return this.scheduleTask(new h(L,t,e,n,r,o))}},{key:"cancelTask",value:function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||k).name+"; Execution: "+this.name+")");t._transitionTo(_,S,x);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(O,_),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(T,_),t.runCount=0,t}},{key:"_updateTaskCount",value:function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(t.type,e)}},{key:"parent",get:function(){return this._parent}},{key:"name",get:function(){return this._name}}],[{key:"assertZonePatched",value:function(){if(t.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}},{key:"__load_patch",value:function(n,o){if(D.hasOwnProperty(n)){if(u)throw Error("Already loaded patch: "+n)}else if(!t["__Zone_disable_"+n]){var a="Zone:"+n;r(a),D[n]=o(t,e,A),i(a,a)}}},{key:"root",get:function(){for(var t=e.current;t.parent;)t=t.parent;return t}},{key:"current",get:function(){return P.zone}},{key:"currentTask",get:function(){return R}}]),e}();s.__symbol__=c;var l,f={name:"",onHasTask:function(t,e,n,r){return t.hasTask(n,r)},onScheduleTask:function(t,e,n,r){return t.scheduleTask(n,r)},onInvokeTask:function(t,e,n,r,o,i){return t.invokeTask(n,r,o,i)},onCancelTask:function(t,e,n,r){return t.cancelTask(n,r)}},p=function(){function t(e,r,o){n(this,t),this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=r,this._forkZS=o&&(o&&o.onFork?o:r._forkZS),this._forkDlgt=o&&(o.onFork?r:r._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:r._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:r._interceptZS),this._interceptDlgt=o&&(o.onIntercept?r:r._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:r._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:r._invokeZS),this._invokeDlgt=o&&(o.onInvoke?r:r._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:r._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:r._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?r:r._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:r._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:r._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?r:r._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:r._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:r._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?r:r._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:r._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:r._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?r:r._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:r._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var i=o&&o.onHasTask;(i||r&&r._hasTaskZS)&&(this._hasTaskZS=i?o:f,this._hasTaskDlgt=r,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,o.onScheduleTask||(this._scheduleTaskZS=f,this._scheduleTaskDlgt=r,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=f,this._invokeTaskDlgt=r,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=f,this._cancelTaskDlgt=r,this._cancelTaskCurrZone=this.zone))}return o(t,[{key:"fork",value:function(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new s(t,e)}},{key:"intercept",value:function(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e}},{key:"invoke",value:function(t,e,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,r,o):e.apply(n,r)}},{key:"handleError",value:function(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)}},{key:"scheduleTask",value:function(t,e){var n=e;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e))||(n=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=M)throw new Error("Task is missing scheduleFn.");b(e)}return n}},{key:"invokeTask",value:function(t,e,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,r):e.callback.apply(n,r)}},{key:"cancelTask",value:function(t,e){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");n=e.cancelFn(e)}return n}},{key:"hasTask",value:function(t,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(n){this.handleError(t,n)}}},{key:"_updateTaskCount",value:function(t,e){var n=this._taskCounts,r=n[t],o=n[t]=r+e;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})}}]),t}(),h=function(){function e(r,o,i,a,c,u){if(n(this,e),this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=o,this.data=a,this.scheduleFn=c,this.cancelFn=u,!i)throw new Error("callback is not defined");this.callback=i;var s=this;this.invoke=r===L&&a&&a.useG?e.invokeTask:function(){return e.invokeTask.call(t,s,this,arguments)}}return o(e,[{key:"cancelScheduleRequest",value:function(){this._transitionTo(T,w)}},{key:"_transitionTo",value:function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(t,"', expecting state '").concat(e,"'").concat(n?" or '"+n+"'":"",", was '").concat(this._state,"'."));this._state=t,t==T&&(this._zoneDelegates=null)}},{key:"toString",value:function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}},{key:"toJSON",value:function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}},{key:"zone",get:function(){return this._zone}},{key:"state",get:function(){return this._state}}],[{key:"invokeTask",value:function(t,e,n){t||(t=this),j++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==j&&E(),j--}}}]),e}(),v=c("setTimeout"),d=c("Promise"),g=c("then"),y=[],m=!1;function b(e){if(0===j&&0===y.length)if(l||t[d]&&(l=t[d].resolve(0)),l){var n=l[g];n||(n=l.then),n.call(l,E)}else t[v](E,0);e&&y.push(e)}function E(){if(!m){for(m=!0;y.length;){var t=y;y=[];for(var e=0;e<t.length;e++){var n=t[e];try{n.zone.runTask(n,null,null)}catch(r){A.onUnhandledError(r)}}}A.microtaskDrainDone(),m=!1}}var k={name:"NO ZONE"},T="notScheduled",w="scheduling",S="scheduled",x="running",_="canceling",O="unknown",M="microTask",I="macroTask",L="eventTask",D={},A={symbol:c,currentZoneFrame:function(){return P},onUnhandledError:N,microtaskDrainDone:N,scheduleMicroTask:b,showUncaughtError:function(){return!s[c("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:N,patchMethod:function(){return N},bindArguments:function(){return[]},patchThen:function(){return N},patchMacroTask:function(){return N},setNativePromise:function(t){t&&"function"==typeof t.resolve&&(l=t.resolve(0))},patchEventPrototype:function(){return N},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return N},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return N},wrapWithCurrentZone:function(){return N},filterProperties:function(){return[]},attachOriginToPatched:function(){return N},_redefineProperty:function(){return N},patchCallbacks:function(){return N}},P={parent:null,zone:new s(null,null)},R=null,j=0;function N(){}i("Zone","Zone"),t.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(function(e,r,i){var a=Object.getOwnPropertyDescriptor,c=Object.defineProperty,u=i.symbol,s=[],l=!0===e[u("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],f=u("Promise"),p=u("then");i.onUnhandledError=function(t){if(i.showUncaughtError()){var e=t&&t.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(t)}},i.microtaskDrainDone=function(){for(var t=function(){var t=s.shift();try{t.zone.runGuarded((function(){throw t}))}catch(e){!function(t){i.onUnhandledError(t);try{var e=r[h];"function"==typeof e&&e.call(this,t)}catch(n){}}(e)}};s.length;)t()};var h=u("unhandledPromiseRejectionHandler");function v(t){return t&&t.then}function d(t){return t}function g(t){return I.reject(t)}var y=u("state"),m=u("value"),b=u("finally"),E=u("parentPromiseValue"),k=u("parentPromiseState");function T(t,e){return function(n){try{S(t,e,n)}catch(r){S(t,!1,r)}}}var w=u("currentTaskTrace");function S(t,e,n){var o,a,u=(o=!1,function(t){return function(){o||(o=!0,t.apply(null,arguments))}});if(t===n)throw new TypeError("Promise resolved with itself");if(null===t[y]){var f=null;try{"object"!=typeof n&&"function"!=typeof n||(f=n&&n.then)}catch(g){return u((function(){S(t,!1,g)}))(),t}if(!1!==e&&n instanceof I&&n.hasOwnProperty(y)&&n.hasOwnProperty(m)&&null!==n[y])_(n),S(t,n[y],n[m]);else if(!1!==e&&"function"==typeof f)try{f.call(n,u(T(t,e)),u(T(t,!1)))}catch(g){u((function(){S(t,!1,g)}))()}else{t[y]=e;var p=t[m];if(t[m]=n,t[b]===b&&!0===e&&(t[y]=t[k],t[m]=t[E]),!1===e&&n instanceof Error){var h=r.currentTask&&r.currentTask.data&&r.currentTask.data.__creationTrace__;h&&c(n,w,{configurable:!0,enumerable:!1,writable:!0,value:h})}for(var v=0;v<p.length;)O(t,p[v++],p[v++],p[v++],p[v++]);if(0==p.length&&0==e){t[y]=0;var d=n;if(!l)try{throw new Error("Uncaught (in promise): "+((a=n)&&a.toString===Object.prototype.toString?(a.constructor&&a.constructor.name||"")+": "+JSON.stringify(a):a?a.toString():Object.prototype.toString.call(a))+(n&&n.stack?"\n"+n.stack:""))}catch(g){d=g}d.rejection=n,d.promise=t,d.zone=r.current,d.task=r.currentTask,s.push(d),i.scheduleMicroTask()}}}return t}var x=u("rejectionHandledHandler");function _(t){if(0===t[y]){try{var e=r[x];e&&"function"==typeof e&&e.call(this,{rejection:t[m],promise:t})}catch(o){}t[y]=!1;for(var n=0;n<s.length;n++)t===s[n].promise&&s.splice(n,1)}}function O(t,e,n,r,o){_(t);var i=t[y],a=i?"function"==typeof r?r:d:"function"==typeof o?o:g;e.scheduleMicroTask("Promise.then",(function(){try{var r=t[m],o=!!n&&b===n[b];o&&(n[E]=r,n[k]=i);var c=e.run(a,void 0,o&&a!==g&&a!==d?[]:[r]);S(n,!0,c)}catch(u){S(n,!1,u)}}),n)}var M=function(){},I=function(){function e(t){n(this,e);if(!(this instanceof e))throw new Error("Must be an instanceof Promise.");this[y]=null,this[m]=[];try{t&&t(T(this,!0),T(this,!1))}catch(r){S(this,!1,r)}}return o(e,null,[{key:"toString",value:function(){return"function ZoneAwarePromise() { [native code] }"}},{key:"resolve",value:function(t){return S(new this(null),!0,t)}},{key:"reject",value:function(t){return S(new this(null),!1,t)}},{key:"race",value:function(e){var n,r,o=new this((function(t,e){n=t,r=e}));function i(t){n(t)}function a(t){r(t)}var c,u=t(e);try{for(u.s();!(c=u.n()).done;){var s=c.value;v(s)||(s=this.resolve(s)),s.then(i,a)}}catch(l){u.e(l)}finally{u.f()}return o}},{key:"all",value:function(t){return e.allWithCallback(t)}},{key:"allSettled",value:function(t){return(this&&this.prototype instanceof e?this:e).allWithCallback(t,{thenCallback:function(t){return{status:"fulfilled",value:t}},errorCallback:function(t){return{status:"rejected",reason:t}}})}},{key:"allWithCallback",value:function(e,n){var r,o,i,a=this,c=new this((function(t,e){r=t,o=e})),u=2,s=0,l=[],f=t(e);try{var p=function(){var t=i.value;v(t)||(t=a.resolve(t));var e=s;try{t.then((function(t){l[e]=n?n.thenCallback(t):t,0===--u&&r(l)}),(function(t){n?(l[e]=n.errorCallback(t),0===--u&&r(l)):o(t)}))}catch(c){o(c)}u++,s++};for(f.s();!(i=f.n()).done;)p()}catch(h){f.e(h)}finally{f.f()}return 0===(u-=2)&&r(l),c}}]),o(e,[{key:"then",value:function(t,n){var o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||e);var i=new o(M),a=r.current;return null==this[y]?this[m].push(a,i,t,n):O(this,a,i,t,n),i}},{key:"catch",value:function(t){return this.then(null,t)}},{key:"finally",value:function(t){var n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=e);var o=new n(M);o[b]=b;var i=r.current;return null==this[y]?this[m].push(i,o,t,t):O(this,i,o,t,t),o}},{key:Symbol.toStringTag,get:function(){return"Promise"}},{key:Symbol.species,get:function(){return e}}]),e}();I.resolve=I.resolve,I.reject=I.reject,I.race=I.race,I.all=I.all;var L=e[f]=e.Promise,D=r.__symbol__("ZoneAwarePromise"),A=a(e,"Promise");A&&!A.configurable||(A&&delete A.writable,A&&delete A.value,A||(A={configurable:!0,enumerable:!0}),A.get=function(){return e[D]?e[D]:e[f]},A.set=function(t){t===I?e[D]=t:(e[f]=t,t.prototype[p]||j(t),i.setNativePromise(t))},c(e,"Promise",A)),e.Promise=I;var P,R=u("thenPatched");function j(t){var e=t.prototype,n=a(e,"then");if(!n||!1!==n.writable&&n.configurable){var r=e.then;e[p]=r,t.prototype.then=function(t,e){var n=this;return new I((function(t,e){r.call(n,t,e)})).then(t,e)},t[R]=!0}}if(i.patchThen=j,L){j(L);var N=e.fetch;"function"==typeof N&&(e[i.symbol("fetch")]=N,e.fetch=(P=N,function(){var t=P.apply(this,arguments);if(t instanceof I)return t;var e=t.constructor;return e[R]||j(e),t}))}return Promise[r.__symbol__("uncaughtPromiseErrors")]=s,I}));var e=Object.getOwnPropertyDescriptor,r=Object.defineProperty,i=Object.getPrototypeOf,a=Object.create,c=Array.prototype.slice,u=Zone.__symbol__("addEventListener"),s=Zone.__symbol__("removeEventListener"),l=Zone.__symbol__("");function f(t,e){return Zone.current.wrap(t,e)}function p(t,e,n,r,o){return Zone.current.scheduleMacroTask(t,e,n,r,o)}var h=Zone.__symbol__,v="undefined"!=typeof window,d=v?window:void 0,g=v&&d||"object"==typeof self&&self||global,y=[null];function m(t,e){for(var n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=f(t[n],e+"_"+n));return t}function b(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}var E="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,k=!("nw"in g)&&void 0!==g.process&&"[object process]"==={}.toString.call(g.process),T=!k&&!E&&!(!v||!d.HTMLElement),w=void 0!==g.process&&"[object process]"==={}.toString.call(g.process)&&!E&&!(!v||!d.HTMLElement),S={},x=function(t){if(t=t||g.event){var e=S[t.type];e||(e=S[t.type]=h("ON_PROPERTY"+t.type));var n,r=this||t.target||g,o=r[e];if(T&&r===d&&"error"===t.type){var i=t;!0===(n=o&&o.call(this,i.message,i.filename,i.lineno,i.colno,i.error))&&t.preventDefault()}else null==(n=o&&o.apply(this,arguments))||n||t.preventDefault();return n}};function _(t,n,o){var i=e(t,n);if(!i&&o&&e(o,n)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=h("on"+n+"patched");if(!t.hasOwnProperty(a)||!t[a]){delete i.writable,delete i.value;var c=i.get,u=i.set,s=n.substr(2),l=S[s];l||(l=S[s]=h("ON_PROPERTY"+s)),i.set=function(e){var n=this;n||t!==g||(n=g),n&&(n[l]&&n.removeEventListener(s,x),u&&u.apply(n,y),"function"==typeof e?(n[l]=e,n.addEventListener(s,x,!1)):n[l]=null)},i.get=function(){var e=this;if(e||t!==g||(e=g),!e)return null;var r=e[l];if(r)return r;if(c){var o=c&&c.call(this);if(o)return i.set.call(this,o),"function"==typeof e.removeAttribute&&e.removeAttribute(n),o}return null},r(t,n,i),t[a]=!0}}}function O(t,e,n){if(e)for(var r=0;r<e.length;r++)_(t,"on"+e[r],n);else{var o=[];for(var i in t)"on"==i.substr(0,2)&&o.push(i);for(var a=0;a<o.length;a++)_(t,o[a],n)}}var M=h("originalInstance");function I(t){var e=g[t];if(e){g[h(t)]=e,g[t]=function(){var n=m(arguments,t);switch(n.length){case 0:this[M]=new e;break;case 1:this[M]=new e(n[0]);break;case 2:this[M]=new e(n[0],n[1]);break;case 3:this[M]=new e(n[0],n[1],n[2]);break;case 4:this[M]=new e(n[0],n[1],n[2],n[3]);break;default:throw new Error("Arg list too long.")}},A(g[t],e);var n,o=new e((function(){}));for(n in o)"XMLHttpRequest"===t&&"responseBlob"===n||function(e){"function"==typeof o[e]?g[t].prototype[e]=function(){return this[M][e].apply(this[M],arguments)}:r(g[t].prototype,e,{set:function(n){"function"==typeof n?(this[M][e]=f(n,t+"."+e),A(this[M][e],n)):this[M][e]=n},get:function(){return this[M][e]}})}(n);for(n in e)"prototype"!==n&&e.hasOwnProperty(n)&&(g[t][n]=e[n])}}function L(t,n,r){for(var o=t;o&&!o.hasOwnProperty(n);)o=i(o);!o&&t[n]&&(o=t);var a=h(n),c=null;if(o&&!(c=o[a])&&(c=o[a]=o[n],b(o&&e(o,n)))){var u=r(c,a,n);o[n]=function(){return u(this,arguments)},A(o[n],c)}return c}function D(t,e,n){var r=null;function o(t){var e=t.data;return e.args[e.cbIdx]=function(){t.invoke.apply(this,arguments)},r.apply(e.target,e.args),t}r=L(t,e,(function(t){return function(e,r){var i=n(e,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?p(i.name,r[i.cbIdx],i,o):t.apply(e,r)}}))}function A(t,e){t[h("OriginalDelegate")]=e}var P=!1,R=!1;function j(){try{var t=d.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(e){}return!1}function N(){if(P)return R;P=!0;try{var t=d.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(R=!0)}catch(e){}return R}Zone.__load_patch("toString",(function(t){var e=Function.prototype.toString,n=h("OriginalDelegate"),r=h("Promise"),o=h("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=t[r];if(a)return e.call(a)}if(this===Error){var c=t[o];if(c)return e.call(c)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}}));var C=!1;if("undefined"!=typeof window)try{var H=Object.defineProperty({},"passive",{get:function(){C=!0}});window.addEventListener("test",H,H),window.removeEventListener("test",H,H)}catch(ft){C=!1}var F={useG:!0},Z={},z={},U=new RegExp("^"+l+"(\\w+)(true|false)$"),W=h("propagationStopped");function G(t,e){var n=(e?e(t):t)+"false",r=(e?e(t):t)+"true",o=l+n,i=l+r;Z[t]={},Z[t].false=o,Z[t].true=i}function B(t,e,n){var r=n&&n.add||"addEventListener",o=n&&n.rm||"removeEventListener",a=n&&n.listeners||"eventListeners",c=n&&n.rmAll||"removeAllListeners",u=h(r),s="."+r+":",f=function(t,e,n){if(!t.isRemoved){var r=t.callback;"object"==typeof r&&r.handleEvent&&(t.callback=function(t){return r.handleEvent(t)},t.originalDelegate=r),t.invoke(t,e,[n]);var i=t.options;i&&"object"==typeof i&&i.once&&e[o].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,i)}},p=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[Z[e.type].false];if(r)if(1===r.length)f(r[0],n,e);else for(var o=r.slice(),i=0;i<o.length&&(!e||!0!==e[W]);i++)f(o[i],n,e)}},v=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[Z[e.type].true];if(r)if(1===r.length)f(r[0],n,e);else for(var o=r.slice(),i=0;i<o.length&&(!e||!0!==e[W]);i++)f(o[i],n,e)}};function d(e,n){if(!e)return!1;var f=!0;n&&void 0!==n.useG&&(f=n.useG);var d=n&&n.vh,g=!0;n&&void 0!==n.chkDup&&(g=n.chkDup);var y=!1;n&&void 0!==n.rt&&(y=n.rt);for(var m=e;m&&!m.hasOwnProperty(r);)m=i(m);if(!m&&e[r]&&(m=e),!m)return!1;if(m[u])return!1;var b,E=n&&n.eventNameToString,T={},w=m[u]=m[r],S=m[h(o)]=m[o],x=m[h(a)]=m[a],_=m[h(c)]=m[c];function O(t,e){return!C&&"object"==typeof t&&t?!!t.capture:C&&e?"boolean"==typeof t?{capture:t,passive:!0}:t?"object"==typeof t&&!1!==t.passive?Object.assign(Object.assign({},t),{passive:!0}):t:{passive:!0}:t}n&&n.prepend&&(b=m[h(n.prepend)]=m[n.prepend]);var M=f?function(t){if(!T.isExisting)return w.call(T.target,T.eventName,T.capture?v:p,T.options)}:function(t){return w.call(T.target,T.eventName,t.invoke,T.options)},I=f?function(t){if(!t.isRemoved){var e,n=Z[t.eventName];n&&(e=n[t.capture?"true":"false"]);var r=e&&t.target[e];if(r)for(var o=0;o<r.length;o++)if(r[o]===t){r.splice(o,1),t.isRemoved=!0,0===r.length&&(t.allRemoved=!0,t.target[e]=null);break}}if(t.allRemoved)return S.call(t.target,t.eventName,t.capture?v:p,t.options)}:function(t){return S.call(t.target,t.eventName,t.invoke,t.options)},L=n&&n.diff?n.diff:function(t,e){var n=typeof e;return"function"===n&&t.callback===e||"object"===n&&t.originalDelegate===e},D=Zone[h("BLACK_LISTED_EVENTS")],P=t[h("PASSIVE_EVENTS")],R=function(e,r,o,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var u=this||t,s=arguments[0];n&&n.transferEventName&&(s=n.transferEventName(s));var l=arguments[1];if(!l)return e.apply(this,arguments);if(k&&"uncaughtException"===s)return e.apply(this,arguments);var p=!1;if("function"!=typeof l){if(!l.handleEvent)return e.apply(this,arguments);p=!0}if(!d||d(e,l,u,arguments)){var h=C&&!!P&&-1!==P.indexOf(s),v=O(arguments[2],h);if(D)for(var y=0;y<D.length;y++)if(s===D[y])return h?e.call(u,s,l,v):e.apply(this,arguments);var m=!!v&&("boolean"==typeof v||v.capture),b=!(!v||"object"!=typeof v)&&v.once,w=Zone.current,S=Z[s];S||(G(s,E),S=Z[s]);var x,_=S[m?"true":"false"],M=u[_],I=!1;if(M){if(I=!0,g)for(var A=0;A<M.length;A++)if(L(M[A],l))return}else M=u[_]=[];var R=u.constructor.name,j=z[R];j&&(x=j[s]),x||(x=R+r+(E?E(s):s)),T.options=v,b&&(T.options.once=!1),T.target=u,T.capture=m,T.eventName=s,T.isExisting=I;var N=f?F:void 0;N&&(N.taskData=T);var H=w.scheduleEventTask(x,l,N,o,i);return T.target=null,N&&(N.taskData=null),b&&(v.once=!0),(C||"boolean"!=typeof H.options)&&(H.options=v),H.target=u,H.capture=m,H.eventName=s,p&&(H.originalDelegate=l),c?M.unshift(H):M.push(H),a?u:void 0}}};return m[r]=R(w,s,M,I,y),b&&(m.prependListener=R(b,".prependListener:",(function(t){return b.call(T.target,T.eventName,t.invoke,T.options)}),I,y,!0)),m[o]=function(){var e=this||t,r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));var o=arguments[2],i=!!o&&("boolean"==typeof o||o.capture),a=arguments[1];if(!a)return S.apply(this,arguments);if(!d||d(S,a,e,arguments)){var c,u=Z[r];u&&(c=u[i?"true":"false"]);var s=c&&e[c];if(s)for(var f=0;f<s.length;f++){var p=s[f];if(L(p,a))return s.splice(f,1),p.isRemoved=!0,0===s.length&&(p.allRemoved=!0,e[c]=null,"string"==typeof r)&&(e[l+"ON_PROPERTY"+r]=null),p.zone.cancelTask(p),y?e:void 0}return S.apply(this,arguments)}},m[a]=function(){var e=this||t,r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));for(var o=[],i=V(e,E?E(r):r),a=0;a<i.length;a++){var c=i[a];o.push(c.originalDelegate?c.originalDelegate:c.callback)}return o},m[c]=function(){var e=this||t,r=arguments[0];if(r){n&&n.transferEventName&&(r=n.transferEventName(r));var i=Z[r];if(i){var a=e[i.false],u=e[i.true];if(a)for(var s=a.slice(),l=0;l<s.length;l++){var f=s[l];this[o].call(this,r,f.originalDelegate?f.originalDelegate:f.callback,f.options)}if(u)for(var p=u.slice(),h=0;h<p.length;h++){var v=p[h];this[o].call(this,r,v.originalDelegate?v.originalDelegate:v.callback,v.options)}}}else{for(var d=Object.keys(e),g=0;g<d.length;g++){var m=U.exec(d[g]),b=m&&m[1];b&&"removeListener"!==b&&this[c].call(this,b)}this[c].call(this,"removeListener")}if(y)return this},A(m[r],w),A(m[o],S),_&&A(m[c],_),x&&A(m[a],x),!0}for(var g=[],y=0;y<e.length;y++)g[y]=d(e[y],n);return g}function V(t,e){if(!e){var n=[];for(var r in t){var o=U.exec(r),i=o&&o[1];if(i&&(!e||i===e)){var a=t[r];if(a)for(var c=0;c<a.length;c++)n.push(a[c])}}return n}var u=Z[e];u||(G(e),u=Z[e]);var s=t[u.false],l=t[u.true];return s?l?s.concat(l):s.slice():l?l.slice():[]}function K(t,e){var n=t.Event;n&&n.prototype&&e.patchMethod(n.prototype,"stopImmediatePropagation",(function(t){return function(e,n){e[W]=!0,t&&t.apply(e,n)}}))}function Y(t,e,n,r,o){var i=Zone.__symbol__(r);if(!e[i]){var a=e[i]=e[r];e[r]=function(i,c,u){return c&&c.prototype&&o.forEach((function(e){var o="".concat(n,".").concat(r,"::")+e,i=c.prototype;if(i.hasOwnProperty(e)){var a=t.ObjectGetOwnPropertyDescriptor(i,e);a&&a.value?(a.value=t.wrapWithCurrentZone(a.value,o),t._redefineProperty(c.prototype,e,a)):i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))}else i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))})),a.call(e,i,c,u)},t.attachOriginToPatched(e[r],a)}}var q=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],X=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],J=["load"],Q=["blur","error","focus","load","resize","scroll","messageerror"],$=["bounce","finish","start"],tt=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],et=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],nt=["close","error","open","message"],rt=["error","message"],ot=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],q,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function it(t,e,n){if(!n||0===n.length)return e;var r=n.filter((function(e){return e.target===t}));if(!r||0===r.length)return e;var o=r[0].ignoreProperties;return e.filter((function(t){return-1===o.indexOf(t)}))}function at(t,e,n,r){t&&O(t,it(t,e,n),r)}function ct(t,e){if((!k||w)&&!Zone[t.symbol("patchEvents")]){var n="undefined"!=typeof WebSocket,r=e.__Zone_ignore_on_properties;if(T){var o=window,a=j?[{target:o,ignoreProperties:["error"]}]:[];at(o,ot.concat(["messageerror"]),r?r.concat(a):r,i(o)),at(Document.prototype,ot,r),void 0!==o.SVGElement&&at(o.SVGElement.prototype,ot,r),at(Element.prototype,ot,r),at(HTMLElement.prototype,ot,r),at(HTMLMediaElement.prototype,X,r),at(HTMLFrameSetElement.prototype,q.concat(Q),r),at(HTMLBodyElement.prototype,q.concat(Q),r),at(HTMLFrameElement.prototype,J,r),at(HTMLIFrameElement.prototype,J,r);var c=o.HTMLMarqueeElement;c&&at(c.prototype,$,r);var u=o.Worker;u&&at(u.prototype,rt,r)}var s=e.XMLHttpRequest;s&&at(s.prototype,tt,r);var l=e.XMLHttpRequestEventTarget;l&&at(l&&l.prototype,tt,r),"undefined"!=typeof IDBIndex&&(at(IDBIndex.prototype,et,r),at(IDBRequest.prototype,et,r),at(IDBOpenDBRequest.prototype,et,r),at(IDBDatabase.prototype,et,r),at(IDBTransaction.prototype,et,r),at(IDBCursor.prototype,et,r)),n&&at(WebSocket.prototype,nt,r)}}Zone.__load_patch("util",(function(t,n,o){o.patchOnProperties=O,o.patchMethod=L,o.bindArguments=m,o.patchMacroTask=D;var i=n.__symbol__("BLACK_LISTED_EVENTS"),u=n.__symbol__("UNPATCHED_EVENTS");t[u]&&(t[i]=t[u]),t[i]&&(n[i]=n[u]=t[i]),o.patchEventPrototype=K,o.patchEventTarget=B,o.isIEOrEdge=N,o.ObjectDefineProperty=r,o.ObjectGetOwnPropertyDescriptor=e,o.ObjectCreate=a,o.ArraySlice=c,o.patchClass=I,o.wrapWithCurrentZone=f,o.filterProperties=it,o.attachOriginToPatched=A,o._redefineProperty=Object.defineProperty,o.patchCallbacks=Y,o.getGlobalObjects=function(){return{globalSources:z,zoneSymbolEventNames:Z,eventNames:ot,isBrowser:T,isMix:w,isNode:k,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:l,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}}));var ut=h("zoneTask");function st(t,e,n,r){var o=null,i=null;n+=r;var a={};function c(e){var n=e.data;return n.args[0]=function(){try{e.invoke.apply(this,arguments)}finally{e.data&&e.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[ut]=null))}},n.handleId=o.apply(t,n.args),e}function u(t){return i(t.data.handleId)}o=L(t,e+=r,(function(n){return function(o,i){if("function"==typeof i[0]){var s=p(e,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},c,u);if(!s)return s;var l=s.data.handleId;return"number"==typeof l?a[l]=s:l&&(l[ut]=s),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(s.ref=l.ref.bind(l),s.unref=l.unref.bind(l)),"number"==typeof l||l?l:s}return n.apply(t,i)}})),i=L(t,n,(function(e){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[ut])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[ut]=null),o.zone.cancelTask(o)):e.apply(t,r)}}))}function lt(t,e){if(!Zone[e.symbol("patchEventTarget")]){for(var n=e.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,i=n.TRUE_STR,a=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,u=0;u<r.length;u++){var s=r[u],l=c+(s+a),f=c+(s+i);o[s]={},o[s][a]=l,o[s][i]=f}var p=t.EventTarget;return p&&p.prototype?(e.patchEventTarget(t,[p&&p.prototype]),!0):void 0}}Zone.__load_patch("legacy",(function(t){var e=t[Zone.__symbol__("legacyPatch")];e&&e()})),Zone.__load_patch("timers",(function(t){st(t,"set","clear","Timeout"),st(t,"set","clear","Interval"),st(t,"set","clear","Immediate")})),Zone.__load_patch("requestAnimationFrame",(function(t){st(t,"request","cancel","AnimationFrame"),st(t,"mozRequest","mozCancel","AnimationFrame"),st(t,"webkitRequest","webkitCancel","AnimationFrame")})),Zone.__load_patch("blocking",(function(t,e){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)L(t,n[r],(function(n,r,o){return function(r,i){return e.current.run(n,t,i,o)}}))})),Zone.__load_patch("EventTarget",(function(t,e,n){!function(t,e){e.patchEventPrototype(t,e)}(t,n),lt(t,n);var r=t.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(t,[r.prototype]),I("MutationObserver"),I("WebKitMutationObserver"),I("IntersectionObserver"),I("FileReader")})),Zone.__load_patch("on_property",(function(t,e,n){ct(n,t)})),Zone.__load_patch("customElements",(function(t,e,n){!function(t,e){var n=e.getGlobalObjects(),r=n.isBrowser,o=n.isMix;(r||o)&&t.customElements&&"customElements"in t&&e.patchCallbacks(e,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,n)})),Zone.__load_patch("XHR",(function(t,e){!function(t){var l=t.XMLHttpRequest;if(l){var f=l.prototype,v=f[u],d=f[s];if(!v){var g=t.XMLHttpRequestEventTarget;if(g){var y=g.prototype;v=y[u],d=y[s]}}var m=L(f,"open",(function(){return function(t,e){return t[r]=0==e[2],t[a]=e[1],m.apply(t,e)}})),b=h("fetchTaskAborting"),E=h("fetchTaskScheduling"),k=L(f,"send",(function(){return function(t,n){if(!0===e.current[E])return k.apply(t,n);if(t[r])return k.apply(t,n);var o={target:t,url:t[a],isPeriodic:!1,args:n,aborted:!1},i=p("XMLHttpRequest.send",S,o,w,x);t&&!0===t[c]&&!o.aborted&&"scheduled"===i.state&&i.invoke()}})),T=L(f,"abort",(function(){return function(t,r){var o=t[n];if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===e.current[b])return T.apply(t,r)}}))}function w(t){var r=t.data,a=r.target;a[i]=!1,a[c]=!1;var l=a[o];v||(v=a[u],d=a[s]),l&&d.call(a,"readystatechange",l);var f=a[o]=function(){if(a.readyState===a.DONE)if(!r.aborted&&a[i]&&"scheduled"===t.state){var n=a[e.__symbol__("loadfalse")];if(n&&n.length>0){var o=t.invoke;t.invoke=function(){for(var n=a[e.__symbol__("loadfalse")],i=0;i<n.length;i++)n[i]===t&&n.splice(i,1);r.aborted||"scheduled"!==t.state||o.call(t)},n.push(t)}else t.invoke()}else r.aborted||!1!==a[i]||(a[c]=!0)};return v.call(a,"readystatechange",f),a[n]||(a[n]=t),k.apply(a,r.args),a[i]=!0,t}function S(){}function x(t){var e=t.data;return e.aborted=!0,T.apply(e.target,e.args)}}(t);var n=h("xhrTask"),r=h("xhrSync"),o=h("xhrListener"),i=h("xhrScheduled"),a=h("xhrURL"),c=h("xhrErrorBeforeScheduled")})),Zone.__load_patch("geolocation",(function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i=n[o],a=t[i];if(a){if(!b(e(t,i)))return"continue";t[i]=function(t){var e=function(){return t.apply(this,m(arguments,r+"."+i))};return A(e,t),e}(a)}},i=0;i<n.length;i++)o(i)}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])})),Zone.__load_patch("PromiseRejectionEvent",(function(t,e){function n(e){return function(n){V(t,e).forEach((function(r){var o=t.PromiseRejectionEvent;if(o){var i=new o(e,{promise:n.promise,reason:n.rejection});r.invoke(i)}}))}}t.PromiseRejectionEvent&&(e[h("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[h("rejectionHandledHandler")]=n("rejectionhandled"))}))})?a.call(r,i,r,e):a)||(e.exports=c)},pNMO:function(t,e,n){"use strict";var r=n("I+eb"),o=n("2oRo"),i=n("0GbY"),a=n("xDBR"),c=n("g6v/"),u=n("STAE"),s=n("/b8u"),l=n("0Dky"),f=n("UTVS"),p=n("6LWA"),h=n("hh1v"),v=n("glrk"),d=n("ewvW"),g=n("/GqU"),y=n("wE6v"),m=n("XGwC"),b=n("fHMY"),E=n("33Wh"),k=n("JBy8"),T=n("BX/b"),w=n("dBg+"),S=n("Bs8V"),x=n("m/L8"),_=n("0eef"),O=n("kRJp"),M=n("busE"),I=n("VpIT"),L=n("93I0"),D=n("0BK2"),A=n("kOOl"),P=n("tiKp"),R=n("5Tg+"),j=n("dG/n"),N=n("1E5z"),C=n("afO8"),H=n("tycR").forEach,F=L("hidden"),Z=P("toPrimitive"),z=C.set,U=C.getterFor("Symbol"),W=Object.prototype,G=o.Symbol,B=i("JSON","stringify"),V=S.f,K=x.f,Y=T.f,q=_.f,X=I("symbols"),J=I("op-symbols"),Q=I("string-to-symbol-registry"),$=I("symbol-to-string-registry"),tt=I("wks"),et=o.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=c&&l((function(){return 7!=b(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=V(W,e);r&&delete W[e],K(t,e,n),r&&t!==W&&K(W,e,r)}:K,ot=function(t,e){var n=X[t]=b(G.prototype);return z(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},it=s?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof G},at=function t(e,n,r){e===W&&t(J,n,r),v(e);var o=y(n,!0);return v(r),f(X,o)?(r.enumerable?(f(e,F)&&e[F][o]&&(e[F][o]=!1),r=b(r,{enumerable:m(0,!1)})):(f(e,F)||K(e,F,m(1,{})),e[F][o]=!0),rt(e,o,r)):K(e,o,r)},ct=function(t,e){v(t);var n=g(e),r=E(n).concat(ft(n));return H(r,(function(e){c&&!ut.call(n,e)||at(t,e,n[e])})),t},ut=function(t){var e=y(t,!0),n=q.call(this,e);return!(this===W&&f(X,e)&&!f(J,e))&&(!(n||!f(this,e)||!f(X,e)||f(this,F)&&this[F][e])||n)},st=function(t,e){var n=g(t),r=y(e,!0);if(n!==W||!f(X,r)||f(J,r)){var o=V(n,r);return!o||!f(X,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},lt=function(t){var e=Y(g(t)),n=[];return H(e,(function(t){f(X,t)||f(D,t)||n.push(t)})),n},ft=function(t){var e=t===W,n=Y(e?J:g(t)),r=[];return H(n,(function(t){!f(X,t)||e&&!f(W,t)||r.push(X[t])})),r};u||(M((G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=A(t),n=function t(n){this===W&&t.call(J,n),f(this,F)&&f(this[F],e)&&(this[F][e]=!1),rt(this,e,m(1,n))};return c&&nt&&rt(W,e,{configurable:!0,set:n}),ot(e,t)}).prototype,"toString",(function(){return U(this).tag})),M(G,"withoutSetter",(function(t){return ot(A(t),t)})),_.f=ut,x.f=at,S.f=st,k.f=T.f=lt,w.f=ft,R.f=function(t){return ot(P(t),t)},c&&(K(G.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),a||M(W,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),H(E(tt),(function(t){j(t)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(f(Q,e))return Q[e];var n=G(e);return Q[e]=n,$[n]=e,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(f($,t))return $[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(t,e){return void 0===e?b(t):ct(b(t),e)},defineProperty:at,defineProperties:ct,getOwnPropertyDescriptor:st}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt,getOwnPropertySymbols:ft}),r({target:"Object",stat:!0,forced:l((function(){w.f(1)}))},{getOwnPropertySymbols:function(t){return w.f(d(t))}}),B&&r({target:"JSON",stat:!0,forced:!u||l((function(){var t=G();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(h(e)||void 0!==t)&&!it(t))return p(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!it(e))return e}),o[1]=e,B.apply(null,o)}}),G.prototype[Z]||O(G.prototype,Z,G.prototype.valueOf),N(G,"Symbol"),D[F]=!0},piMb:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").every,i=n("pkCn"),a=n("rkAj"),c=i("every"),u=a("every");r({target:"Array",proto:!0,forced:!c||!u},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},pjDv:function(t,e,n){var r=n("I+eb"),o=n("TfTi");r({target:"Array",stat:!0,forced:!n("HH4o")((function(t){Array.from(t)}))},{from:o})},pkCn:function(t,e,n){"use strict";var r=n("0Dky");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},ppGB:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"qHT+":function(t,e,n){var r=n("I+eb"),o=n("FF6l"),i=n("RNIs");r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},qePV:function(t,e,n){"use strict";var r=n("g6v/"),o=n("2oRo"),i=n("lMq5"),a=n("busE"),c=n("UTVS"),u=n("xrYK"),s=n("cVYH"),l=n("wE6v"),f=n("0Dky"),p=n("fHMY"),h=n("JBy8").f,v=n("Bs8V").f,d=n("m/L8").f,g=n("WKiH").trim,y=o.Number,m=y.prototype,b="Number"==u(p(m)),E=function(t){var e,n,r,o,i,a,c,u,s=l(t,!1);if("string"==typeof s&&s.length>2)if(43===(e=(s=g(s)).charCodeAt(0))||45===e){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=s.slice(2)).length,c=0;c<a;c++)if((u=i.charCodeAt(c))<48||u>o)return NaN;return parseInt(i,r)}return+s};if(i("Number",!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var k,T=function t(e){var n=arguments.length<1?0:e,r=this;return r instanceof t&&(b?f((function(){m.valueOf.call(r)})):"Number"!=u(r))?s(new y(E(n)),r,t):E(n)},w=r?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)c(y,k=w[S])&&!c(T,k)&&d(T,k,v(y,k));T.prototype=m,m.constructor=T,a(o,"Number",T)}},qxPZ:function(t,e,n){var r=n("tiKp")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(o){}}return!1}},"r/Vq":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},r5Og:function(t,e,n){var r=n("I+eb"),o=n("hh1v"),i=n("8YOa").onFreeze,a=n("uy83"),c=n("0Dky"),u=Object.seal;r({target:"Object",stat:!0,forced:c((function(){u(1)})),sham:!a},{seal:function(t){return u&&o(t)?u(i(t)):t}})},rB9j:function(t,e,n){"use strict";var r=n("I+eb"),o=n("kmMV");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},rKzb:function(t,e,n){"use strict";var r=n("4syw"),o=n("8YOa").getWeakData,i=n("glrk"),a=n("hh1v"),c=n("GarU"),u=n("ImZN"),s=n("tycR"),l=n("UTVS"),f=n("afO8"),p=f.set,h=f.getterFor,v=s.find,d=s.findIndex,g=0,y=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=d(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,s){var f=t((function(t,r){c(t,f,e),p(t,{type:e,id:g++,frozen:void 0}),null!=r&&u(r,t[s],t,n)})),v=h(e),d=function(t,e,n){var r=v(t),a=o(i(e),!0);return!0===a?y(r).set(e,n):a[r.id]=n,t};return r(f.prototype,{delete:function(t){var e=v(this);if(!a(t))return!1;var n=o(t);return!0===n?y(e).delete(t):n&&l(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!a(t))return!1;var n=o(t);return!0===n?y(e).has(t):n&&l(n,e.id)}}),r(f.prototype,n?{get:function(t){var e=v(this);if(a(t)){var n=o(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return d(this,t,e)}}:{add:function(t){return d(this,t,!0)}}),f}}},rMz7:function(t,e,n){var r=n("I+eb"),o=n("ZOXb");r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},rNhl:function(t,e,n){var r=n("I+eb"),o=n("fhKU");r({global:!0,forced:parseFloat!=o},{parseFloat:o})},rW0t:function(t,e,n){"use strict";var r=n("glrk");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},rkAj:function(t,e,n){var r=n("g6v/"),o=n("0Dky"),i=n("UTVS"),a=Object.defineProperty,c={},u=function(t){throw t};t.exports=function(t,e){if(i(c,t))return c[t];e||(e={});var n=[][t],s=!!i(e,"ACCESSORS")&&e.ACCESSORS,l=i(e,0)?e[0]:u,f=i(e,1)?e[1]:void 0;return c[t]=!!n&&!o((function(){if(s&&!r)return!0;var t={length:-1};s?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,l,f)}))}},rpNk:function(t,e,n){"use strict";var r,o,i,a=n("4WOD"),c=n("kRJp"),u=n("UTVS"),s=n("tiKp"),l=n("xDBR"),f=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),l||u(r,f)||c(r,f,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},rwPt:function(t,e,n){var r=n("0Dky");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},sEFX:function(t,e,n){"use strict";var r=n("AO7/"),o=n("9d/t");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},sMBO:function(t,e,n){var r=n("g6v/"),o=n("m/L8").f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},tW5y:function(t,e,n){"use strict";var r=n("hh1v"),o=n("m/L8"),i=n("4WOD"),a=n("tiKp")("hasInstance"),c=Function.prototype;a in c||o.f(c,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},tXUg:function(t,e,n){var r,o,i,a,c,u,s,l,f=n("2oRo"),p=n("Bs8V").f,h=n("xrYK"),v=n("LPSS").set,d=n("HNyW"),g=f.MutationObserver||f.WebKitMutationObserver,y=f.process,m=f.Promise,b="process"==h(y),E=p(f,"queueMicrotask"),k=E&&E.value;k||(r=function(){var t,e;for(b&&(t=y.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(n){throw o?a():i=void 0,n}}i=void 0,t&&t.enter()},b?a=function(){y.nextTick(r)}:g&&!d?(c=!0,u=document.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=c=!c}):m&&m.resolve?(s=m.resolve(void 0),l=s.then,a=function(){l.call(s,r)}):a=function(){v.call(f,r)}),t.exports=k||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},tiKp:function(t,e,n){var r=n("2oRo"),o=n("VpIT"),i=n("UTVS"),a=n("kOOl"),c=n("STAE"),u=n("/b8u"),s=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;t.exports=function(t){return i(s,t)||(s[t]=c&&i(l,t)?l[t]:f("Symbol."+t)),s[t]}},tjZM:function(t,e,n){n("dG/n")("asyncIterator")},tkto:function(t,e,n){var r=n("I+eb"),o=n("ewvW"),i=n("33Wh");r({target:"Object",stat:!0,forced:n("0Dky")((function(){i(1)}))},{keys:function(t){return i(o(t))}})},"tl/u":function(t,e,n){var r=n("I+eb"),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?i:o)(t)}})},toAj:function(t,e,n){"use strict";var r=n("I+eb"),o=n("ppGB"),i=n("QIpd"),a=n("EUja"),c=n("0Dky"),u=1..toFixed,s=Math.floor,l=function t(e,n,r){return 0===n?r:n%2==1?t(e,n-1,r*e):t(e*e,n/2,r)};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c((function(){u.call({})}))},{toFixed:function(t){var e,n,r,c,u=i(this),f=o(t),p=[0,0,0,0,0,0],h="",v="0",d=function(t,e){for(var n=-1,r=e;++n<6;)p[n]=(r+=t*p[n])%1e7,r=s(r/1e7)},g=function(t){for(var e=6,n=0;--e>=0;)p[e]=s((n+=p[e])/t),n=n%t*1e7},y=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==p[t]){var n=String(p[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(h="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*l(2,69,1))-69)<0?u*l(2,-e,1):u/l(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=f;r>=7;)d(1e7,0),r-=7;for(d(l(10,r,1),0),r=e-1;r>=23;)g(1<<23),r-=23;g(1<<r),d(1,1),g(2),v=y()}else d(0,n),d(1<<-e,0),v=y()+a.call("0",f);return f>0?h+((c=v.length)<=f?"0."+a.call("0",f-c)+v:v.slice(0,c-f)+"."+v.slice(c-f)):h+v}})},tycR:function(t,e,n){var r=n("A2ZE"),o=n("RK3t"),i=n("ewvW"),a=n("UMSQ"),c=n("ZfDv"),u=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,l=4==t,f=6==t,p=5==t||f;return function(h,v,d,g){for(var y,m,b=i(h),E=o(b),k=r(v,d,3),T=a(E.length),w=0,S=g||c,x=e?S(h,T):n?S(h,0):void 0;T>w;w++)if((p||w in E)&&(m=k(y=E[w],w,b),t))if(e)x[w]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return w;case 2:u.call(x,y)}else if(l)return!1;return f?-1:s||l?l:x}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},uL8W:function(t,e,n){n("I+eb")({target:"Object",stat:!0,sham:!n("g6v/")},{create:n("fHMY")})},uqXc:function(t,e,n){var r=n("I+eb"),o=n("5Yz+");r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},uy83:function(t,e,n){var r=n("0Dky");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},vAFs:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},vo4V:function(t,e,n){var r=n("90hW"),o=Math.abs,i=Math.pow,a=i(2,-52),c=i(2,-23),u=i(2,127)*(2-c),s=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=o(t),l=r(t);return i<s?l*(i/s/c+1/a-1/a)*s*c:(n=(e=(1+c/a)*i)-(e-i))>u||n!=n?l*(1/0):l*n}},w1rZ:function(t,e,n){var r=n("I+eb"),o=n("fhKU");r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},wE6v:function(t,e,n){var r=n("hh1v");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},wLYn:function(t,e,n){n("I+eb")({target:"Function",proto:!0},{bind:n("BTho")})},wg0c:function(t,e,n){var r=n("2oRo"),o=n("WKiH").trim,i=n("WJkJ"),a=r.parseInt,c=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");t.exports=u?function(t,e){var n=o(String(t));return a(n,e>>>0||(c.test(n)?16:10))}:a},x0AG:function(t,e,n){"use strict";var r=n("I+eb"),o=n("tycR").findIndex,i=n("RNIs"),a=n("rkAj"),c=!0,u=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},x83w:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("fixed")},{fixed:function(){return o(this,"tt","","")}})},xDBR:function(t,e){t.exports=!1},xdBZ:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("italics")},{italics:function(){return o(this,"i","","")}})},xrYK:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},xs3f:function(t,e,n){var r=n("2oRo"),o=n("zk60"),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},yNLB:function(t,e,n){var r=n("0Dky"),o=n("WJkJ");t.exports=function(t){return r((function(){return!!o[t]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[t]()||o[t].name!==t}))}},yQYn:function(t,e,n){var r=n("I+eb"),o=n("0Dky"),i=n("hh1v"),a=Object.isExtensible;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isExtensible:function(t){return!!i(t)&&(!a||a(t))}})},yWo2:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("small")},{small:function(){return o(this,"small","","")}})},yXV3:function(t,e,n){"use strict";var r=n("I+eb"),o=n("TWQb").indexOf,i=n("pkCn"),a=n("rkAj"),c=[].indexOf,u=!!c&&1/[1].indexOf(1,-0)<0,s=i("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:u||!s||!l},{indexOf:function(t){return u?c.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},yiG3:function(t,e,n){n("I+eb")({target:"Math",stat:!0},{log1p:n("HsHA")})},yoRg:function(t,e,n){var r=n("UTVS"),o=n("/GqU"),i=n("TWQb").indexOf,a=n("0BK2");t.exports=function(t,e){var n,c=o(t),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;e.length>u;)r(c,n=e[u++])&&(~i(s,n)||s.push(n));return s}},yyme:function(t,e,n){var r=n("I+eb"),o=n("gdVl"),i=n("RNIs");r({target:"Array",proto:!0},{fill:o}),i("fill")},zBJ4:function(t,e,n){var r=n("2oRo"),o=n("hh1v"),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},zHFu:function(t,e,n){"use strict";var r=n("I+eb"),o=n("hXpO");r({target:"String",proto:!0,forced:n("rwPt")("bold")},{bold:function(){return o(this,"b","","")}})},zKZe:function(t,e,n){var r=n("I+eb"),o=n("YNrV");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},zfnd:function(t,e,n){var r=n("glrk"),o=n("hh1v"),i=n("8GlL");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},zk60:function(t,e,n){var r=n("2oRo"),o=n("kRJp");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},zuhW:function(t,e,n){var r=n("I+eb"),o=n("hh1v"),i=n("8YOa").onFreeze,a=n("uy83"),c=n("0Dky"),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:c((function(){u(1)})),sham:!a},{preventExtensions:function(t){return u&&o(t)?u(i(t)):t}})}},[[2,0]]])}();!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,n,r){return(t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,n,r||e)}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}function a(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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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)}}function u(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function c(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}}),t&&m(e,t)}function d(e){var t=g();return function(){var n,r=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,y(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),m(r,e)})(e)}function p(e,t,n){return(p=g()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&m(i,n.prototype),i}).apply(null,arguments)}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("BSTl")},1:function(e,t){},"2u/s":function(o,a,l){var g,m;g=window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}),(m=g.en=g.en||{}).dictionary=Object.assign(m.dictionary||{},{"%0 of %1":"%0 of %1","Align center":"Align center","Align left":"Align left","Align right":"Align right",Aquamarine:"Aquamarine",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading","Choose language":"Choose language",Code:"Code",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor toolbar":"Editor toolbar","Full size image":"Full size image",Green:"Green",Grey:"Grey","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6","Horizontal line":"Horizontal line","Image toolbar":"Image toolbar","image widget":"image widget","Increase indent":"Increase indent",Insert:"Insert","Insert code block":"Insert code block","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Italic:"Italic",Justify:"Justify",Language:"Language","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","Numbered List":"Numbered List","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab",Orange:"Orange",Paragraph:"Paragraph","Plain text":"Plain text",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove Format":"Remove Format","Remove language":"Remove language","Rich Text Editor":"Rich Text Editor","Rich Text Editor, %0":"Rich Text Editor, %0","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Strikethrough:"Strikethrough","Table toolbar":"Table toolbar","Text alignment":"Text alignment","Text alignment toolbar":"Text alignment toolbar","Text alternative":"Text alternative","This link has no URL":"This link has no URL","To-do List":"To-do List",Turquoise:"Turquoise",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar",Yellow:"Yellow"}),window,o.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="",n(n.s=120)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this,"".concat(e).concat(i?" "+JSON.stringify(i):"").concat(a(e)))).name="CKEditorError",o.context=r,o.data=i,o}return u(n,[{key:"is",value:function(e){return"CKEditorError"===e}}],[{key:"rethrowUnexpectedError",value:function(e,t){if(e.is&&e.is("CKEditorError"))throw e;var r=new n(e.message,t);throw r.stack=e.stack,r}}]),n}(v(Error));function o(e,t){var n;(n=console).warn.apply(n,i(function(e,t){var n=a(e);return t?[e,t,n]:[e,n]}(e,t)))}function a(e){return"\nRead more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-"+e}},function(e,t,n){"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],l=t.base?s[0]+t.base:s[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var d=a(c),h={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(o[d].references++,o[d].updater(h)):o.push({identifier:c,updater:p(h,t),references:1}),r.push(c)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,c=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=c(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,v=0;function p(e,t){var n,r,i;if(t.singleton){var o=v++;n=f||(f=l(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=l(t),r=h.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var l=s(e,t),u=0;u<n.length;u++){var c=a(n[u]);0===o[c].references&&(o[c].updater(),o.splice(c,1))}n=l}}}},,function(e,t,n){"use strict";var r=n(7),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();t.a=o},function(e,t,n){"use strict";(function(e){var r=n(3),i=n(14),o=a&&!a.nodeType&&a,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=s&&s.exports===o?r.a.Buffer:void 0;t.a=(l?l.isBuffer:void 0)||i.a}).call(this,n(9)(e))},function(e,t,n){"use strict";(function(e){var r=n(7),i=a&&!a.nodeType&&a,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i&&r.a.process,l=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();t.a=l}).call(this,n(9)(e))},function(e,t,n){"use strict";(function(e){var t=n(0),r="object"==typeof window?window:e;if(r.CKEDITOR_VERSION)throw new t.a("ckeditor-duplicated-modules",null);r.CKEDITOR_VERSION="28.0.0"}).call(this,n(11))},function(e,t,n){"use strict";(function(e){t.a="object"==typeof e&&e&&e.Object===Object&&e}).call(this,n(11))},function(e,t,n){"use strict";(function(e){var r=n(3),i=a&&!a.nodeType&&a,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.a.Buffer:void 0,l=s?s.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(9)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(1),i=n(76);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(1),i=n(71);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){var r=n(1),i=n(117);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){var r=n(1),i=n(16);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}"},function(e,t,n){var r=n(1),i=n(18);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(e,t,n){var r=n(1),i=n(20);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s,.ck.ck-tooltip.ck-tooltip_se,.ck.ck-tooltip.ck-tooltip_sw{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{top:calc(var(--ck-tooltip-arrow-size)*-1 + 1px);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_sw{right:50%;left:auto}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text{left:auto;right:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{left:auto;right:0}.ck.ck-tooltip.ck-tooltip_se{left:50%;right:auto}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text{right:auto;left:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after{right:auto;left:0;transform:translateX(50%)}.ck.ck-tooltip.ck-tooltip_n{top:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip.ck-tooltip_e{left:calc(100% + var(--ck-tooltip-arrow-size));top:50%}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text:after{left:calc(var(--ck-tooltip-arrow-size)*-1);top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:transparent;border-bottom-color:transparent;border-right-color:var(--ck-color-tooltip-background);border-top-color:transparent;border-left-width:0;border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip.ck-tooltip_w{right:calc(100% + var(--ck-tooltip-arrow-size));left:auto;top:50%}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text:after{left:100%;top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:var(--ck-color-tooltip-background);border-bottom-color:transparent;border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:0;border-top-width:var(--ck-tooltip-arrow-size)}'},function(e,t,n){var r=n(1),i=n(22);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(var(--ck-spacing-small)*-1);margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(e,t,n){var r=n(1),i=n(24);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - var(--ck-switch-button-toggle-spacing)*2)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*0.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var(--ck-switch-button-translation)*-1))}"},function(e,t,n){var r=n(1),i=n(26);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{display:none;color:var(--ck-color-color-grid-check-icon)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}"},function(e,t,n){var r=n(1),i=n(28);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}"},function(e,t,n){var r=n(1),i=n(30);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);max-width:var(--ck-dropdown-max-width);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(e,t,n){var r=n(1),i=n(32);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(e,t,n){var r=n(1),i=n(34);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(e,t,n){var r=n(1),i=n(36);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{width:max-content;max-width:var(--ck-toolbar-dropdown-max-width)}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(e,t,n){var r=n(1),i=n(38);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var r=n(1),i=n(40);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(e,t,n){var r=n(1),i=n(42);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(e,t,n){var r=n(1),i=n(44);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-form__header{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{padding:var(--ck-spacing-small) var(--ck-spacing-large);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-form__header .ck-form__header__label{font-weight:700}"},function(e,t,n){var r=n(1),i=n(46);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(e,t,n){var r=n(1),i=n(48);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{pointer-events:none;transform-origin:0 0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);background:var(--ck-color-labeled-field-label-background);padding:0 calc(var(--ck-font-size-tiny)*0.5);line-height:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden;max-width:100%;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-spacing-medium),calc(var(--ck-font-size-base)*0.6)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-spacing-medium)*-1),calc(var(--ck-font-size-base)*0.6)) scale(1)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));background:transparent;padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}"},function(e,t,n){var r=n(1),i=n(50);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border);filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}'},function(e,t,n){var r=n(1),i=n(52);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(e,t,n){var r=n(1),i=n(54);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(e,t,n){var r=n(1),i=n(56);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var r=n(1),i=n(58);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}"},function(e,t,n){var r=n(1),i=n(60);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-placeholder,.ck .ck-placeholder{position:relative}.ck.ck-placeholder:before,.ck .ck-placeholder:before{position:absolute;left:0;right:0;content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}"},function(e,t,n){var r=n(1),i=n(62);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(e,t,n){var r=n(1),i=n(64);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(var(--ck-widget-outline-thickness)*-0.5);left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-0.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}'},function(e,t,n){var r=n(1),i=n(66);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness));top:0}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(e,t,n){var r=n(1),i=n(68);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports='.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;position:relative;pointer-events:none}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);top:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);border:1px solid var(--ck-clipboard-drop-target-color);background:var(--ck-clipboard-drop-target-color);margin-left:-1px}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{content:"";width:0;height:0;display:block;position:absolute;left:50%;top:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);transform:translateX(-50%);border-left:calc(var(--ck-clipboard-drop-target-dot-width)*0.5) solid transparent;border-bottom:0 solid transparent;border-right:calc(var(--ck-clipboard-drop-target-dot-width)*0.5) solid transparent;border-top:calc(var(--ck-clipboard-drop-target-dot-height)) solid var(--ck-clipboard-drop-target-color)}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}'},function(e,t,n){var r=n(1),i=n(70);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}"},function(e,t){e.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(e,t,n){var r=n(1),i=n(73);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}"},function(e,t,n){var r=n(1),i=n(75);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}"},function(e,t){e.exports='.ck-vertical-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-text-width)*0.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-large);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}'},function(e,t,n){var r=n(1),i=n(78);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{position:static}"},function(e,t,n){var r=n(1),i=n(80);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}"},function(e,t,n){var r=n(1),i=n(82);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(e,t,n){var r=n(1),i=n(84);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(e,t,n){var r=n(1),i=n(86);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(e,t,n){var r=n(1),i=n(88);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(e,t,n){var r=n(1),i=n(90);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(e,t,n){var r=n(1),i=n(92);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}"},function(e,t,n){var r=n(1),i=n(94);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(e,t,n){var r=n(1),i=n(96);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(e,t,n){var r=n(1),i=n(98);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(e,t,n){var r=n(1),i=n(100);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}"},function(e,t,n){var r=n(1),i=n(102);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content pre{padding:1em;color:#353535;background:hsla(0,0%,78%,.3);border:1px solid #c4c4c4;border-radius:2px;text-align:left;direction:ltr;tab-size:4;white-space:pre-wrap;font-style:normal;min-width:200px}.ck-content pre code{background:unset;padding:0;border-radius:0}.ck.ck-editor__editable pre{position:relative}.ck.ck-editor__editable pre[data-language]:after{content:attr(data-language);position:absolute}:root{--ck-color-code-block-label-background:#757575}.ck.ck-editor__editable pre[data-language]:after{top:-1px;right:10px;background:var(--ck-color-code-block-label-background);font-size:10px;font-family:var(--ck-font-face);line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);color:#fff;white-space:nowrap}.ck.ck-code-block-dropdown .ck-dropdown__panel{max-height:250px;overflow-y:auto;overflow-x:hidden}"},function(e,t,n){var r=n(1),i=n(104);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-mention-list-max-height:300px}.ck.ck-mentions{max-height:var(--ck-mention-list-max-height);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.ck.ck-mentions>.ck-list__item{overflow:hidden;flex-shrink:0}"},function(e,t,n){var r=n(1),i=n(106);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-color-mention-background:rgba(153,0,48,0.1);--ck-color-mention-text:#990030}.ck-content .mention{background:var(--ck-color-mention-background);color:var(--ck-color-mention-text)}"},function(e,t,n){var r=n(1),i=n(108);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{margin:15px 0;height:4px;background:#dedede;border:0}"},function(e,t,n){var r=n(1),i=n(110);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;display:inline-block;position:relative;width:var(--ck-todo-list-checkmark-size);height:var(--ck-todo-list-checkmark-size);vertical-align:middle;border:0;left:-25px;margin-right:-15px;right:0;margin-left:0}.ck-content .todo-list .todo-list__label>input:before{display:block;position:absolute;box-sizing:border-box;content:"";width:100%;height:100%;border:1px solid #333;border-radius:2px;transition:box-shadow .25s ease-in-out,background .25s ease-in-out,border .25s ease-in-out}.ck-content .todo-list .todo-list__label>input:after{display:block;position:absolute;box-sizing:content-box;pointer-events:none;content:"";left:calc(var(--ck-todo-list-checkmark-size)/3);top:calc(var(--ck-todo-list-checkmark-size)/5.3);width:calc(var(--ck-todo-list-checkmark-size)/5.3);height:calc(var(--ck-todo-list-checkmark-size)/2.6);border-left:0 solid transparent;border-bottom:calc(var(--ck-todo-list-checkmark-size)/8) solid transparent;border-right:calc(var(--ck-todo-list-checkmark-size)/8) solid transparent;border-top:0 solid transparent;transform:rotate(45deg)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-right:0;right:-25px;margin-left:-15px}.ck-editor__editable .todo-list .todo-list__label>input{cursor:pointer}.ck-editor__editable .todo-list .todo-list__label>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}'},function(e,t,n){var r=n(1),i=n(112);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}"},function(e,t,n){var r=n(1),i=n(114);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-image-insert__panel{padding:var(--ck-spacing-large)}.ck.ck-image-insert__ck-finder-button{display:block;width:100%;margin:var(--ck-spacing-standard) auto;border:1px solid #ccc;border-radius:var(--ck-border-radius)}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{padding:0;margin:0;border:none}"},function(e,t,n){var r=n(1),i=n(116);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-link-image_icon{position:absolute;top:var(--ck-spacing-medium);right:var(--ck-spacing-medium);width:28px;height:28px;padding:4px;box-sizing:border-box;border-radius:var(--ck-border-radius)}.ck.ck-link-image_icon svg{fill:currentColor}.ck.ck-link-image_icon{color:#fff;background:rgba(0,0,0,.4)}"},function(e,t){e.exports=".ck-content code{background-color:hsla(0,0%,78%,.3);padding:.15em;border-radius:2px}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}"},function(e,t,n){var r=n(1),i=n(119);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content span[lang]{font-style:italic}"},function(o,a,l){"use strict";var v=regeneratorRuntime.mark(cs),g=regeneratorRuntime.mark(ds),m=regeneratorRuntime.mark(kc);l.r(a),l.d(a,"default",(function(){return ty}));var k=function e(t,n){s(this,e),this.source=t,this.name=n,this.path=[],this.stop=function e(){e.called=!0},this.off=function e(){e.called=!0}},b=new Array(256).fill().map((function(e,t){return("0"+t.toString(16)).slice(-2)}));function _(){var e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0;return"e"+b[e>>0&255]+b[e>>8&255]+b[e>>16&255]+b[e>>24&255]+b[t>>0&255]+b[t>>8&255]+b[t>>16&255]+b[t>>24&255]+b[n>>0&255]+b[n>>8&255]+b[n>>16&255]+b[n>>24&255]+b[r>>0&255]+b[r>>8&255]+b[r>>16&255]+b[r>>24&255]}var w={get:function(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},C=(l(6),l(0)),x=Symbol("listeningTo"),S=Symbol("emitterId"),A={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,e,t,n)},once:function(e,t,n){var r=!1;this.listenTo(this,e,(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=!0,e.off(),t.call.apply(t,[this,e].concat(i)))}),n)},off:function(e,t){this.stopListening(this,e,t)},listenTo:function(e,t,n){var r,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this[x]||(this[x]={});var a=this[x];T(e)||E(e);var s=T(e);(r=a[s])||(r=a[s]={emitter:e,callbacks:{}}),(i=r.callbacks[t])||(i=r.callbacks[t]=[]),i.push(n),function(e,t,n,r,i){t._addEventListener?t._addEventListener(n,r,i):e._addEventListener.call(t,n,r,i)}(this,e,t,n,o)},stopListening:function(e,t,n){var r=this[x],i=e&&T(e),o=r&&i&&r[i],a=o&&t&&o.callbacks[t];if(!(!r||e&&!o||t&&!a))if(n)O(this,e,t,n),-1!==a.indexOf(n)&&(1===a.length?delete o.callbacks[t]:O(this,e,t,n));else if(a){for(;n=a.pop();)O(this,e,t,n);delete o.callbacks[t]}else if(o){for(t in o.callbacks)this.stopListening(e,t);delete r[i]}else{for(i in r)this.stopListening(r[i].emitter);delete this[x]}},fire:function(e){try{for(var t=e instanceof k?e:new k(this,e),n=t.name,r=function e(t,n){var r;return t._events&&(r=t._events[n])&&r.callbacks.length?r.callbacks:n.indexOf(":")>-1?e(t,n.substr(0,n.lastIndexOf(":"))):null}(this,n),i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(t.path.push(this),r){var s=[t].concat(o);r=Array.from(r);for(var l=0;l<r.length&&(r[l].callback.apply(this,s),t.off.called&&(delete t.off.called,this._removeEventListener(n,r[l].callback)),!t.stop.called);l++);}if(this._delegations){var u=this._delegations.get(n),c=this._delegations.get("*");u&&I(u,t,o),c&&I(c,t,o)}return t.return}catch(e){C.a.rethrowUnexpectedError(e,this)}},delegate:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{to:function(t,r){e._delegations||(e._delegations=new Map),n.forEach((function(n){var i=e._delegations.get(n);i?i.set(t,r):e._delegations.set(n,new Map([[t,r]]))}))}}},stopDelegating:function(e,t){if(this._delegations)if(e)if(t){var n=this._delegations.get(e);n&&n.delete(t)}else this._delegations.delete(e);else this._delegations.clear()},_addEventListener:function(e,t,n){!function(e,t){var n=P(e);if(!n[t]){for(var i=t,o=null,a=[];""!==i&&!n[i];)n[i]={callbacks:[],childEvents:[]},a.push(n[i]),o&&n[i].childEvents.push(o),o=i,i=i.substr(0,i.lastIndexOf(":"));if(""!==i){var s,l=r(a);try{for(l.s();!(s=l.n()).done;){s.value.callbacks=n[i].callbacks.slice()}}catch(u){l.e(u)}finally{l.f()}n[i].childEvents.push(o)}}}(this,e);var i,o=R(this,e),a=w.get(n.priority),s={callback:t,priority:a},l=r(o);try{for(l.s();!(i=l.n()).done;){for(var u=i.value,c=!1,d=0;d<u.length;d++)if(u[d].priority<a){u.splice(d,0,s),c=!0;break}c||u.push(s)}}catch(h){l.e(h)}finally{l.f()}},_removeEventListener:function(e,t){var n,i=r(R(this,e));try{for(i.s();!(n=i.n()).done;)for(var o=n.value,a=0;a<o.length;a++)o[a].callback==t&&(o.splice(a,1),a--)}catch(s){i.e(s)}finally{i.f()}}};function E(e,t){e[S]||(e[S]=t||_())}function T(e){return e[S]}function P(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function R(e,t){var n=P(e)[t];if(!n)return[];for(var r=[n.callbacks],i=0;i<n.childEvents.length;i++){var o=R(e,n.childEvents[i]);r=r.concat(o)}return r}function I(e,t,o){var a,s=r(e);try{for(s.s();!(a=s.n()).done;){var l=n(a.value,2),u=l[0],c=l[1];c?"function"==typeof c&&(c=c(t.name)):c=t.name;var d=new k(t.source,c);d.path=i(t.path),u.fire.apply(u,[d].concat(i(o)))}}catch(h){s.e(h)}finally{s.f()}}function O(e,t,n,r){t._removeEventListener?t._removeEventListener(n,r):e._removeEventListener.call(t,n,r)}var M,N=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=l(3),D=L.a.Symbol,j=Object.prototype,F=j.hasOwnProperty,V=j.toString,z=D?D.toStringTag:void 0,B=Object.prototype.toString,H=D?D.toStringTag:void 0,U=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":H&&H in Object(e)?function(e){var t=F.call(e,z),n=e[z];try{e[z]=void 0;var r=!0}catch(e){}var i=V.call(e);return r&&(t?e[z]=n:delete e[z]),i}(e):function(e){return B.call(e)}(e)},q=function(e){if(!N(e))return!1;var t=U(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},W=L.a["__core-js_shared__"],$=(M=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",K=Function.prototype.toString,G=function(e){if(null!=e){try{return K.call(e)}catch(e){}try{return e+""}catch(e){}}return""},J=/^\[object .+?Constructor\]$/,Q=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!N(e)||function(e){return!!$&&$ in e}(e))&&(q(e)?Q:J).test(G(e))}(n)?n:void 0},Y=function(){try{var e=Z(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),X=function(e,t,n){"__proto__"==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ee=function(e,t){return e===t||e!=e&&t!=t},te=Object.prototype.hasOwnProperty,ne=function(e,t,n){var r=e[t];te.call(e,t)&&ee(r,n)&&(void 0!==n||t in e)||X(e,t,n)},re=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?X(n,s,l):ne(n,s,l)}return n},ie=function(e){return e},oe=function(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)},ae=Math.max,se=function(e){return function(){return e}},le=Date.now,ue=function(e){var t=0,n=0;return function(){var r=le(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:se(t),writable:!0})}:ie),ce=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},de=function(e){return null!=e&&ce(e.length)&&!q(e)},he=/^(?:0|[1-9]\d*)$/,fe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&he.test(e))&&e>-1&&e%1==0&&e<t},ve=function(e){return function(e,t){return ue(function(e,t,n){return t=ae(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=ae(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),oe(e,this,s)}}(e,void 0,ie),e+"")}((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!N(n))return!1;var r=typeof t;return!!("number"==r?de(n)&&fe(t,n.length):"string"==r&&t in n)&&ee(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))},pe=function(e){return null!=e&&"object"==typeof e},ge=function(e){return pe(e)&&"[object Arguments]"==U(e)},me=Object.prototype,ye=me.hasOwnProperty,ke=me.propertyIsEnumerable,be=ge(function(){return arguments}())?ge:function(e){return pe(e)&&ye.call(e,"callee")&&!ke.call(e,"callee")},_e=Array.isArray,we=l(4),Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;var xe=function(e){return function(t){return e(t)}},Se=l(5),Ae=Se.a&&Se.a.isTypedArray,Ee=Ae?xe(Ae):function(e){return pe(e)&&ce(e.length)&&!!Ce[U(e)]},Te=Object.prototype.hasOwnProperty,Pe=function(e,t){var n=_e(e),r=!n&&be(e),i=!n&&!r&&Object(we.a)(e),o=!n&&!r&&!i&&Ee(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!Te.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||fe(u,l))||s.push(u);return s},Re=Object.prototype,Ie=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)},Oe=Object.prototype.hasOwnProperty,Me=function(e){return de(e)?Pe(e,!0):function(e){if(!N(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ie(e),n=[];for(var r in e)("constructor"!=r||!t&&Oe.call(e,r))&&n.push(r);return n}(e)},Ne=ve((function(e,t){re(t,Me(t),e)})),Le=Symbol("observableProperties"),De=Symbol("boundObservables"),je=Symbol("boundProperties"),Fe=Symbol("decoratedMethods"),Ve=Symbol("decoratedOriginal"),ze={set:function(e,t){var n=this;if(N(e))Object.keys(e).forEach((function(t){n.set(t,e[t])}),this);else{He(this);var r=this[Le];if(e in this&&!r.has(e))throw new C.a("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:function(){return r.get(e)},set:function(t){var n=r.get(e),i=this.fire("set:"+e,e,t,n);void 0===i&&(i=t),n===i&&r.has(e)||(r.set(e,i),this.fire("change:"+e,e,i,n))}}),this[e]=t}},bind:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length||!We(n))throw new C.a("observable-bind-wrong-properties",this);if(new Set(n).size!==n.length)throw new C.a("observable-bind-duplicate-properties",this);He(this);var i=this[je];n.forEach((function(t){if(i.has(t))throw new C.a("observable-bind-rebind",e)}));var o=new Map;return n.forEach((function(e){var t={property:e,to:[]};i.set(e,t),o.set(e,t)})),{to:Ue,toMany:qe,_observable:this,_bindProperties:n,_to:[],_bindings:o}},unbind:function(){var e=this;if(this[Le]){for(var t=this[je],n=this[De],r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(i.length){if(!We(i))throw new C.a("observable-unbind-wrong-properties",this);i.forEach((function(r){var i,o,a,s,l=t.get(r);l&&(l.to.forEach((function(t){i=t[0],o=t[1],a=n.get(i),(s=a[o]).delete(l),s.size||delete a[o],Object.keys(a).length||(n.delete(i),e.stopListening(i,"change"))})),t.delete(r))}))}else n.forEach((function(t,n){e.stopListening(n,"change")})),n.clear(),t.clear()}},decorate:function(e){var t=this,n=this[e];if(!n)throw new C.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,(function(e,r){e.return=n.apply(t,r)})),this[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.fire(e,n)},this[e][Ve]=n,this[Fe]||(this[Fe]=[]),this[Fe].push(e)}};Ne(ze,A),ze.stopListening=function(e,t,n){if(!e&&this[Fe]){var i,o=r(this[Fe]);try{for(o.s();!(i=o.n()).done;){var a=i.value;this[a]=this[a][Ve]}}catch(s){o.e(s)}finally{o.f()}delete this[Fe]}A.stopListening.call(this,e,t,n)};var Be=ze;function He(e){e[Le]||(Object.defineProperty(e,Le,{value:new Map}),Object.defineProperty(e,De,{value:new Map}),Object.defineProperty(e,je,{value:new Map}))}function Ue(){var e,t=this,n=(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)throw new C.a("observable-bind-to-parse-error",null);var r,i={to:[]};return"function"==typeof t[t.length-1]&&(i.callback=t.pop()),t.forEach((function(e){if("string"==typeof e)r.properties.push(e);else{if("object"!=typeof e)throw new C.a("observable-bind-to-parse-error",null);r={observable:e,properties:[]},i.to.push(r)}})),i}).apply(void 0,arguments),r=Array.from(this._bindings.keys()),i=r.length;if(!n.callback&&n.to.length>1)throw new C.a("observable-bind-to-no-callback",this);if(i>1&&n.callback)throw new C.a("observable-bind-to-extra-callback",this);n.to.forEach((function(e){if(e.properties.length&&e.properties.length!==i)throw new C.a("observable-bind-to-properties-length",t);e.properties.length||(e.properties=t._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(r[0]).callback=n.callback),e=this._observable,this._to.forEach((function(t){var n,r=e[De];r.get(t.observable)||e.listenTo(t.observable,"change",(function(i,o){(n=r.get(t.observable)[o])&&n.forEach((function(t){$e(e,t.property)}))}))})),function(e){var t;e._bindings.forEach((function(n,r){e._to.forEach((function(i){t=i.properties[n.callback?0:e._bindProperties.indexOf(r)],n.to.push([i.observable,t]),function(e,t,n,r){var i=e[De],o=i.get(n),a=o||{};a[r]||(a[r]=new Set),a[r].add(t),o||i.set(n,a)}(e._observable,n,i.observable,t)}))}))}(this),this._bindProperties.forEach((function(e){$e(t._observable,e)}))}function qe(e,t,n){if(this._bindings.size>1)throw new C.a("observable-bind-to-many-not-one-binding",this);this.to.apply(this,i(function(e,t){var n=e.map((function(e){return[e,t]}));return Array.prototype.concat.apply([],n)}(e,t)).concat([n]))}function We(e){return e.every((function(e){return"string"==typeof e}))}function $e(e,t){var n,r=e[je].get(t);r.callback?n=r.callback.apply(e,r.to.map((function(e){return e[0][e[1]]}))):n=(n=r.to[0])[0][n[1]],Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}function Ke(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((function(t){Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach((function(n){if(!(n in e.prototype)){var r=Object.getOwnPropertyDescriptor(t,n);r.enumerable=!1,Object.defineProperty(e.prototype,n,r)}}))}))}var Ge=function(){function e(t){s(this,e),this.editor=t,this.set("isEnabled",!0),this._disableStack=new Set}return u(e,[{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Je,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Je),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}]),e}();function Je(e){e.return=!1,e.stop()}Ke(Ge,Be);var Qe=function(){function e(t){var n=this;s(this,e),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(function(){n.refresh()})),this.on("execute",(function(e){n.isEnabled||e.stop()}),{priority:"high"}),this.listenTo(t,"change:isReadOnly",(function(e,t,r){r?n.forceDisabled("readOnlyMode"):n.clearForceDisabled("readOnlyMode")}))}return u(e,[{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Ze,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Ze),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}]),e}();function Ze(e){e.return=!1,e.stop()}Ke(Qe,Be);var Ye=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e))._childCommands=[],r}return u(n,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var e=this._getFirstEnabledCommand(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null!=e&&e.execute(n)}},{key:"registerChildCommand",value:function(e){var t=this;this._childCommands.push(e),e.on("change:isEnabled",(function(){return t._checkEnabled()})),this._checkEnabled()}},{key:"_checkEnabled",value:function(){this.isEnabled=!!this._getFirstEnabledCommand()}},{key:"_getFirstEnabledCommand",value:function(){return this._childCommands.find((function(e){return e.isEnabled}))}}]),n}(Qe),Xe=function(e,t){return function(n){return e(t(n))}},et=Xe(Object.getPrototypeOf,Object),tt=Function.prototype.toString,nt=Object.prototype.hasOwnProperty,rt=tt.call(Object),it=function(e){if(!pe(e)||"[object Object]"!=U(e))return!1;var t=et(e);if(null===t)return!0;var n=nt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&tt.call(n)==rt},ot=function(e,t){for(var n=e.length;n--;)if(ee(e[n][0],t))return n;return-1},at=Array.prototype.splice;function st(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}st.prototype.clear=function(){this.__data__=[],this.size=0},st.prototype.delete=function(e){var t=this.__data__,n=ot(t,e);return!(n<0||(n==t.length-1?t.pop():at.call(t,n,1),--this.size,0))},st.prototype.get=function(e){var t=this.__data__,n=ot(t,e);return n<0?void 0:t[n][1]},st.prototype.has=function(e){return ot(this.__data__,e)>-1},st.prototype.set=function(e,t){var n=this.__data__,r=ot(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var lt=st,ut=Z(L.a,"Map"),ct=Z(Object,"create"),dt=Object.prototype.hasOwnProperty,ht=Object.prototype.hasOwnProperty;function ft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ft.prototype.clear=function(){this.__data__=ct?ct(null):{},this.size=0},ft.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ft.prototype.get=function(e){var t=this.__data__;if(ct){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return dt.call(t,e)?t[e]:void 0},ft.prototype.has=function(e){var t=this.__data__;return ct?void 0!==t[e]:ht.call(t,e)},ft.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ct&&void 0===t?"__lodash_hash_undefined__":t,this};var vt=ft,pt=function(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function gt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=function(){this.size=0,this.__data__={hash:new vt,map:new(ut||lt),string:new vt}},gt.prototype.delete=function(e){var t=pt(this,e).delete(e);return this.size-=t?1:0,t},gt.prototype.get=function(e){return pt(this,e).get(e)},gt.prototype.has=function(e){return pt(this,e).has(e)},gt.prototype.set=function(e,t){var n=pt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var mt=gt;function yt(e){var t=this.__data__=new lt(e);this.size=t.size}yt.prototype.clear=function(){this.__data__=new lt,this.size=0},yt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},yt.prototype.get=function(e){return this.__data__.get(e)},yt.prototype.has=function(e){return this.__data__.has(e)},yt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof lt){var r=n.__data__;if(!ut||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new mt(r)}return n.set(e,t),this.size=n.size,this};var kt=yt,bt=Xe(Object.keys,Object),_t=Object.prototype.hasOwnProperty,wt=function(e){return de(e)?Pe(e):function(e){if(!Ie(e))return bt(e);var t=[];for(var n in Object(e))_t.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},Ct=l(8),xt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},St=function(){return[]},At=Object.prototype.propertyIsEnumerable,Et=Object.getOwnPropertySymbols,Tt=Et?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a)&&(o[i++]=a)}return o}(Et(e),(function(t){return At.call(e,t)})))}:St,Pt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Rt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Pt(t,Tt(e)),e=et(e);return t}:St,It=function(e,t,n){var r=t(e);return _e(e)?r:Pt(r,n(e))},Ot=function(e){return It(e,wt,Tt)},Mt=function(e){return It(e,Me,Rt)},Nt=Z(L.a,"DataView"),Lt=Z(L.a,"Promise"),Dt=Z(L.a,"Set"),jt=Z(L.a,"WeakMap"),Ft=G(Nt),Vt=G(ut),zt=G(Lt),Bt=G(Dt),Ht=G(jt),Ut=U;(Nt&&"[object DataView]"!=Ut(new Nt(new ArrayBuffer(1)))||ut&&"[object Map]"!=Ut(new ut)||Lt&&"[object Promise]"!=Ut(Lt.resolve())||Dt&&"[object Set]"!=Ut(new Dt)||jt&&"[object WeakMap]"!=Ut(new jt))&&(Ut=function(e){var t=U(e),n="[object Object]"==t?e.constructor:void 0,r=n?G(n):"";if(r)switch(r){case Ft:return"[object DataView]";case Vt:return"[object Map]";case zt:return"[object Promise]";case Bt:return"[object Set]";case Ht:return"[object WeakMap]"}return t});var qt=Ut,Wt=Object.prototype.hasOwnProperty,$t=L.a.Uint8Array,Kt=function(e){var t=new e.constructor(e.byteLength);return new $t(t).set(new $t(e)),t},Gt=/\w*$/,Jt=D?D.prototype:void 0,Qt=Jt?Jt.valueOf:void 0,Zt=function(e,t){var n=t?Kt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Yt=Object.create,Xt=function(){function e(){}return function(t){if(!N(t))return{};if(Yt)return Yt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),en=function(e){return"function"!=typeof e.constructor||Ie(e)?{}:Xt(et(e))},tn=Se.a&&Se.a.isMap,nn=tn?xe(tn):function(e){return pe(e)&&"[object Map]"==qt(e)},rn=Se.a&&Se.a.isSet,on=rn?xe(rn):function(e){return pe(e)&&"[object Set]"==qt(e)},an={};an["[object Arguments]"]=an["[object Array]"]=an["[object ArrayBuffer]"]=an["[object DataView]"]=an["[object Boolean]"]=an["[object Date]"]=an["[object Float32Array]"]=an["[object Float64Array]"]=an["[object Int8Array]"]=an["[object Int16Array]"]=an["[object Int32Array]"]=an["[object Map]"]=an["[object Number]"]=an["[object Object]"]=an["[object RegExp]"]=an["[object Set]"]=an["[object String]"]=an["[object Symbol]"]=an["[object Uint8Array]"]=an["[object Uint8ClampedArray]"]=an["[object Uint16Array]"]=an["[object Uint32Array]"]=!0,an["[object Error]"]=an["[object Function]"]=an["[object WeakMap]"]=!1;var sn=function e(t,n,r,i,o,a){var s,l=1&n,u=2&n,c=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!N(t))return t;var d=_e(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Wt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return xt(t,s)}else{var h=qt(t),f="[object Function]"==h||"[object GeneratorFunction]"==h;if(Object(we.a)(t))return Object(Ct.a)(t,l);if("[object Object]"==h||"[object Arguments]"==h||f&&!o){if(s=u||f?{}:en(t),!l)return u?function(e,t){return re(e,Rt(e),t)}(t,function(e,t){return e&&re(t,Me(t),e)}(s,t)):function(e,t){return re(e,Tt(e),t)}(t,function(e,t){return e&&re(t,wt(t),e)}(s,t))}else{if(!an[h])return o?t:{};s=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Kt(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?Kt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Zt(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Gt.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new r;case"[object Symbol]":return function(e){return Qt?Object(Qt.call(e)):{}}(e)}}(t,h,l)}}a||(a=new kt);var v=a.get(t);if(v)return v;a.set(t,s),on(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):nn(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var p=d?void 0:(c?u?Mt:Ot:u?Me:wt)(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n););}(p||t,(function(i,o){p&&(i=t[o=i]),ne(s,o,e(i,n,r,o,t,a))})),s},ln=function(e,t){return sn(e,5,t="function"==typeof t?t:void 0)},un=function(e){return pe(e)&&1===e.nodeType&&!it(e)},cn=function(){function e(t,n){s(this,e),this._config={},n&&this.define(dn(n)),t&&this._setObjectToTarget(this._config,t)}return u(e,[{key:"set",value:function(e,t){this._setToTarget(this._config,e,t)}},{key:"define",value:function(e,t){this._setToTarget(this._config,e,t,!0)}},{key:"get",value:function(e){return this._getFromSource(this._config,e)}},{key:"names",value:regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,n=Object.keys(this._config);case 1:if(!(t<n.length)){e.next=8;break}return r=n[t],e.next=5,r;case 5:t++,e.next=1;break;case 8:case"end":return e.stop()}}),e,this)}))},{key:"_setToTarget",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(it(t))this._setObjectToTarget(e,t,i);else{var o=t.split(".");t=o.pop();var a,s=r(o);try{for(s.s();!(a=s.n()).done;){var l=a.value;it(e[l])||(e[l]={}),e=e[l]}}catch(u){s.e(u)}finally{s.f()}if(it(n))return it(e[t])||(e[t]={}),void this._setObjectToTarget(e=e[t],n,i);i&&void 0!==e[t]||(e[t]=n)}}},{key:"_getFromSource",value:function(e,t){var n=t.split(".");t=n.pop();var i,o=r(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!it(e[a])){e=null;break}e=e[a]}}catch(s){o.e(s)}finally{o.f()}return e?dn(e[t]):void 0}},{key:"_setObjectToTarget",value:function(e,t,n){var r=this;Object.keys(t).forEach((function(i){r._setToTarget(e,i,t[i],n)}))}}]),e}();function dn(e){return ln(e,hn)}function hn(e){return un(e)?e:void 0}function fn(e){return!(!e||!e[Symbol.iterator])}var vn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e);var i=fn(t);if(i||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i){var o,a=r(t);try{for(a.s();!(o=a.n()).done;){var l=o.value;this._items.push(l),this._itemMap.set(this._getItemIdBeforeAdding(l),l)}}catch(u){a.e(u)}finally{a.f()}}}return u(e,[{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"addMany",value:function(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new C.a("collection-add-item-invalid-index",this);for(var n=0;n<e.length;n++){var r=e[n],i=this._getItemIdBeforeAdding(r),o=t+n;this._items.splice(o,0,r),this._itemMap.set(i,r),this.fire("add",r,o)}return this.fire("change",{added:e,removed:[],index:t}),this}},{key:"get",value:function(e){var t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new C.a("collection-get-invalid-arg",this);t=this._items[e]}return t||null}},{key:"has",value:function(e){return this._itemMap.has("string"==typeof e?e:e[this._idProperty])}},{key:"getIndex",value:function(e){var t;return t="string"==typeof e?this._itemMap.get(e):e,this._items.indexOf(t)}},{key:"remove",value:function(e){var t=n(this._remove(e),2),r=t[0],i=t[1];return this.fire("change",{added:[],removed:[r],index:i}),r}},{key:"map",value:function(e,t){return this._items.map(e,t)}},{key:"find",value:function(e,t){return this._items.find(e,t)}},{key:"filter",value:function(e,t){return this._items.filter(e,t)}},{key:"clear",value:function(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);for(var e=Array.from(this._items);this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}},{key:"bindTo",value:function(e){var t=this;if(this._bindToCollection)throw new C.a("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:function(e){t._setUpBindToBinding((function(t){return new e(t)}))},using:function(e){t._setUpBindToBinding("function"==typeof e?function(t){return e(t)}:function(t){return t[e]})}}}},{key:"_setUpBindToBinding",value:function(e){var t,n=this,i=this._bindToCollection,o=function(t,o,a){var s=i._bindToCollection==n,l=i._bindToInternalToExternalMap.get(o);if(s&&l)n._bindToExternalToInternalMap.set(o,l),n._bindToInternalToExternalMap.set(l,o);else{var u=e(o);if(!u)return void n._skippedIndexesFromExternal.push(a);var c,d=a,h=r(n._skippedIndexesFromExternal);try{for(h.s();!(c=h.n()).done;){a>c.value&&d--}}catch(g){h.e(g)}finally{h.f()}var f,v=r(i._skippedIndexesFromExternal);try{for(v.s();!(f=v.n()).done;){d>=f.value&&d++}}catch(g){v.e(g)}finally{v.f()}n._bindToExternalToInternalMap.set(o,u),n._bindToInternalToExternalMap.set(u,o),n.add(u,d);for(var p=0;p<i._skippedIndexesFromExternal.length;p++)d<=i._skippedIndexesFromExternal[p]&&i._skippedIndexesFromExternal[p]++}},a=r(i);try{for(a.s();!(t=a.n()).done;){var s=t.value;o(0,s,i.getIndex(s))}}catch(l){a.e(l)}finally{a.f()}this.listenTo(i,"add",o),this.listenTo(i,"remove",(function(e,t,r){var i=n._bindToExternalToInternalMap.get(t);i&&n.remove(i),n._skippedIndexesFromExternal=n._skippedIndexesFromExternal.reduce((function(e,t){return r<t&&e.push(t-1),r>t&&e.push(t),e}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(e){var t,n=this._idProperty;if(n in e){if("string"!=typeof(t=e[n]))throw new C.a("collection-add-invalid-id",this);if(this.get(t))throw new C.a("collection-add-item-already-exists",this)}else e[n]=t=_();return t}},{key:"_remove",value:function(e){var t,n,r,i=!1,o=this._idProperty;if("string"==typeof e?(n=e,i=!(r=this._itemMap.get(n)),r&&(t=this._items.indexOf(r))):"number"==typeof e?(t=e,i=!(r=this._items[t]),r&&(n=r[o])):(n=(r=e)[o],i=-1==(t=this._items.indexOf(r))||!this._itemMap.get(n)),i)throw new C.a("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);var a=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(a),this.fire("remove",r,t),[r,t]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}}]),e}();Ke(vn,A);var pn=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];s(this,e),this._context=t,this._plugins=new Map,this._availablePlugins=new Map;var a,l=r(i);try{for(l.s();!(a=l.n()).done;){var u=a.value;u.pluginName&&this._availablePlugins.set(u.pluginName,u)}}catch(p){l.e(p)}finally{l.f()}this._contextPlugins=new Map;var c,d=r(o);try{for(d.s();!(c=d.n()).done;){var h=n(c.value,2),f=h[0],v=h[1];this._contextPlugins.set(f,v),this._contextPlugins.set(v,f),f.pluginName&&this._availablePlugins.set(f.pluginName,f)}}catch(p){d.e(p)}finally{d.f()}}return u(e,[{key:Symbol.iterator,value:regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r(this._plugins),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=11;break}if(i=n.value,e.t0="function"==typeof i[0],!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"get",value:function(e){var t=this._plugins.get(e);if(!t){var n=e;throw"function"==typeof e&&(n=e.pluginName||e.name),new C.a("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return t}},{key:"has",value:function(e){return this._plugins.has(e)}},{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=this,a=this._context;!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;t.forEach((function(t){u(t)&&(n.has(t)||(n.add(t),t.pluginName&&!o._availablePlugins.has(t.pluginName)&&o._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,n)))}))}(e),f(e);var s=i(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return t.map((function(e){return u(e)?e:o._availablePlugins.get(e)})).reduce((function(t,r){return n.has(r)?t:(n.add(r),r.requires&&(f(r.requires,r),e(r.requires,n).forEach((function(e){return t.add(e)}))),t.add(r))}),new Set)}(e.filter((function(e){return!d(e,t)}))));!function(e,t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("function"!=typeof a)throw new C.a("plugincollection-replace-plugin-invalid-type",null,{pluginItem:a});var s=a.pluginName;if(!s)throw new C.a("plugincollection-replace-plugin-missing-name",null,{pluginItem:a});if(a.requires&&a.requires.length)throw new C.a("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:s});var l=o._availablePlugins.get(s);if(!l)throw new C.a("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:s});var u=e.indexOf(l);if(-1===u){if(o._contextPlugins.has(l))return;throw new C.a("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:s})}if(l.requires&&l.requires.length)throw new C.a("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:s});e.splice(u,1,a),o._availablePlugins.set(s,a)}}catch(c){i.e(c)}finally{i.f()}}(s,n);var l=function(e){return e.map((function(e){var t=o._contextPlugins.get(e)||new e(a);return o._add(e,t),t}))}(s);return v(l,"init").then((function(){return v(l,"afterInit")})).then((function(){return l}));function u(e){return"function"==typeof e}function c(e){return u(e)&&e.isContextPlugin}function d(e,t){return t.some((function(t){return t===e||h(e)===t||h(t)===e}))}function h(e){return u(e)?e.pluginName||e.name:e}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.map((function(e){return u(e)?e:o._availablePlugins.get(e)||e})).forEach((function(e){!function(e,t){if(!u(e)){if(t)throw new C.a("plugincollection-soft-required",a,{missingPlugin:e,requiredBy:h(t)});throw new C.a("plugincollection-plugin-not-found",a,{plugin:e})}}(e,n),function(e,t){if(c(t)&&!c(e))throw new C.a("plugincollection-context-required",a,{plugin:h(e),requiredBy:h(t)})}(e,n),function(e,n){if(n&&d(e,t))throw new C.a("plugincollection-required",a,{plugin:h(e),requiredBy:h(n)})}(e,n)}))}function v(e,t){return e.reduce((function(e,n){return n[t]?o._contextPlugins.has(n)?e:e.then(n[t].bind(n)):e}),Promise.resolve())}}},{key:"destroy",value:function(){var e,t=[],i=r(this);try{for(i.s();!(e=i.n()).done;){var o=n(e.value,2)[1];"function"!=typeof o.destroy||this._contextPlugins.has(o)||t.push(o.destroy())}}catch(a){i.e(a)}finally{i.f()}return Promise.all(t)}},{key:"_add",value:function(e,t){this._plugins.set(e,t);var n=e.pluginName;if(n){if(this._plugins.has(n))throw new C.a("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}]),e}();function gn(e){return Array.isArray(e)?e:[e]}Ke(pn,A),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var mn=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function yn(e){return mn.includes(e)?"rtl":"ltr"}var kn=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=yn(this.uiLanguage),this.contentLanguageDirection=yn(this.contentLanguage),this.t=function(e,n){return t._t(e,n)}}return u(e,[{key:"_t",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t=gn(t),"string"==typeof e&&(e={string:e}),function(e,t){return e.replace(/%(\d+)/g,(function(e,n){return n<t.length?t[n]:e}))}(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new C.a("translation-service-quantity-not-a-number",null,{quantity:n});var r=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===r&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);var i=t.id||t.string;if(0===r||!function(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,i))return 1!==n?t.plural:t.string;var o=window.CKEDITOR_TRANSLATIONS[e].dictionary,a=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||function(e){return 1===e?0:1};if("string"==typeof o[i])return o[i];var s=Number(a(n));return o[i][s]}(this.uiLanguage,e,e.plural?t[0]:1),t)}},{key:"language",get:function(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}}]),e}(),bn=function(){function e(t){s(this,e),this.config=new cn(t,this.constructor.defaultConfig);var n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new pn(this,n);var r=this.config.get("language")||{};this.locale=new kn({uiLanguage:"string"==typeof r?r:r.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new vn,this._contextOwner=null}return u(e,[{key:"initPlugins",value:function(){var e,t=this.config.get("plugins")||[],n=this.config.get("substitutePlugins")||[],i=r(t.concat(n));try{for(i.s();!(e=i.n()).done;){var o=e.value;if("function"!=typeof o)throw new C.a("context-initplugins-constructor-only",null,{Plugin:o});if(!0!==o.isContextPlugin)throw new C.a("context-initplugins-invalid-plugin",null,{Plugin:o})}}catch(a){i.e(a)}finally{i.f()}return this.plugins.init(t,[],n)}},{key:"destroy",value:function(){var e=this;return Promise.all(Array.from(this.editors,(function(e){return e.destroy()}))).then((function(){return e.plugins.destroy()}))}},{key:"_addEditor",value:function(e,t){if(this._contextOwner)throw new C.a("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}},{key:"_removeEditor",value:function(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}},{key:"_getEditorConfig",value:function(){var e,t={},n=r(this.config.names());try{for(n.s();!(e=n.n()).done;){var i=e.value;["plugins","removePlugins","extraPlugins"].includes(i)||(t[i]=this.config.get(i))}}catch(o){n.e(o)}finally{n.f()}return t}}],[{key:"create",value:function(e){var t=this;return new Promise((function(n){var r=new t(e);n(r.initPlugins().then((function(){return r})))}))}}]),e}(),_n=function(){function e(t){s(this,e),this.context=t}return u(e,[{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!0}}]),e}();function wn(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e[r]!=t[r])return r;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}Ke(_n,Be);var Cn=function(e){return sn(e,4)},xn=function(){function e(t){s(this,e),this.document=t,this.parent=null}return u(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.index),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),r=e.getAncestors(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),r=wn(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]<n[r]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t),this.parent&&this.parent._fireChange(e,t)}},{key:"toJSON",value:function(){var e=Cn(this);return delete e.parent,e}},{key:"is",value:function(e){return"node"===e||"view:node"===e}},{key:"index",get:function(){var e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new C.a("view-node-not-found-in-parent",this);return e}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}}]),e}();Ke(xn,A);var Sn=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e))._textData=r,i}return u(n,[{key:"is",value:function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return e instanceof n&&(this===e||this.data===e.data)}},{key:"_clone",value:function(){return new n(this.document,this.data)}},{key:"data",get:function(){return this._textData}},{key:"_data",get:function(){return this.data},set:function(e){this._fireChange("text",this),this._textData=e}}]),n}(xn),An=function(){function e(t,n,r){if(s(this,e),this.textNode=t,n<0||n>t.data.length)throw new C.a("view-textproxy-wrong-offsetintext",this);if(r<0||n+r>t.data.length)throw new C.a("view-textproxy-wrong-length",this);this.data=t.data.substring(n,n+r),this.offsetInText=n}return u(e,[{key:"is",value:function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this.textNode:this.parent;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}}]),e}();function En(e){return fn(e)?new Map(e):function(e){var t=new Map;for(var n in e)t.set(n,e[n]);return t}(e)}var Tn=function(){function e(){s(this,e),this._patterns=[],this.add.apply(this,arguments)}return u(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];("string"==typeof o||o instanceof RegExp)&&(o={name:o}),o.classes&&("string"==typeof o.classes||o.classes instanceof RegExp)&&(o.classes=[o.classes]),this._patterns.push(o)}}},{key:"match",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,o=t;i<o.length;i++){var a,s=o[i],l=r(this._patterns);try{for(l.s();!(a=l.n()).done;){var u=a.value,c=Pn(s,u);if(c)return{element:s,pattern:u,match:c}}}catch(d){l.e(d)}finally{l.f()}}return null}},{key:"matchAll",value:function(){for(var e=[],t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var o=0,a=n;o<a.length;o++){var s,l=a[o],u=r(this._patterns);try{for(u.s();!(s=u.n()).done;){var c=s.value,d=Pn(l,c);d&&e.push({element:l,pattern:c,match:d})}}catch(h){u.e(h)}finally{u.f()}}return e.length>0?e:null}},{key:"getElementName",value:function(){if(1!==this._patterns.length)return null;var e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}]),e}();function Pn(e,t){if("function"==typeof t)return t(e);var n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?e.test(t):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){var n=[];for(var r in e){var i=e[r];if(!t.hasAttribute(r))return null;var o=t.getAttribute(r);if(!0===i)n.push(r);else if(i instanceof RegExp){if(!i.test(o))return null;n.push(r)}else{if(o!==i)return null;n.push(r)}}return n}(t.attributes,e),!n.attributes)?null:!(t.classes&&(n.classes=function(e,t){var n,i=[],o=r(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a instanceof RegExp){var s,l=r(t.getClassNames());try{for(l.s();!(s=l.n()).done;){var u=s.value;a.test(u)&&i.push(u)}}catch(c){l.e(c)}finally{l.f()}if(0===i.length)return null}else{if(!t.hasClass(a))return null;i.push(a)}}}catch(c){o.e(c)}finally{o.f()}return i}(t.classes,e),!n.classes))&&!(t.styles&&(n.styles=function(e,t){var n=[];for(var r in e){var i=e[r];if(!t.hasStyle(r))return null;var o=t.getStyle(r);if(i instanceof RegExp){if(!i.test(o))return null;n.push(r)}else{if(o!==i)return null;n.push(r)}}return n}(t.styles,e),!n.styles))&&n}var Rn=function(e){return"symbol"==typeof e||pe(e)&&"[object Symbol]"==U(e)},In=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,On=/^\w*$/;function Mn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");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(Mn.Cache||mt),n}Mn.Cache=mt;var Nn=Mn,Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,jn=function(e){var t=Nn((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ln,(function(e,n,r,i){t.push(r?i.replace(Dn,"$1"):n||e)})),t}),(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}(),Fn=D?D.prototype:void 0,Vn=Fn?Fn.toString:void 0,zn=function(e){return null==e?"":function e(t){if("string"==typeof t)return t;if(_e(t))return function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,e)+"";if(Rn(t))return Vn?Vn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}(e)},Bn=function(e,t){return _e(e)?e:function(e,t){if(_e(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Rn(e))||On.test(e)||!In.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:jn(zn(e))},Hn=function(e){if("string"==typeof e||Rn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Un=function(e,t){for(var n=0,r=(t=Bn(t,e)).length;null!=e&&n<r;)e=e[Hn(t[n++])];return n&&n==r?e:void 0},qn=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},Wn=function(e,t,n){var r=null==e?void 0:Un(e,t);return void 0===r?n:r},$n=function(e,t,n){(void 0!==n&&!ee(e[t],n)||void 0===n&&!(t in e))&&X(e,t,n)},Kn=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Gn=ve((function(e,t,n){!function e(t,n,r,i,o){t!==n&&function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s))break}}(n,(function(a,s){if(o||(o=new kt),N(a))!function(e,t,n,r,i,o,a){var s=Kn(e,n),l=Kn(t,n),u=a.get(l);if(u)$n(e,n,u);else{var c=o?o(s,l,n+"",e,t,a):void 0,d=void 0===c;if(d){var h=_e(l),f=!h&&Object(we.a)(l),v=!h&&!f&&Ee(l);c=l,h||f||v?_e(s)?c=s:function(e){return pe(e)&&de(e)}(s)?c=xt(s):f?(d=!1,c=Object(Ct.a)(l,!0)):v?(d=!1,c=Zt(l,!0)):c=[]:it(l)||be(l)?(c=s,be(s)?c=function(e){return re(e,Me(e))}(s):N(s)&&!q(s)||(c=en(l))):d=!1}d&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),$n(e,n,c)}}(t,n,s,r,e,i,o);else{var l=i?i(Kn(t,s),a,s+"",t,n,o):void 0;void 0===l&&(l=a),$n(t,s,l)}}),Me)}(e,t,n)})),Jn=function(){function e(t){s(this,e),this._styles={},this._styleProcessor=t}return u(e,[{key:"setTo",value:function(e){this.clear();for(var t=0,r=Array.from(function(e){var t=null,n=0,r=0,i=null,o=new Map;if(""===e)return o;";"!=e.charAt(e.length-1)&&(e+=";");for(var a=0;a<e.length;a++){var s=e.charAt(a);if(null===t)switch(s){case":":i||(i=e.substr(n,a-n),r=a+1);break;case'"':case"'":t=s;break;case";":var l=e.substr(r,a-r);i&&o.set(i.trim(),l.trim()),i=null,n=a+1}else s===t&&(t=null)}return o}(e).entries());t<r.length;t++){var i=n(r[t],2),o=i[0],a=i[1];this._styleProcessor.toNormalizedForm(o,a,this._styles)}}},{key:"has",value:function(e){if(this.isEmpty)return!1;var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){return n(t,1)[0]===e}));return Array.isArray(t)}},{key:"set",value:function(e,t){if(N(e))for(var r=0,i=Object.entries(e);r<i.length;r++){var o=n(i[r],2),a=o[0],s=o[1];this._styleProcessor.toNormalizedForm(a,s,this._styles)}else this._styleProcessor.toNormalizedForm(e,t,this._styles)}},{key:"remove",value:function(e){var t=Zn(e);(function(e,t){null==e||function(e,t){null==(e=function(e,t){return t.length<2?e:Un(e,qn(t,0,-1))}(e,t=Bn(t,e)))||delete e[Hn(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}(e,t)})(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}},{key:"getNormalized",value:function(e){return this._styleProcessor.getNormalized(e,this._styles)}},{key:"toString",value:function(){return this.isEmpty?"":this._getStylesEntries().map((function(e){return e.join(":")})).sort().join(";")+";"}},{key:"getAsString",value:function(e){if(!this.isEmpty){if(this._styles[e]&&!N(this._styles[e]))return this._styles[e];var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){return n(t,1)[0]===e}));return Array.isArray(t)?t[1]:void 0}}},{key:"getStyleNames",value:function(){return this.isEmpty?[]:this._getStylesEntries().map((function(e){return n(e,1)[0]}))}},{key:"clear",value:function(){this._styles={}}},{key:"_getStylesEntries",value:function(){for(var e=[],t=0,n=Object.keys(this._styles);t<n.length;t++){var r=n[t];e.push.apply(e,i(this._styleProcessor.getReducedForm(r,this._styles)))}return e}},{key:"_cleanEmptyObjectsOnPath",value:function(e){var t=e.split(".");if(t.length>1){var n=t.splice(0,t.length-1).join("."),r=Wn(this._styles,n);r&&!Array.from(Object.keys(r)).length&&this.remove(n)}}},{key:"isEmpty",get:function(){var e=Object.entries(this._styles);return!Array.from(e).length}},{key:"size",get:function(){return this.isEmpty?0:this.getStyleNames().length}}]),e}(),Qn=function(){function e(){s(this,e),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}return u(e,[{key:"toNormalizedForm",value:function(e,t,n){if(N(t))Yn(n,Zn(e),t);else if(this._normalizers.has(e)){var r=this._normalizers.get(e)(t);Yn(n,r.path,r.value)}else Yn(n,e,t)}},{key:"getNormalized",value:function(e,t){if(!e)return Gn({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){var n=this._extractors.get(e);if("string"==typeof n)return Wn(t,n);var r=n(e,t);if(r)return r}return Wn(t,Zn(e))}},{key:"getReducedForm",value:function(e,t){var n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}},{key:"getRelatedStyles",value:function(e){return this._consumables.get(e)||[]}},{key:"setNormalizer",value:function(e,t){this._normalizers.set(e,t)}},{key:"setExtractor",value:function(e,t){this._extractors.set(e,t)}},{key:"setReducer",value:function(e,t){this._reducers.set(e,t)}},{key:"setStyleRelation",value:function(e,t){this._mapStyleNames(e,t);var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;this._mapStyleNames(o,[e])}}catch(a){i.e(a)}finally{i.f()}}},{key:"_mapStyleNames",value:function(e,t){var n;this._consumables.has(e)||this._consumables.set(e,[]),(n=this._consumables.get(e)).push.apply(n,i(t))}}]),e}();function Zn(e){return e.replace("-",".")}function Yn(e,t,n){var r=n;N(n)&&(r=Gn({},Wn(e,t),n)),function(e,t,n){null==e||function(e,t,n,r){if(!N(e))return e;for(var i=-1,o=(t=Bn(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=Hn(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var c=s[l];void 0===(u=void 0)&&(u=N(c)?c:fe(t[i+1])?[]:{})}ne(s,l,u),s=s[l]}}(e,t,n)}(e,t,r)}var Xn=function(e){c(o,e);var t=d(o);function o(e,i,a,l){var u;if(s(this,o),(u=t.call(this,e)).name=i,u._attrs=function(e){var t,i=r(e=En(e));try{for(i.s();!(t=i.n()).done;){var o=n(t.value,2),a=o[0],s=o[1];null===s?e.delete(a):"string"!=typeof s&&e.set(a,String(s))}}catch(l){i.e(l)}finally{i.f()}return e}(a),u._children=[],l&&u._insertChild(0,l),u._classes=new Set,u._attrs.has("class")){var c=u._attrs.get("class");er(u._classes,c),u._attrs.delete("class")}return u._styles=new Jn(u.document.stylesProcessor),u._attrs.has("style")&&(u._styles.setTo(u._attrs.get("style")),u._attrs.delete("style")),u._customProperties=new Map,u._isAllowedInsideAttributeElement=!1,h(u)}return u(o,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this._classes.size>0,!e.t0){e.next=4;break}return e.next=4,"class";case 4:if(e.t1=this._styles.isEmpty,e.t1){e.next=8;break}return e.next=8,"style";case 8:return e.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttributes",value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._attrs.entries(),"t0",1);case 1:if(e.t1=this._classes.size>0,!e.t1){e.next=5;break}return e.next=5,["class",this.getAttribute("class")];case 5:if(e.t2=this._styles.isEmpty,e.t2){e.next=9;break}return e.next=9,["style",this.getAttribute("style")];case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttribute",value:function(e){if("class"==e)return this._classes.size>0?i(this._classes).join(" "):void 0;if("style"==e){var t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(e)}},{key:"hasAttribute",value:function(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}},{key:"isSimilar",value:function(e){if(!(e instanceof o))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this.isAllowedInsideAttributeElement!=e.isAllowedInsideAttributeElement)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;var t,i=r(this._attrs);try{for(i.s();!(t=i.n()).done;){var a=n(t.value,2),s=a[0],l=a[1];if(!e._attrs.has(s)||e._attrs.get(s)!==l)return!1}}catch(p){i.e(p)}finally{i.f()}var u,c=r(this._classes);try{for(c.s();!(u=c.n()).done;){var d=u.value;if(!e._classes.has(d))return!1}}catch(p){c.e(p)}finally{c.f()}var h,f=r(this._styles.getStyleNames());try{for(f.s();!(h=f.n()).done;){var v=h.value;if(!e._styles.has(v)||e._styles.getAsString(v)!==this._styles.getAsString(v))return!1}}catch(p){f.e(p)}finally{f.f()}return!0}},{key:"hasClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(!this._classes.has(o))return!1}return!0}},{key:"getClassNames",value:function(){return this._classes.keys()}},{key:"getStyle",value:function(e){return this._styles.getAsString(e)}},{key:"getNormalizedStyle",value:function(e){return this._styles.getNormalized(e)}},{key:"getStyleNames",value:function(){return this._styles.getStyleNames()}},{key:"hasStyle",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(!this._styles.has(o))return!1}return!0}},{key:"findAncestor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=p(Tn,t),i=this.parent;i;){if(r.match(i))return i;i=i.parent}return null}},{key:"getCustomProperty",value:function(e){return this._customProperties.get(e)}},{key:"getCustomProperties",value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getIdentity",value:function(){var e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map((function(e){return"".concat(e[0],'="').concat(e[1],'"')})).sort().join(" ");return this.name+(""==e?"":' class="'.concat(e,'"'))+(t?' style="'.concat(t,'"'):"")+(""==n?"":" "+n)}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[];if(e){var n,i=r(this.getChildren());try{for(i.s();!(n=i.n()).done;){var o=n.value;t.push(o._clone(e))}}catch(s){i.e(s)}finally{i.f()}}var a=new this.constructor(this.document,this.name,this._attrs,t);return a._classes=new Set(this._classes),a._styles.set(this._styles.getNormalized()),a._customProperties=new Map(this._customProperties),a.getFillerOffset=this.getFillerOffset,a._isAllowedInsideAttributeElement=this.isAllowedInsideAttributeElement,a}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,i=0,o=r(function(e,t){return"string"==typeof t?[new Sn(e,t)]:(fn(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new Sn(e,t):t instanceof An?new Sn(e,t.data):t})))}(this.document,t));try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,a.document=this.document,this._children.splice(e,0,a),e++,i++}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_setAttribute",value:function(e,t){t=String(t),this._fireChange("attributes",this),"class"==e?er(this._classes,t):"style"==e?this._styles.setTo(t):this._attrs.set(e,t)}},{key:"_removeAttribute",value:function(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}},{key:"_addClass",value:function(e){this._fireChange("attributes",this);var t,n=r(gn(e));try{for(n.s();!(t=n.n()).done;){var i=t.value;this._classes.add(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"_removeClass",value:function(e){this._fireChange("attributes",this);var t,n=r(gn(e));try{for(n.s();!(t=n.n()).done;){var i=t.value;this._classes.delete(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"_setStyle",value:function(e,t){this._fireChange("attributes",this),this._styles.set(e,t)}},{key:"_removeStyle",value:function(e){this._fireChange("attributes",this);var t,n=r(gn(e));try{for(n.s();!(t=n.n()).done;){var i=t.value;this._styles.remove(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"_setCustomProperty",value:function(e,t){this._customProperties.set(e,t)}},{key:"_removeCustomProperty",value:function(e){return this._customProperties.delete(e)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}},{key:"isAllowedInsideAttributeElement",get:function(){return this._isAllowedInsideAttributeElement}}]),o}(xn);function er(e,t){var n=t.split(/\s+/);e.clear(),n.forEach((function(t){return e.add(t)}))}var tr=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=nr,a}return u(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}}]),n}(Xn);function nr(){var e=i(this.getChildren()),t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;var n,o=r(e);try{for(o.s();!(n=o.n()).done;){if(!n.value.is("uiElement"))return null}}catch(a){o.e(a)}finally{o.f()}return this.childCount}var rr=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e,r,i,o)).set("isReadOnly",!1),a.set("isFocused",!1),a.bind("isReadOnly").to(e),a.bind("isFocused").to(e,"isFocused",(function(t){return t&&e.selection.editableElement==f(a)})),a.listenTo(e.selection,"change",(function(){a.isFocused=e.isFocused&&e.selection.editableElement==f(a)})),a}return u(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"destroy",value:function(){this.stopListening()}}]),n}(tr);Ke(rr,Be);var ir=Symbol("rootName"),or=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e,r)).rootName="main",i}return u(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"rootName",get:function(){return this.getCustomProperty(ir)},set:function(e){this._setCustomProperty(ir,e)}},{key:"_name",set:function(e){this.name=e}}]),n}(rr),ar=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s(this,e),!t.boundaries&&!t.startPosition)throw new C.a("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new C.a("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,this.position=sr._createAt(t.startPosition?t.startPosition:t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}return u(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,r;do{var i;r=this.position,t=(i=this.next()).done,n=i.value}while(!t&&e(n));t||(this.position=r)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e,t=this.position.clone(),n=this.position,r=t.parent;if(null===r.parent&&t.offset===r.childCount)return{done:!0};if(r===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};if(r instanceof Sn){if(t.isAtEnd)return this.position=sr._createAfter(r),this._next();e=r.data[t.offset]}else e=r.getChild(t.offset);if(e instanceof Xn)return this.shallow?t.offset++:t=new sr(e,0),this.position=t,this._formatReturnValue("elementStart",e,n,t,1);if(e instanceof Sn){if(this.singleCharacters)return t=new sr(e,0),this.position=t,this._next();var i,o=e.data.length;return e==this._boundaryEndParent?(o=this.boundaries.end.offset,i=new An(e,0,o),t=sr._createAfter(i)):(i=new An(e,0,e.data.length),t.offset++),this.position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){var a;a=this.singleCharacters?1:(r===this._boundaryEndParent?this.boundaries.end.offset:r.data.length)-t.offset;var s=new An(r,t.offset,a);return t.offset+=a,this.position=t,this._formatReturnValue("text",s,n,t,a)}return t=sr._createAfter(r),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",r,n,t)}},{key:"_previous",value:function(){var e,t=this.position.clone(),n=this.position,r=t.parent;if(null===r.parent&&0===t.offset)return{done:!0};if(r==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};if(r instanceof Sn){if(t.isAtStart)return this.position=sr._createBefore(r),this._previous();e=r.data[t.offset-1]}else e=r.getChild(t.offset-1);if(e instanceof Xn)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",e,n,t,1)):(t=new sr(e,e.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",e,n,t));if(e instanceof Sn){if(this.singleCharacters)return t=new sr(e,e.data.length),this.position=t,this._previous();var i,o=e.data.length;if(e==this._boundaryStartParent){var a=this.boundaries.start.offset;o=(i=new An(e,a,e.data.length-a)).data.length,t=sr._createBefore(i)}else i=new An(e,0,e.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){var s;s=this.singleCharacters?1:t.offset-(r===this._boundaryStartParent?this.boundaries.start.offset:0),t.offset-=s;var l=new An(r,t.offset,s);return this.position=t,this._formatReturnValue("text",l,n,t,s)}return t=sr._createBefore(r),this.position=t,this._formatReturnValue("elementStart",r,n,t,1)}},{key:"_formatReturnValue",value:function(e,t,n,r,i){return t instanceof An&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=sr._createAfter(t.textNode):(r=sr._createAfter(t.textNode),this.position=r)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=sr._createBefore(t.textNode):(r=sr._createBefore(t.textNode),this.position=r))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}}]),e}(),sr=function(){function e(t,n){s(this,e),this.parent=t,this.offset=n}return u(e,[{key:"getShiftedBy",value:function(t){var n=e._createAt(this),r=n.offset+t;return n.offset=r<0?0:r,n}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new ar(t);return n.skip(e),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),r=0;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}},{key:"is",value:function(e){return"position"===e||"view:position"===e}},{key:"isEqual",value:function(e){return this.parent==e.parent&&this.offset==e.offset}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"compareWith",value:function(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";var t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);var r=wn(t,n);switch(r){case"prefix":return"before";case"extension":return"after";default:return t[r]<n[r]?"before":"after"}}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.startPosition=this,new ar(e)}},{key:"clone",value:function(){return new e(this.parent,this.offset)}},{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var e=this.parent;!(e instanceof rr);){if(!e.parent)return null;e=e.parent}return e}}],[{key:"_createAt",value:function(t,n){if(t instanceof e)return new this(t.parent,t.offset);var r=t;if("end"==n)n=r.is("$text")?r.data.length:r.childCount;else{if("before"==n)return this._createBefore(r);if("after"==n)return this._createAfter(r);if(0!==n&&!n)throw new C.a("view-createpositionat-offset-required",r)}return new e(r,n)}},{key:"_createAfter",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new C.a("view-position-after-root",t,{root:t});return new e(t.parent,t.index+1)}},{key:"_createBefore",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText);if(!t.parent)throw new C.a("view-position-before-root",t,{root:t});return new e(t.parent,t.index)}}]),e}(),lr=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;s(this,e),this.start=t.clone(),this.end=n?n.clone():t.clone()}return u(e,[{key:Symbol.iterator,value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new ar({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getEnlarged",value:function(){var t=this.start.getLastMatchingPosition(ur,{direction:"backward"}),n=this.end.getLastMatchingPosition(ur);return t.parent.is("$text")&&t.isAtStart&&(t=sr._createBefore(t.parent)),n.parent.is("$text")&&n.isAtEnd&&(n=sr._createAfter(n.parent)),new e(t,n)}},{key:"getTrimmed",value:function(){var t=this.start.getLastMatchingPosition(ur);if(t.isAfter(this.end)||t.isEqual(this.end))return new e(t,t);var n=this.end.getLastMatchingPosition(ur,{direction:"backward"}),r=t.nodeAfter,i=n.nodeBefore;return r&&r.is("$text")&&(t=new sr(r,0)),i&&i.is("$text")&&(n=new sr(i,i.data.length)),new e(t,n)}},{key:"isEqual",value:function(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(this.clone()),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,r=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(r=t.end),new e(n,r)}return null}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new ar(e)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}},{key:"clone",value:function(){return new e(this.start,this.end)}},{key:"getItems",value:regeneratorRuntime.mark((function e(){var t,n,i,o,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,t.ignoreElementEnd=!0,n=new ar(t),i=r(n),e.prev=4,i.s();case 6:if((o=i.n()).done){e.next=12;break}return a=o.value,e.next=10,a.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:regeneratorRuntime.mark((function e(){var t,n,i,o,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,n=new ar(t),e.next=5,n.position;case 5:i=r(n),e.prev=6,i.s();case 8:if((o=i.n()).done){e.next=14;break}return a=o.value,e.next=12,a.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),i.e(e.t0);case 19:return e.prev=19,i.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{key:"is",value:function(e){return"range"===e||"view:range"===e}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromParentsAndOffsets",value:function(e,t,n,r){return new this(new sr(e,t),new sr(n,r))}},{key:"_createFromPositionAndShift",value:function(e,t){var n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}},{key:"_createOn",value:function(e){var t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(sr._createBefore(e),t)}}]),e}();function ur(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function cr(e){var t,n=0,i=r(e);try{for(i.s();!(t=i.n()).done;){t.value;n++}}catch(o){i.e(o)}finally{i.f()}return n}var dr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;s(this,e),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(t,n,r)}return u(e,[{key:"getRanges",value:regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.clone();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=r(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.start.isBefore(t.start)||(t=i)}}catch(o){n.e(o)}finally{n.f()}return t?t.clone():null}},{key:"getLastRange",value:function(){var e,t=null,n=r(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.end.isAfter(t.end)||(t=i)}}catch(o){n.e(o)}finally{n.f()}return t?t.clone():null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"isEqual",value:function(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=r(this._ranges);try{for(n.s();!(t=n.n()).done;){var i,o=t.value,a=!1,s=r(e._ranges);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(o.isEqual(l)){a=!0;break}}}catch(u){s.e(u)}finally{s.f()}if(!a)return!1}}catch(u){n.e(u)}finally{n.f()}return!0}},{key:"isSimilar",value:function(e){if(this.isBackward!=e.isBackward)return!1;var t=cr(this.getRanges());if(t!=cr(e.getRanges()))return!1;if(0==t)return!0;var n,i=r(this.getRanges());try{for(i.s();!(n=i.n()).done;){var o=n.value;o=o.getTrimmed();var a,s=!1,l=r(e.getRanges());try{for(l.s();!(a=l.n()).done;){var u=a.value;if(u=u.getTrimmed(),o.start.isEqual(u.start)&&o.end.isEqual(u.end)){s=!0;break}}}catch(c){l.e(c)}finally{l.f()}if(!s)return!1}}catch(c){i.e(c)}finally{i.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(t,n,r){if(null===t)this._setRanges([]),this._setFakeOptions(n);else if(t instanceof e||t instanceof hr)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof lr)this._setRanges([t],n&&n.backward),this._setFakeOptions(n);else if(t instanceof sr)this._setRanges([new lr(t)]),this._setFakeOptions(n);else if(t instanceof xn){var i,o=!!r&&!!r.backward;if(void 0===n)throw new C.a("view-selection-setto-required-second-parameter",this);i="in"==n?lr._createIn(t):"on"==n?lr._createOn(t):new lr(sr._createAt(t,n)),this._setRanges([i],o),this._setFakeOptions(r)}else{if(!fn(t))throw new C.a("view-selection-setto-not-selectable",this);this._setRanges(t,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new C.a("view-selection-setfocus-no-ranges",this);var n=sr._createAt(e,t);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.pop(),"before"==n.compareWith(r)?this._addRange(new lr(n,r),!0):this._addRange(new lr(r,n)),this.fire("change")}}},{key:"is",value:function(e){return"selection"===e||"view:selection"===e}},{key:"_setRanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e),this._ranges=[];var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;this._addRange(o)}}catch(a){i.e(a)}finally{i.f()}this._lastRangeBackward=!!t}},{key:"_setFakeOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}},{key:"_addRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof lr))throw new C.a("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}},{key:"_pushRange",value:function(e){var t,n=r(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(e.isIntersecting(i))throw new C.a("view-selection-range-intersects",this,{addedRange:e,intersectingRange:i})}}catch(o){n.e(o)}finally{n.f()}this._ranges.push(new lr(e.start,e.end))}},{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}},{key:"focus",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}},{key:"isCollapsed",get:function(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}}]),e}();Ke(dr,A);var hr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;s(this,e),this._selection=new dr,this._selection.delegate("change").to(this),this._selection.setTo(t,n,r)}return u(e,[{key:"getRanges",value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(e){return this._selection.isEqual(e)}},{key:"isSimilar",value:function(e){return this._selection.isSimilar(e)}},{key:"is",value:function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}}]),e}();Ke(hr,A);var fr=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this,e,r)).startRange=i,o._eventPhase="none",o._currentTarget=null,o}return u(n,[{key:"eventPhase",get:function(){return this._eventPhase}},{key:"currentTarget",get:function(){return this._currentTarget}}]),n}(k),vr=Symbol("bubbling contexts"),pr={fire:function(e){try{var t=e instanceof k?e:new k(this,e),n=kr(this);if(!n.size)return;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(gr(t,"capturing",this),mr.apply(void 0,[n,"$capture",t].concat(i)))return t.return;var a=t.startRange||this.selection.getFirstRange(),s=a?a.getContainedElement():null,l=!!s&&Boolean(yr(n,s)),u=s||function(e){if(!e)return null;var t=e.start.parent,n=e.end.parent,r=t.getPath(),i=n.getPath();return r.length>i.length?t:n}(a);if(gr(t,"atTarget",u),!l){if(mr.apply(void 0,[n,"$text",t].concat(i)))return t.return;gr(t,"bubbling",u)}for(;u;){if(u.is("rootElement")){if(mr.apply(void 0,[n,"$root",t].concat(i)))return t.return}else if(u.is("element")&&mr.apply(void 0,[n,u.name,t].concat(i)))return t.return;if(mr.apply(void 0,[n,u,t].concat(i)))return t.return;gr(t,"bubbling",u=u.parent)}return gr(t,"bubbling",this),mr.apply(void 0,[n,"$document",t].concat(i)),t.return}catch(e){C.a.rethrowUnexpectedError(e,this)}},_addEventListener:function(e,t,n){var i,o=gn(n.context||"$document"),a=kr(this),s=r(o);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=a.get(l);u||(u=Object.create(A),a.set(l,u)),this.listenTo(u,e,t,n)}}catch(c){s.e(c)}finally{s.f()}},_removeEventListener:function(e,t){var n,i=r(kr(this).values());try{for(i.s();!(n=i.n()).done;){var o=n.value;this.stopListening(o,e,t)}}catch(a){i.e(a)}finally{i.f()}}};function gr(e,t,n){e instanceof fr&&(e._eventPhase=t,e._currentTarget=n)}function mr(e,t,n){for(var r="string"==typeof t?e.get(t):yr(e,t),i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return!!r&&(r.fire.apply(r,[n].concat(o)),n.stop.called)}function yr(e,t){var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a=n(i.value,2),s=a[0],l=a[1];if("function"==typeof s&&s(t))return l}}catch(u){o.e(u)}finally{o.f()}return null}function kr(e){return e[vr]||(e[vr]=new Map),e[vr]}var br=function(){function e(t){s(this,e),this.selection=new hr,this.roots=new vn({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}return u(e,[{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"destroy",value:function(){this.roots.map((function(e){return e.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,i=r(this._postFixers);try{for(i.s();!(n=i.n()).done;){if(t=(0,n.value)(e))break}}catch(o){i.e(o)}finally{i.f()}}while(t)}}]),e}();Ke(br,pr),Ke(br,Be);var _r=function(e){c(r,e);var n=d(r);function r(e,t,i,o){var a;return s(this,r),(a=n.call(this,e,t,i,o)).getFillerOffset=wr,a._priority=10,a._id=null,a._clonesGroup=null,a}return u(r,[{key:"getElementsWithSameId",value:function(){if(null===this.id)throw new C.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return null!==this.id||null!==e.id?this.id===e.id:t(y(r.prototype),"isSimilar",this).call(this,e)&&this.priority==e.priority}},{key:"_clone",value:function(e){var n=t(y(r.prototype),"_clone",this).call(this,e);return n._priority=this._priority,n._id=this._id,n}},{key:"priority",get:function(){return this._priority}},{key:"id",get:function(){return this._id}}]),r}(Xn);function wr(){if(Cr(this))return null;for(var e=this.parent;e&&e.is("attributeElement");){if(Cr(e)>1)return null;e=e.parent}return!e||Cr(e)>1?null:this.childCount}function Cr(e){return Array.from(e.getChildren()).filter((function(e){return!e.is("uiElement")})).length}_r.DEFAULT_PRIORITY=10;var xr=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e,r,i,o))._isAllowedInsideAttributeElement=!0,a.getFillerOffset=Sr,a}return u(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof xn||Array.from(t).length>0))throw new C.a("view-emptyelement-cannot-add",[this,t])}}]),n}(Xn);function Sr(){return null}var Ar=navigator.userAgent.toLowerCase(),Er=function(e){return e.indexOf("macintosh")>-1}(Ar),Tr=function(e){return!!e.match(/gecko\/\d+/)}(Ar),Pr=function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(Ar),Rr=function(e){return e.indexOf("android")>-1}(Ar),Ir=function(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}(Ar),Or=function(){var e=!1;try{e=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch(e){}return e}(),Mr={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},Nr={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Lr=function(){for(var e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896},t=65;t<=90;t++)e[String.fromCharCode(t).toLowerCase()]=t;for(var n=48;n<=57;n++)e[n-48]=n;for(var r=112;r<=123;r++)e["f"+(r-111)]=r;return e}(),Dr=Object.fromEntries(Object.entries(Lr).map((function(e){var t=n(e,2),r=t[0];return[t[1],r.charAt(0).toUpperCase()+r.slice(1)]})));function jr(e){var t;if("string"==typeof e){if(!(t=Lr[e.toLowerCase()]))throw new C.a("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?Lr.alt:0)+(e.ctrlKey?Lr.ctrl:0)+(e.shiftKey?Lr.shift:0)+(e.metaKey?Lr.cmd:0);return t}function Fr(e){return"string"==typeof e&&(e=function(e){return e.split("+").map((function(e){return e.trim()}))}(e)),e.map((function(e){return"string"==typeof e?function(e){if(e.endsWith("!"))return jr(e.slice(0,-1));var t=jr(e);return Er&&t==Lr.ctrl?Lr.cmd:t}(e):e})).reduce((function(e,t){return t+e}),0)}function Vr(e){var t=Fr(e);return Object.entries(Er?Mr:Nr).reduce((function(e,r){var i=n(r,2),o=i[0],a=i[1];return 0!=(t&Lr[o])&&(t&=~Lr[o],e+=a),e}),"")+(t?Dr[t]:"")}function zr(e,t){var n="ltr"===t;switch(e){case Lr.arrowleft:return n?"left":"right";case Lr.arrowright:return n?"right":"left";case Lr.arrowup:return"up";case Lr.arrowdown:return"down"}}function Br(e,t){var n=zr(e,t);return"down"===n||"right"===n}var Hr=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e,r,i,o))._isAllowedInsideAttributeElement=!0,a.getFillerOffset=Ur,a}return u(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof xn||Array.from(t).length>0))throw new C.a("view-uielement-cannot-add",this)}},{key:"render",value:function(e){return this.toDomElement(e)}},{key:"toDomElement",value:function(e){var t,n=e.createElement(this.name),i=r(this.getAttributeKeys());try{for(i.s();!(t=i.n()).done;){var o=t.value;n.setAttribute(o,this.getAttribute(o))}}catch(a){i.e(a)}finally{i.f()}return n}}]),n}(Xn);function Ur(){return null}var qr=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e,r,i,o))._isAllowedInsideAttributeElement=!0,a.getFillerOffset=Wr,a}return u(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof xn||Array.from(t).length>0))throw new C.a("view-rawelement-cannot-add",[this,t])}}]),n}(Xn);function Wr(){return null}var $r=function(){function e(t,n){s(this,e),this.document=t,this._children=[],n&&this._insertChild(0,n)}return u(e,[{key:Symbol.iterator,value:function(){return this._children[Symbol.iterator]()}},{key:"is",value:function(e){return"documentFragment"===e||"view:documentFragment"===e}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,i=0,o=r(function(e,t){return"string"==typeof t?[new Sn(e,t)]:(fn(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new Sn(e,t):t instanceof An?new Sn(e,t.data):t})))}(this.document,t));try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,this._children.splice(e,0,a),e++,i++}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}]),e}();Ke($r,A);var Kr=function(){function e(t){s(this,e),this.document=t,this._cloneGroups=new Map}return u(e,[{key:"setSelection",value:function(e,t,n){this.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this.document.selection._setFocus(e,t)}},{key:"createDocumentFragment",value:function(e){return new $r(this.document,e)}},{key:"createText",value:function(e){return new Sn(this.document,e)}},{key:"createAttributeElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new _r(this.document,e,t);return"number"==typeof n.priority&&(r._priority=n.priority),n.id&&(r._id=n.id),r}},{key:"createContainerElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new tr(this.document,e,t);return void 0!==n.isAllowedInsideAttributeElement&&(r._isAllowedInsideAttributeElement=n.isAllowedInsideAttributeElement),r}},{key:"createEditableElement",value:function(e,t){var n=new rr(this.document,e,t);return n._document=this.document,n}},{key:"createEmptyElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new xr(this.document,e,t);return void 0!==n.isAllowedInsideAttributeElement&&(r._isAllowedInsideAttributeElement=n.isAllowedInsideAttributeElement),r}},{key:"createUIElement",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=new Hr(this.document,e,t);return n&&(i.render=n),void 0!==r.isAllowedInsideAttributeElement&&(i._isAllowedInsideAttributeElement=r.isAllowedInsideAttributeElement),i}},{key:"createRawElement",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=new qr(this.document,e,t);return i.render=n||function(){},void 0!==r.isAllowedInsideAttributeElement&&(i._isAllowedInsideAttributeElement=r.isAllowedInsideAttributeElement),i}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){it(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"breakAttributes",value:function(e){return e instanceof sr?this._breakAttributes(e):this._breakAttributesRange(e)}},{key:"breakContainer",value:function(e){var t=e.parent;if(!t.is("containerElement"))throw new C.a("view-writer-break-non-container-element",this.document);if(!t.parent)throw new C.a("view-writer-break-root",this.document);if(e.isAtStart)return sr._createBefore(t);if(!e.isAtEnd){var n=t._clone(!1);this.insert(sr._createAfter(t),n);var r=new lr(e,sr._createAt(t,"end")),i=new sr(n,0);this.move(r,i)}return sr._createAfter(t)}},{key:"mergeAttributes",value:function(e){var t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){var r=n.parent,i=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new sr(r,i))}var o=n.getChild(t-1),a=n.getChild(t);if(!o||!a)return e;if(o.is("$text")&&a.is("$text"))return Yr(o,a);if(o.is("attributeElement")&&a.is("attributeElement")&&o.isSimilar(a)){var s=o.childCount;return o._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new sr(o,s))}return e}},{key:"mergeContainers",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new C.a("view-writer-merge-containers-invalid-position",this.document);var r=t.getChild(t.childCount-1),i=sr._createAt(r instanceof Sn?r:t,"end");return this.move(lr._createIn(n),sr._createAt(t,"end")),this.remove(lr._createOn(n)),i}},{key:"insert",value:function(e,t){!function e(t,n){var i,o=r(t);try{var a=function(){var t=i.value;if(!Xr.some((function(e){return t instanceof e})))throw new C.a("view-writer-insert-invalid-node-type",n);t.is("$text")||e(t.getChildren(),n)};for(o.s();!(i=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}}(t=fn(t)?i(t):[t],this.document);var n,o=t.reduce((function(e,t){var n=e[e.length-1],r=!(t.is("uiElement")&&t.isAllowedInsideAttributeElement);return n&&n.breakAttributes==r?n.nodes.push(t):e.push({breakAttributes:r,nodes:[t]}),e}),[]),a=null,s=e,l=r(o);try{for(l.s();!(n=l.n()).done;){var u=n.value,c=u.nodes,d=u.breakAttributes,h=this._insertNodes(s,c,d);a||(a=h.start),s=h.end}}catch(f){l.e(f)}finally{l.f()}return a?new lr(a,s):new lr(e)}},{key:"remove",value:function(e){var t=e instanceof lr?e:lr._createOn(e);if(ti(t,this.document),t.isCollapsed)return new $r(this.document);var n,i=this._breakAttributesRange(t,!0),o=i.start,a=i.end,s=o.parent._removeChildren(o.offset,a.offset-o.offset),l=r(s);try{for(l.s();!(n=l.n()).done;){var u=n.value;this._removeFromClonedElementsGroup(u)}}catch(d){l.e(d)}finally{l.f()}var c=this.mergeAttributes(o);return t.start=c,t.end=c.clone(),new $r(this.document,s)}},{key:"clear",value:function(e,t){ti(e,this.document);var n,i=r(e.getWalker({direction:"backward",ignoreElementEnd:!0}));try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.item,s=void 0;if(a.is("element")&&t.isSimilar(a))s=lr._createOn(a);else if(!o.nextPosition.isAfter(e.start)&&a.is("$textProxy")){var l=a.getAncestors().find((function(e){return e.is("element")&&t.isSimilar(e)}));l&&(s=lr._createIn(l))}s&&(s.end.isAfter(e.end)&&(s.end=e.end),s.start.isBefore(e.start)&&(s.start=e.start),this.remove(s))}}catch(u){i.e(u)}finally{i.f()}}},{key:"move",value:function(e,t){var n;if(t.isAfter(e.end)){var r=(t=this._breakAttributes(t,!0)).parent,i=r.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=r.childCount-i}else n=this.remove(e);return this.insert(t,n)}},{key:"wrap",value:function(e,t){if(!(t instanceof _r))throw new C.a("view-writer-wrap-invalid-attribute",this.document);if(ti(e,this.document),e.isCollapsed){var n=e.start;n.parent.is("element")&&!Array.from(n.parent.getChildren()).some((function(e){return!e.is("uiElement")}))&&(n=n.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))),n=this._wrapPosition(n,t);var r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new lr(n)}return this._wrapRange(e,t)}},{key:"unwrap",value:function(e,t){if(!(t instanceof _r))throw new C.a("view-writer-unwrap-invalid-attribute",this.document);if(ti(e,this.document),e.isCollapsed)return e;var n=this._breakAttributesRange(e,!0),r=n.start,i=n.end,o=this._unwrapChildren(r.parent,r.offset,i.offset,t),a=this.mergeAttributes(o.start);a.isEqual(o.start)||o.end.offset--;var s=this.mergeAttributes(o.end);return new lr(a,s)}},{key:"rename",value:function(e,t){var n=new tr(this.document,e,t.getAttributes());return this.insert(sr._createAfter(t),n),this.move(lr._createIn(t),sr._createAt(n,0)),this.remove(lr._createOn(t)),n}},{key:"clearClonedElementsGroup",value:function(e){this._cloneGroups.delete(e)}},{key:"createPositionAt",value:function(e,t){return sr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return sr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return sr._createBefore(e)}},{key:"createRange",value:function(e,t){return new lr(e,t)}},{key:"createRangeOn",value:function(e){return lr._createOn(e)}},{key:"createRangeIn",value:function(e){return lr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new dr(e,t,n)}},{key:"_insertNodes",value:function(e,t,n){var i,o;if(!(i=n?Gr(e):e.parent.is("$text")?e.parent.parent:e.parent))throw new C.a("view-writer-invalid-position-container",this.document);o=n?this._breakAttributes(e,!0):e.parent.is("$text")?Zr(e):e;var a,s=i._insertChild(o.offset,t),l=r(t);try{for(l.s();!(a=l.n()).done;){var u=a.value;this._addToClonedElementsGroup(u)}}catch(f){l.e(f)}finally{l.f()}var c=o.getShiftedBy(s),d=this.mergeAttributes(o);d.isEqual(o)||c.offset--;var h=this.mergeAttributes(c);return new lr(d,h)}},{key:"_wrapChildren",value:function(e,t,n,r){for(var i=t,o=[];i<n;){var a=e.getChild(i),s=a.is("$text"),l=a.is("attributeElement"),u=a.isAllowedInsideAttributeElement;if(l&&this._wrapAttributeElement(r,a))o.push(new sr(e,i));else if(s||u||l&&Jr(r,a)){var c=r._clone();a._remove(),c._appendChild(a),e._insertChild(i,c),this._addToClonedElementsGroup(c),o.push(new sr(e,i))}else l&&this._wrapChildren(a,0,a.childCount,r);i++}for(var d=0,h=0,f=o;h<f.length;h++){var v=f[h];v.offset-=d,v.offset!=t&&(this.mergeAttributes(v).isEqual(v)||(d++,n--))}return lr._createFromParentsAndOffsets(e,t,e,n)}},{key:"_unwrapChildren",value:function(e,t,n,r){for(var i=t,o=[];i<n;){var a=e.getChild(i);if(a.is("attributeElement"))if(a.isSimilar(r)){var s=a.getChildren(),l=a.childCount;a._remove(),e._insertChild(i,s),this._removeFromClonedElementsGroup(a),o.push(new sr(e,i),new sr(e,i+l)),i+=l,n+=l-1}else this._unwrapAttributeElement(r,a)?(o.push(new sr(e,i),new sr(e,i+1)),i++):(this._unwrapChildren(a,0,a.childCount,r),i++);else i++}for(var u=0,c=0,d=o;c<d.length;c++){var h=d[c];h.offset-=u,h.offset!=t&&h.offset!=n&&(this.mergeAttributes(h).isEqual(h)||(u++,n--))}return lr._createFromParentsAndOffsets(e,t,e,n)}},{key:"_wrapRange",value:function(e,t){var n=this._breakAttributesRange(e,!0),r=n.start,i=n.end,o=this._wrapChildren(r.parent,r.offset,i.offset,t),a=this.mergeAttributes(o.start);a.isEqual(o.start)||o.end.offset--;var s=this.mergeAttributes(o.end);return new lr(a,s)}},{key:"_wrapPosition",value:function(e,t){if(t.isSimilar(e.parent))return Qr(e.clone());e.parent.is("$text")&&(e=Zr(e));var n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=function(){return!1},e.parent._insertChild(e.offset,n);var r=new lr(e,e.getShiftedBy(1));this.wrap(r,t);var i=new sr(n.parent,n.index);n._remove();var o=i.nodeBefore,a=i.nodeAfter;return o instanceof Sn&&a instanceof Sn?Yr(o,a):Qr(i)}},{key:"_wrapAttributeElement",value:function(e,t){if(!ni(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,i=r(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var o=n.value;if("class"!==o&&"style"!==o&&t.hasAttribute(o)&&t.getAttribute(o)!==e.getAttribute(o))return!1}}catch(y){i.e(y)}finally{i.f()}var a,s=r(e.getStyleNames());try{for(s.s();!(a=s.n()).done;){var l=a.value;if(t.hasStyle(l)&&t.getStyle(l)!==e.getStyle(l))return!1}}catch(y){s.e(y)}finally{s.f()}var u,c=r(e.getAttributeKeys());try{for(c.s();!(u=c.n()).done;){var d=u.value;"class"!==d&&"style"!==d&&(t.hasAttribute(d)||this.setAttribute(d,e.getAttribute(d),t))}}catch(y){c.e(y)}finally{c.f()}var h,f=r(e.getStyleNames());try{for(f.s();!(h=f.n()).done;){var v=h.value;t.hasStyle(v)||this.setStyle(v,e.getStyle(v),t)}}catch(y){f.e(y)}finally{f.f()}var p,g=r(e.getClassNames());try{for(g.s();!(p=g.n()).done;){var m=p.value;t.hasClass(m)||this.addClass(m,t)}}catch(y){g.e(y)}finally{g.f()}return!0}},{key:"_unwrapAttributeElement",value:function(e,t){if(!ni(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,o=r(e.getAttributeKeys());try{for(o.s();!(n=o.n()).done;){var a=n.value;if("class"!==a&&"style"!==a&&(!t.hasAttribute(a)||t.getAttribute(a)!==e.getAttribute(a)))return!1}}catch(f){o.e(f)}finally{o.f()}if(!t.hasClass.apply(t,i(e.getClassNames())))return!1;var s,l=r(e.getStyleNames());try{for(l.s();!(s=l.n()).done;){var u=s.value;if(!t.hasStyle(u)||t.getStyle(u)!==e.getStyle(u))return!1}}catch(f){l.e(f)}finally{l.f()}var c,d=r(e.getAttributeKeys());try{for(d.s();!(c=d.n()).done;){var h=c.value;"class"!==h&&"style"!==h&&this.removeAttribute(h,t)}}catch(f){d.e(f)}finally{d.f()}return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}},{key:"_breakAttributesRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.start,r=e.end;if(ti(e,this.document),e.isCollapsed){var i=this._breakAttributes(e.start,t);return new lr(i,i)}var o=this._breakAttributes(r,t),a=o.parent.childCount,s=this._breakAttributes(n,t);return o.offset+=o.parent.childCount-a,new lr(s,o)}},{key:"_breakAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.offset,r=e.parent;if(e.parent.is("emptyElement"))throw new C.a("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new C.a("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new C.a("view-writer-cannot-break-raw-element",this.document);if(!t&&r.is("$text")&&ei(r.parent))return e.clone();if(ei(r))return e.clone();if(r.is("$text"))return this._breakAttributes(Zr(e),t);if(n==r.childCount){var i=new sr(r.parent,r.index+1);return this._breakAttributes(i,t)}if(0===n){var o=new sr(r.parent,r.index);return this._breakAttributes(o,t)}var a=r.index+1,s=r._clone();r.parent._insertChild(a,s),this._addToClonedElementsGroup(s);var l=r._removeChildren(n,r.childCount-n);s._appendChild(l);var u=new sr(r.parent,a);return this._breakAttributes(u,t)}},{key:"_addToClonedElementsGroup",value:function(e){if(e.root.is("rootElement")){if(e.is("element")){var t,n=r(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._addToClonedElementsGroup(i)}}catch(s){n.e(s)}finally{n.f()}}var o=e.id;if(o){var a=this._cloneGroups.get(o);a||(a=new Set,this._cloneGroups.set(o,a)),a.add(e),e._clonesGroup=a}}}},{key:"_removeFromClonedElementsGroup",value:function(e){if(e.is("element")){var t,n=r(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._removeFromClonedElementsGroup(i)}}catch(s){n.e(s)}finally{n.f()}}var o=e.id;if(o){var a=this._cloneGroups.get(o);a&&a.delete(e)}}}]),e}();function Gr(e){for(var t=e.parent;!ei(t);){if(!t)return;t=t.parent}return t}function Jr(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function Qr(e){var t=e.nodeBefore;if(t&&t.is("$text"))return new sr(t,t.data.length);var n=e.nodeAfter;return n&&n.is("$text")?new sr(n,0):e}function Zr(e){if(e.offset==e.parent.data.length)return new sr(e.parent.parent,e.parent.index+1);if(0===e.offset)return new sr(e.parent.parent,e.parent.index);var t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new Sn(e.root.document,t)),new sr(e.parent.parent,e.parent.index+1)}function Yr(e,t){var n=e.data.length;return e._data+=t.data,t._remove(),new sr(e,n)}var Xr=[Sn,_r,tr,xr,qr,Hr];function ei(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function ti(e,t){var n=Gr(e.start),r=Gr(e.end);if(!n||!r||n!==r)throw new C.a("view-writer-invalid-range-container",t)}function ni(e,t){return null===e.id&&null===t.id}function ri(e){return"[object Text]"==Object.prototype.toString.call(e)}var ii=function(e){return e.createTextNode("\xa0")},oi=function(e){var t=e.createElement("span");return t.dataset.ckeFiller=!0,t.innerHTML="\xa0",t},ai=function(e){var t=e.createElement("br");return t.dataset.ckeFiller=!0,t},si="\u2060".repeat(7);function li(e){return ri(e)&&e.data.substr(0,7)===si}function ui(e){return 7==e.data.length&&li(e)}function ci(e){return li(e)?e.data.slice(7):e.data}function di(e,t){if(t.keyCode==Lr.arrowleft){var n=t.domTarget.ownerDocument.defaultView.getSelection();if(1==n.rangeCount&&n.getRangeAt(0).collapsed){var r=n.getRangeAt(0).startContainer,i=n.getRangeAt(0).startOffset;li(r)&&i<=7&&n.collapse(r,0)}}}function hi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n||function(e,t){return e===t},Array.isArray(e)||(e=Array.prototype.slice.call(e)),Array.isArray(t)||(t=Array.prototype.slice.call(t));var i=function(e,t,n){var r=fi(e,t,n);if(-1===r)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var i=fi(vi(e,r),vi(t,r),n);return{firstIndex:r,lastIndexOld:e.length-i,lastIndexNew:t.length-i}}(e,t,n);return r?function(e,t){var n=e.firstIndex,r=e.lastIndexOld,i=e.lastIndexNew;if(-1===n)return Array(t).fill("equal");var o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),i-n>0&&(o=o.concat(Array(i-n).fill("insert"))),r-n>0&&(o=o.concat(Array(r-n).fill("delete"))),i<t&&(o=o.concat(Array(t-i).fill("equal"))),o}(i,t.length):function(e,t){var n=[],r=t.firstIndex,i=t.lastIndexOld,o=t.lastIndexNew;return o-r>0&&n.push({index:r,type:"insert",values:e.slice(r,o)}),i-r>0&&n.push({index:r+(o-r),type:"delete",howMany:i-r}),n}(t,i)}function fi(e,t,n){for(var r=0;r<Math.max(e.length,t.length);r++)if(void 0===e[r]||void 0===t[r]||!n(e[r],t[r]))return r;return-1}function vi(e,t){return e.slice(t).reverse()}function pi(e,t,n){n=n||function(e,t){return e===t};var r,i,o=e.length,a=t.length;if(o>200||a>200||o+a>300)return pi.fastDiff(e,t,n,!0);if(a<o){var s=e;e=t,t=s,r="delete",i="insert"}else r="insert",i="delete";var l=e.length,u=t.length,c=u-l,d={},h={};function f(o){var a=(void 0!==h[o-1]?h[o-1]:-1)+1,s=void 0!==h[o+1]?h[o+1]:-1,c=a>s?-1:1;d[o+c]&&(d[o]=d[o+c].slice(0)),d[o]||(d[o]=[]),d[o].push(a>s?r:i);for(var f=Math.max(a,s),v=f-o;v<l&&f<u&&n(e[v],t[f]);)v++,f++,d[o].push("equal");return f}var v,p=0;do{for(v=-p;v<c;v++)h[v]=f(v);for(v=c+p;v>c;v--)h[v]=f(v);h[c]=f(c),p++}while(h[c]!==u);return d[c].slice(1)}function gi(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function mi(e){var t=e.parentNode;t&&t.removeChild(e)}function yi(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}pi.fastDiff=hi;var ki=function(){function e(t,n){s(this,e),this.domDocuments=new Set,this.domConverter=t,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}return u(e,[{key:"markToSync",value:function(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new C.a("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}},{key:"render",value:function(){var e,t,n=r(this.markedChildren);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._updateChildrenMappings(i)}}catch(g){n.e(g)}finally{n.f()}this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent));var o,a=r(this.markedAttributes);try{for(a.s();!(o=a.n()).done;){var s=o.value;this._updateAttrs(s)}}catch(g){a.e(g)}finally{a.f()}var l,u=r(this.markedChildren);try{for(u.s();!(l=u.n()).done;){var c=l.value;this._updateChildren(c,{inlineFillerPosition:e})}}catch(g){u.e(g)}finally{u.f()}var d,h=r(this.markedTexts);try{for(h.s();!(d=h.n()).done;){var f=d.value;!this.markedChildren.has(f.parent)&&this.domConverter.mapViewToDom(f.parent)&&this._updateText(f,{inlineFillerPosition:e})}}catch(g){h.e(g)}finally{h.f()}if(e){var v=this.domConverter.viewPositionToDom(e),p=v.parent.ownerDocument;this._inlineFiller=li(v.parent)?v.parent:bi(p,v.parent,v.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}},{key:"_updateChildrenMappings",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n=Array.from(this.domConverter.mapViewToDom(e).childNodes),i=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:!1})),o=this._diffNodeLists(n,i),a=this._findReplaceActions(o,n,i);if(-1!==a.indexOf("replace")){var s,l={equal:0,insert:0,delete:0},u=r(a);try{for(u.s();!(s=u.n()).done;){var c=s.value;if("replace"===c){var d=l.equal+l.insert,h=l.equal+l.delete,f=e.getChild(d);!f||f.is("uiElement")||f.is("rawElement")||this._updateElementMappings(f,n[h]),mi(i[d]),l.equal++}else l[c]++}}catch(v){u.e(v)}finally{u.f()}}}}},{key:"_updateElementMappings",value:function(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}},{key:"_getInlineFillerPosition",value:function(){var e=this.selection.getFirstPosition();return e.parent.is("$text")?sr._createBefore(this.selection.getFirstPosition().parent):e}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&ri(t.parent)&&li(t.parent))}},{key:"_removeInlineFiller",value:function(){var e=this._inlineFiller;if(!li(e))throw new C.a("view-renderer-filler-was-lost",this);ui(e)?e.parentNode.removeChild(e):e.data=e.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;return!(!this.domConverter.mapViewToDom(t.root)||!t.is("element")||!function(e){if("false"==e.getAttribute("contenteditable"))return!1;var t=e.findAncestor((function(e){return e.hasAttribute("contenteditable")}));return!t||"true"==t.getAttribute("contenteditable")}(t)||n===t.getFillerOffset()||e.nodeBefore instanceof Sn||e.nodeAfter instanceof Sn)}},{key:"_updateText",value:function(e,t){var n=this.domConverter.findCorrespondingDomText(e),i=this.domConverter.viewToDom(e,n.ownerDocument),o=n.data,a=i.data,s=t.inlineFillerPosition;if(s&&s.parent==e.parent&&s.offset==e.index&&(a=si+a),o!=a){var l,u=r(hi(o,a));try{for(u.s();!(l=u.n()).done;){var c=l.value;"insert"===c.type?n.insertData(c.index,c.values.join("")):n.deleteData(c.index,c.howMany)}}catch(d){u.e(d)}finally{u.f()}}}},{key:"_updateAttrs",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n,i=Array.from(t.attributes).map((function(e){return e.name})),o=r(e.getAttributeKeys());try{for(o.s();!(n=o.n()).done;){var a=n.value;t.setAttribute(a,e.getAttribute(a))}}catch(c){o.e(c)}finally{o.f()}var s,l=r(i);try{for(l.s();!(s=l.n()).done;){var u=s.value;e.hasAttribute(u)||t.removeAttribute(u)}}catch(c){l.e(c)}finally{l.f()}}}},{key:"_updateChildren",value:function(e,t){var n=this.domConverter.mapViewToDom(e);if(n){var i=t.inlineFillerPosition,o=this.domConverter.mapViewToDom(e).childNodes,a=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:!0,inlineFillerPosition:i}));i&&i.parent===e&&bi(n.ownerDocument,a,i.offset);var s,l=this._diffNodeLists(o,a),u=0,c=new Set,d=r(l);try{for(d.s();!(s=d.n()).done;){var h=s.value;"delete"===h?(c.add(o[u]),mi(o[u])):"equal"===h&&u++}}catch(k){d.e(k)}finally{d.f()}u=0;var f,v=r(l);try{for(v.s();!(f=v.n()).done;){var p=f.value;"insert"===p?(gi(n,u,a[u]),u++):"equal"===p&&(this._markDescendantTextToSync(this.domConverter.domToView(a[u])),u++)}}catch(k){v.e(k)}finally{v.f()}var g,m=r(c);try{for(m.s();!(g=m.n()).done;){var y=g.value;y.parentNode||this.domConverter.unbindDomElement(y)}}catch(k){m.e(k)}finally{m.f()}}}},{key:"_diffNodeLists",value:function(e,t){return pi(e=function(e,t){var n=Array.from(e);return 0!=n.length&&t?(n[n.length-1]==t&&n.pop(),n):n}(e,this._fakeSelectionContainer),t,wi.bind(null,this.domConverter))}},{key:"_findReplaceActions",value:function(e,t,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;var i,o=[],a=[],s=[],l={equal:0,insert:0,delete:0},u=r(e);try{for(u.s();!(i=u.n()).done;){var c=i.value;"insert"===c?s.push(n[l.equal+l.insert]):"delete"===c?a.push(t[l.equal+l.delete]):((o=o.concat(pi(a,s,_i).map((function(e){return"equal"===e?"replace":e})))).push("equal"),a=[],s=[]),l[c]++}}catch(d){u.e(d)}finally{u.f()}return o.concat(pi(a,s,_i).map((function(e){return"equal"===e?"replace":e})))}},{key:"_markDescendantTextToSync",value:function(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element")){var t,n=r(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._markDescendantTextToSync(i)}}catch(o){n.e(o)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}},{key:"_updateFakeSelection",value:function(e){var t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){var t=e.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent="\xa0",t}(t));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),this._fakeSelectionNeedsUpdate(e)){n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||"\xa0";var r=t.getSelection(),i=t.createRange();r.removeAllRanges(),i.selectNodeContents(n),r.addRange(i)}}},{key:"_updateDomSelection",value:function(e){var t=e.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(t)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),r=this.domConverter.viewPositionToDom(this.selection.focus);t.collapse(n.parent,n.offset),t.extend(r.parent,r.offset),Tr&&function(e,t){var n=e.parent;if(n.nodeType==Node.ELEMENT_NODE&&e.offset==n.childNodes.length-1){var r=n.childNodes[e.offset];r&&"BR"==r.tagName&&t.addRange(t.getRangeAt(0))}}(r,t)}}},{key:"_domSelectionNeedsUpdate",value:function(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;var t=e&&this.domConverter.domSelectionToView(e);return!(t&&this.selection.isEqual(t)||!this.selection.isCollapsed&&this.selection.isSimilar(t))}},{key:"_fakeSelectionNeedsUpdate",value:function(e){var t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}},{key:"_removeDomSelection",value:function(){var e,t=r(this.domDocuments);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.getSelection().rangeCount){var i=n.activeElement,o=this.domConverter.mapDomToView(i);i&&o&&n.getSelection().removeAllRanges()}}}catch(a){t.e(a)}finally{t.f()}}},{key:"_removeFakeSelection",value:function(){var e=this._fakeSelectionContainer;e&&e.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}]),e}();function bi(e,t,n){var r=t instanceof Array?t:t.childNodes,i=r[n];if(ri(i))return i.data=si+i.data,i;var o=e.createTextNode(si);return Array.isArray(t)?r.splice(n,0,o):gi(t,n,o),o}function _i(e,t){return yi(e)&&yi(t)&&!ri(e)&&!ri(t)&&e.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.COMMENT_NODE&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function wi(e,t,n){return t===n||(ri(t)&&ri(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}Ke(ki,Be);var Ci={window:window,document:document};function xi(e){for(var t=0;e.previousSibling;)e=e.previousSibling,t++;return t}function Si(e){for(var t=[];e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}var Ai=ai(document),Ei=ii(document),Ti=oi(document),Pi=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.document=t,this.blockFillerMode=n.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new Tn,this._encounteredRawContentDomNodes=new WeakSet}return u(e,[{key:"bindFakeSelection",value:function(e,t){this._fakeSelectionMapping.set(e,new dr(t))}},{key:"fakeSelectionToView",value:function(e){return this._fakeSelectionMapping.get(e)}},{key:"bindElements",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"unbindDomElement",value:function(e){var t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);var n,i=r(e.childNodes);try{for(i.s();!(n=i.n()).done;){var o=n.value;this.unbindDomElement(o)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"bindDocumentFragments",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"viewToDom",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.is("$text")){var o=this._processDataFromViewText(e);return t.createTextNode(o)}if(this.mapViewToDom(e))return this.mapViewToDom(e);if(e.is("documentFragment"))n=t.createDocumentFragment(),i.bind&&this.bindDocumentFragments(n,e);else{if(e.is("uiElement"))return n=e.render(t),i.bind&&this.bindElements(n,e),n;n=e.hasAttribute("xmlns")?t.createElementNS(e.getAttribute("xmlns"),e.name):t.createElement(e.name),e.is("rawElement")&&e.render(n),i.bind&&this.bindElements(n,e);var a,s=r(e.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var l=a.value;n.setAttribute(l,e.getAttribute(l))}}catch(h){s.e(h)}finally{s.f()}}if(!1!==i.withChildren){var u,c=r(this.viewChildrenToDom(e,t,i));try{for(c.s();!(u=c.n()).done;){var d=u.value;n.appendChild(d)}}catch(h){c.e(h)}finally{c.f()}}return n}},{key:"viewChildrenToDom",value:regeneratorRuntime.mark((function e(t,n){var i,o,a,s,l,u,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=c.length>2&&void 0!==c[2]?c[2]:{},o=t.getFillerOffset&&t.getFillerOffset(),a=0,s=r(t.getChildren()),e.prev=4,s.s();case 6:if((l=s.n()).done){e.next=17;break}if(u=l.value,e.t0=o===a,!e.t0){e.next=12;break}return e.next=12,this._getBlockFiller(n);case 12:return e.next=14,this.viewToDom(u,n,i);case 14:a++;case 15:e.next=6;break;case 17:e.next=22;break;case 19:e.prev=19,e.t1=e.catch(4),s.e(e.t1);case 22:return e.prev=22,s.f(),e.finish(22);case 25:if(e.t2=o===a,!e.t2){e.next=29;break}return e.next=29,this._getBlockFiller(n);case 29:case"end":return e.stop()}}),e,this,[[4,19,22,25]])}))},{key:"viewRangeToDom",value:function(e){var t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),r=document.createRange();return r.setStart(t.parent,t.offset),r.setEnd(n.parent,n.offset),r}},{key:"viewPositionToDom",value:function(e){var t,n,r,i=e.parent;if(i.is("$text")){var o=this.findCorrespondingDomText(i);if(!o)return null;var a=e.offset;return li(o)&&(a+=7),{parent:o,offset:a}}if(0===e.offset){if(!(t=this.mapViewToDom(i)))return null;r=t.childNodes[0]}else{var s=e.nodeBefore;if(!(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(e.nodeBefore)))return null;t=n.parentNode,r=n.nextSibling}return ri(r)&&li(r)?{parent:r,offset:7}:{parent:t,offset:n?xi(n)+1:0}}},{key:"domToView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(e))return null;var n,i=this.getHostViewElement(e);if(i)return i;if(ri(e)){if(ui(e))return null;var o=this._processDataFromDomText(e);return""===o?null:new Sn(this.document,o)}if(this.isComment(e))return null;if(this.mapDomToView(e))return this.mapDomToView(e);if(this.isDocumentFragment(e))n=new $r(this.document),t.bind&&this.bindDocumentFragments(e,n);else{var a=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();n=new Xn(this.document,a),t.bind&&this.bindElements(e,n);for(var s=e.attributes,l=s.length-1;l>=0;l--)n._setAttribute(s[l].name,s[l].value);if(!1!==t.withChildren&&this._rawContentElementMatcher.match(n))return n._setCustomProperty("$rawContent",e.innerHTML),this._encounteredRawContentDomNodes.add(e),n}if(!1!==t.withChildren){var u,c=r(this.domChildrenToView(e,t));try{for(c.s();!(u=c.n()).done;){var d=u.value;n._appendChild(d)}}catch(h){c.e(h)}finally{c.f()}}return n}},{key:"domChildrenToView",value:regeneratorRuntime.mark((function e(t){var n,r,i,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=o.length>1&&void 0!==o[1]?o[1]:{},r=0;case 2:if(!(r<t.childNodes.length)){e.next=11;break}if(i=this.domToView(t.childNodes[r],n),e.t0=null!==i,!e.t0){e.next=8;break}return e.next=8,i;case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)}))},{key:"domSelectionToView",value:function(e){if(1===e.rangeCount){var t=e.getRangeAt(0).startContainer;ri(t)&&(t=t.parentNode);var n=this.fakeSelectionToView(t);if(n)return n}for(var r=this.isDomSelectionBackward(e),i=[],o=0;o<e.rangeCount;o++){var a=e.getRangeAt(o),s=this.domRangeToView(a);s&&i.push(s)}return new dr(i,{backward:r})}},{key:"domRangeToView",value:function(e){var t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new lr(t,n):null}},{key:"domPositionToView",value:function(e,t){if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,xi(e));var n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return sr._createBefore(n);if(ri(e)){if(ui(e))return this.domPositionToView(e.parentNode,xi(e));var r=this.findCorrespondingViewText(e),i=t;return r?(li(e)&&(i=(i-=7)<0?0:i),new sr(r,i)):null}if(0===t){var o=this.mapDomToView(e);if(o)return new sr(o,0)}else{var a=e.childNodes[t-1],s=ri(a)?this.findCorrespondingViewText(a):this.mapDomToView(a);if(s&&s.parent)return new sr(s.parent,s.index+1)}return null}},{key:"mapDomToView",value:function(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}},{key:"findCorrespondingViewText",value:function(e){if(ui(e))return null;var t=this.getHostViewElement(e);if(t)return t;var n=e.previousSibling;if(n){if(!this.isElement(n))return null;var r=this.mapDomToView(n);if(r)return r.nextSibling instanceof Sn?r.nextSibling:null}else{var i=this.mapDomToView(e.parentNode);if(i){var o=i.getChild(0);return o instanceof Sn?o:null}}return null}},{key:"mapViewToDom",value:function(e){return this._viewToDomMapping.get(e)}},{key:"findCorrespondingDomText",value:function(e){var t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}},{key:"focus",value:function(e){var t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){var r=Ci.window,i=r.scrollX,o=r.scrollY,a=[];Ii(t,(function(e){var t=e.scrollLeft,n=e.scrollTop;a.push([t,n])})),t.focus(),Ii(t,(function(e){var t=n(a.shift(),2),r=t[0],i=t[1];e.scrollLeft=r,e.scrollTop=i})),Ci.window.scrollTo(i,o)}}},{key:"isElement",value:function(e){return e&&e.nodeType==Node.ELEMENT_NODE}},{key:"isDocumentFragment",value:function(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:"isComment",value:function(e){return e&&e.nodeType==Node.COMMENT_NODE}},{key:"isBlockFiller",value:function(e){return"br"==this.blockFillerMode?e.isEqualNode(Ai):!("BR"!==e.tagName||!Oi(e,this.blockElements)||1!==e.parentNode.childNodes.length)||e.isEqualNode(Ti)||function(e,t){return e.isEqualNode(Ei)&&Oi(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}},{key:"isDomSelectionBackward",value:function(e){if(e.isCollapsed)return!1;var t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);var n=t.collapsed;return t.detach(),n}},{key:"getHostViewElement",value:function(e){var t=Si(e);for(t.pop();t.length;){var n=t.pop(),r=this._domToViewMapping.get(n);if(r&&(r.is("uiElement")||r.is("rawElement")))return r}return null}},{key:"isDomSelectionCorrect",value:function(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}},{key:"registerRawContentMatcher",value:function(e){this._rawContentElementMatcher.add(e)}},{key:"_getBlockFiller",value:function(e){switch(this.blockFillerMode){case"nbsp":return ii(e);case"markedNbsp":return oi(e);case"br":return ai(e)}}},{key:"_isDomSelectionPositionCorrect",value:function(e,t){if(ri(e)&&li(e)&&t<7)return!1;if(this.isElement(e)&&li(e.childNodes[t]))return!1;var n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}},{key:"_processDataFromViewText",value:function(e){var t=this,n=e.data;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return n;if(" "==n.charAt(0)){var r=this._getTouchingViewTextNode(e,!1);(!r||!this._nodeEndsWithSpace(r))&&r||(n="\xa0"+n.substr(1))}if(" "==n.charAt(n.length-1)){var i=this._getTouchingViewTextNode(e,!0);" "!=n.charAt(n.length-2)&&i&&" "!=i.data.charAt(0)||(n=n.substr(0,n.length-1)+"\xa0")}return n.replace(/ {2}/g," \xa0")}},{key:"_nodeEndsWithSpace",value:function(e){var t=this;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return!1;var n=this._processDataFromViewText(e);return" "==n.charAt(n.length-1)}},{key:"_processDataFromDomText",value:function(e){var t=e.data;if(Ri(e,this.preElements))return ci(e);t=t.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(e,!1),r=this._getTouchingInlineDomNode(e,!0),i=this._checkShouldLeftTrimDomText(e,n),o=this._checkShouldRightTrimDomText(e,r);return i&&(t=t.replace(/^ /,"")),o&&(t=t.replace(/ $/,"")),t=(t=ci(new Text(t))).replace(/ \u00A0/g," "),(/( |\u00A0)\u00A0$/.test(t)||!r||r.data&&" "==r.data.charAt(0))&&(t=t.replace(/\u00A0$/," ")),i&&(t=t.replace(/^\u00A0/," ")),t}},{key:"_checkShouldLeftTrimDomText",value:function(e,t){return!t||!!un(t)||!this._encounteredRawContentDomNodes.has(e.previousSibling)&&/[^\S\u00A0]/.test(t.data.charAt(t.data.length-1))}},{key:"_checkShouldRightTrimDomText",value:function(e,t){return!t&&!li(e)}},{key:"_getTouchingViewTextNode",value:function(e,t){var n,i=r(new ar({startPosition:t?sr._createAfter(e):sr._createBefore(e),direction:t?"forward":"backward"}));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.item.is("containerElement"))return null;if(o.item.is("element","br"))return null;if(o.item.is("$textProxy"))return o.item}}catch(a){i.e(a)}finally{i.f()}return null}},{key:"_getTouchingInlineDomNode",value:function(e,t){if(!e.parentNode)return null;var n=t?"nextNode":"previousNode",r=e.ownerDocument,i=Si(e)[0],o=r.createTreeWalker(i,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return ri(e)||"BR"==e.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});o.currentNode=e;var a=o[n]();if(null!==a){var s=function(e,t){for(var n=Si(e),r=Si(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}(e,a);if(s&&!Ri(e,this.blockElements,s)&&!Ri(a,this.blockElements,s))return a}return null}}]),e}();function Ri(e,t,n){var r=Si(e);return n&&(r=r.slice(r.indexOf(n)+1)),r.some((function(e){return e.tagName&&t.includes(e.tagName.toLowerCase())}))}function Ii(e,t){for(;e&&e!=Ci.document;)t(e),e=e.parentNode}function Oi(e,t){var n=e.parentNode;return n&&n.tagName&&t.includes(n.tagName.toLowerCase())}function Mi(e){var t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}var Ni=Ne({},A,{listenTo:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(yi(e)||Mi(e)){var o=this._getProxyEmitter(e)||new Li(e);o.attach.apply(o,r),e=o}(t=A.listenTo).call.apply(t,[this,e].concat(r))},stopListening:function(e,t,n){if(yi(e)||Mi(e)){var r=this._getProxyEmitter(e);if(!r)return;e=r}A.stopListening.call(this,e,t,n),e instanceof Li&&e.detach(t)},_getProxyEmitter:function(e){return t=this,n=Di(e),t[x]&&t[x][n]?t[x][n].emitter:null;var t,n}}),Li=function e(t){s(this,e),E(this,Di(t)),this._domNode=t};function Di(e){return e["data-ck-expando"]||(e["data-ck-expando"]=_())}Ne(Li.prototype,A,{attach:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._domListeners||!this._domListeners[e]){var r={capture:!!n.useCapture,passive:!!n.usePassive},i=this._createDomListener(e,r);this._domNode.addEventListener(e,i,r),this._domListeners||(this._domListeners={}),this._domListeners[e]=i}},detach:function(e){var t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()},_createDomListener:function(e,t){var n=this,r=function(t){n.fire(e,t)};return r.removeListener=function(){n._domNode.removeEventListener(e,r,t),delete n._domListeners[e]},r}});var ji=function(){function e(t){s(this,e),this.view=t,this.document=t.document,this.isEnabled=!1}return u(e,[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}},{key:"checkShouldIgnoreEventFromTarget",value:function(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}]),e}();function Fi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new mt;++t<n;)this.add(e[t])}Ke(ji,Ni),Fi.prototype.add=Fi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Fi.prototype.has=function(e){return this.__data__.has(e)};var Vi=Fi,zi=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Bi=function(e,t){return e.has(t)},Hi=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,f=2&n?new Vi:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var v=e[d],p=t[d];if(r)var g=a?r(p,v,d,t,e,o):r(v,p,d,e,t,o);if(void 0!==g){if(g)continue;h=!1;break}if(f){if(!zi(t,(function(e,t){if(!Bi(f,t)&&(v===e||i(v,e,n,r,o)))return f.push(t)}))){h=!1;break}}else if(v!==p&&!i(v,p,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h},Ui=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},qi=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Wi=D?D.prototype:void 0,$i=Wi?Wi.valueOf:void 0,Ki=Object.prototype.hasOwnProperty,Gi=Object.prototype.hasOwnProperty,Ji=function e(t,n,r,i,o){return t===n||(null==t||null==n||!pe(t)&&!pe(n)?t!=t&&n!=n:function(e,t,n,r,i,o){var a=_e(e),s=_e(t),l=a?"[object Array]":qt(e),u=s?"[object Array]":qt(t),c="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),d="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),h=l==u;if(h&&Object(we.a)(e)){if(!Object(we.a)(t))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new kt),a||Ee(e)?Hi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new $t(e),new $t(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ee(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ui;case"[object Set]":if(s||(s=qi),e.size!=t.size&&!(1&r))return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=Hi(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if($i)return $i.call(e)==$i.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var f=c&&Gi.call(e,"__wrapped__"),v=d&&Gi.call(t,"__wrapped__");if(f||v){var p=f?e.value():e,g=v?t.value():t;return o||(o=new kt),i(p,g,n,r,o)}}return!!h&&(o||(o=new kt),function(e,t,n,r,i,o){var a=1&n,s=Ot(e),l=s.length;if(l!=Ot(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:Ki.call(t,c)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var f=!0;o.set(e,t),o.set(t,e);for(var v=a;++u<l;){var p=e[c=s[u]],g=t[c];if(r)var m=a?r(g,p,c,t,e,o):r(p,g,c,e,t,o);if(!(void 0===m?p===g||i(p,g,n,r,o):m)){f=!1;break}v||(v="constructor"==c)}if(f&&!v){var y=e.constructor,k=t.constructor;y==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof k&&k instanceof k||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))}(t,n,r,i,e,o))},Qi=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Ji(e,t,void 0,n):!!r},Zi=function(e){c(i,e);var n=d(i);function i(e){var t;return s(this,i),(t=n.call(this,e))._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},t.domConverter=e.domConverter,t.renderer=e._renderer,t._domElements=[],t._mutationObserver=new window.MutationObserver(t._onMutations.bind(f(t))),t}return u(i,[{key:"flush",value:function(){this._onMutations(this._mutationObserver.takeRecords())}},{key:"observe",value:function(e){this._domElements.push(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}},{key:"enable",value:function(){t(y(i.prototype),"enable",this).call(this);var e,n=r(this._domElements);try{for(n.s();!(e=n.n()).done;){var o=e.value;this._mutationObserver.observe(o,this._config)}}catch(a){n.e(a)}finally{n.f()}}},{key:"disable",value:function(){t(y(i.prototype),"disable",this).call(this),this._mutationObserver.disconnect()}},{key:"destroy",value:function(){t(y(i.prototype),"destroy",this).call(this),this._mutationObserver.disconnect()}},{key:"_onMutations",value:function(e){if(0!==e.length){var t,n=this.domConverter,i=new Map,o=new Set,a=r(e);try{for(a.s();!(t=a.n()).done;){var s=t.value;if("childList"===s.type){var l=n.mapDomToView(s.target);if(l&&(l.is("uiElement")||l.is("rawElement")))continue;l&&!this._isBogusBrMutation(s)&&o.add(l)}}}catch(P){a.e(P)}finally{a.f()}var u,c=r(e);try{for(c.s();!(u=c.n()).done;){var d=u.value,h=n.mapDomToView(d.target);if((!h||!h.is("uiElement")&&!h.is("rawElement"))&&"characterData"===d.type){var f=n.findCorrespondingViewText(d.target);f&&!o.has(f.parent)?i.set(f,{type:"text",oldText:f.data,newText:ci(d.target),node:f}):!f&&li(d.target)&&o.add(n.mapDomToView(d.target.parentNode))}}}catch(P){c.e(P)}finally{c.f()}var v,p=[],g=r(i.values());try{for(g.s();!(v=g.n()).done;){var m=v.value;this.renderer.markToSync("text",m.node),p.push(m)}}catch(P){g.e(P)}finally{g.f()}var y,k=r(o);try{for(k.s();!(y=k.n()).done;){var b=y.value,_=n.mapViewToDom(b),w=Array.from(b.getChildren()),C=Array.from(n.domChildrenToView(_,{withChildren:!1}));Qi(w,C,T)||(this.renderer.markToSync("children",b),p.push({type:"children",oldChildren:w,newChildren:C,node:b}))}}catch(P){k.e(P)}finally{k.f()}var x=e[0].target.ownerDocument.getSelection(),S=null;if(x&&x.anchorNode){var A=n.domPositionToView(x.anchorNode,x.anchorOffset),E=n.domPositionToView(x.focusNode,x.focusOffset);A&&E&&(S=new dr(A)).setFocus(E)}p.length&&(this.document.fire("mutations",p,S),this.view.forceRender())}function T(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}}},{key:"_isBogusBrMutation",value:function(e){var t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}]),i}(ji),Yi=function(){function e(t,n,r){s(this,e),this.view=t,this.document=t.document,this.domEvent=n,this.domTarget=n.target,Ne(this,r)}return u(e,[{key:"preventDefault",value:function(){this.domEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.domEvent.stopPropagation()}},{key:"target",get:function(){return this.view.domConverter.mapDomToView(this.domTarget)}}]),e}(),Xi=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).useCapture=!1,r}return u(n,[{key:"observe",value:function(e){var t=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((function(n){t.listenTo(e,n,(function(e,n){t.isEnabled&&!t.checkShouldIgnoreEventFromTarget(n.target)&&t.onDomEvent(n)}),{useCapture:t.useCapture})}))}},{key:"fire",value:function(e,t,n){this.isEnabled&&this.document.fire(e,new Yi(this.view,t,n))}}]),n}(ji),eo=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).domEventType=["keydown","keyup"],r}return u(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e,{keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return jr(this)}})}}]),n}(Xi),to=function(){return L.a.Date.now()},no=/\s/,ro=/^\s+/,io=/^[-+]0x[0-9a-f]+$/i,oo=/^0b[01]+$/i,ao=/^0o[0-7]+$/i,so=parseInt,lo=function(e){if("number"==typeof e)return e;if(Rn(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&no.test(e.charAt(t)););return t}(e)+1).replace(ro,""):e}(e);var n=oo.test(e);return n||ao.test(e)?so(e.slice(2),n?2:8):io.test(e)?NaN:+e},uo=Math.max,co=Math.min,ho=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function v(e){return u=e,s=setTimeout(g,t),c?f(e):a}function p(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function g(){var e=to();if(p(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?co(n,o-(e-u)):n}(e))}function m(e){return s=void 0,h&&r?f(e):(r=i=void 0,a)}function y(){var e=to(),n=p(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return v(l);if(d)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=lo(t)||0,N(n)&&(c=!!n.leading,o=(d="maxWait"in n)?uo(lo(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?a:m(to())},y},fo=function(e){c(r,e);var n=d(r);function r(e){var t;return s(this,r),(t=n.call(this,e))._fireSelectionChangeDoneDebounced=ho((function(e){return t.document.fire("selectionChangeDone",e)}),200),t}return u(r,[{key:"observe",value:function(){var e=this,t=this.document;t.on("arrowKey",(function(n,r){t.selection.isFake&&e.isEnabled&&r.preventDefault()}),{context:"$capture"}),t.on("arrowKey",(function(n,r){t.selection.isFake&&e.isEnabled&&e._handleSelectionMove(r.keyCode)}),{priority:"lowest"})}},{key:"destroy",value:function(){t(y(r.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(e){var t=this.document.selection,n=new dr(t.getRanges(),{backward:t.isBackward,fake:!1});e!=Lr.arrowleft&&e!=Lr.arrowup||n.setTo(n.getFirstPosition()),e!=Lr.arrowright&&e!=Lr.arrowdown||n.setTo(n.getLastPosition());var r={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}]),r}(ji),vo=function(e){c(r,e);var n=d(r);function r(e){var t;return s(this,r),(t=n.call(this,e)).mutationObserver=e.getObserver(Zi),t.selection=t.document.selection,t.domConverter=e.domConverter,t._documents=new WeakSet,t._fireSelectionChangeDoneDebounced=ho((function(e){return t.document.fire("selectionChangeDone",e)}),200),t._clearInfiniteLoopInterval=setInterval((function(){return t._clearInfiniteLoop()}),1e3),t._loopbackCounter=0,t}return u(r,[{key:"observe",value:function(e){var t=this,n=e.ownerDocument;this._documents.has(n)||(this.listenTo(n,"selectionchange",(function(e,r){t._handleSelectionChange(r,n)})),this._documents.add(n))}},{key:"destroy",value:function(){t(y(r.prototype),"destroy",this).call(this),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionChange",value:function(e,t){if(this.isEnabled){var n=t.defaultView.getSelection();if(!this.checkShouldIgnoreEventFromTarget(n.anchorNode)){this.mutationObserver.flush();var r=this.domConverter.domSelectionToView(n);if(0!=r.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(r)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(r))this.view.forceRender();else{var i={oldSelection:this.selection,newSelection:r,domSelection:n};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}else this.view.hasDomSelection=!1}}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}]),r}(ji),po=function(e){c(r,e);var n=d(r);function r(e){var t;s(this,r),(t=n.call(this,e)).domEventType=["focus","blur"],t.useCapture=!0;var i=t.document;return i.on("focus",(function(){i.isFocused=!0,t._renderTimeoutId=setTimeout((function(){return e.forceRender()}),50)})),i.on("blur",(function(t,n){var r=i.selection.editableElement;null!==r&&r!==n.target||(i.isFocused=!1,e.forceRender())})),t}return u(r,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),t(y(r.prototype),"destroy",this).call(this)}}]),r}(Xi),go=function(e){c(n,e);var t=d(n);function n(e){var r;s(this,n),(r=t.call(this,e)).domEventType=["compositionstart","compositionupdate","compositionend"];var i=r.document;return i.on("compositionstart",(function(){i.isComposing=!0})),i.on("compositionend",(function(){i.isComposing=!1})),r}return u(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(Xi),mo=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).domEventType=["beforeinput"],r}return u(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(Xi),yo=function(){function e(){s(this,e),this._replacedElements=[]}return u(e,[{key:"replace",value:function(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}},{key:"restore",value:function(){this._replacedElements.forEach((function(e){var t=e.element,n=e.newElement;t.style.display="",n&&n.remove()})),this._replacedElements=[]}}]),e}(),ko=function(e){return"string"==typeof e||!_e(e)&&pe(e)&&"[object String]"==U(e)};function bo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=n&&n.xmlns,a=o?e.createElementNS(o,t):e.createElement(t);for(var s in n)a.setAttribute(s,n[s]);!ko(i)&&fn(i)||(i=[i]);var l,u=r(i);try{for(u.s();!(l=u.n()).done;){var c=l.value;ko(c)&&(c=e.createTextNode(c)),a.appendChild(c)}}catch(d){u.e(d)}finally{u.f()}return a}function _o(e){return"[object Range]"==Object.prototype.toString.apply(e)}function wo(e){var t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}var Co=["top","right","bottom","left","width","height"],xo=function(){function e(t){s(this,e);var n=_o(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),un(t)||n)if(n){var r=e.getDomRangeRects(t);So(this,e.getBoundingRect(r))}else So(this,t.getBoundingClientRect());else if(Mi(t)){var i=t.innerWidth,o=t.innerHeight;So(this,{top:0,right:i,bottom:o,left:0,width:i,height:o})}else So(this,t)}return u(e,[{key:"clone",value:function(){return new e(this)}},{key:"moveTo",value:function(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}},{key:"moveBy",value:function(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}},{key:"getIntersection",value:function(t){var n={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new e(n)}},{key:"getIntersectionArea",value:function(e){var t=this.getIntersection(e);return t?t.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var t=this._source,n=this.clone();if(!Ao(t))for(var r=t.parentNode||t.commonAncestorContainer;r&&!Ao(r);){var i=new e(r),o=n.getIntersection(i);if(!o)return null;o.getArea()<n.getArea()&&(n=o),r=r.parentNode}return n}},{key:"isEqual",value:function(e){var t,n=r(Co);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(this[i]!==e[i])return!1}}catch(o){n.e(o)}finally{n.f()}return!0}},{key:"contains",value:function(e){var t=this.getIntersection(e);return!(!t||!t.isEqual(e))}},{key:"excludeScrollbarsAndBorders",value:function(){var e,t,n,r=this._source;if(Mi(r))e=r.innerWidth-r.document.documentElement.clientWidth,t=r.innerHeight-r.document.documentElement.clientHeight,n=r.getComputedStyle(r.document.documentElement).direction;else{var i=wo(this._source);e=r.offsetWidth-r.clientWidth-i.left-i.right,t=r.offsetHeight-r.clientHeight-i.top-i.bottom,n=r.ownerDocument.defaultView.getComputedStyle(r).direction,this.left+=i.left,this.top+=i.top,this.right-=i.right,this.bottom-=i.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===n?this.right-=e:this.left+=e,this.height-=t,this.bottom-=t,this}}],[{key:"getDomRangeRects",value:function(t){var n=[],i=Array.from(t.getClientRects());if(i.length){var o,a=r(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;n.push(new e(s))}}catch(c){a.e(c)}finally{a.f()}}else{var l=t.startContainer;ri(l)&&(l=l.parentNode);var u=new e(l.getBoundingClientRect());u.right=u.left,u.width=0,n.push(u)}return n}},{key:"getBoundingRect",value:function(t){var n,i={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY},o=0,a=r(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;o++,i.left=Math.min(i.left,s.left),i.top=Math.min(i.top,s.top),i.right=Math.max(i.right,s.right),i.bottom=Math.max(i.bottom,s.bottom)}}catch(l){a.e(l)}finally{a.f()}return 0==o?null:(i.width=i.right-i.left,i.height=i.bottom-i.top,new e(i))}}]),e}();function So(e,t){var n,i=r(Co);try{for(i.s();!(n=i.n()).done;){var o=n.value;e[o]=t[o]}}catch(a){i.e(a)}finally{i.f()}}function Ao(e){return!!un(e)&&e===e.ownerDocument.body}var Eo=function(){function e(t,n){s(this,e),e._observerInstance||e._createObserver(),this._element=t,this._callback=n,e._addElementCallback(t,n),e._observerInstance.observe(t)}return u(e,[{key:"destroy",value:function(){e._deleteElementCallback(this._element,this._callback)}}],[{key:"_addElementCallback",value:function(t,n){e._elementCallbacks||(e._elementCallbacks=new Map);var r=e._elementCallbacks.get(t);r||(r=new Set,e._elementCallbacks.set(t,r)),r.add(n)}},{key:"_deleteElementCallback",value:function(t,n){var r=e._getElementCallbacks(t);r&&(r.delete(n),r.size||(e._elementCallbacks.delete(t),e._observerInstance.unobserve(t))),e._elementCallbacks&&!e._elementCallbacks.size&&(e._observerInstance=null,e._elementCallbacks=null)}},{key:"_getElementCallbacks",value:function(t){return e._elementCallbacks?e._elementCallbacks.get(t):null}},{key:"_createObserver",value:function(){var t;t="function"==typeof Ci.window.ResizeObserver?Ci.window.ResizeObserver:To,e._observerInstance=new t((function(t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=e._getElementCallbacks(o.target);if(a){var s,l=r(a);try{for(l.s();!(s=l.n()).done;){(0,s.value)(o)}}catch(u){l.e(u)}finally{l.f()}}}}catch(u){i.e(u)}finally{i.f()}}))}}]),e}();Eo._observerInstance=null,Eo._elementCallbacks=null;var To=function(){function e(t){s(this,e),this._callback=t,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}return u(e,[{key:"observe",value:function(e){this._elements.add(e),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}},{key:"unobserve",value:function(e){this._elements.delete(e),this._previousRects.delete(e),this._elements.size||this._stopPeriodicCheck()}},{key:"_startPeriodicCheck",value:function(){var e=this;this.listenTo(Ci.window,"resize",(function(){e._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout((function t(){e._checkElementRectsAndExecuteCallback(),e._periodicCheckTimeout=setTimeout(t,100)}),100)}},{key:"_stopPeriodicCheck",value:function(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}},{key:"_checkElementRectsAndExecuteCallback",value:function(){var e,t=[],n=r(this._elements);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._hasRectChanged(i)&&t.push({target:i,contentRect:this._previousRects.get(i)})}}catch(o){n.e(o)}finally{n.f()}t.length&&this._callback(t)}},{key:"_hasRectChanged",value:function(e){if(!e.ownerDocument.body.contains(e))return!1;var t=new xo(e),n=this._previousRects.get(e),r=!n||!n.isEqual(t);return this._previousRects.set(e,t),r}}]),e}();function Po(e){return function(t){return t+e}}function Ro(e){var t=e.next();return t.done?null:t.value}Ke(To,Ni);var Io=function(){function e(){s(this,e),this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}return u(e,[{key:"add",value:function(e){var t=this;if(this._elements.has(e))throw new C.a("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",(function(){return t._focus(e)}),{useCapture:!0}),this.listenTo(e,"blur",(function(){return t._blur()}),{useCapture:!0}),this._elements.add(e)}},{key:"remove",value:function(e){e===this.focusedElement&&this._blur(e),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}},{key:"_blur",value:function(){var e=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){e.focusedElement=null,e.isFocused=!1}),0)}}]),e}();Ke(Io,Ni),Ke(Io,Be);var Oo=function(){function e(){s(this,e),this._listener=Object.create(Ni)}return u(e,[{key:"listenTo",value:function(e){var t=this;this._listener.listenTo(e,"keydown",(function(e,n){t._listener.fire("_keydown:"+jr(n),n)}))}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Fr(e);this._listener.listenTo(this._listener,"_keydown:"+r,(function(e,n){t(n,(function(){n.preventDefault(),n.stopPropagation(),e.stop()})),e.return=!0}),{priority:n.priority})}},{key:"press",value:function(e){return!!this._listener.fire("_keydown:"+jr(e),e)}},{key:"destroy",value:function(){this._listener.stopListening()}}]),e}(),Mo=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).document.on("keydown",(function(e,t){if(r.isEnabled&&((i=t.keyCode)==Lr.arrowright||i==Lr.arrowleft||i==Lr.arrowup||i==Lr.arrowdown)){var n=new fr(r.document,"arrowKey",r.document.selection.getFirstRange());r.document.fire(n,t),n.stop.called&&e.stop()}var i})),r}return u(n,[{key:"observe",value:function(){}}]),n}(ji);function No(e){for(var t=e.target,n=e.viewportOffset,r=void 0===n?0:n,i=Bo(t),o=i,a=null;o;){Do(Ho(o==i?t:a),(function(){return Uo(t,o)}));var s=Uo(t,o);if(Lo(o,s,r),o.parent!=o){if(a=o.frameElement,o=o.parent,!a)return}else o=null}}function Lo(e,t,n){var r=t.clone().moveBy(0,n),i=t.clone().moveBy(0,-n),o=new xo(e).excludeScrollbarsAndBorders();if(![i,r].every((function(e){return o.contains(e)}))){var a=e.scrollX,s=e.scrollY;Fo(i,o)?s-=o.top-t.top+n:jo(r,o)&&(s+=t.bottom-o.bottom+n),Vo(t,o)?a-=o.left-t.left+n:zo(t,o)&&(a+=t.right-o.right+n),e.scrollTo(a,s)}}function Do(e,t){for(var n,r,i=Bo(e);e!=i.document.body;)r=t(),(n=new xo(e).excludeScrollbarsAndBorders()).contains(r)||(Fo(r,n)?e.scrollTop-=n.top-r.top:jo(r,n)&&(e.scrollTop+=r.bottom-n.bottom),Vo(r,n)?e.scrollLeft-=n.left-r.left:zo(r,n)&&(e.scrollLeft+=r.right-n.right)),e=e.parentNode}function jo(e,t){return e.bottom>t.bottom}function Fo(e,t){return e.top<t.top}function Vo(e,t){return e.left<t.left}function zo(e,t){return e.right>t.right}function Bo(e){return _o(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function Ho(e){if(_o(e)){var t=e.commonAncestorContainer;return ri(t)&&(t=t.parentNode),t}return e.parentNode}function Uo(e,t){var n=Bo(e),r=new xo(e);if(n===t)return r;for(var i=n;i!=t;){var o=new xo(i.frameElement).excludeScrollbarsAndBorders();r.moveBy(o.left,o.top),i=i.parent}return r}Object.assign({},{scrollViewportToShowTarget:No,scrollAncestorsToShowTarget:function(e){Do(Ho(e),(function(){return new xo(e)}))}});var qo=function(){function e(t){var n=this;s(this,e),this.document=new br(t),this.domConverter=new Pi(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new ki(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new Kr(this.document),this.addObserver(Zi),this.addObserver(vo),this.addObserver(po),this.addObserver(eo),this.addObserver(fo),this.addObserver(go),this.addObserver(Mo),Rr&&this.addObserver(mo),this.document.on("arrowKey",di,{priority:"low"}),function(e){e.document.on("arrowKey",(function(t,n){return function(e,t,n){if(t.keyCode==Lr.arrowright){var r=t.domTarget.ownerDocument.defaultView.getSelection(),i=1==r.rangeCount&&r.getRangeAt(0).collapsed;if(i||t.shiftKey){var o=n.domPositionToView(r.focusNode,r.focusOffset);if(null===o)return;var a=!1,s=o.getLastMatchingPosition((function(e){return e.item.is("uiElement")&&(a=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))}));if(a){var l=n.viewPositionToDom(s);i?r.collapse(l.parent,l.offset):r.extend(l.parent,l.offset)}}}}(0,n,e.domConverter)}),{priority:"low"})}(this),this.on("render",(function(){n._render(),n.document.fire("layoutChanged"),n._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(function(){n._hasChangedSinceTheLastRendering=!0}))}return u(e,[{key:"attachDomRoot",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",i=this.document.getRoot(n);i._name=e.tagName.toLowerCase();for(var o={},a=0,s=Array.from(e.attributes);a<s.length;a++){var l=s[a],u=l.name,c=l.value;o[u]=c,"class"===u?this._writer.addClass(c.split(" "),i):this._writer.setAttribute(u,c,i)}this._initialDomRootAttributes.set(e,o);var d=function(){t._writer.setAttribute("contenteditable",!i.isReadOnly,i),i.isReadOnly?t._writer.addClass("ck-read-only",i):t._writer.removeClass("ck-read-only",i)};d(),this.domRoots.set(n,e),this.domConverter.bindElements(e,i),this._renderer.markToSync("children",i),this._renderer.markToSync("attributes",i),this._renderer.domDocuments.add(e.ownerDocument),i.on("change:children",(function(e,n){return t._renderer.markToSync("children",n)})),i.on("change:attributes",(function(e,n){return t._renderer.markToSync("attributes",n)})),i.on("change:text",(function(e,n){return t._renderer.markToSync("text",n)})),i.on("change:isReadOnly",(function(){return t.change(d)})),i.on("change",(function(){t._hasChangedSinceTheLastRendering=!0}));var h,f=r(this._observers.values());try{for(f.s();!(h=f.n()).done;){var v=h.value;v.observe(e,n)}}catch(p){f.e(p)}finally{f.f()}}},{key:"detachDomRoot",value:function(e){var t=this.domRoots.get(e);Array.from(t.attributes).forEach((function(e){var n=e.name;return t.removeAttribute(n)}));var n=this._initialDomRootAttributes.get(t);for(var r in n)t.setAttribute(r,n[r]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}},{key:"getDomRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(e)}},{key:"addObserver",value:function(e){var t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);var i,o=r(this.domRoots);try{for(o.s();!(i=o.n()).done;){var a=n(i.value,2),s=a[0],l=a[1];t.observe(l,s)}}catch(u){o.e(u)}finally{o.f()}return t.enable(),t}},{key:"getObserver",value:function(e){return this._observers.get(e)}},{key:"disableObservers",value:function(){var e,t=r(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.disable()}}catch(n){t.e(n)}finally{t.f()}}},{key:"enableObservers",value:function(){var e,t=r(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.enable()}}catch(n){t.e(n)}finally{t.f()}}},{key:"scrollToTheSelection",value:function(){var e=this.document.selection.getFirstRange();e&&No({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}},{key:"change",value:function(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new C.a("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;var t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){C.a.rethrowUnexpectedError(e,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var e,t=r(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(e,t){return sr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return sr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return sr._createBefore(e)}},{key:"createRange",value:function(e,t){return new lr(e,t)}},{key:"createRangeOn",value:function(e){return lr._createOn(e)}},{key:"createRangeIn",value:function(e){return lr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new dr(e,t,n)}},{key:"_disableRendering",value:function(e){this._renderingDisabled=e,0==e&&this.change((function(){}))}},{key:"_render",value:function(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}]),e}();Ke(qo,Be);var Wo=function(){function e(t){s(this,e),this.parent=null,this._attrs=En(t)}return u(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),r=e.getAncestors(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),r=wn(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]<n[r]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"toJSON",value:function(){var e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((function(e,t){return e[t[0]]=t[1],e}),{})),e}},{key:"is",value:function(e){return"node"===e||"model:node"===e}},{key:"_clone",value:function(){return new e(this._attrs)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_setAttribute",value:function(e,t){this._attrs.set(e,t)}},{key:"_setAttributesTo",value:function(e){this._attrs=En(e)}},{key:"_removeAttribute",value:function(e){return this._attrs.delete(e)}},{key:"_clearAttributes",value:function(){this._attrs.clear()}},{key:"index",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new C.a("model-node-not-found-in-parent",this);return e}},{key:"startOffset",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new C.a("model-node-not-found-in-parent",this);return e}},{key:"offsetSize",get:function(){return 1}},{key:"endOffset",get:function(){return this.parent?this.startOffset+this.offsetSize:null}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}}]),e}(),$o=function(e){c(r,e);var n=d(r);function r(e,t){var i;return s(this,r),(i=n.call(this,t))._data=e||"",i}return u(r,[{key:"is",value:function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){var e=t(y(r.prototype),"toJSON",this).call(this);return e.data=this.data,e}},{key:"_clone",value:function(){return new r(this.data,this.getAttributes())}},{key:"offsetSize",get:function(){return this.data.length}},{key:"data",get:function(){return this._data}}],[{key:"fromJSON",value:function(e){return new r(e.data,e.attributes)}}]),r}(Wo),Ko=function(){function e(t,n,r){if(s(this,e),this.textNode=t,n<0||n>t.offsetSize)throw new C.a("model-textproxy-wrong-offsetintext",this);if(r<0||n+r>t.offsetSize)throw new C.a("model-textproxy-wrong-length",this);this.data=t.data.substring(n,n+r),this.offsetInText=n}return u(e,[{key:"is",value:function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}},{key:"getPath",value:function(){var e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"hasAttribute",value:function(e){return this.textNode.hasAttribute(e)}},{key:"getAttribute",value:function(e){return this.textNode.getAttribute(e)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}},{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}}]),e}(),Go=function(){function e(t){s(this,e),this._nodes=[],t&&this._insertNodes(0,t)}return u(e,[{key:Symbol.iterator,value:function(){return this._nodes[Symbol.iterator]()}},{key:"getNode",value:function(e){return this._nodes[e]||null}},{key:"getNodeIndex",value:function(e){var t=this._nodes.indexOf(e);return-1==t?null:t}},{key:"getNodeStartOffset",value:function(e){var t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce((function(e,t){return e+t.offsetSize}),0)}},{key:"indexToOffset",value:function(e){if(e==this._nodes.length)return this.maxOffset;var t=this._nodes[e];if(!t)throw new C.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}},{key:"offsetToIndex",value:function(e){var t,n=0,i=r(this._nodes);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(e>=n&&e<n+o.offsetSize)return this.getNodeIndex(o);n+=o.offsetSize}}catch(a){i.e(a)}finally{i.f()}if(n!=e)throw new C.a("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.length}},{key:"_insertNodes",value:function(e,t){var n,o,a=r(t);try{for(a.s();!(o=a.n()).done;){if(!(o.value instanceof Wo))throw new C.a("model-nodelist-insertnodes-not-node",this)}}catch(s){a.e(s)}finally{a.f()}(n=this._nodes).splice.apply(n,[e,0].concat(i(t)))}},{key:"_removeNodes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(e,t)}},{key:"toJSON",value:function(){return this._nodes.map((function(e){return e.toJSON()}))}},{key:"length",get:function(){return this._nodes.length}},{key:"maxOffset",get:function(){return this._nodes.reduce((function(e,t){return e+t.offsetSize}),0)}}]),e}(),Jo=function(e){c(i,e);var n=d(i);function i(e,t,r){var o;return s(this,i),(o=n.call(this,t)).name=e,o._children=new Go,r&&o._insertChild(0,r),o}return u(i,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"getNodeByPath",value:function(e){var t,n=this,i=r(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;n=n.getChild(n.offsetToIndex(o))}}catch(a){i.e(a)}finally{i.f()}return n}},{key:"findAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1},n=t.includeSelf?this:this.parent;n;){if(n.name===e)return n;n=n.parent}return null}},{key:"toJSON",value:function(){var e=t(y(i.prototype),"toJSON",this).call(this);if(e.name=this.name,this._children.length>0){e.children=[];var n,o=r(this._children);try{for(o.s();!(n=o.n()).done;){var a=n.value;e.children.push(a.toJSON())}}catch(s){o.e(s)}finally{o.f()}}return e}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?Array.from(this._children).map((function(e){return e._clone(!0)})):null;return new i(this.name,this.getAttributes(),t)}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,i=function(e){return"string"==typeof e?[new $o(e)]:(fn(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new $o(e):e instanceof Ko?new $o(e.data,e.getAttributes()):e})))}(t),o=r(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this}}catch(s){o.e(s)}finally{o.f()}this._children._insertNodes(e,i)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(e,n),o=r(i);try{for(o.s();!(t=o.n()).done;){var a=t.value;a.parent=null}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}}],[{key:"fromJSON",value:function(e){var t=null;if(e.children){t=[];var n,o=r(e.children);try{for(o.s();!(n=o.n()).done;){var a=n.value;t.push(a.name?i.fromJSON(a):$o.fromJSON(a))}}catch(s){o.e(s)}finally{o.f()}}return new i(e.name,e.attributes,t)}}]),i}(Wo),Qo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s(this,e),!t.boundaries&&!t.startPosition)throw new C.a("model-tree-walker-no-start-position",null);var n=t.direction||"forward";if("forward"!=n&&"backward"!=n)throw new C.a("model-tree-walker-unknown-direction",t,{direction:n});this.direction=n,this.boundaries=t.boundaries||null,this.position=t.startPosition?t.startPosition.clone():Yo._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}return u(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,r,i;do{var o;r=this.position,i=this._visitedParent,t=(o=this.next()).done,n=o.value}while(!t&&e(n));t||(this.position=r,this._visitedParent=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};var r=t.parent,i=Xo(t,r),o=i||ea(t,r,i);if(o instanceof Jo)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=o),this.position=t,Zo("elementStart",o,e,t,1);if(o instanceof $o){var a;if(this.singleCharacters)a=1;else{var s=o.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<s&&(s=this.boundaries.end.offset),a=s-t.offset}var l=new Ko(o,t.offset-o.startOffset,a);return t.offset+=a,this.position=t,Zo("text",l,e,t,a)}return t.path.pop(),t.offset++,this.position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Zo("elementEnd",n,e,t)}},{key:"_previous",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};var r=t.parent,i=Xo(t,r),o=i||ta(t,r,i);if(o instanceof Jo)return t.offset--,this.shallow?(this.position=t,Zo("elementStart",o,e,t,1)):(t.path.push(o.maxOffset),this.position=t,this._visitedParent=o,this.ignoreElementEnd?this._previous():Zo("elementEnd",o,e,t));if(o instanceof $o){var a;if(this.singleCharacters)a=1;else{var s=o.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>s&&(s=this.boundaries.start.offset),a=t.offset-s}var l=new Ko(o,t.offset-o.startOffset-a,a);return t.offset-=a,this.position=t,Zo("text",l,e,t,a)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,Zo("elementStart",n,e,t,1)}}]),e}();function Zo(e,t,n,r,i){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}var Yo=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(s(this,e),!t.is("element")&&!t.is("documentFragment"))throw new C.a("model-position-root-invalid",t);if(!(n instanceof Array)||0===n.length)throw new C.a("model-position-path-incorrect-format",t,{path:n});t.is("rootElement")?n=n.slice():(n=[].concat(i(t.getPath()),i(n)),t=t.root),this.root=t,this.path=n,this.stickiness=r}return u(e,[{key:"compareWith",value:function(e){if(this.root!=e.root)return"different";var t=wn(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new Qo(t);return n.skip(e),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(e){var t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(e){if(this.root!=e.root)return[];var t=wn(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),r=0;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}},{key:"getShiftedBy",value:function(e){var t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isEqual",value:function(e){return"same"==this.compareWith(e)}},{key:"isTouching",value:function(t){var n=null,r=null;switch(this.compareWith(t)){case"same":return!0;case"before":n=e._createAt(this),r=e._createAt(t);break;case"after":n=e._createAt(t),r=e._createAt(this);break;default:return!1}for(var i=n.parent;n.path.length+r.path.length;){if(n.isEqual(r))return!0;if(n.path.length>r.path.length){if(n.offset!==i.maxOffset)return!1;n.path=n.path.slice(0,-1),i=i.parent,n.offset++}else{if(0!==r.offset)return!1;r.path=r.path.slice(0,-1)}}}},{key:"is",value:function(e){return"position"===e||"model:position"===e}},{key:"hasSameParentAs",value:function(e){return this.root===e.root&&"same"==wn(this.getParentPath(),e.getParentPath())}},{key:"getTransformedByOperation",value:function(t){var n;switch(t.type){case"insert":n=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(t);break;case"split":n=this._getTransformedBySplitOperation(t);break;case"merge":n=this._getTransformedByMergeOperation(t);break;default:n=e._createAt(this)}return n}},{key:"_getTransformedByInsertOperation",value:function(e){return this._getTransformedByInsertion(e.position,e.howMany)}},{key:"_getTransformedByMoveOperation",value:function(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}},{key:"_getTransformedBySplitOperation",value:function(e){var t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}},{key:"_getTransformedByMergeOperation",value:function(t){var n,r=t.movedRange;return r.containsPosition(this)||r.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?e._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}},{key:"_getTransformedByDeletion",value:function(t,n){var r=e._createAt(this);if(this.root!=t.root)return r;if("same"==wn(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+n>this.offset)return null;r.offset-=n}}else if("prefix"==wn(t.getParentPath(),this.getParentPath())){var i=t.path.length-1;if(t.offset<=this.path[i]){if(t.offset+n>this.path[i])return null;r.path[i]-=n}}return r}},{key:"_getTransformedByInsertion",value:function(t,n){var r=e._createAt(this);if(this.root!=t.root)return r;if("same"==wn(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(r.offset+=n);else if("prefix"==wn(t.getParentPath(),this.getParentPath())){var i=t.path.length-1;t.offset<=this.path[i]&&(r.path[i]+=n)}return r}},{key:"_getTransformedByMove",value:function(t,n,r){if(n=n._getTransformedByDeletion(t,r),t.isEqual(n))return e._createAt(this);var i=this._getTransformedByDeletion(t,r);return null===i||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(r).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,n):i._getTransformedByInsertion(n,r)}},{key:"_getCombined",value:function(t,n){var r=t.path.length-1,o=e._createAt(n);return o.stickiness=this.stickiness,o.offset=o.offset+this.path[r]-t.offset,o.path=[].concat(i(o.path),i(this.path.slice(r+1))),o}},{key:"toJSON",value:function(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}},{key:"clone",value:function(){return new this.constructor(this.root,this.path,this.stickiness)}},{key:"offset",get:function(){return this.path[this.path.length-1]},set:function(e){this.path[this.path.length-1]=e}},{key:"parent",get:function(){for(var e=this.root,t=0;t<this.path.length-1;t++)if(!(e=e.getChild(e.offsetToIndex(this.path[t]))))throw new C.a("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new C.a("model-position-path-incorrect",this,{position:this});return e}},{key:"index",get:function(){return this.parent.offsetToIndex(this.offset)}},{key:"textNode",get:function(){return Xo(this,this.parent)}},{key:"nodeAfter",get:function(){var e=this.parent;return ea(this,e,Xo(this,e))}},{key:"nodeBefore",get:function(){var e=this.parent;return ta(this,e,Xo(this,e))}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){return this.offset==this.parent.maxOffset}}],[{key:"_createAt",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(t instanceof e)return new e(t.root,t.path,t.stickiness);var i=t;if("end"==n)n=i.maxOffset;else{if("before"==n)return this._createBefore(i,r);if("after"==n)return this._createAfter(i,r);if(0!==n&&!n)throw new C.a("model-createpositionat-offset-required",[this,t])}if(!i.is("element")&&!i.is("documentFragment"))throw new C.a("model-position-parent-incorrect",[this,t]);var o=i.getPath();return o.push(n),new this(i.root,o,r)}},{key:"_createAfter",value:function(e,t){if(!e.parent)throw new C.a("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}},{key:"_createBefore",value:function(e,t){if(!e.parent)throw new C.a("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}},{key:"fromJSON",value:function(t,n){if("$graveyard"===t.root){var r=new e(n.graveyard,t.path);return r.stickiness=t.stickiness,r}if(!n.getRoot(t.root))throw new C.a("model-position-fromjson-no-root",n,{rootName:t.root});return new e(n.getRoot(t.root),t.path,t.stickiness)}}]),e}();function Xo(e,t){var n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset<e.offset?n:null}function ea(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset))}function ta(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset)-1)}var na=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;s(this,e),this.start=Yo._createAt(t),this.end=Yo._createAt(n||t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}return u(e,[{key:Symbol.iterator,value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new Qo({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}},{key:"containsItem",value:function(e){var t=Yo._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}},{key:"is",value:function(e){return"range"===e||"model:range"===e}},{key:"isEqual",value:function(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(new e(this.start,this.end)),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,r=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(r=t.end),new e(n,r)}return null}},{key:"getJoined",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.isIntersecting(t);if(r||(r=this.start.isBefore(t.start)?n?this.end.isTouching(t.start):this.end.isEqual(t.start):n?t.end.isTouching(this.start):t.end.isEqual(this.start)),!r)return null;var i=this.start,o=this.end;return t.start.isBefore(i)&&(i=t.start),t.end.isAfter(o)&&(o=t.end),new e(i,o)}},{key:"getMinimalFlatRanges",value:function(){for(var t=[],n=this.start.getCommonPath(this.end).length,r=Yo._createAt(this.start),i=r.parent;r.path.length>n+1;){var o=i.maxOffset-r.offset;0!==o&&t.push(new e(r,r.getShiftedBy(o))),r.path=r.path.slice(0,-1),r.offset++,i=i.parent}for(;r.path.length<=this.end.path.length;){var a=this.end.path[r.path.length-1],s=a-r.offset;0!==s&&t.push(new e(r,r.getShiftedBy(s))),r.offset=a,r.path.push(0)}return t}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Qo(e)}},{key:"getItems",value:regeneratorRuntime.mark((function e(){var t,n,i,o,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,t.ignoreElementEnd=!0,n=new Qo(t),i=r(n),e.prev=4,i.s();case 6:if((o=i.n()).done){e.next=12;break}return a=o.value,e.next=10,a.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:regeneratorRuntime.mark((function e(){var t,n,i,o,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,n=new Qo(t),e.next=5,n.position;case 5:i=r(n),e.prev=6,i.s();case 8:if((o=i.n()).done){e.next=14;break}return a=o.value,e.next=12,a.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),i.e(e.t0);case 19:return e.prev=19,i.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{key:"getTransformedByOperation",value:function(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new e(this.start,this.end)]}},{key:"getTransformedByOperations",value:function(t){var n,o=[new e(this.start,this.end)],a=r(t);try{for(a.s();!(n=a.n()).done;)for(var s=n.value,l=0;l<o.length;l++){var u=o[l].getTransformedByOperation(s);o.splice.apply(o,[l,1].concat(i(u))),l+=u.length-1}}catch(v){a.e(v)}finally{a.f()}for(var c=0;c<o.length;c++)for(var d=o[c],h=c+1;h<o.length;h++){var f=o[h];(d.containsRange(f)||f.containsRange(d)||d.isEqual(f))&&o.splice(h,1)}return o}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}},{key:"toJSON",value:function(){return{start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"_getTransformedByInsertOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(e.position,e.howMany,t)}},{key:"_getTransformedByMoveOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,t)}},{key:"_getTransformedBySplitOperation",value:function(t){var n=this.start._getTransformedBySplitOperation(t),r=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(r=this.end.getShiftedBy(1)),n.root!=r.root&&(r=this.end.getShiftedBy(-1)),new e(n,r)}},{key:"_getTransformedByMergeOperation",value:function(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new e(this.start);var n=this.start._getTransformedByMergeOperation(t),r=this.end._getTransformedByMergeOperation(t);return n.root!=r.root&&(r=this.end.getShiftedBy(-1)),n.isAfter(r)?(t.sourcePosition.isBefore(t.targetPosition)?(n=Yo._createAt(r)).offset=0:(t.deletionPosition.isEqual(n)||(r=t.deletionPosition),n=t.targetPosition),new e(n,r)):new e(n,r)}},{key:"_getTransformedByInsertion",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r&&this.containsPosition(t))return[new e(this.start,t),new e(t.getShiftedBy(n),this.end._getTransformedByInsertion(t,n))];var i=new e(this.start,this.end);return i.start=i.start._getTransformedByInsertion(t,n),i.end=i.end._getTransformedByInsertion(t,n),[i]}},{key:"_getTransformedByMove",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){var o=this.start._getTransformedByMove(t,n,r);return[new e(o)]}var a,s=e._createFromPositionAndShift(t,r),l=n._getTransformedByDeletion(t,r);if(this.containsPosition(n)&&!i&&(s.containsPosition(this.start)||s.containsPosition(this.end))){var u=this.start._getTransformedByMove(t,n,r),c=this.end._getTransformedByMove(t,n,r);return[new e(u,c)]}var d=this.getDifference(s),h=null,f=this.getIntersection(s);if(1==d.length?h=new e(d[0].start._getTransformedByDeletion(t,r),d[0].end._getTransformedByDeletion(t,r)):2==d.length&&(h=new e(this.start,this.end._getTransformedByDeletion(t,r))),a=h?h._getTransformedByInsertion(l,r,null!==f||i):[],f){var v=new e(f.start._getCombined(s.start,l),f.end._getCombined(s.start,l));2==a.length?a.splice(1,0,v):a.push(v)}return a}},{key:"_getTransformedByDeletion",value:function(t,n){var r=this.start._getTransformedByDeletion(t,n),i=this.end._getTransformedByDeletion(t,n);return null==r&&null==i?null:(null==r&&(r=t),null==i&&(i=t),new e(r,i))}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return"same"==wn(this.start.getParentPath(),this.end.getParentPath())}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromPositionAndShift",value:function(e,t){var n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(e){return new this(Yo._createAt(e,0),Yo._createAt(e,e.maxOffset))}},{key:"_createOn",value:function(e){return this._createFromPositionAndShift(Yo._createBefore(e),e.offsetSize)}},{key:"_createFromRanges",value:function(e){if(0===e.length)throw new C.a("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();var t=e[0];e.sort((function(e,t){return e.start.isAfter(t.start)?1:-1}));var n=e.indexOf(t),r=new this(t.start,t.end);if(n>0)for(var i=n-1;e[i].end.isEqual(r.start);i++)r.start=Yo._createAt(e[i].start);for(var o=n+1;o<e.length&&e[o].start.isEqual(r.end);o++)r.end=Yo._createAt(e[o].end);return r}},{key:"fromJSON",value:function(e,t){return new this(Yo.fromJSON(e.start,t),Yo.fromJSON(e.end,t))}}]),e}(),ra=function(){function e(){var t=this;s(this,e),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(function(e,n){if(!n.viewPosition){var r=t._modelToViewMapping.get(n.modelPosition.parent);n.viewPosition=t.findPositionIn(r,n.modelPosition.offset)}}),{priority:"low"}),this.on("viewToModelPosition",(function(e,n){if(!n.modelPosition){var r=t.findMappedViewAncestor(n.viewPosition),i=t._viewToModelMapping.get(r),o=t._toModelOffset(n.viewPosition.parent,n.viewPosition.offset,r);n.modelPosition=Yo._createAt(i,o)}}),{priority:"low"})}return u(e,[{key:"bindElements",value:function(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}},{key:"unbindViewElement",value:function(e){var t=this.toModelElement(e);if(this._viewToModelMapping.delete(e),this._elementToMarkerNames.has(e)){var n,i=r(this._elementToMarkerNames.get(e));try{for(i.s();!(n=i.n()).done;){var o=n.value;this._unboundMarkerNames.add(o)}}catch(a){i.e(a)}finally{i.f()}}this._modelToViewMapping.get(t)==e&&this._modelToViewMapping.delete(t)}},{key:"unbindModelElement",value:function(e){var t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}},{key:"bindElementToMarker",value:function(e,t){var n=this._markerNameToElements.get(t)||new Set;n.add(e);var r=this._elementToMarkerNames.get(e)||new Set;r.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,r)}},{key:"unbindElementFromMarkerName",value:function(e,t){var n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));var r=this._elementToMarkerNames.get(e);r&&(r.delete(t),0==r.size&&this._elementToMarkerNames.delete(e))}},{key:"flushUnboundMarkerNames",value:function(){var e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}},{key:"clearBindings",value:function(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}},{key:"toModelElement",value:function(e){return this._viewToModelMapping.get(e)}},{key:"toViewElement",value:function(e){return this._modelToViewMapping.get(e)}},{key:"toModelRange",value:function(e){return new na(this.toModelPosition(e.start),this.toModelPosition(e.end))}},{key:"toViewRange",value:function(e){return new lr(this.toViewPosition(e.start),this.toViewPosition(e.end))}},{key:"toModelPosition",value:function(e){var t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}},{key:"toViewPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1},n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}},{key:"markerNameToElements",value:function(e){var t=this._markerNameToElements.get(e);if(!t)return null;var n,i=new Set,o=r(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.is("attributeElement")){var s,l=r(a.getElementsWithSameId());try{for(l.s();!(s=l.n()).done;){var u=s.value;i.add(u)}}catch(c){l.e(c)}finally{l.f()}}else i.add(a)}}catch(c){o.e(c)}finally{o.f()}return i}},{key:"registerViewToModelLength",value:function(e,t){this._viewToModelLengthCallbacks.set(e,t)}},{key:"findMappedViewAncestor",value:function(e){for(var t=e.parent;!this._viewToModelMapping.has(t);)t=t.parent;return t}},{key:"_toModelOffset",value:function(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;for(var r=0,i=0;i<t;i++)r+=this.getModelLength(e.getChild(i));return r}},{key:"getModelLength",value:function(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;var t,n=0,i=r(e.getChildren());try{for(i.s();!(t=i.n()).done;){var o=t.value;n+=this.getModelLength(o)}}catch(a){i.e(a)}finally{i.f()}return n}},{key:"findPositionIn",value:function(e,t){var n,r=0,i=0,o=0;if(e.is("$text"))return new sr(e,t);for(;i<t;)n=e.getChild(o),i+=r=this.getModelLength(n),o++;return i==t?this._moveViewPositionToTextNode(new sr(e,o)):this.findPositionIn(n,t-(i-r))}},{key:"_moveViewPositionToTextNode",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;return t instanceof Sn?new sr(t,t.data.length):n instanceof Sn?new sr(n,0):e}}]),e}();Ke(ra,A);var ia=function(){function e(){s(this,e),this._consumable=new Map,this._textProxyRegistry=new Map}return u(e,[{key:"add",value:function(e,t){t=oa(t),e instanceof Ko&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}},{key:"consume",value:function(e,t){return t=oa(t),e instanceof Ko&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}},{key:"test",value:function(e,t){t=oa(t),e instanceof Ko&&(e=this._getSymbolForTextProxy(e));var n=this._consumable.get(e);if(void 0===n)return null;var r=n.get(t);return void 0===r?null:r}},{key:"revert",value:function(e,t){t=oa(t),e instanceof Ko&&(e=this._getSymbolForTextProxy(e));var n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}},{key:"_getSymbolForTextProxy",value:function(e){var t=null,n=this._textProxyRegistry.get(e.startOffset);if(n){var r=n.get(e.endOffset);r&&(t=r.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e.startOffset,e.endOffset,e.parent)),t}},{key:"_addSymbolForTextProxy",value:function(e,t,n){var r,i,o=Symbol("textProxySymbol");return(r=this._textProxyRegistry.get(e))||(r=new Map,this._textProxyRegistry.set(e,r)),(i=r.get(t))||(i=new Map,r.set(t,i)),i.set(n,o),o}}]),e}();function oa(e){var t=e.split(":");return t.length>1?t[0]+":"+t[1]:t[0]}var aa=function(){function e(t){s(this,e),this.conversionApi=Object.assign({dispatcher:this},t),this._reconversionEventsMapping=new Map}return u(e,[{key:"convertChanges",value:function(e,t,n){var i,o=r(e.getMarkersToRemove());try{for(o.s();!(i=o.n()).done;){var a=i.value;this.convertMarkerRemove(a.name,a.range,n)}}catch(m){o.e(m)}finally{o.f()}var s,l=r(this._mapChangesWithAutomaticReconversion(e));try{for(l.s();!(s=l.n()).done;){var u=s.value;"insert"===u.type?this.convertInsert(na._createFromPositionAndShift(u.position,u.length),n):"remove"===u.type?this.convertRemove(u.position,u.length,u.name,n):"reconvert"===u.type?this.reconvertElement(u.element,n):this.convertAttribute(u.range,u.attributeKey,u.attributeOldValue,u.attributeNewValue,n)}}catch(m){l.e(m)}finally{l.f()}var c,d=r(this.conversionApi.mapper.flushUnboundMarkerNames());try{for(d.s();!(c=d.n()).done;){var h=c.value,f=t.get(h).getRange();this.convertMarkerRemove(h,f,n),this.convertMarkerAdd(h,f,n)}}catch(m){d.e(m)}finally{d.f()}var v,p=r(e.getMarkersToAdd());try{for(p.s();!(v=p.n()).done;){var g=v.value;this.convertMarkerAdd(g.name,g.range,n)}}catch(m){p.e(m)}finally{p.f()}}},{key:"convertInsert",value:function(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);var n,i=r(Array.from(e).map(la));try{for(i.s();!(n=i.n()).done;){var o=n.value;this._convertInsertWithAttributes(o)}}catch(a){i.e(a)}finally{i.f()}this._clearConversionApi()}},{key:"convertRemove",value:function(e,t,n,r){this.conversionApi.writer=r,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}},{key:"convertAttribute",value:function(e,t,n,i,o){this.conversionApi.writer=o,this.conversionApi.consumable=this._createConsumableForRange(e,"attribute:"+t);var a,s=r(e);try{for(s.s();!(a=s.n()).done;){var l=a.value,u={item:l.item,range:na._createFromPositionAndShift(l.previousPosition,l.length),attributeKey:t,attributeOldValue:n,attributeNewValue:i};this._testAndFire("attribute:"+t,u)}}catch(c){s.e(c)}finally{s.f()}this._clearConversionApi()}},{key:"reconvertElement",value:function(e,t){var n=na._createOn(e);this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(n);var i=this.conversionApi.mapper,o=i.toViewElement(e);t.remove(o),this._convertInsertWithAttributes({item:e,range:n});var a,s=i.toViewElement(e),l=r(na._createIn(e));try{for(l.s();!(a=l.n()).done;){var u=a.value,c=u.item,d=ua(c,i);d?d.root!==s.root&&t.move(t.createRangeOn(d),i.toViewPosition(Yo._createBefore(c))):this._convertInsertWithAttributes(la(u))}}catch(h){l.e(h)}finally{l.f()}i.unbindViewElement(o),this._clearConversionApi()}},{key:"convertSelection",value:function(e,t,n){var i=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,i),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){var o,a=r(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.getRange();if(sa(e.getFirstPosition(),s,this.conversionApi.mapper)){var u={item:e,markerName:s.name,markerRange:l};this.conversionApi.consumable.test(e,"addMarker:"+s.name)&&this.fire("addMarker:"+s.name,u,this.conversionApi)}}}catch(v){a.e(v)}finally{a.f()}var c,d=r(e.getAttributeKeys());try{for(d.s();!(c=d.n()).done;){var h=c.value,f={item:e,range:e.getFirstRange(),attributeKey:h,attributeOldValue:null,attributeNewValue:e.getAttribute(h)};this.conversionApi.consumable.test(e,"attribute:"+f.attributeKey)&&this.fire("attribute:"+f.attributeKey+":$text",f,this.conversionApi)}}catch(v){d.e(v)}finally{d.f()}this._clearConversionApi()}}},{key:"convertMarkerAdd",value:function(e,t,n){if("$graveyard"!=t.root.rootName){this.conversionApi.writer=n;var i="addMarker:"+e,o=new ia;if(o.add(t,i),this.conversionApi.consumable=o,this.fire(i,{markerName:e,markerRange:t},this.conversionApi),o.test(t,i)){this.conversionApi.consumable=this._createConsumableForRange(t,i);var a,s=r(t.getItems());try{for(s.s();!(a=s.n()).done;){var l=a.value;if(this.conversionApi.consumable.test(l,i)){var u={item:l,range:na._createOn(l),markerName:e,markerRange:t};this.fire(i,u,this.conversionApi)}}}catch(c){s.e(c)}finally{s.f()}this._clearConversionApi()}}}},{key:"convertMarkerRemove",value:function(e,t,n){"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}},{key:"_mapReconversionTriggerEvent",value:function(e,t){this._reconversionEventsMapping.set(t,e)}},{key:"_createInsertConsumable",value:function(e){var t,n=new ia,i=r(e);try{for(i.s();!(t=i.n()).done;){var o=t.value.item;n.add(o,"insert");var a,s=r(o.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var l=a.value;n.add(o,"attribute:"+l)}}catch(u){s.e(u)}finally{s.f()}}}catch(u){i.e(u)}finally{i.f()}return n}},{key:"_createConsumableForRange",value:function(e,t){var n,i=new ia,o=r(e.getItems());try{for(o.s();!(n=o.n()).done;){var a=n.value;i.add(a,t)}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"_createSelectionConsumable",value:function(e,t){var n=new ia;n.add(e,"selection");var i,o=r(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;n.add(e,"addMarker:"+a.name)}}catch(c){o.e(c)}finally{o.f()}var s,l=r(e.getAttributeKeys());try{for(l.s();!(s=l.n()).done;){var u=s.value;n.add(e,"attribute:"+u)}}catch(c){l.e(c)}finally{l.f()}return n}},{key:"_testAndFire",value:function(e,t){this.conversionApi.consumable.test(t.item,e)&&this.fire(function(e,t){return"".concat(e,":").concat(t.item.name||"$text")}(e,t),t,this.conversionApi)}},{key:"_clearConversionApi",value:function(){delete this.conversionApi.writer,delete this.conversionApi.consumable}},{key:"_convertInsertWithAttributes",value:function(e){this._testAndFire("insert",e);var t,n=r(e.item.getAttributeKeys());try{for(n.s();!(t=n.n()).done;){var i=t.value;e.attributeKey=i,e.attributeOldValue=null,e.attributeNewValue=e.item.getAttribute(i),this._testAndFire("attribute:"+i,e)}}catch(o){n.e(o)}finally{n.f()}}},{key:"_mapChangesWithAutomaticReconversion",value:function(e){var t,n=new Set,i=[],o=r(e.getChanges());try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.position||a.range.start,l=s.parent;if(Xo(s,l))i.push(a);else{var u="attribute"===a.type?ea(s,l,null):l;if(u.is("$text"))i.push(a);else{var c;if(c="attribute"===a.type?"attribute:".concat(a.attributeKey,":").concat(u.name):"".concat(a.type,":").concat(a.name),this._isReconvertTriggerEvent(c,u.name)){if(n.has(u))continue;n.add(u),i.push({type:"reconvert",element:u})}else i.push(a)}}}}catch(d){o.e(d)}finally{o.f()}return i}},{key:"_isReconvertTriggerEvent",value:function(e,t){return this._reconversionEventsMapping.get(e)===t}}]),e}();function sa(e,t,n){var r=t.getRange(),i=Array.from(e.getAncestors());return i.shift(),i.reverse(),!i.some((function(e){if(r.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")}))}function la(e){return{item:e.item,range:na._createFromPositionAndShift(e.previousPosition,e.length)}}function ua(e,t){if(e.is("textProxy")){var n=t.toViewPosition(Yo._createBefore(e)).parent;return n.is("$text")?n:null}return t.toViewElement(e)}Ke(aa,A);var ca=function(){function e(t,n,r){s(this,e),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,t&&this.setTo(t,n,r)}return u(e,[{key:"isEqual",value:function(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=r(this._ranges);try{for(n.s();!(t=n.n()).done;){var i,o=t.value,a=!1,s=r(e._ranges);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(o.isEqual(l)){a=!0;break}}}catch(u){s.e(u)}finally{s.f()}if(!a)return!1}}catch(u){n.e(u)}finally{n.f()}return!0}},{key:"getRanges",value:regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,new na(i.start,i.end);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=r(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.start.isBefore(t.start)||(t=i)}}catch(o){n.e(o)}finally{n.f()}return t?new na(t.start,t.end):null}},{key:"getLastRange",value:function(){var e,t=null,n=r(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.end.isAfter(t.end)||(t=i)}}catch(o){n.e(o)}finally{n.f()}return t?new na(t.start,t.end):null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"setTo",value:function(t,n,r){if(null===t)this._setRanges([]);else if(t instanceof e)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof na)this._setRanges([t],!!n&&!!n.backward);else if(t instanceof Yo)this._setRanges([new na(t)]);else if(t instanceof Wo){var i,o=!!r&&!!r.backward;if("in"==n)i=na._createIn(t);else if("on"==n)i=na._createOn(t);else{if(void 0===n)throw new C.a("model-selection-setto-required-second-parameter",[this,t]);i=new na(Yo._createAt(t,n))}this._setRanges([i],o)}else{if(!fn(t))throw new C.a("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,n&&!!n.backward)}}},{key:"_setRanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(e=Array.from(e)).some((function(n){if(!(n instanceof na))throw new C.a("model-selection-set-ranges-not-range",[t,e]);return t._ranges.every((function(e){return!e.isEqual(n)}))}));if(e.length!==this._ranges.length||i){this._removeAllRanges();var o,a=r(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;this._pushRange(s)}}catch(l){a.e(l)}finally{a.f()}this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0})}}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new C.a("model-selection-setfocus-no-ranges",[this,e]);var n=Yo._createAt(e,t);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(r)?(this._pushRange(new na(n,r)),this._lastRangeBackward=!0):(this._pushRange(new na(r,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"removeAttribute",value:function(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"setAttribute",value:function(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"is",value:function(e){return"selection"===e||"model:selection"===e}},{key:"getSelectedBlocks",value:regeneratorRuntime.mark((function e(){var t,n,i,o,a,s,l,u,c,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new WeakSet,n=r(this.getRanges()),e.prev=2,n.s();case 4:if((i=n.n()).done){e.next=38;break}if(o=i.value,a=fa(o.start,t),e.t0=a&&va(a,o),!e.t0){e.next=11;break}return e.next=11,a;case 11:s=r(o.getWalker()),e.prev=12,s.s();case 14:if((l=s.n()).done){e.next=23;break}if(u=l.value,c=u.item,e.t1="elementEnd"==u.type&&ha(c,t,o),!e.t1){e.next=21;break}return e.next=21,c;case 21:e.next=14;break;case 23:e.next=28;break;case 25:e.prev=25,e.t2=e.catch(12),s.e(e.t2);case 28:return e.prev=28,s.f(),e.finish(28);case 31:if(d=fa(o.end,t),e.t3=d&&!o.end.isTouching(Yo._createAt(d,0))&&va(d,o),!e.t3){e.next=36;break}return e.next=36,d;case 36:e.next=4;break;case 38:e.next=43;break;case 40:e.prev=40,e.t4=e.catch(2),n.e(e.t4);case 43:return e.prev=43,n.f(),e.finish(43);case 46:case"end":return e.stop()}}),e,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,t=Yo._createAt(e,0),n=Yo._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(e){this._checkRange(e),this._ranges.push(new na(e.start,e.end))}},{key:"_checkRange",value:function(e){for(var t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new C.a("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}},{key:"_removeAllRanges",value:function(){for(;this._ranges.length>0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}},{key:"anchor",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}}]),e}();function da(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}function ha(e,t,n){return da(e,t)&&va(e,n)}function fa(e,t){var n=e.parent.root.document.model.schema,r=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),i=!1,o=r.find((function(e){return!i&&(!(i=n.isLimit(e))&&da(e,t))}));return r.forEach((function(e){return t.add(e)})),o}function va(e,t){var n=function(e){for(var t=e.root.document.model.schema,n=e.parent;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(na._createOn(n),!0)}Ke(ca,A);var pa=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),i=t.call(this,e,r),ga.call(f(i)),i}return u(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e}},{key:"toRange",value:function(){return new na(this.start,this.end)}}],[{key:"fromRange",value:function(e){return new n(e.start,e.end)}}]),n}(na);function ga(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var r=n[0];r.isDocumentOperation&&ma.call(e,r)}),{priority:"low"})}function ma(e){var t=this.getTransformedByOperation(e),n=na._createFromRanges(t),r=!n.isEqual(this),i=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e),o=null;if(r){"$graveyard"==n.root.rootName&&(o="remove"==e.type?e.sourcePosition:e.deletionPosition);var a=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",a,{deletionPosition:o})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:o})}Ke(pa,A);var ya=function(){function e(t){s(this,e),this._selection=new ka(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}return u(e,[{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(e){return this._selection.containsEntireContent(e)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(e){return this._selection.getAttribute(e)}},{key:"hasAttribute",value:function(e){return this._selection.hasAttribute(e)}},{key:"refresh",value:function(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}},{key:"observeMarkers",value:function(e){this._selection.observeMarkers(e)}},{key:"is",value:function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setAttribute",value:function(e,t){this._selection.setAttribute(e,t)}},{key:"_removeAttribute",value:function(e){this._selection.removeAttribute(e)}},{key:"_getStoredAttributes",value:function(){return this._selection._getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(e){this._selection.restoreGravity(e)}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}}],[{key:"_getStoreAttributeKey",value:function(e){return"selection:"+e}},{key:"_isStoreAttributeKey",value:function(e){return e.startsWith("selection:")}}]),e}();Ke(ya,A);var ka=function(e){c(o,e);var i=d(o);function o(e){var t;return s(this,o),(t=i.call(this)).markers=new vn({idProperty:"name"}),t._model=e.model,t._document=e,t._attributePriority=new Map,t._selectionRestorePosition=null,t._hasChangedRange=!1,t._overriddenGravityRegister=new Set,t._observedMarkers=new Set,t.listenTo(t._model,"applyOperation",(function(e,n){var r=n[0];r.isDocumentOperation&&"marker"!=r.type&&"rename"!=r.type&&"noop"!=r.type&&(0==t._ranges.length&&t._selectionRestorePosition&&t._fixGraveyardSelection(t._selectionRestorePosition),t._selectionRestorePosition=null,t._hasChangedRange&&(t._hasChangedRange=!1,t.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),t.on("change:range",(function(){var e,n=r(t.getRanges());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(!t._document._validateSelectionRange(i))throw new C.a("document-selection-wrong-position",f(t),{range:i})}}catch(o){n.e(o)}finally{n.f()}})),t.listenTo(t._model.markers,"update",(function(e,n,r,i){t._updateMarker(n,i)})),t.listenTo(t._document,"change",(function(e,n){!function(e,t){var n,i=r(e.document.differ.getChanges());try{var o=function(){var i=n.value;if("insert"!=i.type)return"continue";var o=i.position.parent;i.length===o.maxOffset&&e.enqueueChange(t,(function(e){var t,n=r(Array.from(o.getAttributeKeys()).filter((function(e){return e.startsWith("selection:")})));try{for(n.s();!(t=n.n()).done;){var i=t.value;e.removeAttribute(i,o)}}catch(a){n.e(a)}finally{n.f()}}))};for(i.s();!(n=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}}(t._model,n)})),t}return u(o,[{key:"destroy",value:function(){for(var e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}},{key:"getRanges",value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._ranges.length){e.next=4;break}return e.delegateYield(t(y(o.prototype),"getRanges",this).call(this),"t0",2);case 2:e.next=6;break;case 4:return e.next=6,this._document._getDefaultRange();case 6:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return t(y(o.prototype),"getFirstRange",this).call(this)||this._document._getDefaultRange()}},{key:"getLastRange",value:function(){return t(y(o.prototype),"getLastRange",this).call(this)||this._document._getDefaultRange()}},{key:"setTo",value:function(e,n,r){t(y(o.prototype),"setTo",this).call(this,e,n,r),this._updateAttributes(!0),this._updateMarkers()}},{key:"setFocus",value:function(e,n){t(y(o.prototype),"setFocus",this).call(this,e,n),this._updateAttributes(!0),this._updateMarkers()}},{key:"setAttribute",value:function(e,t){this._setAttribute(e,t)&&this.fire("change:attribute",{attributeKeys:[e],directChange:!0})}},{key:"removeAttribute",value:function(e){this._removeAttribute(e)&&this.fire("change:attribute",{attributeKeys:[e],directChange:!0})}},{key:"overrideGravity",value:function(){var e=_();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}},{key:"restoreGravity",value:function(e){if(!this._overriddenGravityRegister.has(e))throw new C.a("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}},{key:"observeMarkers",value:function(e){this._observedMarkers.add(e),this._updateMarkers()}},{key:"_popRange",value:function(){this._ranges.pop().detach()}},{key:"_pushRange",value:function(e){var t=this._prepareRange(e);t&&this._ranges.push(t)}},{key:"_prepareRange",value:function(e){var t=this;if(this._checkRange(e),e.root!=this._document.graveyard){var n=pa.fromRange(e);return n.on("change:range",(function(e,r,i){if(t._hasChangedRange=!0,n.root==t._document.graveyard){t._selectionRestorePosition=i.deletionPosition;var o=t._ranges.indexOf(n);t._ranges.splice(o,1),n.detach()}})),n}}},{key:"_updateMarkers",value:function(){if(this._observedMarkers.size){var e,t=[],n=!1,i=r(this._model.markers);try{for(i.s();!(e=i.n()).done;){var o=e.value,a=o.name.split(":",1)[0];if(this._observedMarkers.has(a)){var s,l=o.getRange(),u=r(this.getRanges());try{for(u.s();!(s=u.n()).done;){var c=s.value;l.containsRange(c,!c.isCollapsed)&&t.push(o)}}catch(y){u.e(y)}finally{u.f()}}}}catch(y){i.e(y)}finally{i.f()}for(var d=Array.from(this.markers),h=0,f=t;h<f.length;h++){var v=f[h];this.markers.has(v)||(this.markers.add(v),n=!0)}for(var p=0,g=Array.from(this.markers);p<g.length;p++){var m=g[p];t.includes(m)||(this.markers.remove(m),n=!0)}n&&this.fire("change:marker",{oldMarkers:d,directChange:!1})}}},{key:"_updateMarker",value:function(e,t){var n=e.name.split(":",1)[0];if(this._observedMarkers.has(n)){var i=!1,o=Array.from(this.markers),a=this.markers.has(e);if(t){var s,l=!1,u=r(this.getRanges());try{for(u.s();!(s=u.n()).done;){var c=s.value;if(t.containsRange(c,!c.isCollapsed)){l=!0;break}}}catch(d){u.e(d)}finally{u.f()}l&&!a?(this.markers.add(e),i=!0):!l&&a&&(this.markers.remove(e),i=!0)}else a&&(this.markers.remove(e),i=!0);i&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}}},{key:"_updateAttributes",value:function(e){var t=En(this._getSurroundingAttributes()),i=En(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else{var o,a=r(this._attributePriority);try{for(a.s();!(o=a.n()).done;){var s=n(o.value,2),l=s[0];"low"==s[1]&&(this._attrs.delete(l),this._attributePriority.delete(l))}}catch(y){a.e(y)}finally{a.f()}}this._setAttributesTo(t);var u,c=[],d=r(this.getAttributes());try{for(d.s();!(u=d.n()).done;){var h=n(u.value,2),f=h[0],v=h[1];i.has(f)&&i.get(f)===v||c.push(f)}}catch(y){d.e(y)}finally{d.f()}var p,g=r(i);try{for(g.s();!(p=g.n()).done;){var m=n(p.value,1)[0];this.hasAttribute(m)||c.push(m)}}catch(y){g.e(y)}finally{g.f()}c.length>0&&this.fire("change:attribute",{attributeKeys:c,directChange:!1})}},{key:"_setAttribute",value:function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=r?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(e))&&t(y(o.prototype),"getAttribute",this).call(this,e)!==n&&(this._attrs.set(e,n),this._attributePriority.set(e,i),!0)}},{key:"_removeAttribute",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=n?"normal":"low";return!("low"==r&&"normal"==this._attributePriority.get(e)||(this._attributePriority.set(e,r),!t(y(o.prototype),"hasAttribute",this).call(this,e)||(this._attrs.delete(e),0)))}},{key:"_setAttributesTo",value:function(e){var t,i=new Set,o=r(this.getAttributes());try{for(o.s();!(t=o.n()).done;){var a=n(t.value,2),s=a[0],l=a[1];e.get(s)!==l&&this._removeAttribute(s,!1)}}catch(v){o.e(v)}finally{o.f()}var u,c=r(e);try{for(c.s();!(u=c.n()).done;){var d=n(u.value,2),h=d[0],f=d[1];this._setAttribute(h,f,!1)&&i.add(h)}}catch(v){c.e(v)}finally{c.f()}return i}},{key:"_getStoredAttributes",value:regeneratorRuntime.mark((function e(){var t,n,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getFirstPosition().parent,!this.isCollapsed||!t.isEmpty){e.next=21;break}n=r(t.getAttributeKeys()),e.prev=3,n.s();case 5:if((i=n.n()).done){e.next=13;break}if(!(o=i.value).startsWith("selection:")){e.next=11;break}return a=o.substr("selection:".length),e.next=11,[a,t.getAttribute(o)];case 11:e.next=5;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var e=this.getFirstPosition(),t=this._model.schema,n=null;if(this.isCollapsed){var i=e.textNode?e.textNode:e.nodeBefore,o=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=ba(i)),n||(n=ba(o)),!this.isGravityOverridden&&!n)for(var a=i;a&&!t.isInline(a)&&!n;)n=ba(a=a.previousSibling);if(!n)for(var s=o;s&&!t.isInline(s)&&!n;)n=ba(s=s.nextSibling);n||(n=this._getStoredAttributes())}else{var l,u=r(this.getFirstRange());try{for(u.s();!(l=u.n()).done;){var c=l.value;if(c.item.is("element")&&t.isObject(c.item))break;if("text"==c.type){n=c.item.getAttributes();break}}}catch(d){u.e(d)}finally{u.f()}}return n}},{key:"_fixGraveyardSelection",value:function(e){var t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}},{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:t(y(o.prototype),"isCollapsed",this)}},{key:"anchor",get:function(){return t(y(o.prototype),"anchor",this)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return t(y(o.prototype),"focus",this)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}}]),o}(ca);function ba(e){return e instanceof Ko||e instanceof $o?e.getAttributes():null}var _a=function(){function e(t){s(this,e),this._dispatchers=t}return u(e,[{key:"add",value:function(e){var t,n=r(this._dispatchers);try{for(n.s();!(t=n.n()).done;){e(t.value)}}catch(i){n.e(i)}finally{n.f()}return this}}]),e}(),wa=function(e){return sn(e,5)},Ca=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"elementToElement",value:function(e){return this.add(function(e){return(e=wa(e)).view=Aa(e.view,"container"),function(t){var n;if(t.on("insert:"+e.model,(n=e.view,function(e,t,r){var i=n(t.item,r);if(i&&r.consumable.consume(t.item,"insert")){var o=r.mapper.toViewPosition(t.range.start);r.mapper.bindElements(t.item,i),r.writer.insert(o,i)}}),{priority:e.converterPriority||"normal"}),e.triggerBy){if(e.triggerBy.attributes){var i,o=r(e.triggerBy.attributes);try{for(o.s();!(i=o.n()).done;){var a=i.value;t._mapReconversionTriggerEvent(e.model,"attribute:".concat(a,":").concat(e.model))}}catch(c){o.e(c)}finally{o.f()}}if(e.triggerBy.children){var s,l=r(e.triggerBy.children);try{for(l.s();!(s=l.n()).done;){var u=s.value;t._mapReconversionTriggerEvent(e.model,"insert:"+u),t._mapReconversionTriggerEvent(e.model,"remove:"+u)}}catch(c){l.e(c)}finally{l.f()}}}}}(e))}},{key:"attributeToElement",value:function(e){return this.add(function(e){var t="attribute:"+((e=wa(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,i=r(e.model.values);try{for(i.s();!(n=i.n()).done;){var o=n.value;e.view[o]=Aa(e.view[o],"attribute")}}catch(s){i.e(s)}finally{i.f()}}else e.view=Aa(e.view,"attribute");var a=Ea(e);return function(n){n.on(t,function(e){return function(t,n,r){var i=e(n.attributeOldValue,r),o=e(n.attributeNewValue,r);if((i||o)&&r.consumable.consume(n.item,t.name)){var a=r.writer;if(n.item instanceof ca||n.item instanceof ya)a.wrap(a.document.selection.getFirstRange(),o);else{var s=r.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(s=a.unwrap(s,i)),null!==n.attributeNewValue&&o&&a.wrap(s,o)}}}}(a),{priority:e.converterPriority||"normal"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){var t="attribute:"+((e=wa(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,i=r(e.model.values);try{for(i.s();!(n=i.n()).done;){var o=n.value;e.view[o]=Ta(e.view[o])}}catch(s){i.e(s)}finally{i.f()}}else e.view=Ta(e.view);var a=Ea(e);return function(n){var i;n.on(t,(i=a,function(e,t,n){var o=i(t.attributeOldValue,n),a=i(t.attributeNewValue,n);if((o||a)&&n.consumable.consume(t.item,e.name)){var l=n.mapper.toViewElement(t.item),u=n.writer;if(!l)throw new C.a("conversion-attribute-to-attribute-on-text",[t,n]);if(null!==t.attributeOldValue&&o)if("class"==o.key){var c,d=r(gn(o.value));try{for(d.s();!(c=d.n()).done;){var h=c.value;u.removeClass(h,l)}}catch(s){d.e(s)}finally{d.f()}}else if("style"==o.key)for(var f=0,v=Object.keys(o.value);f<v.length;f++){var p=v[f];u.removeStyle(p,l)}else u.removeAttribute(o.key,l);if(null!==t.attributeNewValue&&a)if("class"==a.key){var g,m=r(gn(a.value));try{for(m.s();!(g=m.n()).done;){var y=g.value;u.addClass(y,l)}}catch(s){m.e(s)}finally{m.f()}}else if("style"==a.key)for(var k=0,b=Object.keys(a.value);k<b.length;k++){var _=b[k];u.setStyle(_,a.value[_],l)}else u.setAttribute(a.key,a.value,l)}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToElement",value:function(e){return this.add(function(e){return(e=wa(e)).view=Aa(e.view,"ui"),function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,i){t.isOpening=!0;var o=n(t,i);t.isOpening=!1;var a=n(t,i);if(o&&a){var s=t.markerRange;if(!s.isCollapsed||i.consumable.consume(s,e.name)){var l,u=r(s);try{for(u.s();!(l=u.n()).done;){var c=l.value;if(!i.consumable.consume(c.item,e.name))return}}catch(f){u.e(f)}finally{u.f()}var d=i.mapper,h=i.writer;h.insert(d.toViewPosition(s.start),o),i.mapper.bindElementToMarker(o,t.markerName),s.isCollapsed||(h.insert(d.toViewPosition(s.end),a),i.mapper.bindElementToMarker(a,t.markerName)),e.stop()}}}),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,(function(e,t,n){var i=n.mapper.markerNameToElements(t.markerName);if(i){var o,a=r(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;n.mapper.unbindElementFromMarkerName(s,t.markerName),n.writer.clear(n.writer.createRangeOn(s),s)}}catch(l){a.e(l)}finally{a.f()}n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToHighlight",value:function(e){return this.add(function(e){return function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,i){if(t.item&&(t.item instanceof ca||t.item instanceof ya||t.item.is("$textProxy"))){var o=Pa(n,t,i);if(o&&i.consumable.consume(t.item,e.name)){var a=i.writer,s=xa(a,o),l=a.document.selection;if(t.item instanceof ca||t.item instanceof ya)a.wrap(l.getFirstRange(),s,l);else{var u,c=i.mapper.toViewRange(t.range),d=r(a.wrap(c,s).getItems());try{for(d.s();!(u=d.n()).done;){var h=u.value;if(h.is("attributeElement")&&h.isSimilar(s)){i.mapper.bindElementToMarker(h,t.markerName);break}}}catch(f){d.e(f)}finally{d.f()}}}}}),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,function(e){return function(t,n,i){if(n.item&&n.item instanceof Jo){var o=Pa(e,n,i);if(o&&i.consumable.test(n.item,t.name)){var a=i.mapper.toViewElement(n.item);if(a&&a.getCustomProperty("addHighlight")){i.consumable.consume(n.item,t.name);var s,l=r(na._createIn(n.item));try{for(l.s();!(s=l.n()).done;){var u=s.value;i.consumable.consume(u.item,t.name)}}catch(c){l.e(c)}finally{l.f()}a.getCustomProperty("addHighlight")(a,o,i.writer),i.mapper.bindElementToMarker(a,n.markerName)}}}}}(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,function(e){return function(t,n,i){if(!n.markerRange.isCollapsed){var o=Pa(e,n,i);if(o){var a=xa(i.writer,o),s=i.mapper.markerNameToElements(n.markerName);if(s){var l,u=r(s);try{for(u.s();!(l=u.n()).done;){var c=l.value;i.mapper.unbindElementFromMarkerName(c,n.markerName),c.is("attributeElement")?i.writer.unwrap(i.writer.createRangeOn(c),a):c.getCustomProperty("removeHighlight")(c,o.id,i.writer)}}catch(d){u.e(d)}finally{u.f()}i.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToData",value:function(e){return this.add(function(e){var t=(e=wa(e)).model;return e.view||(e.view=function(n){return{group:t,name:n.substr(e.model.length+1)}}),function(n){var i;n.on("addMarker:"+t,(i=e.view,function(e,t,n){var r=i(t.markerName,n);if(r){var o=t.markerRange;n.consumable.consume(o,e.name)&&(Sa(o,!1,n,t,r),Sa(o,!0,n,t,r),e.stop())}}),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,function(e){return function(t,n,i){var o=e(n.markerName,i);if(o){var a=i.mapper.markerNameToElements(n.markerName);if(a){var s,l=r(a);try{for(l.s();!(s=l.n()).done;){var u=s.value;i.mapper.unbindElementFromMarkerName(u,n.markerName),u.is("containerElement")?(c("data-".concat(o.group,"-start-before"),u),c("data-".concat(o.group,"-start-after"),u),c("data-".concat(o.group,"-end-before"),u),c("data-".concat(o.group,"-end-after"),u)):i.writer.clear(i.writer.createRangeOn(u),u)}}catch(d){l.e(d)}finally{l.f()}i.writer.clearClonedElementsGroup(n.markerName),t.stop()}}function c(e,t){if(t.hasAttribute(e)){var n=new Set(t.getAttribute(e).split(","));n.delete(o.name),0==n.size?i.writer.removeAttribute(e,t):i.writer.setAttribute(e,Array.from(n).join(","),t)}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}}]),n}(_a);function xa(e,t){var n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),"number"==typeof t.priority&&(n._priority=t.priority),n._id=t.id,n}function Sa(e,t,n,r,i){var o=t?e.start:e.end,a=o.nodeAfter&&o.nodeAfter.is("element")?o.nodeAfter:null,s=o.nodeBefore&&o.nodeBefore.is("element")?o.nodeBefore:null;if(a||s){var l,u;t&&a||!t&&!s?(l=a,u=!0):(l=s,u=!1);var c=n.mapper.toViewElement(l);if(c)return void function(e,t,n,r,i,o){var a="data-".concat(o.group,"-").concat(t?"start":"end","-").concat(n?"before":"after"),s=e.hasAttribute(a)?e.getAttribute(a).split(","):[];s.unshift(o.name),r.writer.setAttribute(a,s.join(","),e),r.mapper.bindElementToMarker(e,i.markerName)}(c,t,u,n,r,i)}!function(e,t,n,r,i){var o=n.writer.createUIElement("".concat(i.group,"-").concat(t?"start":"end"),i.name?{name:i.name}:null);n.writer.insert(e,o),n.mapper.bindElementToMarker(o,r.markerName)}(n.mapper.toViewPosition(o),t,n,r,i)}function Aa(e,t){return"function"==typeof e?e:function(n,i){return function(e,t,n){var i;"string"==typeof e&&(e={name:e});var o=t.writer,a=Object.assign({},e.attributes);if(i="container"==n?o.createContainerElement(e.name,a):"attribute"==n?o.createAttributeElement(e.name,a,{priority:e.priority||_r.DEFAULT_PRIORITY}):o.createUIElement(e.name,a),e.styles)for(var s=0,l=Object.keys(e.styles);s<l.length;s++){var u=l[s];o.setStyle(u,e.styles[u],i)}if(e.classes){var c=e.classes;if("string"==typeof c)o.addClass(c,i);else{var d,h=r(c);try{for(h.s();!(d=h.n()).done;){var f=d.value;o.addClass(f,i)}}catch(v){h.e(v)}finally{h.f()}}}return i}(e,i,t)}}function Ea(e){return e.model.values?function(t,n){var r=e.view[t];return r?r(t,n):null}:e.view}function Ta(e){return"string"==typeof e?function(t){return{key:e,value:t}}:"object"==typeof e?e.value?function(){return e}:function(t){return{key:e.key,value:t}}:e}function Pa(e,t,n){var r="function"==typeof e?e(t,n):e;return r?(r.priority||(r.priority=10),r.id||(r.id=t.markerName),r):null}function Ra(e){var t,n=e.model,i=n.schema,o=n.document,a=r(o.getRootNames());try{for(a.s();!(t=a.n()).done;){var s=t.value,l=o.getRoot(s);if(l.isEmpty&&!i.checkChild(l,"$text")&&i.checkChild(l,"paragraph"))return e.insertElement("paragraph",l),!0}}catch(u){a.e(u)}finally{a.f()}return!1}function Ia(e,t,n){var r=n.createContext(e);return!!n.checkChild(r,"paragraph")&&!!n.checkChild(r.push("paragraph"),t)}function Oa(e,t){var n=t.createElement("paragraph");return t.insert(n,e),t.createPositionAt(n,0)}var Ma=function(t){c(i,t);var n=d(i);function i(){return s(this,i),n.apply(this,arguments)}return u(i,[{key:"elementToElement",value:function(e){return this.add(Na(e))}},{key:"elementToAttribute",value:function(e){return this.add(function(e){ja(e=wa(e));var t=Fa(e,!1),n=La(e.view),r=n?"element:"+n:"element";return function(n){n.on(r,t,{priority:e.converterPriority||"low"})}}(e))}},{key:"attributeToAttribute",value:function(t){return this.add(function(t){var n=null;("string"==typeof(t=wa(t)).view||t.view.key)&&(n=function(t){"string"==typeof t.view&&(t.view={key:t.view});var n,r=t.view.key;return n="class"==r||"style"==r?e({},"class"==r?"classes":"styles",t.view.value):{attributes:e({},r,void 0===t.view.value?/[\s\S]*/:t.view.value)},t.view.name&&(n.name=t.view.name),t.view=n,r}(t)),ja(t,n);var r=Fa(t,!0);return function(e){e.on("element",r,{priority:t.converterPriority||"low"})}}(t))}},{key:"elementToMarker",value:function(e){return Object(C.b)("upcast-helpers-element-to-marker-deprecated"),this.add(function(e){return function(e){var t=e.model;e.model=function(e,n){var r="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":r})}}(e=wa(e)),Na(e)}(e))}},{key:"dataToMarker",value:function(e){return this.add(function(e){(e=wa(e)).model||(e.model=function(t){return t?e.view+":"+t:e.view});var t=Da(Va(e,"start")),n=Da(Va(e,"end"));return function(i){i.on("element:"+e.view+"-start",t,{priority:e.converterPriority||"normal"}),i.on("element:"+e.view+"-end",n,{priority:e.converterPriority||"normal"});var o=w.get("low"),a=w.get("highest"),s=w.get(e.converterPriority)/a;i.on("element",function(e){return function(t,n,i){var o="data-"+e.view;function a(t,o){var a,s=r(o);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=e.model(l,i),c=i.writer.createElement("$marker",{"data-name":u});i.writer.insert(c,t),n.modelCursor=n.modelCursor.isEqual(t)?n.modelCursor.getShiftedBy(1):n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}catch(d){s.e(d)}finally{s.f()}}(i.consumable.test(n.viewItem,{attributes:o+"-end-after"})||i.consumable.test(n.viewItem,{attributes:o+"-start-after"})||i.consumable.test(n.viewItem,{attributes:o+"-end-before"})||i.consumable.test(n.viewItem,{attributes:o+"-start-before"}))&&(n.modelRange||Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor)),i.consumable.consume(n.viewItem,{attributes:o+"-end-after"})&&a(n.modelRange.end,n.viewItem.getAttribute(o+"-end-after").split(",")),i.consumable.consume(n.viewItem,{attributes:o+"-start-after"})&&a(n.modelRange.end,n.viewItem.getAttribute(o+"-start-after").split(",")),i.consumable.consume(n.viewItem,{attributes:o+"-end-before"})&&a(n.modelRange.start,n.viewItem.getAttribute(o+"-end-before").split(",")),i.consumable.consume(n.viewItem,{attributes:o+"-start-before"})&&a(n.modelRange.start,n.viewItem.getAttribute(o+"-start-before").split(",")))}}(e),{priority:o+s})}}(e))}}]),i}(_a);function Na(e){var t=Da(e=wa(e)),n=La(e.view),r=n?"element:"+n:"element";return function(n){n.on(r,t,{priority:e.converterPriority||"normal"})}}function La(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function Da(e){var t=new Tn(e.view);return function(n,r,i){var o=t.match(r.viewItem);if(o){var a=o.match;if(a.name=!0,i.consumable.test(r.viewItem,a)){var s=function(e,t,n){return e instanceof Function?e(t,n):n.writer.createElement(e)}(e.model,r.viewItem,i);s&&i.safeInsert(s,r.modelCursor)&&(i.consumable.consume(r.viewItem,a),i.convertChildren(r.viewItem,s),i.updateConversionResult(s,r))}}}}function ja(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null===t||function(e){return e.getAttribute(t)};e.model={key:"object"!=typeof e.model?e.model:e.model.key,value:"object"!=typeof e.model||void 0===e.model.value?n:e.model.value}}function Fa(e,t){var n=new Tn(e.view);return function(r,i,o){var a=n.match(i.viewItem);if(a&&(function(e,t){var n="function"==typeof e?e(t):e;return!("object"==typeof n&&!La(n)||n.classes||n.attributes||n.styles)}(e.view,i.viewItem)?a.match.name=!0:delete a.match.name,o.consumable.test(i.viewItem,a.match))){var s=e.model.key,l="function"==typeof e.model.value?e.model.value(i.viewItem,o):e.model.value;null!==l&&(i.modelRange||Object.assign(i,o.convertChildren(i.viewItem,i.modelCursor)),function(e,t,n,r){for(var i=!1,o=0,a=Array.from(e.getItems({shallow:n}));o<a.length;o++){var s=a[o];r.schema.checkAttribute(s,t.key)&&(i=!0,s.hasAttribute(t.key)||r.writer.setAttribute(t.key,t.value,s))}return i}(i.modelRange,{key:s,value:l},t,o)&&o.consumable.consume(i.viewItem,a.match))}}}function Va(e,t){var n={};return n.view=e.view+"-"+t,n.model=function(t,n){var r=t.getAttribute("name"),i=e.model(r,n);return n.writer.createElement("$marker",{"data-name":i})},n}var za=function(){function e(t,n){var i=this;s(this,e),this.model=t,this.view=new qo(n),this.mapper=new ra,this.downcastDispatcher=new aa({mapper:this.mapper,schema:t.schema});var o=this.model.document,a=o.selection,l=this.model.markers;this.listenTo(this.model,"_beforeChanges",(function(){i.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(function(){i.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(o,"change",(function(){i.view.change((function(e){i.downcastDispatcher.convertChanges(o.differ,l,e),i.downcastDispatcher.convertSelection(a,l,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return function(n,i){var o,a=i.newSelection,s=[],l=r(a.getRanges());try{for(l.s();!(o=l.n()).done;){var u=o.value;s.push(t.toModelRange(u))}}catch(d){l.e(d)}finally{l.f()}var c=e.createSelection(s,{backward:a.isBackward});c.isEqual(e.document.selection)||e.change((function(e){e.setSelection(c)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var r=n.writer,i=n.mapper.toViewPosition(t.range.start),o=r.createText(t.item.data);r.insert(i,o)}}),{priority:"lowest"}),this.downcastDispatcher.on("remove",(function(e,t,n){var i,o=n.mapper.toViewPosition(t.position),a=t.position.getShiftedBy(t.length),s=n.mapper.toViewPosition(a,{isPhantom:!0}),l=n.writer.createRange(o,s),u=n.writer.remove(l.getTrimmed()),c=r(n.writer.createRangeIn(u).getItems());try{for(c.s();!(i=c.n()).done;){var d=i.value;n.mapper.unbindViewElement(d)}}catch(h){c.e(h)}finally{c.f()}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var i,o=n.writer,a=r(o.document.selection.getRanges());try{for(a.s();!(i=a.n()).done;){var s=i.value;s.isCollapsed&&s.end.parent.isAttached()&&n.writer.mergeAttributes(s.start)}}catch(l){a.e(l)}finally{a.f()}o.setSelection(null)}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var i=t.selection;if(!i.isCollapsed&&n.consumable.consume(i,"selection")){var o,a=[],s=r(i.getRanges());try{for(s.s();!(o=s.n()).done;){var l=o.value,u=n.mapper.toViewRange(l);a.push(u)}}catch(c){s.e(c)}finally{s.f()}n.writer.setSelection(a,{backward:i.isBackward})}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var r=t.selection;if(r.isCollapsed&&n.consumable.consume(r,"selection")){var i=n.writer,o=r.getFirstPosition(),a=n.mapper.toViewPosition(o),s=i.breakAttributes(a);i.setSelection(s)}}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((function(e){if("$graveyard"==e.rootName)return null;var t=new or(i.view.document,e.name);return t.rootName=e.rootName,i.mapper.bindElements(e,t),t}))}return u(e,[{key:"destroy",value:function(){this.view.destroy(),this.stopListening()}}]),e}();Ke(za,Be);var Ba=function(){function e(){s(this,e),this._commands=new Map}return u(e,[{key:"add",value:function(e,t){this._commands.set(e,t)}},{key:"get",value:function(e){return this._commands.get(e)}},{key:"execute",value:function(e){var t=this.get(e);if(!t)throw new C.a("commandcollection-command-not-found",this,{commandName:e});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.execute.apply(t,r)}},{key:"names",value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.keys(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"commands",value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.values(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:Symbol.iterator,value:function(){return this._commands[Symbol.iterator]()}},{key:"destroy",value:function(){var e,t=r(this.commands());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}}}]),e}(),Ha=function(){function e(){s(this,e),this._consumables=new Map}return u(e,[{key:"add",value:function(e,t){var n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new Ua(e),this._consumables.set(e,n)),n.add(t))}},{key:"test",value:function(e,t){var n=this._consumables.get(e);return void 0===n?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}},{key:"consume",value:function(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}},{key:"revert",value:function(e,t){var n=this._consumables.get(e);void 0!==n&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}}],[{key:"consumablesFromElement",value:function(e){var t,n={element:e,name:!0,attributes:[],classes:[],styles:[]},i=r(e.getAttributeKeys());try{for(i.s();!(t=i.n()).done;){var o=t.value;"style"!=o&&"class"!=o&&n.attributes.push(o)}}catch(h){i.e(h)}finally{i.f()}var a,s=r(e.getClassNames());try{for(s.s();!(a=s.n()).done;){var l=a.value;n.classes.push(l)}}catch(h){s.e(h)}finally{s.f()}var u,c=r(e.getStyleNames());try{for(c.s();!(u=c.n()).done;){var d=u.value;n.styles.push(d)}}catch(h){c.e(h)}finally{c.f()}return n}},{key:"createFrom",value:function(t,n){if(n||(n=new e(t)),t.is("$text"))return n.add(t),n;t.is("element")&&n.add(t,e.consumablesFromElement(t)),t.is("documentFragment")&&n.add(t);var i,o=r(t.getChildren());try{for(o.s();!(i=o.n()).done;){var a=i.value;n=e.createFrom(a,n)}}catch(s){o.e(s)}finally{o.f()}return n}}]),e}(),Ua=function(){function e(t){s(this,e),this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}return u(e,[{key:"add",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._add(t,e[t])}},{key:"test",value:function(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(var t in this._consumables)if(t in e){var n=this._test(t,e[t]);if(!0!==n)return n}return!0}},{key:"consume",value:function(e){for(var t in e.name&&(this._canConsumeName=!1),this._consumables)t in e&&this._consume(t,e[t])}},{key:"revert",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._revert(t,e[t])}},{key:"_add",value:function(e,t){var n,i=_e(t)?t:[t],o=this._consumables[e],a=r(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("attributes"===e&&("class"===s||"style"===s))throw new C.a("viewconsumable-invalid-attribute",this);if(o.set(s,!0),"styles"===e){var l,u=r(this.element.document.stylesProcessor.getRelatedStyles(s));try{for(u.s();!(l=u.n()).done;){var c=l.value;o.set(c,!0)}}catch(d){u.e(d)}finally{u.f()}}}}catch(d){a.e(d)}finally{a.f()}}},{key:"_test",value:function(e,t){var n,o=_e(t)?t:[t],a=this._consumables[e],s=r(o);try{for(s.s();!(n=s.n()).done;){var l=n.value;if("attributes"!==e||"class"!==l&&"style"!==l){var u=a.get(l);if(void 0===u)return null;if(!u)return!1}else{var c="class"==l?"classes":"styles",d=this._test(c,i(this._consumables[c].keys()));if(!0!==d)return d}}}catch(h){s.e(h)}finally{s.f()}return!0}},{key:"_consume",value:function(e,t){var n,o=_e(t)?t:[t],a=this._consumables[e],s=r(o);try{for(s.s();!(n=s.n()).done;){var l=n.value;if("attributes"!==e||"class"!==l&&"style"!==l){if(a.set(l,!1),"styles"==e){var u,c=r(this.element.document.stylesProcessor.getRelatedStyles(l));try{for(c.s();!(u=c.n()).done;){var d=u.value;a.set(d,!1)}}catch(f){c.e(f)}finally{c.f()}}}else{var h="class"==l?"classes":"styles";this._consume(h,i(this._consumables[h].keys()))}}}catch(f){s.e(f)}finally{s.f()}}},{key:"_revert",value:function(e,t){var n,o=_e(t)?t:[t],a=this._consumables[e],s=r(o);try{for(s.s();!(n=s.n()).done;){var l=n.value;if("attributes"!==e||"class"!==l&&"style"!==l)!1===a.get(l)&&a.set(l,!0);else{var u="class"==l?"classes":"styles";this._revert(u,i(this._consumables[u].keys()))}}}catch(c){s.e(c)}finally{s.f()}}}]),e}(),qa=function(){function e(){var t=this;s(this,e),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(function(e,t){t[0]=new Wa(t[0])}),{priority:"highest"}),this.on("checkChild",(function(e,n){n[0]=new Wa(n[0]),n[1]=t.getDefinition(n[1])}),{priority:"highest"})}return u(e,[{key:"register",value:function(e,t){if(this._sourceDefinitions[e])throw new C.a("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}},{key:"extend",value:function(e,t){if(!this._sourceDefinitions[e])throw new C.a("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}},{key:"getDefinitions",value:function(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}},{key:"getDefinition",value:function(e){var t;return t="string"==typeof e?e:e.is&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}},{key:"isRegistered",value:function(e){return!!this.getDefinition(e)}},{key:"isBlock",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isBlock)}},{key:"isLimit",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isLimit&&!t.isObject)}},{key:"isObject",value:function(e){var t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}},{key:"isInline",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isInline)}},{key:"isSelectable",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isSelectable&&!t.isObject)}},{key:"isContent",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isContent&&!t.isObject)}},{key:"checkChild",value:function(e,t){return!!t&&this._checkContextMatch(t,e)}},{key:"checkAttribute",value:function(e,t){var n=this.getDefinition(e.last);return!!n&&n.allowAttributes.includes(t)}},{key:"checkMerge",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e instanceof Yo){var n=e.nodeBefore,i=e.nodeAfter;if(!(n instanceof Jo))throw new C.a("schema-check-merge-no-element-before",this);if(!(i instanceof Jo))throw new C.a("schema-check-merge-no-element-after",this);return this.checkMerge(n,i)}var o,a=r(t.getChildren());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!this.checkChild(e,s))return!1}}catch(l){a.e(l)}finally{a.f()}return!0}},{key:"addChildCheck",value:function(e){this.on("checkChild",(function(t,r){var i=n(r,2),o=i[0],a=i[1];if(a){var s=e(o,a);"boolean"==typeof s&&(t.stop(),t.return=s)}}),{priority:"high"})}},{key:"addAttributeCheck",value:function(e){this.on("checkAttribute",(function(t,r){var i=n(r,2),o=i[0],a=i[1],s=e(o,a);"boolean"==typeof s&&(t.stop(),t.return=s)}),{priority:"high"})}},{key:"setAttributeProperties",value:function(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}},{key:"getAttributeProperties",value:function(e){return this._attributeProperties[e]||{}}},{key:"getLimitElement",value:function(e){var t;for(t=e instanceof Yo?e.parent:(e instanceof na?[e]:Array.from(e.getRanges())).reduce((function(e,t){var n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}},{key:"checkAttributeInSelection",value:function(e,t){if(e.isCollapsed){var n=[].concat(i(e.getFirstPosition().getAncestors()),[new $o("",e.getAttributes())]);return this.checkAttribute(n,t)}var o,a=r(e.getRanges());try{for(a.s();!(o=a.n()).done;){var s,l=r(o.value);try{for(l.s();!(s=l.n()).done;){var u=s.value;if(this.checkAttribute(u.item,t))return!0}}catch(c){l.e(c)}finally{l.f()}}}catch(c){a.e(c)}finally{a.f()}return!1}},{key:"getValidRanges",value:regeneratorRuntime.mark((function e(t,n){var i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=regeneratorRuntime.mark((function e(t){var n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r(t),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=8;break}return o=i.value,e.delegateYield(o.getMinimalFlatRanges(),"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),n.e(e.t1);case 13:return e.prev=13,n.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,10,13,16]])}))(t),i=r(t),e.prev=2,i.s();case 4:if((o=i.n()).done){e.next=9;break}return a=o.value,e.delegateYield(this._getValidRangesForRange(a,n),"t0",7);case 7:e.next=4;break;case 9:e.next=14;break;case 11:e.prev=11,e.t1=e.catch(2),i.e(e.t1);case 14:return e.prev=14,i.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[2,11,14,17]])}))},{key:"getNearestSelectionRange",value:function(e){var t,n,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(e,"$text"))return new na(e);var a=e.getAncestors().reverse().find((function(e){return i.isLimit(e)}))||e.root;"both"!=o&&"backward"!=o||(t=new Qo({boundaries:na._createIn(a),startPosition:e,direction:"backward"})),"both"!=o&&"forward"!=o||(n=new Qo({boundaries:na._createIn(a),startPosition:e}));var s,l=r(regeneratorRuntime.mark((function e(t,n){var r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1;case 1:if(r){e.next=18;break}if(r=!0,!t){e.next=9;break}if(i=t.next(),e.t0=i.done,e.t0){e.next=9;break}return r=!1,e.next=9,{walker:t,value:i.value};case 9:if(!n){e.next=16;break}if(o=n.next(),e.t1=o.done,e.t1){e.next=16;break}return r=!1,e.next=16,{walker:n,value:o.value};case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e)}))(t,n));try{for(l.s();!(s=l.n()).done;){var u=s.value,c=u.value;if(c.type==(u.walker==t?"elementEnd":"elementStart")&&this.isObject(c.item))return na._createOn(c.item);if(this.checkChild(c.nextPosition,"$text"))return new na(c.nextPosition)}}catch(d){l.e(d)}finally{l.f()}return null}},{key:"findAllowedParent",value:function(e,t){for(var n=e.parent;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"removeDisallowedAttributes",value:function(e,t){var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("$text"))is(this,o,t);else{var a,s=r(na._createIn(o).getPositions());try{for(s.s();!(a=s.n()).done;){var l=a.value;is(this,l.nodeBefore||l.parent,t)}}catch(u){s.e(u)}finally{s.f()}}}}catch(u){i.e(u)}finally{i.f()}}},{key:"createContext",value:function(e){return new Wa(e)}},{key:"_clearCache",value:function(){this._compiledDefinitions=null}},{key:"_compile",value:function(){for(var e={},t=this._sourceDefinitions,n=Object.keys(t),r=0,i=n;r<i.length;r++){var o=i[r];e[o]=$a(t[o],o)}for(var a=0,s=n;a<s.length;a++){Ka(e,s[a])}for(var l=0,u=n;l<u.length;l++){Ga(e,u[l])}for(var c=0,d=n;c<d.length;c++){Ja(e,d[c])}for(var h=0,f=n;h<f.length;h++){var v=f[h];Qa(e,v),Za(e,v)}for(var p=0,g=n;p<g.length;p++){var m=g[p];Ya(e,m),Xa(e,m),es(e,m)}this._compiledDefinitions=e}},{key:"_checkContextMatch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1,r=t.getItem(n);if(e.allowIn.includes(r.name)){if(0==n)return!0;var i=this.getDefinition(r);return this._checkContextMatch(i,t,n-1)}return!1}},{key:"_getValidRangesForRange",value:regeneratorRuntime.mark((function e(t,n){var i,o,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=t.start,o=t.start,a=r(t.getItems({shallow:!0})),e.prev=2,a.s();case 4:if((s=a.n()).done){e.next=19;break}if(l=s.value,e.t0=l.is("element"),!e.t0){e.next=9;break}return e.delegateYield(this._getValidRangesForRange(na._createIn(l),n),"t1",9);case 9:if(e.t2=this.checkAttribute(l,n),e.t2){e.next=16;break}if(e.t3=i.isEqual(o),e.t3){e.next=15;break}return e.next=15,new na(i,o);case 15:i=Yo._createAfter(l);case 16:o=Yo._createAfter(l);case 17:e.next=4;break;case 19:e.next=24;break;case 21:e.prev=21,e.t4=e.catch(2),a.e(e.t4);case 24:return e.prev=24,a.f(),e.finish(24);case 27:if(e.t5=i.isEqual(o),e.t5){e.next=31;break}return e.next=31,new na(i,o);case 31:case"end":return e.stop()}}),e,this,[[2,21,24,27]])}))}]),e}();Ke(qa,Be);var Wa=function(){function e(t){if(s(this,e),t instanceof e)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),this._items=t.map(rs)}return u(e,[{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(t){var n=new e([t]);return n._items=[].concat(i(this._items),i(n._items)),n}},{key:"getItem",value:function(e){return this._items[e]}},{key:"getNames",value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._items.map((function(e){return e.name})),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"endsWith",value:function(e){return Array.from(this.getNames()).join(" ").endsWith(e)}},{key:"startsWith",value:function(e){return Array.from(this.getNames()).join(" ").startsWith(e)}},{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}}]),e}();function $a(e,t){var n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(e,t){var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var o,a=n.value,s=r(Object.keys(a).filter((function(e){return e.startsWith("is")})));try{for(s.s();!(o=s.n()).done;){var l=o.value;t[l]=a[l]}}catch(u){s.e(u)}finally{s.f()}}}catch(u){i.e(u)}finally{i.f()}}(e,n),ts(e,n,"allowIn"),ts(e,n,"allowContentOf"),ts(e,n,"allowWhere"),ts(e,n,"allowAttributes"),ts(e,n,"allowAttributesOf"),ts(e,n,"allowChildren"),ts(e,n,"inheritTypesFrom"),function(e,t){var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var o=n.value.inheritAllFrom;o&&(t.allowContentOf.push(o),t.allowWhere.push(o),t.allowAttributesOf.push(o),t.inheritTypesFrom.push(o))}}catch(a){i.e(a)}finally{i.f()}}(e,n),n}function Ka(e,t){var n,i=e[t],o=r(i.allowChildren);try{for(o.s();!(n=o.n()).done;){var a=e[n.value];a&&a.allowIn.push(t)}}catch(s){o.e(s)}finally{o.f()}i.allowChildren.length=0}function Ga(e,t){var n,i=r(e[t].allowContentOf);try{for(i.s();!(n=i.n()).done;){var o=n.value;e[o]&&ns(e,o).forEach((function(e){e.allowIn.push(t)}))}}catch(a){i.e(a)}finally{i.f()}delete e[t].allowContentOf}function Ja(e,t){var n,o=r(e[t].allowWhere);try{for(o.s();!(n=o.n()).done;){var a,s=e[n.value];s&&(a=e[t].allowIn).push.apply(a,i(s.allowIn))}}catch(l){o.e(l)}finally{o.f()}delete e[t].allowWhere}function Qa(e,t){var n,o=r(e[t].allowAttributesOf);try{for(o.s();!(n=o.n()).done;){var a,s=e[n.value];s&&(a=e[t].allowAttributes).push.apply(a,i(s.allowAttributes))}}catch(l){o.e(l)}finally{o.f()}delete e[t].allowAttributesOf}function Za(e,t){var n,i=e[t],o=r(i.inheritTypesFrom);try{for(o.s();!(n=o.n()).done;){var a=e[n.value];if(a){var s,l=r(Object.keys(a).filter((function(e){return e.startsWith("is")})));try{for(l.s();!(s=l.n()).done;){var u=s.value;u in i||(i[u]=a[u])}}catch(c){l.e(c)}finally{l.f()}}}}catch(c){o.e(c)}finally{o.f()}delete i.inheritTypesFrom}function Ya(e,t){var n=e[t],r=n.allowIn.filter((function(t){return e[t]}));n.allowIn=Array.from(new Set(r))}function Xa(e,t){var n,i=r(e[t].allowIn);try{for(i.s();!(n=i.n()).done;){e[n.value].allowChildren.push(t)}}catch(o){i.e(o)}finally{i.f()}}function es(e,t){var n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function ts(e,t,n){var o,a=r(e);try{for(a.s();!(o=a.n()).done;){var s,l=o.value;"string"==typeof l[n]?t[n].push(l[n]):Array.isArray(l[n])&&(s=t[n]).push.apply(s,i(l[n]))}}catch(u){a.e(u)}finally{a.f()}}function ns(e,t){var n,r=e[t];return(n=e,Object.keys(n).map((function(e){return n[e]}))).filter((function(e){return e.allowIn.includes(r.name)}))}function rs(e){return"string"==typeof e||e.is("documentFragment")?{name:"string"==typeof e?e:"$documentFragment",getAttributeKeys:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})),getAttribute:function(){}}:{name:e.is("element")?e.name:"$text",getAttributeKeys:regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e.getAttributeKeys(),"t0",1);case 1:case"end":return t.stop()}}),t)})),getAttribute:function(t){return e.getAttribute(t)}}}function is(e,t,n){var i,o=r(t.getAttributeKeys());try{for(o.s();!(i=o.n()).done;){var a=i.value;e.checkAttribute(t,a)||n.removeAttribute(a,t)}}catch(s){o.e(s)}finally{o.f()}}var os=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},t),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}return u(e,[{key:"convert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",e),this._modelCursor=function(e,t){var n,i,o=r(new Wa(e));try{for(o.s();!(i=o.n()).done;){var a,s=i.value,l={},u=r(s.getAttributeKeys());try{for(u.s();!(a=u.n()).done;){var c=a.value;l[c]=s.getAttribute(c)}}catch(h){u.e(h)}finally{u.f()}var d=t.createElement(s.name,l);n&&t.append(d,n),n=Yo._createAt(d,0)}}catch(h){o.e(h)}finally{o.f()}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=Ha.createFrom(e),this.conversionApi.store={};var i=this._convertItem(e,this._modelCursor),o=i.modelRange,a=t.createDocumentFragment();if(o){this._removeEmptyElements();for(var s=0,l=Array.from(this._modelCursor.parent.getChildren());s<l.length;s++){var u=l[s];t.append(u,a)}a.markers=function(e,t){var n,i=new Set,o=new Map,a=r(na._createIn(e).getItems());try{for(a.s();!(n=a.n()).done;){var s=n.value;"$marker"==s.name&&i.add(s)}}catch(f){a.e(f)}finally{a.f()}var l,u=r(i);try{for(u.s();!(l=u.n()).done;){var c=l.value,d=c.getAttribute("data-name"),h=t.createPositionBefore(c);o.has(d)?o.get(d).end=h.clone():o.set(d,new na(h.clone())),t.remove(c)}}catch(f){u.e(f)}finally{u.f()}return o}(a,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,a}},{key:"_convertItem",value:function(e,t){var n=Object.assign({viewItem:e,modelCursor:t,modelRange:null});if(e.is("element")?this.fire("element:"+e.name,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof na))throw new C.a("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}},{key:"_convertChildren",value:function(e,t){for(var n=t.is("position")?t:Yo._createAt(t,0),r=new na(n),i=0,o=Array.from(e.getChildren());i<o.length;i++){var a=o[i],s=this._convertItem(a,n);s.modelRange instanceof na&&(r.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:r,modelCursor:n}}},{key:"_safeInsert",value:function(e,t){var n=this._splitToAllowedParent(e,t);return!!n&&(this.conversionApi.writer.insert(e,n.position),!0)}},{key:"_updateConversionResult",value:function(e,t){var n=this._getSplitParts(e),r=this.conversionApi.writer;t.modelRange||(t.modelRange=r.createRange(r.createPositionBefore(e),r.createPositionAfter(n[n.length-1])));var i=this._cursorParents.get(e);t.modelCursor=i?r.createPositionAt(i,0):t.modelRange.end}},{key:"_splitToAllowedParent",value:function(e,t){var n=this.conversionApi,i=n.schema,o=n.writer,a=i.findAllowedParent(t,e);if(a){if(a===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(a)&&(a=null)}if(!a)return Ia(t,e,i)?{position:Oa(t,o)}:null;var s,l=this.conversionApi.writer.split(t,a),u=[],c=r(l.range.getWalker());try{for(c.s();!(s=c.n()).done;){var d=s.value;if("elementEnd"==d.type)u.push(d.item);else{var h=u.pop();this._registerSplitPair(h,d.item)}}}catch(v){c.e(v)}finally{c.f()}var f=l.range.end.parent;return this._cursorParents.set(e,f),{position:l.position,cursorParent:f}}},{key:"_registerSplitPair",value:function(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);var n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}},{key:"_getSplitParts",value:function(e){return this._splitParts.has(e)?this._splitParts.get(e):[e]}},{key:"_removeEmptyElements",value:function(){var e,t=!1,n=r(this._splitParts.keys());try{for(n.s();!(e=n.n()).done;){var i=e.value;i.isEmpty&&(this.conversionApi.writer.remove(i),this._splitParts.delete(i),t=!0)}}catch(o){n.e(o)}finally{n.f()}t&&this._removeEmptyElements()}}]),e}();Ke(os,A);var as=function(){function e(){s(this,e)}return u(e,[{key:"getHtml",value:function(e){var t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}]),e}(),ss=function(){function e(t){s(this,e),this._domParser=new DOMParser,this._domConverter=new Pi(t,{blockFillerMode:"nbsp"}),this._htmlWriter=new as}return u(e,[{key:"toData",value:function(e){var t=this._domConverter.viewToDom(e,document);return this._htmlWriter.getHtml(t)}},{key:"toView",value:function(e){var t=this._toDom(e);return this._domConverter.domToView(t)}},{key:"registerRawContentMatcher",value:function(e){this._domConverter.registerRawContentMatcher(e)}},{key:"useFillerType",value:function(e){this._domConverter.blockFillerMode="marked"==e?"markedNbsp":"nbsp"}},{key:"_toDom",value:function(e){for(var t=this._domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),r=t.body.childNodes;r.length>0;)n.appendChild(r[0]);return n}}]),e}(),ls=function(){function e(t,n){var r=this;s(this,e),this.model=t,this.mapper=new ra,this.downcastDispatcher=new aa({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var r=n.writer,i=n.mapper.toViewPosition(t.range.start),o=r.createText(t.item.data);r.insert(i,o)}}),{priority:"lowest"}),this.upcastDispatcher=new os({schema:t.schema}),this.viewDocument=new br(n),this.stylesProcessor=n,this.htmlProcessor=new ss(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Kr(this.viewDocument),this.upcastDispatcher.on("text",(function(e,t,n){var r=n.schema,i=n.consumable,o=n.writer,a=t.modelCursor;if(i.test(t.viewItem)){if(!r.checkChild(a,"$text")){if(!Ia(a,"$text",r))return;a=Oa(a,o)}i.consume(t.viewItem);var s=o.createText(t.viewItem.data);o.insert(s,a),t.modelRange=o.createRange(a,a.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}}),{priority:"lowest"}),this.upcastDispatcher.on("element",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",(function(){r.fire("ready")}),{priority:"lowest"}),this.on("ready",(function(){r.model.enqueueChange("transparent",Ra)}),{priority:"lowest"})}return u(e,[{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootName,n=void 0===t?"main":t,r=e.trim,i=void 0===r?"empty":r;if(!this._checkIfRootsExists([n]))throw new C.a("datacontroller-get-non-existent-root",this);var o=this.model.document.getRoot(n);return"empty"!==i||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,e):""}},{key:"stringify",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.toView(e,t);return this.processor.toData(n)}},{key:"toView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.viewDocument,o=this._viewWriter;this.mapper.clearBindings();var a=na._createIn(e),s=new $r(i);this.mapper.bindElements(e,s),this.downcastDispatcher.conversionApi.options=t,this.downcastDispatcher.convertInsert(a,o);var l,u=e.is("documentFragment")?Array.from(e.markers):function(e){var t=[],n=e.root.document;if(!n)return[];var i,o=na._createIn(e),a=r(n.model.markers);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=o.getIntersection(s.getRange());l&&t.push([s.name,l])}}catch(u){a.e(u)}finally{a.f()}return t}(e),c=r(u);try{for(c.s();!(l=c.n()).done;){var d=n(l.value,2),h=d[0],f=d[1];this.downcastDispatcher.convertMarkerAdd(h,f,o)}}catch(v){c.e(v)}finally{c.f()}return delete this.downcastDispatcher.conversionApi.options,s}},{key:"init",value:function(e){var t=this;if(this.model.document.version)throw new C.a("datacontroller-init-document-not-empty",this);var n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new C.a("datacontroller-init-non-existent-root",this);return this.model.enqueueChange("transparent",(function(e){for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=t.model.document.getRoot(o);e.insert(t.parse(n[o],a),a,0)}})),Promise.resolve()}},{key:"set",value:function(e){var t=this,n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new C.a("datacontroller-set-non-existent-root",this);this.model.enqueueChange("transparent",(function(e){e.setSelection(null),e.removeSelectionAttribute(t.model.document.selection.getAttributeKeys());for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=t.model.document.getRoot(o);e.remove(e.createRangeIn(a)),e.insert(t.parse(n[o],a),a,0)}}))}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(e);return this.toModel(n,t)}},{key:"toModel",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(r){return t.upcastDispatcher.convert(e,r,n)}))}},{key:"addStyleProcessorRules",value:function(e){e(this.stylesProcessor)}},{key:"registerRawContentMatcher",value:function(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(e){var t,n=r(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(!this.model.document.getRootNames().includes(i))return!1}}catch(o){n.e(o)}finally{n.f()}return!0}}]),e}();Ke(ls,Be);var us=function(){function e(t,n){s(this,e),this._helpers=new Map,this._downcast=gn(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=gn(n),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}return u(e,[{key:"addAlias",value:function(e,t){var n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new C.a("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}},{key:"for",value:function(e){if(!this._helpers.has(e))throw new C.a("conversion-for-unknown-group",this);return this._helpers.get(e)}},{key:"elementToElement",value:function(e){this.for("downcast").elementToElement(e);var t,n=r(cs(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,o=i.model,a=i.view;this.for("upcast").elementToElement({model:o,view:a,converterPriority:e.converterPriority})}}catch(s){n.e(s)}finally{n.f()}}},{key:"attributeToElement",value:function(e){this.for("downcast").attributeToElement(e);var t,n=r(cs(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,o=i.model,a=i.view;this.for("upcast").elementToAttribute({view:a,model:o,converterPriority:e.converterPriority})}}catch(s){n.e(s)}finally{n.f()}}},{key:"attributeToAttribute",value:function(e){this.for("downcast").attributeToAttribute(e);var t,n=r(cs(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,o=i.model,a=i.view;this.for("upcast").attributeToAttribute({view:a,model:o})}}catch(s){n.e(s)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(e){var t=e.name,n=e.dispatchers,r=e.isDowncast;if(this._helpers.has(t))throw new C.a("conversion-group-exists",this);var i=r?new Ca(n):new Ma(n);this._helpers.set(t,i)}}]),e}();function cs(e){var t,n,i,o,a,s;return regeneratorRuntime.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(!e.model.values){l.next=20;break}t=r(e.model.values),l.prev=2,t.s();case 4:if((n=t.n()).done){l.next=10;break}return i=n.value,o={key:e.model.key,value:i},a=e.view[i],s=e.upcastAlso?e.upcastAlso[i]:void 0,l.delegateYield(ds(o,a,s),"t0",8);case 8:l.next=4;break;case 10:l.next=15;break;case 12:l.prev=12,l.t1=l.catch(2),t.e(l.t1);case 15:return l.prev=15,t.f(),l.finish(15);case 18:l.next=21;break;case 20:return l.delegateYield(ds(e.model,e.view,e.upcastAlso),"t2",21);case 21:case"end":return l.stop()}}),v,null,[[2,12,15,18]])}function ds(e,t,n){var i,o,a;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,{model:e,view:t};case 2:if(!n){s.next=20;break}i=r(gn(n)),s.prev=4,i.s();case 6:if((o=i.n()).done){s.next=12;break}return a=o.value,s.next=10,{model:e,view:a};case 10:s.next=6;break;case 12:s.next=17;break;case 14:s.prev=14,s.t0=s.catch(4),i.e(s.t0);case 17:return s.prev=17,i.f(),s.finish(17);case 20:case"end":return s.stop()}}),g,null,[[4,14,17,20]])}var hs=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";s(this,e),this.operations=[],this.type=t}return u(e,[{key:"addOperation",value:function(e){return e.batch=this,this.operations.push(e),e}},{key:"baseVersion",get:function(){var e,t=r(this.operations);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==n.baseVersion)return n.baseVersion}}catch(i){t.e(i)}finally{t.f()}return null}}]),e}(),fs=function(){function e(t){s(this,e),this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}return u(e,[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}}],[{key:"fromJSON",value:function(e){return new this(e.baseVersion)}},{key:"className",get:function(){return"Operation"}}]),e}(),vs=function(){function e(t){s(this,e),this.markers=new Map,this._children=new Go,t&&this._insertChild(0,t)}return u(e,[{key:Symbol.iterator,value:function(){return this.getChildren()}},{key:"is",value:function(e){return"documentFragment"===e||"model:documentFragment"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"getPath",value:function(){return[]}},{key:"getNodeByPath",value:function(e){var t,n=this,i=r(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;n=n.getChild(n.offsetToIndex(o))}}catch(a){i.e(a)}finally{i.f()}return n}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"toJSON",value:function(){var e,t=[],n=r(this._children);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(i.toJSON())}}catch(o){n.e(o)}finally{n.f()}return t}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,i=function(e){return"string"==typeof e?[new $o(e)]:(fn(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new $o(e):e instanceof Ko?new $o(e.data,e.getAttributes()):e})))}(t),o=r(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this}}catch(s){o.e(s)}finally{o.f()}this._children._insertNodes(e,i)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(e,n),o=r(i);try{for(o.s();!(t=o.n()).done;){var a=t.value;a.parent=null}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}],[{key:"fromJSON",value:function(t){var n,i=[],o=r(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;i.push(a.name?Jo.fromJSON(a):$o.fromJSON(a))}}catch(s){o.e(s)}finally{o.f()}return new e(i)}}]),e}();function ps(e,t){var n=(t=ys(t)).reduce((function(e,t){return e+t.offsetSize}),0),r=e.parent;bs(e);var i=e.index;return r._insertChild(i,t),ks(r,i+t.length),ks(r,i),new na(e,e.getShiftedBy(n))}function gs(e){if(!e.isFlat)throw new C.a("operation-utils-remove-range-not-flat",this);var t=e.start.parent;bs(e.start),bs(e.end);var n=t._removeChildren(e.start.index,e.end.index-e.start.index);return ks(t,e.start.index),n}function ms(e,t){if(!e.isFlat)throw new C.a("operation-utils-move-range-not-flat",this);var n=gs(e);return ps(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function ys(e){var t=[];e instanceof Array||(e=[e]);for(var n=0;n<e.length;n++)if("string"==typeof e[n])t.push(new $o(e[n]));else if(e[n]instanceof Ko)t.push(new $o(e[n].data,e[n].getAttributes()));else if(e[n]instanceof vs||e[n]instanceof Go){var i,o=r(e[n]);try{for(o.s();!(i=o.n()).done;){var a=i.value;t.push(a)}}catch(c){o.e(c)}finally{o.f()}}else e[n]instanceof Wo&&t.push(e[n]);for(var s=1;s<t.length;s++){var l=t[s],u=t[s-1];l instanceof $o&&u instanceof $o&&_s(l,u)&&(t.splice(s-1,2,new $o(u.data+l.data,u.getAttributes())),s--)}return t}function ks(e,t){var n=e.getChild(t-1),r=e.getChild(t);if(n&&r&&n.is("$text")&&r.is("$text")&&_s(n,r)){var i=new $o(n.data+r.data,n.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,i)}}function bs(e){var t=e.textNode,n=e.parent;if(t){var r=e.offset-t.startOffset,i=t.index;n._removeChildren(i,1);var o=new $o(t.data.substr(0,r),t.getAttributes()),a=new $o(t.data.substr(r),t.getAttributes());n._insertChild(i,[o,a])}}function _s(e,t){var n,i=e.getAttributes(),o=t.getAttributes(),a=r(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s[1]!==t.getAttribute(s[0]))return!1;o.next()}}catch(l){a.e(l)}finally{a.f()}return o.next().done}var ws=function(e,t){return Ji(e,t)},Cs=function(e){c(i,e);var n=d(i);function i(e,t,r,o,a){var l;return s(this,i),(l=n.call(this,a)).range=e.clone(),l.key=t,l.oldValue=void 0===r?null:r,l.newValue=void 0===o?null:o,l}return u(i,[{key:"clone",value:function(){return new i(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new i(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"toJSON",value:function(){var e=t(y(i.prototype),"toJSON",this).call(this);return e.range=this.range.toJSON(),e}},{key:"_validate",value:function(){if(!this.range.isFlat)throw new C.a("attribute-operation-range-not-flat",this);var e,t=r(this.range.getItems({shallow:!0}));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==this.oldValue&&!ws(n.getAttribute(this.key),this.oldValue))throw new C.a("attribute-operation-wrong-old-value",this,{item:n,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&n.hasAttribute(this.key))throw new C.a("attribute-operation-attribute-exists",this,{node:n,key:this.key})}}catch(i){t.e(i)}finally{t.f()}}},{key:"_execute",value:function(){ws(this.oldValue,this.newValue)||function(e,t,n){bs(e.start),bs(e.end);var i,o=r(e.getItems({shallow:!0}));try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.is("$textProxy")?a.textNode:a;null!==n?s._setAttribute(t,n):s._removeAttribute(t),ks(s.parent,s.index)}}catch(l){o.e(l)}finally{o.f()}ks(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}},{key:"type",get:function(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}}],[{key:"fromJSON",value:function(e,t){return new i(na.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}},{key:"className",get:function(){return"AttributeOperation"}}]),i}(fs),xs=function(e){c(r,e);var n=d(r);function r(e,t){var i;return s(this,r),(i=n.call(this,null)).sourcePosition=e.clone(),i.howMany=t,i}return u(r,[{key:"toJSON",value:function(){var e=t(y(r.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e}},{key:"_validate",value:function(){if(this.sourcePosition.root.document)throw new C.a("detach-operation-on-document-node",this)}},{key:"_execute",value:function(){gs(na._createFromPositionAndShift(this.sourcePosition,this.howMany))}},{key:"type",get:function(){return"detach"}}],[{key:"className",get:function(){return"DetachOperation"}}]),r}(fs),Ss=function(e){c(r,e);var n=d(r);function r(e,t,i,o){var a;return s(this,r),(a=n.call(this,o)).sourcePosition=e.clone(),a.sourcePosition.stickiness="toNext",a.howMany=t,a.targetPosition=i.clone(),a.targetPosition.stickiness="toNone",a}return u(r,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}},{key:"getMovedRangeStart",value:function(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}},{key:"getReversed",value:function(){var e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,r=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new C.a("move-operation-nodes-do-not-exist",this);if(e===t&&n<r&&r<n+this.howMany)throw new C.a("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==wn(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){var i=this.sourcePosition.path.length-1;if(this.targetPosition.path[i]>=n&&this.targetPosition.path[i]<n+this.howMany)throw new C.a("move-operation-node-into-itself",this)}}},{key:"_execute",value:function(){ms(na._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}},{key:"toJSON",value:function(){var e=t(y(r.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}},{key:"type",get:function(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}}],[{key:"fromJSON",value:function(e,t){var n=Yo.fromJSON(e.sourcePosition,t),r=Yo.fromJSON(e.targetPosition,t);return new this(n,e.howMany,r,e.baseVersion)}},{key:"className",get:function(){return"MoveOperation"}}]),r}(fs),As=function(e){c(o,e);var n=d(o);function o(e,t,r){var i;return s(this,o),(i=n.call(this,r)).position=e.clone(),i.position.stickiness="toNone",i.nodes=new Go(ys(t)),i.shouldReceiveAttributes=!1,i}return u(o,[{key:"clone",value:function(){var e=new Go(i(this.nodes).map((function(e){return e._clone(!0)}))),t=new o(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}},{key:"getReversed",value:function(){var e=new Yo(this.position.root.document.graveyard,[0]);return new Ss(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new C.a("insert-operation-position-invalid",this)}},{key:"_execute",value:function(){var e=this.nodes;this.nodes=new Go(i(e).map((function(e){return e._clone(!0)}))),ps(this.position,e)}},{key:"toJSON",value:function(){var e=t(y(o.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}},{key:"type",get:function(){return"insert"}},{key:"howMany",get:function(){return this.nodes.maxOffset}}],[{key:"fromJSON",value:function(e,t){var n,i=[],a=r(e.nodes);try{for(a.s();!(n=a.n()).done;){var s=n.value;i.push(s.name?Jo.fromJSON(s):$o.fromJSON(s))}}catch(u){a.e(u)}finally{a.f()}var l=new o(Yo.fromJSON(e.position,t),i,e.baseVersion);return l.shouldReceiveAttributes=e.shouldReceiveAttributes,l}},{key:"className",get:function(){return"InsertOperation"}}]),o}(fs),Es=function(e){c(r,e);var n=d(r);function r(e,t,i,o,a,l){var u;return s(this,r),(u=n.call(this,l)).name=e,u.oldRange=t?t.clone():null,u.newRange=i?i.clone():null,u.affectsData=a,u._markers=o,u}return u(r,[{key:"clone",value:function(){return new r(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}},{key:"getReversed",value:function(){return new r(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}},{key:"_execute",value:function(){this._markers[this.newRange?"_set":"_remove"](this.name,this.newRange,!0,this.affectsData)}},{key:"toJSON",value:function(){var e=t(y(r.prototype),"toJSON",this).call(this);return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}},{key:"type",get:function(){return"marker"}}],[{key:"fromJSON",value:function(e,t){return new r(e.name,e.oldRange?na.fromJSON(e.oldRange,t):null,e.newRange?na.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}},{key:"className",get:function(){return"MarkerOperation"}}]),r}(fs),Ts=function(e){c(r,e);var n=d(r);function r(e,t,i,o){var a;return s(this,r),(a=n.call(this,o)).position=e,a.position.stickiness="toNext",a.oldName=t,a.newName=i,a}return u(r,[{key:"clone",value:function(){return new r(this.position.clone(),this.oldName,this.newName,this.baseVersion)}},{key:"getReversed",value:function(){return new r(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.nodeAfter;if(!(e instanceof Jo))throw new C.a("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new C.a("rename-operation-wrong-name",this)}},{key:"_execute",value:function(){this.position.nodeAfter.name=this.newName}},{key:"toJSON",value:function(){var e=t(y(r.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e}},{key:"type",get:function(){return"rename"}}],[{key:"fromJSON",value:function(e,t){return new r(Yo.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}},{key:"className",get:function(){return"RenameOperation"}}]),r}(fs),Ps=function(e){c(r,e);var n=d(r);function r(e,t,i,o,a){var l;return s(this,r),(l=n.call(this,a)).root=e,l.key=t,l.oldValue=i,l.newValue=o,l}return u(r,[{key:"clone",value:function(){return new r(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new r(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"_validate",value:function(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new C.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new C.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new C.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}},{key:"_execute",value:function(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}},{key:"toJSON",value:function(){var e=t(y(r.prototype),"toJSON",this).call(this);return e.root=this.root.toJSON(),e}},{key:"type",get:function(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}}],[{key:"fromJSON",value:function(e,t){if(!t.getRoot(e.root))throw new C.a("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new r(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}},{key:"className",get:function(){return"RootAttributeOperation"}}]),r}(fs),Rs=function(e){c(r,e);var n=d(r);function r(e,t,i,o,a){var l;return s(this,r),(l=n.call(this,a)).sourcePosition=e.clone(),l.sourcePosition.stickiness="toPrevious",l.howMany=t,l.targetPosition=i.clone(),l.targetPosition.stickiness="toNext",l.graveyardPosition=o.clone(),l}return u(r,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new Yo(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new Is(e,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new C.a("merge-operation-source-position-invalid",this);if(!t.parent)throw new C.a("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new C.a("merge-operation-how-many-invalid",this)}},{key:"_execute",value:function(){var e=this.sourcePosition.parent;ms(na._createIn(e),this.targetPosition),ms(na._createOn(e),this.graveyardPosition)}},{key:"toJSON",value:function(){var e=t(y(r.prototype),"toJSON",this).call(this);return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}},{key:"type",get:function(){return"merge"}},{key:"deletionPosition",get:function(){return new Yo(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}},{key:"movedRange",get:function(){var e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new na(this.sourcePosition,e)}}],[{key:"fromJSON",value:function(e,t){var n=Yo.fromJSON(e.sourcePosition,t),r=Yo.fromJSON(e.targetPosition,t),i=Yo.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,r,i,e.baseVersion)}},{key:"className",get:function(){return"MergeOperation"}}]),r}(fs),Is=function(e){c(r,e);var n=d(r);function r(e,t,i,o,a){var l;return s(this,r),(l=n.call(this,a)).splitPosition=e.clone(),l.splitPosition.stickiness="toNext",l.howMany=t,l.insertionPosition=i,l.graveyardPosition=o?o.clone():null,l.graveyardPosition&&(l.graveyardPosition.stickiness="toNext"),l}return u(r,[{key:"clone",value:function(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var e=new Yo(this.splitPosition.root.document.graveyard,[0]);return new Rs(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.splitPosition.parent;if(!e||e.maxOffset<this.splitPosition.offset)throw new C.a("split-operation-position-invalid",this);if(!e.parent)throw new C.a("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new C.a("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new C.a("split-operation-graveyard-position-invalid",this)}},{key:"_execute",value:function(){var e=this.splitPosition.parent;if(this.graveyardPosition)ms(na._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{var t=e._clone();ps(this.insertionPosition,t)}ms(new na(Yo._createAt(e,this.splitPosition.offset),Yo._createAt(e,e.maxOffset)),this.moveTargetPosition)}},{key:"toJSON",value:function(){var e=t(y(r.prototype),"toJSON",this).call(this);return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}},{key:"type",get:function(){return"split"}},{key:"moveTargetPosition",get:function(){var e=this.insertionPosition.path.slice();return e.push(0),new Yo(this.insertionPosition.root,e)}},{key:"movedRange",get:function(){var e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new na(this.splitPosition,e)}}],[{key:"getInsertionPosition",value:function(e){var t=e.path.slice(0,-1);return t[t.length-1]++,new Yo(e.root,t,"toPrevious")}},{key:"fromJSON",value:function(e,t){var n=Yo.fromJSON(e.splitPosition,t),r=Yo.fromJSON(e.insertionPosition,t),i=e.graveyardPosition?Yo.fromJSON(e.graveyardPosition,t):null;return new this(n,e.howMany,r,i,e.baseVersion)}},{key:"className",get:function(){return"SplitOperation"}}]),r}(fs),Os=function(e){c(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";return s(this,n),(i=t.call(this,r))._document=e,i.rootName=o,i}return u(n,[{key:"is",value:function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){return this.rootName}},{key:"document",get:function(){return this._document}}]),n}(Jo),Ms=function(){function e(t,n){s(this,e),this.model=t,this.batch=n}return u(e,[{key:"createText",value:function(e,t){return new $o(e,t)}},{key:"createElement",value:function(e,t){return new Jo(e,t)}},{key:"createDocumentFragment",value:function(){return new vs}},{key:"cloneElement",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e._clone(t)}},{key:"insert",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(e instanceof $o&&""==e.data)){var o=Yo._createAt(t,i);if(e.parent){if(Fs(e.root,o.root))return void this.move(na._createOn(e),o);if(e.root.document)throw new C.a("model-writer-insert-forbidden-move",this);this.remove(e)}var a=new As(o,e,o.root.document?o.root.document.version:null);if(e instanceof $o&&(a.shouldReceiveAttributes=!0),this.batch.addOperation(a),this.model.applyOperation(a),e instanceof vs){var s,l=r(e.markers);try{for(l.s();!(s=l.n()).done;){var u=n(s.value,2),c=u[0],d=u[1],h=Yo._createAt(d.root,0),f={range:new na(d.start._getCombined(h,o),d.end._getCombined(h,o)),usingOperation:!0,affectsData:!0};this.model.markers.has(c)?this.updateMarker(c,f):this.addMarker(c,f)}}catch(v){l.e(v)}finally{l.f()}}}}},{key:"insertText",value:function(e,t,n,r){t instanceof vs||t instanceof Jo||t instanceof Yo?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,r)}},{key:"insertElement",value:function(e,t,n,r){t instanceof vs||t instanceof Jo||t instanceof Yo?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,r)}},{key:"append",value:function(e,t){this.insert(e,t,"end")}},{key:"appendText",value:function(e,t,n){t instanceof vs||t instanceof Jo?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}},{key:"appendElement",value:function(e,t,n){t instanceof vs||t instanceof Jo?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}},{key:"setAttribute",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof na){var i,o=r(n.getMinimalFlatRanges());try{for(o.s();!(i=o.n()).done;){Ns(this,e,t,i.value)}}catch(a){o.e(a)}finally{o.f()}}else Ls(this,e,t,n)}},{key:"setAttributes",value:function(e,t){var i,o=r(En(e));try{for(o.s();!(i=o.n()).done;){var a=n(i.value,2),s=a[0],l=a[1];this.setAttribute(s,l,t)}}catch(u){o.e(u)}finally{o.f()}}},{key:"removeAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),t instanceof na){var n,i=r(t.getMinimalFlatRanges());try{for(i.s();!(n=i.n()).done;){Ns(this,e,null,n.value)}}catch(o){i.e(o)}finally{i.f()}}else Ls(this,e,null,t)}},{key:"clearAttributes",value:function(e){var t=this;this._assertWriterUsedCorrectly();var n=function(e){var n,i=r(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var o=n.value;t.removeAttribute(o,e)}}catch(a){i.e(a)}finally{i.f()}};if(e instanceof na){var i,o=r(e.getItems());try{for(o.s();!(i=o.n()).done;){n(i.value)}}catch(a){o.e(a)}finally{o.f()}}else n(e)}},{key:"move",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof na))throw new C.a("writer-move-invalid-range",this);if(!e.isFlat)throw new C.a("writer-move-range-not-flat",this);var r=Yo._createAt(t,n);if(!r.isEqual(e.start)){if(this._addOperationForAffectedMarkers("move",e),!Fs(e.root,r.root))throw new C.a("writer-move-different-document",this);var i=new Ss(e.start,e.end.offset-e.start.offset,r,e.root.document?e.root.document.version:null);this.batch.addOperation(i),this.model.applyOperation(i)}}},{key:"remove",value:function(e){this._assertWriterUsedCorrectly();var t,n=r((e instanceof na?e:na._createOn(e)).getMinimalFlatRanges().reverse());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._addOperationForAffectedMarkers("move",i),js(i.start,i.end.offset-i.start.offset,this.batch,this.model)}}catch(o){n.e(o)}finally{n.f()}}},{key:"merge",value:function(e){this._assertWriterUsedCorrectly();var t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof Jo))throw new C.a("writer-merge-no-element-before",this);if(!(n instanceof Jo))throw new C.a("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}},{key:"createPositionFromPath",value:function(e,t,n){return this.model.createPositionFromPath(e,t,n)}},{key:"createPositionAt",value:function(e,t){return this.model.createPositionAt(e,t)}},{key:"createPositionAfter",value:function(e){return this.model.createPositionAfter(e)}},{key:"createPositionBefore",value:function(e){return this.model.createPositionBefore(e)}},{key:"createRange",value:function(e,t){return this.model.createRange(e,t)}},{key:"createRangeIn",value:function(e){return this.model.createRangeIn(e)}},{key:"createRangeOn",value:function(e){return this.model.createRangeOn(e)}},{key:"createSelection",value:function(e,t,n){return this.model.createSelection(e,t,n)}},{key:"_mergeDetached",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;this.move(na._createIn(n),Yo._createAt(t,"end")),this.remove(n)}},{key:"_merge",value:function(e){var t=Yo._createAt(e.nodeBefore,"end"),n=Yo._createAt(e.nodeAfter,0),r=new Yo(e.root.document.graveyard,[0]),i=new Rs(n,e.nodeAfter.maxOffset,t,r,e.root.document.version);this.batch.addOperation(i),this.model.applyOperation(i)}},{key:"rename",value:function(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof Jo))throw new C.a("writer-rename-not-element-instance",this);var n=e.root.document?e.root.document.version:null,r=new Ts(Yo._createBefore(e),e.name,t,n);this.batch.addOperation(r),this.model.applyOperation(r)}},{key:"split",value:function(e,t){this._assertWriterUsedCorrectly();var n,r,i=e.parent;if(!i.parent)throw new C.a("writer-split-element-no-parent",this);if(t||(t=i.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new C.a("writer-split-invalid-limit-element",this);do{var o=i.root.document?i.root.document.version:null,a=i.maxOffset-e.offset,s=Is.getInsertionPosition(e),l=new Is(e,a,s,null,o);this.batch.addOperation(l),this.model.applyOperation(l),n||r||(n=i,r=e.parent.nextSibling),i=(e=this.createPositionAfter(e.parent)).parent}while(i!==t);return{position:e,range:new na(Yo._createAt(n,"end"),Yo._createAt(r,0))}}},{key:"wrap",value:function(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new C.a("writer-wrap-range-not-flat",this);var n=t instanceof Jo?t:new Jo(t);if(n.childCount>0)throw new C.a("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new C.a("writer-wrap-element-attached",this);this.insert(n,e.start);var r=new na(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(r,Yo._createAt(n,0))}},{key:"unwrap",value:function(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new C.a("writer-unwrap-element-no-parent",this);this.move(na._createIn(e),this.createPositionAfter(e)),this.remove(e)}},{key:"addMarker",value:function(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new C.a("writer-addmarker-no-usingoperation",this);var n=t.usingOperation,r=t.range,i=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new C.a("writer-addmarker-marker-exists",this);if(!r)throw new C.a("writer-addmarker-no-range",this);return n?(Ds(this,e,null,r,i),this.model.markers.get(e)):this.model.markers._set(e,r,n,i)}},{key:"updateMarker",value:function(e,t){this._assertWriterUsedCorrectly();var n="string"==typeof e?e:e.name,r=this.model.markers.get(n);if(!r)throw new C.a("writer-updatemarker-marker-not-exists",this);if(t){var i="boolean"==typeof t.usingOperation,o="boolean"==typeof t.affectsData,a=o?t.affectsData:r.affectsData;if(!i&&!t.range&&!o)throw new C.a("writer-updatemarker-wrong-options",this);var s=r.getRange(),l=t.range?t.range:s;i&&t.usingOperation!==r.managedUsingOperations?t.usingOperation?Ds(this,n,null,l,a):(Ds(this,n,s,null,a),this.model.markers._set(n,l,void 0,a)):r.managedUsingOperations?Ds(this,n,s,l,a):this.model.markers._set(n,l,void 0,a)}else this.model.markers._refresh(r)}},{key:"removeMarker",value:function(e){this._assertWriterUsedCorrectly();var t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new C.a("writer-removemarker-no-marker",this);var n=this.model.markers.get(t);n.managedUsingOperations?Ds(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}},{key:"setSelection",value:function(e,t,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}},{key:"setSelectionAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else{var i,o=r(En(e));try{for(o.s();!(i=o.n()).done;){var a=n(i.value,2),s=a[0],l=a[1];this._setSelectionAttribute(s,l)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"removeSelectionAttribute",value:function(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else{var t,n=r(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._removeSelectionAttribute(i)}}catch(o){n.e(o)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(e){this.model.document.selection._restoreGravity(e)}},{key:"_setSelectionAttribute",value:function(e,t){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var r=ya._getStoreAttributeKey(e);this.setAttribute(r,t,n.anchor.parent)}n._setAttribute(e,t)}},{key:"_removeSelectionAttribute",value:function(e){var t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){var n=ya._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new C.a("writer-incorrect-use",this)}},{key:"_addOperationForAffectedMarkers",value:function(e,t){var n,i=r(this.model.markers);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.managedUsingOperations){var a=o.getRange(),s=!1;if("move"===e)s=t.containsPosition(a.start)||t.start.isEqual(a.start)||t.containsPosition(a.end)||t.end.isEqual(a.end);else{var l=t.nodeAfter,u=a.end.parent==l&&0==a.end.offset,c=a.end.nodeAfter==l,d=a.start.nodeAfter==l;s=a.start.parent==t.nodeBefore&&a.start.isAtEnd||u||c||d}s&&this.updateMarker(o.name,{range:a})}}}catch(h){i.e(h)}finally{i.f()}}}]),e}();function Ns(e,t,n,i){var o,a,s,l,u=e.model,c=u.document,d=i.start,h=r(i.getWalker({shallow:!0}));try{for(h.s();!(l=h.n()).done;){var f=l.value;s=f.item.getAttribute(t),o&&a!=s&&(a!=n&&v(),d=o),o=f.nextPosition,a=s}}catch(p){h.e(p)}finally{h.f()}function v(){var r=new na(d,o),i=new Cs(r,t,a,n,r.root.document?c.version:null);e.batch.addOperation(i),u.applyOperation(i)}o instanceof Yo&&o!=d&&a!=n&&v()}function Ls(e,t,n,r){var i,o,a=e.model,s=a.document,l=r.getAttribute(t);l!=n&&(r.root===r?o=new Ps(r,t,l,n,r.document?s.version:null):(i=new na(Yo._createBefore(r),e.createPositionAfter(r)),o=new Cs(i,t,l,n,i.root.document?s.version:null)),e.batch.addOperation(o),a.applyOperation(o))}function Ds(e,t,n,r,i){var o=e.model,a=new Es(t,n,r,o.markers,i,o.document.version);e.batch.addOperation(a),o.applyOperation(a)}function js(e,t,n,r){var i;if(e.root.document){var o=r.document,a=new Yo(o.graveyard,[0]);i=new Ss(e,t,a,o.version)}else i=new xs(e,t);n.addOperation(i),r.applyOperation(i)}function Fs(e,t){return e===t||e instanceof Os&&t instanceof Os}var Vs=function(){function e(t){s(this,e),this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}return u(e,[{key:"refreshItem",value:function(e){if(!this._isInInsertedElement(e.parent)){this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize);var t,n=na._createOn(e),i=r(this._markerCollection.getMarkersIntersectingRange(n));try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.getRange();this.bufferMarkerChange(o.name,a,a,o.affectsData)}}catch(s){i.e(s)}finally{i.f()}this._cachedChanges=null}}},{key:"bufferOperation",value:function(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var t,n=r(e.range.getItems({shallow:!0}));try{for(n.s();!(t=n.n()).done;){var i=t.value;this._isInInsertedElement(i.parent)||this._markAttribute(i)}}catch(p){n.e(p)}finally{n.f()}break;case"remove":case"move":case"reinsert":if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;var o=this._isInInsertedElement(e.sourcePosition.parent),a=this._isInInsertedElement(e.targetPosition.parent);o||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),a||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break;case"rename":if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);var s,l=na._createFromPositionAndShift(e.position,1),u=r(this._markerCollection.getMarkersIntersectingRange(l));try{for(u.s();!(s=u.n()).done;){var c=s.value,d=c.getRange();this.bufferMarkerChange(c.name,d,d,c.affectsData)}}catch(p){u.e(p)}finally{u.f()}break;case"split":var h=e.splitPosition.parent;this._isInInsertedElement(h)||this._markRemove(h,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break;case"merge":var f=e.sourcePosition.parent;this._isInInsertedElement(f.parent)||this._markRemove(f.parent,f.startOffset,1),this._markInsert(e.graveyardPosition.parent,e.graveyardPosition.offset,1);var v=e.targetPosition.parent;this._isInInsertedElement(v)||this._markInsert(v,e.targetPosition.offset,f.maxOffset)}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(e,t,n,r){var i=this._changedMarkers.get(e);i?(i.newRange=n,i.affectsData=r,null==i.oldRange&&null==i.newRange&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:r})}},{key:"getMarkersToRemove",value:function(){var e,t=[],i=r(this._changedMarkers);try{for(i.s();!(e=i.n()).done;){var o=n(e.value,2),a=o[0],s=o[1];null!=s.oldRange&&t.push({name:a,range:s.oldRange})}}catch(l){i.e(l)}finally{i.f()}return t}},{key:"getMarkersToAdd",value:function(){var e,t=[],i=r(this._changedMarkers);try{for(i.s();!(e=i.n()).done;){var o=n(e.value,2),a=o[0],s=o[1];null!=s.newRange&&t.push({name:a,range:s.newRange})}}catch(l){i.e(l)}finally{i.f()}return t}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(e){return{name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}}}))}},{key:"hasDataChanges",value:function(){var e,t=r(this._changedMarkers);try{for(t.s();!(e=t.n()).done;){if(n(e.value,2)[1].affectsData)return!0}}catch(i){t.e(i)}finally{t.f()}return this._changesInElement.size>0}},{key:"getChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var t,n=[],o=r(this._changesInElement.keys());try{for(o.s();!(t=o.n()).done;){var a,s=t.value,l=this._changesInElement.get(s).sort((function(e,t){return e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1})),u=this._elementSnapshots.get(s),c=zs(s.getChildren()),d=Bs(u.length,l),h=0,f=0,v=r(d);try{for(v.s();!(a=v.n()).done;){var p=a.value;if("i"===p)n.push(this._getInsertDiff(s,h,c[h].name)),h++;else if("r"===p)n.push(this._getRemoveDiff(s,h,u[f].name)),f++;else if("a"===p){var g,m=c[h].attributes,y=u[f].attributes,k=void 0;if("$text"==c[h].name)k=new na(Yo._createAt(s,h),Yo._createAt(s,h+1));else{var b=s.offsetToIndex(h);k=new na(Yo._createAt(s,h),Yo._createAt(s.getChild(b),0))}(g=n).push.apply(g,i(this._getAttributesDiff(k,y,m))),h++,f++}else h++,f++}}catch(I){v.e(I)}finally{v.f()}}}catch(I){o.e(I)}finally{o.f()}n.sort((function(e,t){return e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1}));for(var _=1,w=0;_<n.length;_++){var C=n[w],x=n[_],S="remove"==C.type&&"remove"==x.type&&"$text"==C.name&&"$text"==x.name&&C.position.isEqual(x.position),A="insert"==C.type&&"insert"==x.type&&"$text"==C.name&&"$text"==x.name&&C.position.parent==x.position.parent&&C.position.offset+C.length==x.position.offset,E="attribute"==C.type&&"attribute"==x.type&&C.position.parent==x.position.parent&&C.range.isFlat&&x.range.isFlat&&C.position.offset+C.length==x.position.offset&&C.attributeKey==x.attributeKey&&C.attributeOldValue==x.attributeOldValue&&C.attributeNewValue==x.attributeNewValue;S||A||E?(C.length++,E&&(C.range.end=C.range.end.getShiftedBy(1)),n[_]=null):w=_}var T,P=r(n=n.filter((function(e){return e})));try{for(P.s();!(T=P.n()).done;){var R=T.value;delete R.changeCount,"attribute"==R.type&&(delete R.position,delete R.length)}}catch(I){P.e(I)}finally{P.f()}return this._changeCount=0,this._cachedChangesWithGraveyard=n.slice(),this._cachedChanges=n.filter(Hs),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}},{key:"reset",value:function(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}},{key:"_markInsert",value:function(e,t,n){var r={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r)}},{key:"_markRemove",value:function(e,t,n){var r={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r),this._removeAllNestedChanges(e,t,n)}},{key:"_markAttribute",value:function(e){var t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}},{key:"_markChange",value:function(e,t){this._makeSnapshot(e);var n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(var r=0;r<n.length;r++)n[r].howMany<1&&(n.splice(r,1),r--)}},{key:"_getChangesForElement",value:function(e){var t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}},{key:"_makeSnapshot",value:function(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,zs(e.getChildren()))}},{key:"_handleChange",value:function(e,t){e.nodesToHandle=e.howMany;var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=e.offset+e.howMany,s=o.offset+o.howMany;if("insert"==e.type&&("insert"==o.type&&(e.offset<=o.offset?o.offset+=e.howMany:e.offset<s&&(o.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==o.type&&e.offset<o.offset&&(o.offset+=e.howMany),"attribute"==o.type))if(e.offset<=o.offset)o.offset+=e.howMany;else if(e.offset<s){var l=o.howMany;o.howMany=e.offset-o.offset,t.unshift({type:"attribute",offset:a,howMany:l-o.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==o.type)if(a<=o.offset)o.offset-=e.howMany;else if(a<=s)if(e.offset<o.offset){var u=a-o.offset;o.offset=e.offset,o.howMany-=u,e.nodesToHandle-=u}else o.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=o.offset)e.nodesToHandle-=o.howMany,o.howMany=0;else if(e.offset<s){var c=s-e.offset;o.howMany-=c,e.nodesToHandle-=c}if("remove"==o.type&&(a<=o.offset?o.offset-=e.howMany:e.offset<o.offset&&(e.nodesToHandle+=o.howMany,o.howMany=0)),"attribute"==o.type)if(a<=o.offset)o.offset-=e.howMany;else if(e.offset<o.offset){var d=a-o.offset;o.offset=e.offset,o.howMany-=d}else if(e.offset<s)if(a<=s){var h=o.howMany;o.howMany=e.offset-o.offset,t.unshift({type:"attribute",offset:e.offset,howMany:h-o.howMany-e.nodesToHandle,count:this._changeCount++})}else o.howMany-=s-e.offset}if("attribute"==e.type){if("insert"==o.type)if(e.offset<o.offset&&a>o.offset){if(a>s){var f={type:"attribute",offset:s,howMany:a-s,count:this._changeCount++};this._handleChange(f,t),t.push(f)}e.nodesToHandle=o.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=o.offset&&e.offset<s&&(a>s?(e.nodesToHandle=a-s,e.offset=s):e.nodesToHandle=0);if("remove"==o.type&&e.offset<o.offset&&a>o.offset){var v={type:"attribute",offset:o.offset,howMany:a-o.offset,count:this._changeCount++};this._handleChange(v,t),t.push(v),e.nodesToHandle=o.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==o.type&&(e.offset>=o.offset&&a<=s?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=o.offset&&a>=s&&(o.howMany=0))}}}catch(p){i.e(p)}finally{i.f()}e.howMany=e.nodesToHandle,delete e.nodesToHandle}},{key:"_getInsertDiff",value:function(e,t,n){return{type:"insert",position:Yo._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(e,t,n){return{type:"remove",position:Yo._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(e,t,i){var o=[];i=new Map(i);var a,s=r(t);try{for(s.s();!(a=s.n()).done;){var l=n(a.value,2),u=l[0],c=l[1],d=i.has(u)?i.get(u):null;d!==c&&o.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:u,attributeOldValue:c,attributeNewValue:d,changeCount:this._changeCount++}),i.delete(u)}}catch(m){s.e(m)}finally{s.f()}var h,f=r(i);try{for(f.s();!(h=f.n()).done;){var v=n(h.value,2),p=v[0],g=v[1];o.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:p,attributeOldValue:null,attributeNewValue:g,changeCount:this._changeCount++})}}catch(m){f.e(m)}finally{f.f()}return o}},{key:"_isInInsertedElement",value:function(e){var t=e.parent;if(!t)return!1;var n=this._changesInElement.get(t),i=e.startOffset;if(n){var o,a=r(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if("insert"==s.type&&i>=s.offset&&i<s.offset+s.howMany)return!0}}catch(l){a.e(l)}finally{a.f()}}return this._isInInsertedElement(t)}},{key:"_removeAllNestedChanges",value:function(e,t,n){var i,o=r(new na(Yo._createAt(e,t),Yo._createAt(e,t+n)).getItems({shallow:!0}));try{for(o.s();!(i=o.n()).done;){var a=i.value;a.is("element")&&(this._elementSnapshots.delete(a),this._changesInElement.delete(a),this._removeAllNestedChanges(a,0,a.maxOffset))}}catch(s){o.e(s)}finally{o.f()}}},{key:"isEmpty",get:function(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}}]),e}();function zs(e){var t,n=[],i=r(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o.is("$text"))for(var a=0;a<o.data.length;a++)n.push({name:"$text",attributes:new Map(o.getAttributes())});else n.push({name:o.name,attributes:new Map(o.getAttributes())})}}catch(s){i.e(s)}finally{i.f()}return n}function Bs(e,t){var n,o=[],a=0,s=0,l=r(t);try{for(l.s();!(n=l.n()).done;){var u=n.value;if(u.offset>a){for(var c=0;c<u.offset-a;c++)o.push("e");s+=u.offset-a}if("insert"==u.type){for(var d=0;d<u.howMany;d++)o.push("i");a=u.offset+u.howMany}else if("remove"==u.type){for(var h=0;h<u.howMany;h++)o.push("r");a=u.offset,s+=u.howMany}else o.push.apply(o,i("a".repeat(u.howMany).split(""))),a=u.offset+u.howMany,s+=u.howMany}}catch(v){l.e(v)}finally{l.f()}if(s<e)for(var f=0;f<e-s-a;f++)o.push("e");return o}function Hs(e){return!(e.position&&"$graveyard"==e.position.root.rootName||e.range&&"$graveyard"==e.range.root.rootName)}var Us=function(){function e(){s(this,e),this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}return u(e,[{key:"addOperation",value:function(e){this._operations.includes(e)||this._operations.push(e)}},{key:"getOperations",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NEGATIVE_INFINITY,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,i=[],o=r(this._operations);try{for(o.s();!(e=o.n()).done;){var a=e.value;a.baseVersion>=t&&a.baseVersion<n&&i.push(a)}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"getOperation",value:function(e){var t,n=r(this._operations);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.baseVersion==e)return i}}catch(o){n.e(o)}finally{n.f()}}},{key:"setOperationAsUndone",value:function(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}},{key:"isUndoingOperation",value:function(e){return this._undoPairs.has(e)}},{key:"isUndoneOperation",value:function(e){return this._undoneOperations.has(e)}},{key:"getUndoneOperation",value:function(e){return this._undoPairs.get(e)}}]),e}();function qs(e,t){return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var n}function Ws(e,t){return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}var $s=function(){function e(t){var n=this;s(this,e),this.model=t,this.version=0,this.history=new Us(this),this.selection=new ya(this),this.roots=new vn({idProperty:"rootName"}),this.differ=new Vs(t.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root","$graveyard"),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];if(r.isDocumentOperation&&r.baseVersion!==n.version)throw new C.a("model-document-applyoperation-wrong-version",n,{operation:r})}),{priority:"highest"}),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];r.isDocumentOperation&&n.differ.bufferOperation(r)}),{priority:"high"}),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];r.isDocumentOperation&&(n.version++,n.history.addOperation(r))}),{priority:"low"}),this.listenTo(this.selection,"change",(function(){n._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",(function(e,t,r,i){n.differ.bufferMarkerChange(t.name,r,i,t.affectsData),null===r&&t.on("change",(function(e,r){n.differ.bufferMarkerChange(t.name,r,t.getRange(),t.affectsData)}))}))}return u(e,[{key:"createRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(t))throw new C.a("model-document-createroot-name-exists",this,{name:t});var n=new Os(this,e,t);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(e){return e.rootName})).filter((function(e){return"$graveyard"!=e}))}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"toJSON",value:function(){var e=Cn(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}},{key:"_handleChangeBlock",value:function(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var e,t=r(this.roots);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n!==this.graveyard)return n}}catch(i){t.e(i)}finally{t.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var e=this._getDefaultRoot(),t=this.model,n=t.schema,r=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(r)||t.createRange(r)}},{key:"_validateSelectionRange",value:function(e){return Ks(e.start)&&Ks(e.end)}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,i=r(this._postFixers);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(this.selection.refresh(),t=o(e))break}}catch(a){i.e(a)}finally{i.f()}}while(t)}},{key:"graveyard",get:function(){return this.getRoot("$graveyard")}}]),e}();function Ks(e){var t=e.textNode;if(t){var n=t.data,r=e.offset-t.startOffset;return!qs(n,r)&&!Ws(n,r)}return!0}Ke($s,A);var Gs=function(){function e(){s(this,e),this._markers=new Map}return u(e,[{key:Symbol.iterator,value:function(){return this._markers.values()}},{key:"has",value:function(e){return this._markers.has(e)}},{key:"get",value:function(e){return this._markers.get(e)||null}},{key:"_set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e instanceof Js?e.name:e;if(i.includes(","))throw new C.a("markercollection-incorrect-marker-name",this);var o=this._markers.get(i);if(o){var a=o.getRange(),s=!1;return a.isEqual(t)||(o._attachLiveRange(pa.fromRange(t)),s=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,s=!0),"boolean"==typeof r&&r!=o.affectsData&&(o._affectsData=r,s=!0),s&&this.fire("update:"+i,o,a,t),o}var l=pa.fromRange(t),u=new Js(i,l,n,r);return this._markers.set(i,u),this.fire("update:"+i,u,null,t),u}},{key:"_remove",value:function(e){var t=e instanceof Js?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:"+t,n,n.getRange(),null),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(e){var t=e instanceof Js?e.name:e,n=this._markers.get(t);if(!n)throw new C.a("markercollection-refresh-marker-not-exists",this);var r=n.getRange();this.fire("update:"+t,n,r,r,n.managedUsingOperations,n.affectsData)}},{key:"getMarkersAtPosition",value:regeneratorRuntime.mark((function e(t){var n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r(this),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(o=i.value,e.t0=o.getRange().containsPosition(t),!e.t0){e.next=9;break}return e.next=9,o;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:regeneratorRuntime.mark((function e(t){var n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r(this),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(o=i.value,e.t0=null!==o.getRange().getIntersection(t),!e.t0){e.next=9;break}return e.next=9,o;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var e,t=r(this._markers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._destroyMarker(n)}}catch(i){t.e(i)}finally{t.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:regeneratorRuntime.mark((function e(t){var n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r(this._markers.values()),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(o=i.value,e.t0=o.name.startsWith(t+":"),!e.t0){e.next=9;break}return e.next=9,o;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(e){e.stopListening(),e._detachLiveRange()}}]),e}();Ke(Gs,A);var Js=function(){function e(t,n,r,i){s(this,e),this.name=t,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=r,this._affectsData=i}return u(e,[{key:"getStart",value:function(){if(!this._liveRange)throw new C.a("marker-destroyed",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new C.a("marker-destroyed",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new C.a("marker-destroyed",this);return this._liveRange.toRange()}},{key:"is",value:function(e){return"marker"===e||"model:marker"===e}},{key:"_attachLiveRange",value:function(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}},{key:"_detachLiveRange",value:function(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}},{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new C.a("marker-destroyed",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new C.a("marker-destroyed",this);return this._affectsData}}]),e}();Ke(Js,A);var Qs=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"clone",value:function(){return new n(this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.baseVersion+1)}},{key:"_execute",value:function(){}},{key:"type",get:function(){return"noop"}}],[{key:"className",get:function(){return"NoOperation"}}]),n}(fs),Zs={};Zs[Cs.className]=Cs,Zs[As.className]=As,Zs[Es.className]=Es,Zs[Ss.className]=Ss,Zs[Qs.className]=Qs,Zs[fs.className]=fs,Zs[Ts.className]=Ts,Zs[Ps.className]=Ps,Zs[Is.className]=Is,Zs[Rs.className]=Rs;var Ys=function(e){c(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(s(this,n),!(i=t.call(this,e,r,o)).root.is("rootElement"))throw new C.a("model-liveposition-root-not-rootelement",e);return Xs.call(f(i)),h(i)}return u(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e}},{key:"toPosition",value:function(){return new Yo(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}]),n}(Yo);function Xs(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var r=n[0];r.isDocumentOperation&&el.call(e,r)}),{priority:"low"})}function el(e){var t=this.getTransformedByOperation(e);if(!this.isEqual(t)){var n=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",n)}}Ke(Ys,A);var tl=function(){function e(t,n,r){s(this,e),this.model=t,this.writer=n,this.position=r,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=n.createDocumentFragment(),this._documentFragmentPosition=n.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}return u(e,[{key:"handleNodes",value:function(e){for(var t=0,n=Array.from(e);t<n.length;t++){var r=n[t];this._handleNode(r)}this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}},{key:"_updateLastNodeFromAutoParagraph",value:function(e){var t=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(e);if(n.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new C.a("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}},{key:"getSelectionRange",value:function(){return this.nodeToSelect?na._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}},{key:"getAffectedRange",value:function(){return this._affectedStart?new na(this._affectedStart,this._affectedEnd):null}},{key:"destroy",value:function(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}},{key:"_handleNode",value:function(e){if(this.schema.isObject(e))this._handleObject(e);else{var t=this._checkAndAutoParagraphToAllowedPosition(e);t||(t=this._checkAndSplitToAllowedPosition(e))?(this._appendToFragment(e),this._firstNode||(this._firstNode=e),this._lastNode=e):this._handleDisallowedNode(e)}}},{key:"_insertPartialFragment",value:function(){if(!this._documentFragment.isEmpty){var e=Ys.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=e.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=e.toPosition(),e.detach()}}},{key:"_handleObject",value:function(e){this._checkAndSplitToAllowedPosition(e)?this._appendToFragment(e):this._tryAutoparagraphing(e)}},{key:"_handleDisallowedNode",value:function(e){e.is("element")?this.handleNodes(e.getChildren()):this._tryAutoparagraphing(e)}},{key:"_appendToFragment",value:function(e){if(!this.schema.checkChild(this.position,e))throw new C.a("insertcontent-wrong-position",this,{node:e,position:this.position});this.writer.insert(e,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(e.offsetSize),this.nodeToSelect=this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?e:null,this._filterAttributesOf.push(e)}},{key:"_setAffectedBoundaries",value:function(e){this._affectedStart||(this._affectedStart=Ys.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Ys.fromPosition(e,"toNext"))}},{key:"_mergeOnLeft",value:function(){var e=this._firstNode;if(e instanceof Jo&&this._canMergeLeft(e)){var t=Ys._createBefore(e);t.stickiness="toNext";var n=Ys.fromPosition(this.position,"toNext");this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=Ys._createAt(t.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Ys._createAt(t.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}}},{key:"_mergeOnRight",value:function(){var e=this._lastNode;if(e instanceof Jo&&this._canMergeRight(e)){var t=Ys._createAfter(e);if(t.stickiness="toNext",!this.position.isEqual(t))throw new C.a("insertcontent-invalid-insertion-position",this);this.position=Yo._createAt(t.nodeBefore,"end");var n=Ys.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=Ys._createAt(t.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Ys._createAt(t.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}}},{key:"_canMergeLeft",value:function(e){var t=e.previousSibling;return t instanceof Jo&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}},{key:"_canMergeRight",value:function(e){var t=e.nextSibling;return t instanceof Jo&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(e,t)}},{key:"_tryAutoparagraphing",value:function(e){var t=this.writer.createElement("paragraph");this._getAllowedIn(t,this.position.parent)&&this.schema.checkChild(t,e)&&(t._appendChild(e),this._handleNode(t))}},{key:"_checkAndAutoParagraphToAllowedPosition",value:function(e){if(this.schema.checkChild(this.position.parent,e))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",e))return!1;this._insertPartialFragment();var t=this.writer.createElement("paragraph");return this.writer.insert(t,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=t,this.position=this.writer.createPositionAt(t,0),!0}},{key:"_checkAndSplitToAllowedPosition",value:function(e){var t=this._getAllowedIn(e,this.position.parent);if(!t)return!1;for(t!=this.position.parent&&this._insertPartialFragment();t!=this.position.parent;){if(this.schema.isLimit(this.position.parent))return!1;if(this.position.isAtStart){var n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===t&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{var r=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=r,this.canMergeWith.add(this.position.nodeAfter)}}return!0}},{key:"_getAllowedIn",value:function(e,t){return this.schema.checkChild(t,e)?t:t.parent?this._getAllowedIn(e,t.parent):null}}]),e}();function nl(e,t,n){var i=t.parent,o=n.parent;return i!=o&&!e.isLimit(i)&&!e.isLimit(o)&&function(e,t,n){var i,o=r(new na(e,t).getWalker());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(n.isLimit(a.item))return!1}}catch(s){o.e(s)}finally{o.f()}return!0}(t,n,e)}function rl(e,t,n){var r=e.createElement("paragraph");e.insert(r,t),il(e,n,e.createPositionAt(r,0))}function il(e,t,n){t instanceof ya?e.setSelection(n):t.setTo(n)}function ol(e,t){var n=e.isForward,r=e.walker,i=e.unit,o=e.schema,a=t.type,s=t.item,l=t.nextPosition;if("text"==a)return"word"===e.unit?function(e,t){var n=e.position.textNode;if(n)for(var r=e.position.offset-n.startOffset;!sl(n.data,r,t)&&!ll(n,r,t);){e.next();var i=t?e.position.nodeAfter:e.position.nodeBefore;if(i&&i.is("$text")){var o=i.data.charAt(t?0:i.data.length-1);' ,.?!:;"-()'.includes(o)||(e.next(),n=e.position.textNode)}r=e.position.offset-n.startOffset}return e.position}(r,n):function(e,t){var n=e.position.textNode;if(n)for(var r=n.data,i=e.position.offset-n.startOffset;qs(r,i)||"character"==t&&Ws(r,i);)e.next(),i=e.position.offset-n.startOffset;return e.position}(r,i);if(a==(n?"elementStart":"elementEnd")){if(o.isSelectable(s))return Yo._createAt(s,n?"after":"before");if(o.checkChild(l,"$text"))return l}else{if(o.isLimit(s))return void r.skip((function(){return!0}));if(o.checkChild(l,"$text"))return l}}function al(e,t){var n=Yo._createAt(e.root,t?"end":0);return t?new na(e,n):new na(n,e)}function sl(e,t,n){return' ,.?!:;"-()'.includes(e.charAt(t+(n?0:-1)))}function ll(e,t,n){return t===(n?e.endOffset:0)}function ul(e,t){var n=[];Array.from(e.getItems({direction:"backward"})).map((function(e){return t.createRangeOn(e)})).filter((function(t){return(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))})).forEach((function(e){n.push(e.start.parent),t.remove(e)})),n.forEach((function(e){for(var n=e;n.parent&&n.isEmpty;){var r=t.createRangeOn(n);n=n.parent,t.remove(r)}}))}function cl(e,t){return e.isCollapsed?function(e,t){var n=e.start,r=t.getNearestSelectionRange(n);if(!r)return null;if(!r.isCollapsed)return r;var i=r.start;return n.isEqual(i)?null:new na(i)}(e,t):function(e,t){var n=e.start,r=e.end,i=t.checkChild(n,"$text"),o=t.checkChild(r,"$text"),a=t.getLimitElement(n),s=t.getLimitElement(r);if(a===s){if(i&&o)return null;if(function(e,t,n){var r=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),i=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return r||i}(n,r,t)){var l=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),u=r.nodeBefore&&t.isSelectable(r.nodeBefore)?null:t.getNearestSelectionRange(r,"backward");return new na(l?l.start:n,u?u.end:r)}}var c=a&&!a.is("rootElement"),d=s&&!s.is("rootElement");if(c||d){var h=n.nodeAfter&&r.nodeBefore&&n.nodeAfter.parent===r.nodeBefore.parent,f=c&&(!h||!hl(n.nodeAfter,t)),v=d&&(!h||!hl(r.nodeBefore,t)),p=n,g=r;return f&&(p=Yo._createBefore(dl(a,t))),v&&(g=Yo._createAfter(dl(s,t))),new na(p,g)}return null}(e,t)}function dl(e,t){for(var n=e,r=n;t.isLimit(r)&&r.parent;)n=r,r=r.parent;return n}function hl(e,t){return e&&t.isSelectable(e)}var fl=function(){function e(){var t=this;s(this,e),this.markers=new Gs,this.document=new $s(this),this.schema=new qa,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(e){return t.decorate(e)})),this.on("applyOperation",(function(e,t){t[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((function(e,t){if("$marker"===t.name)return!0})),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,i=t.document.selection,o=t.schema,a=[],s=!1,l=r(i.getRanges());try{for(l.s();!(n=l.n()).done;){var u=n.value,c=cl(u,o);c&&!c.isEqual(u)?(a.push(c),s=!0):a.push(u)}}catch(d){l.e(d)}finally{l.f()}s&&e.setSelection(function(e){var t=[];t.push(e.shift());var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=t.pop();if(o.isEqual(a))t.push(a);else if(o.isIntersecting(a)){var s=a.start.isAfter(o.start)?o.start:a.start,l=a.end.isAfter(o.end)?a.end:o.end,u=new na(s,l);t.push(u)}else t.push(a),t.push(o)}}catch(d){i.e(d)}finally{i.f()}return t}(a),{backward:i.isBackward})}(t,e)}))}(this),this.document.registerPostFixer(Ra)}return u(e,[{key:"change",value:function(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new hs,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){C.a.rethrowUnexpectedError(e,this)}}},{key:"enqueueChange",value:function(e,t){try{"string"==typeof e?e=new hs(e):"function"==typeof e&&(t=e,e=new hs),this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){C.a.rethrowUnexpectedError(e,this)}}},{key:"applyOperation",value:function(e){e._execute()}},{key:"insertContent",value:function(e,t,n){return function(e,t,n,r){return e.change((function(i){var o;(o=n?n instanceof ca||n instanceof ya?n:i.createSelection(n,r):e.document.selection).isCollapsed||e.deleteContent(o,{doNotAutoparagraph:!0});var a,s=new tl(e,i,o.anchor);a=t.is("documentFragment")?t.getChildren():[t],s.handleNodes(a);var l=s.getSelectionRange();l&&(o instanceof ya?i.setSelection(l):o.setTo(l));var u=s.getAffectedRange()||e.createRange(o.anchor);return s.destroy(),u}))}(this,e,t,n)}},{key:"deleteContent",value:function(e,t){!function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.isCollapsed){var o=t.getFirstRange();if("$graveyard"!=o.root.rootName){var a=e.schema;e.change((function(e){if(i.doNotResetEntireContent||!function(e,t){var n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;var r=t.getFirstRange();return r.start.parent!=r.end.parent&&e.checkChild(n,"paragraph")}(a,t)){var s=n(function(e){var t=e.root.document.model,n=e.start,i=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){var o=function(e){var t,n=e.parent,i=n.root.document.model.schema,o=r(n.getAncestors({parentFirst:!0,includeSelf:!0}));try{for(o.s();!(t=o.n()).done;){var a=t.value;if(i.isLimit(a))return null;if(i.isBlock(a))return a}}catch(s){o.e(s)}finally{o.f()}}(i);if(o&&i.isTouching(t.createPositionAt(o,0))){var a=t.createSelection(e);t.modifySelection(a,{direction:"backward"});var s=a.getLastPosition(),l=t.createRange(s,i);t.hasContent(l,{ignoreMarkers:!0})||(i=s)}}return[Ys.fromPosition(n,"toPrevious"),Ys.fromPosition(i,"toNext")]}(o),2),l=s[0],u=s[1];l.isTouching(u)||e.remove(e.createRange(l,u)),i.leaveUnmerged||(function(e,t,r){var i=e.model;if(nl(e.model.schema,t,r)){var o=n(function(e,t){for(var n=e.getAncestors(),r=t.getAncestors(),i=0;n[i]&&n[i]==r[i];)i++;return[n[i],r[i]]}(t,r),2),a=o[0],s=o[1];a&&s&&(!i.hasContent(a,{ignoreMarkers:!0})&&i.hasContent(s,{ignoreMarkers:!0})?function e(t,n,r,i){var o=n.parent,a=r.parent;if(o!=i&&a!=i){for(n=t.createPositionAfter(o),(r=t.createPositionBefore(a)).isEqual(n)||t.insert(o,r);n.parent.isEmpty;){var s=n.parent;n=t.createPositionBefore(s),t.remove(s)}r=t.createPositionBefore(a),function(e,t){var n=t.nodeBefore,r=t.nodeAfter;n.name!=r.name&&e.rename(n,r.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(r.getAttributes()),n),e.merge(t)}(t,r),nl(t.model.schema,n,r)&&e(t,n,r,i)}}(e,t,r,a.parent):function e(t,n,r,i){var o=n.parent,a=r.parent;if(o!=i&&a!=i){for(n=t.createPositionAfter(o),(r=t.createPositionBefore(a)).isEqual(n)||t.insert(a,n),t.merge(n);r.parent.isEmpty;){var s=r.parent;r=t.createPositionBefore(s),t.remove(s)}nl(t.model.schema,n,r)&&e(t,n,r,i)}}(e,t,r,a.parent))}}(e,l,u),a.removeDisallowedAttributes(l.parent.getChildren(),e)),il(e,t,l),!i.doNotAutoparagraph&&function(e,t){var n=e.checkChild(t,"$text"),r=e.checkChild(t,"paragraph");return!n&&r}(a,l)&&rl(e,l,t),l.detach(),u.detach()}else!function(e,t){var n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),rl(e,e.createPositionAt(n,0),t)}(e,t)}))}}}(this,e,t)}},{key:"modifySelection",value:function(e,t){!function(e,t){for(var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.schema,o="backward"!=r.direction,a=r.unit?r.unit:"character",s=new Qo({boundaries:al(t.focus,o),singleCharacters:!0,direction:o?"forward":"backward"}),l={walker:s,schema:i,isForward:o,unit:a},u=function(){if(n.done)return{v:void 0};var r=ol(l,n.value);return r?{v:void(t instanceof ya?e.change((function(e){e.setSelectionFocus(r)})):t.setFocus(r))}:void 0};n=s.next();){var c=u();if("object"==typeof c)return c.v}}(this,e,t)}},{key:"getSelectedContent",value:function(e){return function(e,t){return e.change((function(e){var n=e.createDocumentFragment(),i=t.getFirstRange();if(!i||i.isCollapsed)return n;var o,a,s=i.start.root,l=i.start.getCommonPath(i.end),u=s.getNodeByPath(l),c=(o=i.start.parent==i.end.parent?i:e.createRange(e.createPositionAt(u,i.start.path[l.length]),e.createPositionAt(u,i.end.path[l.length]+1))).end.offset-o.start.offset,d=r(o.getItems({shallow:!0}));try{for(d.s();!(a=d.n()).done;){var h=a.value;h.is("$textProxy")?e.appendText(h.data,h.getAttributes(),n):e.append(e.cloneElement(h,!0),n)}}catch(p){d.e(p)}finally{d.f()}if(o!=i){var f=i._getTransformedByMove(o.start,e.createPositionAt(n,0),c)[0],v=e.createRange(e.createPositionAt(n,0),f.start);ul(e.createRange(f.end,e.createPositionAt(n,"end")),e),ul(v,e)}return n}))}(this,e)}},{key:"hasContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e instanceof Jo?na._createIn(e):e;if(n.isCollapsed)return!1;var i=t.ignoreWhitespaces,o=void 0!==i&&i,a=t.ignoreMarkers,s=void 0!==a&&a;if(!s){var l,u=r(this.markers.getMarkersIntersectingRange(n));try{for(u.s();!(l=u.n()).done;){var c=l.value;if(c.affectsData)return!0}}catch(v){u.e(v)}finally{u.f()}}var d,h=r(n.getItems());try{for(h.s();!(d=h.n()).done;){var f=d.value;if(this.schema.isContent(f)){if(!f.is("$textProxy"))return!0;if(!o)return!0;if(-1!==f.data.search(/\S/))return!0}}}catch(v){h.e(v)}finally{h.f()}return!1}},{key:"createPositionFromPath",value:function(e,t,n){return new Yo(e,t,n)}},{key:"createPositionAt",value:function(e,t){return Yo._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Yo._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Yo._createBefore(e)}},{key:"createRange",value:function(e,t){return new na(e,t)}},{key:"createRangeIn",value:function(e){return na._createIn(e)}},{key:"createRangeOn",value:function(e){return na._createOn(e)}},{key:"createSelection",value:function(e,t,n){return new ca(e,t,n)}},{key:"createBatch",value:function(e){return new hs(e)}},{key:"createOperationFromJSON",value:function(e){return function(){function e(){s(this,e)}return u(e,null,[{key:"fromJSON",value:function(e,t){return Zs[e.__className].fromJSON(e,t)}}]),e}().fromJSON(e,this.document)}},{key:"destroy",value:function(){this.document.destroy(),this.stopListening()}},{key:"_runPendingChanges",value:function(){var e=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){this._currentWriter=new Ms(this,this._pendingChanges[0].batch);var t=this._pendingChanges[0].callback(this._currentWriter);e.push(t),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),e}}]),e}();Ke(fl,Be);var vl=function(e){c(r,e);var n=d(r);function r(e){var t;return s(this,r),(t=n.call(this)).editor=e,t}return u(r,[{key:"set",value:function(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n){var a=n;n=function(e,t){i.editor.execute(a),t()}}t(y(r.prototype),"set",this).call(this,e,n,o)}}]),r}(Oo),pl=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this._context=n.context||new bn({language:n.language}),this._context._addEditor(this,!n.context);var r=Array.from(this.constructor.builtinPlugins||[]);this.config=new cn(n,this.constructor.defaultConfig),this.config.define("plugins",r),this.config.define(this._context._getEditorConfig()),this.plugins=new pn(this,r,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Ba,this.set("state","initializing"),this.once("ready",(function(){return t.state="ready"}),{priority:"high"}),this.once("destroy",(function(){return t.state="destroyed"}),{priority:"high"}),this.set("isReadOnly",!1),this.model=new fl;var i=new Qn;this.data=new ls(this.model,i),this.editing=new za(this.model,i),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new us([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new vl(this),this.keystrokes.listenTo(this.editing.view.document)}return u(e,[{key:"initPlugins",value:function(){var e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],r=e.get("extraPlugins")||[],i=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(r),n,i)}},{key:"destroy",value:function(){var e=this,t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((function(t){return e.once("ready",t)}))),t.then((function(){e.fire("destroy"),e.stopListening(),e.commands.destroy()})).then((function(){return e.plugins.destroy()})).then((function(){e.model.destroy(),e.data.destroy(),e.editing.destroy(),e.keystrokes.destroy()})).then((function(){return e._context._removeEditor(e)}))}},{key:"execute",value:function(){try{var e;return(e=this.commands).execute.apply(e,arguments)}catch(o){C.a.rethrowUnexpectedError(o,this)}}},{key:"focus",value:function(){this.editing.view.focus()}}]),e}();Ke(pl,Be);var gl=function(){function e(t){s(this,e),this.editor=t,this._components=new Map}return u(e,[{key:"names",value:regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r(this._components.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.originalName;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"add",value:function(e,t){this._components.set(ml(e),{callback:t,originalName:e})}},{key:"create",value:function(e){if(!this.has(e))throw new C.a("componentfactory-item-missing",this,{name:e});return this._components.get(ml(e)).callback(this.editor.locale)}},{key:"has",value:function(e){return this._components.has(ml(e))}}]),e}();function ml(e){return String(e).toLowerCase()}var yl=function(){function e(t){var n=this;s(this,e),this.editor=t,this.componentFactory=new gl(t),this.focusTracker=new Io,this._editableElementsMap=new Map,this.listenTo(t.editing.view.document,"layoutChanged",(function(){return n.update()}))}return u(e,[{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy();var e,t=r(this._editableElementsMap.values());try{for(t.s();!(e=t.n()).done;){e.value.ckeditorInstance=null}}catch(n){t.e(n)}finally{t.f()}this._editableElementsMap=new Map}},{key:"setEditableElement",value:function(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor)}},{key:"getEditableElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(e)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"element",get:function(){return null}},{key:"_editableElements",get:function(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}]),e}();Ke(yl,A);var kl={updateSourceElement:function(){if(!this.sourceElement)throw new C.a("editor-missing-sourceelement",this);var e,t;e=this.sourceElement,t=this.data.get(),e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}},bl=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new vn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(e){if("string"!=typeof e)throw new C.a("pendingactions-add-invalid-message",this);var t=Object.create(Be);return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}},{key:"remove",value:function(e){this._actions.remove(e),this.hasAny=!!this._actions.length}},{key:Symbol.iterator,value:function(){return this._actions[Symbol.iterator]()}},{key:"first",get:function(){return this._actions.get(0)}}],[{key:"pluginName",get:function(){return"PendingActions"}}]),n}(_n),_l='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',wl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',Cl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',xl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>',Sl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>',Al='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>',El='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>';function Tl(e){var t=e.emitter,n=e.activator,i=e.callback,o=e.contextElements;t.listenTo(document,"mousedown",(function(e,t){if(n()){var a,s="function"==typeof t.composedPath?t.composedPath():[],l=r(o);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(u.contains(t.target)||s.includes(u))return}}catch(c){l.e(c)}finally{l.f()}i()}}))}function Pl(e){e.set("_isCssTransitionsDisabled",!1),e.disableCssTransitions=function(){e._isCssTransitionsDisabled=!0},e.enableCssTransitions=function(){e._isCssTransitionsDisabled=!1},e.extendTemplate({attributes:{class:[e.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function Rl(e){var t=e.view;t.listenTo(t.element,"submit",(function(e,n){n.preventDefault(),t.fire("submit")}),{useCapture:!0})}var Il=function(e){c(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return s(this,n),(e=t.call(this,r,{idProperty:"viewUid"})).on("add",(function(t,n,r){e._renderViewIntoCollectionParent(n,r)})),e.on("remove",(function(t,n){n.element&&e._parentElement&&n.element.remove()})),e._parentElement=null,e}return u(n,[{key:"destroy",value:function(){this.map((function(e){return e.destroy()}))}},{key:"setParent",value:function(e){this._parentElement=e;var t,n=r(this);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._renderViewIntoCollectionParent(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"delegate",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(!n.length||!n.every((function(e){return"string"==typeof e})))throw new C.a("ui-viewcollection-delegate-wrong-events",this);return{to:function(t){var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a,s=i.value,l=r(n);try{for(l.s();!(a=l.n()).done;){var u=a.value;s.delegate(u).to(t)}}catch(c){l.e(c)}finally{l.f()}}}catch(c){o.e(c)}finally{o.f()}e.on("add",(function(e,i){var o,a=r(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;i.delegate(s).to(t)}}catch(c){a.e(c)}finally{a.f()}})),e.on("remove",(function(e,i){var o,a=r(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;i.stopDelegating(s,t)}}catch(c){a.e(c)}finally{a.f()}}))}}}},{key:"_renderViewIntoCollectionParent",value:function(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}]),n}(vn);l(15);var Ol=function(){function e(t){s(this,e),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new vn,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(function(e,n){n.locale=t})),this.decorate("render")}return u(e,[{key:"createCollection",value:function(e){var t=new Il(e);return this._viewCollections.add(t),t}},{key:"registerChild",value:function(e){fn(e)||(e=[e]);var t,n=r(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._unboundChildren.add(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"deregisterChild",value:function(e){fn(e)||(e=[e]);var t,n=r(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._unboundChildren.remove(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"setTemplate",value:function(e){this.template=new Ml(e)}},{key:"extendTemplate",value:function(e){Ml.extend(this.template,e)}},{key:"render",value:function(){if(this.isRendered)throw new C.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}},{key:"destroy",value:function(){this.stopListening(),this._viewCollections.map((function(e){return e.destroy()})),this.template&&this.template._revertData&&this.template.revert(this.element)}},{key:"bindTemplate",get:function(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Ml.bind(this,this)}}]),e}();Ke(Ol,Ni),Ke(Ol,Be);var Ml=function(){function e(t){s(this,e),Object.assign(this,Ul(Hl(t))),this._isRendered=!1,this._revertData=null}return u(e,[{key:"render",value:function(){var e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}},{key:"apply",value:function(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,isApplying:!0,revertData:this._revertData}),e}},{key:"revert",value:function(e){if(!this._revertData)throw new C.a("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}},{key:"getViews",value:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(regeneratorRuntime.mark((function e(t){var n,i,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!t.children){a.next=24;break}n=r(t.children),a.prev=2,n.s();case 4:if((i=n.n()).done){a.next=16;break}if(!Gl(o=i.value)){a.next=11;break}return a.next=9,o;case 9:a.next=14;break;case 11:if(a.t0=Jl(o),!a.t0){a.next=14;break}return a.delegateYield(e(o),"t1",14);case 14:a.next=4;break;case 16:a.next=21;break;case 18:a.prev=18,a.t2=a.catch(2),n.e(a.t2);case 21:return a.prev=21,n.f(),a.finish(21);case 24:case"end":return a.stop()}}),e,null,[[2,18,21,24]])}))(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"_renderNode",value:function(e){if(e.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new C.a("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}},{key:"_renderElement",value:function(e){var t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}},{key:"_renderText",value:function(e){var t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),jl(this.text)?this._bindToObservable({schema:this.text,updater:Vl(t),data:e}):t.textContent=this.text.join(""),t}},{key:"_renderAttributes",value:function(e){var t,n,r,i;if(this.attributes){var o=e.node,a=e.revertData;for(t in this.attributes)if(r=o.getAttribute(t),n=this.attributes[t],a&&(a.attributes[t]=r),i=N(n[0])&&n[0].ns?n[0].ns:null,jl(n)){var s=i?n[0].value:n;a&&Zl(t)&&s.unshift(r),this._bindToObservable({schema:s,updater:zl(o,t,i),data:e})}else"style"==t&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],e):(a&&r&&Zl(t)&&n.unshift(r),Kl(n=n.map((function(e){return e&&e.value||e})).reduce((function(e,t){return e.concat(t)}),[]).reduce(Wl,""))||o.setAttributeNS(i,t,n))}}},{key:"_renderStyleAttribute",value:function(e,t){var n=t.node;for(var r in e){var i=e[r];jl(i)?this._bindToObservable({schema:[i],updater:Bl(n,r),data:t}):n.style[r]=i}}},{key:"_renderElementChildren",value:function(e){var t,n=e.node,i=e.intoFragment?document.createDocumentFragment():n,o=e.isApplying,a=0,s=r(this.children);try{for(s.s();!(t=s.n()).done;){var l=t.value;if(Ql(l)){if(!o){l.setParent(n);var u,c=r(l);try{for(c.s();!(u=c.n()).done;){var d=u.value;i.appendChild(d.element)}}catch(f){c.e(f)}finally{c.f()}}}else if(Gl(l))o||(l.isRendered||l.render(),i.appendChild(l.element));else if(yi(l))i.appendChild(l);else if(o){var h={children:[],bindings:[],attributes:{}};e.revertData.children.push(h),l._renderNode({node:i.childNodes[a++],isApplying:!0,revertData:h})}else i.appendChild(l.render())}}catch(f){s.e(f)}finally{s.f()}e.intoFragment&&n.appendChild(i)}},{key:"_setUpListeners",value:function(e){var t=this;if(this.eventListeners){var r=function(r){var i=t.eventListeners[r].map((function(t){var i=n(r.split("@"),2),o=i[0],a=i[1];return t.activateDomEventListener(o,a,e)}));e.revertData&&e.revertData.bindings.push(i)};for(var i in this.eventListeners)r(i)}}},{key:"_bindToObservable",value:function(e){var t=e.schema,n=e.updater,r=e.data,i=r.revertData;Fl(t,n,r);var o=t.filter((function(e){return!Kl(e)})).filter((function(e){return e.observable})).map((function(e){return e.activateAttributeListener(t,n,r)}));i&&i.bindings.push(o)}},{key:"_revertTemplateFromNode",value:function(e,t){var n,i=r(t.bindings);try{for(i.s();!(n=i.n()).done;){var o,a=r(n.value);try{for(a.s();!(o=a.n()).done;){(0,o.value)()}}catch(c){a.e(c)}finally{a.f()}}}catch(c){i.e(c)}finally{i.f()}if(t.text)e.textContent=t.text;else{for(var s in t.attributes){var l=t.attributes[s];null===l?e.removeAttribute(s):e.setAttribute(s,l)}for(var u=0;u<t.children.length;++u)this._revertTemplateFromNode(e.childNodes[u],t.children[u])}}}],[{key:"bind",value:function(e,t){return{to:function(n,r){return new Ll({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:r})},if:function(n,r,i){return new Dl({observable:e,emitter:t,attribute:n,valueIfTrue:r,callback:i})}}}},{key:"extend",value:function(e,t){if(e._isRendered)throw new C.a("template-extend-render",[this,e]);!function e(t,n){var o;if(n.attributes&&(t.attributes||(t.attributes={}),$l(t.attributes,n.attributes)),n.eventListeners&&(t.eventListeners||(t.eventListeners={}),$l(t.eventListeners,n.eventListeners)),n.text&&(o=t.text).push.apply(o,i(n.text)),n.children&&n.children.length){if(t.children.length!=n.children.length)throw new C.a("ui-template-extend-children-mismatch",t);var a,s=0,l=r(n.children);try{for(l.s();!(a=l.n()).done;){var u=a.value;e(t.children[s++],u)}}catch(c){l.e(c)}finally{l.f()}}}(e,Ul(Hl(t)))}}]),e}();Ke(Ml,A);var Nl=function(){function e(t){s(this,e),Object.assign(this,t)}return u(e,[{key:"getValue",value:function(e){var t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}},{key:"activateAttributeListener",value:function(e,t,n){var r=this,i=function(){return Fl(e,t,n)};return this.emitter.listenTo(this.observable,"change:"+this.attribute,i),function(){r.emitter.stopListening(r.observable,"change:"+r.attribute,i)}}}]),e}(),Ll=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"activateDomEventListener",value:function(e,t,n){var r=this,i=function(e,n){t&&!n.target.matches(t)||("function"==typeof r.eventNameOrFunction?r.eventNameOrFunction(n):r.observable.fire(r.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,i),function(){r.emitter.stopListening(n.node,e,i)}}}]),n}(Nl),Dl=function(e){c(r,e);var n=d(r);function r(){return s(this,r),n.apply(this,arguments)}return u(r,[{key:"getValue",value:function(e){return!Kl(t(y(r.prototype),"getValue",this).call(this,e))&&(this.valueIfTrue||!0)}}]),r}(Nl);function jl(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(jl):e instanceof Nl)}function Fl(e,t,n){var r=function(e,t){return e.map((function(e){return e instanceof Nl?e.getValue(t):e}))}(e,n.node);Kl(r=1==e.length&&e[0]instanceof Dl?r[0]:r.reduce(Wl,""))?t.remove():t.set(r)}function Vl(e){return{set:function(t){e.textContent=t},remove:function(){e.textContent=""}}}function zl(e,t,n){return{set:function(r){e.setAttributeNS(n,t,r)},remove:function(){e.removeAttributeNS(n,t)}}}function Bl(e,t){return{set:function(n){e.style[t]=n},remove:function(){e.style[t]=null}}}function Hl(e){return ln(e,(function(e){if(e&&(e instanceof Nl||Jl(e)||Gl(e)||Ql(e)))return e}))}function Ul(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){e.text=gn(e.text)}(e),e.on&&(e.eventListeners=function(e){for(var t in e)ql(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(var t in e)e[t].value&&(e[t].value=gn(e[t].value)),ql(e,t)}(e.attributes);var t=[];if(e.children)if(Ql(e.children))t.push(e.children);else{var n,i=r(e.children);try{for(i.s();!(n=i.n()).done;){var o=n.value;Jl(o)||Gl(o)||yi(o)?t.push(o):t.push(new Ml(o))}}catch(a){i.e(a)}finally{i.f()}}e.children=t}return e}function ql(e,t){e[t]=gn(e[t])}function Wl(e,t){return Kl(t)?e:Kl(e)?t:"".concat(e," ").concat(t)}function $l(e,t){for(var n in t){var r;e[n]?(r=e[n]).push.apply(r,i(t[n])):e[n]=t[n]}}function Kl(e){return!e&&0!==e}function Gl(e){return e instanceof Ol}function Jl(e){return e instanceof Ml}function Ql(e){return e instanceof Il}function Zl(e){return"class"==e||"style"==e}var Yl=function(e){c(r,e);var n=d(r);function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return s(this,r),(t=n.call(this,i)).locale=e,t}return u(r,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new Ml({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var e=document.querySelector(".ck-body-wrapper");e||(e=bo(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){t(y(r.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}]),r}(Il);l(17);var Xl=function(e){c(r,e);var n=d(r);function r(){var e;s(this,r);var t=(e=n.call(this)).bindTemplate;return e.set("content",""),e.set("viewBox","0 0 20 20"),e.set("fillColor",""),e.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:t.to("viewBox")}}),e}return u(r,[{key:"render",value:function(){var e=this;t(y(r.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){e._updateXMLContent(),e._colorFillPaths()})),this.on("change:fillColor",(function(){e._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t),this.element.innerHTML="";e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var e=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(t){t.style.fill=e.fillColor}))}}]),r}(Ol);l(19);var eu=function(e){c(n,e);var t=d(n);function n(e){var r;s(this,n),(r=t.call(this,e)).set("text",""),r.set("position","s");var i=r.bindTemplate;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",i.to("position",(function(e){return"ck-tooltip_"+e})),i.if("text","ck-hidden",(function(e){return!e.trim()}))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:i.to("text")}]}]}),r}return n}(Ol);l(21);var tu=function(e){c(r,e);var n=d(r);function r(e){var t;s(this,r);var i=(t=n.call(this,e)).bindTemplate,o=_();return t.set("class"),t.set("labelStyle"),t.set("icon"),t.set("isEnabled",!0),t.set("isOn",!1),t.set("isVisible",!0),t.set("isToggleable",!1),t.set("keystroke"),t.set("label"),t.set("tabindex",-1),t.set("tooltip"),t.set("tooltipPosition","s"),t.set("type","button"),t.set("withText",!1),t.set("withKeystroke",!1),t.children=t.createCollection(),t.tooltipView=t._createTooltipView(),t.labelView=t._createLabelView(o),t.iconView=new Xl,t.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),t.keystrokeView=t._createKeystrokeView(),t.bind("_tooltipString").to(f(t),"tooltip",f(t),"label",f(t),"keystroke",t._getTooltipString.bind(f(t))),t.setTemplate({tag:"button",attributes:{class:["ck","ck-button",i.to("class"),i.if("isEnabled","ck-disabled",(function(e){return!e})),i.if("isVisible","ck-hidden",(function(e){return!e})),i.to("isOn",(function(e){return e?"ck-on":"ck-off"})),i.if("withText","ck-button_with-text"),i.if("withKeystroke","ck-button_with-keystroke")],type:i.to("type",(function(e){return e||"button"})),tabindex:i.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+o,"aria-disabled":i.if("isEnabled",!0,(function(e){return!e})),"aria-pressed":i.to("isOn",(function(e){return!!t.isToggleable&&String(e)}))},children:t.children,on:{mousedown:i.to((function(e){e.preventDefault()})),click:i.to((function(e){t.isEnabled?t.fire("execute"):e.preventDefault()}))}}),t}return u(r,[{key:"render",value:function(){t(y(r.prototype),"render",this).call(this),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createTooltipView",value:function(){var e=new eu;return e.bind("text").to(this,"_tooltipString"),e.bind("position").to(this,"tooltipPosition"),e}},{key:"_createLabelView",value:function(e){var t=new Ol;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:this.bindTemplate.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}},{key:"_createKeystrokeView",value:function(){var e=new Ol;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(e){return Vr(e)}))}]}),e}},{key:"_getTooltipString",value:function(e,t,n){return e?"string"==typeof e?e:(n&&(n=Vr(n)),e instanceof Function?e(t,n):"".concat(t).concat(n?" (".concat(n,")"):"")):""}}]),r}(Ol);l(23);var nu=function(e){c(r,e);var n=d(r);function r(e){var t;return s(this,r),(t=n.call(this,e)).isToggleable=!0,t.toggleSwitchView=t._createToggleView(),t.extendTemplate({attributes:{class:"ck-switchbutton"}}),t}return u(r,[{key:"render",value:function(){t(y(r.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var e=new Ol;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}]),r}(tu),ru=function(){function e(t){var n=this;if(s(this,e),Object.assign(this,t),t.actions&&t.keystrokeHandler){var i=function(e){var i=t.actions[e];"string"==typeof i&&(i=[i]);var o,a=r(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;t.keystrokeHandler.set(s,(function(t,r){n[e](),r()}))}}catch(l){a.e(l)}finally{a.f()}};for(var o in t.actions)i(o)}}return u(e,[{key:"focusFirst",value:function(){this._focus(this.first)}},{key:"focusLast",value:function(){this._focus(this.last)}},{key:"focusNext",value:function(){this._focus(this.next)}},{key:"focusPrevious",value:function(){this._focus(this.previous)}},{key:"_focus",value:function(e){e&&e.focus()}},{key:"_getFocusableItem",value:function(e){var t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];var r=(t+n+e)%n;do{var i=this.focusables.get(r);if(iu(i))return i;r=(r+n+e)%n}while(r!==t);return null}},{key:"first",get:function(){return this.focusables.find(iu)||null}},{key:"last",get:function(){return this.focusables.filter(iu).slice(-1)[0]||null}},{key:"next",get:function(){return this._getFocusableItem(1)}},{key:"previous",get:function(){return this._getFocusableItem(-1)}},{key:"current",get:function(){var e=this,t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((function(n,r){var i=n.element===e.focusTracker.focusedElement;return i&&(t=r),i})),t)}}]),e}();function iu(e){return!(!e.focus||"none"==Ci.window.getComputedStyle(e.element).display)}l(25);var ou='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>',au=function(e){c(r,e);var n=d(r);function r(e){var t;return s(this,r),(t=n.call(this,e)).arrowView=t._createArrowView(),t.extendTemplate({attributes:{"aria-haspopup":!0}}),t.delegate("execute").to(f(t),"open"),t}return u(r,[{key:"render",value:function(){t(y(r.prototype),"render",this).call(this),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var e=new Xl;return e.content=ou,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}]),r}(tu);l(27);var su=function(e){c(r,e);var n=d(r);function r(e){var t;s(this,r);var i=(t=n.call(this,e)).bindTemplate;return t.set("icon"),t.set("isEnabled",!0),t.set("isOn",!1),t.set("isToggleable",!1),t.set("isVisible",!0),t.set("keystroke"),t.set("label"),t.set("tabindex",-1),t.set("tooltip"),t.set("tooltipPosition","s"),t.set("type","button"),t.set("withText",!1),t.children=t.createCollection(),t.actionView=t._createActionView(),t.arrowView=t._createArrowView(),t.keystrokes=new Oo,t.focusTracker=new Io,t.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",i.if("isVisible","ck-hidden",(function(e){return!e})),t.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:t.children}),t}return u(r,[{key:"render",value:function(){var e=this;t(y(r.prototype),"render",this).call(this),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(function(t,n){e.focusTracker.focusedElement===e.actionView.element&&(e.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(t,n){e.focusTracker.focusedElement===e.arrowView.element&&(e.actionView.focus(),n())}))}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var e=new tu;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}},{key:"_createArrowView",value:function(){var e=new tu,t=e.bindTemplate;return e.icon=ou,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",(function(e){return String(e)}))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}]),r}(Ol),lu=function(e){c(n,e);var t=d(n);function n(e){var r;s(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("isVisible",!1),r.set("position","se"),r.children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",i.to("position",(function(e){return"ck-dropdown__panel_"+e})),i.if("isVisible","ck-dropdown__panel-visible")]},children:r.children,on:{selectstart:i.to((function(e){return e.preventDefault()}))}}),r}return u(n,[{key:"focus",value:function(){this.children.length&&this.children.first.focus()}},{key:"focusLast",value:function(){if(this.children.length){var e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}]),n}(Ol);function uu(e){var t=e.element,i=e.target,o=e.positions,a=e.limiter,s=e.fitInViewport;q(i)&&(i=i()),q(a)&&(a=a());var l,u,c=function(e){return e&&e.parentNode?e.offsetParent===Ci.document.body?null:e.offsetParent:null}(t),d=new xo(t),h=new xo(i);if(a||s){var f=function(e,t){var i=t.viewportRect,o=t.elementRect.getArea(),a=function(e,t){var i,o=t.targetRect,a=t.elementRect,s=t.limiterRect,l=t.viewportRect,u=[],c=a.getArea(),d=r(e);try{for(d.s();!(i=d.n()).done;){var h=cu(i.value,o,a);if(h){var f=n(h,2),v=f[0],p=f[1],g=0,m=0;if(s)if(l){var y=s.getIntersection(l);y&&(g=y.getIntersectionArea(p))}else g=s.getIntersectionArea(p);l&&(m=l.getIntersectionArea(p));var k={positionName:v,positionRect:p,limiterIntersectArea:g,viewportIntersectArea:m};if(g===c)return[k];u.push(k)}}}catch(b){d.e(b)}finally{d.f()}return u}(e,t);if(i){var s=du(a.filter((function(e){return e.viewportIntersectArea===o})),o);if(s)return s}return du(a,o)}(o,{targetRect:h,elementRect:d,limiterRect:a&&new xo(a).getVisible(),viewportRect:s&&new xo(Ci.window)}),v=n(f||cu(o[0],h,d),2);u=v[0],l=v[1]}else{var p=n(cu(o[0],h,d),2);u=p[0],l=p[1]}var g=hu(l);return c&&(g=function(e,t){var n=e.left,r=e.top,i=hu(new xo(t)),o=wo(t);return n-=i.left,r-=i.top,n+=t.scrollLeft,r+=t.scrollTop,{left:n-=o.left,top:r-=o.top}}(g,c)),{left:g.left,top:g.top,name:u}}function cu(e,t,n){var r=e(t,n);if(!r)return null;var i=r.left,o=r.top;return[r.name,n.clone().moveTo(i,o)]}function du(e,t){var n,i,o,a=0,s=r(e);try{for(s.s();!(o=s.n()).done;){var l=o.value,u=l.positionName,c=l.positionRect,d=l.limiterIntersectArea,h=l.viewportIntersectArea;if(d===t)return[u,c];var f=Math.pow(h,2)+Math.pow(d,2);f>a&&(a=f,n=c,i=u)}}catch(v){s.e(v)}finally{s.f()}return n?[i,n]:null}function hu(e){var t=e.left,n=e.top,r=Ci.window;return{left:t+r.scrollX,top:n+r.scrollY}}l(29);var fu=function(e){c(r,e);var n=d(r);function r(e,t,i){var o;s(this,r);var a=(o=n.call(this,e)).bindTemplate;return o.buttonView=t,o.panelView=i,o.set("isOpen",!1),o.set("isEnabled",!0),o.set("class"),o.set("id"),o.set("panelPosition","auto"),o.keystrokes=new Oo,o.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",a.to("class"),a.if("isEnabled","ck-disabled",(function(e){return!e}))],id:a.to("id"),"aria-describedby":a.to("ariaDescribedById")},children:[t,i]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"]}}),o}return u(r,[{key:"render",value:function(){var e=this;t(y(r.prototype),"render",this).call(this),this.listenTo(this.buttonView,"open",(function(){e.isOpen=!e.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(){e.isOpen&&(e.panelView.position="auto"===e.panelPosition?r._getOptimalPosition({element:e.panelView.element,target:e.buttonView.element,fitInViewport:!0,positions:e._panelPositions}).name:e.panelPosition)})),this.keystrokes.listenTo(this.element);var n=function(t,n){e.isOpen&&(e.buttonView.focus(),e.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(t,n){e.buttonView.isEnabled&&!e.isOpen&&(e.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(t,n){e.isOpen&&n()})),this.keystrokes.set("arrowleft",n),this.keystrokes.set("esc",n)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var e=r.defaultPanelPositions,t=e.south,n=e.north,i=e.southEast,o=e.southWest,a=e.northEast,s=e.northWest,l=e.southMiddleEast,u=e.southMiddleWest,c=e.northMiddleEast,d=e.northMiddleWest;return"rtl"!==this.locale.uiLanguageDirection?[i,o,l,u,t,a,s,c,d,n]:[o,i,u,l,t,s,a,d,c,n]}}]),r}(Ol);fu.defaultPanelPositions={south:function(e,t){return{top:e.bottom,left:e.left-(t.width-e.width)/2,name:"s"}},southEast:function(e){return{top:e.bottom,left:e.left,name:"se"}},southWest:function(e,t){return{top:e.bottom,left:e.left-t.width+e.width,name:"sw"}},southMiddleEast:function(e,t){return{top:e.bottom,left:e.left-(t.width-e.width)/4,name:"sme"}},southMiddleWest:function(e,t){return{top:e.bottom,left:e.left-3*(t.width-e.width)/4,name:"smw"}},north:function(e,t){return{top:e.top-t.height,left:e.left-(t.width-e.width)/2,name:"n"}},northEast:function(e,t){return{top:e.top-t.height,left:e.left,name:"ne"}},northWest:function(e,t){return{top:e.top-t.height,left:e.left-t.width+e.width,name:"nw"}},northMiddleEast:function(e,t){return{top:e.top-t.height,left:e.left-(t.width-e.width)/4,name:"nme"}},northMiddleWest:function(e,t){return{top:e.top-t.height,left:e.left-3*(t.width-e.width)/4,name:"nmw"}}},fu._getOptimalPosition=uu;var vu=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}}),r}return n}(Ol),pu=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}}),r}return n}(Ol);function gu(e){return Array.isArray(e)?{items:e,removeItems:[]}:e?Object.assign({items:[],removeItems:[]},e):{items:[],removeItems:[]}}l(31);var mu=function(e){c(i,e);var n=d(i);function i(e,t){var r;s(this,i);var o=(r=n.call(this,e)).bindTemplate,a=r.t;r.options=t||{},r.set("ariaLabel",a("Editor toolbar")),r.set("maxWidth","auto"),r.items=r.createCollection(),r.focusTracker=new Io,r.keystrokes=new Oo,r.set("class"),r.set("isCompact",!1),r.itemsView=new yu(e),r.children=r.createCollection(),r.children.add(r.itemsView),r.focusables=r.createCollection();var l="rtl"===e.uiLanguageDirection;r._focusCycler=new ru({focusables:r.focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:[l?"arrowright":"arrowleft","arrowup"],focusNext:[l?"arrowleft":"arrowright","arrowdown"]}});var u,c=["ck","ck-toolbar",o.to("class"),o.if("isCompact","ck-toolbar_compact")];return r.options.shouldGroupWhenFull&&r.options.isFloating&&c.push("ck-toolbar_floating"),r.setTemplate({tag:"div",attributes:{class:c,role:"toolbar","aria-label":o.to("ariaLabel"),style:{maxWidth:o.to("maxWidth")}},children:r.children,on:{mousedown:(u=f(r),u.bindTemplate.to((function(e){e.target===u.element&&e.preventDefault()})))}}),r._behavior=r.options.shouldGroupWhenFull?new bu(f(r)):new ku(f(r)),r}return u(i,[{key:"render",value:function(){var e=this;t(y(i.prototype),"render",this).call(this);var n,o=r(this.items);try{for(o.s();!(n=o.n()).done;){var a=n.value;this.focusTracker.add(a.element)}}catch(s){o.e(s)}finally{o.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),t(y(i.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(e,t){var n=this,r=gu(e),i=r.items.filter((function(e,i,o){return"|"===e||-1===r.removeItems.indexOf(e)&&("-"===e?!n.options.shouldGroupWhenFull||(Object(C.b)("toolbarview-line-break-ignored-when-grouping-items",o),!1):!!t.has(e)||(Object(C.b)("toolbarview-item-unavailable",{name:e}),!1))})),o=this._cleanSeparators(i).map((function(e){return"|"===e?new vu:"-"===e?new pu:t.create(e)}));this.items.addMany(o)}},{key:"_cleanSeparators",value:function(e){var t=function(e){return"-"!==e&&"|"!==e},n=e.length,r=e.findIndex(t),i=n-e.slice().reverse().findIndex(t);return e.slice(r,i).filter((function(e,n,r){return!!t(e)||!(n>0&&r[n-1]===e)}))}}]),i}(Ol),yu=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:r.children}),r}return n}(Ol),ku=function(){function e(t){s(this,e);var n=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((function(e){return e})),t.focusables.bindTo(t.items).using((function(e){return e})),t.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}return u(e,[{key:"render",value:function(){}},{key:"destroy",value:function(){}}]),e}(),bu=function(){function e(t){var n=this;s(this,e),this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,t.itemsView.children.bindTo(this.ungroupedItems).using((function(e){return e})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),t.children.on("add",this._updateFocusCycleableItems.bind(this)),t.children.on("remove",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(function(e,t){var i,o=t.index,a=r(t.removed);try{for(a.s();!(i=a.n()).done;){var s=i.value;o>=n.ungroupedItems.length?n.groupedItems.remove(s):n.ungroupedItems.remove(s)}}catch(c){a.e(c)}finally{a.f()}for(var l=o;l<o+t.added.length;l++){var u=t.added[l-o];l>n.ungroupedItems.length?n.groupedItems.add(u,l-n.ungroupedItems.length):n.ungroupedItems.add(u,l)}n._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}return u(e,[{key:"render",value:function(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(this.viewElement.offsetParent){for(var e,t=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_enableGroupingOnResize",value:function(){var e,t=this;this.resizeObserver=new Eo(this.viewElement,(function(n){e&&e===n.contentRect.width&&!t.shouldUpdateGroupingOnNextResize||(t.shouldUpdateGroupingOnNextResize=!1,t._updateGrouping(),e=n.contentRect.width)})),this._updateGrouping()}},{key:"_enableGroupingOnMaxWidthChange",value:function(e){var t=this;e.on("change:maxWidth",(function(){t._updateGrouping()}))}},{key:"_groupLastItem",value:function(){this.groupedItems.length||(this.viewChildren.add(new vu),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}},{key:"_ungroupFirstItem",value:function(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}},{key:"_createGroupedItemsDropdown",value:function(){var e=this.viewLocale,t=e.t,n=xu(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",Su(n,[]),n.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}),n.toolbarView.items.bindTo(this.groupedItems).using((function(e){return e})),n}},{key:"_updateFocusCycleableItems",value:function(){var e=this;this.viewFocusables.clear(),this.ungroupedItems.map((function(t){e.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new xo(e.lastChild),r=new xo(e);if(!this.cachedPadding){var i=Ci.window.getComputedStyle(e);this.cachedPadding=Number.parseInt(i["ltr"===t?"paddingRight":"paddingLeft"])}return"ltr"===t?n.right>r.right-this.cachedPadding:n.left<r.left+this.cachedPadding}}]),e}();l(33);var _u=function(e){c(i,e);var n=d(i);function i(){var e;return s(this,i),(e=n.call(this)).items=e.createCollection(),e.focusTracker=new Io,e.keystrokes=new Oo,e._focusCycler=new ru({focusables:e.items,focusTracker:e.focusTracker,keystrokeHandler:e.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),e.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:e.items}),e}return u(i,[{key:"render",value:function(){var e=this;t(y(i.prototype),"render",this).call(this);var n,o=r(this.items);try{for(o.s();!(n=o.n()).done;){var a=n.value;this.focusTracker.add(a.element)}}catch(s){o.e(s)}finally{o.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}}]),i}(Ol),wu=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).children=r.createCollection(),r.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:r.children}),r}return u(n,[{key:"focus",value:function(){this.children.first.focus()}}]),n}(Ol),Cu=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}}),r}return n}(Ol);function xu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:au,n=new t(e),r=new lu(e),i=new fu(e,n,r);return n.bind("isEnabled").to(i),n instanceof au?n.bind("isOn").to(i,"isOpen"):n.arrowView.bind("isOn").to(i,"isOpen"),function(e){(function(e){e.on("render",(function(){Tl({emitter:e,activator:function(){return e.isOpen},callback:function(){e.isOpen=!1},contextElements:[e.element]})}))})(e),function(e){e.on("execute",(function(t){t.source instanceof nu||(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",(function(t,n){e.isOpen&&(e.panelView.focus(),n())})),e.keystrokes.set("arrowup",(function(t,n){e.isOpen&&(e.panelView.focusLast(),n())}))}(e)}(i),i}function Su(e,t){var n=e.locale,r=n.t,i=e.toolbarView=new mu(n);i.set("ariaLabel",r("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.map((function(e){return i.items.add(e)})),e.panelView.children.add(i),i.items.delegate("execute").to(e)}function Au(e,t){var n=e.locale,r=e.listView=new _u(n);r.items.bindTo(t).using((function(e){var t=e.type,r=e.model;if("separator"===t)return new Cu(n);if("button"===t||"switchbutton"===t){var o,a,s=new wu(n);return(o=a="button"===t?new tu(n):new nu(n)).bind.apply(o,i(Object.keys(r))).to(r),a.delegate("execute").to(s),s.children.add(a),s}})),e.panelView.children.add(r),r.items.delegate("execute").to(e)}l(35),l(37),l(39);var Eu=function(e){c(r,e);var n=d(r);function r(e){var t;return s(this,r),(t=n.call(this,e)).body=new Yl(e),t}return u(r,[{key:"render",value:function(){t(y(r.prototype),"render",this).call(this),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),t(y(r.prototype),"destroy",this).call(this)}}]),r}(Ol);l(41);var Tu=function(e){c(n,e);var t=d(n);function n(e){var r;s(this,n),(r=t.call(this,e)).set("text"),r.set("for"),r.id="ck-editor__label_"+_();var i=r.bindTemplate;return r.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:r.id,for:i.to("for")},children:[{text:i.to("text")}]}),r}return n}(Ol),Pu=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).top=r.createCollection(),r.main=r.createCollection(),r._voiceLabelView=r._createVoiceLabel(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":r._voiceLabelView.id},children:[r._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:r.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:r.main}]}),r}return u(n,[{key:"_createVoiceLabel",value:function(){var e=this.t,t=new Tu;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}]),n}(Eu),Ru=function(e){c(r,e);var n=d(r);function r(e,t,i){var o;return s(this,r),(o=n.call(this,e,t,i)).extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),o}return u(r,[{key:"render",value:function(){var e=this;t(y(r.prototype),"render",this).call(this);var n=this._editingView,i=this.t;n.change((function(t){var r=n.document.getRoot(e.name);t.setAttribute("aria-label",i("Rich Text Editor, %0",e.name),r)}))}}]),r}(function(e){c(r,e);var n=d(r);function r(e,t,i){var o;return s(this,r),(o=n.call(this,e)).setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),o.name=null,o.set("isFocused",!1),o._editableElement=i,o._hasExternalElement=!!o._editableElement,o._editingView=t,o}return u(r,[{key:"render",value:function(){var e=this;t(y(r.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return e._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),t(y(r.prototype),"destroy",this).call(this)}},{key:"_updateIsFocusedClasses",value:function(){var e=this._editingView;function t(t){e.change((function(n){var r=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",r),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",r)}))}e.isRenderingInProgress?function n(r){e.once("change:isRenderingInProgress",(function(e,i,o){o?n(r):t(r)}))}(this):t(this)}}]),r}(Ol));l(43),l(45);var Iu=function(e){c(r,e);var n=d(r);function r(e){var t;s(this,r),(t=n.call(this,e)).set("value"),t.set("id"),t.set("placeholder"),t.set("isReadOnly",!1),t.set("hasError",!1),t.set("ariaDescribedById"),t.focusTracker=new Io,t.bind("isFocused").to(t.focusTracker),t.set("isEmpty",!0);var i=t.bindTemplate;return t.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",i.if("isFocused","ck-input_focused"),i.if("isEmpty","ck-input-text_empty"),i.if("hasError","ck-error")],id:i.to("id"),placeholder:i.to("placeholder"),readonly:i.to("isReadOnly"),"aria-invalid":i.if("hasError",!0),"aria-describedby":i.to("ariaDescribedById")},on:{input:i.to("input"),change:i.to(t._updateIsEmpty.bind(f(t)))}}),t}return u(r,[{key:"render",value:function(){var e=this;t(y(r.prototype),"render",this).call(this),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(function(t,n,r){e._setDomElementValue(r),e._updateIsEmpty()}))}},{key:"select",value:function(){this.element.select()}},{key:"focus",value:function(){this.element.focus()}},{key:"_updateIsEmpty",value:function(){this.isEmpty=!this.element.value}},{key:"_setDomElementValue",value:function(e){this.element.value=e||0===e?e:""}}]),r}(Ol);l(47);var Ou=function(e){c(n,e);var t=d(n);function n(e,r){var i;s(this,n),i=t.call(this,e);var o="ck-labeled-field-view-"+_(),a="ck-labeled-field-view-status-"+_();i.fieldView=r(f(i),o,a),i.set("label"),i.set("isEnabled",!0),i.set("isEmpty",!0),i.set("isFocused",!1),i.set("errorText",null),i.set("infoText",null),i.set("class"),i.set("placeholder"),i.labelView=i._createLabelView(o),i.statusView=i._createStatusView(a),i.bind("_statusText").to(f(i),"errorText",f(i),"infoText",(function(e,t){return e||t}));var l=i.bindTemplate;return i.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",l.to("class"),l.if("isEnabled","ck-disabled",(function(e){return!e})),l.if("isEmpty","ck-labeled-field-view_empty"),l.if("isFocused","ck-labeled-field-view_focused"),l.if("placeholder","ck-labeled-field-view_placeholder"),l.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:[i.fieldView,i.labelView]},i.statusView]}),i}return u(n,[{key:"_createLabelView",value:function(e){var t=new Tu(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}},{key:"_createStatusView",value:function(e){var t=new Ol(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(function(e){return!e}))],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}},{key:"focus",value:function(){this.fieldView.focus()}}]),n}(Ol);function Mu(e,t,n){var r=new Iu(e.locale);return r.set({id:t,ariaDescribedById:n}),r.bind("isReadOnly").to(e,"isEnabled",(function(e){return!e})),r.bind("hasError").to(e,"errorText",(function(e){return!!e})),r.on("input",(function(){e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(r),r}var Nu=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){this.on("show:warning",(function(e,t){window.alert(t.message)}),{priority:"lowest"})}},{key:"showSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}},{key:"showInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}},{key:"showWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}},{key:"_showNotification",value:function(e){this.fire("show:"+e.type+(e.namespace?":"+e.namespace:""),{message:e.message,type:e.type,title:e.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}]),n}(_n),Lu=function e(t,n){s(this,e),n&&Ne(this,n),t&&this.set(t)};Ke(Lu,Be),l(49);var Du=Po("px"),ju=Ci.document.body,Fu=function(e){c(n,e);var t=d(n);function n(e){var r;s(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("top",0),r.set("left",0),r.set("position","arrow_nw"),r.set("isVisible",!1),r.set("withArrow",!0),r.set("class"),r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",i.to("position",(function(e){return"ck-balloon-panel_"+e})),i.if("isVisible","ck-balloon-panel_visible"),i.if("withArrow","ck-balloon-panel_with-arrow"),i.to("class")],style:{top:i.to("top",Du),left:i.to("left",Du)}},children:r.content}),r}return u(n,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(e){this.show();var t=n.defaultPositions,r=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast],limiter:ju,fitInViewport:!0},e),i=n._getOptimalPosition(r),o=parseInt(i.left),a=parseInt(i.top);Object.assign(this,{top:a,left:o,position:i.name})}},{key:"pin",value:function(e){var t=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){t.isVisible?t._startPinning(e):t._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(e){var t=this;this.attachTo(e);var n=Vu(e.target),r=e.limiter?Vu(e.limiter):ju;this.listenTo(Ci.document,"scroll",(function(i,o){var a=o.target,s=n&&a.contains(n),l=r&&a.contains(r);!s&&!l&&n&&r||t.attachTo(e)}),{useCapture:!0}),this.listenTo(Ci.window,"resize",(function(){t.attachTo(e)}))}},{key:"_stopPinning",value:function(){this.stopListening(Ci.document,"scroll"),this.stopListening(Ci.window,"resize")}}]),n}(Ol);function Vu(e){return un(e)?e:_o(e)?e.commonAncestorContainer:"function"==typeof e?Vu(e()):null}function zu(e,t){return e.top-t.height-Fu.arrowVerticalOffset}function Bu(e){return e.bottom+Fu.arrowVerticalOffset}Fu.arrowHorizontalOffset=25,Fu.arrowVerticalOffset=10,Fu._getOptimalPosition=uu,Fu.defaultPositions={northWestArrowSouthWest:function(e,t){return{top:zu(e,t),left:e.left-Fu.arrowHorizontalOffset,name:"arrow_sw"}},northWestArrowSouthMiddleWest:function(e,t){return{top:zu(e,t),left:e.left-.25*t.width-Fu.arrowHorizontalOffset,name:"arrow_smw"}},northWestArrowSouth:function(e,t){return{top:zu(e,t),left:e.left-t.width/2,name:"arrow_s"}},northWestArrowSouthMiddleEast:function(e,t){return{top:zu(e,t),left:e.left-.75*t.width+Fu.arrowHorizontalOffset,name:"arrow_sme"}},northWestArrowSouthEast:function(e,t){return{top:zu(e,t),left:e.left-t.width+Fu.arrowHorizontalOffset,name:"arrow_se"}},northArrowSouthWest:function(e,t){return{top:zu(e,t),left:e.left+e.width/2-Fu.arrowHorizontalOffset,name:"arrow_sw"}},northArrowSouthMiddleWest:function(e,t){return{top:zu(e,t),left:e.left+e.width/2-.25*t.width-Fu.arrowHorizontalOffset,name:"arrow_smw"}},northArrowSouth:function(e,t){return{top:zu(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"}},northArrowSouthMiddleEast:function(e,t){return{top:zu(e,t),left:e.left+e.width/2-.75*t.width+Fu.arrowHorizontalOffset,name:"arrow_sme"}},northArrowSouthEast:function(e,t){return{top:zu(e,t),left:e.left+e.width/2-t.width+Fu.arrowHorizontalOffset,name:"arrow_se"}},northEastArrowSouthWest:function(e,t){return{top:zu(e,t),left:e.right-Fu.arrowHorizontalOffset,name:"arrow_sw"}},northEastArrowSouthMiddleWest:function(e,t){return{top:zu(e,t),left:e.right-.25*t.width-Fu.arrowHorizontalOffset,name:"arrow_smw"}},northEastArrowSouth:function(e,t){return{top:zu(e,t),left:e.right-t.width/2,name:"arrow_s"}},northEastArrowSouthMiddleEast:function(e,t){return{top:zu(e,t),left:e.right-.75*t.width+Fu.arrowHorizontalOffset,name:"arrow_sme"}},northEastArrowSouthEast:function(e,t){return{top:zu(e,t),left:e.right-t.width+Fu.arrowHorizontalOffset,name:"arrow_se"}},southWestArrowNorthWest:function(e,t){return{top:Bu(e),left:e.left-Fu.arrowHorizontalOffset,name:"arrow_nw"}},southWestArrowNorthMiddleWest:function(e,t){return{top:Bu(e),left:e.left-.25*t.width-Fu.arrowHorizontalOffset,name:"arrow_nmw"}},southWestArrowNorth:function(e,t){return{top:Bu(e),left:e.left-t.width/2,name:"arrow_n"}},southWestArrowNorthMiddleEast:function(e,t){return{top:Bu(e),left:e.left-.75*t.width+Fu.arrowHorizontalOffset,name:"arrow_nme"}},southWestArrowNorthEast:function(e,t){return{top:Bu(e),left:e.left-t.width+Fu.arrowHorizontalOffset,name:"arrow_ne"}},southArrowNorthWest:function(e,t){return{top:Bu(e),left:e.left+e.width/2-Fu.arrowHorizontalOffset,name:"arrow_nw"}},southArrowNorthMiddleWest:function(e,t){return{top:Bu(e),left:e.left+e.width/2-.25*t.width-Fu.arrowHorizontalOffset,name:"arrow_nmw"}},southArrowNorth:function(e,t){return{top:Bu(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"}},southArrowNorthMiddleEast:function(e,t){return{top:Bu(e),left:e.left+e.width/2-.75*t.width+Fu.arrowHorizontalOffset,name:"arrow_nme"}},southArrowNorthEast:function(e,t){return{top:Bu(e),left:e.left+e.width/2-t.width+Fu.arrowHorizontalOffset,name:"arrow_ne"}},southEastArrowNorthWest:function(e,t){return{top:Bu(e),left:e.right-Fu.arrowHorizontalOffset,name:"arrow_nw"}},southEastArrowNorthMiddleWest:function(e,t){return{top:Bu(e),left:e.right-.25*t.width-Fu.arrowHorizontalOffset,name:"arrow_nmw"}},southEastArrowNorth:function(e,t){return{top:Bu(e),left:e.right-t.width/2,name:"arrow_n"}},southEastArrowNorthMiddleEast:function(e,t){return{top:Bu(e),left:e.right-.75*t.width+Fu.arrowHorizontalOffset,name:"arrow_nme"}},southEastArrowNorthEast:function(e,t){return{top:Bu(e),left:e.right-t.width+Fu.arrowHorizontalOffset,name:"arrow_ne"}}},l(51),l(53);var Hu=Po("px"),Uu=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).positionLimiter=function(){var e=r.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},r.set("visibleView",null),r.view=new Fu(e.locale),e.ui.view.body.add(r.view),e.ui.focusTracker.add(r.view.element),r._viewToStack=new Map,r._idToStack=new Map,r.set("_numberOfStacks",0),r.set("_singleViewMode",!1),r._rotatorView=r._createRotatorView(),r._fakePanelsView=r._createFakePanelsView(),r}return u(n,null,[{key:"pluginName",get:function(){return"ContextualBalloon"}}]),u(n,[{key:"hasView",value:function(e){return Array.from(this._viewToStack.keys()).includes(e)}},{key:"add",value:function(e){if(this.hasView(e.view))throw new C.a("contextualballoon-add-view-exist",[this,e]);var t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));var n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}},{key:"remove",value:function(e){if(!this.hasView(e))throw new C.a("contextualballoon-remove-view-not-exist",[this,e]);var t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}},{key:"updatePosition",value:function(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(e){this.visibleStack=e;var t=this._idToStack.get(e);if(!t)throw new C.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}},{key:"_getStackId",value:function(e){return Array.from(this._idToStack.entries()).find((function(t){return t[1]===e}))[0]}},{key:"_showNextStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}},{key:"_showPrevStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}},{key:"_createRotatorView",value:function(){var e=this,t=new qu(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>1})),t.on("change:isNavigationVisible",(function(){return e.updatePosition()}),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(t,r){if(r<2)return"";var i=Array.from(e._idToStack.values()).indexOf(e._visibleStack)+1;return n("%0 of %1",[i,r])})),t.buttonNextView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showNextStack()})),t.buttonPrevView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showPrevStack()})),t}},{key:"_createFakePanelsView",value:function(){var e=new Wu(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>=2?Math.min(e-1,2):0})),e.listenTo(this.view,"change:top",(function(){return e.updatePosition()})),e.listenTo(this.view,"change:left",(function(){return e.updatePosition()})),this.editor.ui.view.body.add(e),e}},{key:"_showView",value:function(e){var t=e.view,n=e.balloonClassName,r=void 0===n?"":n,i=e.withArrow,o=void 0===i||i,a=e.singleViewMode,s=void 0!==a&&a;this.view.class=r,this.view.withArrow=o,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){var e=Array.from(this._visibleStack.values()).pop().position;return e&&!e.limiter&&(e=Object.assign({},e,{limiter:this.positionLimiter})),e}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}}]),n}(Ge),qu=function(e){c(r,e);var n=d(r);function r(e){var t;s(this,r),t=n.call(this,e);var i=e.t,o=t.bindTemplate;return t.set("isNavigationVisible",!0),t.focusTracker=new Io,t.buttonPrevView=t._createButtonView(i("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),t.buttonNextView=t._createButtonView(i("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),t.content=t.createCollection(),t.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",(function(e){return e?"":"ck-hidden"}))]},children:[t.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},t.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:t.content}]}),t}return u(r,[{key:"render",value:function(){t(y(r.prototype),"render",this).call(this),this.focusTracker.add(this.element)}},{key:"showView",value:function(e){this.hideView(),this.content.add(e)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(e,t){var n=new tu(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}]),r}(Ol),Wu=function(e){c(n,e);var t=d(n);function n(e,r){var i;s(this,n);var o=(i=t.call(this,e)).bindTemplate;return i.set("top",0),i.set("left",0),i.set("height",0),i.set("width",0),i.set("numberOfPanels",0),i.content=i.createCollection(),i._balloonPanelView=r,i.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(function(e){return e?"":"ck-hidden"}))],style:{top:o.to("top",Hu),left:o.to("left",Hu),width:o.to("width",Hu),height:o.to("height",Hu)}},children:i.content}),i.on("change:numberOfPanels",(function(e,t,n,r){n>r?i._addPanels(n-r):i._removePanels(r-n),i.updatePosition()})),i}return u(n,[{key:"_addPanels",value:function(e){for(;e--;){var t=new Ol;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}},{key:"_removePanels",value:function(e){for(;e--;){var t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var e=this._balloonPanelView,t=e.top,n=e.left,r=new xo(this._balloonPanelView.element),i=r.width,o=r.height;Object.assign(this,{top:t,left:n,width:i,height:o})}}}]),n}(Ol);l(55);var $u=Po("px"),Ku=function(e){c(r,e);var n=d(r);function r(e){var t;s(this,r);var i=(t=n.call(this,e)).bindTemplate;return t.set("isActive",!1),t.set("isSticky",!1),t.set("limiterElement",null),t.set("limiterBottomOffset",50),t.set("viewportTopOffset",0),t.set("_marginLeft",null),t.set("_isStickyToTheLimiter",!1),t.set("_hasViewportTopOffset",!1),t.content=t.createCollection(),t._contentPanelPlaceholder=new Ml({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:i.to("isSticky",(function(e){return e?"block":"none"})),height:i.to("isSticky",(function(e){return e?$u(t._panelRect.height):null}))}}}).render(),t._contentPanel=new Ml({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",i.if("isSticky","ck-sticky-panel__content_sticky"),i.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:i.to("isSticky",(function(e){return e?$u(t._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:i.to("_hasViewportTopOffset",(function(e){return e?$u(t.viewportTopOffset):null})),bottom:i.to("_isStickyToTheLimiter",(function(e){return e?$u(t.limiterBottomOffset):null})),marginLeft:i.to("_marginLeft")}},children:t.content}).render(),t.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[t._contentPanelPlaceholder,t._contentPanel]}),t}return u(r,[{key:"render",value:function(){var e=this;t(y(r.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(Ci.window,"scroll",(function(){e._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){e._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var e,t=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<e.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=e.bottom<t.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:$u(-Ci.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}]),r}(Ol);Po("px"),l(57),Po("px"),Po("px"),l(59);var Gu=new WeakMap;function Ju(e,t){var i,o=Gu.get(e),a=[],s=!1,l=r(o);try{for(l.s();!(i=l.n()).done;){var u=n(i.value,2),c=u[0],d=u[1];d.isDirectHost&&(a.push(c),Qu(t,c,d)&&(s=!0))}}catch(y){l.e(y)}finally{l.f()}var h,f=r(o);try{for(f.s();!(h=f.n()).done;){var v=n(h.value,2),p=v[0],g=v[1];if(!g.isDirectHost){var m=Zu(p);m&&(a.includes(m)||(g.hostElement=m,Qu(t,p,g)&&(s=!0)))}}}catch(y){f.e(y)}finally{f.f()}return s}function Qu(e,t,n){var r=n.text,i=n.isDirectHost,o=n.hostElement,a=!1;return o.getAttribute("data-placeholder")!==r&&(e.setAttribute("data-placeholder",r,o),a=!0),(i||1==t.childCount)&&function(e,t){if(!e.isAttached())return!1;if(Array.from(e.getChildren()).some((function(e){return!e.is("uiElement")})))return!1;if(t)return!0;var n=e.document;if(!n.isFocused)return!0;var r=n.selection.anchor;return r&&r.parent!==e}(o,n.keepOnFocus)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,o)&&(a=!0):function(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}(e,o)&&(a=!0),a}function Zu(e){if(e.childCount){var t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}var Yu=new Map;function Xu(e,t,n){var r=Yu.get(e);r||(r=new Map,Yu.set(e,r)),r.set(t,n)}function ec(e){return[e]}function tc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e,t){var n=Yu.get(e);return n&&n.has(t)?n.get(t):ec}(e.constructor,t.constructor);try{return r(e=e.clone(),t,n)}catch(e){throw e}}function nc(e,t,n){e=e.slice(),t=t.slice();var o=new rc(n.document,n.useRelations,n.forceWeakRemove);o.setOriginalOperations(e),o.setOriginalOperations(t);var a=o.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:a};var s,l=new WeakMap,u=r(e);try{for(u.s();!(s=u.n()).done;){var c=s.value;l.set(c,0)}}catch(S){u.e(S)}finally{u.f()}for(var d={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length},h=0;h<e.length;){var f,v,p=e[h],g=l.get(p);if(g!=t.length){var m=t[g],y=tc(p,m,o.getContext(p,m,!0)),k=tc(m,p,o.getContext(m,p,!1));o.updateRelation(p,m),o.setOriginalOperations(y,p),o.setOriginalOperations(k,m);var b,_=r(y);try{for(_.s();!(b=_.n()).done;){var w=b.value;l.set(w,g+k.length)}}catch(S){_.e(S)}finally{_.f()}(f=e).splice.apply(f,[h,1].concat(i(y))),(v=t).splice.apply(v,[g,1].concat(i(k)))}else h++}if(n.padWithNoOps){var C=e.length-d.originalOperationsACount,x=t.length-d.originalOperationsBCount;oc(e,x-C),oc(t,C-x)}return ic(e,d.nextBaseVersionB),ic(t,d.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:a}}var rc=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,e),this.originalOperations=new Map,this._history=t.history,this._useRelations=n,this._forceWeakRemove=!!r,this._relations=new Map}return u(e,[{key:"setOriginalOperations",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=n?this.originalOperations.get(n):null,o=r(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;this.originalOperations.set(a,i||a)}}catch(s){o.e(s)}finally{o.f()}}},{key:"updateRelation",value:function(e,t){switch(e.constructor){case Ss:switch(t.constructor){case Rs:e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter");break;case Ss:e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter")}break;case Is:switch(t.constructor){case Rs:e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");break;case Ss:if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{var n=na._createFromPositionAndShift(t.sourcePosition,t.howMany);e.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.splitPosition)&&this._setRelation(e,t,{howMany:n.end.offset-e.splitPosition.offset,offset:e.splitPosition.offset-n.start.offset})}}break;case Rs:switch(t.constructor){case Rs:e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement");break;case Is:e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource")}break;case Es:var r=e.newRange;if(!r)return;switch(t.constructor){case Ss:var i=na._createFromPositionAndShift(t.sourcePosition,t.howMany),o=i.containsPosition(r.start)||i.start.isEqual(r.start),a=i.containsPosition(r.end)||i.end.isEqual(r.end);!o&&!a||i.containsRange(r)||this._setRelation(e,t,{side:o?"left":"right",path:o?r.start.path.slice():r.end.path.slice()});break;case Rs:var s=r.start.isEqual(t.targetPosition),l=r.start.isEqual(t.deletionPosition),u=r.end.isEqual(t.deletionPosition),c=r.end.isEqual(t.sourcePosition);(s||l||u||c)&&this._setRelation(e,t,{wasInLeftElement:s,wasStartBeforeMergedElement:l,wasEndBeforeMergedElement:u,wasInRightElement:c})}}}},{key:"getContext",value:function(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}},{key:"_wasUndone",value:function(e){var t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}},{key:"_getRelation",value:function(e,t){var n=this.originalOperations.get(t),r=this._history.getUndoneOperation(n);if(!r)return null;var i=this.originalOperations.get(e),o=this._relations.get(i);return o&&o.get(r)||null}},{key:"_setRelation",value:function(e,t,n){var r=this.originalOperations.get(e),i=this.originalOperations.get(t),o=this._relations.get(r);o||(o=new Map,this._relations.set(r,o)),o.set(i,n)}}]),e}();function ic(e,t){var n,i=r(e);try{for(i.s();!(n=i.n()).done;){n.value.baseVersion=t++}}catch(o){i.e(o)}finally{i.f()}}function oc(e,t){for(var n=0;n<t;n++)e.push(new Qs(0))}function ac(e,t,n){var r=e.nodes.getNode(0).getAttribute(t);if(r==n)return null;var i=new na(e.position,e.position.getShiftedBy(e.howMany));return new Cs(i,t,r,n,0)}function sc(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function lc(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=new Ss(i.start,i.end.offset-i.start.offset,t,0);n.push(o);for(var a=r+1;a<e.length;a++)e[a]=e[a]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];t=t._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return n}Xu(Cs,Cs,(function(e,t,n){if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){var r=e.range.getDifference(t.range).map((function(t){return new Cs(t,e.key,e.oldValue,e.newValue,0)})),i=e.range.getIntersection(t.range);return i&&n.aIsStrong&&r.push(new Cs(i,t.key,t.newValue,e.newValue,0)),0==r.length?[new Qs(0)]:r}return[e]})),Xu(Cs,As,(function(e,t){if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){var n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((function(t){return new Cs(t,e.key,e.oldValue,e.newValue,e.baseVersion)}));if(t.shouldReceiveAttributes){var r=ac(t,e.key,e.oldValue);r&&n.unshift(r)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),Xu(Cs,Rs,(function(e,t){var n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(na._createFromPositionAndShift(t.graveyardPosition,1));var r=e.range._getTransformedByMergeOperation(t);return r.isCollapsed||n.push(r),n.map((function(t){return new Cs(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),Xu(Cs,Ss,(function(e,t){return function(e,t){var n=na._createFromPositionAndShift(t.sourcePosition,t.howMany),o=null,a=[];n.containsRange(e,!0)?o=e:e.start.hasSameParentAs(n.start)?(a=e.getDifference(n),o=e.getIntersection(n)):a=[e];var s,l=[],u=r(a);try{for(u.s();!(s=u.n()).done;){var c=s.value;c=c._getTransformedByDeletion(t.sourcePosition,t.howMany);var d=t.getMovedRangeStart(),h=c.start.hasSameParentAs(d);c=c._getTransformedByInsertion(d,t.howMany,h),l.push.apply(l,i(c))}}catch(f){u.e(f)}finally{u.f()}return o&&l.push(o._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),l}(e.range,t).map((function(t){return new Cs(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),Xu(Cs,Is,(function(e,t){if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){var n=e.clone();return n.range=new na(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),Xu(As,Cs,(function(e,t){var n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){var r=ac(e,t.key,t.newValue);r&&n.push(r)}return n})),Xu(As,As,(function(e,t,n){return e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]})),Xu(As,Ss,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),Xu(As,Is,(function(e,t){return e.position=e.position._getTransformedBySplitOperation(t),[e]})),Xu(As,Rs,(function(e,t){return e.position=e.position._getTransformedByMergeOperation(t),[e]})),Xu(Es,As,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]})),Xu(Es,Es,(function(e,t,n){if(e.name==t.name){if(!n.aIsStrong)return[new Qs(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),Xu(Es,Rs,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]})),Xu(Es,Ss,(function(e,t,n){if(e.oldRange&&(e.oldRange=na._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(n.abRelation){var r=na._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.start.path=n.abRelation.path,e.newRange.end=r.end,[e];if("right"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=r.start,e.newRange.end.path=n.abRelation.path,[e]}e.newRange=na._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),Xu(Es,Is,(function(e,t,n){if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(n.abRelation){var r=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?e.newRange.start=Yo._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!n.abRelation.wasInLeftElement&&(e.newRange.start=Yo._createAt(t.moveTargetPosition)),e.newRange.end=e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasInRightElement?Yo._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?Yo._createAt(t.insertionPosition):r.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),Xu(Rs,As,(function(e,t){return e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]})),Xu(Rs,Rs,(function(e,t,n){if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(n.bWasUndone){var r=t.graveyardPosition.path.slice();return r.push(0),e.sourcePosition=new Yo(t.graveyardPosition.root,r),e.howMany=0,[e]}return[new Qs(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){var i="$graveyard"==e.targetPosition.root.rootName,o="$graveyard"==t.targetPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){var a=t.targetPosition._getTransformedByMergeOperation(t),s=e.targetPosition._getTransformedByMergeOperation(t);return[new Ss(a,e.howMany,s,0)]}return[new Qs(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&n.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),Xu(Rs,Ss,(function(e,t,n){var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!n.bWasUndone&&!n.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.sourcePosition)?[new Qs(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),Xu(Rs,Is,(function(e,t,n){if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){var r=0!=t.howMany,i=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(r||i||"mergeTargetNotMoved"==n.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==n.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),Xu(Ss,As,(function(e,t){var n=na._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),Xu(Ss,Ss,(function(e,t,n){var o,a=na._createFromPositionAndShift(e.sourcePosition,e.howMany),s=na._createFromPositionAndShift(t.sourcePosition,t.howMany),l=n.aIsStrong,u=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?u=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(u=!1),o=e.targetPosition.isEqual(t.targetPosition)&&u?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),sc(e,t)&&sc(t,e))return[t.getReversed()];if(a.containsPosition(t.targetPosition)&&a.containsRange(s,!0))return a.start=a.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),a.end=a.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),lc([a],o);if(s.containsPosition(e.targetPosition)&&s.containsRange(a,!0))return a.start=a.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),a.end=a.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),lc([a],o);var c=wn(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==c||"extension"==c)return a.start=a.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),a.end=a.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),lc([a],o);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(l=!1):l=!0;var d,h=[],f=r(a.getDifference(s));try{for(f.s();!(d=f.n()).done;){var v=d.value;v.start=v.start._getTransformedByDeletion(t.sourcePosition,t.howMany),v.end=v.end._getTransformedByDeletion(t.sourcePosition,t.howMany);var p="same"==wn(v.start.getParentPath(),t.getMovedRangeStart().getParentPath()),g=v._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,p);h.push.apply(h,i(g))}}catch(y){f.e(y)}finally{f.f()}var m=a.getIntersection(s);return null!==m&&l&&(m.start=m.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),m.end=m.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===h.length?h.push(m):1==h.length?s.start.isBefore(a.start)||s.start.isEqual(a.start)?h.unshift(m):h.push(m):h.splice(1,0,m)),0===h.length?[new Qs(e.baseVersion)]:lc(h,o)})),Xu(Ss,Is,(function(e,t,n){var r=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(r=e.targetPosition._getTransformedBySplitOperation(t));var i=na._createFromPositionAndShift(e.sourcePosition,e.howMany);if(i.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=r,[e];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){var o=new na(t.splitPosition,i.end);return o=o._getTransformedBySplitOperation(t),lc([new na(i.start,t.splitPosition),o],r)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(r=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(r=e.targetPosition);var a=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){var s=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!n.aWasUndone&&a.push(na._createFromPositionAndShift(t.insertionPosition,1))}return lc(a,r)})),Xu(Ss,Rs,(function(e,t,n){var r=na._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Qs(0)]}else if(!n.aWasUndone){var i=[],o=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(i.push(new Ss(e.sourcePosition,e.howMany-1,e.targetPosition,0)),o=o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),a=a._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));var s=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),l=new Ss(o,1,s,0),u=l.getMovedRangeStart().path.slice();u.push(0);var c=new Yo(l.targetPosition.root,u);a=a._getTransformedByMove(o,s,1);var d=new Ss(a,t.howMany,c,0);return i.push(l),i.push(d),i}var h=na._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=h.start,e.howMany=h.end.offset-h.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),Xu(Ts,As,(function(e,t){return e.position=e.position._getTransformedByInsertOperation(t),[e]})),Xu(Ts,Rs,(function(e,t){return e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])})),Xu(Ts,Ss,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),Xu(Ts,Ts,(function(e,t,n){if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new Qs(0)];e.oldName=t.newName}return[e]})),Xu(Ts,Is,(function(e,t){if("same"==wn(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){var n=new Ts(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,n]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),Xu(Ps,Ps,(function(e,t,n){if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new Qs(0)];e.oldValue=t.newValue}return[e]})),Xu(Is,As,(function(e,t){return e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=e.insertionPosition._getTransformedByInsertOperation(t),[e]})),Xu(Is,Rs,(function(e,t,n){if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){var r=t.graveyardPosition.path.slice();r.push(0);var i=new Yo(t.graveyardPosition.root,r),o=Is.getInsertionPosition(new Yo(t.graveyardPosition.root,r)),a=new Is(i,0,o,null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Is.getInsertionPosition(e.splitPosition),e.graveyardPosition=a.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[a,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Is.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),Xu(Is,Ss,(function(e,t,n){var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){var i=r.start.isEqual(e.graveyardPosition)||r.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&i){var o=e.splitPosition._getTransformedByMoveOperation(t),a=e.graveyardPosition._getTransformedByMoveOperation(t),s=a.path.slice();s.push(0);var l=new Yo(a.root,s);return[new Ss(o,e.howMany,l,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}var u=e.splitPosition.isEqual(t.targetPosition);if(u&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Is.getInsertionPosition(e.splitPosition),[e];if(u&&n.abRelation&&n.abRelation.howMany){var c=n.abRelation,d=c.howMany,h=c.offset;return e.howMany+=d,e.splitPosition=e.splitPosition.getShiftedBy(h),[e]}return e.splitPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.splitPosition)?(e.howMany-=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Is.getInsertionPosition(e.splitPosition),[e]):(t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.insertionPosition=e.graveyardPosition?e.insertionPosition._getTransformedByMoveOperation(t):Is.getInsertionPosition(e.splitPosition),[e])})),Xu(Is,Is,(function(e,t,n){if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Qs(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Qs(0)];if("splitBefore"==n.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){var r="$graveyard"==e.splitPosition.root.rootName,i="$graveyard"==t.splitPosition.root.rootName;if(i&&!r||!(r&&!i)&&n.aIsStrong){var o=[];return t.howMany&&o.push(new Ss(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&o.push(new Ss(e.splitPosition,e.howMany,e.moveTargetPosition,0)),o}return[new Qs(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.baRelation){var a=t.insertionPosition.path.slice();a.push(0);var s=new Yo(t.insertionPosition.root,a);return[e,new Ss(e.insertionPosition,1,s,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Is.getInsertionPosition(e.splitPosition),[e]}));var uc=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).domEventType="click",r}return u(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(Xi),cc=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).domEventType=["mousedown","mouseup","mouseover","mouseout"],r}return u(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(Xi),dc=function(){function e(t){s(this,e),this.document=t}return u(e,[{key:"createDocumentFragment",value:function(e){return new $r(this.document,e)}},{key:"createElement",value:function(e,t,n){return new Xn(this.document,e,t,n)}},{key:"createText",value:function(e){return new Sn(this.document,e)}},{key:"clone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e._clone(t)}},{key:"appendChild",value:function(e,t){return t._appendChild(e)}},{key:"insertChild",value:function(e,t,n){return n._insertChild(e,t)}},{key:"removeChildren",value:function(e,t,n){return n._removeChildren(e,t)}},{key:"remove",value:function(e){var t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}},{key:"replace",value:function(e,t){var n=e.parent;if(n){var r=n.getChildIndex(e);return this.removeChildren(r,1,n),this.insertChild(r,t,n),!0}return!1}},{key:"unwrapElement",value:function(e){var t=e.parent;if(t){var n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}},{key:"rename",value:function(e,t){var n=new Xn(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){it(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"createPositionAt",value:function(e,t){return sr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return sr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return sr._createBefore(e)}},{key:"createRange",value:function(e,t){return new lr(e,t)}},{key:"createRangeOn",value:function(e){return lr._createOn(e)}},{key:"createRangeIn",value:function(e){return lr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new dr(e,t,n)}}]),e}();new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple","currentcolor","transparent"]);var hc=function(e){c(r,e);var n=d(r);function r(e,t){var i;return s(this,r),(i=n.call(this,e)).view=t,i._toolbarConfig=gu(e.config.get("toolbar")),i._elementReplacer=new yo,i}return u(r,[{key:"init",value:function(e){var t=this.view,n=this.editor.editing.view,r=t.editable,i=n.document.getRoot();r.name=i.rootName,t.render();var o=r.element;this.setEditableElement(r.name,o),this.focusTracker.add(o),t.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(o),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}},{key:"destroy",value:function(){var e=this.view,n=this.editor.editing.view;this._elementReplacer.restore(),n.detachDomRoot(e.editable.name),e.destroy(),t(y(r.prototype),"destroy",this).call(this)}},{key:"_initToolbar",value:function(){var e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,this._toolbarConfig.viewportTopOffset&&(t.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),function(e){var t=e.origin,n=e.originKeystrokeHandler,r=e.originFocusTracker,i=e.toolbar,o=e.beforeFocus,a=e.afterBlur;r.add(i.element),n.set("Alt+F10",(function(e,t){r.isFocused&&!i.focusTracker.isFocused&&(o&&o(),i.focus(),t())})),i.keystrokes.set("Esc",(function(e,n){i.focusTracker.isFocused&&(t.focus(),a&&a(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}},{key:"_initPlaceholder",value:function(){var e=this.editor,t=e.editing.view,n=t.document.getRoot(),r=e.sourceElement,i=e.config.get("placeholder")||r&&"textarea"===r.tagName.toLowerCase()&&r.getAttribute("placeholder");i&&function(e){var t=e.view,n=e.element,r=e.text,i=e.isDirectHost,o=void 0===i||i,a=e.keepOnFocus,s=void 0!==a&&a,l=t.document;Gu.has(l)||(Gu.set(l,new Map),l.registerPostFixer((function(e){return Ju(l,e)}))),Gu.get(l).set(n,{text:r,isDirectHost:o,keepOnFocus:s,hostElement:o?n:null}),t.change((function(e){return Ju(l,e)}))}({view:t,element:n,text:i,isDirectHost:!1,keepOnFocus:!0})}},{key:"element",get:function(){return this.view.element}}]),r}(yl);l(61);var fc=function(e){c(r,e);var n=d(r);function r(e,t){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return s(this,r),(i=n.call(this,e)).stickyPanel=new Ku(e),i.toolbar=new mu(e,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),i.editable=new Ru(e,t),i}return u(r,[{key:"render",value:function(){t(y(r.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}]),r}(Pu),vc=function(e){c(r,e);var n=d(r);function r(e,t){var i;s(this,r),i=n.call(this,t),un(e)&&(i.sourceElement=e),i.model.document.createRoot();var o=!i.config.get("toolbar.shouldNotGroupWhenFull"),a=new fc(i.locale,i.editing.view,{shouldToolbarGroupWhenFull:o});return i.ui=new hc(f(i),a),function(e){if(!q(e.updateSourceElement))throw new C.a("attachtoform-missing-elementapi-interface",e);var t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){var n,r=t.form,i=function(){return e.updateSourceElement()};q(r.submit)&&(n=r.submit,r.submit=function(){i(),n.apply(r)}),r.addEventListener("submit",i),e.on("destroy",(function(){r.removeEventListener("submit",i),n&&(r.submit=n)}))}}(f(i)),i}return u(r,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),t(y(r.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r){var i=new t(e,n);r(i.initPlugins().then((function(){return i.ui.init(un(e)?e:null)})).then((function(){if(!un(e)&&n.initialData)throw new C.a("editor-create-initial-data",null);var t=void 0!==n.initialData?n.initialData:function(e){return un(e)?(t=e)instanceof HTMLTextAreaElement?t.value:t.innerHTML:e;var t}(e);return i.data.init(t)})).then((function(){return i.fire("ready")})).then((function(){return i})))}))}}]),r}(pl);Ke(vc,{setData:function(e){this.data.set(e)},getData:function(e){return this.data.get(e)}}),Ke(vc,kl);var pc=function(){function e(t){s(this,e),this.files=function(e){var t=e.files?Array.from(e.files):[],n=e.items?Array.from(e.items):[];return t.length?t:n.filter((function(e){return"file"===e.kind})).map((function(e){return e.getAsFile()}))}(t),this._native=t}return u(e,[{key:"getData",value:function(e){return this._native.getData(e)}},{key:"setData",value:function(e,t){this._native.setData(e,t)}},{key:"types",get:function(){return this._native.types}},{key:"effectAllowed",set:function(e){this._native.effectAllowed=e},get:function(){return this._native.effectAllowed}},{key:"dropEffect",set:function(e){this._native.dropEffect=e},get:function(){return this._native.dropEffect}},{key:"isCanceled",get:function(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}]),e}(),gc=function(e){c(n,e);var t=d(n);function n(e){var r;s(this,n);var i=(r=t.call(this,e)).document;function o(e){return function(t,n){n.preventDefault();var r=n.dropRange?[n.dropRange]:null,o=new k(i,e);i.fire(o,{dataTransfer:n.dataTransfer,method:t.name,targetRanges:r,target:n.target}),o.stop.called&&n.stopPropagation()}}return r.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],r.listenTo(i,"paste",o("clipboardInput"),{priority:"low"}),r.listenTo(i,"drop",o("clipboardInput"),{priority:"low"}),r.listenTo(i,"dragover",o("dragging"),{priority:"low"}),r}return u(n,[{key:"onDomEvent",value:function(e){var t={dataTransfer:new pc(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"!=e.type&&"dragover"!=e.type||(t.dropRange=function(e,t){var n,r=t.target.ownerDocument,i=t.clientX,o=t.clientY;return r.caretRangeFromPoint&&r.caretRangeFromPoint(i,o)?n=r.caretRangeFromPoint(i,o):t.rangeParent&&((n=r.createRange()).setStart(t.rangeParent,t.rangeOffset),n.collapse(!0)),n?e.domConverter.domRangeToView(n):null}(this.view,e)),this.fire(e.type,e,t)}}]),n}(Xi),mc=["figcaption","li"],yc=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){this.editor.editing.view.addObserver(gc),this._setupPasteDrop(),this._setupCopyCut()}},{key:"_setupPasteDrop",value:function(){var e=this,t=this.editor,n=t.model,r=t.editing.view,i=r.document;this.listenTo(i,"clipboardInput",(function(e){t.isReadOnly&&e.stop()}),{priority:"highest"}),this.listenTo(i,"clipboardInput",(function(t,n){var i,o=n.dataTransfer,a=n.content||"";a||(o.getData("text/html")?a=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(e,t){return 1==t.length?" ":t}))}(o.getData("text/html")):o.getData("text/plain")&&(((i=(i=o.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||i.includes("<br>"))&&(i="<p>".concat(i,"</p>")),a=i),a=e.editor.data.htmlProcessor.toView(a));var s=new k(e,"inputTransformation");e.fire(s,{content:a,dataTransfer:o,targetRanges:n.targetRanges,method:n.method}),s.stop.called&&t.stop(),r.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(t,r){if(!r.content.isEmpty){var i=e.editor.data.toModel(r.content,"$clipboardHolder");0!=i.childCount&&(t.stop(),n.change((function(){e.fire("contentInsertion",{content:i,method:r.method,dataTransfer:r.dataTransfer,targetRanges:r.targetRanges})})))}}),{priority:"low"}),this.listenTo(this,"contentInsertion",(function(e,t){t.resultRange=n.insertContent(t.content)}),{priority:"low"})}},{key:"_setupCopyCut",value:function(){var e=this,t=this.editor,n=t.model.document,i=t.editing.view.document;function o(e,r){var o=r.dataTransfer;r.preventDefault();var a=t.data.toView(t.model.getSelectedContent(n.selection));i.fire("clipboardOutput",{dataTransfer:o,content:a,method:e.name})}this.listenTo(i,"copy",o,{priority:"low"}),this.listenTo(i,"cut",(function(e,n){t.isReadOnly?n.preventDefault():o(e,n)}),{priority:"low"}),this.listenTo(i,"clipboardOutput",(function(i,o){o.content.isEmpty||(o.dataTransfer.setData("text/html",e.editor.data.htmlProcessor.toData(o.content)),o.dataTransfer.setData("text/plain",function e(t){var n="";if(t.is("$text")||t.is("$textProxy"))n=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))n=t.getAttribute("alt");else if(t.is("element","br"))n="\n";else{var i,o=null,a=r(t.getChildren());try{for(a.s();!(i=a.n()).done;){var s=i.value,l=e(s);o&&(o.is("containerElement")||s.is("containerElement"))&&(mc.includes(o.name)||mc.includes(s.name)?n+="\n":n+="\n\n"),n+=l,o=s}}catch(u){a.e(u)}finally{a.f()}}return n}(o.content))),"cut"==o.method&&t.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ClipboardPipeline"}}]),n}(Ge);function kc(e,t){var n,i,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=r(t),a.prev=1,n.s();case 3:if((i=n.n()).done){a.next=11;break}if(o=i.value,a.t0=o&&e.getAttributeProperties(o[0]).copyOnEnter,!a.t0){a.next=9;break}return a.next=9,o;case 9:a.next=3;break;case 11:a.next=16;break;case 13:a.prev=13,a.t1=a.catch(1),n.e(a.t1);case 16:return a.prev=16,n.f(),a.finish(16);case 19:case"end":return a.stop()}}),m,null,[[1,13,16,19]])}var bc=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(r){!function(e,t,n,r){var i=n.isCollapsed,o=n.getFirstRange(),a=o.start.parent,s=o.end.parent;if(r.isLimit(a)||r.isLimit(s))i||a!=s||e.deleteContent(n);else if(i){var l=kc(t.model.schema,n.getAttributes());_c(t,o.start),t.setSelectionAttribute(l)}else{var u=!(o.start.isAtStart&&o.end.isAtEnd),c=a==s;e.deleteContent(n,{leaveUnmerged:u}),u&&(c?_c(t,n.focus):t.setSelection(s,0))}}(e.editor.model,r,n.selection,t.schema),e.fire("afterExecute",{writer:r})}))}}]),n}(Qe);function _c(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var wc=function(e){c(n,e);var t=d(n);function n(e){var r;s(this,n);var i=(r=t.call(this,e)).document;return i.on("keydown",(function(e,t){if(r.isEnabled&&t.keyCode==Lr.enter){var n=new fr(i,"enter",i.selection.getFirstRange());i.fire(n,new Yi(i,t.domEvent,{isSoft:t.shiftKey})),n.stop.called&&e.stop()}})),r}return u(n,[{key:"observe",value:function(){}}]),n}(ji),Cc=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;t.addObserver(wc),e.commands.add("enter",new bc(e)),this.listenTo(n,"enter",(function(n,r){r.preventDefault(),r.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}]),n}(Ge),xc=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;s(this,e),this.model=t,this.size=0,this.limit=r,this.isLocked=!1,this._changeCallback=function(e,t){"transparent"!=t.type&&t!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}return u(e,[{key:"input",value:function(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}},{key:"lock",value:function(){this.isLocked=!0}},{key:"unlock",value:function(){this.isLocked=!1}},{key:"destroy",value:function(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}},{key:"_reset",value:function(e){this.isLocked&&!e||(this._batch=null,this.size=0)}},{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch()),this._batch}}]),e}(),Sc=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).direction=r,i._buffer=new xc(e.model,e.config.get("typing.undoStep")),i}return u(n,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document;n.enqueueChange(this._buffer.batch,(function(i){e._buffer.lock();var o=i.createSelection(t.selection||r.selection),a=t.sequence||1,s=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:e.direction,unit:t.unit}),e._shouldEntireContentBeReplacedWithParagraph(a))e._replaceEntireContentWithParagraph(i);else if(e._shouldReplaceFirstBlockWithParagraph(o,a))e.editor.execute("paragraph",{selection:o});else if(!o.isCollapsed){var l=0;o.getFirstRange().getMinimalFlatRanges().forEach((function(e){l+=cr(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(o,{doNotResetEntireContent:s,direction:e.direction}),e._buffer.input(l),i.setSelection(o),e._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(e){if(e>1)return!1;var t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(r))return!1;if(!t.schema.checkChild(r,"paragraph"))return!1;var i=r.getChild(0);return!i||"paragraph"!==i.name}},{key:"_replaceEntireContentWithParagraph",value:function(e){var t=this.editor.model,n=t.schema.getLimitElement(t.document.selection),r=e.createElement("paragraph");e.remove(e.createRangeIn(n)),e.insert(r,n),e.setSelection(r,0)}},{key:"_shouldReplaceFirstBlockWithParagraph",value:function(e,t){var n=this.editor.model;if(t>1||"backward"!=this.direction)return!1;if(!e.isCollapsed)return!1;var r=e.getFirstPosition(),i=n.schema.getLimitElement(r),o=i.getChild(0);return r.parent==o&&!!e.containsEntireContent(o)&&!!n.schema.checkChild(i,"paragraph")&&"paragraph"!=o.name}},{key:"buffer",get:function(){return this._buffer}}]),n}(Qe),Ac=function(e){c(n,e);var t=d(n);function n(e){var r;s(this,n),r=t.call(this,e);var i=e.document,o=0;function a(e,t,n){var r=new fr(i,"delete",i.selection.getFirstRange());i.fire(r,new Yi(i,t,n)),r.stop.called&&e.stop()}return i.on("keyup",(function(e,t){t.keyCode!=Lr.delete&&t.keyCode!=Lr.backspace||(o=0)})),i.on("keydown",(function(e,t){var n={};if(t.keyCode==Lr.delete)n.direction="forward",n.unit="character";else{if(t.keyCode!=Lr.backspace)return;n.direction="backward",n.unit="codePoint"}n.unit=(Er?t.altKey:t.ctrlKey)?"word":n.unit,n.sequence=++o,a(e,t.domEvent,n)})),Rr&&i.on("beforeinput",(function(t,n){if("deleteContentBackward"==n.domEvent.inputType){var r={unit:"codepoint",direction:"backward",sequence:1},i=n.domTarget.ownerDocument.defaultView.getSelection();i.anchorNode==i.focusNode&&i.anchorOffset+1!=i.focusOffset&&(r.selectionToRemove=e.domConverter.domSelectionToView(i)),a(t,n.domEvent,r)}})),r}return u(n,[{key:"observe",value:function(){}}]),n}(ji),Ec=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;t.addObserver(Ac);var i=new Sc(e,"forward");if(e.commands.add("deleteForward",i),e.commands.add("forwardDelete",i),e.commands.add("delete",new Sc(e,"backward")),this.listenTo(n,"delete",(function(n,i){var o={unit:i.unit,sequence:i.sequence};if(i.selectionToRemove){var a,s=e.model.createSelection(),l=[],u=r(i.selectionToRemove.getRanges());try{for(u.s();!(a=u.n()).done;){var c=a.value;l.push(e.editing.mapper.toModelRange(c))}}catch(d){u.e(d)}finally{u.f()}s.setTo(l),o.selection=s}e.execute("forward"==i.direction?"deleteForward":"delete",o),i.preventDefault(),t.scrollToTheSelection()}),{priority:"low"}),Rr){var o=null;this.listenTo(n,"delete",(function(e,t){var n=t.domTarget.ownerDocument.defaultView.getSelection();o={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",(function(e,t){if(o){var n=t.domTarget.ownerDocument.defaultView.getSelection();n.collapse(o.anchorNode,o.anchorOffset),n.extend(o.focusNode,o.focusOffset),o=null}}))}}}],[{key:"pluginName",get:function(){return"Delete"}}]),n}(Ge),Tc=function(){function e(){s(this,e),this._stack=[]}return u(e,[{key:"add",value:function(e,t){var n=this._stack,r=n[0];this._insertDescriptor(e);var i=n[0];r===i||Pc(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:t})}},{key:"remove",value:function(e,t){var n=this._stack,r=n[0];this._removeDescriptor(e);var i=n[0];r===i||Pc(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:t})}},{key:"_insertDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e.id}));if(!Pc(e,t[n])){n>-1&&t.splice(n,1);for(var r=0;t[r]&&Rc(t[r],e);)r++;t.splice(r,0,e)}}},{key:"_removeDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e}));n>-1&&t.splice(n,1)}}]),e}();function Pc(e,t){return e&&t&&e.priority==t.priority&&Ic(e.classes)==Ic(t.classes)}function Rc(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&Ic(e.classes)>Ic(t.classes)}function Ic(e){return Array.isArray(e)?e.sort().join(","):e}function Oc(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function Mc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.is("containerElement"))throw new C.a("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=Hc,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){var n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){var t=this.toDomElement(e),n=new Xl;return n.set("content",'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>'),n.render(),t.appendChild(n.element),t}));t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),Dc(e,t,Nc,Lc),e}function Nc(e,t,n){if(t.classes&&n.addClass(gn(t.classes),e),t.attributes)for(var r in t.attributes)n.setAttribute(r,t.attributes[r],e)}function Lc(e,t,n){if(t.classes&&n.removeClass(gn(t.classes),e),t.attributes)for(var r in t.attributes)n.removeAttribute(r,e)}function Dc(e,t,n,r){var i=new Tc;i.on("change:top",(function(t,i){i.oldDescriptor&&r(e,i.oldDescriptor,i.writer),i.newDescriptor&&n(e,i.newDescriptor,i.writer)})),t.setCustomProperty("addHighlight",(function(e,t,n){return i.add(t,n)}),e),t.setCustomProperty("removeHighlight",(function(e,t,n){return i.remove(t,n)}),e)}function jc(e){var t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function Fc(e,t){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(function(n,r,i){t.setAttribute("contenteditable",i?"false":"true",e)})),e.on("change:isFocused",(function(n,r,i){i?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),e}function Vc(e,t){var n=e.getSelectedElement();if(n){var r=qc(e);if(r)return t.createPositionAt(n,r);if(t.schema.isBlock(n))return t.createPositionAfter(n)}var i=e.getSelectedBlocks().next().value;if(i){if(i.isEmpty)return t.createPositionAt(i,0);var o=t.createPositionAfter(i);return e.focus.isTouching(o)?o:t.createPositionBefore(i)}return e.focus}function zc(e,t){var n=e.getSelectedElement();return!!n&&t.isObject(n)}function Bc(e,t){var n=new xo(Ci.window),r=n.getIntersection(e),i=t.height+Fu.arrowVerticalOffset;if(e.top-i>n.top||e.bottom+i<n.bottom)return null;var o=r||e,a=o.left+o.width/2-t.width/2;return{top:Math.max(e.top,0)+Fu.arrowVerticalOffset,left:a,name:"arrow_n"}}function Hc(){return null}function Uc(e,t,n){return e&&Oc(e)&&!n.isInline(t)}function qc(e){return e.getAttribute("widget-type-around")}Ke(Tc,A);for(var Wc=[jr("arrowUp"),jr("arrowRight"),jr("arrowDown"),jr("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255],$c=112;$c<=135;$c++)Wc.push($c);function Kc(e){return!(!e.ctrlKey&&!e.metaKey)||Wc.includes(e.keyCode)}l(63);var Gc=["before","after"],Jc=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild,Qc=function(e){c(i,e);var t=d(i);function i(e){var n;return s(this,i),(n=t.call(this,e))._currentFakeCaretModelElement=null,n}return u(i,null,[{key:"pluginName",get:function(){return"WidgetTypeAround"}},{key:"requires",get:function(){return[Cc,Ec]}}]),u(i,[{key:"init",value:function(){var e=this.editor,t=e.editing.view;this.on("change:isEnabled",(function(n,i,o){t.change((function(e){var n,i=r(t.document.roots);try{for(i.s();!(n=i.n()).done;){var a=n.value;o?e.removeClass("ck-widget__type-around_disabled",a):e.addClass("ck-widget__type-around_disabled",a)}}catch(s){i.e(s)}finally{i.f()}})),o||e.model.change((function(e){e.removeSelectionAttribute("widget-type-around")}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableDeleteContentIntegration()}},{key:"destroy",value:function(){this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(e,t){var n=this.editor,r=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(e,t)}),r.focus(),r.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(e,t,n,r){var i=this;this.listenTo(e,t,(function(){i.isEnabled&&n.apply(void 0,arguments)}),r)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var e=this.editor.model.document.selection,t=qc(e);if(!t)return!1;var n=e.getSelectedElement();return this._insertParagraph(n,t),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var e=this.editor,t=e.model.schema,n=e.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(function(e,n,o){var a=o.mapper.toViewElement(n.item);Uc(a,n.item,t)&&function(e,t,n){var i=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){var n=this.toDomElement(e);return function(e,t){var n,i=r(Gc);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=new Ml({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+o],title:t[o]},children:[e.ownerDocument.importNode(Jc,!0)]});e.appendChild(a.render())}}catch(s){i.e(s)}finally{i.f()}}(n,t),function(e){var t=new Ml({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n}));e.insert(e.createPositionAt(n,"end"),i)}(o.writer,i,a)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var e=this,t=this.editor,n=t.model,r=n.document.selection,i=n.schema;function o(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(t.editing.view.document,"arrowKey",(function(t,n){e._handleArrowKeyPress(t,n)}),{context:[Oc,"$text"],priority:"high"}),this._listenToIfEnabled(r,"change:range",(function(e,n){n.directChange&&t.model.change((function(e){e.removeSelectionAttribute("widget-type-around")}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var e=r.getSelectedElement();e&&Uc(t.editing.mapper.toViewElement(e),e,i)||t.model.change((function(e){e.removeSelectionAttribute("widget-type-around")}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(function(t,n,r){var a=r.writer;if(e._currentFakeCaretModelElement){var s=r.mapper.toViewElement(e._currentFakeCaretModelElement);s&&(a.removeClass(Gc.map(o),s),e._currentFakeCaretModelElement=null)}var l=n.selection.getSelectedElement();if(l){var u=r.mapper.toViewElement(l);if(Uc(u,l,i)){var c=qc(n.selection);c&&(a.addClass(o(c),u),e._currentFakeCaretModelElement=l)}}})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(function(e,n,r){r||t.model.change((function(e){e.removeSelectionAttribute("widget-type-around")}))}))}},{key:"_handleArrowKeyPress",value:function(e,t){var n,r=this.editor,i=r.model,o=i.document.selection,a=i.schema,s=r.editing.view,l=Br(t.keyCode,r.locale.contentLanguageDirection),u=s.document.selection.getSelectedElement();Uc(u,r.editing.mapper.toModelElement(u),a)?n=this._handleArrowKeyPressOnSelectedWidget(l):o.isCollapsed&&(n=this._handleArrowKeyPressWhenSelectionNextToAWidget(l)),n&&(t.preventDefault(),e.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(e){var t=this.editor.model,n=qc(t.document.selection);return t.change((function(t){return n?n!==(e?"after":"before")&&(t.removeSelectionAttribute("widget-type-around"),!0):(t.setSelectionAttribute("widget-type-around",e?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(e){var t=this.editor,n=t.model,r=n.schema,i=t.plugins.get("Widget"),o=i._getObjectElementNextToSelection(e);return!!Uc(t.editing.mapper.toViewElement(o),o,r)&&(n.change((function(t){i._setSelectionOverElement(o),t.setSelectionAttribute("widget-type-around",e?"before":"after")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(r,i){var o=i.domTarget.closest(".ck-widget__type-around__button");if(o){var a=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),s=function(e,t){var n=e.closest(".ck-widget");return t.mapDomToView(n)}(o,n.domConverter),l=t.editing.mapper.toModelElement(s);e._insertParagraph(l,a),i.preventDefault(),r.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var e=this,t=this.editor,n=t.model.document.selection;this._listenToIfEnabled(t.editing.view.document,"enter",(function(r,i){if("atTarget"==r.eventPhase){var o,a=n.getSelectedElement(),s=t.editing.mapper.toViewElement(a),l=t.model.schema;e._insertParagraphAccordingToFakeCaretPosition()?o=!0:Uc(s,a,l)&&(e._insertParagraph(a,i.isSoft?"before":"after"),o=!0),o&&(i.preventDefault(),r.stop())}}),{context:Oc})}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var e=this,t=[Lr.enter,Lr.delete,Lr.backspace];this._listenToIfEnabled(this.editor.editing.view.document,"keydown",(function(n,r){t.includes(r.keyCode)||Kc(r)||e._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}},{key:"_enableDeleteIntegration",value:function(){var e=this.editor,t=e.model,n=t.schema;this._listenToIfEnabled(e.editing.view.document,"delete",(function(i,o){if("atTarget"==i.eventPhase){var a=qc(t.document.selection);if(a){var s=o.direction,l=t.document.selection.getSelectedElement(),u="forward"==s;if("before"===a===u)e.execute("delete",{selection:t.createSelection(l,"on")});else{var c=n.getNearestSelectionRange(t.createPositionAt(l,a),s);if(c)if(c.isCollapsed){var d=t.createSelection(c.start);if(t.modifySelection(d,{direction:s}),d.focus.isEqual(c.start)){var h=function(e,t){var n,i=t,o=r(t.getAncestors({parentFirst:!0}));try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.childCount>1||e.isLimit(a))break;i=a}}catch(s){o.e(s)}finally{o.f()}return i}(n,c.start.parent);t.deleteContent(t.createSelection(h,"on"),{doNotAutoparagraph:!0})}else t.change((function(t){t.setSelection(c),e.execute(u?"deleteForward":"delete")}))}else t.change((function(t){t.setSelection(c),e.execute(u?"deleteForward":"delete")}))}o.preventDefault(),i.stop()}}}),{context:Oc})}},{key:"_enableInsertContentIntegration",value:function(){var e=this.editor.model,t=e.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(function(r,i){var o=n(i,2),a=o[0],s=o[1];if(!s||s.is("documentSelection")){var l=qc(t);return l?(r.stop(),e.change((function(n){var r=t.getSelectedElement(),i=e.createPositionAt(r,l),o=n.createSelection(i),s=e.insertContent(a,o);return n.setSelection(o),s}))):void 0}}),{priority:"high"})}},{key:"_enableDeleteContentIntegration",value:function(){var e=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"deleteContent",(function(t,r){var i=n(r,1)[0];i&&!i.is("documentSelection")||qc(e)&&t.stop()}),{priority:"high"})}}]),i}(Ge);function Zc(e,t,n){var i,o=e.schema,a="forward"==n?"elementStart":"elementEnd",s=r(e.createRangeIn(t.root).getWalker({startPosition:t,direction:n}));try{for(s.s();!(i=s.n()).done;){var l=i.value,u=l.previousPosition,c=l.item,d=l.type;if(o.isLimit(c)&&!o.isInline(c))return u;if(d==a&&o.isBlock(c))return null}}catch(h){s.e(h)}finally{s.f()}return null}function Yc(e,t,n){var i="backward"==n?t.end:t.start;if(e.checkChild(i,"$text"))return i;var o,a=r(t.getWalker({direction:n}));try{for(a.s();!(o=a.n()).done;){var s=o.value.nextPosition;if(e.checkChild(s,"$text"))return s}}catch(l){a.e(l)}finally{a.f()}}l(65);var Xc=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view,n=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(t,n,i){e._clearPreviouslySelectedWidgets(i.writer);var o,a=i.writer,s=a.document.selection,l=s.getSelectedElement(),u=null,c=r(s.getRanges());try{for(c.s();!(o=c.n()).done;){var d,h=r(o.value);try{for(h.s();!(d=h.n()).done;){var f=d.value.item;Oc(f)&&!ed(f,u)&&(a.addClass("ck-widget_selected",f),e._previouslySelected.add(f),u=f,f==l&&a.setSelection(s.getRanges(),{fake:!0,label:jc(l)}))}}catch(v){h.e(v)}finally{h.f()}}}catch(v){c.e(v)}finally{c.f()}}),{priority:"low"}),t.addObserver(cc),this.listenTo(n,"mousedown",(function(){return e._onMousedown.apply(e,arguments)})),this.listenTo(n,"arrowKey",(function(){e._handleSelectionChangeOnArrowKeyPress.apply(e,arguments)}),{context:[Oc,"$text"]}),this.listenTo(n,"arrowKey",(function(){e._preventDefaultOnArrowKeyPress.apply(e,arguments)}),{context:"$root"}),this.listenTo(n,"arrowKey",function(e){var t=e.model;return function(n,i){var o=i.keyCode==Lr.arrowdown,a=i.shiftKey,s=t.document.selection;if(i.keyCode==Lr.arrowup||o){var l=o;if(!a||!function(e,t){return!e.isCollapsed&&e.isBackward==t}(s,l)){var u=function(e,t,n){var r=e.model;if(n){var i=t.isCollapsed?t.focus:t.getLastPosition(),o=Zc(r,i,"forward");if(!o)return null;var a=r.createRange(i,o),s=Yc(r.schema,a,"backward");return s&&i.isBefore(s)?r.createRange(i,s):null}var l=t.isCollapsed?t.focus:t.getFirstPosition(),u=Zc(r,l,"backward");if(!u)return null;var c=r.createRange(u,l),d=Yc(r.schema,c,"forward");return d&&l.isAfter(d)?r.createRange(d,l):null}(e,s,l);u&&!u.isCollapsed&&function(e,t,n){var i=e.model,o=e.view.domConverter;if(n){var a=i.createSelection(t.start);i.modifySelection(a),a.focus.isAtEnd||t.start.isEqual(a.focus)||(t=i.createRange(a.focus,t.end))}var s,l,u=e.mapper.toViewRange(t),c=o.viewRangeToDom(u),d=r(xo.getDomRangeRects(c));try{for(d.s();!(l=d.n()).done;){var h=l.value;if(void 0!==s){if(Math.round(h.top)>=s)return!1;s=Math.max(s,Math.round(h.bottom))}else s=Math.round(h.bottom)}}catch(f){d.e(f)}finally{d.f()}return!0}(e,u,l)&&(t.change((function(e){var n=l?u.end:u.start;if(a){var r=t.createSelection(s.anchor);r.setFocus(n),e.setSelection(r)}else e.setSelection(n)})),n.stop(),i.preventDefault(),i.stopPropagation())}}}}(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",(function(t,n){e._handleDelete("forward"==n.direction)&&(n.preventDefault(),t.stop())}),{context:"$root"})}},{key:"_onMousedown",value:function(e,t){var n=this.editor,r=n.editing.view,i=r.document,o=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(Oc(e))return!1;e=e.parent}return!1}(o)){if((Pr||Tr)&&t.domEvent.detail>=3){var a=n.editing.mapper,s=o.is("attributeElement")?o.findAncestor((function(e){return!e.is("attributeElement")})):o,l=a.toModelElement(s);t.preventDefault(),this.editor.model.change((function(e){e.setSelection(l,"in")}))}}else if(Oc(o)||(o=o.findAncestor(Oc))){Rr&&t.preventDefault(),i.isFocused||r.focus();var u=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(u)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(e,t){var n=t.keyCode,r=this.editor.model,i=r.schema,o=r.document.selection,a=o.getSelectedElement(),s=Br(n,this.editor.locale.contentLanguageDirection);if(a&&i.isObject(a)){var l=s?o.getLastPosition():o.getFirstPosition(),u=i.getNearestSelectionRange(l,s?"forward":"backward");u&&(r.change((function(e){e.setSelection(u)})),t.preventDefault(),e.stop())}else if(o.isCollapsed){var c=this._getObjectElementNextToSelection(s);c&&i.isObject(c)&&(this._setSelectionOverElement(c),t.preventDefault(),e.stop())}}},{key:"_preventDefaultOnArrowKeyPress",value:function(e,t){var n=this.editor.model,r=n.schema,i=n.document.selection.getSelectedElement();i&&r.isObject(i)&&(t.preventDefault(),e.stop())}},{key:"_handleDelete",value:function(e){var t=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var r=this._getObjectElementNextToSelection(e);return r?(this.editor.model.change((function(e){for(var i=n.anchor.parent;i.isEmpty;){var o=i;i=o.parent,e.remove(o)}t._setSelectionOverElement(r)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(e){this.editor.model.change((function(t){t.setSelection(t.createRangeOn(e))}))}},{key:"_getObjectElementNextToSelection",value:function(e){var t=this.editor.model,n=t.schema,r=t.createSelection(t.document.selection);t.modifySelection(r,{direction:e?"forward":"backward"});var i=e?r.focus.nodeBefore:r.focus.nodeAfter;return i&&n.isObject(i)?i:null}},{key:"_clearPreviouslySelectedWidgets",value:function(e){var t,n=r(this._previouslySelected);try{for(n.s();!(t=n.n()).done;){var i=t.value;e.removeClass("ck-widget_selected",i)}}catch(o){n.e(o)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[Qc,Ec]}}]),n}(Ge);function ed(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var td=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return N(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ho(e,t,{leading:r,maxWait:t,trailing:i})};l(67);var nd=function(e){c(r,e);var n=d(r);function r(){return s(this,r),n.apply(this,arguments)}return u(r,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=td((function(t){return e._updateDropMarker(t)}),40),this._removeDropMarkerDelayed=od((function(){return e._removeDropMarker()}),40),this._clearDraggableAttributesDelayed=od((function(){return e._clearDraggableAttributes()}),40),n.addObserver(gc),n.addObserver(cc),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",(function(t,n,r){r?e.forceDisabled("readOnlyMode"):e.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",(function(t,n,r){r||e._finalizeDragging(!1)})),Rr&&this.forceDisabled("noAndroidSupport")}},{key:"destroy",value:function(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),t(y(r.prototype),"destroy",this).call(this)}},{key:"_setupDragging",value:function(){var e=this,t=this.editor,n=t.model,r=n.document,i=t.editing.view,o=i.document;this.listenTo(o,"dragstart",(function(i,a){var s=r.selection;if(a.target&&a.target.is("editableElement"))a.preventDefault();else{var l=a.target?ad(a.target):null;if(l){var u=t.editing.mapper.toModelElement(l);e._draggedRange=pa.fromRange(n.createRangeOn(u))}else if(!o.selection.isCollapsed){var c=o.selection.getSelectedElement();c&&Oc(c)||(e._draggedRange=pa.fromRange(s.getFirstRange()))}if(e._draggedRange){e._draggingUid=_(),a.dataTransfer.effectAllowed=e.isEnabled?"copyMove":"copy",a.dataTransfer.setData("application/ckeditor5-dragging-uid",e._draggingUid);var d=n.createSelection(e._draggedRange.toRange()),h=t.data.toView(n.getSelectedContent(d));o.fire("clipboardOutput",{dataTransfer:a.dataTransfer,content:h,method:i.name}),e.isEnabled||(e._draggedRange.detach(),e._draggedRange=null,e._draggingUid="")}else a.preventDefault()}}),{priority:"low"}),this.listenTo(o,"dragend",(function(t,n){e._finalizeDragging(!n.dataTransfer.isCanceled&&"move"==n.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(o,"dragenter",(function(){e.isEnabled&&i.focus()})),this.listenTo(o,"dragleave",(function(){e._removeDropMarkerDelayed()})),this.listenTo(o,"dragging",(function(n,r){if(e.isEnabled){e._removeDropMarkerDelayed.cancel();var i=rd(t,r.targetRanges,r.target);e._draggedRange||(r.dataTransfer.dropEffect="copy"),Tr||("copy"==r.dataTransfer.effectAllowed?r.dataTransfer.dropEffect="copy":["all","copyMove"].includes(r.dataTransfer.effectAllowed)&&(r.dataTransfer.dropEffect="move")),i&&e._updateDropMarkerThrottled(i)}else r.dataTransfer.dropEffect="none"}),{priority:"low"})}},{key:"_setupClipboardInputIntegration",value:function(){var e=this,t=this.editor;this.listenTo(t.editing.view.document,"clipboardInput",(function(n,r){if("drop"==r.method){var i=rd(t,r.targetRanges,r.target);return e._removeDropMarker(),i?(e._draggedRange&&e._draggingUid!=r.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(e._draggedRange.detach(),e._draggedRange=null,e._draggingUid=""),"move"==id(r.dataTransfer)&&e._draggedRange&&e._draggedRange.containsRange(i,!0)?(e._finalizeDragging(!1),void n.stop()):void(r.targetRanges=[t.editing.mapper.toViewRange(i)])):(e._finalizeDragging(!1),void n.stop())}}),{priority:"high"})}},{key:"_setupContentInsertionIntegration",value:function(){var e=this,t=this.editor.plugins.get(yc);t.on("contentInsertion",(function(t,n){if(e.isEnabled&&"drop"===n.method){var r=n.targetRanges.map((function(t){return e.editor.editing.mapper.toModelRange(t)}));e.editor.model.change((function(e){return e.setSelection(r)}))}}),{priority:"high"}),t.on("contentInsertion",(function(t,n){if(e.isEnabled&&"drop"===n.method){var r="move"==id(n.dataTransfer);e._finalizeDragging((!n.resultRange||!n.resultRange.isCollapsed)&&r)}}),{priority:"lowest"})}},{key:"_setupDraggableAttributeHandling",value:function(){var e=this,t=this.editor,n=t.editing.view,r=n.document;this.listenTo(r,"mousedown",(function(i,o){if(!Rr&&o){e._clearDraggableAttributesDelayed.cancel();var a=ad(o.target);if(Ir&&!t.isReadOnly&&!a&&!r.selection.isCollapsed){var s=r.selection.getSelectedElement();s&&Oc(s)||(a=r.selection.editableElement)}a&&(n.change((function(e){e.setAttribute("draggable","true",a)})),e._draggableElement=t.editing.mapper.toModelElement(a))}})),this.listenTo(r,"mouseup",(function(){Rr||e._clearDraggableAttributesDelayed()}))}},{key:"_clearDraggableAttributes",value:function(){var e=this,t=this.editor.editing;t.view.change((function(n){e._draggableElement&&"$graveyard"!=e._draggableElement.root.rootName&&n.removeAttribute("draggable",t.mapper.toViewElement(e._draggableElement)),e._draggableElement=null}))}},{key:"_setupDropMarker",value:function(){var e=this.editor;e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:function(t,n){var r=n.writer;if(e.model.schema.checkChild(t.markerRange.start,"$text"))return r.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(e){var t=this.toDomElement(e);return t.innerHTML="&NoBreak;<span></span>&NoBreak;",t}))}})}},{key:"_updateDropMarker",value:function(e){var t=this.editor,n=t.model.markers;t.model.change((function(t){n.has("drop-target")?n.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})}))}},{key:"_removeDropMarker",value:function(){var e=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),e.markers.has("drop-target")&&e.change((function(e){e.removeMarker("drop-target")}))}},{key:"_finalizeDragging",value:function(e){var t=this.editor.model;this._removeDropMarker(),this._clearDraggableAttributes(),this._draggingUid="",this._draggedRange&&(e&&this.isEnabled&&t.deleteContent(t.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}],[{key:"pluginName",get:function(){return"DragDrop"}},{key:"requires",get:function(){return[yc,Xc]}}]),r}(Ge);function rd(e,t,n){var r=e.model,i=e.editing.mapper,o=null,a=t?t[0].start:null;if(n.is("uiElement")&&(n=n.parent),o=function(e,t){var n=e.model,r=e.editing.mapper;if(Oc(t))return n.createRangeOn(r.toModelElement(t));if(!t.is("editableElement")){var i=t.findAncestor((function(e){return Oc(e)||e.is("editableElement")}));if(Oc(i))return n.createRangeOn(r.toModelElement(i))}return null}(e,n))return o;var s=function(e,t){var n=e.editing.mapper,r=e.editing.view,i=n.toModelElement(t);if(i)return i;var o=r.createPositionBefore(t),a=n.findMappedViewAncestor(o);return n.toModelElement(a)}(e,n),l=a?i.toModelPosition(a):null;return l?(o=function(e,t,n){var r=e.model;if(!r.schema.checkChild(n,"$block"))return null;var i=r.createPositionAt(n,0),o=t.path.slice(0,i.path.length),a=r.createPositionFromPath(t.root,o).nodeAfter;return a&&r.schema.isObject(a)?r.createRangeOn(a):null}(e,l,s))||((o=r.schema.getNearestSelectionRange(l,Tr?"forward":"backward"))||function(e,t){for(var n=e.model;t;){if(n.schema.isObject(t))return n.createRangeOn(t);t=t.parent}}(e,l.parent)):function(e,t){var n=e.model,r=n.schema,i=n.createPositionAt(t,0);return r.getNearestSelectionRange(i,"forward")}(e,s)}function id(e){return Tr?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function od(e,t){var n;function r(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r.cancel(),n=setTimeout((function(){return e.apply(void 0,o)}),t)}return r.cancel=function(){clearTimeout(n)},r}function ad(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(Oc);if(Oc(e))return e;var t=e.findAncestor((function(e){return Oc(e)||e.is("editableElement")}));return Oc(t)?t:null}var sd=function(e){c(o,e);var t=d(o);function o(){return s(this,o),t.apply(this,arguments)}return u(o,[{key:"init",value:function(){var e=this.editor,t=e.model,o=e.editing.view,a=o.document,s=t.document.selection,l=!1;o.addObserver(gc),this.listenTo(a,"keydown",(function(e,t){l=t.shiftKey})),e.plugins.get(yc).on("contentInsertion",(function(e,o){(l||function(e,t){if(e.childCount>1)return!1;var n=e.getChild(0);return!t.isObject(n)&&0==i(n.getAttributeKeys()).length}(o.content,t.schema))&&t.change((function(e){var a=Array.from(s.getAttributes()).filter((function(e){var r=n(e,1)[0];return t.schema.getAttributeProperties(r).isFormatting}));s.isCollapsed||t.deleteContent(s,{doNotAutoparagraph:!0}),a.push.apply(a,i(s.getAttributes()));var l,u=r(e.createRangeIn(o.content).getItems());try{for(u.s();!(l=u.n()).done;){var c=l.value;c.is("$textProxy")&&e.setAttributes(a,c)}}catch(d){u.e(d)}finally{u.f()}}))}))}}],[{key:"pluginName",get:function(){return"PastePlainText"}},{key:"requires",get:function(){return[yc]}}]),o}(Ge),ld=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"pluginName",get:function(){return"Clipboard"}},{key:"requires",get:function(){return[yc,nd,sd]}}]),n}(Ge),ud=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(r){!function(e,t,n){var r=n.isCollapsed,i=n.getFirstRange(),o=i.end.parent,a=i.start.parent==o;if(r){var s=kc(e.schema,n.getAttributes());cd(e,t,i.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(s)}else{var l=!(i.start.isAtStart&&i.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:l}),a?cd(e,t,n.focus):l&&t.setSelection(o,0)}}(t,r,n.selection),e.fire("afterExecute",{writer:r})}))}},{key:"refresh",value:function(){var e=this.editor.model;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;var n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;var r=t.getFirstRange(),i=r.start.parent,o=r.end.parent;return!dd(i,e)&&!dd(o,e)||i===o}(e.schema,e.document.selection)}}]),n}(Qe);function cd(e,t,n){var r=t.createElement("softBreak");e.insertContent(r,n),t.setSelection(r,"after")}function dd(e,t){return!e.is("rootElement")&&(t.isLimit(e)||dd(e.parent,t))}var hd=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.conversion,n=e.editing.view,r=n.document;e.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),t.for("upcast").elementToElement({model:"softBreak",view:"br"}),t.for("downcast").elementToElement({model:"softBreak",view:function(e,t){return t.writer.createEmptyElement("br")}}),n.addObserver(wc),e.commands.add("shiftEnter",new ud(e)),this.listenTo(r,"enter",(function(t,r){r.preventDefault(),r.isSoft&&(e.execute("shiftEnter"),n.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}]),n}(Ge),fd=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"execute",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!vd(e.schema,n))do{if(!(n=n.parent))return}while(!vd(e.schema,n));e.change((function(e){e.setSelection(n,"in")}))}}]),n}(Qe);function vd(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}var pd=Fr("Ctrl+A"),gd=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new fd(e)),this.listenTo(t,"keydown",(function(t,n){jr(n)===pd&&(e.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}]),n}(Ge),md=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor;t.ui.componentFactory.add("selectAll",(function(n){var r=t.commands.get("selectAll"),i=new tu(n);return i.set({label:(0,n.t)("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),e.listenTo(i,"execute",(function(){t.execute("selectAll"),t.editing.view.focus()})),i}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}]),n}(Ge),yd=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[gd,md]}},{key:"pluginName",get:function(){return"SelectAll"}}]),n}(Ge),kd=function(e){c(r,e);var n=d(r);function r(e,t){var i;return s(this,r),(i=n.call(this,e))._buffer=new xc(e.model,t),i._batches=new WeakSet,i}return u(r,[{key:"destroy",value:function(){t(y(r.prototype),"destroy",this).call(this),this._buffer.destroy()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document,i=t.text||"",o=i.length,a=t.range?n.createSelection(t.range):r.selection,s=t.resultRange;n.enqueueChange(this._buffer.batch,(function(t){e._buffer.lock(),e._batches.add(e._buffer.batch),n.deleteContent(a),i&&n.insertContent(t.createText(i,r.selection.getAttributes()),a),s?t.setSelection(s):a.is("documentSelection")||t.setSelection(a),e._buffer.unlock(),e._buffer.input(o)}))}},{key:"buffer",get:function(){return this._buffer}}]),r}(Qe);function bd(e){if(e.newChildren.length-e.oldChildren.length==1){var t=function(e,t){var n,r=[],i=0;return e.forEach((function(e){"equal"==e?(o(),i++):"insert"==e?(a("insert")?n.values.push(t[i]):(o(),n={type:"insert",index:i,values:[t[i]]}),i++):a("delete")?n.howMany++:(o(),n={type:"delete",index:i,howMany:1})})),o(),r;function o(){n&&(r.push(n),n=null)}function a(e){return n&&n.type==e}}(pi(e.oldChildren,e.newChildren,_d),e.newChildren);if(!(t.length>1)){var n=t[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}}}function _d(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}var wd=function(){function e(t){s(this,e),this.editor=t,this.editing=this.editor.editing}return u(e,[{key:"handle",value:function(e,t){if(function(e){if(0==e.length)return!1;var t,n=r(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if("children"===i.type&&!bd(i))return!0}}catch(o){n.e(o)}finally{n.f()}return!1}(e))this._handleContainerChildrenMutations(e,t);else{var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;this._handleTextMutation(o,t),this._handleTextNodeInsertion(o)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"_handleContainerChildrenMutations",value:function(e,t){var n=function(e){var t=e.map((function(e){return e.node})).reduce((function(e,t){return e.getCommonAncestor(t,{includeSelf:!0})}));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find((function(e){return e.is("containerElement")||e.is("rootElement")}))}(e);if(n){var r=this.editor.editing.view.domConverter.mapViewToDom(n),i=new Pi(this.editor.editing.view.document),o=this.editor.data.toModel(i.domToView(r)).getChild(0),a=this.editor.editing.mapper.toModelElement(n);if(a){var s=Array.from(o.getChildren()),l=Array.from(a.getChildren()),u=s[s.length-1],c=l[l.length-1],d=u&&u.is("element","softBreak"),h=c&&!c.is("element","softBreak");d&&h&&s.pop();var f=this.editor.model.schema;if(Cd(s,f)&&Cd(l,f)){var v=s.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," "),p=l.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," ");if(p!==v){var g=xd(pi(p,v)),m=g.firstChangeAt,y=g.insertions,k=g.deletions,b=null;t&&(b=this.editing.mapper.toModelRange(t.getFirstRange()));var _=v.substr(m,y),w=this.editor.model.createRange(this.editor.model.createPositionAt(a,m),this.editor.model.createPositionAt(a,m+k));this.editor.execute("input",{text:_,range:w,resultRange:b})}}}}}},{key:"_handleTextMutation",value:function(e,t){if("text"==e.type){var n=e.newText.replace(/\u00A0/g," "),r=e.oldText.replace(/\u00A0/g," ");if(r!==n){var i=xd(pi(r,n)),o=i.firstChangeAt,a=i.insertions,s=i.deletions,l=null;t&&(l=this.editing.mapper.toModelRange(t.getFirstRange()));var u=this.editing.view.createPositionAt(e.node,o),c=this.editing.mapper.toModelPosition(u),d=this.editor.model.createRange(c,c.getShiftedBy(s)),h=n.substr(o,a);this.editor.execute("input",{text:h,range:d,resultRange:l})}}}},{key:"_handleTextNodeInsertion",value:function(e){if("children"==e.type){var t=bd(e),n=this.editing.view.createPositionAt(e.node,t.index),r=this.editing.mapper.toModelPosition(n);this.editor.execute("input",{text:t.values[0].data.replace(/\u00A0/g," "),range:this.editor.model.createRange(r)})}}}]),e}();function Cd(e,t){return e.every((function(e){return t.isInline(e)}))}function xd(e){for(var t=null,n=null,r=0;r<e.length;r++)"equal"!=e[r]&&(t=null===t?r:t,n=r);for(var i=0,o=0,a=t;a<=n;a++)"insert"!=e[a]&&i++,"delete"!=e[a]&&o++;return{insertions:o,deletions:i,firstChangeAt:t}}var Sd=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=new kd(e,e.config.get("typing.undoStep")||20);e.commands.add("input",t),function(e){var t=null,n=e.model,r=e.editing.view,i=e.commands.get("input");function o(e){var o=n.document,s=r.document.isComposing,l=t&&t.isEqual(o.selection);t=null,i.isEnabled&&(Kc(e)||o.selection.isCollapsed||s&&229===e.keyCode||!s&&229===e.keyCode&&l||a())}function a(){var e=i.buffer;e.lock();var t=e.batch;i._batches.add(t),n.enqueueChange(t,(function(){n.deleteContent(n.document.selection)})),e.unlock()}r.document.on(Rr?"beforeinput":"keydown",(function(e,t){return o(t)}),{priority:"lowest"}),r.document.on("compositionstart",(function(){var e=n.document,t=1!==e.selection.rangeCount||e.selection.getFirstRange().isFlat;e.selection.isCollapsed||t||a()}),{priority:"lowest"}),r.document.on("compositionend",(function(){t=n.createSelection(n.document.selection)}),{priority:"lowest"})}(e),function(e){e.editing.view.document.on("mutations",(function(t,n,r){new wd(e).handle(n,r)}))}(e)}},{key:"isInput",value:function(e){return this.editor.commands.get("input")._batches.has(e)}}],[{key:"pluginName",get:function(){return"Input"}}]),n}(Ge),Ad=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Sd,Ec]}},{key:"pluginName",get:function(){return"Typing"}}]),n}(Ge);function Ed(e,t){var n=e.start;return{text:Array.from(e.getItems()).reduce((function(e,r){return r.is("$text")||r.is("$textProxy")?e+r.data:(n=t.createPositionAfter(r),"")}),""),range:t.createRange(n,e.end)}}var Td=function(){function e(t,n){var r=this;s(this,e),this.model=t,this.testCallback=n,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(function(){r.isEnabled?r._startListening():(r.stopListening(t.document.selection),r.stopListening(t.document))})),this._startListening()}return u(e,[{key:"_startListening",value:function(){var e=this,t=this.model.document;this.listenTo(t.selection,"change:range",(function(n,r){r.directChange&&(t.selection.isCollapsed?e._evaluateTextBeforeSelection("selection"):e.hasMatch&&(e.fire("unmatched"),e.hasMatch=!1))})),this.listenTo(t,"change:data",(function(t,n){"transparent"!=n.type&&e._evaluateTextBeforeSelection("data",{batch:n})}))}},{key:"_evaluateTextBeforeSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,r=n.document.selection,i=n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),o=Ed(i,n),a=o.text,s=o.range,l=this.testCallback(a);if(!l&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!l,l){var u=Object.assign(t,{text:a,range:s});"object"==typeof l&&Object.assign(u,l),this.fire("matched:"+e,u)}}}]),e}();Ke(Td,Be);var Pd=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).attributes=new Set,r._overrideUid=null,r}return u(n,null,[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}]),u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.locale,r=t.model.document.selection;this.listenTo(t.editing.view.document,"arrowKey",(function(t,i){if(r.isCollapsed&&!(i.shiftKey||i.altKey||i.ctrlKey)){var o=i.keyCode==Lr.arrowright,a=i.keyCode==Lr.arrowleft;if(o||a){var s=n.contentLanguageDirection;!0===("ltr"===s&&o||"rtl"===s&&a?e._handleForwardMovement(i):e._handleBackwardMovement(i))&&t.stop()}}}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(r,"change:range",(function(t,n){e._isNextGravityRestorationSkipped?e._isNextGravityRestorationSkipped=!1:e._isGravityOverridden&&(!n.directChange&&Md(r.getFirstPosition(),e.attributes)||e._restoreGravity())}))}},{key:"registerAttribute",value:function(e){this.attributes.add(e)}},{key:"_handleForwardMovement",value:function(e){var t=this.attributes,n=this.editor.model.document.selection,r=n.getFirstPosition();return!this._isGravityOverridden&&(!r.isAtStart||!Rd(n,t))&&(Md(r,t)?(Od(e),this._overrideGravity(),!0):void 0)}},{key:"_handleBackwardMovement",value:function(e){var t=this.attributes,n=this.editor.model,r=n.document.selection,i=r.getFirstPosition();return this._isGravityOverridden?(Od(e),this._restoreGravity(),Id(n,t,i),!0):i.isAtStart?!!Rd(r,t)&&(Od(e),Id(n,t,i),!0):function(e,t){return Md(e.getShiftedBy(-1),t)}(i,t)?i.isAtEnd&&!Rd(r,t)&&Md(i,t)?(Od(e),Id(n,t,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(e){return e.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var e=this;this.editor.model.change((function(t){t.restoreSelectionGravity(e._overrideUid),e._overrideUid=null}))}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}}]),n}(Ge);function Rd(e,t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(e.hasAttribute(o))return!0}}catch(a){i.e(a)}finally{i.f()}return!1}function Id(e,t,n){var r=n.nodeBefore;e.change((function(e){r?e.setSelectionAttribute(r.getAttributes()):e.removeSelectionAttribute(t)}))}function Od(e){e.preventDefault()}function Md(e,t){var n,i=e.nodeBefore,o=e.nodeAfter,a=r(t);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=i?i.getAttribute(s):void 0;if((o?o.getAttribute(s):void 0)!==l)return!0}}catch(u){a.e(u)}finally{a.f()}return!1}var Nd=/[\\^$.*+?()[\]{}|]/g,Ld=RegExp(Nd.source),Dd={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:"1/2",to:"\xbd"},oneThird:{from:"1/3",to:"\u2153"},twoThirds:{from:"2/3",to:"\u2154"},oneForth:{from:"1/4",to:"\xbc"},threeQuarters:{from:"3/4",to:"\xbe"},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:Hd('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:Hd("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:Hd("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:Hd('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:Hd('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:Hd("'"),to:[null,"\u201a",null,"\u2019"]}},jd={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Fd=["symbols","mathematical","typography","quotes"];function Vd(e){return"string"==typeof e?new RegExp("(".concat(function(e){return(e=zn(e))&&Ld.test(e)?e.replace(Nd,"\\$&"):e}(e),")$")):e}function zd(e){return"string"==typeof e?function(){return[e]}:e instanceof Array?function(){return e}:e}function Bd(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function Hd(e){return new RegExp("(^|\\s)(".concat(e,")([^").concat(e,"]*)(").concat(e,")$"))}function Ud(e,t,n,r){return r.createRange(qd(e,t,n,!0,r),qd(e,t,n,!1,r))}function qd(e,t,n,r,i){for(var o=e.textNode||(r?e.nodeBefore:e.nodeAfter),a=null;o&&o.getAttribute(t)==n;)a=o,o=r?o.previousSibling:o.nextSibling;return a?i.createPositionAt(a,r?"before":"after"):e}function Wd(e,t,n,i){var o=e.editing.view,a=new Set;o.document.registerPostFixer((function(o){var s=e.model.document.selection,l=!1;if(s.hasAttribute(t)){var u,c=Ud(s.getFirstPosition(),t,s.getAttribute(t),e.model),d=r(e.editing.mapper.toViewRange(c).getItems());try{for(d.s();!(u=d.n()).done;){var h=u.value;h.is("element",n)&&!h.hasClass(i)&&(o.addClass(i,h),a.add(h),l=!0)}}catch(f){d.e(f)}finally{d.f()}}return l})),e.conversion.for("editingDowncast").add((function(e){function t(){o.change((function(e){var t,n=r(a.values());try{for(n.s();!(t=n.n()).done;){var o=t.value;e.removeClass(i,o),a.delete(o)}}catch(s){n.e(s)}finally{n.f()}}))}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})}))}var $d=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e))._stack=[],r._createdBatches=new WeakSet,r.refresh(),r.listenTo(e.data,"set",(function(){return r.clearStack()})),r}return u(n,[{key:"refresh",value:function(){this.isEnabled=this._stack.length>0}},{key:"addBatch",value:function(e){var t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}},{key:"clearStack",value:function(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(e,t,n){var i,o=this.editor.model,a=o.document,s=[],l=e.map((function(e){return e.getTransformedByOperations(n)})),u=l.flat(),c=r(l);try{for(c.s();!(i=c.n()).done;){var d=i.value.filter((function(e){return e.root!=a.graveyard})).filter((function(e){return!Gd(e,u)}));d.length&&(Kd(d),s.push(d[0]))}}catch(h){c.e(h)}finally{c.f()}s.length&&o.change((function(e){e.setSelection(s,{backward:t})}))}},{key:"_undo",value:function(e,t){var n=this.editor.model,i=n.document;this._createdBatches.add(t);var o=e.operations.slice().filter((function(e){return e.isDocumentOperation}));o.reverse();var a,s=r(o);try{for(s.s();!(a=s.n()).done;){var l,u=a.value,c=Array.from(i.history.getOperations(u.baseVersion+1)),d=r(nc([u.getReversed()],c,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA);try{for(d.s();!(l=d.n()).done;){var h=l.value;t.addOperation(h),n.applyOperation(h),i.history.setOperationAsUndone(u,h)}}catch(f){d.e(f)}finally{d.f()}}}catch(f){s.e(f)}finally{s.f()}}}]),n}(Qe);function Kd(e){e.sort((function(e,t){return e.start.isBefore(t.start)?-1:1}));for(var t=1;t<e.length;t++){var n=e[t-1].getJoined(e[t],!0);n&&(t--,e.splice(t,2,n))}}function Gd(e,t){return t.some((function(t){return t!==e&&t.containsRange(e,!0)}))}var Jd=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t?this._stack.findIndex((function(e){return e.batch==t})):this._stack.length-1,r=this._stack.splice(n,1)[0],i=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(i,(function(){e._undo(r.batch,i);var t=e.editor.model.document.history.getOperations(r.batch.baseVersion);e._restoreSelection(r.selection.ranges,r.selection.isBackward,t),e.fire("revert",r.batch,i)})),this.refresh()}}]),n}($d),Qd=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"execute",value:function(){var e=this,t=this._stack.pop(),n=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(n,(function(){var r=e.editor.model.document.history.getOperations(t.batch.operations[t.batch.operations.length-1].baseVersion+1);e._restoreSelection(t.selection.ranges,t.selection.isBackward,r),e._undo(t.batch,n)})),this.refresh()}}]),n}($d),Zd=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e))._batchRegistry=new WeakSet,r}return u(n,null,[{key:"pluginName",get:function(){return"UndoEditing"}}]),u(n,[{key:"init",value:function(){var e=this,t=this.editor;this._undoCommand=new Jd(t),this._redoCommand=new Qd(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(function(t,n){var r=n[0];if(r.isDocumentOperation){var i=r.batch,o=e._redoCommand._createdBatches.has(i),a=e._undoCommand._createdBatches.has(i);e._batchRegistry.has(i)||"transparent"==i.type&&!o&&!a||(o?e._undoCommand.addBatch(i):a||(e._undoCommand.addBatch(i),e._redoCommand.clearStack()),e._batchRegistry.add(i))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(t,n,r){e._redoCommand.addBatch(r)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}]),n}(Ge),Yd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',Xd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',eh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?Yd:Xd,i="ltr"==t.uiLanguageDirection?Xd:Yd;this._addButton("undo",n("Undo"),"CTRL+Z",r),this._addButton("redo",n("Redo"),"CTRL+Y",i)}},{key:"_addButton",value:function(e,t,n,r){var i=this,o=this.editor;o.ui.componentFactory.add(e,(function(a){var s=o.commands.get(e),l=new tu(a);return l.set({label:t,icon:r,keystroke:n,tooltip:!0}),l.bind("isEnabled").to(s,"isEnabled"),i.listenTo(l,"execute",(function(){o.execute(e),o.editing.view.focus()})),l}))}}],[{key:"pluginName",get:function(){return"UndoUI"}}]),n}(Ge),th=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Zd,eh]}},{key:"pluginName",get:function(){return"Undo"}}]),n}(Ge),nh=function(){function e(){var t=this;s(this,e);var n=new window.FileReader;this._reader=n,this._data=void 0,this.set("loaded",0),n.onprogress=function(e){t.loaded=e.loaded}}return u(e,[{key:"read",value:function(e){var t=this,n=this._reader;return this.total=e.size,new Promise((function(r,i){n.onload=function(){var e=n.result;t._data=e,r(e)},n.onerror=function(){i("error")},n.onabort=function(){i("aborted")},t._reader.readAsDataURL(e)}))}},{key:"abort",value:function(){this._reader.abort()}},{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}}]),e}();Ke(nh,Be);var rh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this;this.loaders=new vn,this.loaders.on("add",(function(){return e._updatePendingAction()})),this.loaders.on("remove",(function(){return e._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0}))}},{key:"getLoader",value:function(e){return this._loadersMap.get(e)||null}},{key:"createLoader",value:function(e){var t=this;if(!this.createUploadAdapter)return Object(C.b)("filerepository-no-upload-adapter"),null;var n=new ih(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(e,n),e instanceof Promise&&n.file.then((function(e){t._loadersMap.set(e,n)})).catch((function(){})),n.on("change:uploaded",(function(){var e,n=0,i=r(t.loaders);try{for(i.s();!(e=i.n()).done;){n+=e.value.uploaded}}catch(o){i.e(o)}finally{i.f()}t.uploaded=n})),n.on("change:uploadTotal",(function(){var e,n=0,i=r(t.loaders);try{for(i.s();!(e=i.n()).done;){var o=e.value;o.uploadTotal&&(n+=o.uploadTotal)}}catch(a){i.e(a)}finally{i.f()}t.uploadTotal=n})),n}},{key:"destroyLoader",value:function(e){var t=this,n=e instanceof ih?e:this.getLoader(e);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(e,r){e===n&&t._loadersMap.delete(r)}))}},{key:"_updatePendingAction",value:function(){var e=this.editor.plugins.get(bl);if(this.loaders.length){if(!this._pendingAction){var t=this.editor.t,n=function(e){return"".concat(t("Upload in progress")," ").concat(parseInt(e),"%.")};this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[bl]}}]),n}(Ge);Ke(rh,Be);var ih=function(){function e(t,n){s(this,e),this.id=_(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=n(this),this._reader=new nh,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0})),this.set("uploadResponse",null)}return u(e,[{key:"read",value:function(){var e=this;if("idle"!=this.status)throw new C.a("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((function(t){return e._reader.read(t)})).then((function(t){if("reading"!==e.status)throw e.status;return e.status="idle",t})).catch((function(t){if("aborted"===t)throw e.status="aborted","aborted";throw e.status="error",e._reader.error?e._reader.error:t}))}},{key:"upload",value:function(){var e=this;if("idle"!=this.status)throw new C.a("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((function(){return e._adapter.upload()})).then((function(t){return e.uploadResponse=t,e.status="idle",t})).catch((function(t){if("aborted"===e.status)throw"aborted";throw e.status="error",t}))}},{key:"abort",value:function(){var e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((function(){})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}},{key:"_destroy",value:function(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(e){var t={};return t.promise=new Promise((function(n,r){t.rejecter=r,t.isFulfilled=!1,e.then((function(e){t.isFulfilled=!0,n(e)})).catch((function(e){t.isFulfilled=!0,r(e)}))})),t}},{key:"file",get:function(){var e=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(t){return e._filePromiseWrapper?t:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}}]),e}();Ke(ih,Be);var oh=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).buttonView=new tu(e),r._fileInputView=new ah(e),r._fileInputView.bind("acceptedType").to(f(r)),r._fileInputView.bind("allowMultipleFiles").to(f(r)),r._fileInputView.delegate("done").to(f(r)),r.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[r.buttonView,r._fileInputView]}),r.buttonView.on("execute",(function(){r._fileInputView.open()})),r}return u(n,[{key:"focus",value:function(){this.buttonView.focus()}}]),n}(Ol),ah=function(e){c(n,e);var t=d(n);function n(e){var r;s(this,n),(r=t.call(this,e)).set("acceptedType"),r.set("allowMultipleFiles",!1);var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:i.to("acceptedType"),multiple:i.to("allowMultipleFiles")},on:{change:i.to((function(){r.element&&r.element.files&&r.element.files.length&&r.fire("done",r.element.files),r.element.value=""}))}}),r}return u(n,[{key:"open",value:function(){this.element.click()}}]),n}(Ol),sh=function(){function e(t,n,r){s(this,e),this.loader=t,this.url=n,this.t=r}return u(e,[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new Promise((function(n,r){e._initRequest(),e._initListeners(n,r,t),e._sendRequest(t)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}},{key:"_initListeners",value:function(e,t,n){var r=this.xhr,i=this.loader,o=(0,this.t)("Cannot upload file:")+" ".concat(n.name,".");r.addEventListener("error",(function(){return t(o)})),r.addEventListener("abort",(function(){return t()})),r.addEventListener("load",(function(){var n=r.response;if(!n||!n.uploaded)return t(n&&n.error&&n.error.message?n.error.message:o);e({default:n.url})})),r.upload&&r.upload.addEventListener("progress",(function(e){e.lengthComputable&&(i.uploadTotal=e.total,i.uploaded=e.loaded)}))}},{key:"_sendRequest",value:function(e){var t=new FormData;t.append("upload",e),t.append("ckCsrfToken",function(){var e,t=function(e){e=e.toLowerCase();var t,n=r(document.cookie.split(";"));try{for(n.s();!(t=n.n()).done;){var i=t.value.split("=");if(decodeURIComponent(i[0].trim().toLowerCase())===e)return decodeURIComponent(i[1])}}catch(o){n.e(o)}finally{n.f()}return null}("ckCsrfToken");return t&&40==t.length||(e=t=function(e){var t="",n=new Uint8Array(40);window.crypto.getRandomValues(n);for(var r=0;r<n.length;r++){var i="abcdefghijklmnopqrstuvwxyz0123456789".charAt(n[r]%"abcdefghijklmnopqrstuvwxyz0123456789".length);t+=Math.random()>.5?i.toUpperCase():i}return t}(),document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(e)+";path=/"),t}()),this.xhr.send(t)}}]),e}();function lh(e,t,n,r){var i,o=null;"function"==typeof r?i=r:(o=e.commands.get(r),i=function(){e.execute(r)}),e.model.document.on("change:data",(function(a,s){if((!o||o.isEnabled)&&t.isEnabled){var l=Ro(e.model.document.selection.getRanges());if(l.isCollapsed&&"transparent"!=s.type){var u=Array.from(e.model.document.differ.getChanges()),c=u[0];if(1==u.length&&"insert"===c.type&&"$text"==c.name&&1==c.length){var d=c.position.parent;if(!d.is("element","codeBlock")&&(!d.is("element","listItem")||"function"==typeof r||["numberedList","bulletedList","todoList"].includes(r))&&(!o||!0!==o.value)){var h=d.getChild(0),f=e.model.createRangeOn(h);if(f.containsRange(l)||l.end.isEqual(f.end)){var v=n.exec(h.data.substr(0,l.end.offset));v&&e.model.enqueueChange((function(t){var n=t.createPositionAt(d,0),r=t.createPositionAt(d,v[0].length),o=new pa(n,r);if(!1!==i({match:v})){t.remove(o);var a=e.model.document.selection.getFirstRange(),s=t.createRangeIn(d);!d.isEmpty||s.isEqual(a)||s.containsRange(a,!0)||t.remove(d)}o.detach()}))}}}}}}))}function uh(e,t,n,i){var o,a;n instanceof RegExp?o=n:a=n,a=a||function(e){for(var t,n=[],r=[];null!==(t=o.exec(e))&&!(t&&t.length<4);){var i=t,a=i.index,s=i[1],l=i[2],u=i[3],c=[(a+=t[0].length-(s+l+u).length)+s.length+l.length,a+s.length+l.length+u.length];n.push([a,a+s.length]),n.push(c),r.push([a+s.length,a+s.length+l.length])}return{remove:n,format:r}},e.model.document.on("change:data",(function(n,o){if("transparent"!=o.type&&t.isEnabled){var s=e.model,l=s.document.selection;if(l.isCollapsed){var u=Array.from(s.document.differ.getChanges()),c=u[0];if(1==u.length&&"insert"===c.type&&"$text"==c.name&&1==c.length){var d=l.focus,h=d.parent,f=function(e,t){var n=e.start;return{text:Array.from(e.getItems()).reduce((function(e,r){return!r.is("$text")&&!r.is("$textProxy")||r.getAttribute("code")?(n=t.createPositionAfter(r),""):e+r.data}),""),range:t.createRange(n,e.end)}}(s.createRange(s.createPositionAt(h,0),d),s),v=f.text,p=f.range,g=a(v),m=ch(p.start,g.format,s),y=ch(p.start,g.remove,s);m.length&&y.length&&s.enqueueChange((function(e){if(!1!==i(e,m)){var t,n=r(y.reverse());try{for(n.s();!(t=n.n()).done;){var o=t.value;e.remove(o)}}catch(a){n.e(a)}finally{n.f()}}}))}}}}))}function ch(e,t,n){return t.filter((function(e){return void 0!==e[0]&&void 0!==e[1]})).map((function(t){return n.createRange(e.getShiftedBy(t[0]),e.getShiftedBy(t[1]))}))}function dh(e,t){return function(n,i){if(!e.commands.get(t).isEnabled)return!1;var o,a=r(e.model.schema.getValidRanges(i,t));try{for(a.s();!(o=a.n()).done;){var s=o.value;n.setAttribute(t,!0,s)}}catch(l){a.e(l)}finally{a.f()}n.removeSelectionAttribute(t)}}var hh=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).attributeKey=r,i}return u(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,o=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(i.isCollapsed)o?t.setSelectionAttribute(e.attributeKey,!0):t.removeSelectionAttribute(e.attributeKey);else{var a,s=r(n.schema.getValidRanges(i.getRanges(),e.attributeKey));try{for(s.s();!(a=s.n()).done;){var l=a.value;o?t.setAttribute(e.attributeKey,o,l):t.removeAttribute(e.attributeKey,l)}}catch(u){s.e(u)}finally{s.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var i,o=r(n.getRanges());try{for(o.s();!(i=o.n()).done;){var a,s=r(i.value.getItems());try{for(s.s();!(a=s.n()).done;){var l=a.value;if(t.checkAttribute(l,this.attributeKey))return l.hasAttribute(this.attributeKey)}}catch(u){s.e(u)}finally{s.f()}}}catch(u){o.e(u)}finally{o.f()}return!1}}]),n}(Qe),fh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"bold"}),e.model.schema.setAttributeProperties("bold",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"bold",view:"strong",upcastAlso:["b",function(e){var t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add("bold",new hh(e,"bold")),e.keystrokes.set("CTRL+B","bold")}}],[{key:"pluginName",get:function(){return"BoldEditing"}}]),n}(Ge),vh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("bold",(function(r){var i=t.commands.get("bold"),o=new tu(r);return o.set({label:n("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute("bold"),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"BoldUI"}}]),n}(Ge),ph=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"italic"}),e.model.schema.setAttributeProperties("italic",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"italic",view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add("italic",new hh(e,"italic")),e.keystrokes.set("CTRL+I","italic")}}],[{key:"pluginName",get:function(){return"ItalicEditing"}}]),n}(Ge),gh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("italic",(function(r){var i=t.commands.get("italic"),o=new tu(r);return o.set({label:n("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute("italic"),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"ItalicUI"}}]),n}(Ge),mh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.schema,i=Array.from(n.document.selection.getSelectedBlocks()),o=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(o){var n=i.filter((function(e){return yh(e)||bh(r,e)}));e._applyQuote(t,n)}else e._removeQuote(t,i.filter(yh))}))}},{key:"_getValue",value:function(){var e=Ro(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!yh(e))}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.schema,t=Ro(this.editor.model.document.selection.getSelectedBlocks());return!!t&&bh(e,t)}},{key:"_removeQuote",value:function(e,t){kh(e,t).reverse().forEach((function(t){if(t.start.isAtStart&&t.end.isAtEnd)e.unwrap(t.start.parent);else if(t.start.isAtStart){var n=e.createPositionBefore(t.start.parent);e.move(t,n)}else{t.end.isAtEnd||e.split(t.end);var r=e.createPositionAfter(t.end.parent);e.move(t,r)}}))}},{key:"_applyQuote",value:function(e,t){var n=[];kh(e,t).reverse().forEach((function(t){var r=yh(t.start);r||(r=e.createElement("blockQuote"),e.wrap(t,r)),n.push(r)})),n.reverse().reduce((function(t,n){return t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n}))}}]),n}(Qe);function yh(e){return"blockQuote"==e.parent.name?e.parent:null}function kh(e,t){for(var n,r=0,i=[];r<t.length;){var o=t[r],a=t[r+1];n||(n=e.createPositionBefore(o)),a&&o.nextSibling==a||(i.push(e.createRange(n,e.createPositionAfter(o))),n=null),r++}return i}function bh(e,t){var n=e.checkChild(t.parent,"blockQuote"),r=e.checkChild(["$root","blockQuote"],t);return n&&r}var _h=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new mh(e)),t.register("blockQuote",{allowWhere:"$block",allowContentOf:"$root"}),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer((function(n){var i,o=r(e.model.document.differ.getChanges());try{for(o.s();!(i=o.n()).done;){var a=i.value;if("insert"==a.type){var s=a.position.nodeAfter;if(!s)continue;if(s.is("element","blockQuote")&&s.isEmpty)return n.remove(s),!0;if(s.is("element","blockQuote")&&!t.checkChild(a.position,s))return n.unwrap(s),!0;if(s.is("element")){var l,u=r(n.createRangeIn(s).getItems());try{for(u.s();!(l=u.n()).done;){var c=l.value;if(c.is("element","blockQuote")&&!t.checkChild(n.createPositionBefore(c),c))return n.unwrap(c),!0}}catch(h){u.e(h)}finally{u.f()}}}else if("remove"==a.type){var d=a.position.parent;if(d.is("element","blockQuote")&&d.isEmpty)return n.remove(d),!0}}}catch(h){o.e(h)}finally{o.f()}return!1}));var n=this.editor.editing.view.document,i=e.model.document.selection,o=e.commands.get("blockQuote");this.listenTo(n,"enter",(function(t,n){i.isCollapsed&&o.value&&i.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())}),{context:"blockquote"}),this.listenTo(n,"delete",(function(t,n){if("backward"==n.direction&&i.isCollapsed&&o.value){var r=i.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())}}),{context:"blockquote"})}}],[{key:"pluginName",get:function(){return"BlockQuoteEditing"}},{key:"requires",get:function(){return[Cc,Ec]}}]),n}(Ge);l(69);var wh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("blockQuote",(function(r){var i=t.commands.get("blockQuote"),o=new tu(r);return o.set({label:n("Block quote"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute("blockQuote"),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"BlockQuoteUI"}}]),n}(Ge),Ch=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.t;e.ui.componentFactory.add("ckfinder",(function(n){var r=e.commands.get("ckfinder"),i=new tu(n);return i.set({label:t("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),i.bind("isEnabled").to(r),i.on("execute",(function(){e.execute("ckfinder"),e.editing.view.focus()})),i}))}}],[{key:"pluginName",get:function(){return"CKFinderUI"}}]),n}(Ge),xh=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).stopListening(r.editor.model.document,"change"),r.listenTo(r.editor.model.document,"change",(function(){return r.refresh()}),{priority:"low"}),r}return u(n,[{key:"refresh",value:function(){var e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}},{key:"execute",value:function(){var e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=t&&"modal"!=t)throw new C.a("ckfinder-unknown-openermethod",e);var n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;var i=n.onInit;n.language||(n.language=e.locale.uiLanguage),n.onInit=function(t){i&&i(t),t.on("files:choose",(function(n){var i,o=n.data.files.toArray(),a=o.filter((function(e){return!e.isImage()})),s=o.filter((function(e){return e.isImage()})),l=r(a);try{for(l.s();!(i=l.n()).done;){var u=i.value;e.execute("link",u.getUrl())}}catch(p){l.e(p)}finally{l.f()}var c,d=[],h=r(s);try{for(h.s();!(c=h.n()).done;){var f=c.value,v=f.getUrl();d.push(v||t.request("file:getProxyUrl",{file:f}))}}catch(p){h.e(p)}finally{h.f()}d.length&&Sh(e,d)})),t.on("file:choose:resizedImage",(function(t){var n=t.data.resizedUrl;if(n)Sh(e,[n]);else{var r=e.plugins.get("Notification"),i=e.locale.t;r.showWarning(i("Could not obtain resized image URL."),{title:i("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[t](n)}}]),n}(Qe);function Sh(e,t){if(e.commands.get("insertImage").isEnabled)e.execute("insertImage",{source:t});else{var n=e.plugins.get("Notification"),r=e.locale.t;n.showWarning(r("Could not insert image at the current position."),{title:r("Inserting image failed"),namespace:"ckfinder"})}}var Ah=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("ckfinder",new xh(e))}}],[{key:"pluginName",get:function(){return"CKFinderEditing"}},{key:"requires",get:function(){return[Nu,"ImageEditing","LinkEditing"]}}]),n}(Ge),Eh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.plugins.get("CloudServices"),r=n.token,i=n.uploadUrl;r&&(this._uploadGateway=t.plugins.get("CloudServicesCore").createUploadGateway(r,i),t.plugins.get(rh).createUploadAdapter=function(t){return new Th(e._uploadGateway,t)})}}],[{key:"pluginName",get:function(){return"CloudServicesUploadAdapter"}},{key:"requires",get:function(){return["CloudServices",rh]}}]),n}(Ge),Th=function(){function e(t,n){s(this,e),this.uploadGateway=t,this.loader=n}return u(e,[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return e.fileUploader=e.uploadGateway.upload(t),e.fileUploader.on("progress",(function(t,n){e.loader.uploadTotal=n.total,e.loader.uploaded=n.uploaded})),e.fileUploader.send()}))}},{key:"abort",value:function(){this.fileUploader.abort()}}]),e}(),Ph=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=this.editor.model,t=Ro(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&Rh(t,e.schema)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document;t.change((function(i){var o,a=r((e.selection||n.selection).getSelectedBlocks());try{for(a.s();!(o=a.n()).done;){var s=o.value;!s.is("element","paragraph")&&Rh(s,t.schema)&&i.rename(s,"paragraph")}}catch(l){a.e(l)}finally{a.f()}}))}}]),n}(Qe);function Rh(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}var Ih=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"execute",value:function(e){var t=this.editor.model,n=e.position;t.change((function(e){var r=e.createElement("paragraph");if(!t.schema.checkChild(n.parent,r)){var i=t.schema.findAllowedParent(n,r);if(!i)return;n=e.split(n,i).position}t.insertContent(r,n),e.setSelection(r,"in")}))}}]),n}(Qe),Oh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.model;e.commands.add("paragraph",new Ph(e)),e.commands.add("insertParagraph",new Ih(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:function(e,t){var r=t.writer;return n.paragraphLikeElements.has(e.name)?e.isEmpty?null:r.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}]),n}(Ge);Oh.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var Mh=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).modelElements=r,i}return u(n,[{key:"refresh",value:function(){var e=this,t=Ro(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((function(n){return Nh(t,n,e.editor.model.schema)}))}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document,i=e.value;t.change((function(e){var o,a=r(Array.from(n.selection.getSelectedBlocks()).filter((function(e){return Nh(e,i,t.schema)})));try{for(a.s();!(o=a.n()).done;){var s=o.value;s.is("element",i)||e.rename(s,i)}}catch(l){a.e(l)}finally{a.f()}}))}}]),n}(Qe);function Nh(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}var Lh=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),r=t.call(this,e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]}),r}return u(n,null,[{key:"pluginName",get:function(){return"HeadingEditing"}}]),u(n,[{key:"init",value:function(){var e,t=this.editor,n=[],i=r(t.config.get("heading.options"));try{for(i.s();!(e=i.n()).done;){var o=e.value;"paragraph"!==o.model&&(t.model.schema.register(o.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(o),n.push(o.model))}}catch(a){i.e(a)}finally{i.f()}this._addDefaultH1Conversion(t),t.commands.add("heading",new Mh(t,n))}},{key:"afterInit",value:function(){var e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(function(t,r){var i=e.model.document.selection.getFirstPosition().parent;n.some((function(e){return i.is("element",e.model)}))&&!i.is("element","paragraph")&&0===i.childCount&&r.writer.rename(i,"paragraph")}))}},{key:"_addDefaultH1Conversion",value:function(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:w.get("low")+1})}}],[{key:"requires",get:function(){return[Oh]}}]),n}(Ge);l(12);var Dh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,i=function(e){var t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((function(e){var t=n[e.title];return t&&t!=e.title&&(e.title=t),e}))}(t),o=n("Choose heading"),a=n("Heading");t.ui.componentFactory.add("heading",(function(n){var s,l={},u=new vn,c=t.commands.get("heading"),d=t.commands.get("paragraph"),h=[c],f=r(i);try{var v=function(){var e=s.value,t={type:"button",model:new Lu({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(d,"value"),t.model.set("commandName","paragraph"),h.push(d)):(t.model.bind("isOn").to(c,"value",(function(t){return t===e.model})),t.model.set({commandName:"heading",commandValue:e.model})),u.add(t),l[e.model]=e.title};for(f.s();!(s=f.n()).done;)v()}catch(g){f.e(g)}finally{f.f()}var p=xu(n);return Au(p,u),p.buttonView.set({isOn:!1,withText:!0,tooltip:a}),p.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),p.bind("isEnabled").toMany(h,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),p.buttonView.bind("label").to(c,"value",d,"value",(function(e,t){var n=e||t&&"paragraph";return l[n]?l[n]:o})),e.listenTo(p,"execute",(function(e){t.execute(e.source.commandName,e.source.commandValue?{value:e.source.commandValue}:void 0),t.editing.view.focus()})),p}))}}],[{key:"pluginName",get:function(){return"HeadingUI"}}]),n}(Ge),jh=function(e){c(i,e);var n=d(i);function i(){return s(this,i),n.apply(this,arguments)}return u(i,[{key:"init",value:function(){var e=this,t=this.editor;if(t.plugins.has("BalloonToolbar")){var n=t.plugins.get("BalloonToolbar");this.listenTo(n,"show",(function(e){(function(e){var t=e.getSelectedElement();return!(!t||!Oc(t))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(function(){e._updateToolbarsVisibility()}),{priority:"low"})}},{key:"destroy",value:function(){t(y(i.prototype),"destroy",this).call(this);var e,n=r(this._toolbarDefinitions.values());try{for(n.s();!(e=n.n()).done;){e.value.view.destroy()}}catch(o){n.e(o)}finally{n.f()}}},{key:"register",value:function(e,t){var n=t.ariaLabel,r=t.items,i=t.getRelatedElement,o=t.balloonClassName,a=void 0===o?"ck-toolbar-container":o;if(r.length){var s=this.editor,l=s.t,u=new mu(s.locale);if(u.ariaLabel=n||l("Widget toolbar"),this._toolbarDefinitions.has(e))throw new C.a("widget-toolbar-duplicated",this,{toolbarId:e});u.fillFromConfig(r,s.ui.componentFactory),this._toolbarDefinitions.set(e,{view:u,getRelatedElement:i,balloonClassName:a})}else Object(C.b)("widget-toolbar-no-items",{toolbarId:e})}},{key:"_updateToolbarsVisibility",value:function(){var e,t=0,n=null,i=null,o=r(this._toolbarDefinitions.values());try{for(o.s();!(e=o.n()).done;){var a=e.value,s=a.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&s)if(this.editor.ui.focusTracker.isFocused){var l=s.getAncestors().length;l>t&&(t=l,n=s,i=a)}else this._isToolbarVisible(a)&&this._hideToolbar(a);else this._isToolbarInBalloon(a)&&this._hideToolbar(a)}}catch(u){o.e(u)}finally{o.f()}i&&this._showToolbar(i,n)}},{key:"_hideToolbar",value:function(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(e,t){var n=this;this._isToolbarVisible(e)?Fh(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:Vh(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var e,t=r(n._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){var i=e.value;if(n._isToolbarVisible(i)){var o=i.getRelatedElement(n.editor.editing.view.document.selection);Fh(n.editor,o)}}}catch(a){t.e(a)}finally{t.f()}})))}},{key:"_isToolbarVisible",value:function(e){return this._balloon.visibleView===e.view}},{key:"_isToolbarInBalloon",value:function(e){return this._balloon.hasView(e.view)}}],[{key:"requires",get:function(){return[Uu]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}]),i}(Ge);function Fh(e,t){var n=e.plugins.get("ContextualBalloon"),r=Vh(e,t);n.updatePosition(r)}function Vh(e,t){var n=Fu.defaultPositions;return{target:e.editing.view.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,Bc]}}var zh=function(){function e(t){s(this,e),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}return u(e,[{key:"begin",value:function(e,t,n){var r=new xo(t);this.activeHandlePosition=function(e){for(var t=0,n=["top-left","top-right","bottom-right","bottom-left"];t<n.length;t++){var r=n[t];if(e.classList.contains("ck-widget__resizer__handle-"+r))return r}}(e),this._referenceCoordinates=function(e,t){var n=new xo(e),r=t.split("-"),i={x:"right"==r[1]?n.right:n.left,y:"bottom"==r[0]?n.bottom:n.top};return i.x+=e.ownerDocument.defaultView.scrollX,i.y+=e.ownerDocument.defaultView.scrollY,i}(t,function(e){var t=e.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return"".concat(n[t[0]],"-").concat(n[t[1]])}(this.activeHandlePosition)),this.originalWidth=r.width,this.originalHeight=r.height,this.aspectRatio=r.width/r.height;var i=n.style.width;this.originalWidthPercents=i&&i.match(/^\d+(\.\d*)?%$/)?parseFloat(i):function(e,t){var n=e.parentElement,r=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return t.width/r*100}(n,r)}},{key:"update",value:function(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}]),e}();Ke(zh,Be);var Bh=function(){function e(t){var n=this;s(this,e),this._options=t,this._domResizerWrapper=null,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(function(e){n.state.proposedWidth||n.state.proposedWidthPercents||(n._cleanup(),e.stop())}),{priority:"high"}),this.on("change:isEnabled",(function(){n.isEnabled&&n.redraw()}))}return u(e,[{key:"attach",value:function(){var e=this,t=this,n=this._options.viewElement;this._options.editor.editing.view.change((function(r){var i=r.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(e){var n=this.toDomElement(e);return t._appendHandles(n),t._appendSizeUI(n),t._domResizerWrapper=n,t.on("change:isEnabled",(function(e,t,r){n.style.display=r?"":"none"})),n.style.display=t.isEnabled?"":"none",n}));r.insert(r.createPositionAt(n,"end"),i),r.addClass("ck-widget_with-resizer",n),e._viewResizerWrapper=i}))}},{key:"begin",value:function(e){this.state=new zh(this._options),this._sizeUI.bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}},{key:"updateSize",value:function(e){var t=this,n=this._proposeNewSize(e);this._options.editor.editing.view.change((function(e){var r=t._options.unit||"%";e.setStyle("width",("%"===r?n.widthPercents:n.width)+r,t._options.viewElement)}));var r=this._getHandleHost(),i=new xo(r);n.handleHostWidth=Math.round(i.width),n.handleHostHeight=Math.round(i.height);var o=new xo(r);n.width=Math.round(o.width),n.height=Math.round(o.height),this.redraw(i),this.state.update(n)}},{key:"commit",value:function(){var e=this,t=this._options.unit||"%",n=("%"===t?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change((function(){e._cleanup(),e._options.onCommit(n)}))}},{key:"cancel",value:function(){this._cleanup()}},{key:"destroy",value:function(){this.cancel()}},{key:"redraw",value:function(e){var t=this._domResizerWrapper;if((n=t)&&n.ownerDocument&&n.ownerDocument.contains(n)){var n,r,i=t.parentElement,o=this._getHandleHost(),a=this._viewResizerWrapper,s=[a.getStyle("width"),a.getStyle("height"),a.getStyle("left"),a.getStyle("top")];if(i.isSameNode(o)){var l=e||new xo(o);r=[l.width+"px",l.height+"px",void 0,void 0]}else r=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];"same"!==wn(s,r)&&this._options.editor.editing.view.change((function(e){e.setStyle({width:r[0],height:r[1],left:r[2],top:r[3]},a)}))}}},{key:"containsHandle",value:function(e){return this._domResizerWrapper.contains(e)}},{key:"_cleanup",value:function(){var e=this;this._sizeUI.dismiss(),this._sizeUI.isVisible=!1,this._options.editor.editing.view.change((function(t){t.setStyle("width",e._initialViewWidth,e._options.viewElement)}))}},{key:"_proposeNewSize",value:function(e){var t,n=this.state,r=(t=e).pageX,i=t.pageY,o=!this._options.isCentered||this._options.isCentered(this),a={x:n._referenceCoordinates.x-(r+n.originalWidth),y:i-n.originalHeight-n._referenceCoordinates.y};o&&n.activeHandlePosition.endsWith("-right")&&(a.x=r-(n._referenceCoordinates.x+n.originalWidth)),o&&(a.x*=2);var s={width:Math.abs(n.originalWidth+a.x),height:Math.abs(n.originalHeight+a.y)};s.dominant=s.width/n.aspectRatio>s.height?"width":"height",s.max=s[s.dominant];var l={width:s.width,height:s.height};return"width"==s.dominant?l.height=l.width/n.aspectRatio:l.width=l.height*n.aspectRatio,{width:Math.round(l.width),height:Math.round(l.height),widthPercents:Math.min(Math.round(n.originalWidthPercents/n.originalWidth*l.width*100)/100,100)}}},{key:"_getResizeHost",value:function(){return this._options.getResizeHost(this._domResizerWrapper.parentElement)}},{key:"_getHandleHost",value:function(){return this._options.getHandleHost(this._domResizerWrapper.parentElement)}},{key:"_appendHandles",value:function(e){for(var t,n=0,r=["top-left","top-right","bottom-right","bottom-left"];n<r.length;n++){var i=r[n];e.appendChild(new Ml({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(t=i,"ck-widget__resizer__handle-"+t)}}).render())}}},{key:"_appendSizeUI",value:function(e){var t=new Hh;t.render(),this._sizeUI=t,e.appendChild(t.element)}}],[{key:"isResizeHandle",value:function(e){return e.classList.contains("ck-widget__resizer__handle")}}]),e}();Ke(Bh,Be);var Hh=function(e){c(n,e);var t=d(n);function n(){var e;s(this,n);var r=(e=t.call(this)).bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",r.to("activeHandlePosition",(function(e){return e?"ck-orientation-"+e:""}))],style:{display:r.if("isVisible","none",(function(e){return!e}))}},children:[{text:r.to("label")}]}),e}return u(n,[{key:"bindToState",value:function(e,t){this.bind("isVisible").to(t,"proposedWidth",t,"proposedHeight",(function(e,t){return null!==e&&null!==t})),this.bind("label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(function(t,n,r){return"px"===e.unit?"".concat(t,"\xd7").concat(n):r+"%"})),this.bind("activeHandlePosition").to(t)}},{key:"dismiss",value:function(){this.unbind(),this.isVisible=!1}}]),n}(Ol);l(72),Ke(function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map;var t=Ci.window.document;this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0}),this.editor.editing.view.addObserver(cc),this._observer=Object.create(Ni),this.listenTo(this.editor.editing.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this));var n=function(){e.visibleResizer&&e.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=td(n,200),this.on("change:visibleResizer",n),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this._observer.listenTo(Ci.window,"resize",this._redrawFocusedResizerThrottled);var r=this.editor.editing.view.document.selection;r.on("change",(function(){var t=r.getSelectedElement();e.visibleResizer=e.getResizerByViewElement(t)||null}))}},{key:"destroy",value:function(){this._observer.stopListening();var e,t=r(this._resizers.values());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}this._redrawFocusedResizerThrottled.cancel()}},{key:"attachTo",value:function(e){var t=new Bh(e),n=this.editor.plugins;if(t.attach(),n.has("WidgetToolbarRepository")){var r=n.get("WidgetToolbarRepository");t.on("begin",(function(){r.forceDisabled("resize")}),{priority:"lowest"}),t.on("cancel",(function(){r.clearForceDisabled("resize")}),{priority:"highest"}),t.on("commit",(function(){r.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(e.viewElement,t);var i=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(i)==t&&(this.visibleResizer=t),t}},{key:"getResizerByViewElement",value:function(e){return this._resizers.get(e)}},{key:"_getResizerByHandle",value:function(e){var t,n=r(this._resizers.values());try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.containsHandle(e))return i}}catch(o){n.e(o)}finally{n.f()}}},{key:"_mouseDownListener",value:function(e,t){var n=t.domTarget;Bh.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),e.stop(),t.preventDefault()))}},{key:"_mouseMoveListener",value:function(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}},{key:"_mouseUpListener",value:function(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}],[{key:"pluginName",get:function(){return"WidgetResize"}}]),n}(Ge),Be);var Uh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"observe",value:function(e){var t=this;this.listenTo(e,"load",(function(e,n){var r=n.target;t.checkShouldIgnoreEventFromTarget(r)||"IMG"==r.tagName&&t._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}]),n}(ji);function qh(e){return!!e.getCustomProperty("image")&&Oc(e)}function Wh(e){var t=e.getSelectedElement();return t&&qh(t)?t:null}function $h(e){return!!e&&e.is("element","image")}function Kh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.change((function(r){var i=r.createElement("image",t),o=n||Vc(e.document.selection,e);e.insertContent(i,o),i.parent&&r.setSelection(i,"on")}))}function Gh(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var r=function(e,t){var n=Vc(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(r,"image")}(n,t,e)&&!zc(n,t)&&function(e){return i(e.focus.getAncestors()).every((function(e){return!e.is("element","image")}))}(n)}function Jh(e){var t,n=[],o=r(e.getChildren());try{for(o.s();!(t=o.n()).done;){var a=t.value;n.push(a),a.is("element")&&n.push.apply(n,i(a.getChildren()))}}catch(s){o.e(s)}finally{o.f()}return n.find((function(e){return e.is("element","img")}))}function Qh(e){return function(n){n.on("attribute:".concat(e,":image"),t)};function t(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=Jh(n.mapper.toViewElement(t.item));r.setAttribute(t.attributeKey,t.attributeNewValue||"",i)}}}var Zh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){this.isEnabled=Gh(this.editor.model)}},{key:"execute",value:function(e){var t,n=this.editor.model,i=r(gn(e.source));try{for(i.s();!(t=i.n()).done;){Kh(n,{src:t.value})}}catch(o){i.e(o)}finally{i.f()}}}]),n}(Qe),Yh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion;e.editing.view.addObserver(Uh),t.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),r.for("dataDowncast").elementToElement({model:"image",view:function(e,t){return Xh(t.writer)}}),r.for("editingDowncast").elementToElement({model:"image",view:function(e,t){var r=t.writer;return function(e,t,n){return t.setCustomProperty("image",!0,e),Mc(e,t,{label:function(){var t=Jh(e).getAttribute("alt");return t?"".concat(t," ").concat(n):n}})}(Xh(r),r,n("image widget"))}}),r.for("downcast").add(Qh("src")).add(Qh("alt")).add(function(){return function(t){t.on("attribute:srcset:image",e)};function e(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=Jh(n.mapper.toViewElement(t.item));if(null===t.attributeNewValue){var o=t.attributeOldValue;o.data&&(r.removeAttribute("srcset",i),r.removeAttribute("sizes",i),o.width&&r.removeAttribute("width",i))}else{var a=t.attributeNewValue;a.data&&(r.setAttribute("srcset",a.data,i),r.setAttribute("sizes","100vw",i),a.width&&r.setAttribute("width",a.width,i))}}}}()),r.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:function(e,t){return t.writer.createElement("image",{src:e.getAttribute("src")})}}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(e){var t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}}).add(function(){return function(t){t.on("element:figure",e)};function e(e,t,n){if(n.consumable.test(t.viewItem,{name:!0,classes:"image"})){var r=Jh(t.viewItem);if(r&&r.hasAttribute("src")&&n.consumable.test(r,{name:!0})){var i=Ro(n.convertItem(r,t.modelCursor).modelRange.getItems());i&&(n.convertChildren(t.viewItem,i),n.updateConversionResult(i,t))}}}}());var i=new Zh(e);e.commands.add("insertImage",i),e.commands.add("imageInsert",i)}}],[{key:"pluginName",get:function(){return"ImageEditing"}}]),n}(Ge);function Xh(e){var t=e.createEmptyElement("img"),n=e.createContainerElement("figure",{class:"image"});return e.insert(e.createPositionAt(n,0),t),n}var ef=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=$h(e),this.value=!(!$h(e)||!e.hasAttribute("alt"))&&e.getAttribute("alt")}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();t.change((function(t){t.setAttribute("alt",e.newValue,n)}))}}]),n}(Qe),tf=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new ef(this.editor))}}],[{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}]),n}(Ge);l(74),l(10);var nf=function(e){c(r,e);var n=d(r);function r(e){var t;s(this,r);var i=(t=n.call(this,e)).locale.t;return t.focusTracker=new Io,t.keystrokes=new Oo,t.labeledInput=t._createLabeledInputView(),t.saveButtonView=t._createButton(i("Save"),wl,"ck-button-save"),t.saveButtonView.type="submit",t.cancelButtonView=t._createButton(i("Cancel"),_l,"ck-button-cancel","cancel"),t._focusables=new Il,t._focusCycler=new ru({focusables:t._focusables,focusTracker:t.focusTracker,keystrokeHandler:t.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),t.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[t.labeledInput,t.saveButtonView,t.cancelButtonView]}),Pl(f(t)),t}return u(r,[{key:"render",value:function(){var e=this;t(y(r.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),Rl({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)}))}},{key:"_createButton",value:function(e,t,n,r){var i=new tu(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createLabeledInputView",value:function(){var e=this.locale.t,t=new Ou(this.locale,Mu);return t.label=e("Text alternative"),t}}]),r}(Ol);function rf(e){var t=e.editing.view,n=Fu.defaultPositions;return{target:t.domConverter.viewToDom(t.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}var of=function(e){c(r,e);var n=d(r);function r(){return s(this,r),n.apply(this,arguments)}return u(r,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){t(y(r.prototype),"destroy",this).call(this),this._form.destroy()}},{key:"_createButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("imageTextAlternative",(function(r){var i=t.commands.get("imageTextAlternative"),o=new tu(r);return o.set({label:n("Change image text alternative"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),e.listenTo(o,"execute",(function(){e._showForm()})),o}))}},{key:"_createForm",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new nf(t.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){t.execute("imageTextAlternative",{newValue:e._form.labeledInput.fieldView.element.value}),e._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){e._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(t,n){e._hideForm(!0),n()})),this.listenTo(t.ui,"update",(function(){Wh(n.selection)?e._isVisible&&function(e){var t=e.plugins.get("ContextualBalloon");if(Wh(e.editing.view.document.selection)){var n=rf(e);t.updatePosition(n)}}(t):e._hideForm(!0)})),Tl({emitter:this._form,activator:function(){return e._isVisible},contextElements:[this._balloon.view.element],callback:function(){return e._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){var e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:rf(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}}},{key:"_hideForm",value:function(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}},{key:"_isVisible",get:function(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[Uu]}},{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}]),r}(Ge),af=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[tf,of]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}]),n}(Ge);l(77);var sf=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).defaultStyle=!1,i.styles=r.reduce((function(e,t){return e[t.name]=t,t.isDefault&&(i.defaultStyle=t.name),e}),{}),i}return u(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=$h(e),e)if(e.hasAttribute("imageStyle")){var t=e.getAttribute("imageStyle");this.value=!!this.styles[t]&&t}else this.value=this.defaultStyle;else this.value=!1}},{key:"execute",value:function(e){var t=this,n=e.value,r=this.editor.model,i=r.document.selection.getSelectedElement();r.change((function(e){t.styles[n].isDefault?e.removeAttribute("imageStyle",i):e.setAttribute("imageStyle",n,i)}))}}]),n}(Qe);function lf(e,t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.name===e)return o}}catch(a){i.e(a)}finally{i.f()}}var uf={full:{name:"full",title:"Full size image",icon:El,isDefault:!0},side:{name:"side",title:"Side image",icon:Al,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:xl,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:Sl,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:Al,className:"image-style-align-right"}},cf={full:El,left:xl,right:Al,center:Sl};function df(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(hf)}function hf(e){if("string"==typeof e){var t=e;uf[t]?e=Object.assign({},uf[t]):(Object(C.b)("image-style-not-found",{name:t}),e={name:t})}else if(uf[e.name]){var n=uf[e.name],r=Object.assign({},e);for(var i in n)Object.prototype.hasOwnProperty.call(e,i)||(r[i]=n[i]);e=r}return"string"==typeof e.icon&&cf[e.icon]&&(e.icon=cf[e.icon]),e}var ff=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.data,i=e.editing;e.config.define("image.styles",["full","side"]);var o=df(e.config.get("image.styles"));t.extend("image",{allowAttributes:"imageStyle"});var a=function(e){return function(t,n,r){if(r.consumable.consume(n.item,t.name)){var i=lf(n.attributeNewValue,e),o=lf(n.attributeOldValue,e),a=r.mapper.toViewElement(n.item),s=r.writer;o&&s.removeClass(o.className,a),i&&s.addClass(i.className,a)}}}(o);i.downcastDispatcher.on("attribute:imageStyle:image",a),n.downcastDispatcher.on("attribute:imageStyle:image",a),n.upcastDispatcher.on("element:figure",function(e){var t=e.filter((function(e){return!e.isDefault}));return function(e,n,i){if(n.modelRange){var o=n.viewItem,a=Ro(n.modelRange.getItems());if(!a||i.schema.checkAttribute(a,"imageStyle")){var s,l=r(t);try{for(l.s();!(s=l.n()).done;){var u=s.value;i.consumable.consume(o,{classes:u.className})&&i.writer.setAttribute("imageStyle",u.name,a)}}catch(c){l.e(c)}finally{l.f()}}}}}(o),{priority:"low"}),e.commands.add("imageStyle",new sf(e,o))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}}]),n}(Ge);l(79);var vf=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e,t=function(e,t){var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;t[o.title]&&(o.title=t[o.title])}}catch(a){i.e(a)}finally{i.f()}return e}(df(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles),n=r(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._createButton(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"_createButton",value:function(e){var t=this,n=this.editor;n.ui.componentFactory.add("imageStyle:"+e.name,(function(r){var i=n.commands.get("imageStyle"),o=new tu(r);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",(function(t){return t===e.name})),t.listenTo(o,"execute",(function(){n.execute("imageStyle",{value:e.name}),n.editing.view.focus()})),o}))}},{key:"localizedDefaultStylesTitles",get:function(){var e=this.editor.t;return{"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}}],[{key:"pluginName",get:function(){return"ImageStyleUI"}}]),n}(Ge);function pf(e){var t=e.map((function(e){return e.replace("+","\\+")}));return new RegExp("^image\\/(".concat(t.join("|"),")$"))}function gf(e){return new Promise((function(t,n){var r=e.getAttribute("src");fetch(r).then((function(e){return e.blob()})).then((function(e){var n=mf(e,r),i=n.replace("image/",""),o=new File([e],"image."+i,{type:n});t(o)})).catch((function(e){return e&&"TypeError"===e.name?function(e){return function(e){return new Promise((function(t,n){var r=Ci.document.createElement("img");r.addEventListener("load",(function(){var e=Ci.document.createElement("canvas");e.width=r.width,e.height=r.height,e.getContext("2d").drawImage(r,0,0),e.toBlob((function(e){return e?t(e):n()}))})),r.addEventListener("error",(function(){return n()})),r.src=e}))}(e).then((function(t){var n=mf(t,e),r=n.replace("image/","");return new File([t],"image."+r,{type:n})}))}(r).then(t).catch(n):n(e)}))}))}function mf(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}var yf=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.t,n=function(n){var r=new oh(n),i=e.commands.get("uploadImage"),o=e.config.get("image.upload.types"),a=pf(o);return r.set({acceptedType:o.map((function(e){return"image/"+e})).join(","),allowMultipleFiles:!0}),r.buttonView.set({label:t("Insert image"),icon:Cl,tooltip:!0}),r.buttonView.bind("isEnabled").to(i),r.on("done",(function(t,n){var r=Array.from(n).filter((function(e){return a.test(e.type)}));r.length&&e.execute("uploadImage",{file:r})})),r};e.ui.componentFactory.add("uploadImage",n),e.ui.componentFactory.add("imageUpload",n)}}],[{key:"pluginName",get:function(){return"ImageUploadUI"}}]),n}(Ge);l(81),l(83),l(85);var kf=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>'),r}return u(n,null,[{key:"pluginName",get:function(){return"ImageUploadProgress"}}]),u(n,[{key:"init",value:function(){var e=this;this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(function(){return e.uploadStatusChange.apply(e,arguments)}))}},{key:"uploadStatusChange",value:function(e,t,n){var r=this.editor,i=t.item,o=i.getAttribute("uploadId");if(n.consumable.consume(t.item,e.name)){var a=r.plugins.get(rh),s=o?t.attributeNewValue:null,l=this.placeholder,u=r.editing.mapper.toViewElement(i),c=n.writer;if("reading"==s)return bf(u,c),void _f(l,u,c);if("uploading"==s){var d=a.loaders.get(o);return bf(u,c),void(d?(wf(u,c),function(e,t,n,r){var i=function(e){var t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),i),n.on("change:uploadedPercent",(function(e,t,n){r.change((function(e){e.setStyle("width",n+"%",i)}))}))}(u,c,d,r.editing.view),function(e,t,n){if(n.data){var r=Jh(e);t.setAttribute("src",n.data,r)}}(u,c,d)):_f(l,u,c))}"complete"==s&&a.loaders.get(o)&&function(e,t,n){var r=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),r),setTimeout((function(){n.change((function(e){return e.remove(e.createRangeOn(r))}))}),3e3)}(u,c,r.editing.view),function(e,t){xf(e,t,"progressBar")}(u,c),wf(u,c),function(e,t){t.removeClass("ck-appear",e)}(u,c)}}}]),n}(Ge);function bf(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function _f(e,t,n){t.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",t);var r=Jh(t);r.getAttribute("src")!==e&&n.setAttribute("src",e,r),Cf(t,"placeholder")||n.insert(n.createPositionAfter(r),function(e){var t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function wf(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),xf(e,t,"placeholder")}function Cf(e,t){var n,i=r(e.getChildren());try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.getCustomProperty(t))return o}}catch(a){i.e(a)}finally{i.f()}}function xf(e,t,n){var r=Cf(e,n);r&&t.remove(t.createRangeOn(r))}var Sf=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement(),t=e&&"image"===e.name||!1;this.isEnabled=Gh(this.editor.model)||t}},{key:"execute",value:function(e){var t,n=this.editor,i=n.model,o=n.plugins.get(rh),a=r(gn(e.file));try{for(a.s();!(t=a.n()).done;){Af(i,o,t.value)}}catch(s){a.e(s)}finally{a.f()}}}]),n}(Qe);function Af(e,t,n){var r=t.createLoader(n);r&&Kh(e,{uploadId:r.id})}var Ef=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),r=t.call(this,e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),r}return u(n,null,[{key:"requires",get:function(){return[rh,Nu,yc]}},{key:"pluginName",get:function(){return"ImageUploadEditing"}}]),u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,i=t.model.schema,o=t.conversion,a=t.plugins.get(rh),s=pf(t.config.get("image.upload.types"));i.extend("image",{allowAttributes:["uploadId","uploadStatus"]});var l=new Sf(t);t.commands.add("uploadImage",l),t.commands.add("imageUpload",l),o.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(function(e,n){if(r=n.dataTransfer,!Array.from(r.types).includes("text/html")||""===r.getData("text/html")){var r,i=Array.from(n.dataTransfer.files).filter((function(e){return!!e&&s.test(e.type)}));i.length&&(e.stop(),t.model.change((function(e){n.targetRanges&&e.setSelection(n.targetRanges.map((function(e){return t.editing.mapper.toModelRange(e)}))),t.model.enqueueChange("default",(function(){t.execute("uploadImage",{file:i})}))})))}})),this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",(function(e,n){var i=Array.from(t.editing.view.createRangeIn(n.content)).filter((function(e){return!(!(t=e.item).is("element","img")||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))&&!e.item.getAttribute("uploadProcessed");var t})).map((function(e){return{promise:gf(e.item),imageElement:e.item}}));if(i.length){var o,s=new dc(t.editing.view.document),l=r(i);try{for(l.s();!(o=l.n()).done;){var u=o.value;s.setAttribute("uploadProcessed",!0,u.imageElement);var c=a.createLoader(u.promise);c&&(s.setAttribute("src","",u.imageElement),s.setAttribute("uploadId",c.id,u.imageElement))}}catch(d){l.e(d)}finally{l.f()}}})),t.editing.view.document.on("dragover",(function(e,t){t.preventDefault()})),n.on("change",(function(){var i,o=r(n.differ.getChanges({includeChangesInGraveyard:!0}));try{for(o.s();!(i=o.n()).done;){var s=i.value;if("insert"==s.type&&"$text"!=s.name){var l,u=s.position.nodeAfter,c="$graveyard"==s.position.root.rootName,d=r(Tf(t,u));try{for(d.s();!(l=d.n()).done;){var h=l.value,f=h.getAttribute("uploadId");if(f){var v=a.loaders.get(f);v&&(c?v.abort():"idle"==v.status&&e._readAndUpload(v,h))}}}catch(p){d.e(p)}finally{d.f()}}}}catch(p){o.e(p)}finally{o.f()}})),this.on("uploadComplete",(function(t,n){var r=n.imageElement,i=n.data,o=i.urls?i.urls:i;e.editor.model.change((function(t){t.setAttribute("src",o.default,r),e._parseAndSetSrcsetAttributeOnImage(o,r,t)}))}),{priority:"low"})}},{key:"_readAndUpload",value:function(e,t){var n=this,r=this.editor,i=r.model,o=r.locale.t,a=r.plugins.get(rh),s=r.plugins.get(Nu);return i.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","reading",t)})),e.read().then((function(){var n=e.upload();if(Pr){var o=Jh(r.editing.mapper.toViewElement(t));r.editing.view.once("render",(function(){if(o.parent){var e=r.editing.view.domConverter.mapViewToDom(o.parent);if(e){var t=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=t}}}))}return i.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","uploading",t)})),n})).then((function(e){i.enqueueChange("transparent",(function(r){r.setAttribute("uploadStatus","complete",t),n.fire("uploadComplete",{data:e,imageElement:t})})),l()})).catch((function(n){if("error"!==e.status&&"aborted"!==e.status)throw n;"error"==e.status&&n&&s.showWarning(n,{title:o("Upload failed"),namespace:"upload"}),l(),i.enqueueChange("transparent",(function(e){e.remove(t)}))}));function l(){i.enqueueChange("transparent",(function(e){e.removeAttribute("uploadId",t),e.removeAttribute("uploadStatus",t)})),a.destroyLoader(e)}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function(e,t,n){var r=0,i=Object.keys(e).filter((function(e){var t=parseInt(e,10);if(!isNaN(t))return r=Math.max(r,t),!0})).map((function(t){return"".concat(e[t]," ").concat(t,"w")})).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:r},t)}}]),n}(Ge);function Tf(e,t){return Array.from(e.model.createRangeOn(t)).filter((function(e){return e.item.is("element","image")})).map((function(e){return e.item}))}var Pf=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"pluginName",get:function(){return"ImageUpload"}},{key:"requires",get:function(){return[Ef,yf,kf]}}]),n}(Ge),Rf=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("indent",new Ye(e)),e.commands.add("outdent",new Ye(e))}}],[{key:"pluginName",get:function(){return"IndentEditing"}}]),n}(Ge),If='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',Of='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',Mf=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?If:Of,i="ltr"==t.uiLanguageDirection?Of:If;this._defineButton("indent",n("Increase indent"),r),this._defineButton("outdent",n("Decrease indent"),i)}},{key:"_defineButton",value:function(e,t,n){var r=this,i=this.editor;i.ui.componentFactory.add(e,(function(o){var a=i.commands.get(e),s=new tu(o);return s.set({label:t,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),r.listenTo(s,"execute",(function(){i.execute(e),i.editing.view.focus()})),s}))}}],[{key:"pluginName",get:function(){return"IndentUI"}}]),n}(Ge),Nf=function(){function e(){s(this,e),this._definitions=new Set}return u(e,[{key:"add",value:function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._definitions.add(e)})):this._definitions.add(e)}},{key:"getDispatcher",value:function(){var e=this;return function(t){t.on("attribute:linkHref",(function(t,n,i){if(i.consumable.test(n.item,"attribute:linkHref")){var o,a=i.writer,s=a.document.selection,l=r(e._definitions);try{for(l.s();!(o=l.n()).done;){var u=o.value,c=a.createAttributeElement("a",u.attributes,{priority:5});a.setCustomProperty("link",!0,c),u.callback(n.attributeNewValue)?n.item.is("selection")?a.wrap(s.getFirstRange(),c):a.wrap(i.mapper.toViewRange(n.range),c):a.unwrap(i.mapper.toViewRange(n.range),c)}}catch(d){l.e(d)}finally{l.f()}}}),{priority:"high"})}}},{key:"getDispatcherForLinkedImage",value:function(){var e=this;return function(t){t.on("attribute:linkHref:image",(function(t,i,o){var a,s=o.mapper.toViewElement(i.item),l=Array.from(s.getChildren()).find((function(e){return"a"===e.name})),u=r(e._definitions);try{for(u.s();!(a=u.n()).done;){var c=a.value,d=En(c.attributes);if(c.callback(i.attributeNewValue)){var h,f=r(d);try{for(f.s();!(h=f.n()).done;){var v=n(h.value,2),p=v[0],g=v[1];"class"===p?o.writer.addClass(g,l):o.writer.setAttribute(p,g,l)}}catch(w){f.e(w)}finally{f.f()}}else{var m,y=r(d);try{for(y.s();!(m=y.n()).done;){var k=n(m.value,2),b=k[0],_=k[1];"class"===b?o.writer.removeClass(_,l):o.writer.removeAttribute(b,l)}}catch(w){y.e(w)}finally{y.f()}}}}catch(w){u.e(w)}finally{u.f()}}))}}},{key:"length",get:function(){return this._definitions.size}}]),e}(),Lf=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Df=function(e){return Lf.test(e)},jf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ff="\\ud83c[\\udffb-\\udfff]",Vf="[^\\ud800-\\udfff]",zf="(?:\\ud83c[\\udde6-\\uddff]){2}",Bf="[\\ud800-\\udbff][\\udc00-\\udfff]",Hf="(?:"+jf+"|"+Ff+")?",Uf="[\\ufe0e\\ufe0f]?"+Hf+"(?:\\u200d(?:"+[Vf,zf,Bf].join("|")+")[\\ufe0e\\ufe0f]?"+Hf+")*",qf="(?:"+[Vf+jf+"?",jf,zf,Bf,"[\\ud800-\\udfff]"].join("|")+")",Wf=RegExp(Ff+"(?="+Ff+")|"+qf+Uf,"g"),$f=function(e){e=zn(e);var t=Df(e)?function(e){return Df(e)?function(e){return e.match(Wf)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){return qn(e,1,n=void 0===n?e.length:n)}(t).join(""):e.slice(1);return n.toUpperCase()+r},Kf=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Gf=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Jf=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,Qf=/^((\w+:(\/{2,})?)|(\W))/i;function Zf(e,t){var n=t.writer,r=n.createAttributeElement("a",{href:e},{priority:5});return n.setCustomProperty("link",!0,r),r}function Yf(e){return function(e){return e.replace(Kf,"").match(Gf)}(e=String(e))?e:"#"}function Xf(e,t){return!!e&&e.is("element","image")&&t.checkAttribute("image","linkHref")}function ev(e,t){var n=Jf.test(e)?"mailto:":t,r=!!n&&!Qf.test(e);return e&&r?n+e:e}var tv=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).manualDecorators=new vn,r.automaticDecorators=new Nf,r}return u(n,[{key:"restoreManualDecoratorStates",value:function(){var e,t=r(this.manualDecorators);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(i){t.e(i)}finally{t.f()}}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Ro(t.selection.getSelectedBlocks());Xf(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.selection.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref"));var i,o=r(this.manualDecorators);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.value=this._getDecoratorStateFromModel(a.id)}}catch(s){o.e(s)}finally{o.f()}}},{key:"execute",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.editor.model,o=i.document.selection,a=[],s=[];for(var l in n)n[l]?a.push(l):s.push(l);i.change((function(n){if(o.isCollapsed){var l=o.getFirstPosition();if(o.hasAttribute("linkHref")){var u=Ud(l,"linkHref",o.getAttribute("linkHref"),i);n.setAttribute("linkHref",e,u),a.forEach((function(e){n.setAttribute(e,!0,u)})),s.forEach((function(e){n.removeAttribute(e,u)})),n.setSelection(n.createPositionAfter(u.end.nodeBefore))}else if(""!==e){var c=En(o.getAttributes());c.set("linkHref",e),a.forEach((function(e){c.set(e,!0)}));var d=i.insertContent(n.createText(e,c),l).end;n.setSelection(d)}["linkHref"].concat(a,s).forEach((function(e){n.removeSelectionAttribute(e)}))}else{var h,f=i.schema.getValidRanges(o.getRanges(),"linkHref"),v=[],p=r(o.getSelectedBlocks());try{for(p.s();!(h=p.n()).done;){var g=h.value;i.schema.checkAttribute(g,"linkHref")&&v.push(n.createRangeOn(g))}}catch(x){p.e(x)}finally{p.f()}var m,y=v.slice(),k=r(f);try{for(k.s();!(m=k.n()).done;){var b=m.value;t._isRangeToUpdate(b,v)&&y.push(b)}}catch(x){k.e(x)}finally{k.f()}var _,w=r(y);try{var C=function(){var t=_.value;n.setAttribute("linkHref",e,t),a.forEach((function(e){n.setAttribute(e,!0,t)})),s.forEach((function(e){n.removeAttribute(e,t)}))};for(w.s();!(_=w.n()).done;)C()}catch(x){w.e(x)}finally{w.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(e){var t=this.editor.model,n=t.document,r=Ro(n.selection.getSelectedBlocks());return Xf(r,t.schema)?r.getAttribute(e):n.selection.getAttribute(e)}},{key:"_isRangeToUpdate",value:function(e,t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){if(n.value.containsRange(e))return!1}}catch(o){i.e(o)}finally{i.f()}return!0}}]),n}(Qe),nv=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Ro(t.selection.getSelectedBlocks());this.isEnabled=Xf(n,e.schema)?e.schema.checkAttribute(n,"linkHref"):e.schema.checkAttributeInSelection(t.selection,"linkHref")}},{key:"execute",value:function(){var e=this.editor.model,t=e.document.selection,n=this.editor.commands.get("link");e.change((function(i){var o,a=r(t.isCollapsed?[Ud(t.getFirstPosition(),"linkHref",t.getAttribute("linkHref"),e)]:e.schema.getValidRanges(t.getRanges(),"linkHref"));try{for(a.s();!(o=a.n()).done;){var s=o.value;if(i.removeAttribute("linkHref",s),n){var l,u=r(n.manualDecorators);try{for(u.s();!(l=u.n()).done;){var c=l.value;i.removeAttribute(c.id,s)}}catch(d){u.e(d)}finally{u.f()}}}}catch(d){a.e(d)}finally{a.f()}}))}}]),n}(Qe),rv=function e(t){var n=t.id,r=t.label,i=t.attributes,o=t.defaultValue;s(this,e),this.id=n,this.set("value"),this.defaultValue=o,this.label=r,this.attributes=i};Ke(rv,Be),l(87);var iv=/^(https?:)?\/\//,ov=function(e){c(i,e);var t=d(i);function i(e){var n;return s(this,i),n=t.call(this,e),e.config.define("link",{addTargetToExternalLinks:!1}),n}return u(i,null,[{key:"pluginName",get:function(){return"LinkEditing"}},{key:"requires",get:function(){return[Pd,Sd,yc]}}]),u(i,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Zf}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(e,t){return Zf(Yf(e),t)}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(e){return e.getAttribute("href")}}}),e.commands.add("link",new tv(e)),e.commands.add("unlink",new nv(e));var t=function(e,t){var n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((function(e){return e.label&&n[e.label]&&(e.label=n[e.label]),e})),t}(e.t,function(e){var t=[];if(e)for(var r=0,i=Object.entries(e);r<i.length;r++){var o=n(i[r],2),a=o[0],s=o[1],l=Object.assign({},s,{id:"link"+$f(a)});t.push(l)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter((function(e){return"automatic"===e.mode}))),this._enableManualDecorators(t.filter((function(e){return"manual"===e.mode}))),e.plugins.get(Pd).registerAttribute("linkHref"),Wd(e,"linkHref","a","ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}},{key:"_enableAutomaticDecorators",value:function(e){var t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:"automatic",callback:function(e){return iv.test(e)},attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}},{key:"_enableManualDecorators",value:function(e){if(e.length){var t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach((function(e){t.model.schema.extend("$text",{allowAttributes:e.id}),n.add(new rv(e)),t.conversion.for("downcast").attributeToElement({model:e.id,view:function(t,r){var i=r.writer;if(t){var o=n.get(e.id).attributes,a=i.createAttributeElement("a",o,{priority:5});return i.setCustomProperty("link",!0,a),a}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(e.id).attributes},model:{key:e.id}})}))}}},{key:"_enableInsertContentSelectionAttributesFixer",value:function(){var e=this.editor.model,t=e.document.selection;this.listenTo(e,"insertContent",(function(){var n=t.anchor.nodeBefore,r=t.anchor.nodeAfter;t.hasAttribute("linkHref")&&n&&n.hasAttribute("linkHref")&&(r&&r.hasAttribute("linkHref")||e.change((function(t){av(t,lv(e.schema))})))}),{priority:"low"})}},{key:"_enableClickingAfterLink",value:function(){var e=this.editor,t=e.model;e.editing.view.addObserver(cc);var n=!1;this.listenTo(e.editing.view.document,"mousedown",(function(){n=!0})),this.listenTo(e.editing.view.document,"selectionChange",(function(){if(n){n=!1;var e=t.document.selection;if(e.isCollapsed&&e.hasAttribute("linkHref")){var r=e.getFirstPosition(),i=Ud(r,"linkHref",e.getAttribute("linkHref"),t);(r.isTouching(i.start)||r.isTouching(i.end))&&t.change((function(e){av(e,lv(t.schema))}))}}}))}},{key:"_enableTypingOverLink",value:function(){var e,t,i=this.editor;this.listenTo(i.editing.view.document,"delete",(function(){t=!0}),{priority:"high"}),this.listenTo(i.model,"deleteContent",(function(){var n=i.model.document.selection;n.isCollapsed||(t?t=!1:sv(i)&&function(e){var t=e.document.selection,n=t.getFirstPosition(),r=t.getLastPosition(),i=n.nodeAfter;return!!i&&!!i.is("$text")&&!!i.hasAttribute("linkHref")&&(i===(r.textNode||r.nodeBefore)||Ud(n,"linkHref",i.getAttribute("linkHref"),e).containsRange(e.createRange(n,r),!0))}(i.model)&&(e=n.getAttributes()))}),{priority:"high"}),this.listenTo(i.model,"insertContent",(function(o,a){var s=n(a,1)[0];t=!1,sv(i)&&e&&(i.model.change((function(t){var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a=n(i.value,2),l=a[0],u=a[1];t.setAttribute(l,u,s)}}catch(c){o.e(c)}finally{o.f()}})),e=null)}),{priority:"high"})}},{key:"_handleDeleteContentAfterLink",value:function(){var e=this.editor,t=e.model,n=t.document.selection,r=!1,i=!1;this.listenTo(e.editing.view.document,"delete",(function(e,t){i=t.domEvent.keyCode===Lr.backspace}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){r=!1;var e=n.getFirstPosition(),i=n.getAttribute("linkHref");if(i){var o=Ud(e,"linkHref",i,t);r=o.containsPosition(e)||o.end.isEqual(e)}}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){i&&(i=!1,r||e.model.enqueueChange((function(e){av(e,lv(t.schema))})))}),{priority:"low"})}}]),i}(Ge);function av(e,t){e.removeSelectionAttribute("linkHref");var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;e.removeSelectionAttribute(o)}}catch(a){i.e(a)}finally{i.f()}}function sv(e){return e.plugins.get("Input").isInput(e.model.change((function(e){return e.batch})))}function lv(e){return e.getDefinition("$text").allowAttributes.filter((function(e){return e.startsWith("link")}))}l(89);var uv=function(e){c(o,e);var n=d(o);function o(e,t){var r;s(this,o),r=n.call(this,e);var i=e.t;r.focusTracker=new Io,r.keystrokes=new Oo,r.urlInputView=r._createUrlInput(),r.saveButtonView=r._createButton(i("Save"),wl,"ck-button-save"),r.saveButtonView.type="submit",r.cancelButtonView=r._createButton(i("Cancel"),_l,"ck-button-cancel","cancel"),r._manualDecoratorSwitches=r._createManualDecoratorSwitches(t),r.children=r._createFormChildren(t.manualDecorators),r._focusables=new Il,r._focusCycler=new ru({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});var a=["ck","ck-link-form","ck-responsive-form"];return t.manualDecorators.length&&a.push("ck-link-form_layout-vertical","ck-vertical-form"),r.setTemplate({tag:"form",attributes:{class:a,tabindex:"-1"},children:r.children}),Pl(f(r)),r}return u(o,[{key:"getDecoratorSwitchesState",value:function(){return Array.from(this._manualDecoratorSwitches).reduce((function(e,t){return e[t.name]=t.isOn,e}),{})}},{key:"render",value:function(){var e=this;t(y(o.prototype),"render",this).call(this),Rl({view:this}),[this.urlInputView].concat(i(this._manualDecoratorSwitches),[this.saveButtonView,this.cancelButtonView]).forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createUrlInput",value:function(){var e=this.locale.t,t=new Ou(this.locale,Mu);return t.label=e("Link URL"),t}},{key:"_createButton",value:function(e,t,n,r){var i=new tu(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createManualDecoratorSwitches",value:function(e){var t,n=this,i=this.createCollection(),o=r(e.manualDecorators);try{var a=function(){var r=t.value,o=new nu(n.locale);o.set({name:r.id,label:r.label,withText:!0}),o.bind("isOn").toMany([r,e],"value",(function(e,t){return void 0===t&&void 0===e?r.defaultValue:e})),o.on("execute",(function(){r.set("value",!o.isOn)})),i.add(o)};for(o.s();!(t=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}return i}},{key:"_createFormChildren",value:function(e){var t=this.createCollection();if(t.add(this.urlInputView),e.length){var n=new Ol;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((function(e){return{tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(n)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}]),o}(Ol);l(91);var cv=function(e){c(r,e);var n=d(r);function r(e){var t;s(this,r),t=n.call(this,e);var i=e.t;return t.focusTracker=new Io,t.keystrokes=new Oo,t.previewButtonView=t._createPreviewButton(),t.unlinkButtonView=t._createButton(i("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),t.editButtonView=t._createButton(i("Edit link"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',"edit"),t.set("href"),t._focusables=new Il,t._focusCycler=new ru({focusables:t._focusables,focusTracker:t.focusTracker,keystrokeHandler:t.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),t.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[t.previewButtonView,t.editButtonView,t.unlinkButtonView]}),t}return u(r,[{key:"render",value:function(){var e=this;t(y(r.prototype),"render",this).call(this),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(e,t,n){var r=new tu(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.delegate("execute").to(this,n),r}},{key:"_createPreviewButton",value:function(){var e=new tu(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(function(e){return e&&Yf(e)})),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(function(e){return e||n("This link has no URL")})),e.bind("isEnabled").to(this,"href",(function(e){return!!e})),e.template.tag="a",e.template.eventListeners={},e}}]),r}(Ol),dv='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',hv=function(e){c(r,e);var n=d(r);function r(){return s(this,r),n.apply(this,arguments)}return u(r,[{key:"init",value:function(){var e=this.editor;e.editing.view.addObserver(uc),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(Uu),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:"link-ui",view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:"link-ui",view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){t(y(r.prototype),"destroy",this).call(this),this.formView.destroy()}},{key:"_createActionsView",value:function(){var e=this,t=this.editor,n=new cv(t.locale),r=t.commands.get("link"),i=t.commands.get("unlink");return n.bind("href").to(r,"value"),n.editButtonView.bind("isEnabled").to(r),n.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(n,"edit",(function(){e._addFormView()})),this.listenTo(n,"unlink",(function(){t.execute("unlink"),e._hideUI()})),n.keystrokes.set("Esc",(function(t,n){e._hideUI(),n()})),n.keystrokes.set("Ctrl+K",(function(t,n){e._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),r=t.config.get("link.defaultProtocol"),i=new uv(t.locale,n);return i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e})),i.saveButtonView.bind("isEnabled").to(n),this.listenTo(i,"submit",(function(){var n=ev(i.urlInputView.fieldView.element.value,r);t.execute("link",n,i.getDecoratorSwitchesState()),e._closeFormView()})),this.listenTo(i,"cancel",(function(){e._closeFormView()})),i.keystrokes.set("Esc",(function(t,n){e._closeFormView(),n()})),i}},{key:"_createToolbarLinkButton",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),r=t.t;t.keystrokes.set("Ctrl+K",(function(t,r){r(),n.isEnabled&&e._showUI(!0)})),t.ui.componentFactory.add("link",(function(t){var i=new tu(t);return i.isEnabled=!0,i.label=r("Link"),i.icon=dv,i.keystroke="Ctrl+K",i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(n,"isEnabled"),i.bind("isOn").to(n,"value",(function(e){return!!e})),e.listenTo(i,"execute",(function(){return e._showUI(!0)})),i}))}},{key:"_enableUserBalloonInteractions",value:function(){var e=this;this.listenTo(this.editor.editing.view.document,"click",(function(){e._getSelectedLinkElement()&&e._showUI()})),this.editor.keystrokes.set("Tab",(function(t,n){e._areActionsVisible&&!e.actionsView.focusTracker.isFocused&&(e.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(t,n){e._isUIVisible&&(e._hideUI(),n())})),Tl({emitter:this.formView,activator:function(){return e._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return e._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){var e=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=e.value||""}}},{key:"_closeFormView",value:function(){var e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){var e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}}},{key:"_startUpdatingUI",value:function(){var e=this,t=this.editor,n=t.editing.view.document,r=this._getSelectedLinkElement(),i=a(),o=function(){var t=e._getSelectedLinkElement(),n=a();r&&!t||!r&&n!==i?e._hideUI():e._isUIVisible&&e._balloon.updatePosition(e._getBalloonPositionData()),r=t,i=n};function a(){return n.selection.focus.getAncestors().reverse().find((function(e){return e.is("element")}))}this.listenTo(t.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}},{key:"_getBalloonPositionData",value:function(){var e=this.editor.editing.view,t=e.document,n=null;if(this.editor.model.markers.has("link-ui")){var r=Array.from(this.editor.editing.mapper.markerNameToElements("link-ui")),i=e.createRange(e.createPositionBefore(r[0]),e.createPositionAfter(r[r.length-1]));n=e.domConverter.viewRangeToDom(i)}else{var o=this._getSelectedLinkElement(),a=t.selection.getFirstRange();n=o?e.domConverter.mapViewToDom(o):e.domConverter.viewRangeToDom(a)}return{target:n}}},{key:"_getSelectedLinkElement",value:function(){var e=this.editor.editing.view,t=e.document.selection;if(t.isCollapsed)return fv(t.getFirstPosition());var n=t.getFirstRange().getTrimmed(),r=fv(n.start),i=fv(n.end);return r&&r==i&&e.createRangeIn(r).getTrimmed().isEqual(n)?r:null}},{key:"_showFakeVisualSelection",value:function(){var e=this.editor.model;e.change((function(t){var n=e.document.selection.getFirstRange();if(e.markers.has("link-ui"))t.updateMarker("link-ui",{range:n});else if(n.start.isAtEnd){var r=n.start.getLastMatchingPosition((function(t){var n=t.item;return!e.schema.isContent(n)}),{boundaries:n});t.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:t.createRange(r,n.end)})}else t.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:n})}))}},{key:"_hideFakeVisualSelection",value:function(){var e=this.editor.model;e.markers.has("link-ui")&&e.change((function(e){e.removeMarker("link-ui")}))}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}}],[{key:"requires",get:function(){return[Uu]}},{key:"pluginName",get:function(){return"LinkUI"}}]),r}(Ge);function fv(e){return e.getAncestors().find((function(e){return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))}var vv=new RegExp("(^|\\s)(((?:(?:(?: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}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i"),pv=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var e=this,t=this.editor,n=new Td(t.model,(function(e){if(function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e)){var t=gv(e.substr(0,e.length-1));return t?{url:t}:void 0}})),r=t.plugins.get("Input");n.on("matched:data",(function(n,i){var o=i.batch,a=i.range,s=i.url;if(r.isInput(o)){var l=a.end.getShiftedBy(-1),u=l.getShiftedBy(-s.length),c=t.model.createRange(u,l);e._applyAutoLink(s,c)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,r=t.commands.get("enter");r&&r.on("execute",(function(){var t=n.document.selection.getFirstPosition();if(t.parent.previousSibling){var r=n.createRangeIn(t.parent.previousSibling);e._checkAndApplyAutoLinkOnRange(r)}}))}},{key:"_enableShiftEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,r=t.commands.get("shiftEnter");r&&r.on("execute",(function(){var t=n.document.selection.getFirstPosition(),r=n.createRange(n.createPositionAt(t.parent,0),t.getShiftedBy(-1));e._checkAndApplyAutoLinkOnRange(r)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(e){var t=this.editor.model,n=Ed(e,t),r=n.text,i=n.range,o=gv(r);if(o){var a=t.createRange(i.end.getShiftedBy(-o.length),i.end);this._applyAutoLink(o,a)}}},{key:"_applyAutoLink",value:function(e,t){var n=this,r=this.editor.model;this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,r)&&r.enqueueChange((function(r){var i=n.editor.config.get("link.defaultProtocol"),o=ev(e,i);r.setAttribute("linkHref",o,t)}))}}],[{key:"pluginName",get:function(){return"AutoLink"}}]),n}(Ge);function gv(e){var t=vv.exec(e);return t?t[2]:null}var mv=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).type=r,i}return u(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=Array.from(n.document.selection.getSelectedBlocks()).filter((function(e){return kv(e,n.schema)})),o=void 0!==t.forceValue?!t.forceValue:this.value;n.change((function(t){if(o){for(var n=i[i.length-1].nextSibling,a=Number.POSITIVE_INFINITY,s=[];n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){var l=n.getAttribute("listIndent");l<a&&(a=l),s.push({element:n,listIndent:l-a}),n=n.nextSibling}var u,c=r(s=s.reverse());try{for(c.s();!(u=c.n()).done;){var d=u.value;t.setAttribute("listIndent",d.listIndent,d.element)}}catch(k){c.e(k)}finally{c.f()}}if(!o){var h,f=Number.POSITIVE_INFINITY,v=r(i);try{for(v.s();!(h=v.n()).done;){var p=h.value;p.is("element","listItem")&&p.getAttribute("listIndent")<f&&(f=p.getAttribute("listIndent"))}}catch(k){v.e(k)}finally{v.f()}yv(i,!0,f=0===f?1:f),yv(i,!1,f)}var g,m=r(i.reverse());try{for(m.s();!(g=m.n()).done;){var y=g.value;o&&"listItem"==y.name?t.rename(y,"paragraph"):o||"listItem"==y.name?o||"listItem"!=y.name||y.getAttribute("listType")==e.type||t.setAttribute("listType",e.type,y):(t.setAttributes({listType:e.type,listIndent:0},y),t.rename(y,"listItem"))}}catch(k){m.e(k)}finally{m.f()}e.fire("_executeCleanup",i)}))}},{key:"_getValue",value:function(){var e=Ro(this.editor.model.document.selection.getSelectedBlocks());return!!e&&e.is("element","listItem")&&e.getAttribute("listType")==this.type}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.schema,t=Ro(this.editor.model.document.selection.getSelectedBlocks());return!!t&&kv(t,e)}}]),n}(Qe);function yv(e,t,n){var r=t?e[0]:e[e.length-1];if(r.is("element","listItem"))for(var i=r[t?"previousSibling":"nextSibling"],o=r.getAttribute("listIndent");i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=n;)o>i.getAttribute("listIndent")&&(o=i.getAttribute("listIndent")),i.getAttribute("listIndent")==o&&e[t?"unshift":"push"](i),i=i[t?"previousSibling":"nextSibling"]}function kv(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}var bv=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e))._indentBy="forward"==r?1:-1,i}return u(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=Array.from(t.document.selection.getSelectedBlocks());t.change((function(t){for(var i=n[n.length-1],o=i.nextSibling;o&&"listItem"==o.name&&o.getAttribute("listIndent")>i.getAttribute("listIndent");)n.push(o),o=o.nextSibling;e._indentBy<0&&(n=n.reverse());var a,s=r(n);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=l.getAttribute("listIndent")+e._indentBy;u<0?t.rename(l,"paragraph"):t.setAttribute("listIndent",u,l)}}catch(c){s.e(c)}finally{s.f()}e.fire("_executeCleanup",n)}))}},{key:"_checkEnabled",value:function(){var e=Ro(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){for(var t=e.getAttribute("listIndent"),n=e.getAttribute("listType"),r=e.previousSibling;r&&r.is("element","listItem")&&r.getAttribute("listIndent")>=t;){if(r.getAttribute("listIndent")==t)return r.getAttribute("listType")==n;r=r.previousSibling}return!1}return!0}}]),n}(Qe);function _v(e,t){var n=t.mapper,r=t.writer,i="numbered"==e.getAttribute("listType")?"ol":"ul",o=function(e){var t=e.createContainerElement("li");return t.getFillerOffset=Tv,t}(r),a=r.createContainerElement(i,null);return r.insert(r.createPositionAt(a,0),o),n.bindElements(e,o),o}function wv(e,t,n,i){var o=t.parent,a=n.mapper,s=n.writer,l=a.toViewPosition(i.createPositionBefore(e)),u=Sv(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),c=e.previousSibling;if(u&&u.getAttribute("listIndent")==e.getAttribute("listIndent")){var d=a.toViewElement(u);l=s.breakContainer(s.createPositionAfter(d))}else if(c&&"listItem"==c.name){l=a.toViewPosition(i.createPositionAt(c,"end"));var h=a.findMappedViewAncestor(l),f=Ev(h);l=f?s.createPositionBefore(f):s.createPositionAt(h,"end")}else l=a.toViewPosition(i.createPositionBefore(e));if(l=xv(l),s.insert(l,o),c&&"listItem"==c.name){var v,p=a.toViewElement(c),g=s.createRange(s.createPositionAt(p,0),l).getWalker({ignoreElementEnd:!0}),m=r(g);try{for(m.s();!(v=m.n()).done;){var y=v.value;if(y.item.is("element","li")){var k=s.breakContainer(s.createPositionBefore(y.item)),b=y.item.parent,_=s.createPositionAt(t,"end");Cv(s,_.nodeBefore,_.nodeAfter),s.move(s.createRangeOn(b),_),g.position=k}}}catch(T){m.e(T)}finally{m.f()}}else{var w=o.nextSibling;if(w&&(w.is("element","ul")||w.is("element","ol"))){var C,x=null,S=r(w.getChildren());try{for(S.s();!(C=S.n()).done;){var A=C.value,E=a.toModelElement(A);if(!(E&&E.getAttribute("listIndent")>e.getAttribute("listIndent")))break;x=A}}catch(T){S.e(T)}finally{S.f()}x&&(s.breakContainer(s.createPositionAfter(x)),s.move(s.createRangeOn(x.parent),s.createPositionAt(t,"end")))}}Cv(s,o,o.nextSibling),Cv(s,o.previousSibling,o)}function Cv(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function xv(e){return e.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))}function Sv(e,t){for(var n=!!t.sameIndent,r=!!t.smallerIndent,i=t.listIndent,o=e;o&&"listItem"==o.name;){var a=o.getAttribute("listIndent");if(n&&i==a||r&&i>a)return o;o="forward"===t.direction?o.nextSibling:o.previousSibling}return null}function Av(e,t,n,r){e.ui.componentFactory.add(t,(function(i){var o=e.commands.get(t),a=new tu(i);return a.set({label:n,icon:r,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.on("execute",(function(){e.execute(t),e.editing.view.focus()})),a}))}function Ev(e){var t,n=r(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if("ul"==i.name||"ol"==i.name)return i}}catch(o){n.e(o)}finally{n.f()}return null}function Tv(){var e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:nr.call(this)}function Pv(e){return function(t,n,r){var i=r.consumable;if(i.test(n.item,"insert")&&i.test(n.item,"attribute:listType")&&i.test(n.item,"attribute:listIndent")){i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");var o=n.item;wv(o,_v(o,r),r,e)}}}function Rv(e,t,n){if(n.consumable.consume(t.item,"attribute:listType")){var r=n.mapper.toViewElement(t.item),i=n.writer;i.breakContainer(i.createPositionBefore(r)),i.breakContainer(i.createPositionAfter(r)),i.rename("numbered"==t.attributeNewValue?"ol":"ul",r.parent)}}function Iv(e,t,n){var i=n.mapper.toViewElement(t.item).parent,o=n.writer;Cv(o,i,i.nextSibling),Cv(o,i.previousSibling,i);var a,s=r(t.item.getChildren());try{for(s.s();!(a=s.n()).done;){var l=a.value;n.consumable.consume(l,"insert")}}catch(u){s.e(u)}finally{s.f()}}function Ov(e,t,n){if("listItem"!=t.item.name){for(var r=n.mapper.toViewPosition(t.range.start),i=n.writer,o=[];("ul"==r.parent.name||"ol"==r.parent.name)&&"li"==(r=i.breakContainer(r)).parent.name;){var a=r,s=i.createPositionAt(r.parent,"end");if(!a.isEqual(s)){var l=i.remove(i.createRange(a,s));o.push(l)}r=i.createPositionAfter(r.parent)}if(o.length>0){for(var u=0;u<o.length;u++){var c=r.nodeBefore;if(r=i.insert(r,o[u]).end,u>0){var d=Cv(i,c,c.nextSibling);d&&d.parent==c&&r.offset--}}Cv(i,r.nodeBefore,r.nodeAfter)}}}function Mv(e,t,n){var r=n.mapper.toViewPosition(t.position);Cv(n.writer,r.nodeBefore,r.nodeAfter)}function Nv(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){var i=n.writer,o=i.createElement("listItem"),a=function(e){for(var t=0,n=e.parent;n;){if(n.is("element","li"))t++;else{var r=n.previousSibling;r&&r.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);if(i.setAttribute("listIndent",a,o),i.setAttribute("listType",t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted",o),!n.safeInsert(o,t.modelCursor))return;var s=function(e,t,n){var i,o=n.writer,a=n.schema,s=o.createPositionAfter(e),l=r(t);try{for(l.s();!(i=l.n()).done;){var u=i.value;if("ul"==u.name||"ol"==u.name)s=n.convertItem(u,s).modelCursor;else{var c=n.convertItem(u,o.createPositionAt(e,"end")),d=c.modelRange.start.nodeAfter;d&&d.is("element")&&!a.checkChild(e,d.name)&&(e=c.modelCursor.parent.is("element","listItem")?c.modelCursor.parent:Vv(c.modelCursor),s=o.createPositionAfter(e))}}}catch(h){l.e(h)}finally{l.f()}return s}(o,t.viewItem.getChildren(),n);t.modelRange=i.createRange(t.modelCursor,s),n.updateConversionResult(o,t)}}function Lv(e,t,n){if(n.consumable.test(t.viewItem,{name:!0}))for(var r=0,i=Array.from(t.viewItem.getChildren());r<i.length;r++){var o=i[r];!o.is("element","li")&&!Bv(o)&&o._remove()}}function Dv(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;var o,a=!1,s=!0,l=r(i(t.viewItem.getChildren()));try{for(l.s();!(o=l.n()).done;){var u=o.value;a&&!Bv(u)&&u._remove(),u.is("$text")?(s&&(u._data=u.data.trimStart()),u.nextSibling&&!Bv(u.nextSibling)||(u._data=u.data.trimEnd())):Bv(u)&&(a=!0),s=!1}}catch(c){l.e(c)}finally{l.f()}}}function jv(e){return function(t,n){if(!n.isPhantom){var i=n.modelPosition.nodeBefore;if(i&&i.is("element","listItem")){var o,a=n.mapper.toViewElement(i),s=a.getAncestors().find(Bv),l=r(e.createPositionAt(a,0).getWalker());try{for(l.s();!(o=l.n()).done;){var u=o.value;if("elementStart"==u.type&&u.item.is("element","li")){n.viewPosition=u.previousPosition;break}if("elementEnd"==u.type&&u.item==s){n.viewPosition=u.nextPosition;break}}}catch(c){l.e(c)}finally{l.f()}}}}}function Fv(e,t){var r,i=n(t,2),o=i[0],a=i[1],s=o.is("documentFragment")?o.getChild(0):o;if(r=a?this.createSelection(a):this.document.selection,s&&s.is("element","listItem")){var l=r.getFirstPosition(),u=null;if(l.parent.is("element","listItem")?u=l.parent:l.nodeBefore&&l.nodeBefore.is("element","listItem")&&(u=l.nodeBefore),u){var c=u.getAttribute("listIndent");if(c>0)for(;s&&s.is("element","listItem");)s._setAttribute("listIndent",s.getAttribute("listIndent")+c),s=s.nextSibling}}}function Vv(e){var t,n=new Qo({startPosition:e});do{t=n.next()}while(!t.value.item.is("element","listItem"));return t.value.item}function zv(e,t,n,r,o,a){var s,l=Sv(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),u=o.mapper,c=o.writer,d=l?l.getAttribute("listIndent"):null;if(l)if(d==e){var h=u.toViewElement(l).parent;s=c.createPositionAfter(h)}else{var f=a.createPositionAt(l,"end");s=u.toViewPosition(f)}else s=n;s=xv(s);for(var v=0,p=i(r.getChildren());v<p.length;v++){var g=p[v];Bv(g)&&(s=c.move(c.createRangeOn(g),s).end,Cv(c,g,g.nextSibling),Cv(c,g.previousSibling,g))}}function Bv(e){return e.is("element","ol")||e.is("element","ul")}var Hv=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});var n,i=t.data,o=t.editing;t.model.document.registerPostFixer((function(e){return function(e,t){var n,i=e.document.differ.getChanges(),o=new Map,a=!1,s=r(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;if("insert"==l.type&&"listItem"==l.name)p(l.position);else if("insert"==l.type&&"listItem"!=l.name){if("$text"!=l.name){var u=l.position.nodeAfter;u.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",u),a=!0),u.hasAttribute("listType")&&(t.removeAttribute("listType",u),a=!0),u.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",u),a=!0);var c,d=r(Array.from(e.createRangeIn(u)).filter((function(e){return e.item.is("element","listItem")})));try{for(d.s();!(c=d.n()).done;){p(c.value.previousPosition)}}catch(y){d.e(y)}finally{d.f()}}p(l.position.getShiftedBy(l.length))}else"remove"==l.type&&"listItem"==l.name?p(l.position):("attribute"==l.type&&"listIndent"==l.attributeKey||"attribute"==l.type&&"listType"==l.attributeKey)&&p(l.range.start)}}catch(y){s.e(y)}finally{s.f()}var h,f=r(o.values());try{for(f.s();!(h=f.n()).done;){var v=h.value;g(v),m(v)}}catch(y){f.e(y)}finally{f.f()}return a;function p(e){var t=e.nodeBefore;if(t&&t.is("element","listItem")){var n=t;if(o.has(n))return;for(var r=n.previousSibling;r&&r.is("element","listItem");r=n.previousSibling)if(n=r,o.has(n))return;o.set(t,n)}else{var i=e.nodeAfter;i&&i.is("element","listItem")&&o.set(i,i)}}function g(e){for(var n=0,r=null;e&&e.is("element","listItem");){var i=e.getAttribute("listIndent");if(i>n){var o=void 0;null===r?(r=i-n,o=n):(r>i&&(r=i),o=i-r),t.setAttribute("listIndent",o,e),a=!0}else r=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function m(e){for(var n=[],r=null;e&&e.is("element","listItem");){var i=e.getAttribute("listIndent");if(r&&r.getAttribute("listIndent")>i&&(n=n.slice(0,i+1)),0!=i)if(n[i]){var o=n[i];e.getAttribute("listType")!=o&&(t.setAttribute("listType",o,e),a=!0)}else n[i]=e.getAttribute("listType");r=e,e=e.nextSibling}}}(t.model,e)})),o.mapper.registerViewToModelLength("li",Uv),i.mapper.registerViewToModelLength("li",Uv),o.mapper.on("modelToViewPosition",jv(o.view)),o.mapper.on("viewToModelPosition",(n=t.model,function(e,t){var r=t.viewPosition,i=r.parent,o=t.mapper;if("ul"==i.name||"ol"==i.name){if(r.isAtEnd){var a=o.toModelElement(r.nodeBefore),s=o.getModelLength(r.nodeBefore);t.modelPosition=n.createPositionBefore(a).getShiftedBy(s)}else{var l=o.toModelElement(r.nodeAfter);t.modelPosition=n.createPositionBefore(l)}e.stop()}else if("li"==i.name&&r.nodeBefore&&("ul"==r.nodeBefore.name||"ol"==r.nodeBefore.name)){for(var u=o.toModelElement(i),c=1,d=r.nodeBefore;d&&Bv(d);)c+=o.getModelLength(d),d=d.previousSibling;t.modelPosition=n.createPositionBefore(u).getShiftedBy(c),e.stop()}})),i.mapper.on("modelToViewPosition",jv(o.view)),t.conversion.for("editingDowncast").add((function(e){e.on("insert",Ov,{priority:"high"}),e.on("insert:listItem",Pv(t.model)),e.on("attribute:listType:listItem",Rv,{priority:"high"}),e.on("attribute:listType:listItem",Iv,{priority:"low"}),e.on("attribute:listIndent:listItem",function(e){return function(t,n,i){if(i.consumable.consume(n.item,"attribute:listIndent")){var o=i.mapper.toViewElement(n.item),a=i.writer;a.breakContainer(a.createPositionBefore(o)),a.breakContainer(a.createPositionAfter(o));var s=o.parent,l=s.previousSibling,u=a.createRangeOn(s);a.remove(u),l&&l.nextSibling&&Cv(a,l,l.nextSibling),zv(n.attributeOldValue+1,n.range.start,u.start,o,i,e),wv(n.item,o,i,e);var c,d=r(n.item.getChildren());try{for(d.s();!(c=d.n()).done;){var h=c.value;i.consumable.consume(h,"insert")}}catch(f){d.e(f)}finally{d.f()}}}}(t.model)),e.on("remove:listItem",function(e){return function(t,n,i){var o=i.mapper.toViewPosition(n.position).getLastMatchingPosition((function(e){return!e.item.is("element","li")})).nodeAfter,a=i.writer;a.breakContainer(a.createPositionBefore(o)),a.breakContainer(a.createPositionAfter(o));var s=o.parent,l=s.previousSibling,u=a.createRangeOn(s),c=a.remove(u);l&&l.nextSibling&&Cv(a,l,l.nextSibling),zv(i.mapper.toModelElement(o).getAttribute("listIndent")+1,n.position,u.start,o,i,e);var d,h=r(a.createRangeIn(c).getItems());try{for(h.s();!(d=h.n()).done;){var f=d.value;i.mapper.unbindViewElement(f)}}catch(v){h.e(v)}finally{h.f()}t.stop()}}(t.model)),e.on("remove",Mv,{priority:"low"})})),t.conversion.for("dataDowncast").add((function(e){e.on("insert",Ov,{priority:"high"}),e.on("insert:listItem",Pv(t.model))})),t.conversion.for("upcast").add((function(e){e.on("element:ul",Lv,{priority:"high"}),e.on("element:ol",Lv,{priority:"high"}),e.on("element:li",Dv,{priority:"high"}),e.on("element:li",Nv)})),t.model.on("insertContent",Fv,{priority:"high"}),t.commands.add("numberedList",new mv(t,"numbered")),t.commands.add("bulletedList",new mv(t,"bulleted")),t.commands.add("indentList",new bv(t,"forward")),t.commands.add("outdentList",new bv(t,"backward"));var a=o.view.document;this.listenTo(a,"enter",(function(t,n){var r=e.editor.model.document,i=r.selection.getLastPosition().parent;r.selection.isCollapsed&&"listItem"==i.name&&i.isEmpty&&(e.editor.execute("outdentList"),n.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(a,"delete",(function(t,n){if("backward"===n.direction){var r=e.editor.model.document.selection;if(r.isCollapsed){var i=r.getFirstPosition();if(i.isAtStart){var o=i.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(e.editor.execute("outdentList"),n.preventDefault(),t.stop()))}}}}),{context:"li"});var s=function(t){return function(n,r){e.editor.commands.get(t).isEnabled&&(e.editor.execute(t),r())}};t.keystrokes.set("Tab",s("indentList")),t.keystrokes.set("Shift+Tab",s("outdentList"))}},{key:"afterInit",value:function(){var e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),n&&n.registerChildCommand(e.get("outdentList"))}}],[{key:"pluginName",get:function(){return"ListEditing"}},{key:"requires",get:function(){return[Cc,Ec]}}]),n}(Ge);function Uv(e){var t,n=1,i=r(e.getChildren());try{for(i.s();!(t=i.n()).done;){var o=t.value;if("ul"==o.name||"ol"==o.name){var a,s=r(o.getChildren());try{for(s.s();!(a=s.n()).done;){n+=Uv(a.value)}}catch(l){s.e(l)}finally{s.f()}}}}catch(l){i.e(l)}finally{i.f()}return n}var qv=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor.t;Av(this.editor,"numberedList",e("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),Av(this.editor,"bulletedList",e("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}],[{key:"pluginName",get:function(){return"ListUI"}}]),n}(Ge);function Wv(e){switch(e){case"arabic-leading-zero":return"decimal-leading-zero";case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return e;default:return null}}function $v(e,t,n){var r=t.parent,i=n.createElement(e.type),o=r.getChildIndex(t)+1;return n.insertChild(o,i,r),e.style&&n.setStyle("list-style-type",e.style,i),i}function Kv(e){var t={},n=e.getStyle("mso-list");if(n){var r=n.match(/(^|\s{1,100})l(\d+)/i),i=n.match(/\s{0,100}lfo(\d+)/i),o=n.match(/\s{0,100}level(\d+)/i);r&&i&&o&&(t.id=r[2],t.order=i[1],t.indent=o[1])}return t}var Gv=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i,Jv=function(){function e(t){s(this,e),this.document=t}return u(e,[{key:"isActive",value:function(e){return Gv.test(e)}},{key:"execute",value:function(e){var t=new dc(this.document);!function(e,t){var n,i=r(e.getChildren());try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("element","b")&&"normal"===o.getStyle("font-weight")){var a=e.getChildIndex(o);t.remove(o),t.insertChild(a,o.getChildren(),e)}}}catch(s){i.e(s)}finally{i.f()}}(e.content,t),function(e,t){var n,i=r(t.createRangeIn(e));try{for(i.s();!(n=i.n()).done;){var o=n.value.item;if(o.is("element","li")){var a=o.getChild(0);a&&a.is("element","p")&&t.unwrapElement(a)}}}catch(s){i.e(s)}finally{i.f()}}(e.content,t)}}]),e}();function Qv(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(e,t){return 1===t.length?" ":Array(t.length+1).join("\xa0 ").substr(0,t.length)}))}var Zv=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,Yv=/xmlns:o="urn:schemas-microsoft-com/i,Xv=function(){function e(t){s(this,e),this.document=t}return u(e,[{key:"isActive",value:function(e){return Zv.test(e)||Yv.test(e)}},{key:"execute",value:function(e){var t=function(e,t){var n=new DOMParser,r=function(e){return Qv(Qv(e)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g,"\xa0</").replace(/ <o:p><\/o:p>/g,"\xa0<o:p></o:p>").replace(/<o:p>(&nbsp;|\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(e){var t=e.indexOf("</body>");if(t<0)return e;var n=e.indexOf("</html>",t+"</body>".length);return e.substring(0,t+"</body>".length)+(n>=0?e.substring(n):"")}(e=e.replace(/<!--\[if gte vml 1]>/g,""))),i=n.parseFromString(r,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach((function(e){var t=e.innerText.length||0;e.innerHTML=Array(t+1).join("\xa0 ").substr(0,t)}))}(i);var o=i.body.innerHTML,a=function(e,t){for(var n=new br(t),r=new Pi(n,{blockFillerMode:"nbsp"}),i=e.createDocumentFragment(),o=e.body.childNodes;o.length>0;)i.appendChild(o[0]);return r.domToView(i)}(i,t),s=function(e){for(var t=[],n=[],r=0,i=Array.from(e.getElementsByTagName("style"));r<i.length;r++){var o=i[r];o.sheet&&o.sheet.cssRules&&o.sheet.cssRules.length&&(t.push(o.sheet),n.push(o.innerHTML))}return{styles:t,stylesString:n.join(" ")}}(i);return{body:a,bodyString:o,styles:s.styles,stylesString:s.stylesString}}(e.dataTransfer.getData("text/html"),this.document.stylesProcessor),n=t.body;(function(e,t){if(e.childCount){var n=new dc(e.document),i=function(e,t){var n,i=t.createRangeIn(e),o=new Tn({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),a=[],s=r(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;if("elementStart"===l.type&&o.match(l.item)){var u=Kv(l.item);a.push({element:l.item,id:u.id,order:u.order,indent:u.indent})}}}catch(c){s.e(c)}finally{s.f()}return a}(e,n);if(i.length){var o=null,a=1;i.forEach((function(e,s){var l,u,c=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;var n,r=t.element.previousSibling;return!r||!((n=r).is("element","ol")||n.is("element","ul"))}(i[s-1],e),d=(u=e,(l=c?null:i[s-1])?u.indent-l.indent:u.indent-1);if(c&&(o=null,a=1),!o||0!==d){var h=function(e,t){var n=new RegExp("@list l".concat(e.id,":level").concat(e.indent,"\\s*({[^}]*)"),"gi").exec(t),r="decimal",i="ol";if(n&&n[1]){var o=/mso-level-number-format:([^;]{0,100});/gi.exec(n[1]);if(o&&o[1]&&(i="bullet"!==(r=o[1].trim())&&"image"!==r?"ol":"ul"),"bullet"===r){var a=function(e){var t=function(e){if(e.getChild(0).is("$text"))return null;var t=e.getChild(0).getChild(0);return t.is("$text")?t:t.getChild(0)}(e);if(!t)return null;var n=t._data;return"o"===n?"circle":"\xb7"===n?"disc":"\xa7"===n?"square":null}(e.element);a&&(r=a)}}return{type:i,style:Wv(r)}}(e,t);if(o)if(e.indent>a){var f=o.getChild(o.childCount-1),v=f.getChild(f.childCount-1);o=$v(h,v,n),a+=1}else e.indent<a&&(o=function(e,t){var n,i=null,o=0,a=r(e.getAncestors({parentFirst:!0}));try{for(a.s();!(n=a.n()).done;){var s=n.value;if("ul"!==s.name&&"ol"!==s.name||o++,o===t){i=s;break}}}catch(l){a.e(l)}finally{a.f()}return i}(o,a-e.indent),a=parseInt(e.indent));else o=$v(h,e.element,n);e.indent<=a&&(o.is("element",h.type)||(o=n.rename(h.type,o)))}var p=function(e,t){return function(e,t){var n,i=new Tn({name:"span",styles:{"mso-list":"Ignore"}}),o=r(t.createRangeIn(e));try{for(o.s();!(n=o.n()).done;){var a=n.value;"elementStart"===a.type&&i.match(a.item)&&t.remove(a.item)}}catch(s){o.e(s)}finally{o.f()}}(e,t),t.rename("li",e)}(e.element,n);n.appendChild(p,o)}))}}})(n,t.stylesString),function(e,t){if(e.childCount){var n=new dc;!function(e,t,n){var i,o=n.createRangeIn(t),a=new Tn({name:"img"}),s=[],l=r(o);try{for(l.s();!(i=l.n()).done;){var u=i.value;if(a.match(u.item)){var c=u.item,d=c.getAttribute("v:shapes")?c.getAttribute("v:shapes").split(" "):[];d.length&&d.every((function(t){return e.indexOf(t)>-1}))?s.push(c):c.getAttribute("src")||s.push(c)}}}catch(p){l.e(p)}finally{l.f()}for(var h=0,f=s;h<f.length;h++){var v=f[h];n.remove(v)}}(function(e,t){var n,i=t.createRangeIn(e),o=new Tn({name:/v:(.+)/}),a=[],s=r(i);try{for(s.s();!(n=s.n()).done;){var l=n.value,u=l.item,c=u.previousSibling&&u.previousSibling.name||null;o.match(u)&&u.getAttribute("o:gfxdata")&&"v:shapetype"!==c&&a.push(l.item.getAttribute("id"))}}catch(d){s.e(d)}finally{s.f()}return a}(e,n),e,n),function(e,t){var n,i=t.createRangeIn(e),o=new Tn({name:/v:(.+)/}),a=[],s=r(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;o.match(l.item)&&a.push(l.item)}}catch(h){s.e(h)}finally{s.f()}for(var u=0,c=a;u<c.length;u++){var d=c[u];t.remove(d)}}(e,n);var i=function(e,t){var n,i=t.createRangeIn(e),o=new Tn({name:"img"}),a=[],s=r(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;o.match(l.item)&&l.item.getAttribute("src").startsWith("file://")&&a.push(l.item)}}catch(u){s.e(u)}finally{s.f()}return a}(e,n);i.length&&function(e,t,n){if(e.length===t.length)for(var r=0;r<e.length;r++){var i="data:".concat(t[r].type,";base64,").concat((o=t[r].hex,btoa(o.match(/\w{2}/g).map((function(e){return String.fromCharCode(parseInt(e,16))})).join(""))));n.setAttribute("src",i,e[r])}var o}(i,function(e){if(!e)return[];var t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),i=e.match(n),o=[];if(i){var a,s=r(i);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=!1;l.includes("\\pngblip")?u="image/png":l.includes("\\jpegblip")&&(u="image/jpeg"),u&&o.push({hex:l.replace(t,"").replace(/[^\da-fA-F]/g,""),type:u})}}catch(c){s.e(c)}finally{s.f()}}return o}(t),n)}}(n,e.dataTransfer.getData("text/rtf")),e.content=n}}]),e}();function ep(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t>i?r.setAttribute(e,t,n):r.removeAttribute(e,n)}function tp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.createElement("tableCell",n);return e.insertElement("paragraph",r),e.insert(r,t),r}function np(e,t){var n=parseInt(t.parent.parent.getAttribute("headingColumns")||0),r=e.getCellLocation(t).column;return!!n&&r<n}function rp(e){return function(t){t.on("element:"+e,(function(e,t,n){if(t.modelRange&&t.viewItem.isEmpty){var r=n.writer.createPositionAt(t.modelRange.start.nodeAfter,0);n.writer.insertElement("paragraph",r)}}),{priority:"low"})}}function ip(e){for(var t=0,n=0,r=Array.from(e.getChildren()).filter((function(e){return"th"===e.name||"td"===e.name}));n<r.length&&"th"===r[n].name;)t+=parseInt(r[n].getAttribute("colspan")||1),n++;return t}var op=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this._table=t,this._startRow=void 0!==n.row?n.row:n.startRow||0,this._endRow=void 0!==n.row?n.row:n.endRow,this._startColumn=void 0!==n.column?n.column:n.startColumn||0,this._endColumn=void 0!==n.column?n.column:n.endColumn,this._includeAllSlots=!!n.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}return u(e,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var e=this._table.getChild(this._rowIndex);if(!e||this._isOverEndRow())return{done:!0};if(!e.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();var t=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{var r=e.getChild(this._cellIndex);if(!r)return this._advanceToNextRow();var i=parseInt(r.getAttribute("colspan")||1),o=parseInt(r.getAttribute("rowspan")||1);(i>1||o>1)&&this._recordSpans(r,o,i),this._shouldSkipSlot()||(t=this._formatOutValue(r)),this._nextCellAtColumn=this._column+i}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}},{key:"skipRow",value:function(e){this._skipRows.add(e)}},{key:"_advanceToNextRow",value:function(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}},{key:"_isOverEndRow",value:function(){return void 0!==this._endRow&&this._row>this._endRow}},{key:"_isOverEndColumn",value:function(){return void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_formatOutValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new ap(this,e,t,n)}}},{key:"_shouldSkipSlot",value:function(){return this._skipRows.has(this._row)||this._row<this._startRow||this._column<this._startColumn||void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_getSpanned",value:function(){var e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}},{key:"_recordSpans",value:function(e,t,n){for(var r={cell:e,row:this._row,column:this._column},i=this._row;i<this._row+t;i++)for(var o=this._column;o<this._column+n;o++)i==this._row&&o==this._column||this._markSpannedCell(i,o,r)}},{key:"_markSpannedCell",value:function(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}}]),e}(),ap=function(){function e(t,n,r,i){s(this,e),this.cell=n,this.row=t._row,this.column=t._column,this.cellAnchorRow=r,this.cellAnchorColumn=i,this._cellIndex=t._cellIndex,this._rowIndex=t._rowIndex,this._table=t._table}return u(e,[{key:"getPositionBefore",value:function(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}},{key:"isAnchor",get:function(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}},{key:"cellWidth",get:function(){return parseInt(this.cell.getAttribute("colspan")||1)}},{key:"cellHeight",get:function(){return parseInt(this.cell.getAttribute("rowspan")||1)}},{key:"rowIndex",get:function(){return this._rowIndex}}]),e}();function sp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t.on("insert:table",(function(t,n,i){var o=n.item;if(i.consumable.consume(o,"insert")){i.consumable.consume(o,"attribute:headingRows:table"),i.consumable.consume(o,"attribute:headingColumns:table");var a,s,l,u=e&&e.asWidget,c=i.writer.createContainerElement("figure",{class:"table"}),d=i.writer.createContainerElement("table");i.writer.insert(i.writer.createPositionAt(c,0),d),u&&((l=i.writer).setCustomProperty("table",!0,s=c),a=Mc(s,l,{hasSelectionHandle:!0}));var h,f=new op(o),v={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},p=new Map,g=r(f);try{for(g.s();!(h=g.n()).done;){var m=h.value,y=m.row,k=m.cell,b=o.getChild(y),_=p.get(y)||hp(d,b,y,v,i);p.set(y,_),i.consumable.consume(k,"insert"),dp(m,v,i.writer.createPositionAt(_,"end"),i,e)}}catch(E){g.e(E)}finally{g.f()}var w,C=r(o.getChildren());try{for(C.s();!(w=C.n()).done;){var x=w.value,S=x.index;x.is("element","tableRow")&&!p.has(S)&&p.set(S,hp(d,x,S,v,i))}}catch(E){C.e(E)}finally{C.f()}var A=i.mapper.toViewPosition(n.range.start);i.mapper.bindElements(o,u?a:c),i.writer.insert(A,u?a:c)}}))}}function lp(e,t){var n=t.writer;if(e.parent.is("element","tableCell"))return up(e)?n.createContainerElement("span",{style:"display:inline-block"}):n.createContainerElement("p")}function up(e){return 1===e.parent.childCount&&!gp(e)}function cp(e,t,n){var r=e.cell,i=fp(e,t),o=n.mapper.toViewElement(r);o&&o.name!==i&&function(e,t,n){var r=n.writer,i=n.mapper.toViewElement(e),o=Fc(r.createEditableElement(t,i.getAttributes()),r);Dc(o,r,(function(e,t,n){return n.addClass(gn(t.classes),e)}),(function(e,t,n){return n.removeClass(gn(t.classes),e)})),r.insert(r.createPositionAfter(i),o),r.move(r.createRangeIn(i),r.createPositionAt(o,0)),r.remove(r.createRangeOn(i)),n.mapper.unbindViewElement(i),n.mapper.bindElements(e,o)}(r,i,n)}function dp(e,t,n,r,i){var o=i&&i.asWidget,a=fp(e,t),s=o?Fc(r.writer.createEditableElement(a),r.writer):r.writer.createContainerElement(a);o&&Dc(s,r.writer,(function(e,t,n){return n.addClass(gn(t.classes),e)}),(function(e,t,n){return n.removeClass(gn(t.classes),e)}));var l=e.cell,u=l.getChild(0),c=1===l.childCount&&"paragraph"===u.name;if(r.writer.insert(n,s),r.mapper.bindElements(l,s),!o&&c&&!gp(u)){var d=l.getChild(0);r.consumable.consume(d,"insert"),r.mapper.bindElements(d,s)}}function hp(e,t,n,r,i){i.consumable.consume(t,"insert");var o=t.isEmpty?i.writer.createEmptyElement("tr"):i.writer.createContainerElement("tr");i.mapper.bindElements(t,o);var a=r.headingRows,s=function(e,t,n){return vp(e,t)||function(e,t,n){var r=n.writer.createContainerElement(e),i=n.writer.createPositionAt(t,"tbody"==e?"end":0);return n.writer.insert(i,r),r}(e,t,n)}(function(e,t){return e<t.headingRows?"thead":"tbody"}(n,r),e,i),l=i.writer.createPositionAt(s,a>0&&n>=a?n-a:n);return i.writer.insert(l,o),o}function fp(e,t){var n=e.row,r=e.column,i=t.headingColumns,o=t.headingRows;return o&&o>n||i&&i>r?"th":"td"}function vp(e,t){var n,i=r(t.getChildren());try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.name==e)return o}}catch(a){i.e(a)}finally{i.f()}}function pp(e,t,n){var r=vp(e,t);r&&0===r.childCount&&n.writer.remove(n.writer.createRangeOn(r))}function gp(e){return!!i(e.getAttributeKeys()).length}var mp=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema;this.isEnabled=function(e,t){var n=e.getFirstPosition().parent;return t.checkChild(n===n.root?n:n.parent,"table")}(t,n)&&!zc(t,n)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document.selection,r=this.editor.plugins.get("TableUtils"),i=Vc(n,t);t.change((function(n){var o=r.createTable(n,e);t.insertContent(o,i),n.setSelection(n.createPositionAt(o.getNodeByPath([0,0,0]),0))}))}}]),n}(Qe);function yp(e){var t,n=[],i=r(xp(e.getRanges()));try{for(i.s();!(t=i.n()).done;){var o=t.value.getContainedElement();o&&o.is("element","tableCell")&&n.push(o)}}catch(a){i.e(a)}finally{i.f()}return n}function kp(e){var t,n=[],i=r(e.getRanges());try{for(i.s();!(t=i.n()).done;){var o=t.value.start.findAncestor("tableCell");o&&n.push(o)}}catch(a){i.e(a)}finally{i.f()}return n}function bp(e){var t=yp(e);return t.length?t:kp(e)}function _p(e){return Sp(e.map((function(e){return e.parent.index})))}function wp(e){var t=e[0].findAncestor("table");return Sp(i(new op(t)).filter((function(t){return e.includes(t.cell)})).map((function(e){return e.column})))}function Cp(e,t){if(e.length<2||!function(e){var t=e[0].findAncestor("table");if(!Ep(_p(e),parseInt(t.getAttribute("headingRows")||0)))return!1;var n=parseInt(t.getAttribute("headingColumns")||0);return Ep(wp(e),n)}(e))return!1;var n,o=new Set,a=new Set,s=0,l=r(e);try{for(l.s();!(n=l.n()).done;){var u=n.value,c=t.getCellLocation(u),d=c.row,h=c.column,f=parseInt(u.getAttribute("rowspan")||1),v=parseInt(u.getAttribute("colspan")||1);o.add(d),a.add(h),f>1&&o.add(d+f-1),v>1&&a.add(h+v-1),s+=f*v}}catch(p){l.e(p)}finally{l.f()}return function(e,t){var n=Array.from(e.values()),r=Array.from(t.values());return(Math.max.apply(Math,i(n))-Math.min.apply(Math,i(n))+1)*(Math.max.apply(Math,i(r))-Math.min.apply(Math,i(r))+1)}(o,a)==s}function xp(e){return Array.from(e).sort(Ap)}function Sp(e){var t=e.sort((function(e,t){return e-t}));return{first:t[0],last:t[t.length-1]}}function Ap(e,t){return e.start.isBefore(t.start)?-1:1}function Ep(e,t){return e.first<t==e.last<t}var Tp=function(e){c(n,e);var t=d(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,n),(r=t.call(this,e)).order=i.order||"below",r}return u(n,[{key:"refresh",value:function(){var e=!!bp(this.editor.model.document.selection).length;this.isEnabled=e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),r="above"===this.order,i=bp(t),o=_p(i),a=r?o.first:o.last,s=i[0].findAncestor("table");n.insertRows(s,{at:r?a:a+1,copyStructureFromAbove:!r})}}]),n}(Qe),Pp=function(e){c(n,e);var t=d(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,n),(r=t.call(this,e)).order=i.order||"right",r}return u(n,[{key:"refresh",value:function(){var e=!!bp(this.editor.model.document.selection).length;this.isEnabled=e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),r="left"===this.order,i=bp(t),o=wp(i),a=r?o.first:o.last,s=i[0].findAncestor("table");n.insertColumns(s,{columns:1,at:r?a:a+1})}}]),n}(Qe),Rp=function(e){c(n,e);var t=d(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,n),(r=t.call(this,e)).direction=i.direction||"horizontally",r}return u(n,[{key:"refresh",value:function(){var e=bp(this.editor.model.document.selection);this.isEnabled=1===e.length}},{key:"execute",value:function(){var e=bp(this.editor.model.document.selection)[0],t="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");t?n.splitCellHorizontally(e,2):n.splitCellVertically(e,2)}}]),n}(Qe);function Ip(e,t,n){for(var o=t.startRow,a=t.startColumn,s=t.endRow,l=t.endColumn,u=n.createElement("table"),c=s-o+1,d=0;d<c;d++)n.insertElement("tableRow",u,"end");var h,f=r(i(new op(e,{startRow:o,endRow:s,startColumn:a,endColumn:l,includeAllSlots:!0})));try{for(f.s();!(h=f.n()).done;){var v=h.value,p=v.row,g=v.column,m=v.cell,y=v.isAnchor,k=v.cellAnchorRow,b=v.cellAnchorColumn,_=u.getChild(p-o);if(y){var w=n.cloneElement(m);n.append(w,_),Dp(w,p,g,s,l,n)}else(k<o||b<a)&&tp(n,n.createPositionAt(_,"end"))}}catch(C){f.e(C)}finally{f.f()}return function(e,t,n,r,i){var o=parseInt(t.getAttribute("headingRows")||0);o>0&&ep("headingRows",o-n,e,i,0);var a=parseInt(t.getAttribute("headingColumns")||0);a>0&&ep("headingColumns",a-r,e,i,0)}(u,e,o,a,n),u}function Op(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=[],a=new op(e,{startRow:i,endRow:t-1}),s=r(a);try{for(s.s();!(n=s.n()).done;){var l=n.value,u=l.row,c=l.cellHeight,d=u+c-1;u<t&&t<=d&&o.push(l)}}catch(h){s.e(h)}finally{s.f()}return o}function Mp(e,t,n){var o=e.parent,a=o.parent,s=o.index,l=t-s,u={},c=parseInt(e.getAttribute("rowspan"))-l;c>1&&(u.rowspan=c);var d=parseInt(e.getAttribute("colspan")||1);d>1&&(u.colspan=d);var h,f,v=s+l,p=null,g=r(i(new op(a,{startRow:s,endRow:v,includeAllSlots:!0})));try{for(g.s();!(f=g.n()).done;){var m=f.value,y=m.row,k=m.column;m.cell===e&&void 0===h&&(h=k),void 0!==h&&h===k&&y===v&&(p=tp(n,m.getPositionBefore(),u))}}catch(b){g.e(b)}finally{g.f()}return ep("rowspan",l,e,n),p}function Np(e,t){var n,i=[],o=r(new op(e));try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a.column,l=a.cellWidth;s<t&&t<=s+l-1&&i.push(a)}}catch(u){o.e(u)}finally{o.f()}return i}function Lp(e,t,n,r){var i=n-t,o={},a=parseInt(e.getAttribute("colspan"))-i;a>1&&(o.colspan=a);var s=parseInt(e.getAttribute("rowspan")||1);s>1&&(o.rowspan=s);var l=tp(r,r.createPositionAfter(e),o);return ep("colspan",i,e,r),l}function Dp(e,t,n,r,i,o){var a=parseInt(e.getAttribute("colspan")||1),s=parseInt(e.getAttribute("rowspan")||1);n+a-1>i&&ep("colspan",i-n+1,e,o,1),t+s-1>r&&ep("rowspan",r-t+1,e,o,1)}function jp(e,t){var n,o=t.getColumns(e),a=new Array(o).fill(0),s=r(new op(e));try{for(s.s();!(n=s.n()).done;){a[n.value.column]++}}catch(u){s.e(u)}finally{s.f()}var l=a.reduce((function(e,t,n){return t?e:[].concat(i(e),[n])}),[]);return l.length>0&&(t.removeColumns(e,{at:l[l.length-1]}),!0)}function Fp(e,t){for(var n=[],r=t.getRows(e),i=0;i<r;i++)e.getChild(i).isEmpty&&n.push(i);return n.length>0&&(t.removeRows(e,{at:n[n.length-1]}),!0)}function Vp(e,t){jp(e,t)||Fp(e,t)}function zp(e,t){var n=Array.from(new op(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));return n.every((function(e){return 1===e.cellHeight}))?t.lastRow:t.lastRow+(n[0].cellHeight-1)}function Bp(e,t){var n=Array.from(new op(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));return n.every((function(e){return 1===e.cellWidth}))?t.lastColumn:t.lastColumn+(n[0].cellWidth-1)}var Hp=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).direction=r.direction,i.isHorizontal="right"==i.direction||"left"==i.direction,i}return u(n,[{key:"refresh",value:function(){var e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=kp(t.document.selection)[0],r=this.value,i=this.direction;t.change((function(t){var o="right"==i||"down"==i,a=o?n:r,s=o?r:n,l=s.parent;!function(e,t,n){Up(e)||(Up(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}(s,a,t);var u=e.isHorizontal?"colspan":"rowspan",c=parseInt(n.getAttribute(u)||1),d=parseInt(r.getAttribute(u)||1);t.setAttribute(u,c+d,a),t.setSelection(t.createRangeIn(a));var h=e.editor.plugins.get("TableUtils");Vp(l.findAncestor("table"),h)}))}},{key:"_getMergeableCell",value:function(){var e=kp(this.editor.model.document.selection)[0];if(e){var t=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(e,t,n){var r="right"==t?e.nextSibling:e.previousSibling,i=(e.parent.parent.getAttribute("headingColumns")||0)>0;if(r){var o="right"==t?e:r,a="right"==t?r:e,s=n.getCellLocation(o).column,l=n.getCellLocation(a).column,u=parseInt(o.getAttribute("colspan")||1),c=np(n,o),d=np(n,a);return i&&c!=d?void 0:s+u===l?r:void 0}}(e,this.direction,t):function(e,t,n){var r=e.parent,o=r.parent,a=o.getChildIndex(r);if(!("down"==t&&a===n.getRows(o)-1||"up"==t&&0===a)){var s=parseInt(e.getAttribute("rowspan")||1),l=o.getAttribute("headingRows")||0;if(!l||!("down"==t&&a+s===l||"up"==t&&a===l)){var u=parseInt(e.getAttribute("rowspan")||1),c="down"==t?a+u:a,d=i(new op(o,{endRow:c})),h=d.find((function(t){return t.cell===e})).column,f=d.find((function(e){var n=e.row,r=e.cellHeight;return e.column===h&&("down"==t?n===c:c===n+r)}));return f&&f.cell}}}(e,this.direction,t);if(n){var r=this.isHorizontal?"rowspan":"colspan",o=parseInt(e.getAttribute(r)||1);return parseInt(n.getAttribute(r)||1)===o?n:void 0}}}}]),n}(Qe);function Up(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}var qp=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=bp(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getRows(n)-1,i=_p(e);this.isEnabled=!(0===i.first&&i.last===r)}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this.editor.model,t=this.editor.plugins.get("TableUtils"),n=bp(e.document.selection),i=_p(n),o=n[0],a=o.findAncestor("table"),s=t.getCellLocation(o).column;e.change((function(e){t.removeRows(a,{at:i.first,rows:i.last-i.first+1});var n=function(e,t,n,i){var o,a=e.getChild(Math.min(t,i-1)),s=a.getChild(0),l=0,u=r(a.getChildren());try{for(u.s();!(o=u.n()).done;){var c=o.value;if(l>n)return s;s=c,l+=parseInt(c.getAttribute("colspan")||1)}}catch(d){u.e(d)}finally{u.f()}return s}(a,i.first,s,t.getRows(a));e.setSelection(e.createPositionAt(n,0))}))}}]),n}(Qe),Wp=function(e){c(r,e);var t=d(r);function r(){return s(this,r),t.apply(this,arguments)}return u(r,[{key:"refresh",value:function(){var e=bp(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getColumns(n),i=wp(e),o=i.first,a=i.last;this.isEnabled=a-o<r-1}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=n(function(e){var t=bp(e),n=t[0],r=t.pop(),i=[n,r];return n.isBefore(r)?i:i.reverse()}(this.editor.model.document.selection),2),r=t[0],o=t[1],a=r.parent.parent,s=i(new op(a)),l={first:s.find((function(e){return e.cell===r})).column,last:s.find((function(e){return e.cell===o})).column},u=function(e,t,n,r){return parseInt(n.getAttribute("colspan")||1)>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:r.first?e.reverse().find((function(e){return e.column<r.first})).cell:e.reverse().find((function(e){return e.column>r.last})).cell}(s,r,o,l);this.editor.model.change((function(t){var n=l.last-l.first+1;e.editor.plugins.get("TableUtils").removeColumns(a,{at:l.first,columns:n}),t.setSelection(t.createPositionAt(u,0))}))}}]),r}(Qe),$p=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=this,t=bp(this.editor.model.document.selection),n=t.length>0;this.isEnabled=n,this.value=n&&t.every((function(t){return e._isInHeading(t,t.parent.parent)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=bp(t.document.selection),i=n[0].findAncestor("table"),o=_p(n),a=o.first,s=o.last,l=this.value?a:s+1,u=i.getAttribute("headingRows")||0;t.change((function(e){if(l){var t,n=r(Op(i,l,l>u?u:0));try{for(n.s();!(t=n.n()).done;){Mp(t.value.cell,l,e)}}catch(o){n.e(o)}finally{n.f()}}ep("headingRows",l,i,e,0)}))}}},{key:"_isInHeading",value:function(e,t){var n=parseInt(t.getAttribute("headingRows")||0);return!!n&&e.parent.index<n}}]),n}(Qe),Kp=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=bp(this.editor.model.document.selection),t=this.editor.plugins.get("TableUtils"),n=e.length>0;this.isEnabled=n,this.value=n&&e.every((function(e){return np(t,e)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=bp(t.document.selection),i=n[0].findAncestor("table"),o=wp(n),a=o.first,s=o.last,l=this.value?a:s+1;t.change((function(e){if(l){var t,n=r(Np(i,l));try{for(n.s();!(t=n.n()).done;){var o=t.value;Lp(o.cell,o.column,l,e)}}catch(a){n.e(a)}finally{n.f()}}ep("headingColumns",l,i,e,0)}))}}}]),n}(Qe),Gp=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){this.decorate("insertColumns"),this.decorate("insertRows")}},{key:"getCellLocation",value:function(e){var t,n=e.parent,i=n.parent,o=i.getChildIndex(n),a=r(new op(i,{row:o}));try{for(a.s();!(t=a.n()).done;){var s=t.value,l=s.cell,u=s.row,c=s.column;if(l===e)return{row:u,column:c}}}catch(d){a.e(d)}finally{a.f()}}},{key:"createTable",value:function(e,t){var n=e.createElement("table");return Jp(e,n,0,parseInt(t.rows)||2,parseInt(t.columns)||2),t.headingRows&&ep("headingRows",t.headingRows,n,e,0),t.headingColumns&&ep("headingColumns",t.headingColumns,n,e,0),n}},{key:"insertRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.editor.model,i=t.at||0,o=t.rows||1,a=void 0!==t.copyStructureFromAbove,s=t.copyStructureFromAbove?i-1:i,l=this.getRows(e),u=this.getColumns(e);if(i>l)throw new C.a("tableutils-insertrows-insert-out-of-range",this,{options:t});n.change((function(t){var n=e.getAttribute("headingRows")||0;if(n>i&&ep("headingRows",n+o,e,t,0),a||0!==i&&i!==l){var c,d=a?Math.max(i,s):i,h=new op(e,{endRow:d}),f=new Array(u).fill(1),v=r(h);try{for(v.s();!(c=v.n()).done;){var p=c.value,g=p.row,m=p.column,y=p.cellHeight,k=p.cellWidth,b=p.cell,_=g+y-1,w=g<=s&&s<=_;g<i&&i<=_?(t.setAttribute("rowspan",y+o,b),f[m]=-k):a&&w&&(f[m]=k)}}catch(T){v.e(T)}finally{v.f()}for(var C=0;C<o;C++){var x=t.createElement("tableRow");t.insert(x,e,i);for(var S=0;S<f.length;S++){var A=f[S],E=t.createPositionAt(x,"end");A>0&&tp(t,E,A>1?{colspan:A}:null),S+=Math.abs(A)-1}}}else Jp(t,e,i,o,u)}))}},{key:"insertColumns",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.at||0,o=n.columns||1;this.editor.model.change((function(n){var a=e.getAttribute("headingColumns");i<a&&n.setAttribute("headingColumns",a+o,e);var s=t.getColumns(e);if(0!==i&&s!==i){var l,u=new op(e,{column:i,includeAllSlots:!0}),c=r(u);try{for(c.s();!(l=c.n()).done;){var d=l.value,h=d.row,f=d.cell,v=d.cellAnchorColumn,p=d.cellAnchorRow,g=d.cellWidth,m=d.cellHeight;if(v<i){n.setAttribute("colspan",g+o,f);for(var y=p+m-1,k=h;k<=y;k++)u.skipRow(k)}else Qp(o,n,d.getPositionBefore())}}catch(C){c.e(C)}finally{c.f()}}else{var b,_=r(e.getChildren());try{for(_.s();!(b=_.n()).done;){var w=b.value;w.is("element","tableRow")&&Qp(o,n,n.createPositionAt(w,i?"end":0))}}catch(C){_.e(C)}finally{_.f()}}}))}},{key:"removeRows",value:function(e,t){var n=this,o=this.editor.model,a=t.rows||1,s=this.getRows(e),l=t.at,u=l+a-1;if(u>s-1)throw new C.a("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});o.change((function(t){var o=function(e,t,n){var i,o=new Map,a=[],s=r(new op(e,{endRow:n}));try{for(s.s();!(i=s.n()).done;){var l=i.value,u=l.row,c=l.column,d=l.cellHeight,h=l.cell,f=u+d-1;if(u>=t&&u<=n&&f>n&&o.set(c,{cell:h,rowspan:d-(n-u+1)}),u<t&&f>=t){var v;v=f>=n?n-t+1:f-t+1,a.push({cell:h,rowspan:d-v})}}}catch(p){s.e(p)}finally{s.f()}return{cellsToMove:o,cellsToTrim:a}}(e,l,u),a=o.cellsToMove,s=o.cellsToTrim;a.size&&function(e,t,n,o){var a,s,l=i(new op(e,{includeAllSlots:!0,row:t})),u=e.getChild(t),c=r(l);try{for(c.s();!(s=c.n()).done;){var d=s.value,h=d.column,f=d.cell,v=d.isAnchor;if(n.has(h)){var p=n.get(h),g=p.cell,m=p.rowspan,y=a?o.createPositionAfter(a):o.createPositionAt(u,0);o.move(o.createRangeOn(g),y),ep("rowspan",m,g,o),a=g}else v&&(a=f)}}catch(k){c.e(k)}finally{c.f()}}(e,u+1,a,t);for(var c=u;c>=l;c--)t.remove(e.getChild(c));var d,h=r(s);try{for(h.s();!(d=h.n()).done;){var f=d.value;ep("rowspan",f.rowspan,f.cell,t)}}catch(v){h.e(v)}finally{h.f()}!function(e,t,n,r){var i=e.getAttribute("headingRows")||0;t<i&&ep("headingRows",n<i?i-(n-t+1):t,e,r,0)}(e,l,u,t),jp(e,n)||Fp(e,n)}))}},{key:"removeColumns",value:function(e,t){var n=this,r=t.at,o=t.at+(t.columns||1)-1;this.editor.model.change((function(t){!function(e,t,n){var r=e.getAttribute("headingColumns")||0;if(r&&t.first<r){var i=Math.min(r-1,t.last)-t.first+1;n.setAttribute("headingColumns",r-i,e)}}(e,{first:r,last:o},t);for(var a=o;a>=r;a--)for(var s=0,l=i(new op(e));s<l.length;s++){var u=l[s],c=u.cell,d=u.column,h=u.cellWidth;d<=a&&h>1&&d+h>a?ep("colspan",h-1,c,t):d===a&&t.remove(c)}Fp(e,n)||jp(e,n)}))}},{key:"splitCellVertically",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,o=e.parent.parent,a=parseInt(e.getAttribute("rowspan")||1),s=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(s>1){var l=Zp(s,t),u=l.newCellsSpan;ep("colspan",l.updatedSpan,e,n);var c={};u>1&&(c.colspan=u),a>1&&(c.rowspan=a),Qp(s>t?t-1:s-1,n,n.createPositionAfter(e),c)}if(s<t){var d,h=t-s,f=i(new op(o)),v=f.find((function(t){return t.cell===e})).column,p=r(f.filter((function(t){var n=t.cell,r=t.cellWidth,i=t.column;return n!==e&&i===v||i<v&&i+r>v})));try{for(p.s();!(d=p.n()).done;){var g=d.value,m=g.cell,y=g.cellWidth;n.setAttribute("colspan",y+h,m)}}catch(_){p.e(_)}finally{p.f()}var k={};a>1&&(k.rowspan=a),Qp(h,n,n.createPositionAfter(e),k);var b=o.getAttribute("headingColumns")||0;b>v&&ep("headingColumns",b+h,o,n)}}))}},{key:"splitCellHorizontally",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,o=e.parent,a=o.parent,s=a.getChildIndex(o),l=parseInt(e.getAttribute("rowspan")||1),u=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(l>1){var o=i(new op(a,{startRow:s,endRow:s+l-1,includeAllSlots:!0})),c=Zp(l,t),d=c.newCellsSpan,h=c.updatedSpan;ep("rowspan",h,e,n);var f=o.find((function(t){return t.cell===e})).column,v={};d>1&&(v.rowspan=d),u>1&&(v.colspan=u);for(var p=0,g=o;p<g.length;p++){var m=g[p],y=m.column,k=m.row;k>=s+h&&y===f&&(k+s+h)%d==0&&Qp(1,n,m.getPositionBefore(),v)}}if(l<t){var b,_=t-l,w=r(i(new op(a,{startRow:0,endRow:s})));try{for(w.s();!(b=w.n()).done;){var C=b.value,x=C.cell,S=C.cellHeight,A=C.row;x!==e&&A+S>s&&n.setAttribute("rowspan",S+_,x)}}catch(P){w.e(P)}finally{w.f()}var E={};u>1&&(E.colspan=u),Jp(n,a,s+1,_,1,E);var T=a.getAttribute("headingRows")||0;T>s&&ep("headingRows",T+_,a,n)}}))}},{key:"getColumns",value:function(e){return i(e.getChild(0).getChildren()).reduce((function(e,t){return e+parseInt(t.getAttribute("colspan")||1)}),0)}},{key:"getRows",value:function(e){return Array.from(e.getChildren()).reduce((function(e,t){return t.is("element","tableRow")?e+1:e}),0)}}],[{key:"pluginName",get:function(){return"TableUtils"}}]),n}(Ge);function Jp(e,t,n,r,i){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=0;a<r;a++){var s=e.createElement("tableRow");e.insert(s,t,n),Qp(i,e,e.createPositionAt(s,"end"),o)}}function Qp(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=0;i<e;i++)tp(t,n,r)}function Zp(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};var n=Math.floor(e/t);return{newCellsSpan:n,updatedSpan:e-n*t+n}}var Yp=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=yp(this.editor.model.document.selection);this.isEnabled=Cp(e,this.editor.plugins.get(Gp))}},{key:"execute",value:function(){var e=this.editor.model,t=this.editor.plugins.get(Gp);e.change((function(n){var i=yp(e.document.selection),o=i.shift(),a=function(e,t,n){var i,o=0,a=0,s=r(t);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=n.getCellLocation(l),c=u.row;o=tg(l,u.column,o,"colspan"),a=tg(l,c,a,"rowspan")}}catch(f){s.e(f)}finally{s.f()}var d=n.getCellLocation(e),h=d.row;return{mergeWidth:o-d.column,mergeHeight:a-h}}(o,i,t),s=a.mergeWidth,l=a.mergeHeight;ep("colspan",s,o,n),ep("rowspan",l,o,n);var u,c=r(i);try{for(c.s();!(u=c.n()).done;){Xp(u.value,o,n)}}catch(d){c.e(d)}finally{c.f()}Vp(o.findAncestor("table"),t),n.setSelection(o,"in")}))}}]),n}(Qe);function Xp(e,t,n){eg(e)||(eg(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}function eg(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function tg(e,t,n,r){var i=parseInt(e.getAttribute(r)||1);return Math.max(n,t+i)}var ng=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=bp(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){for(var e=this.editor.model,t=bp(e.document.selection),n=_p(t),i=t[0].findAncestor("table"),o=[],a=n.first;a<=n.last;a++){var s,l=r(i.getChild(a).getChildren());try{for(l.s();!(s=l.n()).done;){var u=s.value;o.push(e.createRangeOn(u))}}catch(c){l.e(c)}finally{l.f()}}e.change((function(e){e.setSelection(o)}))}}]),n}(Qe),rg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=bp(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){var e,t=this.editor.model,n=bp(t.document.selection),i=n[0],o=n.pop(),a=i.findAncestor("table"),s=this.editor.plugins.get("TableUtils"),l=s.getCellLocation(i),u=s.getCellLocation(o),c=Math.min(l.column,u.column),d=Math.max(l.column,u.column),h=[],f=r(new op(a,{startColumn:c,endColumn:d}));try{for(f.s();!(e=f.n()).done;){var v=e.value;h.push(t.createRangeOn(v.cell))}}catch(p){f.e(p)}finally{f.f()}t.change((function(e){e.setSelection(h)}))}}]),n}(Qe);function ig(e,t){var n=!1,i=function(e){var t,n=parseInt(e.getAttribute("headingRows")||0),i=Array.from(e.getChildren()).reduce((function(e,t){return t.is("element","tableRow")?e+1:e}),0),o=[],a=r(new op(e));try{for(a.s();!(t=a.n()).done;){var s=t.value,l=s.row,u=s.cell,c=s.cellHeight;if(!(c<2)){var d=l<n?n:i;l+c>d&&o.push({cell:u,rowspan:d-l})}}}catch(h){a.e(h)}finally{a.f()}return o}(e);if(i.length){n=!0;var o,a=r(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;ep("rowspan",s.rowspan,s.cell,t,1)}}catch(l){a.e(l)}finally{a.f()}}return n}function og(e,t){var i,o=!1,a=function(e){var t,n=new Array(e.childCount).fill(0),i=r(new op(e,{includeAllSlots:!0}));try{for(i.s();!(t=i.n()).done;){n[t.value.rowIndex]++}}catch(o){i.e(o)}finally{i.f()}return n}(e),s=[],l=r(a.entries());try{for(l.s();!(i=l.n()).done;){var u=n(i.value,2),c=u[0];!u[1]&&e.getChild(c).is("element","tableRow")&&s.push(c)}}catch(C){l.e(C)}finally{l.f()}if(s.length){o=!0;var d,h=r(s.reverse());try{for(h.s();!(d=h.n()).done;){var f=d.value;t.remove(e.getChild(f)),a.splice(f,1)}}catch(C){h.e(C)}finally{h.f()}}var v=a.filter((function(t,n){return e.getChild(n).is("element","tableRow")})),p=v[0];if(!v.every((function(e){return e===p}))){var g,m=v.reduce((function(e,t){return t>e?t:e}),0),y=r(v.entries());try{for(y.s();!(g=y.n()).done;){var k=n(g.value,2),b=k[0],_=m-k[1];if(_){for(var w=0;w<_;w++)tp(t,t.createPositionAt(e.getChild(b),"end"));o=!0}}}catch(C){y.e(C)}finally{y.f()}}return o}function ag(e){var t=e.attributeKey;return"attribute"===e.type&&("headingRows"===t||"colspan"===t||"rowspan"===t)}function sg(e,t){var n,i=!1,o=r(e.getChildren());try{for(o.s();!(n=o.n()).done;){var a=n.value;a.is("element","tableRow")&&(i=lg(a,t)||i)}}catch(s){o.e(s)}finally{o.f()}return i}function lg(e,t){var n,i=!1,o=r(e.getChildren());try{for(o.s();!(n=o.n()).done;){i=ug(n.value,t)||i}}catch(a){o.e(a)}finally{o.f()}return i}function ug(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;var n,i=Array.from(e.getChildren()).filter((function(e){return e.is("$text")})),o=r(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;t.wrap(t.createRangeOn(a),"paragraph")}}catch(s){o.e(s)}finally{o.f()}return!!i.length}function cg(e){return!(!e.position||!e.position.parent.is("element","tableCell"))&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function dg(e,t){if(!e.is("element","paragraph"))return!1;var n=t.toViewElement(e);return!!n&&up(e)!==n.is("element","span")}l(93);var hg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.model,n=t.schema,o=e.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowChildren:"$block",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),o.for("upcast").add((function(e){e.on("element:figure",(function(e,t,n){if(n.consumable.test(t.viewItem,{name:!0,classes:"table"})){var i=function(e){var t,n=r(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.is("element","table"))return i}}catch(o){n.e(o)}finally{n.f()}}(t.viewItem);if(i&&n.consumable.test(i,{name:!0})){var o=Ro(n.convertItem(i,t.modelCursor).modelRange.getItems());o&&(n.convertChildren(t.viewItem,n.writer.createPositionAt(o,"end")),n.updateConversionResult(o,t))}}}))})),o.for("upcast").add((function(e){e.on("element:table",(function(e,t,n){var i=t.viewItem;if(n.consumable.test(i,{name:!0})){var o=function(e){for(var t,n={headingRows:0,headingColumns:0},i=[],o=[],a=0,s=Array.from(e.getChildren());a<s.length;a++){var l=s[a];if("tbody"===l.name||"thead"===l.name||"tfoot"===l.name){"thead"!==l.name||t||(t=l);var u,c=r(Array.from(l.getChildren()).filter((function(e){return e.is("element","tr")})));try{for(c.s();!(u=c.n()).done;){var d=u.value;if("thead"===d.parent.name&&d.parent===t)n.headingRows++,i.push(d);else{o.push(d);var h=ip(d);h>n.headingColumns&&(n.headingColumns=h)}}}catch(f){c.e(f)}finally{c.f()}}}return n.rows=[].concat(i,o),n}(i),a=o.rows,s=o.headingRows,l=o.headingColumns,u={};l&&(u.headingColumns=l),s&&(u.headingRows=s);var c=n.writer.createElement("table",u);if(n.safeInsert(c,t.modelCursor)){if(n.consumable.consume(i,{name:!0}),a.forEach((function(e){return n.convertItem(e,n.writer.createPositionAt(c,"end"))})),n.convertChildren(i,n.writer.createPositionAt(c,"end")),c.isEmpty){var d=n.writer.createElement("tableRow");n.writer.insert(d,n.writer.createPositionAt(c,"end")),tp(n.writer,n.writer.createPositionAt(d,"end"))}n.updateConversionResult(c,t)}}}))})),o.for("editingDowncast").add(sp({asWidget:!0})),o.for("dataDowncast").add(sp()),o.for("upcast").elementToElement({model:"tableRow",view:"tr"}),o.for("upcast").add((function(e){e.on("element:tr",(function(e,t){t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()}),{priority:"high"})})),o.for("editingDowncast").add((function(e){return e.on("insert:tableRow",(function(e,t,n){var i=t.item;if(n.consumable.consume(i,"insert")){var o,a=i.parent,s=function(e){var t,n=r(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if("table"===i.name)return i}}catch(o){n.e(o)}finally{n.f()}}(n.mapper.toViewElement(a)),l=a.getChildIndex(i),u=new op(a,{row:l}),c={headingRows:a.getAttribute("headingRows")||0,headingColumns:a.getAttribute("headingColumns")||0},d=new Map,h=r(u);try{for(h.s();!(o=h.n()).done;){var f=o.value,v=d.get(l)||hp(s,i,l,c,n);d.set(l,v),n.consumable.consume(f.cell,"insert"),dp(f,c,n.writer.createPositionAt(v,"end"),n,{asWidget:!0})}}catch(p){h.e(p)}finally{h.f()}}}))})),o.for("editingDowncast").add((function(e){return e.on("remove:tableRow",(function(e,t,n){e.stop();var i,o=n.writer,a=n.mapper,s=a.toViewPosition(t.position).getLastMatchingPosition((function(e){return!e.item.is("element","tr")})).nodeAfter,l=s.parent.parent,u=o.createRangeOn(s),c=o.remove(u),d=r(o.createRangeIn(c).getItems());try{for(d.s();!(i=d.n()).done;){var h=i.value;a.unbindViewElement(h)}}catch(f){d.e(f)}finally{d.f()}pp("thead",l,n),pp("tbody",l,n)}),{priority:"higher"})})),o.for("upcast").elementToElement({model:"tableCell",view:"td"}),o.for("upcast").elementToElement({model:"tableCell",view:"th"}),o.for("upcast").add(rp("td")),o.for("upcast").add(rp("th")),o.for("editingDowncast").add((function(e){return e.on("insert:tableCell",(function(e,t,n){var i=t.item;if(n.consumable.consume(i,"insert")){var o,a=i.parent,s=a.parent,l=s.getChildIndex(a),u=new op(s,{row:l}),c={headingRows:s.getAttribute("headingRows")||0,headingColumns:s.getAttribute("headingColumns")||0},d=r(u);try{for(d.s();!(o=d.n()).done;){var h=o.value;if(h.cell===i){var f=n.mapper.toViewElement(a);return void dp(h,c,n.writer.createPositionAt(f,a.getChildIndex(i)),n,{asWidget:!0})}}}catch(v){d.e(v)}finally{d.f()}}}))})),o.for("editingDowncast").elementToElement({model:"paragraph",view:lp,converterPriority:"high"}),o.attributeToAttribute({model:"colspan",view:"colspan"}),o.attributeToAttribute({model:"rowspan",view:"rowspan"}),o.for("editingDowncast").add((function(e){return e.on("attribute:headingColumns:table",(function(e,t,n){var i=t.item;if(n.consumable.consume(t.item,e.name)){var o,a={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},s=t.attributeOldValue,l=t.attributeNewValue,u=r(new op(i,{endColumn:(s>l?s:l)-1}));try{for(u.s();!(o=u.n()).done;){cp(o.value,a,n)}}catch(c){u.e(c)}finally{u.f()}}}))})),e.commands.add("insertTable",new mp(e)),e.commands.add("insertTableRowAbove",new Tp(e,{order:"above"})),e.commands.add("insertTableRowBelow",new Tp(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new Pp(e,{order:"left"})),e.commands.add("insertTableColumnRight",new Pp(e,{order:"right"})),e.commands.add("removeTableRow",new qp(e)),e.commands.add("removeTableColumn",new Wp(e)),e.commands.add("splitTableCellVertically",new Rp(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new Rp(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new Yp(e)),e.commands.add("mergeTableCellRight",new Hp(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new Hp(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new Hp(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new Hp(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new Kp(e)),e.commands.add("setTableRowHeader",new $p(e)),e.commands.add("selectTableRow",new ng(e)),e.commands.add("selectTableColumn",new rg(e)),function(e){e.document.registerPostFixer((function(){return function(e){var t,n=e.document.differ,i=new Set,o=r(n.getChanges());try{for(o.s();!(t=o.n()).done;){var a=t.value;if("attribute"==a.type){var s=a.range.start.nodeAfter;s&&s.is("element","table")&&"headingRows"==a.attributeKey&&i.add(s)}}}catch(d){o.e(d)}finally{o.f()}if(i.size){var l,u=r(i.values());try{for(u.s();!(l=u.n()).done;){var c=l.value;n.refreshItem(c)}}catch(d){u.e(d)}finally{u.f()}return!0}return!1}(e)}))}(t),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,i=t.document.differ.getChanges(),o=!1,a=new Set,s=r(i);try{for(s.s();!(n=s.n()).done;){var l=n.value,u=void 0;"table"==l.name&&"insert"==l.type&&(u=l.position.nodeAfter),"tableRow"!=l.name&&"tableCell"!=l.name||(u=l.position.findAncestor("table")),ag(l)&&(u=l.range.start.findAncestor("table")),u&&!a.has(u)&&(o=ig(u,e)||o,o=og(u,e)||o,a.add(u))}}catch(c){s.e(c)}finally{s.f()}return o}(t,e)}))}(t),function(e,t){e.document.registerPostFixer((function(){return function(e,t){var n,o=new Set,a=r(e.getChanges());try{for(a.s();!(n=a.n()).done;){var s=n.value,l="attribute"==s.type?s.range.start.parent:s.position.parent;l.is("element","tableCell")&&o.add(l)}}catch(v){a.e(v)}finally{a.f()}var u,c=r(o.values());try{for(c.s();!(u=c.n()).done;){var d,h=r(i(u.value.getChildren()).filter((function(e){return dg(e,t)})));try{for(h.s();!(d=h.n()).done;){var f=d.value;e.refreshItem(f)}}catch(v){h.e(v)}finally{h.f()}}}catch(v){c.e(v)}finally{c.f()}return!1}(e.document.differ,t)}))}(t,e.editing.mapper),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,i=!1,o=r(t.document.differ.getChanges());try{for(o.s();!(n=o.n()).done;){var a=n.value;"insert"==a.type&&"table"==a.name&&(i=sg(a.position.nodeAfter,e)||i),"insert"==a.type&&"tableRow"==a.name&&(i=lg(a.position.nodeAfter,e)||i),"insert"==a.type&&"tableCell"==a.name&&(i=ug(a.position.nodeAfter,e)||i),cg(a)&&(i=ug(a.position.parent,e)||i)}}catch(s){o.e(s)}finally{o.f()}return i}(t,e)}))}(t)}}],[{key:"pluginName",get:function(){return"TableEditing"}},{key:"requires",get:function(){return[Gp]}}]),n}(Ge);l(95);var fg=function(e){c(n,e);var t=d(n);function n(e){var r;s(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.items=r._createGridCollection(),r.set("rows",0),r.set("columns",0),r.bind("label").to(f(r),"columns",f(r),"rows",(function(e,t){return"".concat(t," \xd7 ").concat(e)})),r.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":i.to("boxover")},children:r.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:i.to("label")}]}],on:{mousedown:i.to((function(e){e.preventDefault()})),click:i.to((function(){r.fire("execute")}))}}),r.on("boxover",(function(e,t){var n=t.target.dataset,i=n.row,o=n.column;r.set({rows:parseInt(i),columns:parseInt(o)})})),r.on("change:columns",(function(){r._highlightGridBoxes()})),r.on("change:rows",(function(){r._highlightGridBoxes()})),r}return u(n,[{key:"focus",value:function(){}},{key:"focusLast",value:function(){}},{key:"_highlightGridBoxes",value:function(){var e=this.rows,t=this.columns;this.items.map((function(n,r){var i=Math.floor(r/10)<e&&r%10<t;n.set("isOn",i)}))}},{key:"_createGridCollection",value:function(){for(var e=[],t=0;t<100;t++){var n=Math.floor(t/10);e.push(new vg(this.locale,n+1,t%10+1))}return this.createCollection(e)}}]),n}(Ol),vg=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;s(this,n);var a=(o=t.call(this,e)).bindTemplate;return o.set("isOn",!1),o.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",a.if("isOn","ck-on")],"data-row":r,"data-column":i}}),o}return n}(Ol),pg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=this.editor.t,r="ltr"===t.locale.contentLanguageDirection;t.ui.componentFactory.add("insertTable",(function(e){var r,i=t.commands.get("insertTable"),o=xu(e);return o.bind("isEnabled").to(i),o.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:n("Insert table"),tooltip:!0}),o.on("change:isOpen",(function(){r||(r=new fg(e),o.panelView.children.add(r),r.delegate("execute").to(o),o.buttonView.on("open",(function(){r.rows=0,r.columns=0})),o.on("execute",(function(){t.execute("insertTable",{rows:r.rows,columns:r.columns}),t.editing.view.focus()})))})),o})),t.ui.componentFactory.add("tableColumn",(function(t){var i=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:r?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:r?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return e._prepareDropdown(n("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',i,t)})),t.ui.componentFactory.add("tableRow",(function(t){var r=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return e._prepareDropdown(n("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',r,t)})),t.ui.componentFactory.add("mergeTableCells",(function(t){var i=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:r?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:r?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return e._prepareMergeSplitButtonDropdown(n("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',i,t)}))}},{key:"_prepareDropdown",value:function(e,t,n,r){var i=this.editor,o=xu(r),a=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:e,icon:t,tooltip:!0}),o.bind("isEnabled").toMany(a,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),this.listenTo(o,"execute",(function(e){i.execute(e.source.commandName),i.editing.view.focus()})),o}},{key:"_prepareMergeSplitButtonDropdown",value:function(e,t,n,r){var o=this.editor,a=xu(r,su),s=o.commands.get("mergeTableCells"),l=this._fillDropdownWithListOptions(a,n);return a.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),a.bind("isEnabled").toMany([s].concat(i(l)),"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),this.listenTo(a.buttonView,"execute",(function(){o.execute("mergeTableCells"),o.editing.view.focus()})),this.listenTo(a,"execute",(function(e){o.execute(e.source.commandName),o.editing.view.focus()})),a}},{key:"_fillDropdownWithListOptions",value:function(e,t){var n,i=this.editor,o=[],a=new vn,s=r(t);try{for(s.s();!(n=s.n()).done;){gg(n.value,i,o,a)}}catch(l){s.e(l)}finally{s.f()}return Au(e,a),o}}],[{key:"pluginName",get:function(){return"TableUI"}}]),n}(Ge);function gg(e,t,n,r){var i=e.model=new Lu(e.model),o=e.model,a=o.commandName,s=o.bindIsOn;if("button"===e.type||"switchbutton"===e.type){var l=t.commands.get(a);n.push(l),i.set({commandName:a}),i.bind("isEnabled").to(l),s&&i.bind("isOn").to(l,"value")}i.set({withText:!0}),r.add(e)}l(97);var mg=function(e){c(o,e);var t=d(o);function o(){return s(this,o),t.apply(this,arguments)}return u(o,[{key:"init",value:function(){var e=this;this.listenTo(this.editor.model,"deleteContent",(function(t,n){return e._handleDeleteContent(t,n)}),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}},{key:"getSelectedTableCells",value:function(){var e=yp(this.editor.model.document.selection);return 0==e.length?null:e}},{key:"getSelectionAsFragment",value:function(){var e=this,t=this.getSelectedTableCells();return t?this.editor.model.change((function(n){var r=n.createDocumentFragment(),i=e.editor.plugins.get("TableUtils"),o=wp(t),a=o.first,s=o.last,l=_p(t),u=l.first,c=l.last,d=t[0].findAncestor("table"),h=c,f=s;if(Cp(t,i)){var v={firstColumn:a,lastColumn:s,firstRow:u,lastRow:c};h=zp(d,v),f=Bp(d,v)}var p=Ip(d,{startRow:u,startColumn:a,endRow:h,endColumn:f},n);return n.insert(p,r,0),r})):null}},{key:"setCellSelection",value:function(e,t){var n=this._getCellsToSelect(e,t);this.editor.model.change((function(e){e.setSelection(n.cells.map((function(t){return e.createRangeOn(t)})),{backward:n.backward})}))}},{key:"getFocusCell",value:function(){var e=i(this.editor.model.document.selection.getRanges()).pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"getAnchorCell",value:function(){var e=Ro(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"_defineSelectionConverter",value:function(){var e=this,t=this.editor,n=new Set;t.conversion.for("editingDowncast").add((function(t){return t.on("selection",(function(t,i,o){var a=o.writer;!function(e){var t,i=r(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;e.removeClass("ck-editor__editable_selected",o)}}catch(a){i.e(a)}finally{i.f()}n.clear()}(a);var s=e.getSelectedTableCells();if(s){var l,u=r(s);try{for(u.s();!(l=u.n()).done;){var c=l.value,d=o.mapper.toViewElement(c);a.addClass("ck-editor__editable_selected",d),n.add(d)}}catch(f){u.e(f)}finally{u.f()}var h=o.mapper.toViewElement(s[s.length-1]);a.setSelection(h,0)}}),{priority:"lowest"})}))}},{key:"_enablePluginDisabling",value:function(){var e=this,t=this.editor;this.on("change:isEnabled",(function(){if(!e.isEnabled){var n=e.getSelectedTableCells();if(!n)return;t.model.change((function(e){var r=e.createPositionAt(n[0],0),i=t.model.schema.getNearestSelectionRange(r);e.setSelection(i)}))}}))}},{key:"_handleDeleteContent",value:function(e,t){var i=n(t,2),o=i[0],a=i[1],s=this.editor.model,l=!a||"backward"==a.direction,u=yp(o);u.length&&(e.stop(),s.change((function(e){var t=u[l?u.length-1:0];s.change((function(e){var t,n=r(u);try{for(n.s();!(t=n.n()).done;){var i=t.value;s.deleteContent(e.createSelection(i,"in"))}}catch(o){n.e(o)}finally{n.f()}}));var n=s.schema.getNearestSelectionRange(e.createPositionAt(t,0));o.is("documentSelection")?e.setSelection(n):o.setTo(n)})))}},{key:"_getCellsToSelect",value:function(e,t){var n,i=this.editor.plugins.get("TableUtils"),o=i.getCellLocation(e),a=i.getCellLocation(t),s=Math.min(o.row,a.row),l=Math.max(o.row,a.row),u=Math.min(o.column,a.column),c=Math.max(o.column,a.column),d=new Array(l-s+1).fill(null).map((function(){return[]})),h={startRow:s,endRow:l,startColumn:u,endColumn:c},f=r(new op(e.findAncestor("table"),h));try{for(f.s();!(n=f.n()).done;){var v=n.value,p=v.row,g=v.cell;d[p-s].push(g)}}catch(k){f.e(k)}finally{f.f()}var m=a.row<o.row,y=a.column<o.column;return m&&d.reverse(),y&&d.forEach((function(e){return e.reverse()})),{cells:d.flat(),backward:m||y}}}],[{key:"pluginName",get:function(){return"TableSelection"}},{key:"requires",get:function(){return[Gp]}}]),o}(Ge),yg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this.listenTo(n,"copy",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(n,"cut",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(t.model,"insertContent",(function(t,n){return e._onInsertContent.apply(e,[t].concat(i(n)))}),{priority:"high"}),this.decorate("_replaceTableSlotCell")}},{key:"_onCopyCut",value:function(e,t){var n=this.editor.plugins.get(mg);if(n.getSelectedTableCells()&&("cut"!=e.name||!this.editor.isReadOnly)){t.preventDefault(),e.stop();var r=this.editor.editing.view.document,i=this.editor.data.toView(n.getSelectionAsFragment());r.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:i,method:e.name})}}},{key:"_onInsertContent",value:function(e,t,n){var i=this;if(!n||n.is("documentSelection")){var o=this.editor.model,a=this.editor.plugins.get(Gp),s=function(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);var n,i=t.createRangeIn(e),o=r(i.getItems());try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.is("element","table")){var s=t.createRange(i.start,t.createPositionBefore(a));if(t.hasContent(s,{ignoreWhitespaces:!0}))return null;var l=t.createRange(t.createPositionAfter(a),i.end);return t.hasContent(l,{ignoreWhitespaces:!0})?null:a}}}catch(u){o.e(u)}finally{o.f()}return null}(t,o);if(s){var l=bp(o.document.selection);l.length?(e.stop(),o.change((function(e){var t={width:a.getColumns(s),height:a.getRows(s)},n=function(e,t,n,r){var i=e[0].findAncestor("table"),o=wp(e),a=_p(e),s={firstColumn:o.first,lastColumn:o.last,firstRow:a.first,lastRow:a.last},l=1===e.length;return l&&(s.lastRow+=t.height-1,s.lastColumn+=t.width-1,function(e,t,n,r){var i=r.getColumns(e),o=r.getRows(e);n>i&&r.insertColumns(e,{at:i,columns:n-i}),t>o&&r.insertRows(e,{at:o,rows:t-o})}(i,s.lastRow+1,s.lastColumn+1,r)),l||!Cp(e,r)?function(e,t,n){var r=t.firstRow,i=t.lastRow,o=t.firstColumn,a=t.lastColumn,s={first:r,last:i},l={first:o,last:a};bg(e,o,s,n),bg(e,a+1,s,n),kg(e,r,l,n),kg(e,i+1,l,n,r)}(i,s,n):(s.lastRow=zp(i,s),s.lastColumn=Bp(i,s)),s}(l,t,e,a),r=n.lastColumn-n.firstColumn+1,o={startRow:0,startColumn:0,endRow:Math.min(n.lastRow-n.firstRow+1,t.height)-1,endColumn:Math.min(r,t.width)-1};s=Ip(s,o,e);var u=l[0].findAncestor("table"),c=i._replaceSelectedCellsWithPasted(s,t,u,n,e);if(i.editor.plugins.get("TableSelection").isEnabled){var d=xp(c.map((function(t){return e.createRangeOn(t)})));e.setSelection(d)}else e.setSelection(c[0],0)}))):Vp(s,a)}}}},{key:"_replaceSelectedCellsWithPasted",value:function(e,t,n,o,a){for(var s,l=t.width,u=t.height,c=function(e,t,n){var i,o=new Array(n).fill(null).map((function(){return new Array(t).fill(null)})),a=r(new op(e));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=s.column,u=s.row,c=s.cell;o[u][l]=c}}catch(d){a.e(d)}finally{a.f()}return o}(e,l,u),d=[],h=0,f=i(new op(n,{startRow:o.firstRow,endRow:o.lastRow,startColumn:o.firstColumn,endColumn:o.lastColumn,includeAllSlots:!0}));h<f.length;h++){var v=f[h],p=v.row,g=v.column;g===o.firstColumn&&(s=v.getPositionBefore());var m=c[(p-o.firstRow)%u][(g-o.firstColumn)%l],y=m?a.cloneElement(m):null,k=this._replaceTableSlotCell(v,y,s,a);k&&(Dp(k,p,g,o.lastRow,o.lastColumn,a),d.push(k),s=a.createPositionAfter(k))}var b=parseInt(n.getAttribute("headingRows")||0),_=parseInt(n.getAttribute("headingColumns")||0),w=o.firstColumn<_&&_<=o.lastColumn;if(o.firstRow<b&&b<=o.lastRow){var C=kg(n,b,{first:o.firstColumn,last:o.lastColumn},a,o.firstRow);d.push.apply(d,i(C))}if(w){var x=bg(n,_,{first:o.firstRow,last:o.lastRow},a);d.push.apply(d,i(x))}return d}},{key:"_replaceTableSlotCell",value:function(e,t,n,r){var i=e.cell;return e.isAnchor&&r.remove(i),t?(r.insert(t,n),t):null}}],[{key:"pluginName",get:function(){return"TableClipboard"}},{key:"requires",get:function(){return[mg,Gp]}}]),n}(Ge);function kg(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!(t<1))return Op(e,t,i).filter((function(e){return _g(e.column,e.cellWidth,n)})).map((function(e){return Mp(e.cell,t,r)}))}function bg(e,t,n,r){if(!(t<1))return Np(e,t).filter((function(e){return _g(e.row,e.cellHeight,n)})).map((function(e){return Lp(e.cell,e.column,t,r)}))}function _g(e,t,n){var r=e+t-1,i=n.first,o=n.last;return e>=i&&e<=o||e<i&&r>=i}var wg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(function(){return e._handleTabOnSelectedTable.apply(e,arguments)}),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(t,"arrowKey",(function(){return e._onArrowKey.apply(e,arguments)}),{context:"table"})}},{key:"_handleTabOnSelectedTable",value:function(e,t){var n=this.editor,r=n.model.document.selection.getSelectedElement();r&&r.is("element","table")&&(t(),n.model.change((function(e){e.setSelection(e.createRangeIn(r.getChild(0).getChild(0)))})))}},{key:"_getTabHandler",value:function(e){var t=this,n=this.editor;return function(r,i){var o=kp(n.model.document.selection)[0];if(o||(o=t.editor.plugins.get("TableSelection").getFocusCell()),o){i();var a=o.parent,s=a.parent,l=s.getChildIndex(a),u=a.getChildIndex(o),c=0===u;if(e||!c||0!==l){var d=t.editor.plugins.get("TableUtils"),h=u===a.childCount-1,f=l===d.getRows(s)-1;if(e&&f&&h&&(n.execute("insertTableRowBelow"),l===d.getRows(s)-1))n.model.change((function(e){e.setSelection(e.createRangeOn(s))}));else{var v;if(e&&h){var p=s.getChild(l+1);v=p.getChild(0)}else if(!e&&c){var g=s.getChild(l-1);v=g.getChild(g.childCount-1)}else v=a.getChild(u+(e?1:-1));n.model.change((function(e){e.setSelection(e.createRangeIn(v))}))}}else n.model.change((function(e){e.setSelection(e.createRangeOn(s))}))}}}},{key:"_onArrowKey",value:function(e,t){var n=zr(t.keyCode,this.editor.locale.contentLanguageDirection);this._handleArrowKeys(n,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}},{key:"_handleArrowKeys",value:function(e,t){var n,r=this.editor.model.document.selection,i=["right","down"].includes(e),o=yp(r);if(o.length)return n=t?this.editor.plugins.get("TableSelection").getFocusCell():i?o[o.length-1]:o[0],this._navigateFromCellInDirection(n,e,t),!0;var a=r.focus.findAncestor("tableCell");return!(!a||t&&!r.isCollapsed&&r.isBackward==i||!this._isSelectionAtCellEdge(r,a,i)||(this._navigateFromCellInDirection(a,e,t),0))}},{key:"_isSelectionAtCellEdge",value:function(e,t,n){var r=this.editor.model,i=this.editor.model.schema,o=n?e.getLastPosition():e.getFirstPosition();if(!i.getLimitElement(o).is("element","tableCell"))return r.createPositionAt(t,n?"end":0).isTouching(o);var a=r.createSelection(o);return r.modifySelection(a,{direction:n?"forward":"backward"}),o.isEqual(a.focus)}},{key:"_navigateFromCellInDirection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.model,o=e.findAncestor("table"),a=i(new op(o,{includeAllSlots:!0})),s=a[a.length-1],l=s.row,u=s.column,c=a.find((function(t){return t.cell==e})),d=c.row,h=c.column;switch(t){case"left":h--;break;case"up":d--;break;case"right":h+=c.cellWidth;break;case"down":d+=c.cellHeight}if(d<0||d>l||h<0&&d<=0||h>u&&d>=l)r.change((function(e){e.setSelection(e.createRangeOn(o))}));else{h<0?(h=n?0:u,d--):h>u&&(h=n?u:0,d++);var f=a.find((function(e){return e.row==d&&e.column==h})).cell,v=["right","down"].includes(t),p=this.editor.plugins.get("TableSelection");if(n&&p.isEnabled){var g=p.getAnchorCell()||e;p.setCellSelection(g,f)}else{var m=r.createPositionAt(f,v?0:"end");r.change((function(e){e.setSelection(m)}))}}}}],[{key:"pluginName",get:function(){return"TableKeyboard"}},{key:"requires",get:function(){return[mg]}}]),n}(Ge),Cg=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).domEventType=["mousemove","mouseleave"],r}return u(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(Xi),xg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){this.editor.editing.view.addObserver(Cg),this._enableShiftClickSelection(),this._enableMouseDragSelection()}},{key:"_enableShiftClickSelection",value:function(){var e=this,t=this.editor,n=!1,r=t.plugins.get(mg);this.listenTo(t.editing.view.document,"mousedown",(function(i,o){if(e.isEnabled&&r.isEnabled&&o.domEvent.shiftKey){var a=r.getAnchorCell()||kp(t.model.document.selection)[0];if(a){var s=e._getModelTableCellFromDomEvent(o);s&&Sg(a,s)&&(n=!0,r.setCellSelection(a,s),o.preventDefault())}}})),this.listenTo(t.editing.view.document,"mouseup",(function(){n=!1})),this.listenTo(t.editing.view.document,"selectionChange",(function(e){n&&e.stop()}),{priority:"highest"})}},{key:"_enableMouseDragSelection",value:function(){var e,t,n=this,r=this.editor,i=!1,o=!1,a=r.plugins.get(mg);this.listenTo(r.editing.view.document,"mousedown",(function(t,r){n.isEnabled&&a.isEnabled&&(r.domEvent.shiftKey||r.domEvent.ctrlKey||r.domEvent.altKey||(e=n._getModelTableCellFromDomEvent(r)))})),this.listenTo(r.editing.view.document,"mousemove",(function(r,s){if(s.domEvent.buttons&&e){var l=n._getModelTableCellFromDomEvent(s);l&&Sg(e,l)&&(t=l,i||t==e||(i=!0)),i&&(o=!0,a.setCellSelection(e,t),s.preventDefault())}})),this.listenTo(r.editing.view.document,"mouseup",(function(){i=!1,o=!1,e=null,t=null})),this.listenTo(r.editing.view.document,"selectionChange",(function(e){o&&e.stop()}),{priority:"highest"})}},{key:"_getModelTableCellFromDomEvent",value:function(e){var t=this.editor.editing.view.createPositionAt(e.target,0);return this.editor.editing.mapper.toModelPosition(t).parent.findAncestor("tableCell",{includeSelf:!0})}}],[{key:"pluginName",get:function(){return"TableMouse"}},{key:"requires",get:function(){return[mg]}}]),n}(Ge);function Sg(e,t){return e.parent.parent==t.parent.parent}function Ag(e){var t=e.getSelectedElement();return t&&Tg(t)?t:null}function Eg(e){for(var t=e.getFirstPosition().parent;t;){if(t.is("element")&&Tg(t))return t;t=t.parent}return null}function Tg(e){return!!e.getCustomProperty("table")&&Oc(e)}l(99);var Pg={autoRefresh:!0},Rg=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pg;if(s(this,e),!t)throw new C.a("token-missing-token-url",this);n.initValue&&this._validateTokenValue(n.initValue),this.set("value",n.initValue),this._refresh="function"==typeof t?t:function(){return e=t,new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.addEventListener("load",(function(){var e=r.status,i=r.response;return e<200||e>299?n(new C.a("token-cannot-download-new-token",null)):t(i)})),r.addEventListener("error",(function(){return n(new Error("Network Error"))})),r.addEventListener("abort",(function(){return n(new Error("Abort"))})),r.send()}));var e},this._options=Object.assign({},Pg,n)}return u(e,[{key:"init",value:function(){var e=this;return new Promise((function(t,n){e.value?(e._options.autoRefresh&&e._registerRefreshTokenTimeout(),t(e)):e.refreshToken().then(t).catch(n)}))}},{key:"refreshToken",value:function(){var e=this;return this._refresh().then((function(t){e._validateTokenValue(t),e.set("value",t),e._options.autoRefresh&&e._registerRefreshTokenTimeout()})).then((function(){return e}))}},{key:"destroy",value:function(){clearTimeout(this._tokenRefreshTimeout)}},{key:"_validateTokenValue",value:function(e){var t="string"==typeof e,n=!/^".*"$/.test(e),r=t&&3===e.split(".").length;if(!n||!r)throw new C.a("token-not-in-jwt-format",this)}},{key:"_registerRefreshTokenTimeout",value:function(){var e=this,t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout((function(){e.refreshToken()}),t)}},{key:"_getTokenRefreshTimeoutTime",value:function(){try{var e=n(this.value.split("."),2)[1],t=JSON.parse(atob(e)).exp;return t?Math.floor((1e3*t-Date.now())/2):36e5}catch(o){return 36e5}}}],[{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pg;return new e(t,n).init()}}]),e}();Ke(Rg,Be);var Ig=Rg,Og=/^data:(\S*?);base64,/,Mg=function(){function e(t,n,r){if(s(this,e),!t)throw new C.a("fileuploader-missing-file",null);if(!n)throw new C.a("fileuploader-missing-token",null);if(!r)throw new C.a("fileuploader-missing-api-address",null);this.file=function(e){if("string"!=typeof e)return!1;var t=e.match(Og);return!(!t||!t.length)}(t)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:512;try{for(var n=e.match(Og)[1],r=atob(e.replace(Og,"")),i=[],o=0;o<r.length;o+=t){for(var a=r.slice(o,o+t),s=new Array(a.length),l=0;l<a.length;l++)s[l]=a.charCodeAt(l);i.push(new Uint8Array(s))}return new Blob(i,{type:n})}catch(e){throw new C.a("fileuploader-decoding-image-data-error",null)}}(t):t,this._token=n,this._apiAddress=r}return u(e,[{key:"onProgress",value:function(e){return this.on("progress",(function(t,n){return e(n)})),this}},{key:"onError",value:function(e){return this.once("error",(function(t,n){return e(n)})),this}},{key:"abort",value:function(){this.xhr.abort()}},{key:"send",value:function(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}},{key:"_prepareRequest",value:function(){var e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}},{key:"_attachXHRListeners",value:function(){var e=this,t=this,n=this.xhr;function r(e){return function(){return t.fire("error",e)}}n.addEventListener("error",r("Network Error")),n.addEventListener("abort",r("Abort")),n.upload&&n.upload.addEventListener("progress",(function(t){t.lengthComputable&&e.fire("progress",{total:t.total,uploaded:t.loaded})})),n.addEventListener("load",(function(){var t=n.status,r=n.response;if(t<200||t>299)return e.fire("error",r.message||r.error)}))}},{key:"_sendRequest",value:function(){var e=this,t=new FormData,n=this.xhr;return t.append("file",this.file),new Promise((function(r,i){n.addEventListener("load",(function(){var t=n.status,o=n.response;return t<200||t>299?i(o.message?new C.a("fileuploader-uploading-data-failed",e,{message:o.message}):o.error):r(o)})),n.addEventListener("error",(function(){return i(new Error("Network Error"))})),n.addEventListener("abort",(function(){return i(new Error("Abort"))})),n.send(t)}))}}]),e}();Ke(Mg,A);var Ng=function(){function e(t,n){if(s(this,e),!t)throw new C.a("uploadgateway-missing-token",null);if(!n)throw new C.a("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=n}return u(e,[{key:"upload",value:function(e){return new Mg(e,this._token,this._apiAddress)}}]),e}(),Lg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"createToken",value:function(e,t){return new Ig(e,t)}},{key:"createUploadGateway",value:function(e,t){return new Ng(e,t)}}],[{key:"pluginName",get:function(){return"CloudServicesCore"}}]),n}(_n),Dg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"strikethrough"}),e.model.schema.setAttributeProperties("strikethrough",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"strikethrough",view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),e.commands.add("strikethrough",new hh(e,"strikethrough")),e.keystrokes.set("CTRL+SHIFT+X","strikethrough")}}],[{key:"pluginName",get:function(){return"StrikethroughEditing"}}]),n}(Ge),jg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("strikethrough",(function(r){var i=t.commands.get("strikethrough"),o=new tu(r);return o.set({label:n("Strikethrough"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6zM6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>',keystroke:"CTRL+SHIFT+X",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute("strikethrough"),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"StrikethroughUI"}}]),n}(Ge);function Fg(e){var t,n=e.t,i=e.config.get("codeBlock.languages"),o=r(i);try{for(o.s();!(t=o.n()).done;){var a=t.value;"Plain text"===a.label&&(a.label=n("Plain text")),void 0===a.class&&(a.class="language-"+a.language)}}catch(s){o.e(s)}finally{o.f()}return i}function Vg(e,t,n){var i,o={},a=r(e);try{for(a.s();!(i=a.n()).done;){var s=i.value;"class"===t?o[s[t].split(" ").shift()]=s[n]:o[s[t]]=s[n]}}catch(l){a.e(l)}finally{a.f()}return o}function zg(e){return e.data.match(/^(\s*)/)[0]}function Bg(e){var t=e.document.selection,n=[];if(t.isCollapsed)n.push(t.anchor);else{var i,o=r(t.getFirstRange().getWalker({ignoreElementEnd:!0,direction:"backward"}));try{for(o.s();!(i=o.n()).done;){var a=i.value.item;if(a.is("$textProxy")&&a.parent.is("element","codeBlock")){var s=zg(a.textNode),l=a.textNode,u=l.parent,c=l.startOffset,d=e.createPositionAt(u,c+s.length);n.push(d)}}}catch(h){o.e(h)}finally{o.f()}}return n}function Hg(e){var t=Ro(e.getSelectedBlocks());return t&&t.is("element","codeBlock")}var Ug=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,r=n.model,i=r.document.selection,o=Fg(n)[0],a=Array.from(i.getSelectedBlocks()),s=void 0===t.forceValue?!this.value:t.forceValue,l=t.language||o.language;r.change((function(t){s?e._applyCodeBlock(t,a,l):e._removeCodeBlock(t,a)}))}},{key:"_getValue",value:function(){var e=Ro(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!e.is("element","codeBlock"))&&e.getAttribute("language")}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.schema,t=Ro(this.editor.model.document.selection.getSelectedBlocks());return!!t&&qg(e,t)}},{key:"_applyCodeBlock",value:function(e,t,n){var i,o=this.editor.model.schema,a=t.filter((function(e){return qg(o,e)})),s=r(a);try{for(s.s();!(i=s.n()).done;){var l=i.value;e.rename(l,"codeBlock"),e.setAttribute("language",n,l),o.removeDisallowedAttributes([l],e)}}catch(u){s.e(u)}finally{s.f()}a.reverse().forEach((function(t,n){var r=a[n+1];t.previousSibling===r&&(e.appendElement("softBreak",r),e.merge(e.createPositionBefore(t)))}))}},{key:"_removeCodeBlock",value:function(e,t){var n,i=r(t.filter((function(e){return e.is("element","codeBlock")})));try{for(i.s();!(n=i.n()).done;){var o,a=n.value,s=e.createRangeOn(a),l=r(Array.from(s.getItems()).reverse());try{for(l.s();!(o=l.n()).done;){var u=o.value;if(u.is("element","softBreak")&&u.parent.is("element","codeBlock")){var c=e.split(e.createPositionBefore(u)).position;e.rename(c.nodeAfter,"paragraph"),e.removeAttribute("language",c.nodeAfter),e.remove(u)}}}catch(d){l.e(d)}finally{l.f()}e.rename(a,"paragraph"),e.removeAttribute("language",a)}}catch(d){i.e(d)}finally{i.f()}}}]),n}(Qe);function qg(e,t){return!t.is("rootElement")&&!e.isLimit(t)&&e.checkChild(t.parent,"codeBlock")}var Wg=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e))._indentSequence=e.config.get("codeBlock.indentSequence"),r}return u(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model;t.change((function(n){var i,o=r(Bg(t));try{for(o.s();!(i=o.n()).done;){var a=i.value;n.insertText(e._indentSequence,a)}}catch(s){o.e(s)}finally{o.f()}}))}},{key:"_checkEnabled",value:function(){return!!this._indentSequence&&Hg(this.editor.model.document.selection)}}]),n}(Qe),$g=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e))._indentSequence=e.config.get("codeBlock.indentSequence"),r}return u(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model;t.change((function(n){var i,o=r(Bg(t));try{for(o.s();!(i=o.n()).done;){var a=i.value,s=Kg(e.editor.model,a,e._indentSequence);s&&n.remove(s)}}catch(l){o.e(l)}finally{o.f()}}))}},{key:"_checkEnabled",value:function(){var e=this;if(!this._indentSequence)return!1;var t=this.editor.model;return!!Hg(t.document.selection)&&Bg(t).some((function(n){return Kg(t,n,e._indentSequence)}))}}]),n}(Qe);function Kg(e,t,n){var r=function(e){var t=e.parent.getChild(e.index);return t&&!t.is("element","softBreak")||(t=e.nodeBefore),!t||t.is("element","softBreak")?null:t}(t);if(!r)return null;var i=zg(r),o=i.lastIndexOf(n);if(o+n.length!==i.length)return null;if(-1===o)return null;var a=r.parent,s=r.startOffset;return e.createRange(e.createPositionAt(a,s+o),e.createPositionAt(a,s+o+n.length))}function Gg(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Vg(t,"language","class"),i=Vg(t,"language","label");return function(t,o,a){var s=a.writer,l=a.mapper;if(a.consumable.consume(o.item,"insert")){var u=o.item.getAttribute("language"),c=l.toViewPosition(e.createPositionBefore(o.item)),d={};n&&(d["data-language"]=i[u],d.spellcheck="false");var h=s.createContainerElement("pre",d),f=s.createContainerElement("code",{class:r[u]||null});s.insert(s.createPositionAt(h,0),f),s.insert(c,h),l.bindElements(o.item,f)}}}var Jg=function(e){c(o,e);var t=d(o);function o(e){var n;return s(this,o),n=t.call(this,e),e.config.define("codeBlock",{languages:[{language:"plaintext",label:"Plain text"},{language:"c",label:"C"},{language:"cs",label:"C#"},{language:"cpp",label:"C++"},{language:"css",label:"CSS"},{language:"diff",label:"Diff"},{language:"html",label:"HTML"},{language:"java",label:"Java"},{language:"javascript",label:"JavaScript"},{language:"php",label:"PHP"},{language:"python",label:"Python"},{language:"ruby",label:"Ruby"},{language:"typescript",label:"TypeScript"},{language:"xml",label:"XML"}],indentSequence:"\t"}),n}return u(o,null,[{key:"pluginName",get:function(){return"CodeBlockEditing"}},{key:"requires",get:function(){return[hd]}}]),u(o,[{key:"init",value:function(){var e=this,t=this.editor,o=t.model.schema,a=t.model,s=Fg(t);t.commands.add("codeBlock",new Ug(t)),t.commands.add("indentCodeBlock",new Wg(t)),t.commands.add("outdentCodeBlock",new $g(t));var l=function(t){return function(n,r){e.editor.commands.get(t).isEnabled&&(e.editor.execute(t),r())}};t.keystrokes.set("Tab",l("indentCodeBlock")),t.keystrokes.set("Shift+Tab",l("outdentCodeBlock")),o.register("codeBlock",{allowWhere:"$block",allowChildren:"$text",isBlock:!0,allowAttributes:["language"]}),o.addAttributeCheck((function(e){if(e.endsWith("codeBlock $text"))return!1})),t.editing.downcastDispatcher.on("insert:codeBlock",Gg(a,s,!0)),t.data.downcastDispatcher.on("insert:codeBlock",Gg(a,s)),t.data.downcastDispatcher.on("insert:softBreak",function(e){return function(t,n,r){if("codeBlock"===n.item.parent.name){var i=r.writer,o=r.mapper;if(r.consumable.consume(n.item,"insert")){var a=o.toViewPosition(e.createPositionBefore(n.item));i.insert(a,i.createText("\n"))}}}}(a),{priority:"high"}),t.data.upcastDispatcher.on("element:code",function(e,t){var n=Vg(t,"class","language"),o=t[0].language;return function(e,t,a){var s=t.viewItem,l=s.parent;if(l&&l.is("element","pre")&&!t.modelCursor.findAncestor("codeBlock")){var u=a.consumable,c=a.writer;if(u.test(s,{name:!0})){var d=c.createElement("codeBlock"),h=i(s.getClassNames());h.length||h.push("");var f,v=r(h);try{for(v.s();!(f=v.n()).done;){var p=f.value,g=n[p];if(g){c.setAttribute("language",g,d);break}}}catch(m){v.e(m)}finally{v.f()}d.hasAttribute("language")||c.setAttribute("language",o,d),a.convertChildren(s,d),a.safeInsert(d,t.modelCursor)&&(u.consume(s,{name:!0}),a.updateConversionResult(d,t))}}}}(0,s)),t.data.upcastDispatcher.on("text",(function(e,t,n){var i=n.consumable,o=n.writer,a=t.modelCursor;if(i.test(t.viewItem)&&a.findAncestor("codeBlock")){i.consume(t.viewItem);var s,l=t.viewItem.data.split("\n").map((function(e){return o.createText(e)})),u=l[l.length-1],c=r(l);try{for(c.s();!(s=c.n()).done;){var d=s.value;if(o.insert(d,a),a=a.getShiftedBy(d.offsetSize),d!==u){var h=o.createElement("softBreak");o.insert(h,a),a=o.createPositionAfter(h)}}}catch(f){c.e(f)}finally{c.f()}t.modelRange=o.createRange(t.modelCursor,a),t.modelCursor=a}})),this.listenTo(t.editing.view.document,"clipboardInput",(function(e,n){var r=a.createRange(a.document.selection.anchor);if(n.targetRanges&&(r=t.editing.mapper.toModelRange(n.targetRanges[0])),r.start.parent.is("element","codeBlock")){var i=n.dataTransfer.getData("text/plain"),o=new dc(t.editing.view.document);n.content=function(e,t){var n=e.createDocumentFragment(),r=t.split("\n"),i=r.reduce((function(t,n,i){return t.push(n),i<r.length-1&&t.push(e.createElement("br")),t}),[]);return e.appendChild(i,n),n}(o,i)}})),this.listenTo(a,"getSelectedContent",(function(e,t){var r=n(t,1)[0],i=r.anchor;!r.isCollapsed&&i.parent.is("element","codeBlock")&&i.hasSameParentAs(r.focus)&&a.change((function(t){var n=e.return;if(n.childCount>1||r.containsEntireContent(i.parent)){var a=t.createElement("codeBlock",i.parent.getAttributes());t.append(n,a);var s=t.createDocumentFragment();t.append(a,s),e.return=s}else{var l=n.getChild(0);o.checkAttribute(l,"code")&&t.setAttribute("code",!0,l)}}))}))}},{key:"afterInit",value:function(){var e=this.editor,t=e.commands,n=t.get("indent"),r=t.get("outdent");n&&n.registerChildCommand(t.get("indentCodeBlock")),r&&r.registerChildCommand(t.get("outdentCodeBlock")),this.listenTo(e.editing.view.document,"enter",(function(t,n){e.model.document.selection.getLastPosition().parent.is("element","codeBlock")&&(function(e,t){var n=e.model.document,r=e.editing.view,i=n.selection.getLastPosition(),o=i.nodeAfter;return!(t||!n.selection.isCollapsed||!i.isAtStart||!o||!o.is("element","softBreak")||(e.model.change((function(t){e.execute("enter");var r=n.selection.anchor.parent.previousSibling;t.rename(r,"paragraph"),t.setSelection(r,"in"),e.model.schema.removeDisallowedAttributes([r],t),t.remove(o)})),r.scrollToTheSelection(),0))}(e,n.isSoft)||function(e,t){var n,r=e.model,i=r.document,o=e.editing.view,a=i.selection.getLastPosition(),s=a.nodeBefore;if(t||!i.selection.isCollapsed||!a.isAtEnd||!s)return!1;if(s.is("element","softBreak"))n=r.createRangeOn(s);else{if(!s.is("$text")||s.data.match(/\S/)||!s.previousSibling||!s.previousSibling.is("element","softBreak"))return!1;n=r.createRange(r.createPositionBefore(s.previousSibling),r.createPositionAfter(s))}return e.model.change((function(t){t.remove(n),e.execute("enter");var r=i.selection.anchor.parent;t.rename(r,"paragraph"),e.model.schema.removeDisallowedAttributes([r],t)})),o.scrollToTheSelection(),!0}(e,n.isSoft)||function(e){var t,n=e.model.document,r=n.selection.getLastPosition(),i=r.nodeBefore||r.textNode;i&&i.is("$text")&&(t=zg(i)),e.model.change((function(r){e.execute("shiftEnter"),t&&r.insertText(t,n.selection.anchor)}))}(e),n.preventDefault(),t.stop())}),{context:"pre"})}}]),o}(Ge);l(101);var Qg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,r=t.ui.componentFactory,i=Fg(t),o=i[0];r.add("codeBlock",(function(r){var a=t.commands.get("codeBlock"),s=xu(r,su),l=s.buttonView;return l.set({label:n("Insert code block"),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.87 12.61a.75.75 0 0 1-.089.976l-.085.07-3.154 2.254 3.412 2.414a.75.75 0 0 1 .237.95l-.057.095a.75.75 0 0 1-.95.237l-.096-.058-4.272-3.022-.003-1.223 4.01-2.867a.75.75 0 0 1 1.047.174zm2.795-.231.095.057 4.011 2.867-.003 1.223-4.272 3.022-.095.058a.75.75 0 0 1-.88-.151l-.07-.086-.058-.095a.75.75 0 0 1 .15-.88l.087-.07 3.412-2.414-3.154-2.253-.085-.071a.75.75 0 0 1 .862-1.207zM16 0a2 2 0 0 1 2 2v9.354l-.663-.492-.837-.001V2a.5.5 0 0 0-.5-.5H2a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h3.118L7.156 19H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14zM5.009 15l.003 1H3v-1h2.009zm2.188-2-1.471 1H5v-1h2.197zM10 11v.095L8.668 12H7v-1h3zm4-2v1H7V9h7zm0-2v1H7V7h7zm-4-2v1H5V5h5zM6 3v1H3V3h3z"/></svg>',isToggleable:!0}),l.bind("isOn").to(a,"value",(function(e){return!!e})),l.on("execute",(function(){t.execute("codeBlock",{language:o.language}),t.editing.view.focus()})),s.on("execute",(function(e){t.execute("codeBlock",{language:e.source._codeBlockLanguage,forceValue:!0}),t.editing.view.focus()})),s.class="ck-code-block-dropdown",s.bind("isEnabled").to(a),Au(s,e._getLanguageListItemDefinitions(i)),s}))}},{key:"_getLanguageListItemDefinitions",value:function(e){var t,n=this.editor.commands.get("codeBlock"),i=new vn,o=r(e);try{var a=function(){var e=t.value,r={type:"button",model:new Lu({_codeBlockLanguage:e.language,label:e.label,withText:!0})};r.model.bind("isOn").to(n,"value",(function(e){return e===r.model._codeBlockLanguage})),i.add(r)};for(o.s();!(t=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}return i}}],[{key:"pluginName",get:function(){return"CodeBlockUI"}}]),n}(Ge),Zg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=this.editor.model;this.isEnabled=e.schema.checkAttributeInSelection(e.document.selection,"mention")}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection,r="string"==typeof e.mention?{id:e.mention}:e.mention,i=r.id,o=e.range||n.getFirstRange(),a=e.text||i,s=Xg({_text:a,id:i},r);if(1!=e.marker.length)throw new C.a("mentioncommand-incorrect-marker",this);if(i.charAt(0)!=e.marker)throw new C.a("mentioncommand-incorrect-id",this);t.change((function(e){var r=En(n.getAttributes()),i=new Map(r.entries());i.set("mention",s),t.insertContent(e.createText(a,i),o),t.insertContent(e.createText(" ",r),o.start.getShiftedBy(a.length))}))}}]),n}(Qe),Yg=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.model,n=t.document;t.schema.extend("$text",{allowAttributes:"mention"}),e.conversion.for("upcast").elementToAttribute({view:{name:"span",key:"data-mention",classes:"mention"},model:{key:"mention",value:function(e){return em(e)}}}),e.conversion.for("downcast").attributeToElement({model:"mention",view:nm}),e.conversion.for("downcast").add(tm),n.registerPostFixer((function(e){return function(e,t,n){var i,o=!1,a=r(t.differ.getChanges());try{for(a.s();!(i=a.n()).done;){var s=i.value,l=s.position;if("$text"==s.name){var u=l.textNode&&l.textNode.nextSibling;o=im(l.textNode,e)||o,o=im(u,e)||o,o=im(l.nodeBefore,e)||o,o=im(l.nodeAfter,e)||o}if("$text"!=s.name&&"insert"==s.type){var c,d=l.nodeAfter,h=r(e.createRangeIn(d).getItems());try{for(h.s();!(c=h.n()).done;){o=im(c.value,e)||o}}catch(v){h.e(v)}finally{h.f()}}if("insert"==s.type&&n.isInline(s.name)){var f=l.nodeAfter&&l.nodeAfter.nextSibling;o=im(l.nodeBefore,e)||o,o=im(f,e)||o}}}catch(v){a.e(v)}finally{a.f()}return o}(e,n,t.schema)})),n.registerPostFixer((function(e){return function(e,t){var n,i=!1,o=r(t.differ.getChanges());try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attribute"===a.type&&"mention"!=a.attributeKey)for(var s=a.range.start.nodeBefore,l=a.range.end.nodeAfter,u=0,c=[s,l];u<c.length;u++){var d=c[u];rm(d)&&d.getAttribute(a.attributeKey)!=a.attributeNewValue&&(e.setAttribute(a.attributeKey,a.attributeNewValue,d),i=!0)}}}catch(h){o.e(h)}finally{o.f()}return i}(e,n)})),n.registerPostFixer((function(e){return function(e,t){var n=t.selection,r=n.focus;if(n.isCollapsed&&n.hasAttribute("mention")&&function(e){var t=e.isAtStart;return e.nodeBefore&&e.nodeBefore.is("$text")||t}(r))return e.removeSelectionAttribute("mention"),!0}(e,n)})),e.commands.add("mention",new Zg(e))}}],[{key:"pluginName",get:function(){return"MentionEditing"}}]),n}(Ge);function Xg(e,t){return Object.assign({uid:_()},e,t||{})}function em(e,t){var n=e.getAttribute("data-mention"),r=e.getChild(0);if(r)return Xg({id:n,_text:r.data},t)}function tm(e){e.on("attribute:mention",(function(e,t,n){var r=t.attributeNewValue;if(t.item.is("$textProxy")&&r){var i=t.range.start;(i.textNode||i.nodeAfter).data!=r._text&&n.consumable.consume(t.item,e.name)}}),{priority:"highest"})}function nm(e,t){var n=t.writer;if(e)return n.createAttributeElement("span",{class:"mention","data-mention":e.id},{id:e.uid,priority:20})}function rm(e){return!(!e||!e.is("$text")&&!e.is("$textProxy")||!e.hasAttribute("mention"))&&e.data!=e.getAttribute("mention")._text}function im(e,t){return!!rm(e)&&(t.removeAttribute("mention",e),!0)}l(103);var om=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).extendTemplate({attributes:{class:["ck-mentions"],tabindex:"-1"}}),r}return u(n,[{key:"selectFirst",value:function(){this.select(0)}},{key:"selectNext",value:function(){var e=this.items.getIndex(this.selected);this.select(e+1)}},{key:"selectPrevious",value:function(){var e=this.items.getIndex(this.selected);this.select(e-1)}},{key:"select",value:function(e){var t=0;e>0&&e<this.items.length?t=e:e<0&&(t=this.items.length-1);var n=this.items.get(t);this.selected!==n&&(this.selected&&this.selected.removeHighlight(),n.highlight(),this.selected=n,this._isItemVisibleInScrolledArea(n)||(this.element.scrollTop=n.element.offsetTop))}},{key:"executeSelected",value:function(){this.selected.fire("execute")}},{key:"_isItemVisibleInScrolledArea",value:function(e){return new xo(this.element).contains(new xo(e.element))}}]),n}(_u),am=function(e){c(r,e);var n=d(r);function r(e,t){var i;return s(this,r),(i=n.call(this,e)).template=!1,i.domElement=t,i.domElement.classList.add("ck-button"),i.set("isOn",!1),i.on("change:isOn",(function(e,t,n){n?(i.domElement.classList.add("ck-on"),i.domElement.classList.remove("ck-off")):(i.domElement.classList.add("ck-off"),i.domElement.classList.remove("ck-on"))})),i.listenTo(i.domElement,"click",(function(){i.fire("execute")})),i}return u(r,[{key:"render",value:function(){t(y(r.prototype),"render",this).call(this),this.element=this.domElement}}]),r}(Ol),sm=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"highlight",value:function(){this.children.first.isOn=!0}},{key:"removeHighlight",value:function(){this.children.first.isOn=!1}}]),n}(wu),lm=[Lr.arrowup,Lr.arrowdown,Lr.enter,Lr.tab,Lr.esc],um=function(e){c(i,e);var n=d(i);function i(e){var t;return s(this,i),(t=n.call(this,e))._mentionsView=t._createMentionView(),t._mentionsConfigurations=new Map,t._requestFeedDebounced=ho(t._requestFeed,100),e.config.define("mention",{feeds:[]}),t}return u(i,null,[{key:"pluginName",get:function(){return"MentionUI"}},{key:"requires",get:function(){return[Uu]}}]),u(i,[{key:"init",value:function(){var e=this,t=this.editor;this._balloon=t.plugins.get(Uu),t.editing.view.document.on("keydown",(function(t,n){lm.includes(n.keyCode)&&e._isUIVisible&&(n.preventDefault(),t.stop(),n.keyCode==Lr.arrowdown&&e._mentionsView.selectNext(),n.keyCode==Lr.arrowup&&e._mentionsView.selectPrevious(),n.keyCode!=Lr.enter&&n.keyCode!=Lr.tab||e._mentionsView.executeSelected(),n.keyCode==Lr.esc&&e._hideUIAndRemoveMarker())}),{priority:"highest"}),Tl({emitter:this._mentionsView,activator:function(){return e._isUIVisible},contextElements:[this._balloon.view.element],callback:function(){return e._hideUIAndRemoveMarker()}});var n,i=r(t.config.get("mention.feeds"));try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.feed,s=o.marker;if(!fm(s))throw new C.a("mentionconfig-incorrect-marker",null,{marker:s});var l=o.minimumCharacters||0,u="function"==typeof a?a.bind(this.editor):hm(a),c={watcher:this._setupTextWatcherForFeed(s,l),marker:s,feedCallback:u,itemRenderer:o.itemRenderer};this._mentionsConfigurations.set(s,c)}}catch(d){i.e(d)}finally{i.f()}this.on("requestFeed:response",(function(t,n){return e._handleFeedResponse(n)})),this.on("requestFeed:error",(function(){return e._hideUIAndRemoveMarker()}))}},{key:"destroy",value:function(){t(y(i.prototype),"destroy",this).call(this),this._mentionsView.destroy()}},{key:"_createMentionView",value:function(){var e=this,t=this.editor.locale,n=new om(t);return this._items=new vn,n.items.bindTo(this._items).using((function(r){var i=r.item,o=r.marker,a=new sm(t),s=e._renderItem(i,o);return s.delegate("execute").to(a),a.children.add(s),a.item=i,a.marker=o,a.on("execute",(function(){n.fire("execute",{item:i,marker:o})})),a})),n.on("execute",(function(t,n){var r=e.editor,i=r.model,o=n.item,a=n.marker,s=r.model.markers.get("mention"),l=i.createPositionAt(i.document.selection.focus),u=i.createPositionAt(s.getStart()),c=i.createRange(u,l);e._hideUIAndRemoveMarker(),r.execute("mention",{mention:o,text:o.text,marker:a,range:c}),r.editing.view.focus()})),n}},{key:"_getItemRenderer",value:function(e){return this._mentionsConfigurations.get(e).itemRenderer}},{key:"_requestFeed",value:function(e,t){var n=this;this._lastRequested=t;var r=(0,this._mentionsConfigurations.get(e).feedCallback)(t);r instanceof Promise?r.then((function(r){n.fire(n._lastRequested==t?"requestFeed:response":"requestFeed:discarded",{feed:r,marker:e,feedText:t})})).catch((function(t){n.fire("requestFeed:error",{error:t}),Object(C.b)("mention-feed-callback-error",{marker:e})})):this.fire("requestFeed:response",{feed:r,marker:e,feedText:t})}},{key:"_setupTextWatcherForFeed",value:function(e,t){var n=this,r=this.editor,i=new Td(r.model,function(e,t){var n=dm(e,t);return function(e){return n.test(e)}}(e,t));i.on("matched",(function(t,i){var o=r.model.document.selection.focus;if(function(e){var t=e.textNode&&e.textNode.hasAttribute("mention"),n=e.nodeBefore;return t||n&&n.is("$text")&&n.hasAttribute("mention")}(o))n._hideUIAndRemoveMarker();else{var a=function(e,t){var n=dm(e,0);return t.match(n)[2]}(e,i.text),s=o.getShiftedBy(-(e.length+a.length)),l=o.getShiftedBy(-a.length),u=r.model.createRange(s,l);if(vm(r)){var c=r.model.markers.get("mention");r.model.change((function(e){e.updateMarker(c,{range:u})}))}else r.model.change((function(e){e.addMarker("mention",{range:u,usingOperation:!1,affectsData:!1})}));n._requestFeedDebounced(e,a)}})),i.on("unmatched",(function(){n._hideUIAndRemoveMarker()}));var o=r.commands.get("mention");return i.bind("isEnabled").to(o),i}},{key:"_handleFeedResponse",value:function(e){var t=e.feed,n=e.marker;if(vm(this.editor)){this._items.clear();var i,o=r(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._items.add({item:"object"!=typeof a?{id:a,text:a}:a,marker:n})}}catch(l){o.e(l)}finally{o.f()}var s=this.editor.model.markers.get("mention");this._items.length?this._showOrUpdateUI(s):this._hideUIAndRemoveMarker()}}},{key:"_showOrUpdateUI",value:function(e){this._isUIVisible?this._balloon.updatePosition(this._getBalloonPanelPositionData(e,this._mentionsView.position)):this._balloon.add({view:this._mentionsView,position:this._getBalloonPanelPositionData(e,this._mentionsView.position),withArrow:!1,singleViewMode:!0}),this._mentionsView.position=this._balloon.view.position,this._mentionsView.selectFirst()}},{key:"_hideUIAndRemoveMarker",value:function(){this._balloon.hasView(this._mentionsView)&&this._balloon.remove(this._mentionsView),vm(this.editor)&&this.editor.model.change((function(e){return e.removeMarker("mention")})),this._mentionsView.position=void 0}},{key:"_renderItem",value:function(e,t){var n,r=this.editor,i=e.id,o=this._getItemRenderer(t);if(o){var a=o(e);"string"!=typeof a?n=new am(r.locale,a):i=a}if(!n){var s=new tu(r.locale);s.label=i,s.withText=!0,n=s}return n}},{key:"_getBalloonPanelPositionData",value:function(e,t){var n=this,r=this.editor,i=r.editing,o=i.view.domConverter,a=i.mapper;return{target:function(){var t=e.getRange();"$graveyard"==t.start.root.rootName&&(t=r.model.document.selection.getFirstRange());var n=a.toViewRange(t);return xo.getDomRangeRects(o.viewRangeToDom(n)).pop()},limiter:function(){var e=n.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},positions:cm(t)}}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView===this._mentionsView}}]),i}(Ge);function cm(e){var t={caret_se:function(e){return{top:e.bottom+3,left:e.right,name:"caret_se"}},caret_ne:function(e,t){return{top:e.top-t.height-3,left:e.right,name:"caret_ne"}},caret_sw:function(e,t){return{top:e.bottom+3,left:e.right-t.width,name:"caret_sw"}},caret_nw:function(e,t){return{top:e.top-t.height-3,left:e.right-t.width,name:"caret_nw"}}};return Object.prototype.hasOwnProperty.call(t,e)?[t[e]]:[t.caret_se,t.caret_sw,t.caret_ne,t.caret_nw]}function dm(e,t){return new RegExp("(?:^|[ ".concat(Or?"\\p{Ps}\\p{Pi}\"'":"\\(\\[{\"'","])([").concat(e,"])([\\S]").concat(0==t?"*":"{".concat(t,",}"),")$"),"u")}function hm(e){return function(t){return e.filter((function(e){return("string"==typeof e?e:String(e.id)).toLowerCase().includes(t.toLowerCase())})).slice(0,10)}}function fm(e){return e&&1==e.length}function vm(e){return e.model.markers.has("mention")}l(105);var pm=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("removeFormat",(function(r){var i=t.commands.get("removeFormat"),o=new tu(r);return o.set({label:n("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>',tooltip:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute("removeFormat"),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"RemoveFormatUI"}}]),n}(Ge),gm=function(e){c(i,e);var t=d(i);function i(){return s(this,i),t.apply(this,arguments)}return u(i,[{key:"refresh",value:function(){var e=this.editor.model;this.isEnabled=!!Ro(this._getFormattingItems(e.document.selection,e.schema))}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.schema;t.change((function(i){var o,a=r(e._getFormattingItems(t.document.selection,n));try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.is("selection")){var l,u=r(e._getFormattingAttributes(s,n));try{for(u.s();!(l=u.n()).done;){var c=l.value;i.removeSelectionAttribute(c)}}catch(p){u.e(p)}finally{u.f()}}else{var d,h=i.createRangeOn(s),f=r(e._getFormattingAttributes(s,n));try{for(f.s();!(d=f.n()).done;){var v=d.value;i.removeAttribute(v,h)}}catch(p){f.e(p)}finally{f.f()}}}}catch(p){a.e(p)}finally{a.f()}}))}},{key:"_getFormattingItems",value:regeneratorRuntime.mark((function e(t,n){var i,o,a,s,l,u,c,d,h,f,v=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=function(e){return!!Ro(v._getFormattingAttributes(e,n))},o=r(t.getRanges()),e.prev=2,o.s();case 4:if((a=o.n()).done){e.next=27;break}s=a.value,l=r(s.getItems()),e.prev=7,l.s();case 9:if((u=l.n()).done){e.next=17;break}if(c=u.value,e.t0=!n.isBlock(c)&&i(c),!e.t0){e.next=15;break}return e.next=15,c;case 15:e.next=9;break;case 17:e.next=22;break;case 19:e.prev=19,e.t1=e.catch(7),l.e(e.t1);case 22:return e.prev=22,l.f(),e.finish(22);case 25:e.next=4;break;case 27:e.next=32;break;case 29:e.prev=29,e.t2=e.catch(2),o.e(e.t2);case 32:return e.prev=32,o.f(),e.finish(32);case 35:d=r(t.getSelectedBlocks()),e.prev=36,d.s();case 38:if((h=d.n()).done){e.next=46;break}if(f=h.value,e.t3=i(f),!e.t3){e.next=44;break}return e.next=44,f;case 44:e.next=38;break;case 46:e.next=51;break;case 48:e.prev=48,e.t4=e.catch(36),d.e(e.t4);case 51:return e.prev=51,d.f(),e.finish(51);case 54:if(e.t5=i(t),!e.t5){e.next=58;break}return e.next=58,t;case 58:case"end":return e.stop()}}),e,null,[[2,29,32,35],[7,19,22,25],[36,48,51,54]])}))},{key:"_getFormattingAttributes",value:regeneratorRuntime.mark((function e(t,i){var o,a,s,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=r(t.getAttributes()),e.prev=1,o.s();case 3:if((a=o.n()).done){e.next=12;break}if(s=n(a.value,1),l=s[0],u=i.getAttributeProperties(l),e.t0=u&&u.isFormatting,!e.t0){e.next=10;break}return e.next=10,l;case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t1=e.catch(1),o.e(e.t1);case 17:return e.prev=17,o.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[1,14,17,20]])}))}]),i}(Qe),mm=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("removeFormat",new gm(e))}}],[{key:"pluginName",get:function(){return"RemoveFormatEditing"}}]),n}(Ge),ym=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){this.isEnabled=function(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var r=function(e,t){var n=Vc(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(r,"horizontalLine")}(n,t,e)&&!zc(n,t)}(this.editor.model)}},{key:"execute",value:function(){var e=this.editor.model;e.change((function(t){var n=t.createElement("horizontalLine");e.insertContent(n);var r=n.nextSibling;!(r&&e.schema.checkChild(r,"$text"))&&e.schema.checkChild(n.parent,"paragraph")&&(r=t.createElement("paragraph"),e.insertContent(r,t.createPositionAfter(n))),r&&t.setSelection(r,0)}))}}]),n}(Qe);l(107);var km=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.t,n=e.conversion;e.model.schema.register("horizontalLine",{isObject:!0,allowWhere:"$block"}),n.for("dataDowncast").elementToElement({model:"horizontalLine",view:function(e,t){return t.writer.createEmptyElement("hr")}}),n.for("editingDowncast").elementToElement({model:"horizontalLine",view:function(e,n){var r=n.writer,i=t("Horizontal line"),o=r.createContainerElement("div"),a=r.createEmptyElement("hr");return r.addClass("ck-horizontal-line",o),r.setCustomProperty("hr",!0,o),r.insert(r.createPositionAt(o,0),a),function(e,t,n){return t.setCustomProperty("horizontalLine",!0,e),Mc(e,t,{label:n})}(o,r,i)}}),n.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),e.commands.add("horizontalLine",new ym(e))}}],[{key:"pluginName",get:function(){return"HorizontalLineEditing"}}]),n}(Ge),bm=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("horizontalLine",(function(r){var i=t.commands.get("horizontalLine"),o=new tu(r);return o.set({label:n("Horizontal line"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),e.listenTo(o,"execute",(function(){t.execute("horizontalLine"),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"HorizontalLineUI"}}]),n}(Ge),_m=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e))._selectedElements=[],r.on("execute",(function(){r.refresh()}),{priority:"highest"}),r}return u(n,[{key:"refresh",value:function(){this._selectedElements=this._getSelectedItems(),this.value=this._selectedElements.every((function(e){return!!e.getAttribute("todoListChecked")})),this.isEnabled=!!this._selectedElements.length}},{key:"_getSelectedItems",value:function(){var e=this.editor.model,t=e.schema,n=e.document.selection.getFirstRange(),i=n.start.parent,o=[];t.checkAttribute(i,"todoListChecked")&&o.push(i);var a,s=r(n.getItems());try{for(s.s();!(a=s.n()).done;){var l=a.value;t.checkAttribute(l,"todoListChecked")&&!o.includes(l)&&o.push(l)}}catch(u){s.e(u)}finally{s.f()}return o}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.editor.model.change((function(n){var i,o=r(e._selectedElements);try{for(o.s();!(i=o.n()).done;){var a=i.value;(void 0===t.forceValue?!e.value:t.forceValue)?n.setAttribute("todoListChecked",!0,a):n.removeAttribute("todoListChecked",a)}}catch(s){o.e(s)}finally{o.f()}}))}}]),n}(Qe);function wm(e,t,n){var r=t.modelCursor,i=r.parent,o=t.viewItem;if("checkbox"==o.getAttribute("type")&&"listItem"==i.name&&r.isAtStart&&n.consumable.consume(o,{name:!0})){var a=n.writer;a.setAttribute("listType","todo",i),t.viewItem.hasAttribute("checked")&&a.setAttribute("todoListChecked",!0,i),t.modelRange=a.createRange(r)}}function Cm(e){return function(t,n){var r=n.modelPosition,i=r.parent;if(i.is("element","listItem")&&"todo"==i.getAttribute("listType")){var o=Sm(n.mapper.toViewElement(i),e);o&&(n.viewPosition=n.mapper.findPositionIn(o,r.offset))}}}function xm(e,t,n,r){return t.createUIElement("label",{class:"todo-list__label",contenteditable:!1},(function(t){var i=bo(document,"input",{type:"checkbox"});n&&i.setAttribute("checked","checked"),i.addEventListener("change",(function(){return r(e)}));var o=this.toDomElement(t);return o.appendChild(i),o}))}function Sm(e,t){var n,i=r(t.createRangeIn(e));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.item.is("containerElement","span")&&o.item.hasClass("todo-list__label__description"))return o.item}}catch(a){i.e(a)}finally{i.f()}}var Am=Fr("Ctrl+Enter"),Em=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing,i=t.data,o=t.model;o.schema.extend("listItem",{allowAttributes:["todoListChecked"]}),o.schema.addAttributeCheck((function(e,t){var n=e.last;if("todoListChecked"==t&&"listItem"==n.name&&"todo"!=n.getAttribute("listType"))return!1})),t.commands.add("todoList",new mv(t,"todo"));var a,s,l=new _m(t);t.commands.add("checkTodoList",l),t.commands.add("todoListCheck",l),i.downcastDispatcher.on("insert:listItem",function(e){return function(t,n,r){var i=r.consumable;if(i.test(n.item,"insert")&&i.test(n.item,"attribute:listType")&&i.test(n.item,"attribute:listIndent")&&"todo"==n.item.getAttribute("listType")){var o=n.item;i.consume(o,"insert"),i.consume(o,"attribute:listType"),i.consume(o,"attribute:listIndent"),i.consume(o,"attribute:todoListChecked");var a=r.writer,s=_v(o,r);a.addClass("todo-list",s.parent);var l=a.createContainerElement("label",{class:"todo-list__label"}),u=a.createEmptyElement("input",{type:"checkbox",disabled:"disabled"}),c=a.createContainerElement("span",{class:"todo-list__label__description"});o.getAttribute("todoListChecked")&&a.setAttribute("checked","checked",u),a.insert(a.createPositionAt(s,0),l),a.insert(a.createPositionAt(l,0),u),a.insert(a.createPositionAfter(u),c),wv(o,s,r,e)}}}(o),{priority:"high"}),i.upcastDispatcher.on("element:input",wm,{priority:"high"}),n.downcastDispatcher.on("insert:listItem",function(e,t){return function(n,r,i){var o=i.consumable;if(o.test(r.item,"insert")&&o.test(r.item,"attribute:listType")&&o.test(r.item,"attribute:listIndent")&&"todo"==r.item.getAttribute("listType")){var a=r.item;o.consume(a,"insert"),o.consume(a,"attribute:listType"),o.consume(a,"attribute:listIndent"),o.consume(a,"attribute:todoListChecked");var s=i.writer,l=_v(a,i),u=!!a.getAttribute("todoListChecked"),c=xm(a,s,u,t),d=s.createContainerElement("span",{class:"todo-list__label__description"});s.addClass("todo-list",l.parent),s.insert(s.createPositionAt(l,0),c),s.insert(s.createPositionAfter(c),d),wv(a,l,i,e)}}}(o,(function(t){return e._handleCheckmarkChange(t)})),{priority:"high"}),n.downcastDispatcher.on("attribute:listType:listItem",(a=function(t){return e._handleCheckmarkChange(t)},s=n.view,function(e,t,n){var i=n.mapper.toViewElement(t.item),o=n.writer,l=function(e,t){var n,i=r(t.createRangeIn(e));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.item.is("uiElement","label"))return o.item}}catch(a){i.e(a)}finally{i.f()}}(i,s);if("todo"==t.attributeNewValue){var u=!!t.item.getAttribute("todoListChecked"),c=xm(t.item,o,u,a),d=o.createContainerElement("span",{class:"todo-list__label__description"}),h=o.createRangeIn(i),f=Ev(i),v=xv(h.start),p=f?o.createPositionBefore(f):h.end,g=o.createRange(v,p);o.addClass("todo-list",i.parent),o.move(g,o.createPositionAt(d,0)),o.insert(o.createPositionAt(i,0),c),o.insert(o.createPositionAfter(c),d)}else if("todo"==t.attributeOldValue){var m=Sm(i,s);o.removeClass("todo-list",i.parent),o.remove(l),o.move(o.createRangeIn(m),o.createPositionBefore(m)),o.remove(m)}})),n.downcastDispatcher.on("attribute:todoListChecked:listItem",function(e){return function(t,n,r){if("todo"==n.item.getAttribute("listType")&&r.consumable.consume(n.item,"attribute:todoListChecked")){var i=r.mapper,o=r.writer,a=!!n.item.getAttribute("todoListChecked"),s=i.toViewElement(n.item).getChild(0),l=xm(n.item,o,a,e);o.insert(o.createPositionAfter(s),l),o.remove(s)}}}((function(t){return e._handleCheckmarkChange(t)}))),n.mapper.on("modelToViewPosition",Cm(n.view)),i.mapper.on("modelToViewPosition",Cm(n.view)),this.listenTo(n.view.document,"arrowKey",function(e,t){return function(n,r){if("left"==zr(r.keyCode,t.contentLanguageDirection)){var i=e.schema,o=e.document.selection;if(o.isCollapsed){var a=o.getFirstPosition(),s=a.parent;if("listItem"===s.name&&"todo"==s.getAttribute("listType")&&a.isAtStart){var l=i.getNearestSelectionRange(e.createPositionBefore(s),"backward");l&&e.change((function(e){return e.setSelection(l)})),r.preventDefault(),r.stopPropagation(),n.stop()}}}}}(o,t.locale),{context:"li"}),this.listenTo(n.view.document,"keydown",(function(e,n){jr(n)===Am&&(t.execute("checkTodoList"),e.stop())}),{priority:"high"});var u=new Set;this.listenTo(o,"applyOperation",(function(e,t){var n=t[0];if("rename"==n.type&&"listItem"==n.oldName){var i=n.position.nodeAfter;i.hasAttribute("todoListChecked")&&u.add(i)}else if("changeAttribute"==n.type&&"listType"==n.key&&"todo"===n.oldValue){var o,a=r(n.range.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;s.hasAttribute("todoListChecked")&&"todo"!==s.getAttribute("listType")&&u.add(s)}}catch(l){a.e(l)}finally{a.f()}}})),o.document.registerPostFixer((function(e){var t,n=!1,i=r(u);try{for(i.s();!(t=i.n()).done;){var o=t.value;e.removeAttribute("todoListChecked",o),n=!0}}catch(a){i.e(a)}finally{i.f()}return u.clear(),n}))}},{key:"_handleCheckmarkChange",value:function(e){var t=this.editor,n=t.model,r=Array.from(n.document.selection.getRanges());n.change((function(n){n.setSelection(e,"end"),t.execute("checkTodoList"),n.setSelection(r)}))}}],[{key:"pluginName",get:function(){return"TodoListEditing"}},{key:"requires",get:function(){return[Hv]}}]),n}(Ge),Tm=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){Av(this.editor,"todoList",(0,this.editor.t)("To-do List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m2.315 14.705 2.224-2.24a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.682.682 0 0 1-.112.089.647.647 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.717.722zm5.185.045a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75zM2.329 5.745l2.21-2.226a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.685.685 0 0 1-.496.196.644.644 0 0 1-.468-.187L.688 5.912a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.73.736zM7.5 5.75A.75.75 0 0 1 8.25 5h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>')}}],[{key:"pluginName",get:function(){return"TodoListUI"}}]),n}(Ge);l(109),l(111);var Pm=function(e){c(n,e);var t=d(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,n);var o=(r=t.call(this,e)).bindTemplate;return r.set("class",i.class||null),r.children=r.createCollection(),i.children&&i.children.forEach((function(e){return r.children.add(e)})),r.set("_role",null),r.set("_ariaLabelledBy",null),i.labelView&&r.set({_role:"group",_ariaLabelledBy:i.labelView.id}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",o.to("class")],role:o.to("_role"),"aria-labelledby":o.to("_ariaLabelledBy")},children:r.children}),r}return n}(Ol);l(113);var Rm=function(e){c(o,e);var r=d(o);function o(e,t){var a;s(this,o);var l=(a=r.call(this,e))._createActionButtons(e),u=l.insertButtonView,c=l.cancelButtonView;if(a.insertButtonView=u,a.cancelButtonView=c,a.dropdownView=a._createDropdownView(e),a.set("imageURLInputValue",""),a.focusTracker=new Io,a.keystrokes=new Oo,a._focusables=new Il,a._focusCycler=new ru({focusables:a._focusables,focusTracker:a.focusTracker,keystrokeHandler:a.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),a.set("_integrations",new vn),t)for(var d=function(){var e=n(v[h],2),t=e[0],r=e[1];"insertImageViaUrl"===t&&(r.fieldView.bind("value").to(f(a),"imageURLInputValue",(function(e){return e||""})),r.fieldView.on("input",(function(){a.imageURLInputValue=r.fieldView.element.value.trim()}))),r.name=t,a._integrations.add(r)},h=0,v=Object.entries(t);h<v.length;h++)d();return a.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:"-1"},children:[].concat(i(a._integrations),[new Pm(e,{children:[a.insertButtonView,a.cancelButtonView],class:"ck-image-insert-form__action-row"})])}),a}return u(o,[{key:"render",value:function(){var e=this;t(y(o.prototype),"render",this).call(this),Rl({view:this});var n=[].concat(i(this._integrations),[this.insertButtonView,this.cancelButtonView]);n.forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var r=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r),this.listenTo(n[0].element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"getIntegration",value:function(e){return this._integrations.find((function(t){return t.name===e}))}},{key:"_createDropdownView",value:function(e){var t=e.t,n=xu(e,su),r=n.panelView;return n.buttonView.set({label:t("Insert image"),icon:Cl,tooltip:!0}),r.extendTemplate({attributes:{class:"ck-image-insert__panel"}}),n}},{key:"_createActionButtons",value:function(e){var t=e.t,n=new tu(e),r=new tu(e);return n.set({label:t("Insert"),icon:wl,class:"ck-button-save",type:"submit",withText:!0,isEnabled:this.imageURLInputValue}),r.set({label:t("Cancel"),icon:_l,class:"ck-button-cancel",withText:!0}),n.bind("isEnabled").to(this,"imageURLInputValue",(function(e){return!!e})),n.delegate("execute").to(this,"submit"),r.delegate("execute").to(this,"cancel"),{insertButtonView:n,cancelButtonView:r}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}}]),o}(Ol);function Im(e){var t=e.t,n=new Ou(e,Mu);return n.set({label:t("Insert image via URL")}),n.fieldView.placeholder="https://example.com/image.png",n}var Om=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=function(t){return e._createDropdownView(t)};t.ui.componentFactory.add("insertImage",n),t.ui.componentFactory.add("imageInsert",n)}},{key:"_createDropdownView",value:function(e){var t=this.editor,n=new Rm(e,function(e){var t=e.config.get("image.insert.integrations"),n=e.plugins.get("ImageInsertUI"),r={insertImageViaUrl:Im(e.locale)};if(!t)return r;if(t.find((function(e){return"openCKFinder"===e}))&&e.ui.componentFactory.has("ckfinder")){var i=e.ui.componentFactory.create("ckfinder");i.set({withText:!0,class:"ck-image-insert__ck-finder-button"}),i.delegate("execute").to(n,"cancel"),r.openCKFinder=i}return t.reduce((function(t,n){return r[n]?t[n]=r[n]:e.ui.componentFactory.has(n)&&(t[n]=e.ui.componentFactory.create(n)),t}),{})}(t)),r=t.commands.get("uploadImage"),i=n.dropdownView,o=i.buttonView;return o.actionView=t.ui.componentFactory.create("uploadImage"),o.actionView.extendTemplate({attributes:{class:"ck ck-button ck-splitbutton__action"}}),this._setUpDropdown(i,n,r)}},{key:"_setUpDropdown",value:function(e,t,n){var r=this.editor,i=r.t,o=t.insertButtonView,a=t.getIntegration("insertImageViaUrl"),s=e.panelView;function l(){r.editing.view.focus(),e.isOpen=!1}return e.bind("isEnabled").to(n),e.buttonView.once("open",(function(){s.children.add(t)})),e.on("change:isOpen",(function(){var n=r.model.document.selection.getSelectedElement();e.isOpen&&(t.focus(),$h(n)?(t.imageURLInputValue=n.getAttribute("src"),o.label=i("Update"),a.label=i("Update image URL")):(t.imageURLInputValue="",o.label=i("Insert"),a.label=i("Insert image via URL")))}),{priority:"low"}),t.delegate("submit","cancel").to(e),this.delegate("cancel").to(e),e.on("submit",(function(){l(),function(){var e=r.model.document.selection.getSelectedElement();$h(e)?r.model.change((function(n){n.setAttribute("src",t.imageURLInputValue,e),n.removeAttribute("srcset",e),n.removeAttribute("sizes",e)})):r.execute("insertImage",{source:t.imageURLInputValue})}()})),e.on("cancel",(function(){l()})),e}}],[{key:"pluginName",get:function(){return"ImageInsertUI"}}]),n}(Ge),Mm=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("image",{allowAttributes:["linkHref"]}),e.conversion.for("upcast").add((function(e){e.on("element:a",(function(e,t,n){var r=t.viewItem,i=jm(r);if(i&&n.consumable.consume(r,{attributes:["href"]})){var o=r.getAttribute("href");if(o){var a=t.modelCursor.parent;if(!a.is("element","image")){var s=n.convertItem(i,t.modelCursor);t.modelRange=s.modelRange,t.modelCursor=s.modelCursor,a=t.modelCursor.nodeBefore}a&&a.is("element","image")&&n.writer.setAttribute("linkHref",o,a)}}}),{priority:"high"})})),e.conversion.for("editingDowncast").add(Nm({attachIconIndicator:!0})),e.conversion.for("dataDowncast").add(Nm({attachIconIndicator:!1})),this._enableAutomaticDecorators(),this._enableManualDecorators()}},{key:"_enableAutomaticDecorators",value:function(){var e=this.editor,t=e.commands.get("link").automaticDecorators;t.length&&e.conversion.for("downcast").add(t.getDispatcherForLinkedImage())}},{key:"_enableManualDecorators",value:function(){var e,t=this.editor,n=t.commands.get("link"),i=n.manualDecorators,o=r(n.manualDecorators);try{for(o.s();!(e=o.n()).done;){var a=e.value;t.model.schema.extend("image",{allowAttributes:a.id}),t.conversion.for("downcast").add(Lm(i,a)),t.conversion.for("upcast").add(Dm(i,a))}}catch(s){o.e(s)}finally{o.f()}}}],[{key:"requires",get:function(){return["ImageEditing",ov]}},{key:"pluginName",get:function(){return"LinkImageEditing"}}]),n}(Ge);function Nm(e){return function(t){t.on("attribute:linkHref:image",(function(t,n,r){var i,o=r.mapper.toViewElement(n.item),a=r.writer,s=Array.from(o.getChildren()).find((function(e){return"a"===e.name}));if(e.attachIconIndicator&&(i=a.createUIElement("span",{class:"ck ck-link-image_icon"},(function(e){var t=this.toDomElement(e);return t.innerHTML=dv,t}))),s)if(n.attributeNewValue)a.setAttribute("href",n.attributeNewValue,s);else{var l=Array.from(s.getChildren()).find((function(e){return"img"===e.name}));a.move(a.createRangeOn(l),a.createPositionAt(o,0)),a.remove(s)}else{var u=a.createContainerElement("a",{href:n.attributeNewValue});a.insert(a.createPositionAt(o,0),u),a.move(a.createRangeOn(o.getChild(1)),a.createPositionAt(u,0)),i&&a.insert(a.createPositionAt(u,"end"),i)}}))}}function Lm(e,t){return function(i){i.on("attribute:".concat(t.id,":image"),(function(i,o,a){var s=e.get(t.id).attributes,l=a.mapper.toViewElement(o.item),u=Array.from(l.getChildren()).find((function(e){return"a"===e.name}));if(u){var c,d=r(En(s));try{for(d.s();!(c=d.n()).done;){var h=n(c.value,2),f=h[0],v=h[1];a.writer.setAttribute(f,v,u)}}catch(p){d.e(p)}finally{d.f()}}}))}}function Dm(e,t){return function(n){n.on("element:a",(function(n,r,i){var o=r.viewItem;if(jm(o)){var a={attributes:e.get(t.id).attributes},s=new Tn(a).match(o);s&&i.consumable.consume(o,s.match)&&i.writer.setAttribute(t.id,!0,r.modelCursor.nodeBefore||r.modelCursor.parent)}}),{priority:"high"})}}function jm(e){return Array.from(e.getChildren()).find((function(e){return"img"===e.name}))}var Fm=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",(function(n,r){Vm(t.selection.getSelectedElement(),e.plugins.get("Image"))&&r.preventDefault()})),this._createToolbarLinkImageButton()}},{key:"_createToolbarLinkImageButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("linkImage",(function(r){var i=new tu(r),o=t.plugins.get("LinkUI"),a=t.commands.get("link");return i.set({isEnabled:!0,label:n("Link image"),icon:dv,keystroke:"Ctrl+K",tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(a,"isEnabled"),i.bind("isOn").to(a,"value",(function(e){return!!e})),e.listenTo(i,"execute",(function(){Vm(t.editing.view.document.selection.getSelectedElement(),t.plugins.get("Image"))?o._addActionsView():o._showUI(!0)})),i}))}}],[{key:"requires",get:function(){return[ov,hv,"Image"]}},{key:"pluginName",get:function(){return"LinkImageUI"}}]),n}(Ge);function Vm(e,t){return!(!e||!t.isImageWidget(e))&&e.getChild(0).is("element","a")}l(115);var zm="code",Bm=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:zm}),e.model.schema.setAttributeProperties(zm,{isFormatting:!0,copyOnEnter:!1}),e.conversion.attributeToElement({model:zm,view:"code",upcastAlso:{styles:{"word-wrap":"break-word"}}}),e.commands.add(zm,new hh(e,zm)),e.plugins.get(Pd).registerAttribute(zm),Wd(e,zm,"code","ck-code_selected")}}],[{key:"pluginName",get:function(){return"CodeEditing"}},{key:"requires",get:function(){return[Pd]}}]),n}(Ge);l(13);var Hm=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("code",(function(r){var i=t.commands.get("code"),o=new tu(r);return o.set({label:n("Code"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 5.7 5.2 3.9v1.3l-5.6 4c-.1.2-.3.2-.5.2-.3-.1-.6-.7-.6-1l.3-.4 4.7-3.5L11.5 7l-.2-.2c-.1-.3-.1-.6 0-.8.2-.2.5-.4.8-.4a.8.8 0 0 1 .4.1zm-5.2 0L2 9.6v1.3l5.6 4c.1.2.3.2.5.2.3-.1.7-.7.6-1 0-.1 0-.3-.2-.4l-5-3.5L8.2 7l.2-.2c.1-.3.1-.6 0-.8-.2-.2-.5-.4-.8-.4a.8.8 0 0 0-.3.1z"/></svg>',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute("code"),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"CodeUI"}}]),n}(Ge),Um=["left","right","center","justify"];function qm(e){return Um.includes(e)}function Wm(e,t){return"rtl"==t.contentLanguageDirection?"right"===e:"left"===e}function $m(e){var t=e.map((function(e){return"string"==typeof e?{name:e}:e})).filter((function(e){var t=!!Um.includes(e.name);return t||Object(C.b)("alignment-config-name-not-recognized",{option:e}),t})),n=t.filter((function(e){return!!e.className})).length;if(n&&n<t.length)throw new C.a("alignment-config-classnames-are-missing",{configuredOptions:e});return t.forEach((function(t,n,r){var i=r.slice(n+1);if(i.some((function(e){return e.name==t.name})))throw new C.a("alignment-config-name-already-defined",{option:t,configuredOptions:e});if(t.className&&i.some((function(e){return e.className==t.className})))throw new C.a("alignment-config-classname-already-defined",{option:t,configuredOptions:e})})),t}var Km=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=this.editor.locale,t=Ro(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!t&&this._canBeAligned(t),this.value=this.isEnabled&&t.hasAttribute("alignment")?t.getAttribute("alignment"):"rtl"===e.contentLanguageDirection?"right":"left"}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,i=n.locale,o=n.model,a=o.document,s=t.value;o.change((function(t){var n=Array.from(a.selection.getSelectedBlocks()).filter((function(t){return e._canBeAligned(t)})),o=n[0].getAttribute("alignment");Wm(s,i)||o===s||!s?function(e,t){var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.removeAttribute("alignment",o)}}catch(a){i.e(a)}finally{i.f()}}(n,t):function(e,t,n){var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;t.setAttribute("alignment",n,a)}}catch(s){o.e(s)}finally{o.f()}}(n,t,s)}))}},{key:"_canBeAligned",value:function(e){return this.editor.model.schema.checkAttribute(e,"alignment")}}]),n}(Qe),Gm=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),r=t.call(this,e),e.config.define("alignment",{options:i(Um.map((function(e){return{name:e}})))}),r}return u(n,null,[{key:"pluginName",get:function(){return"AlignmentEditing"}}]),u(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.model.schema,i=$m(e.config.get("alignment.options")).filter((function(e){return qm(e.name)&&!Wm(e.name,t)})),o=i.some((function(e){return!!e.className}));n.extend("$block",{allowAttributes:"alignment"}),e.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),o?e.conversion.attributeToAttribute(function(e){var t,n={model:{key:"alignment",values:e.map((function(e){return e.name}))},view:{}},i=r(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;n.view[o.name]={key:"class",value:o.className}}}catch(a){i.e(a)}finally{i.f()}return n}(i)):e.conversion.for("downcast").attributeToAttribute(function(e){var t,n={model:{key:"alignment",values:e.map((function(e){return e.name}))},view:{}},i=r(e);try{for(i.s();!(t=i.n()).done;){var o=t.value.name;n.view[o]={key:"style",value:{"text-align":o}}}}catch(a){i.e(a)}finally{i.f()}return n}(i));var a,s=function(e){var t,n=[],i=r(e);try{for(i.s();!(t=i.n()).done;){var o=t.value.name;n.push({view:{key:"style",value:{"text-align":o}},model:{key:"alignment",value:o}})}}catch(a){i.e(a)}finally{i.f()}return n}(i),l=r(s);try{for(l.s();!(a=l.n()).done;){var u=a.value;e.conversion.for("upcast").attributeToAttribute(u)}}catch(v){l.e(v)}finally{l.f()}var c,d=function(e){var t,n=[],i=r(e);try{for(i.s();!(t=i.n()).done;){var o=t.value.name;n.push({view:{key:"align",value:o},model:{key:"alignment",value:o}})}}catch(v){i.e(v)}finally{i.f()}return n}(i),h=r(d);try{for(h.s();!(c=h.n()).done;){var f=c.value;e.conversion.for("upcast").attributeToAttribute(f)}}catch(v){h.e(v)}finally{h.f()}e.commands.add("alignment",new Km(e))}}]),n}(Ge),Jm=new Map([["left",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>'],["right",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>'],["center",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>'],["justify",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>']]),Qm=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.ui.componentFactory,r=t.t,i=$m(t.config.get("alignment.options"));i.map((function(e){return e.name})).filter(qm).forEach((function(t){return e._addButton(t)})),n.add("alignment",(function(e){var t=xu(e),o=i.map((function(e){return n.create("alignment:"+e.name)}));Su(t,o),t.buttonView.set({label:r("Text alignment"),tooltip:!0}),t.toolbarView.isVertical=!0,t.toolbarView.ariaLabel=r("Text alignment toolbar"),t.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});var a=Jm.get("rtl"===e.contentLanguageDirection?"right":"left");return t.buttonView.bind("icon").toMany(o,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.findIndex((function(e){return e}));return r<0?a:o[r].icon})),t.bind("isEnabled").toMany(o,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),t}))}},{key:"_addButton",value:function(e){var t=this,n=this.editor;n.ui.componentFactory.add("alignment:"+e,(function(r){var i=n.commands.get("alignment"),o=new tu(r);return o.set({label:t.localizedOptionTitles[e],icon:Jm.get(e),tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i),o.bind("isOn").to(i,"value",(function(t){return t===e})),t.listenTo(o,"execute",(function(){n.execute("alignment",{value:e}),n.editing.view.focus()})),o}))}},{key:"localizedOptionTitles",get:function(){var e=this.editor.t;return{left:e("Align left"),right:e("Align right"),center:e("Align center"),justify:e("Justify")}}}],[{key:"pluginName",get:function(){return"AlignmentUI"}}]),n}(Ge);function Zm(e,t){return"".concat(e,":").concat(t=t||yn(e))}var Ym=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"language")}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.languageCode,n=e.textDirection,i=this.editor.model,o=i.document.selection,a=!!t&&Zm(t,n);i.change((function(e){if(o.isCollapsed)a?e.setSelectionAttribute("language",a):e.removeSelectionAttribute("language");else{var t,n=r(i.schema.getValidRanges(o.getRanges(),"language"));try{for(n.s();!(t=n.n()).done;){var s=t.value;a?e.setAttribute("language",a,s):e.removeAttribute("language",s)}}catch(l){n.e(l)}finally{n.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.getAttribute("language")||!1;var i,o=r(n.getRanges());try{for(o.s();!(i=o.n()).done;){var a,s=r(i.value.getItems());try{for(s.s();!(a=s.n()).done;){var l=a.value;if(t.checkAttribute(l,"language"))return l.getAttribute("language")||!1}}catch(u){s.e(u)}finally{s.f()}}}catch(u){o.e(u)}finally{o.f()}return!1}}]),n}(Qe),Xm=function(e){c(r,e);var t=d(r);function r(e){var n;return s(this,r),n=t.call(this,e),e.config.define("language",{textPartLanguage:[{title:"Arabic",languageCode:"ar"},{title:"French",languageCode:"fr"},{title:"Spanish",languageCode:"es"}]}),n}return u(r,null,[{key:"pluginName",get:function(){return"TextPartLanguageEditing"}}]),u(r,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"language"}),e.model.schema.setAttributeProperties("language",{copyOnEnter:!0}),this._defineConverters(),e.commands.add("textPartLanguage",new Ym(e))}},{key:"_defineConverters",value:function(){var e=this.editor.conversion;e.for("upcast").elementToAttribute({model:{key:"language",value:function(e){return Zm(e.getAttribute("lang"),e.getAttribute("dir"))}},view:{name:"span",attributes:{lang:/[\s\S]+/}}}),e.for("downcast").attributeToElement({model:"language",view:function(e,t){var r=t.writer;if(e){var i=function(e){var t=n(e.split(":"),2);return{languageCode:t[0],textDirection:t[1]}}(e),o=i.languageCode,a=i.textDirection;return r.createAttributeElement("span",{lang:o,dir:a})}}})}}]),r}(Ge);l(118);var ey=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,i=t.config.get("language.textPartLanguage"),o=n("Choose language"),a=n("Remove language"),s=n("Language");t.ui.componentFactory.add("textPartLanguage",(function(n){var l,u=new vn,c={},d=t.commands.get("textPartLanguage"),h=r(i);try{var f=function(){var e=l.value,t={type:"button",model:new Lu({label:e.title,languageCode:e.languageCode,textDirection:e.textDirection,withText:!0})},n=Zm(e.languageCode,e.textDirection);t.model.bind("isOn").to(d,"value",(function(e){return e===n})),u.add(t),c[n]=e.title};for(h.s();!(l=h.n()).done;)f()}catch(p){h.e(p)}finally{h.f()}u.add({type:"separator"}),u.add({type:"button",model:new Lu({label:a,languageCode:!1,withText:!0})});var v=xu(n);return Au(v,u),v.buttonView.set({isOn:!1,withText:!0,tooltip:s}),v.extendTemplate({attributes:{class:["ck-text-fragment-language-dropdown"]}}),v.bind("isEnabled").to(d,"isEnabled"),v.buttonView.bind("label").to(d,"value",(function(e){return c[e]||o})),e.listenTo(v,"execute",(function(e){d.execute({languageCode:e.source.languageCode,textDirection:e.source.textDirection}),t.editing.view.focus()})),v}))}}],[{key:"pluginName",get:function(){return"TextPartLanguageUI"}}]),n}(Ge),ty=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(vc);ty.builtinPlugins=[function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Gm,Qm]}},{key:"pluginName",get:function(){return"Alignment"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[ld,Cc,yd,hd,Ad,th]}},{key:"pluginName",get:function(){return"Essentials"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(rh).createUploadAdapter=function(n){return new sh(n,t,e.editor.t)})}}],[{key:"requires",get:function(){return[rh]}},{key:"pluginName",get:function(){return"CKFinderUploadAdapter"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"afterInit",value:function(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}},{key:"_addListAutoformats",value:function(){var e=this,t=this.editor.commands;t.get("bulletedList")&&lh(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&lh(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&lh(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&lh(this.editor,this,/^\[\s?x\s?\]\s$/,(function(){e.editor.execute("todoList"),e.editor.execute("checkTodoList")}))}},{key:"_addBasicStylesAutoformats",value:function(){var e=this.editor.commands;if(e.get("bold")){var t=dh(this.editor,"bold");uh(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),uh(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(e.get("italic")){var n=dh(this.editor,"italic");uh(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,n),uh(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,n)}if(e.get("code")){var r=dh(this.editor,"code");uh(this.editor,this,/(`)([^`]+)(`)$/g,r)}if(e.get("strikethrough")){var i=dh(this.editor,"strikethrough");uh(this.editor,this,/(~~)([^~]+)(~~)$/g,i)}}},{key:"_addHeadingAutoformats",value:function(){var e=this,t=this.editor.commands.get("heading");t&&t.modelElements.filter((function(e){return e.match(/^heading[1-6]$/)})).forEach((function(n){var r=new RegExp("^(#{".concat(n[7],"})\\s$"));lh(e.editor,e,r,(function(){if(!t.isEnabled||t.value===n)return!1;e.editor.execute("heading",{value:n})}))}))}},{key:"_addBlockQuoteAutoformats",value:function(){this.editor.commands.get("blockQuote")&&lh(this.editor,this,/^>\s$/,"blockQuote")}},{key:"_addCodeBlockAutoformats",value:function(){this.editor.commands.get("codeBlock")&&lh(this.editor,this,/^```$/,"codeBlock")}},{key:"_addHorizontalLineAutoformats",value:function(){this.editor.commands.get("horizontalLine")&&lh(this.editor,this,/^---$/,"horizontalLine")}}],[{key:"pluginName",get:function(){return"Autoformat"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[fh,vh]}},{key:"pluginName",get:function(){return"Bold"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[ph,gh]}},{key:"pluginName",get:function(){return"Italic"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[_h,wh]}},{key:"pluginName",get:function(){return"BlockQuote"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"pluginName",get:function(){return"CKFinder"}},{key:"requires",get:function(){return["Image","Link","CKFinderUploadAdapter",Ah,Ch]}}]),n}(Ge),function(e){c(i,e);var n=d(i);function i(){return s(this,i),n.apply(this,arguments)}return u(i,[{key:"init",value:function(){var e=this.context.config.get("cloudServices")||{};for(var t in e)this[t]=e[t];if(this._tokens=new Map,this.tokenUrl)return this.token=this.context.plugins.get("CloudServicesCore").createToken(this.tokenUrl),this._tokens.set(this.tokenUrl,this.token),this.token.init();this.token=null}},{key:"registerTokenUrl",value:function(e){if(this._tokens.has(e))return Promise.resolve(this.getTokenFor(e));var t=this.context.plugins.get("CloudServicesCore").createToken(e);return this._tokens.set(e,t),t.init()}},{key:"getTokenFor",value:function(e){var t=this._tokens.get(e);if(!t)throw new C.a("cloudservices-token-not-registered",this);return t}},{key:"destroy",value:function(){t(y(i.prototype),"destroy",this).call(this);var e,n=r(this._tokens.values());try{for(n.s();!(e=n.n()).done;){e.value.destroy()}}catch(o){n.e(o)}finally{n.f()}}}],[{key:"pluginName",get:function(){return"CloudServices"}},{key:"requires",get:function(){return[Lg]}}]),i}(_n),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Eh,"Image","ImageUpload"]}},{key:"pluginName",get:function(){return"EasyImage"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Lh,Dh]}},{key:"pluginName",get:function(){return"Heading"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"isImageWidget",value:function(e){return qh(e)}}],[{key:"requires",get:function(){return[Yh,Xc,af]}},{key:"pluginName",get:function(){return"Image"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[ff,vf]}},{key:"pluginName",get:function(){return"ImageStyle"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t;e.plugins.get(jh).register("image",{ariaLabel:t("Image toolbar"),items:e.config.get("image.toolbar")||[],getRelatedElement:Wh})}}],[{key:"requires",get:function(){return[jh]}},{key:"pluginName",get:function(){return"ImageToolbar"}}]),n}(Ge),Pf,function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"pluginName",get:function(){return"Indent"}},{key:"requires",get:function(){return[Rf,Mf]}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[ov,hv,pv]}},{key:"pluginName",get:function(){return"Link"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Hv,qv]}},{key:"pluginName",get:function(){return"List"}}]),n}(Ge),Oh,function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document,n=[];n.push(new Xv(t)),n.push(new Jv(t)),e.plugins.get("ClipboardPipeline").on("inputTransformation",(function(e,t){if(!t.isTransformedWithPasteFromOffice){var r=t.dataTransfer.getData("text/html"),i=n.find((function(e){return e.isActive(r)}));i&&(i.execute(t),t.isTransformedWithPasteFromOffice=!0)}}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"PasteFromOffice"}},{key:"requires",get:function(){return[yc]}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[hg,pg,mg,xg,wg,yg,Xc]}},{key:"pluginName",get:function(){return"Table"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t,n=e.plugins.get(jh),r=e.config.get("table.contentToolbar"),i=e.config.get("table.tableToolbar");r&&n.register("tableContent",{ariaLabel:t("Table toolbar"),items:r,getRelatedElement:Eg}),i&&n.register("table",{ariaLabel:t("Table toolbar"),items:i,getRelatedElement:Ag})}}],[{key:"requires",get:function(){return[jh]}},{key:"pluginName",get:function(){return"TableToolbar"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),r=t.call(this,e),e.config.define("typing",{transformations:{include:Fd}}),r}return u(n,null,[{key:"pluginName",get:function(){return"TextTransformation"}}]),u(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}},{key:"_enableTransformationWatchers",value:function(){var e=this.editor,t=e.model,n=e.plugins.get("Input"),i=function(e){var t=e.remove||[],n=function(e){return!t.includes(e)};return function(e){var t,n=new Set,i=r(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(jd[o]){var a,s=r(jd[o]);try{for(s.s();!(a=s.n()).done;){var l=a.value;n.add(l)}}catch(u){s.e(u)}finally{s.f()}}else n.add(o)}}catch(u){i.e(u)}finally{i.f()}return Array.from(n)}(e.include.concat(e.extra||[]).filter(n)).filter(n).map((function(e){return Dd[e]||e})).map((function(e){return{from:Vd(e.from),to:zd(e.to)}}))}(e.config.get("typing.transformations")),o=new Td(e.model,(function(e){var t,n=r(i);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(o.from.test(e))return{normalizedTransformation:o}}}catch(a){n.e(a)}finally{n.f()}}));o.on("matched:data",(function(e,r){if(n.isInput(r.batch)){var i=r.normalizedTransformation,o=i.from,a=i.to,s=o.exec(r.text),l=a(s.slice(1)),u=r.range,c=s.index;t.enqueueChange((function(e){for(var n=1;n<s.length;n++){var r=s[n],i=l[n-1];if(null!=i){var o=u.start.getShiftedBy(c),a=t.createRange(o,o.getShiftedBy(r.length)),d=Bd(o);t.insertContent(e.createText(i,d),a),c+=i.length}else c+=r.length}}))}})),o.bind("isEnabled").to(this)}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Dg,jg]}},{key:"pluginName",get:function(){return"Strikethrough"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Bm,Hm]}},{key:"pluginName",get:function(){return"Code"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Jg,Qg]}},{key:"pluginName",get:function(){return"CodeBlock"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"toMentionAttribute",value:function(e,t){return em(e,t)}}],[{key:"pluginName",get:function(){return"Mention"}},{key:"requires",get:function(){return[Yg,um]}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this,t=this.editor,n=this.editor.editing.view.document;t.editing.view.addObserver(cc),t.conversion.for("upcast").elementToAttribute({view:{name:"a",key:"data-mention",classes:"mention",attributes:{href:!0}},model:{key:"mention",value:function(e){return t.plugins.get("Mention").toMentionAttribute(e,{link:e.getAttribute("href")})}},converterPriority:"high"}),t.conversion.for("downcast").attributeToElement({model:"mention",view:function(e,t){var n=t.writer;if(e&&e.id)return e.id.startsWith(":")?n.createAttributeElement("span",{class:"mention"},{priority:20,id:e.uid}):n.createAttributeElement("a",{class:"mention",href:e.link,target:"_blank"},{priority:20,id:e.uid})},converterPriority:"high"}),this.listenTo(n,"click",(function(){var t=n.selection.getFirstPosition().getAncestors().find((function(t){return e.isMentionLink(t)}));t&&window.open(t.getAttribute("href"))}))}},{key:"isMentionLink",value:function(e){return e.is("attributeElement")&&e.hasClass("mention")&&e.getAttribute("href")}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[mm,pm]}},{key:"pluginName",get:function(){return"RemoveFormat"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"init",value:function(){var e=this.editor,t=e.config.get("image.upload.types").map((function(e){return"image/"+e}));this.listenTo(e.editing.view.document,"clipboardInput",(function(n,r){var i=Array.from(r.dataTransfer.files).filter((function(e){return!!e&&!t.includes(e.type)}));if(r.targetRanges){var o=r.targetRanges.map((function(t){return e.editing.mapper.toModelRange(t)}));e.model.change((function(t){t.setSelection(o),i.length&&(n.stop(),e.model.enqueueChange("default",(function(){var t=e.plugins.get(rh);i.forEach((function(n){var r=t.createLoader(n);r&&r.upload().then((function(t){e.model.change((function(n){var r=n.createText(t.text,{linkHref:t.default}),i=e.model.document.selection.getFirstPosition();e.model.insertContent(r,i);var o=n.createText(" ");e.model.insertContent(o,n.createPositionAfter(r)),n.setSelection(n.createPositionAfter(o))}))}))}))})))}))}}))}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Em,Tm]}},{key:"pluginName",get:function(){return"TodoList"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[km,bm,Xc]}},{key:"pluginName",get:function(){return"HorizontalLine"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"pluginName",get:function(){return"ImageInsert"}},{key:"requires",get:function(){return[Pf,Om]}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Mm,Fm]}},{key:"pluginName",get:function(){return"LinkImage"}}]),n}(Ge),function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,null,[{key:"requires",get:function(){return[Xm,ey]}},{key:"pluginName",get:function(){return"TextPartLanguage"}}]),n}(Ge)],ty.defaultConfig={alignment:{options:["left","right"]},toolbar:{items:["heading","|","bold","italic","strikethrough","link","todoList","bulletedList","numberedList","alignment","|","imageInsert","blockQuote","insertTable","codeBlock","removeFormat","horizontalLine","undo","redo","textPartLanguage"]},image:{toolbar:["imageTextAlternative","|","linkImage"]},table:{contentToolbar:["tableColumn","tableRow"]},language:{content:"en",textPartLanguage:[{title:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",languageCode:"ar"},{title:"Deutsch",languageCode:"de"},{title:"English",languageCode:"en"},{title:"Espa\xf1ol",languageCode:"es"},{title:"Fran\xe7ais",languageCode:"fr"},{title:"\u65e5\u672c\u8a9e",languageCode:"ja"},{title:"\ud55c\uad6d\uc5b4",languageCode:"ko"},{title:"Portugu\xeas",languageCode:"pt"},{title:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439",languageCode:"ru"},{title:"\u4e2d\u6587",languageCode:"zh"}]}}}]).default},"7Km7":function(e){e.exports=JSON.parse('{"100":"\ud83d\udcaf","1234":"\ud83d\udd22","umbrella_with_rain_drops":"\u2614","coffee":"\u2615","aries":"\u2648","taurus":"\u2649","sagittarius":"\u2650","capricorn":"\u2651","aquarius":"\u2652","pisces":"\u2653","anchor":"\u2693","white_check_mark":"\u2705","sparkles":"\u2728","question":"\u2753","grey_question":"\u2754","grey_exclamation":"\u2755","exclamation":"\u2757","heavy_exclamation_mark":"\u2757","heavy_plus_sign":"\u2795","heavy_minus_sign":"\u2796","heavy_division_sign":"\u2797","hash":"#\ufe0f\u20e3","keycap_star":"*\ufe0f\u20e3","zero":"0\ufe0f\u20e3","one":"1\ufe0f\u20e3","two":"2\ufe0f\u20e3","three":"3\ufe0f\u20e3","four":"4\ufe0f\u20e3","five":"5\ufe0f\u20e3","six":"6\ufe0f\u20e3","seven":"7\ufe0f\u20e3","eight":"8\ufe0f\u20e3","nine":"9\ufe0f\u20e3","copyright":"\xa9\ufe0f","registered":"\xae\ufe0f","mahjong":"\ud83c\udc04","black_joker":"\ud83c\udccf","a":"\ud83c\udd70\ufe0f","b":"\ud83c\udd71\ufe0f","o2":"\ud83c\udd7e\ufe0f","parking":"\ud83c\udd7f\ufe0f","ab":"\ud83c\udd8e","cl":"\ud83c\udd91","cool":"\ud83c\udd92","free":"\ud83c\udd93","id":"\ud83c\udd94","new":"\ud83c\udd95","ng":"\ud83c\udd96","ok":"\ud83c\udd97","sos":"\ud83c\udd98","up":"\ud83c\udd99","vs":"\ud83c\udd9a","flag-ac":"\ud83c\udde6\ud83c\udde8","flag-ad":"\ud83c\udde6\ud83c\udde9","flag-ae":"\ud83c\udde6\ud83c\uddea","flag-af":"\ud83c\udde6\ud83c\uddeb","flag-ag":"\ud83c\udde6\ud83c\uddec","flag-ai":"\ud83c\udde6\ud83c\uddee","flag-al":"\ud83c\udde6\ud83c\uddf1","flag-am":"\ud83c\udde6\ud83c\uddf2","flag-ao":"\ud83c\udde6\ud83c\uddf4","flag-aq":"\ud83c\udde6\ud83c\uddf6","flag-ar":"\ud83c\udde6\ud83c\uddf7","flag-as":"\ud83c\udde6\ud83c\uddf8","flag-at":"\ud83c\udde6\ud83c\uddf9","flag-au":"\ud83c\udde6\ud83c\uddfa","flag-aw":"\ud83c\udde6\ud83c\uddfc","flag-ax":"\ud83c\udde6\ud83c\uddfd","flag-az":"\ud83c\udde6\ud83c\uddff","flag-ba":"\ud83c\udde7\ud83c\udde6","flag-bb":"\ud83c\udde7\ud83c\udde7","flag-bd":"\ud83c\udde7\ud83c\udde9","flag-be":"\ud83c\udde7\ud83c\uddea","flag-bf":"\ud83c\udde7\ud83c\uddeb","flag-bg":"\ud83c\udde7\ud83c\uddec","flag-bh":"\ud83c\udde7\ud83c\udded","flag-bi":"\ud83c\udde7\ud83c\uddee","flag-bj":"\ud83c\udde7\ud83c\uddef","flag-bl":"\ud83c\udde7\ud83c\uddf1","flag-bm":"\ud83c\udde7\ud83c\uddf2","flag-bn":"\ud83c\udde7\ud83c\uddf3","flag-bo":"\ud83c\udde7\ud83c\uddf4","flag-bq":"\ud83c\udde7\ud83c\uddf6","flag-br":"\ud83c\udde7\ud83c\uddf7","flag-bs":"\ud83c\udde7\ud83c\uddf8","flag-bt":"\ud83c\udde7\ud83c\uddf9","flag-bv":"\ud83c\udde7\ud83c\uddfb","flag-bw":"\ud83c\udde7\ud83c\uddfc","flag-by":"\ud83c\udde7\ud83c\uddfe","flag-bz":"\ud83c\udde7\ud83c\uddff","flag-ca":"\ud83c\udde8\ud83c\udde6","flag-cc":"\ud83c\udde8\ud83c\udde8","flag-cd":"\ud83c\udde8\ud83c\udde9","flag-cf":"\ud83c\udde8\ud83c\uddeb","flag-cg":"\ud83c\udde8\ud83c\uddec","flag-ch":"\ud83c\udde8\ud83c\udded","flag-ci":"\ud83c\udde8\ud83c\uddee","flag-ck":"\ud83c\udde8\ud83c\uddf0","flag-cl":"\ud83c\udde8\ud83c\uddf1","flag-cm":"\ud83c\udde8\ud83c\uddf2","cn":"\ud83c\udde8\ud83c\uddf3","flag-cn":"\ud83c\udde8\ud83c\uddf3","flag-co":"\ud83c\udde8\ud83c\uddf4","flag-cp":"\ud83c\udde8\ud83c\uddf5","flag-cr":"\ud83c\udde8\ud83c\uddf7","flag-cu":"\ud83c\udde8\ud83c\uddfa","flag-cv":"\ud83c\udde8\ud83c\uddfb","flag-cw":"\ud83c\udde8\ud83c\uddfc","flag-cx":"\ud83c\udde8\ud83c\uddfd","flag-cy":"\ud83c\udde8\ud83c\uddfe","flag-cz":"\ud83c\udde8\ud83c\uddff","de":"\ud83c\udde9\ud83c\uddea","flag-de":"\ud83c\udde9\ud83c\uddea","flag-dg":"\ud83c\udde9\ud83c\uddec","flag-dj":"\ud83c\udde9\ud83c\uddef","flag-dk":"\ud83c\udde9\ud83c\uddf0","flag-dm":"\ud83c\udde9\ud83c\uddf2","flag-do":"\ud83c\udde9\ud83c\uddf4","flag-dz":"\ud83c\udde9\ud83c\uddff","flag-ea":"\ud83c\uddea\ud83c\udde6","flag-ec":"\ud83c\uddea\ud83c\udde8","flag-ee":"\ud83c\uddea\ud83c\uddea","flag-eg":"\ud83c\uddea\ud83c\uddec","flag-eh":"\ud83c\uddea\ud83c\udded","flag-er":"\ud83c\uddea\ud83c\uddf7","es":"\ud83c\uddea\ud83c\uddf8","flag-es":"\ud83c\uddea\ud83c\uddf8","flag-et":"\ud83c\uddea\ud83c\uddf9","flag-eu":"\ud83c\uddea\ud83c\uddfa","flag-fi":"\ud83c\uddeb\ud83c\uddee","flag-fj":"\ud83c\uddeb\ud83c\uddef","flag-fk":"\ud83c\uddeb\ud83c\uddf0","flag-fm":"\ud83c\uddeb\ud83c\uddf2","flag-fo":"\ud83c\uddeb\ud83c\uddf4","fr":"\ud83c\uddeb\ud83c\uddf7","flag-fr":"\ud83c\uddeb\ud83c\uddf7","flag-ga":"\ud83c\uddec\ud83c\udde6","gb":"\ud83c\uddec\ud83c\udde7","uk":"\ud83c\uddec\ud83c\udde7","flag-gb":"\ud83c\uddec\ud83c\udde7","flag-gd":"\ud83c\uddec\ud83c\udde9","flag-ge":"\ud83c\uddec\ud83c\uddea","flag-gf":"\ud83c\uddec\ud83c\uddeb","flag-gg":"\ud83c\uddec\ud83c\uddec","flag-gh":"\ud83c\uddec\ud83c\udded","flag-gi":"\ud83c\uddec\ud83c\uddee","flag-gl":"\ud83c\uddec\ud83c\uddf1","flag-gm":"\ud83c\uddec\ud83c\uddf2","flag-gn":"\ud83c\uddec\ud83c\uddf3","flag-gp":"\ud83c\uddec\ud83c\uddf5","flag-gq":"\ud83c\uddec\ud83c\uddf6","flag-gr":"\ud83c\uddec\ud83c\uddf7","flag-gs":"\ud83c\uddec\ud83c\uddf8","flag-gt":"\ud83c\uddec\ud83c\uddf9","flag-gu":"\ud83c\uddec\ud83c\uddfa","flag-gw":"\ud83c\uddec\ud83c\uddfc","flag-gy":"\ud83c\uddec\ud83c\uddfe","flag-hk":"\ud83c\udded\ud83c\uddf0","flag-hm":"\ud83c\udded\ud83c\uddf2","flag-hn":"\ud83c\udded\ud83c\uddf3","flag-hr":"\ud83c\udded\ud83c\uddf7","flag-ht":"\ud83c\udded\ud83c\uddf9","flag-hu":"\ud83c\udded\ud83c\uddfa","flag-ic":"\ud83c\uddee\ud83c\udde8","flag-id":"\ud83c\uddee\ud83c\udde9","flag-ie":"\ud83c\uddee\ud83c\uddea","flag-il":"\ud83c\uddee\ud83c\uddf1","flag-im":"\ud83c\uddee\ud83c\uddf2","flag-in":"\ud83c\uddee\ud83c\uddf3","flag-io":"\ud83c\uddee\ud83c\uddf4","flag-iq":"\ud83c\uddee\ud83c\uddf6","flag-ir":"\ud83c\uddee\ud83c\uddf7","flag-is":"\ud83c\uddee\ud83c\uddf8","it":"\ud83c\uddee\ud83c\uddf9","flag-it":"\ud83c\uddee\ud83c\uddf9","flag-je":"\ud83c\uddef\ud83c\uddea","flag-jm":"\ud83c\uddef\ud83c\uddf2","flag-jo":"\ud83c\uddef\ud83c\uddf4","jp":"\ud83c\uddef\ud83c\uddf5","flag-jp":"\ud83c\uddef\ud83c\uddf5","flag-ke":"\ud83c\uddf0\ud83c\uddea","flag-kg":"\ud83c\uddf0\ud83c\uddec","flag-kh":"\ud83c\uddf0\ud83c\udded","flag-ki":"\ud83c\uddf0\ud83c\uddee","flag-km":"\ud83c\uddf0\ud83c\uddf2","flag-kn":"\ud83c\uddf0\ud83c\uddf3","flag-kp":"\ud83c\uddf0\ud83c\uddf5","kr":"\ud83c\uddf0\ud83c\uddf7","flag-kr":"\ud83c\uddf0\ud83c\uddf7","flag-kw":"\ud83c\uddf0\ud83c\uddfc","flag-ky":"\ud83c\uddf0\ud83c\uddfe","flag-kz":"\ud83c\uddf0\ud83c\uddff","flag-la":"\ud83c\uddf1\ud83c\udde6","flag-lb":"\ud83c\uddf1\ud83c\udde7","flag-lc":"\ud83c\uddf1\ud83c\udde8","flag-li":"\ud83c\uddf1\ud83c\uddee","flag-lk":"\ud83c\uddf1\ud83c\uddf0","flag-lr":"\ud83c\uddf1\ud83c\uddf7","flag-ls":"\ud83c\uddf1\ud83c\uddf8","flag-lt":"\ud83c\uddf1\ud83c\uddf9","flag-lu":"\ud83c\uddf1\ud83c\uddfa","flag-lv":"\ud83c\uddf1\ud83c\uddfb","flag-ly":"\ud83c\uddf1\ud83c\uddfe","flag-ma":"\ud83c\uddf2\ud83c\udde6","flag-mc":"\ud83c\uddf2\ud83c\udde8","flag-md":"\ud83c\uddf2\ud83c\udde9","flag-me":"\ud83c\uddf2\ud83c\uddea","flag-mf":"\ud83c\uddf2\ud83c\uddeb","flag-mg":"\ud83c\uddf2\ud83c\uddec","flag-mh":"\ud83c\uddf2\ud83c\udded","flag-mk":"\ud83c\uddf2\ud83c\uddf0","flag-ml":"\ud83c\uddf2\ud83c\uddf1","flag-mm":"\ud83c\uddf2\ud83c\uddf2","flag-mn":"\ud83c\uddf2\ud83c\uddf3","flag-mo":"\ud83c\uddf2\ud83c\uddf4","flag-mp":"\ud83c\uddf2\ud83c\uddf5","flag-mq":"\ud83c\uddf2\ud83c\uddf6","flag-mr":"\ud83c\uddf2\ud83c\uddf7","flag-ms":"\ud83c\uddf2\ud83c\uddf8","flag-mt":"\ud83c\uddf2\ud83c\uddf9","flag-mu":"\ud83c\uddf2\ud83c\uddfa","flag-mv":"\ud83c\uddf2\ud83c\uddfb","flag-mw":"\ud83c\uddf2\ud83c\uddfc","flag-mx":"\ud83c\uddf2\ud83c\uddfd","flag-my":"\ud83c\uddf2\ud83c\uddfe","flag-mz":"\ud83c\uddf2\ud83c\uddff","flag-na":"\ud83c\uddf3\ud83c\udde6","flag-nc":"\ud83c\uddf3\ud83c\udde8","flag-ne":"\ud83c\uddf3\ud83c\uddea","flag-nf":"\ud83c\uddf3\ud83c\uddeb","flag-ng":"\ud83c\uddf3\ud83c\uddec","flag-ni":"\ud83c\uddf3\ud83c\uddee","flag-nl":"\ud83c\uddf3\ud83c\uddf1","flag-no":"\ud83c\uddf3\ud83c\uddf4","flag-np":"\ud83c\uddf3\ud83c\uddf5","flag-nr":"\ud83c\uddf3\ud83c\uddf7","flag-nu":"\ud83c\uddf3\ud83c\uddfa","flag-nz":"\ud83c\uddf3\ud83c\uddff","flag-om":"\ud83c\uddf4\ud83c\uddf2","flag-pa":"\ud83c\uddf5\ud83c\udde6","flag-pe":"\ud83c\uddf5\ud83c\uddea","flag-pf":"\ud83c\uddf5\ud83c\uddeb","flag-pg":"\ud83c\uddf5\ud83c\uddec","flag-ph":"\ud83c\uddf5\ud83c\udded","flag-pk":"\ud83c\uddf5\ud83c\uddf0","flag-pl":"\ud83c\uddf5\ud83c\uddf1","flag-pm":"\ud83c\uddf5\ud83c\uddf2","flag-pn":"\ud83c\uddf5\ud83c\uddf3","flag-pr":"\ud83c\uddf5\ud83c\uddf7","flag-ps":"\ud83c\uddf5\ud83c\uddf8","flag-pt":"\ud83c\uddf5\ud83c\uddf9","flag-pw":"\ud83c\uddf5\ud83c\uddfc","flag-py":"\ud83c\uddf5\ud83c\uddfe","flag-qa":"\ud83c\uddf6\ud83c\udde6","flag-re":"\ud83c\uddf7\ud83c\uddea","flag-ro":"\ud83c\uddf7\ud83c\uddf4","flag-rs":"\ud83c\uddf7\ud83c\uddf8","ru":"\ud83c\uddf7\ud83c\uddfa","flag-ru":"\ud83c\uddf7\ud83c\uddfa","flag-rw":"\ud83c\uddf7\ud83c\uddfc","flag-sa":"\ud83c\uddf8\ud83c\udde6","flag-sb":"\ud83c\uddf8\ud83c\udde7","flag-sc":"\ud83c\uddf8\ud83c\udde8","flag-sd":"\ud83c\uddf8\ud83c\udde9","flag-se":"\ud83c\uddf8\ud83c\uddea","flag-sg":"\ud83c\uddf8\ud83c\uddec","flag-sh":"\ud83c\uddf8\ud83c\udded","flag-si":"\ud83c\uddf8\ud83c\uddee","flag-sj":"\ud83c\uddf8\ud83c\uddef","flag-sk":"\ud83c\uddf8\ud83c\uddf0","flag-sl":"\ud83c\uddf8\ud83c\uddf1","flag-sm":"\ud83c\uddf8\ud83c\uddf2","flag-sn":"\ud83c\uddf8\ud83c\uddf3","flag-so":"\ud83c\uddf8\ud83c\uddf4","flag-sr":"\ud83c\uddf8\ud83c\uddf7","flag-ss":"\ud83c\uddf8\ud83c\uddf8","flag-st":"\ud83c\uddf8\ud83c\uddf9","flag-sv":"\ud83c\uddf8\ud83c\uddfb","flag-sx":"\ud83c\uddf8\ud83c\uddfd","flag-sy":"\ud83c\uddf8\ud83c\uddfe","flag-sz":"\ud83c\uddf8\ud83c\uddff","flag-ta":"\ud83c\uddf9\ud83c\udde6","flag-tc":"\ud83c\uddf9\ud83c\udde8","flag-td":"\ud83c\uddf9\ud83c\udde9","flag-tf":"\ud83c\uddf9\ud83c\uddeb","flag-tg":"\ud83c\uddf9\ud83c\uddec","flag-th":"\ud83c\uddf9\ud83c\udded","flag-tj":"\ud83c\uddf9\ud83c\uddef","flag-tk":"\ud83c\uddf9\ud83c\uddf0","flag-tl":"\ud83c\uddf9\ud83c\uddf1","flag-tm":"\ud83c\uddf9\ud83c\uddf2","flag-tn":"\ud83c\uddf9\ud83c\uddf3","flag-to":"\ud83c\uddf9\ud83c\uddf4","flag-tr":"\ud83c\uddf9\ud83c\uddf7","flag-tt":"\ud83c\uddf9\ud83c\uddf9","flag-tv":"\ud83c\uddf9\ud83c\uddfb","flag-tw":"\ud83c\uddf9\ud83c\uddfc","flag-tz":"\ud83c\uddf9\ud83c\uddff","flag-ua":"\ud83c\uddfa\ud83c\udde6","flag-ug":"\ud83c\uddfa\ud83c\uddec","flag-um":"\ud83c\uddfa\ud83c\uddf2","flag-un":"\ud83c\uddfa\ud83c\uddf3","us":"\ud83c\uddfa\ud83c\uddf8","flag-us":"\ud83c\uddfa\ud83c\uddf8","flag-uy":"\ud83c\uddfa\ud83c\uddfe","flag-uz":"\ud83c\uddfa\ud83c\uddff","flag-va":"\ud83c\uddfb\ud83c\udde6","flag-vc":"\ud83c\uddfb\ud83c\udde8","flag-ve":"\ud83c\uddfb\ud83c\uddea","flag-vg":"\ud83c\uddfb\ud83c\uddec","flag-vi":"\ud83c\uddfb\ud83c\uddee","flag-vn":"\ud83c\uddfb\ud83c\uddf3","flag-vu":"\ud83c\uddfb\ud83c\uddfa","flag-wf":"\ud83c\uddfc\ud83c\uddeb","flag-ws":"\ud83c\uddfc\ud83c\uddf8","flag-xk":"\ud83c\uddfd\ud83c\uddf0","flag-ye":"\ud83c\uddfe\ud83c\uddea","flag-yt":"\ud83c\uddfe\ud83c\uddf9","flag-za":"\ud83c\uddff\ud83c\udde6","flag-zm":"\ud83c\uddff\ud83c\uddf2","flag-zw":"\ud83c\uddff\ud83c\uddfc","koko":"\ud83c\ude01","sa":"\ud83c\ude02\ufe0f","u7121":"\ud83c\ude1a","u6307":"\ud83c\ude2f","u7981":"\ud83c\ude32","u7a7a":"\ud83c\ude33","u5408":"\ud83c\ude34","u6e80":"\ud83c\ude35","u6709":"\ud83c\ude36","u6708":"\ud83c\ude37\ufe0f","u7533":"\ud83c\ude38","u5272":"\ud83c\ude39","u55b6":"\ud83c\ude3a","ideograph_advantage":"\ud83c\ude50","accept":"\ud83c\ude51","cyclone":"\ud83c\udf00","foggy":"\ud83c\udf01","closed_umbrella":"\ud83c\udf02","night_with_stars":"\ud83c\udf03","sunrise_over_mountains":"\ud83c\udf04","sunrise":"\ud83c\udf05","city_sunset":"\ud83c\udf06","city_sunrise":"\ud83c\udf07","rainbow":"\ud83c\udf08","bridge_at_night":"\ud83c\udf09","ocean":"\ud83c\udf0a","volcano":"\ud83c\udf0b","milky_way":"\ud83c\udf0c","earth_africa":"\ud83c\udf0d","earth_americas":"\ud83c\udf0e","earth_asia":"\ud83c\udf0f","globe_with_meridians":"\ud83c\udf10","new_moon":"\ud83c\udf11","waxing_crescent_moon":"\ud83c\udf12","first_quarter_moon":"\ud83c\udf13","moon":"\ud83c\udf14","waxing_gibbous_moon":"\ud83c\udf14","full_moon":"\ud83c\udf15","waning_gibbous_moon":"\ud83c\udf16","last_quarter_moon":"\ud83c\udf17","waning_crescent_moon":"\ud83c\udf18","crescent_moon":"\ud83c\udf19","new_moon_with_face":"\ud83c\udf1a","first_quarter_moon_with_face":"\ud83c\udf1b","last_quarter_moon_with_face":"\ud83c\udf1c","full_moon_with_face":"\ud83c\udf1d","sun_with_face":"\ud83c\udf1e","star2":"\ud83c\udf1f","stars":"\ud83c\udf20","thermometer":"\ud83c\udf21\ufe0f","mostly_sunny":"\ud83c\udf24\ufe0f","sun_small_cloud":"\ud83c\udf24\ufe0f","barely_sunny":"\ud83c\udf25\ufe0f","sun_behind_cloud":"\ud83c\udf25\ufe0f","partly_sunny_rain":"\ud83c\udf26\ufe0f","sun_behind_rain_cloud":"\ud83c\udf26\ufe0f","rain_cloud":"\ud83c\udf27\ufe0f","snow_cloud":"\ud83c\udf28\ufe0f","lightning":"\ud83c\udf29\ufe0f","lightning_cloud":"\ud83c\udf29\ufe0f","tornado":"\ud83c\udf2a\ufe0f","tornado_cloud":"\ud83c\udf2a\ufe0f","fog":"\ud83c\udf2b\ufe0f","wind_blowing_face":"\ud83c\udf2c\ufe0f","hotdog":"\ud83c\udf2d","taco":"\ud83c\udf2e","burrito":"\ud83c\udf2f","chestnut":"\ud83c\udf30","seedling":"\ud83c\udf31","evergreen_tree":"\ud83c\udf32","deciduous_tree":"\ud83c\udf33","palm_tree":"\ud83c\udf34","cactus":"\ud83c\udf35","hot_pepper":"\ud83c\udf36\ufe0f","tulip":"\ud83c\udf37","cherry_blossom":"\ud83c\udf38","rose":"\ud83c\udf39","hibiscus":"\ud83c\udf3a","sunflower":"\ud83c\udf3b","blossom":"\ud83c\udf3c","corn":"\ud83c\udf3d","ear_of_rice":"\ud83c\udf3e","herb":"\ud83c\udf3f","four_leaf_clover":"\ud83c\udf40","maple_leaf":"\ud83c\udf41","fallen_leaf":"\ud83c\udf42","leaves":"\ud83c\udf43","mushroom":"\ud83c\udf44","tomato":"\ud83c\udf45","eggplant":"\ud83c\udf46","grapes":"\ud83c\udf47","melon":"\ud83c\udf48","watermelon":"\ud83c\udf49","tangerine":"\ud83c\udf4a","lemon":"\ud83c\udf4b","banana":"\ud83c\udf4c","pineapple":"\ud83c\udf4d","apple":"\ud83c\udf4e","green_apple":"\ud83c\udf4f","pear":"\ud83c\udf50","peach":"\ud83c\udf51","cherries":"\ud83c\udf52","strawberry":"\ud83c\udf53","hamburger":"\ud83c\udf54","pizza":"\ud83c\udf55","meat_on_bone":"\ud83c\udf56","poultry_leg":"\ud83c\udf57","rice_cracker":"\ud83c\udf58","rice_ball":"\ud83c\udf59","rice":"\ud83c\udf5a","curry":"\ud83c\udf5b","ramen":"\ud83c\udf5c","spaghetti":"\ud83c\udf5d","bread":"\ud83c\udf5e","fries":"\ud83c\udf5f","sweet_potato":"\ud83c\udf60","dango":"\ud83c\udf61","oden":"\ud83c\udf62","sushi":"\ud83c\udf63","fried_shrimp":"\ud83c\udf64","fish_cake":"\ud83c\udf65","icecream":"\ud83c\udf66","shaved_ice":"\ud83c\udf67","ice_cream":"\ud83c\udf68","doughnut":"\ud83c\udf69","cookie":"\ud83c\udf6a","chocolate_bar":"\ud83c\udf6b","candy":"\ud83c\udf6c","lollipop":"\ud83c\udf6d","custard":"\ud83c\udf6e","honey_pot":"\ud83c\udf6f","cake":"\ud83c\udf70","bento":"\ud83c\udf71","stew":"\ud83c\udf72","fried_egg":"\ud83c\udf73","cooking":"\ud83c\udf73","fork_and_knife":"\ud83c\udf74","tea":"\ud83c\udf75","sake":"\ud83c\udf76","wine_glass":"\ud83c\udf77","cocktail":"\ud83c\udf78","tropical_drink":"\ud83c\udf79","beer":"\ud83c\udf7a","beers":"\ud83c\udf7b","baby_bottle":"\ud83c\udf7c","knife_fork_plate":"\ud83c\udf7d\ufe0f","champagne":"\ud83c\udf7e","popcorn":"\ud83c\udf7f","ribbon":"\ud83c\udf80","gift":"\ud83c\udf81","birthday":"\ud83c\udf82","jack_o_lantern":"\ud83c\udf83","christmas_tree":"\ud83c\udf84","santa":"\ud83c\udf85","fireworks":"\ud83c\udf86","sparkler":"\ud83c\udf87","balloon":"\ud83c\udf88","tada":"\ud83c\udf89","confetti_ball":"\ud83c\udf8a","tanabata_tree":"\ud83c\udf8b","crossed_flags":"\ud83c\udf8c","bamboo":"\ud83c\udf8d","dolls":"\ud83c\udf8e","flags":"\ud83c\udf8f","wind_chime":"\ud83c\udf90","rice_scene":"\ud83c\udf91","school_satchel":"\ud83c\udf92","mortar_board":"\ud83c\udf93","medal":"\ud83c\udf96\ufe0f","reminder_ribbon":"\ud83c\udf97\ufe0f","studio_microphone":"\ud83c\udf99\ufe0f","level_slider":"\ud83c\udf9a\ufe0f","control_knobs":"\ud83c\udf9b\ufe0f","film_frames":"\ud83c\udf9e\ufe0f","admission_tickets":"\ud83c\udf9f\ufe0f","carousel_horse":"\ud83c\udfa0","ferris_wheel":"\ud83c\udfa1","roller_coaster":"\ud83c\udfa2","fishing_pole_and_fish":"\ud83c\udfa3","microphone":"\ud83c\udfa4","movie_camera":"\ud83c\udfa5","cinema":"\ud83c\udfa6","headphones":"\ud83c\udfa7","art":"\ud83c\udfa8","tophat":"\ud83c\udfa9","circus_tent":"\ud83c\udfaa","ticket":"\ud83c\udfab","clapper":"\ud83c\udfac","performing_arts":"\ud83c\udfad","video_game":"\ud83c\udfae","dart":"\ud83c\udfaf","slot_machine":"\ud83c\udfb0","8ball":"\ud83c\udfb1","game_die":"\ud83c\udfb2","bowling":"\ud83c\udfb3","flower_playing_cards":"\ud83c\udfb4","musical_note":"\ud83c\udfb5","notes":"\ud83c\udfb6","saxophone":"\ud83c\udfb7","guitar":"\ud83c\udfb8","musical_keyboard":"\ud83c\udfb9","trumpet":"\ud83c\udfba","violin":"\ud83c\udfbb","musical_score":"\ud83c\udfbc","running_shirt_with_sash":"\ud83c\udfbd","tennis":"\ud83c\udfbe","ski":"\ud83c\udfbf","basketball":"\ud83c\udfc0","checkered_flag":"\ud83c\udfc1","snowboarder":"\ud83c\udfc2","woman-running":"\ud83c\udfc3\u200d\u2640\ufe0f","man-running":"\ud83c\udfc3\u200d\u2642\ufe0f","runner":"\ud83c\udfc3\u200d\u2642\ufe0f","running":"\ud83c\udfc3\u200d\u2642\ufe0f","woman-surfing":"\ud83c\udfc4\u200d\u2640\ufe0f","man-surfing":"\ud83c\udfc4\u200d\u2642\ufe0f","surfer":"\ud83c\udfc4\u200d\u2642\ufe0f","sports_medal":"\ud83c\udfc5","trophy":"\ud83c\udfc6","horse_racing":"\ud83c\udfc7","football":"\ud83c\udfc8","rugby_football":"\ud83c\udfc9","woman-swimming":"\ud83c\udfca\u200d\u2640\ufe0f","man-swimming":"\ud83c\udfca\u200d\u2642\ufe0f","swimmer":"\ud83c\udfca\u200d\u2642\ufe0f","woman-lifting-weights":"\ud83c\udfcb\ufe0f\u200d\u2640\ufe0f","man-lifting-weights":"\ud83c\udfcb\ufe0f\u200d\u2642\ufe0f","weight_lifter":"\ud83c\udfcb\ufe0f\u200d\u2642\ufe0f","woman-golfing":"\ud83c\udfcc\ufe0f\u200d\u2640\ufe0f","man-golfing":"\ud83c\udfcc\ufe0f\u200d\u2642\ufe0f","golfer":"\ud83c\udfcc\ufe0f\u200d\u2642\ufe0f","racing_motorcycle":"\ud83c\udfcd\ufe0f","racing_car":"\ud83c\udfce\ufe0f","cricket_bat_and_ball":"\ud83c\udfcf","volleyball":"\ud83c\udfd0","field_hockey_stick_and_ball":"\ud83c\udfd1","ice_hockey_stick_and_puck":"\ud83c\udfd2","table_tennis_paddle_and_ball":"\ud83c\udfd3","snow_capped_mountain":"\ud83c\udfd4\ufe0f","camping":"\ud83c\udfd5\ufe0f","beach_with_umbrella":"\ud83c\udfd6\ufe0f","building_construction":"\ud83c\udfd7\ufe0f","house_buildings":"\ud83c\udfd8\ufe0f","cityscape":"\ud83c\udfd9\ufe0f","derelict_house_building":"\ud83c\udfda\ufe0f","classical_building":"\ud83c\udfdb\ufe0f","desert":"\ud83c\udfdc\ufe0f","desert_island":"\ud83c\udfdd\ufe0f","national_park":"\ud83c\udfde\ufe0f","stadium":"\ud83c\udfdf\ufe0f","house":"\ud83c\udfe0","house_with_garden":"\ud83c\udfe1","office":"\ud83c\udfe2","post_office":"\ud83c\udfe3","european_post_office":"\ud83c\udfe4","hospital":"\ud83c\udfe5","bank":"\ud83c\udfe6","atm":"\ud83c\udfe7","hotel":"\ud83c\udfe8","love_hotel":"\ud83c\udfe9","convenience_store":"\ud83c\udfea","school":"\ud83c\udfeb","department_store":"\ud83c\udfec","factory":"\ud83c\udfed","izakaya_lantern":"\ud83c\udfee","lantern":"\ud83c\udfee","japanese_castle":"\ud83c\udfef","european_castle":"\ud83c\udff0","rainbow-flag":"\ud83c\udff3\ufe0f\u200d\ud83c\udf08","waving_white_flag":"\ud83c\udff3\ufe0f","flag-england":"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","flag-scotland":"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f","flag-wales":"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f","waving_black_flag":"\ud83c\udff4","rosette":"\ud83c\udff5\ufe0f","label":"\ud83c\udff7\ufe0f","badminton_racquet_and_shuttlecock":"\ud83c\udff8","bow_and_arrow":"\ud83c\udff9","amphora":"\ud83c\udffa","skin-tone-2":"\ud83c\udffb","skin-tone-3":"\ud83c\udffc","skin-tone-4":"\ud83c\udffd","skin-tone-5":"\ud83c\udffe","skin-tone-6":"\ud83c\udfff","rat":"\ud83d\udc00","mouse2":"\ud83d\udc01","ox":"\ud83d\udc02","water_buffalo":"\ud83d\udc03","cow2":"\ud83d\udc04","tiger2":"\ud83d\udc05","leopard":"\ud83d\udc06","rabbit2":"\ud83d\udc07","cat2":"\ud83d\udc08","dragon":"\ud83d\udc09","crocodile":"\ud83d\udc0a","whale2":"\ud83d\udc0b","snail":"\ud83d\udc0c","snake":"\ud83d\udc0d","racehorse":"\ud83d\udc0e","ram":"\ud83d\udc0f","goat":"\ud83d\udc10","sheep":"\ud83d\udc11","monkey":"\ud83d\udc12","rooster":"\ud83d\udc13","chicken":"\ud83d\udc14","dog2":"\ud83d\udc15","pig2":"\ud83d\udc16","boar":"\ud83d\udc17","elephant":"\ud83d\udc18","octopus":"\ud83d\udc19","shell":"\ud83d\udc1a","bug":"\ud83d\udc1b","ant":"\ud83d\udc1c","bee":"\ud83d\udc1d","honeybee":"\ud83d\udc1d","beetle":"\ud83d\udc1e","fish":"\ud83d\udc1f","tropical_fish":"\ud83d\udc20","blowfish":"\ud83d\udc21","turtle":"\ud83d\udc22","hatching_chick":"\ud83d\udc23","baby_chick":"\ud83d\udc24","hatched_chick":"\ud83d\udc25","bird":"\ud83d\udc26","penguin":"\ud83d\udc27","koala":"\ud83d\udc28","poodle":"\ud83d\udc29","dromedary_camel":"\ud83d\udc2a","camel":"\ud83d\udc2b","dolphin":"\ud83d\udc2c","flipper":"\ud83d\udc2c","mouse":"\ud83d\udc2d","cow":"\ud83d\udc2e","tiger":"\ud83d\udc2f","rabbit":"\ud83d\udc30","cat":"\ud83d\udc31","dragon_face":"\ud83d\udc32","whale":"\ud83d\udc33","horse":"\ud83d\udc34","monkey_face":"\ud83d\udc35","dog":"\ud83d\udc36","pig":"\ud83d\udc37","frog":"\ud83d\udc38","hamster":"\ud83d\udc39","wolf":"\ud83d\udc3a","bear":"\ud83d\udc3b","panda_face":"\ud83d\udc3c","pig_nose":"\ud83d\udc3d","feet":"\ud83d\udc3e","paw_prints":"\ud83d\udc3e","chipmunk":"\ud83d\udc3f\ufe0f","eyes":"\ud83d\udc40","eye-in-speech-bubble":"\ud83d\udc41\ufe0f\u200d\ud83d\udde8\ufe0f","eye":"\ud83d\udc41\ufe0f","ear":"\ud83d\udc42","nose":"\ud83d\udc43","lips":"\ud83d\udc44","tongue":"\ud83d\udc45","point_up_2":"\ud83d\udc46","point_down":"\ud83d\udc47","point_left":"\ud83d\udc48","point_right":"\ud83d\udc49","facepunch":"\ud83d\udc4a","punch":"\ud83d\udc4a","wave":"\ud83d\udc4b","ok_hand":"\ud83d\udc4c","+1":"\ud83d\udc4d","thumbsup":"\ud83d\udc4d","-1":"\ud83d\udc4e","thumbsdown":"\ud83d\udc4e","clap":"\ud83d\udc4f","open_hands":"\ud83d\udc50","crown":"\ud83d\udc51","womans_hat":"\ud83d\udc52","eyeglasses":"\ud83d\udc53","necktie":"\ud83d\udc54","shirt":"\ud83d\udc55","tshirt":"\ud83d\udc55","jeans":"\ud83d\udc56","dress":"\ud83d\udc57","kimono":"\ud83d\udc58","bikini":"\ud83d\udc59","womans_clothes":"\ud83d\udc5a","purse":"\ud83d\udc5b","handbag":"\ud83d\udc5c","pouch":"\ud83d\udc5d","mans_shoe":"\ud83d\udc5e","shoe":"\ud83d\udc5e","athletic_shoe":"\ud83d\udc5f","high_heel":"\ud83d\udc60","sandal":"\ud83d\udc61","boot":"\ud83d\udc62","footprints":"\ud83d\udc63","bust_in_silhouette":"\ud83d\udc64","busts_in_silhouette":"\ud83d\udc65","boy":"\ud83d\udc66","girl":"\ud83d\udc67","male-farmer":"\ud83d\udc68\u200d\ud83c\udf3e","male-cook":"\ud83d\udc68\u200d\ud83c\udf73","male-student":"\ud83d\udc68\u200d\ud83c\udf93","male-singer":"\ud83d\udc68\u200d\ud83c\udfa4","male-artist":"\ud83d\udc68\u200d\ud83c\udfa8","male-teacher":"\ud83d\udc68\u200d\ud83c\udfeb","male-factory-worker":"\ud83d\udc68\u200d\ud83c\udfed","man-boy-boy":"\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66","man-boy":"\ud83d\udc68\u200d\ud83d\udc66","man-girl-boy":"\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc66","man-girl-girl":"\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc67","man-girl":"\ud83d\udc68\u200d\ud83d\udc67","man-man-boy":"\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66","man-man-boy-boy":"\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66","man-man-girl":"\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67","man-man-girl-boy":"\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc66","man-man-girl-girl":"\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc67","man-woman-boy":"\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66","family":"\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66","man-woman-boy-boy":"\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66","man-woman-girl":"\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67","man-woman-girl-boy":"\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66","man-woman-girl-girl":"\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67","male-technologist":"\ud83d\udc68\u200d\ud83d\udcbb","male-office-worker":"\ud83d\udc68\u200d\ud83d\udcbc","male-mechanic":"\ud83d\udc68\u200d\ud83d\udd27","male-scientist":"\ud83d\udc68\u200d\ud83d\udd2c","male-astronaut":"\ud83d\udc68\u200d\ud83d\ude80","male-firefighter":"\ud83d\udc68\u200d\ud83d\ude92","male-doctor":"\ud83d\udc68\u200d\u2695\ufe0f","male-judge":"\ud83d\udc68\u200d\u2696\ufe0f","male-pilot":"\ud83d\udc68\u200d\u2708\ufe0f","man-heart-man":"\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68","man-kiss-man":"\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68","man":"\ud83d\udc68","female-farmer":"\ud83d\udc69\u200d\ud83c\udf3e","female-cook":"\ud83d\udc69\u200d\ud83c\udf73","female-student":"\ud83d\udc69\u200d\ud83c\udf93","female-singer":"\ud83d\udc69\u200d\ud83c\udfa4","female-artist":"\ud83d\udc69\u200d\ud83c\udfa8","female-teacher":"\ud83d\udc69\u200d\ud83c\udfeb","female-factory-worker":"\ud83d\udc69\u200d\ud83c\udfed","woman-boy-boy":"\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66","woman-boy":"\ud83d\udc69\u200d\ud83d\udc66","woman-girl-boy":"\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66","woman-girl-girl":"\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67","woman-girl":"\ud83d\udc69\u200d\ud83d\udc67","woman-woman-boy":"\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66","woman-woman-boy-boy":"\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66","woman-woman-girl":"\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67","woman-woman-girl-boy":"\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66","woman-woman-girl-girl":"\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67","female-technologist":"\ud83d\udc69\u200d\ud83d\udcbb","female-office-worker":"\ud83d\udc69\u200d\ud83d\udcbc","female-mechanic":"\ud83d\udc69\u200d\ud83d\udd27","female-scientist":"\ud83d\udc69\u200d\ud83d\udd2c","female-astronaut":"\ud83d\udc69\u200d\ud83d\ude80","female-firefighter":"\ud83d\udc69\u200d\ud83d\ude92","female-doctor":"\ud83d\udc69\u200d\u2695\ufe0f","female-judge":"\ud83d\udc69\u200d\u2696\ufe0f","female-pilot":"\ud83d\udc69\u200d\u2708\ufe0f","woman-heart-man":"\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc68","couple_with_heart":"\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc68","woman-heart-woman":"\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc69","woman-kiss-man":"\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68","couplekiss":"\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68","woman-kiss-woman":"\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69","woman":"\ud83d\udc69","couple":"\ud83d\udc6b","man_and_woman_holding_hands":"\ud83d\udc6b","two_men_holding_hands":"\ud83d\udc6c","two_women_holding_hands":"\ud83d\udc6d","female-police-officer":"\ud83d\udc6e\u200d\u2640\ufe0f","male-police-officer":"\ud83d\udc6e\u200d\u2642\ufe0f","cop":"\ud83d\udc6e\u200d\u2642\ufe0f","woman-with-bunny-ears-partying":"\ud83d\udc6f\u200d\u2640\ufe0f","dancers":"\ud83d\udc6f\u200d\u2640\ufe0f","man-with-bunny-ears-partying":"\ud83d\udc6f\u200d\u2642\ufe0f","bride_with_veil":"\ud83d\udc70","blond-haired-woman":"\ud83d\udc71\u200d\u2640\ufe0f","blond-haired-man":"\ud83d\udc71\u200d\u2642\ufe0f","person_with_blond_hair":"\ud83d\udc71\u200d\u2642\ufe0f","man_with_gua_pi_mao":"\ud83d\udc72","woman-wearing-turban":"\ud83d\udc73\u200d\u2640\ufe0f","man-wearing-turban":"\ud83d\udc73\u200d\u2642\ufe0f","man_with_turban":"\ud83d\udc73\u200d\u2642\ufe0f","older_man":"\ud83d\udc74","older_woman":"\ud83d\udc75","baby":"\ud83d\udc76","female-construction-worker":"\ud83d\udc77\u200d\u2640\ufe0f","male-construction-worker":"\ud83d\udc77\u200d\u2642\ufe0f","construction_worker":"\ud83d\udc77\u200d\u2642\ufe0f","princess":"\ud83d\udc78","japanese_ogre":"\ud83d\udc79","japanese_goblin":"\ud83d\udc7a","ghost":"\ud83d\udc7b","angel":"\ud83d\udc7c","alien":"\ud83d\udc7d","space_invader":"\ud83d\udc7e","imp":"\ud83d\udc7f","skull":"\ud83d\udc80","woman-tipping-hand":"\ud83d\udc81\u200d\u2640\ufe0f","information_desk_person":"\ud83d\udc81\u200d\u2640\ufe0f","man-tipping-hand":"\ud83d\udc81\u200d\u2642\ufe0f","female-guard":"\ud83d\udc82\u200d\u2640\ufe0f","male-guard":"\ud83d\udc82\u200d\u2642\ufe0f","guardsman":"\ud83d\udc82\u200d\u2642\ufe0f","dancer":"\ud83d\udc83","lipstick":"\ud83d\udc84","nail_care":"\ud83d\udc85","woman-getting-massage":"\ud83d\udc86\u200d\u2640\ufe0f","massage":"\ud83d\udc86\u200d\u2640\ufe0f","man-getting-massage":"\ud83d\udc86\u200d\u2642\ufe0f","woman-getting-haircut":"\ud83d\udc87\u200d\u2640\ufe0f","haircut":"\ud83d\udc87\u200d\u2640\ufe0f","man-getting-haircut":"\ud83d\udc87\u200d\u2642\ufe0f","barber":"\ud83d\udc88","syringe":"\ud83d\udc89","pill":"\ud83d\udc8a","kiss":"\ud83d\udc8b","love_letter":"\ud83d\udc8c","ring":"\ud83d\udc8d","gem":"\ud83d\udc8e","bouquet":"\ud83d\udc90","wedding":"\ud83d\udc92","heartbeat":"\ud83d\udc93","broken_heart":"\ud83d\udc94","two_hearts":"\ud83d\udc95","sparkling_heart":"\ud83d\udc96","heartpulse":"\ud83d\udc97","cupid":"\ud83d\udc98","blue_heart":"\ud83d\udc99","green_heart":"\ud83d\udc9a","yellow_heart":"\ud83d\udc9b","purple_heart":"\ud83d\udc9c","gift_heart":"\ud83d\udc9d","revolving_hearts":"\ud83d\udc9e","heart_decoration":"\ud83d\udc9f","diamond_shape_with_a_dot_inside":"\ud83d\udca0","bulb":"\ud83d\udca1","anger":"\ud83d\udca2","bomb":"\ud83d\udca3","zzz":"\ud83d\udca4","boom":"\ud83d\udca5","collision":"\ud83d\udca5","sweat_drops":"\ud83d\udca6","droplet":"\ud83d\udca7","dash":"\ud83d\udca8","hankey":"\ud83d\udca9","poop":"\ud83d\udca9","shit":"\ud83d\udca9","muscle":"\ud83d\udcaa","dizzy":"\ud83d\udcab","speech_balloon":"\ud83d\udcac","thought_balloon":"\ud83d\udcad","white_flower":"\ud83d\udcae","moneybag":"\ud83d\udcb0","currency_exchange":"\ud83d\udcb1","heavy_dollar_sign":"\ud83d\udcb2","credit_card":"\ud83d\udcb3","yen":"\ud83d\udcb4","dollar":"\ud83d\udcb5","euro":"\ud83d\udcb6","pound":"\ud83d\udcb7","money_with_wings":"\ud83d\udcb8","chart":"\ud83d\udcb9","seat":"\ud83d\udcba","computer":"\ud83d\udcbb","briefcase":"\ud83d\udcbc","minidisc":"\ud83d\udcbd","floppy_disk":"\ud83d\udcbe","cd":"\ud83d\udcbf","dvd":"\ud83d\udcc0","file_folder":"\ud83d\udcc1","open_file_folder":"\ud83d\udcc2","page_with_curl":"\ud83d\udcc3","page_facing_up":"\ud83d\udcc4","date":"\ud83d\udcc5","calendar":"\ud83d\udcc6","card_index":"\ud83d\udcc7","chart_with_upwards_trend":"\ud83d\udcc8","chart_with_downwards_trend":"\ud83d\udcc9","bar_chart":"\ud83d\udcca","clipboard":"\ud83d\udccb","pushpin":"\ud83d\udccc","round_pushpin":"\ud83d\udccd","paperclip":"\ud83d\udcce","straight_ruler":"\ud83d\udccf","triangular_ruler":"\ud83d\udcd0","bookmark_tabs":"\ud83d\udcd1","ledger":"\ud83d\udcd2","notebook":"\ud83d\udcd3","notebook_with_decorative_cover":"\ud83d\udcd4","closed_book":"\ud83d\udcd5","book":"\ud83d\udcd6","open_book":"\ud83d\udcd6","green_book":"\ud83d\udcd7","blue_book":"\ud83d\udcd8","orange_book":"\ud83d\udcd9","books":"\ud83d\udcda","name_badge":"\ud83d\udcdb","scroll":"\ud83d\udcdc","memo":"\ud83d\udcdd","pencil":"\ud83d\udcdd","telephone_receiver":"\ud83d\udcde","pager":"\ud83d\udcdf","fax":"\ud83d\udce0","satellite_antenna":"\ud83d\udce1","loudspeaker":"\ud83d\udce2","mega":"\ud83d\udce3","outbox_tray":"\ud83d\udce4","inbox_tray":"\ud83d\udce5","package":"\ud83d\udce6","e-mail":"\ud83d\udce7","email":"\ud83d\udce7","incoming_envelope":"\ud83d\udce8","envelope_with_arrow":"\ud83d\udce9","mailbox_closed":"\ud83d\udcea","mailbox":"\ud83d\udceb","mailbox_with_mail":"\ud83d\udcec","mailbox_with_no_mail":"\ud83d\udced","postbox":"\ud83d\udcee","postal_horn":"\ud83d\udcef","newspaper":"\ud83d\udcf0","iphone":"\ud83d\udcf1","calling":"\ud83d\udcf2","vibration_mode":"\ud83d\udcf3","mobile_phone_off":"\ud83d\udcf4","no_mobile_phones":"\ud83d\udcf5","signal_strength":"\ud83d\udcf6","camera":"\ud83d\udcf7","camera_with_flash":"\ud83d\udcf8","video_camera":"\ud83d\udcf9","tv":"\ud83d\udcfa","radio":"\ud83d\udcfb","vhs":"\ud83d\udcfc","film_projector":"\ud83d\udcfd\ufe0f","prayer_beads":"\ud83d\udcff","twisted_rightwards_arrows":"\ud83d\udd00","repeat":"\ud83d\udd01","repeat_one":"\ud83d\udd02","arrows_clockwise":"\ud83d\udd03","arrows_counterclockwise":"\ud83d\udd04","low_brightness":"\ud83d\udd05","high_brightness":"\ud83d\udd06","mute":"\ud83d\udd07","speaker":"\ud83d\udd08","sound":"\ud83d\udd09","loud_sound":"\ud83d\udd0a","battery":"\ud83d\udd0b","electric_plug":"\ud83d\udd0c","mag":"\ud83d\udd0d","mag_right":"\ud83d\udd0e","lock_with_ink_pen":"\ud83d\udd0f","closed_lock_with_key":"\ud83d\udd10","key":"\ud83d\udd11","lock":"\ud83d\udd12","unlock":"\ud83d\udd13","bell":"\ud83d\udd14","no_bell":"\ud83d\udd15","bookmark":"\ud83d\udd16","link":"\ud83d\udd17","radio_button":"\ud83d\udd18","back":"\ud83d\udd19","end":"\ud83d\udd1a","on":"\ud83d\udd1b","soon":"\ud83d\udd1c","top":"\ud83d\udd1d","underage":"\ud83d\udd1e","keycap_ten":"\ud83d\udd1f","capital_abcd":"\ud83d\udd20","abcd":"\ud83d\udd21","symbols":"\ud83d\udd23","abc":"\ud83d\udd24","fire":"\ud83d\udd25","flashlight":"\ud83d\udd26","wrench":"\ud83d\udd27","hammer":"\ud83d\udd28","nut_and_bolt":"\ud83d\udd29","hocho":"\ud83d\udd2a","knife":"\ud83d\udd2a","gun":"\ud83d\udd2b","microscope":"\ud83d\udd2c","telescope":"\ud83d\udd2d","crystal_ball":"\ud83d\udd2e","six_pointed_star":"\ud83d\udd2f","beginner":"\ud83d\udd30","trident":"\ud83d\udd31","black_square_button":"\ud83d\udd32","white_square_button":"\ud83d\udd33","red_circle":"\ud83d\udd34","large_blue_circle":"\ud83d\udd35","large_orange_diamond":"\ud83d\udd36","large_blue_diamond":"\ud83d\udd37","small_orange_diamond":"\ud83d\udd38","small_blue_diamond":"\ud83d\udd39","small_red_triangle":"\ud83d\udd3a","small_red_triangle_down":"\ud83d\udd3b","arrow_up_small":"\ud83d\udd3c","arrow_down_small":"\ud83d\udd3d","om_symbol":"\ud83d\udd49\ufe0f","dove_of_peace":"\ud83d\udd4a\ufe0f","kaaba":"\ud83d\udd4b","mosque":"\ud83d\udd4c","synagogue":"\ud83d\udd4d","menorah_with_nine_branches":"\ud83d\udd4e","clock1":"\ud83d\udd50","clock2":"\ud83d\udd51","clock3":"\ud83d\udd52","clock4":"\ud83d\udd53","clock5":"\ud83d\udd54","clock6":"\ud83d\udd55","clock7":"\ud83d\udd56","clock8":"\ud83d\udd57","clock9":"\ud83d\udd58","clock10":"\ud83d\udd59","clock11":"\ud83d\udd5a","clock12":"\ud83d\udd5b","clock130":"\ud83d\udd5c","clock230":"\ud83d\udd5d","clock330":"\ud83d\udd5e","clock430":"\ud83d\udd5f","clock530":"\ud83d\udd60","clock630":"\ud83d\udd61","clock730":"\ud83d\udd62","clock830":"\ud83d\udd63","clock930":"\ud83d\udd64","clock1030":"\ud83d\udd65","clock1130":"\ud83d\udd66","clock1230":"\ud83d\udd67","candle":"\ud83d\udd6f\ufe0f","mantelpiece_clock":"\ud83d\udd70\ufe0f","hole":"\ud83d\udd73\ufe0f","man_in_business_suit_levitating":"\ud83d\udd74\ufe0f","female-detective":"\ud83d\udd75\ufe0f\u200d\u2640\ufe0f","male-detective":"\ud83d\udd75\ufe0f\u200d\u2642\ufe0f","sleuth_or_spy":"\ud83d\udd75\ufe0f\u200d\u2642\ufe0f","dark_sunglasses":"\ud83d\udd76\ufe0f","spider":"\ud83d\udd77\ufe0f","spider_web":"\ud83d\udd78\ufe0f","joystick":"\ud83d\udd79\ufe0f","man_dancing":"\ud83d\udd7a","linked_paperclips":"\ud83d\udd87\ufe0f","lower_left_ballpoint_pen":"\ud83d\udd8a\ufe0f","lower_left_fountain_pen":"\ud83d\udd8b\ufe0f","lower_left_paintbrush":"\ud83d\udd8c\ufe0f","lower_left_crayon":"\ud83d\udd8d\ufe0f","raised_hand_with_fingers_splayed":"\ud83d\udd90\ufe0f","middle_finger":"\ud83d\udd95","reversed_hand_with_middle_finger_extended":"\ud83d\udd95","spock-hand":"\ud83d\udd96","black_heart":"\ud83d\udda4","desktop_computer":"\ud83d\udda5\ufe0f","printer":"\ud83d\udda8\ufe0f","three_button_mouse":"\ud83d\uddb1\ufe0f","trackball":"\ud83d\uddb2\ufe0f","frame_with_picture":"\ud83d\uddbc\ufe0f","card_index_dividers":"\ud83d\uddc2\ufe0f","card_file_box":"\ud83d\uddc3\ufe0f","file_cabinet":"\ud83d\uddc4\ufe0f","wastebasket":"\ud83d\uddd1\ufe0f","spiral_note_pad":"\ud83d\uddd2\ufe0f","spiral_calendar_pad":"\ud83d\uddd3\ufe0f","compression":"\ud83d\udddc\ufe0f","old_key":"\ud83d\udddd\ufe0f","rolled_up_newspaper":"\ud83d\uddde\ufe0f","dagger_knife":"\ud83d\udde1\ufe0f","speaking_head_in_silhouette":"\ud83d\udde3\ufe0f","left_speech_bubble":"\ud83d\udde8\ufe0f","right_anger_bubble":"\ud83d\uddef\ufe0f","ballot_box_with_ballot":"\ud83d\uddf3\ufe0f","world_map":"\ud83d\uddfa\ufe0f","mount_fuji":"\ud83d\uddfb","tokyo_tower":"\ud83d\uddfc","statue_of_liberty":"\ud83d\uddfd","japan":"\ud83d\uddfe","moyai":"\ud83d\uddff","grinning":"\ud83d\ude00","grin":"\ud83d\ude01","joy":"\ud83d\ude02","smiley":"\ud83d\ude03","smile":"\ud83d\ude04","sweat_smile":"\ud83d\ude05","laughing":"\ud83d\ude06","satisfied":"\ud83d\ude06","innocent":"\ud83d\ude07","smiling_imp":"\ud83d\ude08","wink":"\ud83d\ude09","blush":"\ud83d\ude0a","yum":"\ud83d\ude0b","relieved":"\ud83d\ude0c","heart_eyes":"\ud83d\ude0d","sunglasses":"\ud83d\ude0e","smirk":"\ud83d\ude0f","neutral_face":"\ud83d\ude10","expressionless":"\ud83d\ude11","unamused":"\ud83d\ude12","sweat":"\ud83d\ude13","pensive":"\ud83d\ude14","confused":"\ud83d\ude15","confounded":"\ud83d\ude16","kissing":"\ud83d\ude17","kissing_heart":"\ud83d\ude18","kissing_smiling_eyes":"\ud83d\ude19","kissing_closed_eyes":"\ud83d\ude1a","stuck_out_tongue":"\ud83d\ude1b","stuck_out_tongue_winking_eye":"\ud83d\ude1c","stuck_out_tongue_closed_eyes":"\ud83d\ude1d","disappointed":"\ud83d\ude1e","worried":"\ud83d\ude1f","angry":"\ud83d\ude20","rage":"\ud83d\ude21","cry":"\ud83d\ude22","persevere":"\ud83d\ude23","triumph":"\ud83d\ude24","disappointed_relieved":"\ud83d\ude25","frowning":"\ud83d\ude26","anguished":"\ud83d\ude27","fearful":"\ud83d\ude28","weary":"\ud83d\ude29","sleepy":"\ud83d\ude2a","tired_face":"\ud83d\ude2b","grimacing":"\ud83d\ude2c","sob":"\ud83d\ude2d","open_mouth":"\ud83d\ude2e","hushed":"\ud83d\ude2f","cold_sweat":"\ud83d\ude30","scream":"\ud83d\ude31","astonished":"\ud83d\ude32","flushed":"\ud83d\ude33","sleeping":"\ud83d\ude34","dizzy_face":"\ud83d\ude35","no_mouth":"\ud83d\ude36","mask":"\ud83d\ude37","smile_cat":"\ud83d\ude38","joy_cat":"\ud83d\ude39","smiley_cat":"\ud83d\ude3a","heart_eyes_cat":"\ud83d\ude3b","smirk_cat":"\ud83d\ude3c","kissing_cat":"\ud83d\ude3d","pouting_cat":"\ud83d\ude3e","crying_cat_face":"\ud83d\ude3f","scream_cat":"\ud83d\ude40","slightly_frowning_face":"\ud83d\ude41","slightly_smiling_face":"\ud83d\ude42","upside_down_face":"\ud83d\ude43","face_with_rolling_eyes":"\ud83d\ude44","woman-gesturing-no":"\ud83d\ude45\u200d\u2640\ufe0f","no_good":"\ud83d\ude45\u200d\u2640\ufe0f","man-gesturing-no":"\ud83d\ude45\u200d\u2642\ufe0f","woman-gesturing-ok":"\ud83d\ude46\u200d\u2640\ufe0f","ok_woman":"\ud83d\ude46\u200d\u2640\ufe0f","man-gesturing-ok":"\ud83d\ude46\u200d\u2642\ufe0f","woman-bowing":"\ud83d\ude47\u200d\u2640\ufe0f","man-bowing":"\ud83d\ude47\u200d\u2642\ufe0f","bow":"\ud83d\ude47\u200d\u2642\ufe0f","see_no_evil":"\ud83d\ude48","hear_no_evil":"\ud83d\ude49","speak_no_evil":"\ud83d\ude4a","woman-raising-hand":"\ud83d\ude4b\u200d\u2640\ufe0f","raising_hand":"\ud83d\ude4b\u200d\u2640\ufe0f","man-raising-hand":"\ud83d\ude4b\u200d\u2642\ufe0f","raised_hands":"\ud83d\ude4c","woman-frowning":"\ud83d\ude4d\u200d\u2640\ufe0f","person_frowning":"\ud83d\ude4d\u200d\u2640\ufe0f","man-frowning":"\ud83d\ude4d\u200d\u2642\ufe0f","woman-pouting":"\ud83d\ude4e\u200d\u2640\ufe0f","person_with_pouting_face":"\ud83d\ude4e\u200d\u2640\ufe0f","man-pouting":"\ud83d\ude4e\u200d\u2642\ufe0f","pray":"\ud83d\ude4f","rocket":"\ud83d\ude80","helicopter":"\ud83d\ude81","steam_locomotive":"\ud83d\ude82","railway_car":"\ud83d\ude83","bullettrain_side":"\ud83d\ude84","bullettrain_front":"\ud83d\ude85","train2":"\ud83d\ude86","metro":"\ud83d\ude87","light_rail":"\ud83d\ude88","station":"\ud83d\ude89","tram":"\ud83d\ude8a","train":"\ud83d\ude8b","bus":"\ud83d\ude8c","oncoming_bus":"\ud83d\ude8d","trolleybus":"\ud83d\ude8e","busstop":"\ud83d\ude8f","minibus":"\ud83d\ude90","ambulance":"\ud83d\ude91","fire_engine":"\ud83d\ude92","police_car":"\ud83d\ude93","oncoming_police_car":"\ud83d\ude94","taxi":"\ud83d\ude95","oncoming_taxi":"\ud83d\ude96","car":"\ud83d\ude97","red_car":"\ud83d\ude97","oncoming_automobile":"\ud83d\ude98","blue_car":"\ud83d\ude99","truck":"\ud83d\ude9a","articulated_lorry":"\ud83d\ude9b","tractor":"\ud83d\ude9c","monorail":"\ud83d\ude9d","mountain_railway":"\ud83d\ude9e","suspension_railway":"\ud83d\ude9f","mountain_cableway":"\ud83d\udea0","aerial_tramway":"\ud83d\udea1","ship":"\ud83d\udea2","woman-rowing-boat":"\ud83d\udea3\u200d\u2640\ufe0f","man-rowing-boat":"\ud83d\udea3\u200d\u2642\ufe0f","rowboat":"\ud83d\udea3\u200d\u2642\ufe0f","speedboat":"\ud83d\udea4","traffic_light":"\ud83d\udea5","vertical_traffic_light":"\ud83d\udea6","construction":"\ud83d\udea7","rotating_light":"\ud83d\udea8","triangular_flag_on_post":"\ud83d\udea9","door":"\ud83d\udeaa","no_entry_sign":"\ud83d\udeab","smoking":"\ud83d\udeac","no_smoking":"\ud83d\udead","put_litter_in_its_place":"\ud83d\udeae","do_not_litter":"\ud83d\udeaf","potable_water":"\ud83d\udeb0","non-potable_water":"\ud83d\udeb1","bike":"\ud83d\udeb2","no_bicycles":"\ud83d\udeb3","woman-biking":"\ud83d\udeb4\u200d\u2640\ufe0f","man-biking":"\ud83d\udeb4\u200d\u2642\ufe0f","bicyclist":"\ud83d\udeb4\u200d\u2642\ufe0f","woman-mountain-biking":"\ud83d\udeb5\u200d\u2640\ufe0f","man-mountain-biking":"\ud83d\udeb5\u200d\u2642\ufe0f","mountain_bicyclist":"\ud83d\udeb5\u200d\u2642\ufe0f","woman-walking":"\ud83d\udeb6\u200d\u2640\ufe0f","man-walking":"\ud83d\udeb6\u200d\u2642\ufe0f","walking":"\ud83d\udeb6\u200d\u2642\ufe0f","no_pedestrians":"\ud83d\udeb7","children_crossing":"\ud83d\udeb8","mens":"\ud83d\udeb9","womens":"\ud83d\udeba","restroom":"\ud83d\udebb","baby_symbol":"\ud83d\udebc","toilet":"\ud83d\udebd","wc":"\ud83d\udebe","shower":"\ud83d\udebf","bath":"\ud83d\udec0","bathtub":"\ud83d\udec1","passport_control":"\ud83d\udec2","customs":"\ud83d\udec3","baggage_claim":"\ud83d\udec4","left_luggage":"\ud83d\udec5","couch_and_lamp":"\ud83d\udecb\ufe0f","sleeping_accommodation":"\ud83d\udecc","shopping_bags":"\ud83d\udecd\ufe0f","bellhop_bell":"\ud83d\udece\ufe0f","bed":"\ud83d\udecf\ufe0f","place_of_worship":"\ud83d\uded0","octagonal_sign":"\ud83d\uded1","shopping_trolley":"\ud83d\uded2","hammer_and_wrench":"\ud83d\udee0\ufe0f","shield":"\ud83d\udee1\ufe0f","oil_drum":"\ud83d\udee2\ufe0f","motorway":"\ud83d\udee3\ufe0f","railway_track":"\ud83d\udee4\ufe0f","motor_boat":"\ud83d\udee5\ufe0f","small_airplane":"\ud83d\udee9\ufe0f","airplane_departure":"\ud83d\udeeb","airplane_arriving":"\ud83d\udeec","satellite":"\ud83d\udef0\ufe0f","passenger_ship":"\ud83d\udef3\ufe0f","scooter":"\ud83d\udef4","motor_scooter":"\ud83d\udef5","canoe":"\ud83d\udef6","sled":"\ud83d\udef7","flying_saucer":"\ud83d\udef8","zipper_mouth_face":"\ud83e\udd10","money_mouth_face":"\ud83e\udd11","face_with_thermometer":"\ud83e\udd12","nerd_face":"\ud83e\udd13","thinking_face":"\ud83e\udd14","face_with_head_bandage":"\ud83e\udd15","robot_face":"\ud83e\udd16","hugging_face":"\ud83e\udd17","the_horns":"\ud83e\udd18","sign_of_the_horns":"\ud83e\udd18","call_me_hand":"\ud83e\udd19","raised_back_of_hand":"\ud83e\udd1a","left-facing_fist":"\ud83e\udd1b","right-facing_fist":"\ud83e\udd1c","handshake":"\ud83e\udd1d","crossed_fingers":"\ud83e\udd1e","hand_with_index_and_middle_fingers_crossed":"\ud83e\udd1e","i_love_you_hand_sign":"\ud83e\udd1f","face_with_cowboy_hat":"\ud83e\udd20","clown_face":"\ud83e\udd21","nauseated_face":"\ud83e\udd22","rolling_on_the_floor_laughing":"\ud83e\udd23","drooling_face":"\ud83e\udd24","lying_face":"\ud83e\udd25","woman-facepalming":"\ud83e\udd26\u200d\u2640\ufe0f","man-facepalming":"\ud83e\udd26\u200d\u2642\ufe0f","face_palm":"\ud83e\udd26","sneezing_face":"\ud83e\udd27","face_with_raised_eyebrow":"\ud83e\udd28","face_with_one_eyebrow_raised":"\ud83e\udd28","star-struck":"\ud83e\udd29","grinning_face_with_star_eyes":"\ud83e\udd29","zany_face":"\ud83e\udd2a","grinning_face_with_one_large_and_one_small_eye":"\ud83e\udd2a","shushing_face":"\ud83e\udd2b","face_with_finger_covering_closed_lips":"\ud83e\udd2b","face_with_symbols_on_mouth":"\ud83e\udd2c","serious_face_with_symbols_covering_mouth":"\ud83e\udd2c","face_with_hand_over_mouth":"\ud83e\udd2d","smiling_face_with_smiling_eyes_and_hand_covering_mouth":"\ud83e\udd2d","face_vomiting":"\ud83e\udd2e","face_with_open_mouth_vomiting":"\ud83e\udd2e","exploding_head":"\ud83e\udd2f","shocked_face_with_exploding_head":"\ud83e\udd2f","pregnant_woman":"\ud83e\udd30","breast-feeding":"\ud83e\udd31","palms_up_together":"\ud83e\udd32","selfie":"\ud83e\udd33","prince":"\ud83e\udd34","man_in_tuxedo":"\ud83e\udd35","mrs_claus":"\ud83e\udd36","mother_christmas":"\ud83e\udd36","woman-shrugging":"\ud83e\udd37\u200d\u2640\ufe0f","man-shrugging":"\ud83e\udd37\u200d\u2642\ufe0f","shrug":"\ud83e\udd37","woman-cartwheeling":"\ud83e\udd38\u200d\u2640\ufe0f","man-cartwheeling":"\ud83e\udd38\u200d\u2642\ufe0f","person_doing_cartwheel":"\ud83e\udd38","woman-juggling":"\ud83e\udd39\u200d\u2640\ufe0f","man-juggling":"\ud83e\udd39\u200d\u2642\ufe0f","juggling":"\ud83e\udd39","fencer":"\ud83e\udd3a","woman-wrestling":"\ud83e\udd3c\u200d\u2640\ufe0f","man-wrestling":"\ud83e\udd3c\u200d\u2642\ufe0f","wrestlers":"\ud83e\udd3c","woman-playing-water-polo":"\ud83e\udd3d\u200d\u2640\ufe0f","man-playing-water-polo":"\ud83e\udd3d\u200d\u2642\ufe0f","water_polo":"\ud83e\udd3d","woman-playing-handball":"\ud83e\udd3e\u200d\u2640\ufe0f","man-playing-handball":"\ud83e\udd3e\u200d\u2642\ufe0f","handball":"\ud83e\udd3e","wilted_flower":"\ud83e\udd40","drum_with_drumsticks":"\ud83e\udd41","clinking_glasses":"\ud83e\udd42","tumbler_glass":"\ud83e\udd43","spoon":"\ud83e\udd44","goal_net":"\ud83e\udd45","first_place_medal":"\ud83e\udd47","second_place_medal":"\ud83e\udd48","third_place_medal":"\ud83e\udd49","boxing_glove":"\ud83e\udd4a","martial_arts_uniform":"\ud83e\udd4b","curling_stone":"\ud83e\udd4c","croissant":"\ud83e\udd50","avocado":"\ud83e\udd51","cucumber":"\ud83e\udd52","bacon":"\ud83e\udd53","potato":"\ud83e\udd54","carrot":"\ud83e\udd55","baguette_bread":"\ud83e\udd56","green_salad":"\ud83e\udd57","shallow_pan_of_food":"\ud83e\udd58","stuffed_flatbread":"\ud83e\udd59","egg":"\ud83e\udd5a","glass_of_milk":"\ud83e\udd5b","peanuts":"\ud83e\udd5c","kiwifruit":"\ud83e\udd5d","pancakes":"\ud83e\udd5e","dumpling":"\ud83e\udd5f","fortune_cookie":"\ud83e\udd60","takeout_box":"\ud83e\udd61","chopsticks":"\ud83e\udd62","bowl_with_spoon":"\ud83e\udd63","cup_with_straw":"\ud83e\udd64","coconut":"\ud83e\udd65","broccoli":"\ud83e\udd66","pie":"\ud83e\udd67","pretzel":"\ud83e\udd68","cut_of_meat":"\ud83e\udd69","sandwich":"\ud83e\udd6a","canned_food":"\ud83e\udd6b","crab":"\ud83e\udd80","lion_face":"\ud83e\udd81","scorpion":"\ud83e\udd82","turkey":"\ud83e\udd83","unicorn_face":"\ud83e\udd84","eagle":"\ud83e\udd85","duck":"\ud83e\udd86","bat":"\ud83e\udd87","shark":"\ud83e\udd88","owl":"\ud83e\udd89","fox_face":"\ud83e\udd8a","butterfly":"\ud83e\udd8b","deer":"\ud83e\udd8c","gorilla":"\ud83e\udd8d","lizard":"\ud83e\udd8e","rhinoceros":"\ud83e\udd8f","shrimp":"\ud83e\udd90","squid":"\ud83e\udd91","giraffe_face":"\ud83e\udd92","zebra_face":"\ud83e\udd93","hedgehog":"\ud83e\udd94","sauropod":"\ud83e\udd95","t-rex":"\ud83e\udd96","cricket":"\ud83e\udd97","cheese_wedge":"\ud83e\uddc0","face_with_monocle":"\ud83e\uddd0","adult":"\ud83e\uddd1","child":"\ud83e\uddd2","older_adult":"\ud83e\uddd3","bearded_person":"\ud83e\uddd4","person_with_headscarf":"\ud83e\uddd5","woman_in_steamy_room":"\ud83e\uddd6\u200d\u2640\ufe0f","man_in_steamy_room":"\ud83e\uddd6\u200d\u2642\ufe0f","person_in_steamy_room":"\ud83e\uddd6\u200d\u2642\ufe0f","woman_climbing":"\ud83e\uddd7\u200d\u2640\ufe0f","person_climbing":"\ud83e\uddd7\u200d\u2640\ufe0f","man_climbing":"\ud83e\uddd7\u200d\u2642\ufe0f","woman_in_lotus_position":"\ud83e\uddd8\u200d\u2640\ufe0f","person_in_lotus_position":"\ud83e\uddd8\u200d\u2640\ufe0f","man_in_lotus_position":"\ud83e\uddd8\u200d\u2642\ufe0f","female_mage":"\ud83e\uddd9\u200d\u2640\ufe0f","mage":"\ud83e\uddd9\u200d\u2640\ufe0f","male_mage":"\ud83e\uddd9\u200d\u2642\ufe0f","female_fairy":"\ud83e\uddda\u200d\u2640\ufe0f","fairy":"\ud83e\uddda\u200d\u2640\ufe0f","male_fairy":"\ud83e\uddda\u200d\u2642\ufe0f","female_vampire":"\ud83e\udddb\u200d\u2640\ufe0f","vampire":"\ud83e\udddb\u200d\u2640\ufe0f","male_vampire":"\ud83e\udddb\u200d\u2642\ufe0f","mermaid":"\ud83e\udddc\u200d\u2640\ufe0f","merman":"\ud83e\udddc\u200d\u2642\ufe0f","merperson":"\ud83e\udddc\u200d\u2642\ufe0f","female_elf":"\ud83e\udddd\u200d\u2640\ufe0f","male_elf":"\ud83e\udddd\u200d\u2642\ufe0f","elf":"\ud83e\udddd\u200d\u2642\ufe0f","female_genie":"\ud83e\uddde\u200d\u2640\ufe0f","male_genie":"\ud83e\uddde\u200d\u2642\ufe0f","genie":"\ud83e\uddde\u200d\u2642\ufe0f","female_zombie":"\ud83e\udddf\u200d\u2640\ufe0f","male_zombie":"\ud83e\udddf\u200d\u2642\ufe0f","zombie":"\ud83e\udddf\u200d\u2642\ufe0f","brain":"\ud83e\udde0","orange_heart":"\ud83e\udde1","billed_cap":"\ud83e\udde2","scarf":"\ud83e\udde3","gloves":"\ud83e\udde4","coat":"\ud83e\udde5","socks":"\ud83e\udde6","bangbang":"\u203c\ufe0f","interrobang":"\u2049\ufe0f","tm":"\u2122\ufe0f","information_source":"\u2139\ufe0f","left_right_arrow":"\u2194\ufe0f","arrow_up_down":"\u2195\ufe0f","arrow_upper_left":"\u2196\ufe0f","arrow_upper_right":"\u2197\ufe0f","arrow_lower_right":"\u2198\ufe0f","arrow_lower_left":"\u2199\ufe0f","leftwards_arrow_with_hook":"\u21a9\ufe0f","arrow_right_hook":"\u21aa\ufe0f","watch":"\u231a","hourglass":"\u231b","keyboard":"\u2328\ufe0f","eject":"\u23cf\ufe0f","fast_forward":"\u23e9","rewind":"\u23ea","arrow_double_up":"\u23eb","arrow_double_down":"\u23ec","black_right_pointing_double_triangle_with_vertical_bar":"\u23ed\ufe0f","black_left_pointing_double_triangle_with_vertical_bar":"\u23ee\ufe0f","black_right_pointing_triangle_with_double_vertical_bar":"\u23ef\ufe0f","alarm_clock":"\u23f0","stopwatch":"\u23f1\ufe0f","timer_clock":"\u23f2\ufe0f","hourglass_flowing_sand":"\u23f3","double_vertical_bar":"\u23f8\ufe0f","black_square_for_stop":"\u23f9\ufe0f","black_circle_for_record":"\u23fa\ufe0f","m":"\u24c2\ufe0f","black_small_square":"\u25aa\ufe0f","white_small_square":"\u25ab\ufe0f","arrow_forward":"\u25b6\ufe0f","arrow_backward":"\u25c0\ufe0f","white_medium_square":"\u25fb\ufe0f","black_medium_square":"\u25fc\ufe0f","white_medium_small_square":"\u25fd","black_medium_small_square":"\u25fe","sunny":"\u2600\ufe0f","cloud":"\u2601\ufe0f","umbrella":"\u2602\ufe0f","snowman":"\u2603\ufe0f","comet":"\u2604\ufe0f","phone":"\u260e\ufe0f","telephone":"\u260e\ufe0f","ballot_box_with_check":"\u2611\ufe0f","shamrock":"\u2618\ufe0f","point_up":"\u261d\ufe0f","skull_and_crossbones":"\u2620\ufe0f","radioactive_sign":"\u2622\ufe0f","biohazard_sign":"\u2623\ufe0f","orthodox_cross":"\u2626\ufe0f","star_and_crescent":"\u262a\ufe0f","peace_symbol":"\u262e\ufe0f","yin_yang":"\u262f\ufe0f","wheel_of_dharma":"\u2638\ufe0f","white_frowning_face":"\u2639\ufe0f","relaxed":"\u263a\ufe0f","female_sign":"\u2640\ufe0f","male_sign":"\u2642\ufe0f","gemini":"\u264a","cancer":"\u264b","leo":"\u264c","virgo":"\u264d","libra":"\u264e","scorpius":"\u264f","spades":"\u2660\ufe0f","clubs":"\u2663\ufe0f","hearts":"\u2665\ufe0f","diamonds":"\u2666\ufe0f","hotsprings":"\u2668\ufe0f","recycle":"\u267b\ufe0f","wheelchair":"\u267f","hammer_and_pick":"\u2692\ufe0f","crossed_swords":"\u2694\ufe0f","medical_symbol":"\u2695\ufe0f","staff_of_aesculapius":"\u2695\ufe0f","scales":"\u2696\ufe0f","alembic":"\u2697\ufe0f","gear":"\u2699\ufe0f","atom_symbol":"\u269b\ufe0f","fleur_de_lis":"\u269c\ufe0f","warning":"\u26a0\ufe0f","zap":"\u26a1","white_circle":"\u26aa","black_circle":"\u26ab","coffin":"\u26b0\ufe0f","funeral_urn":"\u26b1\ufe0f","soccer":"\u26bd","baseball":"\u26be","snowman_without_snow":"\u26c4","partly_sunny":"\u26c5","thunder_cloud_and_rain":"\u26c8\ufe0f","ophiuchus":"\u26ce","pick":"\u26cf\ufe0f","helmet_with_white_cross":"\u26d1\ufe0f","chains":"\u26d3\ufe0f","no_entry":"\u26d4","shinto_shrine":"\u26e9\ufe0f","church":"\u26ea","mountain":"\u26f0\ufe0f","umbrella_on_ground":"\u26f1\ufe0f","fountain":"\u26f2","golf":"\u26f3","ferry":"\u26f4\ufe0f","boat":"\u26f5","sailboat":"\u26f5","skier":"\u26f7\ufe0f","ice_skate":"\u26f8\ufe0f","woman-bouncing-ball":"\u26f9\ufe0f\u200d\u2640\ufe0f","man-bouncing-ball":"\u26f9\ufe0f\u200d\u2642\ufe0f","person_with_ball":"\u26f9\ufe0f\u200d\u2642\ufe0f","tent":"\u26fa","fuelpump":"\u26fd","scissors":"\u2702\ufe0f","airplane":"\u2708\ufe0f","envelope":"\u2709\ufe0f","fist":"\u270a","hand":"\u270b","raised_hand":"\u270b","v":"\u270c\ufe0f","writing_hand":"\u270d\ufe0f","pencil2":"\u270f\ufe0f","black_nib":"\u2712\ufe0f","heavy_check_mark":"\u2714\ufe0f","heavy_multiplication_x":"\u2716\ufe0f","latin_cross":"\u271d\ufe0f","star_of_david":"\u2721\ufe0f","eight_spoked_asterisk":"\u2733\ufe0f","eight_pointed_black_star":"\u2734\ufe0f","snowflake":"\u2744\ufe0f","sparkle":"\u2747\ufe0f","x":"\u274c","negative_squared_cross_mark":"\u274e","heavy_heart_exclamation_mark_ornament":"\u2763\ufe0f","heart":"\u2764\ufe0f","arrow_right":"\u27a1\ufe0f","curly_loop":"\u27b0","loop":"\u27bf","arrow_heading_up":"\u2934\ufe0f","arrow_heading_down":"\u2935\ufe0f","arrow_left":"\u2b05\ufe0f","arrow_up":"\u2b06\ufe0f","arrow_down":"\u2b07\ufe0f","black_large_square":"\u2b1b","white_large_square":"\u2b1c","star":"\u2b50","o":"\u2b55","wavy_dash":"\u3030\ufe0f","part_alternation_mark":"\u303d\ufe0f","congratulations":"\u3297\ufe0f","secret":"\u3299\ufe0f"}')},BSTl:function(o,a,l){"use strict";function g(e){return"function"==typeof e}l.r(a);var m=!1,k={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else m&&console.log("RxJS: Back to a better error behavior. Thank you. <3");m=e},get useDeprecatedSynchronousErrorHandling(){return m}};function b(e){setTimeout((function(){throw e}),0)}var _={closed:!0,next:function(e){},error:function(e){if(k.useDeprecatedSynchronousErrorHandling)throw e;b(e)},complete:function(){}},w=Array.isArray||function(e){return e&&"number"==typeof e.length};function C(e){return null!==e&&"object"==typeof e}var x,S=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),A=((x=function(){function e(t){s(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return u(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(g(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(c){t=c instanceof S?E(c.errors):[c]}}if(w(o))for(var s=-1,l=o.length;++s<l;){var u=o[s];if(C(u))try{u.unsubscribe()}catch(c){t=t||[],c instanceof S?t=t.concat(E(c.errors)):t.push(c)}}if(t)throw new S(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new x),x);function E(e){return e.reduce((function(e,t){return e.concat(t instanceof S?t.errors:t)}),[])}var T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),P=function(e){c(r,e);var n=d(r);function r(e,t,i){var o;switch(s(this,r),(o=n.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=_;break;case 1:if(!e){o.destination=_;break}if("object"==typeof e){e instanceof r?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(f(o))):(o.syncErrorThrowable=!0,o.destination=new R(f(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new R(f(o),e,t,i)}return o}return u(r,[{key:T,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,t(y(r.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,n){var i=new r(e,t,n);return i.syncErrorThrowable=!1,i}}]),r}(A),R=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a,l;s(this,n),(a=t.call(this))._parentSubscriber=e;var u=f(a);return g(r)?l=r:r&&(l=r.next,i=r.error,o=r.complete,r!==_&&(g((u=Object.create(r)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(f(a)))),a._context=u,a._next=l,a._error=i,a._complete=o,a}return u(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;k.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=k.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):b(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;b(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};k.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),k.useDeprecatedSynchronousErrorHandling)throw n;b(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!k.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return k.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(b(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(P),I="function"==typeof Symbol&&Symbol.observable||"@@observable";function O(e){return e}var M,N=((M=function(){function e(t){s(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return u(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof P)return e;if(e[T])return e[T]()}return e||t||n?new P(e,t,n):new P(_)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||k.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),k.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){k.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,i=t.isStopped;if(n||i)return!1;e=r&&r instanceof P?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=L(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}}),r,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:I,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:(0===(r=t).length?O:1===r.length?r[0]:function(e){return r.reduce((function(e,t){return t(e)}),e)})(this);var r}},{key:"toPromise",value:function(e){var t=this;return new(e=L(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))}}]),e}()).create=function(e){return new M(e)},M);function L(e){if(e||(e=k.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var D,j=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),F=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this)).subject=e,i.subscriber=r,i.closed=!1,i}return u(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(A),V=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).destination=e,r}return n}(P),z=((D=function(e){c(r,e);var n=d(r);function r(){var e;return s(this,r),(e=n.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return u(r,[{key:T,value:function(){return new V(this)}},{key:"lift",value:function(e){var t=new B(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new j;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)}},{key:"error",value:function(e){if(this.closed)throw new j;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new j;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new j;return t(y(r.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new j;return this.hasError?(e.error(this.thrownError),A.EMPTY):this.isStopped?(e.complete(),A.EMPTY):(this.observers.push(e),new F(this,e))}},{key:"asObservable",value:function(){var e=new N;return e.source=this,e}}]),r}(N)).create=function(e,t){return new B(e,t)},D),B=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this)).destination=e,i.source=r,i}return u(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):A.EMPTY}}]),n}(z);function H(e){return e&&"function"==typeof e.schedule}function U(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new q(e,t))}}var q=function(){function e(t,n){s(this,e),this.project=t,this.thisArg=n}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new W(e,this.project,this.thisArg))}}]),e}(),W=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||f(o),o}return u(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(P),$=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}};var K="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",G=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function J(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Q=function(e){if(e&&"function"==typeof e[I])return r=e,function(e){var t=r[I]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(G(e))return $(e);if(J(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,b),e};if(e&&"function"==typeof e[K])return t=e,function(e){for(var n=t[K]();;){var r=void 0;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,r,i=C(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(i," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))};function Z(e,t){return new N((function(n){var r=new A,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function Y(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[I]}(e))return function(e,t){return new N((function(n){var r=new A;return r.add(t.schedule((function(){var i=e[I]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(J(e))return function(e,t){return new N((function(n){var r=new A;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(G(e))return Z(e,t);if(function(e){return e&&"function"==typeof e[K]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new N((function(n){var r,i=new A;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[K](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof N?e:new N(Q(e))}var X=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this)).parent=e,r}return u(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(P),ee=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(P);function te(e,t){if(!t.closed)return e instanceof N?e.subscribe(t):Q(e)(t)}function ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(ne((function(n,r){return Y(e(n,r)).pipe(U((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new re(e,n))})}var re=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;s(this,e),this.project=t,this.concurrent=n}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new ie(e,this.project,this.concurrent))}}]),e}(),ie=function(e){c(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return s(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return u(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new X(this),n=this.destination;n.add(t);var r=te(e,t);r!==t&&n.add(r)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ee);function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ne(O,e)}function ae(e,t){return t?Z(e,t):new N($(e))}function se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Number.POSITIVE_INFINITY,i=null,o=t[t.length-1];return H(o)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof N?t[0]:oe(r)(ae(t,i))}function le(){return function(e){return e.lift(new ce(e))}}var ue,ce=function(){function e(t){s(this,e),this.connectable=t}return u(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new de(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),de=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).connectable=r,i}return u(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(P),he={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(ue=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return u(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new A).add(this.source.subscribe(new fe(this.getSubject(),this))),e.closed&&(this._connection=null,e=A.EMPTY)),e}},{key:"refCount",value:function(){return le()(this)}}]),n}(N).prototype)._subscribe},_isComplete:{value:ue._isComplete,writable:!0},getSubject:{value:ue.getSubject},connect:{value:ue.connect},refCount:{value:ue.refCount}},fe=function(e){c(r,e);var n=d(r);function r(e,t){var i;return s(this,r),(i=n.call(this,e)).connectable=t,i}return u(r,[{key:"_error",value:function(e){this._unsubscribe(),t(y(r.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),t(y(r.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),r}(V);function ve(){return new z}function pe(e){return{toString:e}.toString()}function ge(e,t,n){return pe((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof i)return r.apply(this,t),this;var o=p(i,t);return a.annotation=o,a;function a(e,t,n){for(var r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}))}var me=ge("Inject",(function(e){return{token:e}})),ye=ge("Optional"),ke=ge("Self"),be=ge("SkipSelf"),_e=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function we(e){for(var t in e)if(e[t]===we)return t;throw Error("Could not find renamed property on target object.")}function Ce(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function xe(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function Se(e){return Ae(e,e[Te])||Ae(e,e[Ie])}function Ae(e,t){return t&&t.token===e?t:null}function Ee(e){return e&&(e.hasOwnProperty(Pe)||e.hasOwnProperty(Oe))?e[Pe]:null}var Te=we({"\u0275prov":we}),Pe=we({"\u0275inj":we}),Re=we({"\u0275provFallback":we}),Ie=we({ngInjectableDef:we}),Oe=we({ngInjectorDef:we});function Me(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ne(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Le=we({__forward_ref__:we});function De(e){return e.__forward_ref__=De,e.toString=function(){return Me(this())},e}function je(e){return Fe(e)?e():e}function Fe(e){return"function"==typeof e&&e.hasOwnProperty(Le)&&e.__forward_ref__===De}var Ve,ze="undefined"!=typeof globalThis&&globalThis,Be="undefined"!=typeof window&&window,He="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ue="undefined"!=typeof global&&global,qe=ze||Ue||Be||He,We=we({"\u0275cmp":we}),$e=we({"\u0275dir":we}),Ke=we({"\u0275pipe":we}),Ge=we({"\u0275mod":we}),Je=we({"\u0275loc":we}),Qe=we({"\u0275fac":we}),Ze=we({__NG_ELEMENT_ID__:we}),Ye=function(){function e(t,n){s(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ce({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return u(e,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),e}(),Xe=new Ye("INJECTOR",-1),et={},tt=/\n/gm,nt=we({provide:String,useValue:we}),rt=void 0;function it(e){var t=rt;return rt=e,t}function ot(e){var t=Ve;return Ve=e,t}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_e.Default;if(void 0===rt)throw new Error("inject() must be called from an injection context");return null===rt?lt(e,void 0,t):rt.get(e,t&_e.Optional?null:void 0,t)}function st(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_e.Default;return(Ve||at)(je(e),t)}function lt(e,t,n){var r=Se(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&_e.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(Me(e),"]"))}function ut(e){for(var t=[],n=0;n<e.length;n++){var r=je(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=_e.Default,a=0;a<r.length;a++){var s=r[a];s instanceof ye||"Optional"===s.ngMetadataName||s===ye?o|=_e.Optional:s instanceof be||"SkipSelf"===s.ngMetadataName||s===be?o|=_e.SkipSelf:s instanceof ke||"Self"===s.ngMetadataName||s===ke?o|=_e.Self:i=s instanceof me||s===me?s.token:s}t.push(st(i,o))}else t.push(st(r))}return t}var ct=function(){function e(){s(this,e)}return u(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:et;if(t===et){var n=new Error("NullInjectorError: No provider for ".concat(Me(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),dt=function e(){s(this,e)},ht=function e(){s(this,e)};function ft(e,t){e.forEach((function(e){return Array.isArray(e)?ft(e,t):t(e)}))}function vt(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function pt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function gt(e,t){var n=mt(e,t);if(n>=0)return e[1|n]}function mt(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var yt,kt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),bt=((yt={})[yt.Emulated=0]="Emulated",yt[yt.Native=1]="Native",yt[yt.None=2]="None",yt[yt.ShadowDom=3]="ShadowDom",yt),_t={},wt=[],Ct=0;function xt(e){return pe((function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===kt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||wt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||bt.Emulated,id:"c",styles:e.styles||wt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=Ct++,n.inputs=Pt(e.inputs,t),n.outputs=Pt(e.outputs),i&&i.forEach((function(e){return e(n)})),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(St)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(At)}:null,n}))}function St(e){return Ot(e)||function(e){return e[$e]||null}(e)}function At(e){return function(e){return e[Ke]||null}(e)}var Et={};function Tt(e){var t={type:e.type,bootstrap:e.bootstrap||wt,declarations:e.declarations||wt,imports:e.imports||wt,exports:e.exports||wt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&pe((function(){Et[e.id]=e.type})),t}function Pt(e,t){if(null==e)return _t;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var Rt=xt;function It(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ot(e){return e[We]||null}function Mt(e,t){return e.hasOwnProperty(Qe)?e[Qe]:null}function Nt(e,t){var n=e[Ge]||null;if(!n&&!0===t)throw new Error("Type ".concat(Me(e)," does not have '\u0275mod' property."));return n}function Lt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dt(e){return Array.isArray(e)&&!0===e[1]}function jt(e){return 0!=(8&e.flags)}function Ft(e){return 2==(2&e.flags)}function Vt(e){return 1==(1&e.flags)}function zt(e){return null!==e.template}function Bt(e){return 0!=(512&e[2])}var Ht=function(){function e(t,n,r){s(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return u(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ut(){return qt}function qt(e){return e.type.prototype.ngOnChanges&&(e.setInput=$t),Wt}function Wt(){var e=Kt(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===_t)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function $t(e,t,n,r){var i=Kt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:_t,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],l=a[s];o[s]=new Ht(l&&l.currentValue,t,a===_t),e[r]=t}function Kt(e){return e.__ngSimpleChanges__||null}Ut.ngInherit=!0;var Gt=void 0;function Jt(e){return!!e.listen}var Qt={createRenderer:function(e,t){return void 0!==Gt?Gt:"undefined"!=typeof document?document:void 0}};function Zt(e){for(;Array.isArray(e);)e=e[0];return e}function Yt(e,t){return Zt(t[e+20])}function Xt(e,t){return Zt(t[e.index])}function en(e,t){return e.data[t+20]}function tn(e,t){var n=t[e];return Lt(n)?n:n[0]}function nn(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function rn(e){return 4==(4&e[2])}function on(e){return 128==(128&e[2])}function an(e,t){return null===e||null==t?null:e[t]}function sn(e){e[18]=0}function ln(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var un={lFrame:Rn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function cn(){return un.bindingsEnabled}function dn(){return un.lFrame.lView}function hn(){return un.lFrame.tView}function fn(e){un.lFrame.contextLView=e}function vn(){return un.lFrame.previousOrParentTNode}function pn(e,t){un.lFrame.previousOrParentTNode=e,un.lFrame.isParent=t}function gn(){return un.lFrame.isParent}function mn(){un.lFrame.isParent=!1}function yn(){return un.checkNoChangesMode}function kn(e){un.checkNoChangesMode=e}function bn(){var e=un.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _n(){return un.lFrame.bindingIndex++}function wn(e,t){var n=un.lFrame;n.bindingIndex=n.bindingRootIndex=e,Cn(t)}function Cn(e){un.lFrame.currentDirectiveIndex=e}function xn(e){var t=un.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Sn(){return un.lFrame.currentQueryIndex}function An(e){un.lFrame.currentQueryIndex=e}function En(e,t){var n=Pn();un.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Tn(e,t){var n=Pn(),r=e[1];un.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function Pn(){var e=un.lFrame,t=null===e?null:e.child;return null===t?Rn(e):t}function Rn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function In(){var e=un.lFrame;return un.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var On=In;function Mn(){var e=In();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Nn(){return un.lFrame.selectedIndex}function Ln(e){un.lFrame.selectedIndex=e}function Dn(){var e=un.lFrame;return en(e.tView,e.selectedIndex)}function jn(){un.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Fn(){un.lFrame.currentNamespace=null}function Vn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n<r;n++){var i=e.data[n].type.prototype,o=i.ngAfterContentInit,a=i.ngAfterContentChecked,s=i.ngAfterViewInit,l=i.ngAfterViewChecked,u=i.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(n,u)}}function zn(e,t,n){Un(e,t,3,n)}function Bn(e,t,n,r){(3&e[2])===n&&Un(e,t,n,r)}function Hn(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Un(e,t,n,r){for(var i=null!=r?r:-1,o=0,a=void 0!==r?65535&e[18]:0;a<t.length;a++)if("number"==typeof t[a+1]){if(o=t[a],null!=r&&o>=r)break}else t[a]<0&&(e[18]+=65536),(o<i||-1==i)&&(qn(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function qn(e,t,n,r){var i=n[r]<0,o=n[r+1],a=e[i?-n[r]:n[r]];i?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Wn=function e(t,n,r){s(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function $n(e,t,n){for(var r=Jt(e),i=0;i<n.length;){var o=n[i];if("number"==typeof o){if(0!==o)break;i++;var a=n[i++],s=n[i++],l=n[i++];r?e.setAttribute(t,s,l,a):t.setAttributeNS(a,s,l)}else{var u=o,c=n[++i];Gn(u)?r&&e.setProperty(t,u,c):r?e.setAttribute(t,u,c):t.setAttribute(u,c),i++}}return i}function Kn(e){return 3===e||4===e||6===e}function Gn(e){return 64===e.charCodeAt(0)}function Jn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,r=0;r<t.length;r++){var i=t[r];"number"==typeof i?n=i:0===n||Qn(e,n,i,null,-1===n||2===n?t[++r]:null)}return e}function Qn(e,t,n,r,i){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var l=e[o];if("number"==typeof l)break;if(l===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function Zn(e){return-1!==e}function Yn(e){return 32767&e}function Xn(e){return e>>16}function er(e,t){for(var n=Xn(e),r=t;n>0;)r=r[15],n--;return r}function tr(e){return"string"==typeof e?e:null==e?"":""+e}function nr(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():tr(e)}var rr=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(qe);function ir(e){return e instanceof Function?e():e}var or=!0;function ar(e){var t=or;return or=e,t}var sr=0;function lr(e,t){var n=cr(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,ur(r.data,e),ur(t,null),ur(r.blueprint,null));var i=dr(e,t),o=e.injectorIndex;if(Zn(i))for(var a=Yn(i),s=er(i,t),l=s[1].data,u=0;u<8;u++)t[o+u]=s[a+u]|l[a+u];return t[o+8]=i,o}function ur(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function dr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function hr(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ze)&&(r=n[Ze]),null==r&&(r=n[Ze]=sr++);var i=255&r,o=1<<i,a=64&i,s=32&i,l=t.data;128&i?a?s?l[e+7]|=o:l[e+6]|=o:s?l[e+5]|=o:l[e+4]|=o:a?s?l[e+3]|=o:l[e+2]|=o:s?l[e+1]|=o:l[e]|=o}(e,t,n)}function fr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_e.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(Ze)?e[Ze]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){En(t,e);try{var a=o();if(null!=a||r&_e.Optional)return a;throw new Error("No provider for ".concat(nr(n),"!"))}finally{On()}}else if("number"==typeof o){if(-1===o)return new br(e,t);var s=null,l=cr(e,t),u=-1,c=r&_e.Host?t[16][6]:null;for((-1===l||r&_e.SkipSelf)&&(u=-1===l?dr(e,t):t[l+8],kr(r,!1)?(s=t[1],l=Yn(u),t=er(u,t)):l=-1);-1!==l;){u=t[l+8];var d=t[1];if(yr(o,l,d.data)){var h=pr(l,t,n,s,r,c);if(h!==vr)return h}kr(r,t[1].data[l+8]===c)&&yr(o,l,t)?(s=d,l=Yn(u),t=er(u,t)):l=-1}}}if(r&_e.Optional&&void 0===i&&(i=null),0==(r&(_e.Self|_e.Host))){var f=t[9],v=ot(void 0);try{return f?f.get(n,i,r&_e.Optional):lt(n,i,r&_e.Optional)}finally{ot(v)}}if(r&_e.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(nr(n),"]"))}var vr={};function pr(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],l=gr(s,a,n,null==r?Ft(s)&&or:r!=a&&3===s.type,i&_e.Host&&o===s);return null!==l?mr(t,a,l,s):vr}function gr(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=1048575&o,l=e.directiveStart,u=o>>20,c=i?s+u:e.directiveEnd,d=r?s:s+u;d<c;d++){var h=a[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(i){var f=a[l];if(f&&zt(f)&&f.type===n)return l}return null}function mr(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Wn){var a=i;if(a.resolving)throw new Error("Circular dep for "+nr(o[n]));var s,l=ar(a.canSeeViewProviders);a.resolving=!0,a.injectImpl&&(s=ot(a.injectImpl)),En(e,r);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var s=qt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{a.injectImpl&&ot(s),ar(l),a.resolving=!1,On()}}return i}function yr(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<<e)}function kr(e,t){return!(e&_e.Self||e&_e.Host&&t)}var br=function(){function e(t,n){s(this,e),this._tNode=t,this._lView=n}return u(e,[{key:"get",value:function(e,t){return fr(this._tNode,this._lView,e,void 0,t)}}]),e}();function _r(e){var t=e;if(Fe(e))return function(){var e=_r(je(t));return e?e():null};var n=Mt(t);if(null===n){var r=Ee(t);n=r&&r.factory}return n||null}function wr(e){return pe((function(){for(var t=e.prototype.constructor,n=t[Qe]||_r(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;i&&i!==r;){var o=i[Qe]||_r(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return function(e){return new e}}))}function Cr(e){return e.ngDebugContext}function xr(e){return e.ngOriginalError}function Sr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.error.apply(e,n)}var Ar=function(){function e(){s(this,e),this._console=console}return u(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Sr}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Cr(e)?Cr(e):this._findContext(xr(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=xr(e);t&&xr(t);)t=xr(t);return t}}]),e}(),Er=function(){function e(t){s(this,e),this.changingThisBreaksApplicationSecurity=t}return u(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}]),e}();function Tr(e){return e instanceof Er?e.changingThisBreaksApplicationSecurity:e}function Pr(e,t){var n=function(e){return e instanceof Er&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see http://g.co/ng/security#xss)"))}return n===t}var Rr=!0,Ir=!1;function Or(){return Ir=!0,Rr}var Mr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Nr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Lr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Dr(e){var t,n=Vr();return n?n.sanitize(Lr.URL,e)||"":Pr(e,"URL")?Tr(e):(t=tr(e),(t=String(t)).match(Mr)||t.match(Nr)?t:(Or()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(t," (see http://g.co/ng/security#xss)")),"unsafe:"+t))}function jr(e){var t=Vr();if(t)return t.sanitize(Lr.RESOURCE_URL,e)||"";if(Pr(e,"ResourceURL"))return Tr(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Fr(e,t,n){return function(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?jr:Dr}(t,n)(e)}function Vr(){var e=dn();return e&&e[12]}function zr(e,t){e.__ngContext__=t}function Br(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function Hr(){throw new Error("Cannot mix multi providers and regular providers")}function Ur(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function qr(e,t,n){for(var r=0;r<e.length;){var i=e[r++];if(n&&"class"===i){if(-1!==Ur((i=e[r]).toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function Wr(e){return 0===e.type&&"ng-template"!==e.tagName}function $r(e,t,n){return t===(0!==e.type||n?e.tagName:"ng-template")}function Kr(e,t,n){for(var r=4,i=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(Kn(e[t]))return t;return e.length}(i),a=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!a)if(4&r){if(r=2|1&r,""!==l&&!$r(e,l,n)||""===l&&1===t.length){if(Gr(r))return!1;a=!0}}else{var u=8&r?l:t[++s];if(8&r&&null!==e.attrs){if(!qr(e.attrs,u,n)){if(Gr(r))return!1;a=!0}continue}var c=Jr(8&r?"class":l,i,Wr(e),n);if(-1===c){if(Gr(r))return!1;a=!0;continue}if(""!==u){var d;d=c>o?"":i[c+1].toLowerCase();var h=8&r?d:null;if(h&&-1!==Ur(h,u,0)||2&r&&u!==d){if(Gr(r))return!1;a=!0}}}}else{if(!a&&!Gr(r)&&!Gr(l))return!1;if(a&&Gr(l))continue;a=!1,r=l|1&r}}return Gr(r)||a}function Gr(e){return 0==(1&e)}function Jr(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i<t.length;){var a=t[i];if(a===e)return i;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++i];"string"==typeof s;)s=t[++i];continue}if(4===a)break;if(0===a){i+=4;continue}}i+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Qr(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<t.length;r++)if(Kr(e,t[r],n))return!0;return!1}function Zr(e,t){return e?":not("+t.trim()+")":t}function Yr(e){for(var t=e[0],n=1,r=2,i="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&r){var s=e[++n];i+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||Gr(a)||(t+=Zr(o,i),i=""),r=a,o=o||!Gr(r);n++}return""!==i&&(t+=Zr(o,i)),t}var Xr={};function ei(e){var t=e[3];return Dt(t)?t[3]:t}function ti(e){return ri(e[13])}function ni(e){return ri(e[4])}function ri(e){for(;null!==e&&!Dt(e);)e=e[4];return e}function ii(e){oi(hn(),dn(),Nn()+e,yn())}function oi(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&zn(t,i,n)}else{var o=e.preOrderHooks;null!==o&&Bn(t,o,0,n)}Ln(n)}function ai(e,t){return e<<17|t<<2}function si(e){return e>>17&32767}function li(e){return 2|e}function ui(e){return(131068&e)>>2}function ci(e,t){return-131069&e|t<<2}function di(e){return 1|e}function hi(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1];if(-1!==o){var a=e.data[o];An(i),a.contentQueries(2,t[o],o)}}}function fi(e,t,n){return Jt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function vi(e,t,n,r,i,o,a,s,l,u){var c=t.blueprint.slice();return c[0]=i,c[2]=140|r,sn(c),c[3]=c[15]=e,c[8]=n,c[10]=a||e&&e[10],c[11]=s||e&&e[11],c[12]=l||e&&e[12]||null,c[9]=u||e&&e[9]||null,c[6]=o,c[16]=2==t.type?e[16]:c,c}function pi(e,t,n,r,i,o){var a=n+20,s=e.data[a]||function(e,t,n,r,i,o){var a=vn(),s=gn(),l=s?a:a&&a.parent,u=e.data[n]=Ai(0,l&&l!==t?l:null,r,n,i,o);return null===e.firstChild&&(e.firstChild=u),a&&(!s||null!=a.child||null===u.parent&&2!==a.type?s||(a.next=u):a.child=u),u}(e,t,a,r,i,o);return pn(s,!0),s}function gi(e,t,n){Tn(t,t[6]);try{var r=e.viewQuery;null!==r&&Gi(1,r,n);var i=e.template;null!==i&&ki(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&hi(e,t),e.staticViewQueries&&Gi(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)Ui(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,Mn()}}function mi(e,t,n,r){var i=t[2];if(256!=(256&i)){Tn(t,t[6]);var o=yn();try{sn(t),un.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&ki(e,t,n,2,r);var a=3==(3&i);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&zn(t,s,null)}else{var l=e.preOrderHooks;null!==l&&Bn(t,l,0,null),Hn(t,0)}if(function(e){for(var t=ti(e);null!==t;t=ni(t))if(t[2])for(var n=t[9],r=0;r<n.length;r++){var i=n[r],o=i[3];0==(1024&i[2])&&ln(o,1),i[2]|=1024}}(t),function(e){for(var t=ti(e);null!==t;t=ni(t))for(var n=10;n<t.length;n++){var r=t[n],i=r[1];on(r)&&mi(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&hi(e,t),!o)if(a){var u=e.contentCheckHooks;null!==u&&zn(t,u)}else{var c=e.contentHooks;null!==c&&Bn(t,c,1),Hn(t,1)}!function(e,t){try{var n=e.expandoInstructions;if(null!==n)for(var r=e.expandoStartIndex,i=-1,o=0;o<n.length;o++){var a=n[o];"number"==typeof a?a<=0?(Ln(0-a),i=r+=9+n[++o]):r+=a:(null!==a&&(wn(r,i),a(2,t[i])),i++)}}finally{Ln(-1)}}(e,t);var d=e.components;null!==d&&function(e,t){for(var n=0;n<t.length;n++)Hi(e,t[n])}(t,d);var h=e.viewQuery;if(null!==h&&Gi(2,h,r),!o)if(a){var f=e.viewCheckHooks;null!==f&&zn(t,f)}else{var v=e.viewHooks;null!==v&&Bn(t,v,2),Hn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,ln(t[3],-1))}finally{Mn()}}}function yi(e,t,n,r){var i=t[10],o=!yn(),a=rn(t);try{o&&!a&&i.begin&&i.begin(),a&&gi(e,t,r),mi(e,t,n,r)}finally{o&&!a&&i.end&&i.end()}}function ki(e,t,n,r,i){var o=Nn();try{Ln(-1),2&r&&t.length>20&&oi(e,t,0,yn()),n(r,i)}finally{Ln(o)}}function bi(e,t,n){if(jt(t))for(var r=t.directiveEnd,i=t.directiveStart;i<r;i++){var o=e.data[i];o.contentQueries&&o.contentQueries(1,n[i],i)}}function _i(e,t,n){cn()&&(function(e,t,n,r){var i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||lr(n,t),zr(r,t);for(var a=n.initialInputs,s=i;s<o;s++){var l=e.data[s],u=zt(l);u&&Fi(t,n,l);var c=mr(t,e,s,n);zr(c,t),null!==a&&Vi(0,s-i,c,l,0,a),u&&(tn(n.index,t)[8]=c)}}(e,t,n,Xt(n,t)),128==(128&n.flags)&&function(e,t,n){var r=n.directiveStart,i=n.directiveEnd,o=e.expandoInstructions,a=e.firstCreatePass,s=n.index-20,l=un.lFrame.currentDirectiveIndex;try{Ln(s);for(var u=r;u<i;u++){var c=e.data[u],d=t[u];Cn(u),null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs?Oi(c,d):a&&o.push(null)}}finally{Ln(-1),Cn(l)}}(e,t,n))}function wi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xt,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o<r.length;o+=2){var a=r[o+1],s=-1===a?n(t,e):e[a];e[i++]=s}}function Ci(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=xi(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function xi(e,t,n,r,i,o,a,s,l,u){var c=20+r,d=c+i,h=function(e,t){for(var n=[],r=0;r<t;r++)n.push(r<e?null:Xr);return n}(c,d);return h[1]={type:e,id:t,blueprint:h,template:n,queries:null,viewQuery:s,node:null,data:h.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:l,consts:u,incompleteFirstPass:!1}}function Si(e,t,n,r){var i=Qi(t);i.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(r,i.length-1)}function Ai(e,t,n,r,i,o){return{type:n,index:r,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Ei(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function Ti(e,t,n,r,i,o,a,s){var l,u,c=Xt(t,n),d=t.inputs;!s&&null!=d&&(l=d[r])?(Xi(e,n,l,r,i),Ft(t)&&function(e,t){var n=tn(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(r="class"===(u=r)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,i=null!=a?a(i,t.tagName||"",r):i,Jt(o)?o.setProperty(c,r,i):Gn(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}function Pi(e,t,n,r){var i=!1;if(cn()){var o=function(e,t,n){var r=e.directiveRegistry,i=null;if(r)for(var o=0;o<r.length;o++){var a=r[o];Qr(n,a.selectors,!1)&&(i||(i=[]),hr(lr(n,t),e,a.type),zt(a)?(2&n.flags&&Br(n),Ni(e,n),i.unshift(a)):i.push(a))}return i}(e,t,n),a=null===r?null:{"":-1};if(null!==o){var s=0;i=!0,Di(n,e.data.length,o.length);for(var l=0;l<o.length;l++){var u=o[l];u.providersResolver&&u.providersResolver(u)}Mi(e,n,o.length);for(var c=!1,d=!1,h=0;h<o.length;h++){var f=o[h];n.mergedAttrs=Jn(n.mergedAttrs,f.hostAttrs),ji(e,t,f),Li(e.data.length-1,f,a),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128);var v=f.type.prototype;!c&&(v.ngOnChanges||v.ngOnInit||v.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-20),c=!0),d||!v.ngOnChanges&&!v.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-20),d=!0),Ri(e,f),s+=f.hostVars}!function(e,t){for(var n=t.directiveEnd,r=e.data,i=t.attrs,o=[],a=null,s=null,l=t.directiveStart;l<n;l++){var u=r[l],c=u.inputs,d=null===i||Wr(t)?null:zi(c,i);o.push(d),a=Ei(c,l,a),s=Ei(u.outputs,l,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n),Ii(e,t,s)}a&&function(e,t,n){if(t)for(var r=e.localNames=[],i=0;i<t.length;i+=2){var o=n[t[i+1]];if(null==o)throw new Error("Export of name '".concat(t[i+1],"' not found!"));r.push(t[i],o)}}(n,r,a)}return n.mergedAttrs=Jn(n.mergedAttrs,n.attrs),i}function Ri(e,t){var n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function Ii(e,t,n){for(var r=0;r<n;r++)t.push(Xr),e.blueprint.push(Xr),e.data.push(null)}function Oi(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Mi(e,t,n){var r=20-t.index,i=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(r,i,n)}function Ni(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Li(e,t,n){if(n){if(t.exportAs)for(var r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;zt(t)&&(n[""]=e)}}function Di(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ji(e,t,n){e.data.push(n);var r=n.factory||(n.factory=Mt(n.type)),i=new Wn(r,zt(n),null);e.blueprint.push(i),t.push(i)}function Fi(e,t,n){var r=Xt(t,e),i=Ci(n),o=e[10],a=qi(e,vi(e,i,null,n.onPush?64:16,r,t,o,o.createRenderer(r,n)));e[t.index]=a}function Vi(e,t,n,r,i,o){var a=o[t];if(null!==a)for(var s=r.setInput,l=0;l<a.length;){var u=a[l++],c=a[l++],d=a[l++];null!==s?r.setInput(n,d,u,c):n[c]=d}}function zi(e,t){for(var n=null,r=0;r<t.length;){var i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Bi(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function Hi(e,t){var n=tn(t,e);if(on(n)){var r=n[1];80&n[2]?mi(r,n,r.template,n[8]):n[5]>0&&function e(t){for(var n=ti(t);null!==n;n=ni(n))for(var r=10;r<n.length;r++){var i=n[r];if(1024&i[2]){var o=i[1];mi(o,i,o.template,i[8])}else i[5]>0&&e(i)}var a=t[1].components;if(null!==a)for(var s=0;s<a.length;s++){var l=tn(a[s],t);on(l)&&l[5]>0&&e(l)}}(n)}}function Ui(e,t){var n=tn(t,e),r=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),gi(r,n,n[8])}function qi(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Wi(e){for(;e;){e[2]|=64;var t=ei(e);if(Bt(e)&&!t)return e;e=t}return null}function $i(e,t,n){var r=t[10];r.begin&&r.begin();try{mi(e,t,e.template,n)}catch(i){throw Yi(t,i),i}finally{r.end&&r.end()}}function Ki(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],r=nn(n),i=r[1];yi(i,r,i.template,n)}}(e[8])}function Gi(e,t,n){An(0),t(e,n)}var Ji=Promise.resolve(null);function Qi(e){return e[7]||(e[7]=[])}function Zi(e,t,n){return(null===e||zt(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Yi(e,t){var n=e[9],r=n?n.get(Ar,null):null;r&&r.handleError(t)}function Xi(e,t,n,r,i){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],l=t[a],u=e.data[a];null!==u.setInput?u.setInput(l,i,r,s):l[s]=i}}function eo(e,t){var n=t[3];return-1===e.index?Dt(n)?n:null:n}function to(e,t){var n=eo(e,t);return n?fo(t[11],n[7]):null}function no(e,t,n,r,i){if(null!=r){var o,a=!1;Dt(r)?o=r:Lt(r)&&(a=!0,r=r[0]);var s=Zt(r);0===e&&null!==n?null==i?co(t,n,s):uo(t,n,s,i||null):1===e&&null!==n?uo(t,n,s,i||null):2===e?function(e,t,n){var r=fo(e,t);r&&function(e,t,n,r){Jt(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,r,i){var o=n[7];o!==Zt(n)&&no(t,e,r,o,i);for(var a=10;a<n.length;a++){var s=n[a];mo(s[1],s,e,t,r,o)}}(t,e,o,n,i)}}function ro(e,t,n,r){var i=to(e.node,t);i&&mo(e,t,t[11],n?1:2,i,r)}function io(e,t){var n=e[9],r=n.indexOf(t);1024&t[2]&&ln(t[3],-1),n.splice(r,1)}function oo(e,t){if(!(e.length<=10)){var n=10+t,r=e[n];if(r){var i=r[17];null!==i&&i!==e&&io(i,r),t>0&&(e[n-1][4]=r[4]);var o=pt(e,10+t);ro(r[1],r,!1,null);var a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function ao(e,t){if(!(256&t[2])){var n=t[11];Jt(n)&&n.destroyNode&&mo(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return lo(e[1],e);for(;t;){var n=null;if(Lt(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Lt(t)&&lo(t[1],t),t=so(t,e);null===t&&(t=e),Lt(t)&&lo(t[1],t),n=t&&t[4]}t=n}}(t)}}function so(e,t){var n;return Lt(e)&&(n=e[6])&&2===n.type?eo(n,e):e[3]===t?null:e[3]}function lo(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r<n.length;r+=2){var i=t[n[r]];if(!(i instanceof Wn)){var o=n[r+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(i[o[a]]);else o.call(i)}}}(e,t),function(e,t){var n=e.cleanup;if(null!==n){for(var r=t[7],i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){var o=n[i+1],a="function"==typeof o?o(t):Zt(t[o]),s=r[n[i+2]],l=n[i+3];"boolean"==typeof l?a.removeEventListener(n[i],s,l):l>=0?r[l]():r[-l].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&Jt(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&Dt(t[3])){r!==t[3]&&io(r,t);var i=t[19];null!==i&&i.detachView(e)}}}function uo(e,t,n,r){Jt(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function co(e,t,n){Jt(e)?e.appendChild(t,n):t.appendChild(n)}function ho(e,t,n,r){null!==r?uo(e,t,n,r):co(e,t,n)}function fo(e,t){return Jt(e)?e.parentNode(t):t.parentNode}function vo(e,t,n,r){var i=function(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?to(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return Xt(t,n).parentNode;if(2&r.flags){var o=e.data,a=o[o[r.index].directiveStart].encapsulation;if(a!==bt.ShadowDom&&a!==bt.Native)return null}return Xt(r,n)}(e,r,t);if(null!=i){var o=t[11],a=function(e,t){if(2===e.type){var n=eo(e,t);return null===n?null:po(n.indexOf(t,10)-10,n)}return 4===e.type||5===e.type?Xt(e,t):null}(r.parent||t[6],t);if(Array.isArray(n))for(var s=0;s<n.length;s++)ho(o,i,n[s],a);else ho(o,i,n,a)}}function po(e,t){var n=10+e+1;if(n<t.length){var r=t[n],i=r[1].firstChild;if(null!==i)return function e(t,n){if(null!==n){var r=n.type;if(3===r)return Xt(n,t);if(0===r)return po(-1,t[n.index]);if(4===r||5===r){var i=n.child;if(null!==i)return e(t,i);var o=t[n.index];return Dt(o)?po(-1,o):Zt(o)}var a=t[16],s=a[6],l=ei(a),u=s.projection[n.projection];return null!=u?e(l,u):e(t,n.next)}return null}(r,i)}return t[7]}function go(e,t,n,r,i,o,a){for(;null!=n;){var s=r[n.index],l=n.type;a&&0===t&&(s&&zr(Zt(s),r),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(go(e,t,n.child,r,i,o,!1),no(t,e,i,s,o)):1===l?yo(e,t,r,n,i,o):no(t,e,i,s,o)),n=a?n.projectionNext:n.next}}function mo(e,t,n,r,i,o){go(n,r,e.node.child,t,i,o,!1)}function yo(e,t,n,r,i,o){var a=n[16],s=a[6].projection[r.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)no(t,e,i,s[l],o);else go(e,t,s,a[3],i,o,!0)}function ko(e,t,n){Jt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function bo(e,t,n){Jt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}var _o,wo,Co,xo=function(){function e(t,n){s(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef=null}return u(e,[{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}ao(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Si(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Wi(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){$i(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){kn(!0);try{$i(e,t,n)}finally{kn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,mo(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,o){for(var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var s=n[r.index];if(null!==s&&o.push(Zt(s)),Dt(s))for(var l=10;l<s.length;l++){var u=s[l],c=u[1].firstChild;null!==c&&e(u[1],u,c,o)}var d=r.type;if(4===d||5===d)e(t,n,r.child,o);else if(1===d){var h=n[16],f=h[6].projection[r.projection];if(Array.isArray(f))o.push.apply(o,i(f));else{var v=ei(h);e(v[1],v,f,o,!0)}}r=a?r.projectionNext:r.next}return o}(e[1],e,e[6].child,[]):[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),So=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e))._view=e,r}return u(n,[{key:"detectChanges",value:function(){Ki(this._view)}},{key:"checkNoChanges",value:function(){!function(e){kn(!0);try{Ki(e)}finally{kn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(xo);function Ao(e,t,n){return _o||(_o=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(e)),new _o(Xt(t,n))}function Eo(e,t,n,r){return wo||(wo=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this))._declarationView=e,o._declarationTContainer=r,o.elementRef=i,o}return u(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=vi(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),gi(t,n,e),new xo(n)}}]),n}(e)),0===n.type?new wo(r,n,Ao(t,n,r)):null}function To(e,t,n,r){var i;Co||(Co=function(e){c(r,e);var n=d(r);function r(e,t,i){var o;return s(this,r),(o=n.call(this))._lContainer=e,o._hostTNode=t,o._hostView=i,o}return u(r,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(dt,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Dt(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],a=new Co(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t);return function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-10?(t[4]=n[i],vt(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(r,n,this._lContainer,s),ro(r,n,!0,po(s,this._lContainer)),e.attachToViewContainerRef(this),vt(this._lContainer[8],s,e),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=this._lContainer[8];return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1),n=oo(this._lContainer,t);n&&(pt(this._lContainer[8],t),ao(n[1],n))}},{key:"detach",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1),n=oo(this._lContainer,t);return n&&null!=pt(this._lContainer[8],t)?new xo(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Ao(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new br(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=dr(this._hostTNode,this._hostView),t=er(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=Xn(e),a=t,s=t[6];o>1;)s=(a=a[15])[6],o--;return s}(e,this._hostView,this._hostTNode);return Zn(e)&&null!=n?new br(n,t):new br(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),r}(e));var o=r[n.index];if(Dt(o))i=o;else{var a;if(4===n.type)a=Zt(o);else if(a=r[11].createComment(""),Bt(r)){var l=r[11],h=Xt(n,r);uo(l,fo(l,h),a,function(e,t){return Jt(e)?e.nextSibling(t):t.nextSibling}(l,h))}else vo(r[1],r,a,n);r[n.index]=i=Bi(o,r,a,n),qi(r,i)}return new Co(i,n,r)}function Po(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Ft(e)){var r=tn(e.index,t);return new xo(r,r)}return 3===e.type||0===e.type||4===e.type||5===e.type?new xo(t[16],t):null}(vn(),dn(),e)}var Ro=function(){var e=function e(){s(this,e)};return e.__NG_ELEMENT_ID__=function(){return Io()},e}(),Io=Po,Oo=Function,Mo=new Ye("Set Injector scope."),No={},Lo={},Do=[],jo=void 0;function Fo(){return void 0===jo&&(jo=new ct),jo}function Vo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new zo(e,n,t||Fo(),r)}var zo=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;s(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&ft(n,(function(e){return i.processProvider(e,t,n)})),ft([t],(function(e){return i.processInjectorType(e,[],a)})),this.records.set(Xe,Uo(void 0,this));var l=this.records.get(Mo);this.scope=null!=l?l.value:null,this.source=o||("object"==typeof t?null:Me(t))}return u(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:et,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_e.Default;this.assertNotDestroyed();var r,i=it(this);try{if(!(n&_e.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Ye)&&Se(e);o=a&&this.injectableDefInScope(a)?Uo(Bo(e),No):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&_e.Self?Fo():this.parent).get(e,t=n&_e.Optional&&t===et?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Me(e)),i)throw s;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=Me(t);if(Array.isArray(t))i=t.map(Me).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Me(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(tt,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{it(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(Me(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=je(e)))return!1;var i=Ee(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=Ee(o)),null==i)return!1;if(null!=i.imports&&!s){var l;n.push(a);try{ft(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))}))}finally{}if(void 0!==l)for(var u=function(e){var t=l[e],n=t.ngModule,i=t.providers;ft(i,(function(e){return r.processProvider(e,n,i||Do)}))},c=0;c<l.length;c++)u(c)}this.injectorDefTypes.add(a),this.records.set(a,Uo(i.factory,No));var d=i.providers;if(null!=d&&!s){var h=e;ft(d,(function(e){return r.processProvider(e,h,d)}))}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var r=Wo(e=je(e))?e:je(e&&e.provide),i=function(e,t,n){return qo(e)?Uo(void 0,e.useValue):Uo(Ho(e,t,n),No)}(e,t,n);if(Wo(e)||!0!==e.multi){var o=this.records.get(r);o&&void 0!==o.multi&&Hr()}else{var a=this.records.get(r);a?void 0===a.multi&&Hr():((a=Uo(void 0,No,!0)).factory=function(){return ut(a.multi)},this.records.set(r,a)),r=e,a.multi.push(e)}this.records.set(r,i)}},{key:"hydrate",value:function(e,t){var n;return t.value===Lo?function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(Me(e)):t.value===No&&(t.value=Lo,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();function Bo(e){var t=Se(e),n=null!==t?t.factory:Mt(e);if(null!==n)return n;var r=Ee(e);if(null!==r)return r.factory;if(e instanceof Ye)throw new Error("Token ".concat(Me(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=function(e,t){for(var n=[],r=0;r<e;r++)n.push("?");return n}(t);throw new Error("Can't resolve all parameters for ".concat(Me(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[Te]||e[Ie]||e[Re]&&e[Re]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Ho(e,t,n){var r,o=void 0;if(Wo(e)){var a=je(e);return Mt(a)||Bo(a)}if(qo(e))o=function(){return je(e.useValue)};else if((r=e)&&r.useFactory)o=function(){return e.useFactory.apply(e,i(ut(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))o=function(){return st(je(e.useExisting))};else{var s=je(e&&(e.useClass||e.provide));if(s||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(Me(e),"'")+r)}(t,n,e),!function(e){return!!e.deps}(e))return Mt(s)||Bo(s);o=function(){return p(s,i(ut(e.deps)))}}return o}function Uo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function qo(e){return null!==e&&"object"==typeof e&&nt in e}function Wo(e){return"function"==typeof e}var $o=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Vo(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},Ko=function(){var e=function(){function e(){s(this,e)}return u(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?$o(e,t,""):$o(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=et,e.NULL=new ct,e.\u0275prov=Ce({token:e,providedIn:"any",factory:function(){return st(Xe)}}),e.__NG_ELEMENT_ID__=-1,e}(),Go=new Ye("AnalyzeForEntryComponents");function Jo(e,t,n){var r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?i=Ne(i,s):2==o&&(r=Ne(r,s+": "+t[++a]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}var Qo=null;function Zo(){if(!Qo){var e=qe.Symbol;if(e&&e.iterator)Qo=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Qo=r)}}return Qo}var Yo=function(){function e(t){s(this,e),this.wrapped=t}return u(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function Xo(e){return!!ea(e)&&(Array.isArray(e)||!(e instanceof Map)&&Zo()in e)}function ea(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ta(e,t,n){return e[t]=n}function na(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ra(e,t,n,r){var i=na(e,t,n);return na(e,t+1,r)||i}function ia(e,t,n,r){var i=dn();return na(i,_n(),t)&&(hn(),function(e,t,n,r,i,o){var a=Xt(e,t),s=t[11];if(null==r)Jt(s)?s.removeAttribute(a,n,o):a.removeAttribute(n);else{var l=null==i?tr(r):i(r,e.tagName||"",n);Jt(s)?s.setAttribute(a,n,l,o):o?a.setAttributeNS(o,n,l):a.setAttribute(n,l)}}(Dn(),i,e,t,n,r)),ia}function oa(e,t,n,r){return na(e,_n(),n)?t+tr(n)+r:Xr}function aa(e,t,n,r,i,o,a,s){var l=dn(),u=hn(),c=e+20,d=u.firstCreatePass?function(e,t,n,r,i,o,a,s,l){var u=t.consts,c=pi(t,n[6],e,0,a||null,an(u,s));Pi(t,n,c,an(u,l)),Vn(t,c);var d=c.tViews=xi(2,-1,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u),h=Ai(0,null,2,-1,null,null);return h.injectorIndex=c.injectorIndex,d.node=h,null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(e,u,l,t,n,r,i,o,a):u.data[c];pn(d,!1);var h=l[11].createComment("");vo(u,l,h,d),zr(h,l),qi(l,l[c]=Bi(h,l,h,d)),Vt(d)&&_i(u,l,d),null!=a&&wi(l,d,s)}function sa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_e.Default,n=dn();return null==n?st(e,t):fr(vn(),n,je(e),t)}function la(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var r=n.length,i=0;i<r;){var o=n[i];if(Kn(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(o===t)return n[i+1];i+=2}}return null}(vn(),e)}function ua(e,t,n){var r=dn();return na(r,_n(),t)&&Ti(hn(),Dn(),r,e,t,r[11],n,!1),ua}function ca(e,t,n,r,i){var o=i?"class":"style";Xi(e,n,t.inputs[o],o,r)}function da(e,t,n,r){var i=dn(),o=hn(),a=20+e,s=i[11],l=i[a]=fi(t,s,un.lFrame.currentNamespace),u=o.firstCreatePass?function(e,t,n,r,i,o,a){var s=t.consts,l=an(s,o),u=pi(t,n[6],e,3,i,l);return Pi(t,n,u,an(s,a)),null!==u.attrs&&Jo(u,u.attrs,!1),null!==u.mergedAttrs&&Jo(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(e,o,i,0,t,n,r):o.data[a];pn(u,!0);var c=u.mergedAttrs;null!==c&&$n(s,l,c);var d=u.classes;null!==d&&bo(s,l,d);var h=u.styles;null!==h&&ko(s,l,h),vo(o,i,l,u),0===un.lFrame.elementDepthCount&&zr(l,i),un.lFrame.elementDepthCount++,Vt(u)&&(_i(o,i,u),bi(o,u,i)),null!==r&&wi(i,u)}function ha(){var e=vn();gn()?mn():pn(e=e.parent,!1);var t=e;un.lFrame.elementDepthCount--;var n=hn();n.firstCreatePass&&(Vn(n,e),jt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ca(n,t,dn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ca(n,t,dn(),t.stylesWithoutHost,!1)}function fa(e,t,n,r){da(e,t,n,r),ha()}function va(e,t,n){var r=dn(),i=hn(),o=e+20,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=an(o,r),s=pi(t,n[6],e,4,"ng-container",a);return null!==a&&Jo(s,a,!0),Pi(t,n,s,an(o,i)),null!==t.queries&&t.queries.elementStart(t,s),s}(e,i,r,t,n):i.data[o];pn(a,!0);var s=r[o]=r[11].createComment("");vo(i,r,s,a),zr(s,r),Vt(a)&&(_i(i,r,a),bi(i,a,r)),null!=n&&wi(r,a)}function pa(){var e=vn(),t=hn();gn()?mn():pn(e=e.parent,!1),t.firstCreatePass&&(Vn(t,e),jt(e)&&t.queries.elementEnd(e))}function ga(){return dn()}function ma(e){return!!e&&"function"==typeof e.then}function ya(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=dn(),o=hn(),a=vn();return ba(o,i,i[11],a,e,t,n,r),ya}function ka(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=vn(),o=dn(),a=hn();return ba(a,o,Zi(xn(a.data),i,o),i,e,t,n,r),ka}function ba(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Vt(r),u=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Qi(t),d=!0;if(3===r.type){var h=Xt(r,t),f=s?s(h):_t,v=f.target||h,p=c.length,g=s?function(e){return s(Zt(e[r.index])).target}:r.index;if(Jt(n)){var m=null;if(!s&&l&&(m=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;o<i.length-1;o+=2){var a=i[o];if(a===n&&i[o+1]===r){var s=t[7],l=i[o+2];return s.length>l?s[l]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,d=!1;else{o=wa(r,t,o,!1);var y=n.listen(f.name||v,i,o);c.push(o,y),u&&u.push(i,g,p,p+1)}}else o=wa(r,t,o,!0),v.addEventListener(i,o,a),c.push(o),u&&u.push(i,g,p,a)}var k,b=r.outputs;if(d&&null!==b&&(k=b[i])){var _=k.length;if(_)for(var w=0;w<_;w+=2){var C=t[k[w]][k[w+1]].subscribe(o),x=c.length;c.push(o,C),u&&u.push(i,r.index,x,-(x+1))}}}function _a(e,t,n){try{return!1!==t(n)}catch(r){return Yi(e,r),!1}}function wa(e,t,n,r){return function i(o){if(o===Function)return n;var a=2&e.flags?tn(e.index,t):t;0==(32&t[2])&&Wi(a);for(var s=_a(t,n,o),l=i.__ngNextListenerFn__;l;)s=_a(t,l,o)&&s,l=l.__ngNextListenerFn__;return r&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function Ca(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(un.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,un.lFrame.contextLView))[8]}(e)}function xa(e,t,n){return Sa(e,"",t,"",n),xa}function Sa(e,t,n,r,i){var o=dn(),a=oa(o,t,n,r);return a!==Xr&&Ti(hn(),Dn(),o,e,a,o[11],i,!1),Sa}var Aa=[];function Ea(e,t,n,r,i){for(var o=e[n+1],a=null===t,s=r?si(o):ui(o),l=!1;0!==s&&(!1===l||a);){var u=e[s+1];Ta(e[s],t)&&(l=!0,e[s+1]=r?di(u):li(u)),s=r?si(u):ui(u)}l&&(e[n+1]=r?li(o):di(o))}function Ta(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&mt(e,t)>=0}function Pa(e,t,n){return Ia(e,t,n,!1),Pa}function Ra(e,t){return Ia(e,t,null,!0),Ra}function Ia(e,t,n,r){var i,o,a=dn(),s=hn(),l=(i=un.lFrame,o=i.bindingIndex,i.bindingIndex=i.bindingIndex+2,o);s.firstUpdatePass&&function(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[Nn()+20],a=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(e.flags&(t?16:32))})(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=xn(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Ma(n=Oa(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=Oa(i,e,t,n,r),null===o){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==ui(r))return e[si(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[si(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=Ma(s=Oa(null,e,t,s[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o<i;o++)r=Ma(r,e[o].hostAttrs,n);return Ma(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function(e,t,n,r,i,o){var a=o?t.classBindings:t.styleBindings,s=si(a),l=ui(a);e[r]=n;var u,c=!1;if(Array.isArray(n)){var d=n;(null===(u=d[1])||mt(d,u)>0)&&(c=!0)}else u=n;if(i)if(0!==l){var h=si(e[s+1]);e[r+1]=ai(h,s),0!==h&&(e[h+1]=ci(e[h+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=ai(s,0),0!==s&&(e[s+1]=ci(e[s+1],r)),s=r;else e[r+1]=ai(l,0),0===s?s=r:e[l+1]=ci(e[l+1],r),l=r;c&&(e[r+1]=li(e[r+1])),Ea(e,u,r,!0),Ea(e,u,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&mt(o,t)>=0&&(n[r+1]=di(n[r+1]))}(t,u,e,r,o),a=ai(s,l),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}(s,e,l,r),t!==Xr&&na(a,l,t)&&function(e,t,n,r,i,o,a,s){if(3===t.type){var l=e.data,u=l[s+1];La(1==(1&u)?Na(l,t,n,i,ui(u),a):void 0)||(La(o)||2==(2&u)&&(o=Na(l,null,n,i,s,a)),function(e,t,n,r,i){var o=Jt(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{var a=-1==r.indexOf("-")?void 0:2;null==i?o?e.removeStyle(n,r,a):n.style.removeProperty(r):o?e.setStyle(n,r,i,a):n.style.setProperty(r,i)}}(r,a,Yt(Nn(),n),i,o))}}(s,s.data[Nn()+20],a,a[11],e,a[l+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(Tr(e)))),e}(t,n),r,l)}function Oa(e,t,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(r=Ma(r,(o=t[s]).hostAttrs,i),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),r}function Ma(e,t,n){var r,i,o,a,s=n?1:2,l=-1;if(null!==t)for(var u=0;u<t.length;u++){var c=t[u];"number"==typeof c?l=c:l===s&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),r=e,i=c,o=!!n||t[++u],a=void 0,(a=mt(r,i))>=0?r[1|a]=o:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(r,a=~a,i,o))}return void 0===e?null:e}function Na(e,t,n,r,i,o){for(var a=null===t,s=void 0;i>0;){var l=e[i],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=n[i+1];h===Xr&&(h=d?Aa:void 0);var f=d?gt(h,r):c===r?h:void 0;if(u&&!La(f)&&(f=gt(l,r)),La(f)&&(s=f,a))return s;var v=e[i+1];i=a?si(v):ui(v)}if(null!==t){var p=o?t.residualClasses:t.residualStyles;null!=p&&(s=gt(p,r))}return s}function La(e){return void 0!==e}function Da(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=dn(),r=hn(),i=e+20,o=r.firstCreatePass?pi(r,n[6],e,3,null,null):r.data[i],a=n[i]=function(e,t){return Jt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);vo(r,n,a,o),pn(o,!1)}function ja(e,t,n){var r=dn(),i=oa(r,e,t,n);return i!==Xr&&function(e,t,n){var r=Yt(t,e),i=e[11];Jt(i)?i.setValue(r,n):r.textContent=n}(r,Nn(),i),ja}function Fa(e,t,n){var r=dn();return na(r,_n(),t)&&Ti(hn(),Dn(),r,e,t,r[11],n,!0),Fa}function Va(e,t,n){var r=dn();if(na(r,_n(),t)){var i=hn(),o=Dn();Ti(i,o,r,e,t,Zi(xn(i.data),o,r),n,!0)}return Va}function za(e,t){var n=nn(e)[1],r=n.data.length-1;Vn(n,{directiveStart:r,directiveEnd:r+1})}function Ba(e,t,n,r,i){if(e=je(e),Array.isArray(e))for(var o=0;o<e.length;o++)Ba(e[o],t,n,r,i);else{var a=hn(),s=dn(),l=Wo(e)?e:je(e.provide),u=Ho(e),c=vn(),d=1048575&c.providerIndexes,h=c.directiveStart,f=c.providerIndexes>>20;if(Wo(e)||!e.multi){var v=new Wn(u,i,sa),p=qa(l,t,i?d:d+f,h);-1===p?(hr(lr(c,s),a,l),Ha(a,e,t.length),t.push(l),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(v),s.push(v)):(n[p]=v,s[p]=v)}else{var g=qa(l,t,d+f,h),m=qa(l,t,d,d+f),y=g>=0&&n[g],k=m>=0&&n[m];if(i&&!k||!i&&!y){hr(lr(c,s),a,l);var b=function(e,t,n,r,i){var o=new Wn(e,n,sa);return o.multi=[],o.index=t,o.componentProviders=0,Ua(o,i,r&&!n),o}(i?$a:Wa,n.length,i,r,u);!i&&k&&(n[m].providerFactory=b),Ha(a,e,t.length,0),t.push(l),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(b),s.push(b)}else Ha(a,e,g>-1?g:m,Ua(n[i?m:g],u,!i&&r));!i&&r&&k&&n[m].componentProviders++}}}function Ha(e,t,n,r){var i=Wo(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function Ua(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function qa(e,t,n,r){for(var i=n;i<r;i++)if(t[i]===e)return i;return-1}function Wa(e,t,n,r){return Ka(this.multi,[])}function $a(e,t,n,r){var i,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=mr(n,n[1],this.providerFactory.index,r);Ka(o,i=s.slice(0,a));for(var l=a;l<s.length;l++)i.push(s[l])}else Ka(o,i=[]);return i}function Ka(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function Ga(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=hn();if(r.firstCreatePass){var i=zt(e);Ba(n,r.data,r.blueprint,i,!0),Ba(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}var Ja=function e(){s(this,e)},Qa=function(){function e(){s(this,e)}return u(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Me(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Za=function(){var e=function e(){s(this,e)};return e.NULL=new Qa,e}(),Ya=function(){var e=function e(t){s(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return Xa(e)},e}(),Xa=function(e){return Ao(e,vn(),dn())},es=function e(){s(this,e)},ts=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),ns=function(){var e=function e(){s(this,e)};return e.__NG_ELEMENT_ID__=function(){return rs()},e}(),rs=function(){var e=dn(),t=tn(vn().index,e);return function(e){var t=e[11];if(Jt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Lt(t)?t:e)},is=function(){var e=function e(){s(this,e)};return e.\u0275prov=Ce({token:e,providedIn:"root",factory:function(){return null}}),e}(),os=new function e(t){s(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("10.0.14"),as=function(){function e(){s(this,e)}return u(e,[{key:"supports",value:function(e){return Xo(e)}},{key:"create",value:function(e){return new ls(e)}}]),e}(),ss=function(e,t){return t},ls=function(){function e(t){s(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ss}return u(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<hs(n,r,i)?t:n,a=hs(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var l=a-r,u=s-r;if(l!=u){for(var c=0;c<l;c++){var d=c<i.length?i[c]:i[c]=0,h=d+c;u<=h&&h<l&&(i[c]=d+1)}i[o.previousIndex]=u-l}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!Xo(e))throw new Error("Error trying to diff '".concat(Me(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=e[s],i=this._trackByFn(s,r),null!==o&&Object.is(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),Object.is(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r,i=e[Zo()]();!(r=i.next()).done;)t(r.value)}(e,(function(e){i=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,i)?(a&&(o=t._verifyReinsertion(o,e,i,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),a=!0),o=o._next,n++})),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new us(t,n),i,r),e}},{key:"_verifyReinsertion",value:function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new ds),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ds),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),e}(),us=function e(t,n){s(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},cs=function(){function e(){s(this,e),this._head=null,this._tail=null}return u(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),ds=function(){function e(){s(this,e),this.map=new Map}return u(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new cs,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),e}();function hs(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var fs=function(){function e(){s(this,e)}return u(e,[{key:"supports",value:function(e){return e instanceof Map||ea(e)}},{key:"create",value:function(){return new vs}}]),e}(),vs=function(){function e(){s(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return u(e,[{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||ea(e)))throw new Error("Error trying to diff '".concat(Me(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new ps(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((function(n){return t(e[n],n)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),e}(),ps=function e(t){s(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},gs=function(){var e=function(){function e(t){s(this,e),this.factories=t}return u(e,[{key:"find",value:function(e){var t,n=this.factories.find((function(t){return t.supports(e)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new be,new ye]]}}}]),e}();return e.\u0275prov=Ce({token:e,providedIn:"root",factory:function(){return new e([new as])}}),e}(),ms=function(){var e=function(){function e(t){s(this,e),this.factories=t}return u(e,[{key:"find",value:function(e){var t=this.factories.find((function(t){return t.supports(e)}));if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new be,new ye]]}}}]),e}();return e.\u0275prov=Ce({token:e,providedIn:"root",factory:function(){return new e([new fs])}}),e}(),ys=[new fs],ks=new gs([new as]),bs=new ms(ys),_s=function(){var e=function e(){s(this,e)};return e.__NG_ELEMENT_ID__=function(){return ws(e,Ya)},e}(),ws=function(e,t){return Eo(e,t,vn(),dn())},Cs=function(){var e=function e(){s(this,e)};return e.__NG_ELEMENT_ID__=function(){return xs(e,Ya)},e}(),xs=function(e,t){return To(e,t,vn(),dn())},Ss={},As=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this)).ngModule=e,r}return u(n,[{key:"resolveComponentFactory",value:function(e){var t=Ot(e);return new Ps(t,this.ngModule)}}]),n}(Za);function Es(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Ts=new Ye("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return rr}}),Ps=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(Yr).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return u(n,[{key:"create",value:function(e,t,n,r){var i,o,a=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,Ss,i);return o!==Ss||r===Ss?o:t.get(n,r,i)}}}(e,r.injector):e,s=a.get(es,Qt),l=a.get(is,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(Jt(e))return e.selectRootElement(t,n===bt.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(u,n,this.componentDef.encapsulation):fi(c,s.createRenderer(null,this.componentDef),function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,f={components:[],scheduler:rr,clean:Ji,playerHandler:null,flags:0},v=xi(0,-1,null,1,0,null,null,null,null,null),p=vi(null,v,f,h,null,null,s,u,l,a);Tn(p,null);try{var g=function(e,t,n,r,i,o){var a=n[1];n[20]=e;var s=pi(a,null,0,3,null,null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(Jo(s,l,!0),null!==e&&($n(i,e,l),null!==s.classes&&bo(i,e,s.classes),null!==s.styles&&ko(i,e,s.styles)));var u=r.createRenderer(e,t),c=vi(n,Ci(t),null,t.onPush?64:16,n[20],s,r,u,void 0);return a.firstCreatePass&&(hr(lr(s,n),a,t.type),Ni(a,s),Di(s,n.length,1)),qi(n,c),n[20]=c}(d,this.componentDef,p,s,u);if(d)if(n)$n(u,d,["ng-version",os.full]);else{var m=function(e){for(var t=[],n=[],r=1,i=2;r<e.length;){var o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!Gr(i))break;i=o}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=m.attrs,k=m.classes;y&&$n(u,d,y),k&&k.length>0&&bo(u,d,k.join(" "))}if(o=en(v,0),void 0!==t)for(var b=o.projection=[],_=0;_<this.ngContentSelectors.length;_++){var w=t[_];b.push(null!=w?Array.from(w):null)}i=function(e,t,n,r,i){var o=n[1],a=function(e,t,n){var r=vn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Mi(e,r,1),ji(e,t,n));var i=mr(t,e,t.length-1,r);zr(i,t);var o=Xt(r,t);return o&&zr(o,t),i}(o,n,t);r.components.push(a),e[8]=a,i&&i.forEach((function(e){return e(a,t)})),t.contentQueries&&t.contentQueries(1,a,n.length-1);var s=vn();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){Ln(s.index-20);var l=n[1];Ri(l,t),Ii(l,n,t.hostVars),Oi(t,a)}return a}(g,this.componentDef,p,f,[za]),gi(v,p,null)}finally{Mn()}var C=new Rs(this.componentType,i,Ao(Ya,o,p),p,o);return v.node.child=o,C}},{key:"inputs",get:function(){return Es(this.componentDef.inputs)}},{key:"outputs",get:function(){return Es(this.componentDef.outputs)}}]),n}(Ja),Rs=function(e){c(n,e);var t=d(n);function n(e,r,i,o,a){var l,u,c,d;return s(this,n),(l=t.call(this)).location=i,l._rootLView=o,l._tNode=a,l.destroyCbs=[],l.instance=r,l.hostView=l.changeDetectorRef=new So(o),u=o[1],c=o,null==(d=u.node)&&(u.node=d=Ai(0,null,2,-1,null,null)),c[6]=d,l.componentType=e,l}return u(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new br(this._tNode,this._rootLView)}}]),n}(function(){return function e(){s(this,e)}}()),Is=void 0,Os=["en",[["a","p"],["AM","PM"],Is],[["AM","PM"],Is,Is],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Is,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Is,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Is,"{1} 'at' {0}",Is],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Ms={};function Ns(e){return e in Ms||(Ms[e]=qe.ng&&qe.ng.common&&qe.ng.common.locales&&qe.ng.common.locales[e]),Ms[e]}var Ls=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function Ds(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var js=new Map,Fs=function(e){c(n,e);var t=d(n);function n(e,r){var i;s(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=f(i),i.destroyCbs=[],i.componentFactoryResolver=new As(f(i));var o=Nt(e),a=e[Je]||null;return a&&Ds(a),i._bootstrapComponents=ir(o.bootstrap),i._r3Injector=Vo(e,r,[{provide:dt,useValue:f(i)},{provide:Za,useValue:i.componentFactoryResolver}],Me(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return u(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ko.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_e.Default;return e===Ko||e===dt||e===Xe?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(dt),Vs=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this)).moduleType=e,null!==Nt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Me(t)," vs ").concat(Me(t.name)))})(n,js.get(n),t),js.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return u(n,[{key:"create",value:function(e){return new Fs(this.moduleType,e)}}]),n}(ht);function zs(e,t,n,r,i){return function(e,t,n,r,i,o,a){var s=t+n;return ra(e,s,i,o)?ta(e,s+2,a?r.call(a,i,o):r(i,o)):Bs(e,s+2)}(dn(),bn(),e,t,n,r,i)}function Bs(e,t){var n=e[t];return n===Xr?void 0:n}function Hs(e,t){var n,r=hn(),i=e+20;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Mt(n.type)),a=ot(sa),s=ar(!1),l=o();return ar(s),ot(a),function(e,t,n,r){var i=n+20;i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}(r,dn(),e,l),l}function Us(e,t,n){var r=dn(),i=function(e,t){return e[t+20]}(r,e);return function(e,t){return Yo.isWrapped(t)&&(t=Yo.unwrap(t),e[un.lFrame.bindingIndex]=Xr),t}(r,function(e,t){return e[1].data[t+20].pure}(r,e)?function(e,t,n,r,i,o){var a=t+n;return na(e,a,i)?ta(e,a+1,o?r.call(o,i):r(i)):Bs(e,a+1)}(r,bn(),t,i.transform,n,i):i.transform(n))}var qs=function(e){c(r,e);var n=d(r);function r(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return s(this,r),(e=n.call(this)).__isAsync=t,e}return u(r,[{key:"emit",value:function(e){t(y(r.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,n,i){var o,a=function(e){return null},s=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},n&&(a=this.__isAsync?function(e){setTimeout((function(){return n(e)}))}:function(e){n(e)}),i&&(s=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var l=t(y(r.prototype),"subscribe",this).call(this,o,a,s);return e instanceof A&&e.add(l),l}}]),r}(z);function Ws(){return this._results[Zo()]()}var $s=function(){function e(){s(this,e),this.dirty=!0,this._results=[],this.changes=new qs,this.length=0;var t=Zo(),n=e.prototype;n[t]||(n[t]=Ws)}return u(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?(n===t&&(n=t.slice(0,r)),e(i,n)):n!==t&&n.push(i)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Ks=function(){function e(t){s(this,e),this.queryList=t,this.matches=null}return u(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Gs=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,e),this.queries=t}return u(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o<r;o++){var a=n.getByIndex(o);i.push(this.queries[a.indexInDeclarationView].clone())}return new e(i)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==sl(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Js=function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;s(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},Qs=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,e),this.queries=t}return u(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,r=0;r<this.length;r++){var i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"track",value:function(e){this.queries.push(e)}},{key:"length",get:function(){return this.queries.length}}]),e}(),Zs=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;s(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return u(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r<n.length;r++){var i=n[r];this.matchTNodeWithReadOption(e,t,Ys(t,i)),this.matchTNodeWithReadOption(e,t,gr(t,e,i,!1,!1))}else n===_s?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,gr(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var r=this.metadata.read;if(null!==r)if(r===Ya||r===Cs||r===_s&&0===t.type)this.addMatch(t.index,-2);else{var i=gr(t,e,r,!1,!1);null!==i&&this.addMatch(t.index,i)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function Ys(e,t){var n=e.localNames;if(null!==n)for(var r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function Xs(e,t,n,r){return-1===n?function(e,t){return 3===e.type||4===e.type?Ao(Ya,e,t):0===e.type?Eo(_s,Ya,e,t):null}(t,e):-2===n?function(e,t,n){return n===Ya?Ao(Ya,t,e):n===_s?Eo(_s,Ya,t,e):n===Cs?To(Cs,Ya,t,e):void 0}(e,t,r):mr(e,e[1],n,t)}function el(e,t,n,r){var i=t[19].queries[r];if(null===i.matches){for(var o=e.data,a=n.matches,s=[],l=0;l<a.length;l+=2){var u=a[l];s.push(u<0?null:Xs(t,o[u],a[l+1],n.metadata.read))}i.matches=s}return i.matches}function tl(e){var t=dn(),n=hn(),r=Sn();An(r+1);var i=sl(n,r);if(e.dirty&&rn(t)===i.metadata.isStatic){if(null===i.matches)e.reset([]);else{var o=i.crossesNgTemplate?function e(t,n,r,i){var o=t.queries.getByIndex(r),a=o.matches;if(null!==a)for(var s=el(t,n,o,r),l=0;l<a.length;l+=2){var u=a[l];if(u>0)i.push(s[l/2]);else{for(var c=a[l+1],d=n[-u],h=10;h<d.length;h++){var f=d[h];f[17]===f[3]&&e(f[1],f,c,i)}if(null!==d[9])for(var v=d[9],p=0;p<v.length;p++){var g=v[p];e(g[1],g,c,i)}}}return i}(n,t,r,[]):el(n,t,i,r);e.reset(o),e.notifyOnChanges()}return!0}return!1}function nl(e,t,n){!function(e,t,n,r,i,o){e.firstCreatePass&&al(e,new Js(n,r,!1,i),-1),ol(e,t)}(hn(),dn(),e,t,n)}function rl(e,t,n,r){!function(e,t,n,r,i,o,a,s){e.firstCreatePass&&(al(e,new Js(n,r,!1,i),a.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,s)),ol(e,t)}(hn(),dn(),t,n,r,0,vn(),e)}function il(){return e=dn(),t=Sn(),e[19].queries[t].queryList;var e,t}function ol(e,t){var n=new $s;Si(e,t,n,n.destroy),null===t[19]&&(t[19]=new Gs),t[19].queries.push(new Ks(n))}function al(e,t,n){null===e.queries&&(e.queries=new Qs),e.queries.track(new Zs(t,n))}function sl(e,t){return e.queries.getByIndex(t)}var ll=new Ye("Application Initializer"),ul=function(){var e=function(){function e(t){var n=this;s(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return u(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();ma(i)&&t.push(i)}Promise.all(t).then((function(){n()})).catch((function(t){e.reject(t)})),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(st(ll,8))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}(),cl=new Ye("AppId"),dl={provide:cl,useFactory:function(){return"".concat(hl()).concat(hl()).concat(hl())},deps:[]};function hl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var fl=new Ye("Platform Initializer"),vl=new Ye("Platform ID"),pl=new Ye("appBootstrapListener"),gl=function(){var e=function(){function e(){s(this,e)}return u(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}(),ml=new Ye("LocaleId"),yl=new Ye("DefaultCurrencyCode"),kl=function e(t,n){s(this,e),this.ngModuleFactory=t,this.componentFactories=n},bl=function(e){return new Vs(e)},_l=bl,wl=function(e){return Promise.resolve(bl(e))},Cl=function(e){var t=bl(e),n=ir(Nt(e).declarations).reduce((function(e,t){var n=Ot(t);return n&&e.push(new Ps(n)),e}),[]);return new kl(t,n)},xl=Cl,Sl=function(e){return Promise.resolve(Cl(e))},Al=function(){var e=function(){function e(){s(this,e),this.compileModuleSync=_l,this.compileModuleAsync=wl,this.compileModuleAndAllComponentsSync=xl,this.compileModuleAndAllComponentsAsync=Sl}return u(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}(),El=Promise.resolve(0);function Tl(e){"undefined"==typeof Zone?El.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Pl=function(){function e(t){var n,r,i=t.enableLongStackTrace,o=void 0!==i&&i,a=t.shouldCoalesceEventChangeDetection,l=void 0!==a&&a;if(s(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new qs(!1),this.onMicrotaskEmpty=new qs(!1),this.onStable=new qs(!1),this.onError=new qs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=l,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=qe.requestAnimationFrame,t=qe.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,r=!!(n=this).shouldCoalesceEventChangeDetection&&n.nativeRequestAnimationFrame&&function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(qe,(function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(function(){e.lastRequestAnimationFrameId=-1,Ml(e),Ol(e)}),void 0,(function(){}),(function(){}))),e.fakeTopEventTask.invoke()})),Ml(e))}(n)},n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:r},onInvokeTask:function(e,t,i,o,a,s){try{return Nl(n),e.invokeTask(i,o,a,s)}finally{r&&"eventTask"===o.type&&r(),Ll(n)}},onInvoke:function(e,t,r,i,o,a,s){try{return Nl(n),e.invoke(r,i,o,a,s)}finally{Ll(n)}},onHasTask:function(e,t,r,i){e.hasTask(r,i),t===r&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,Ml(n),Ol(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,r,i){return e.handleError(r,i),n.runOutsideAngular((function(){return n.onError.emit(i)})),!1}})}return u(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,Il,Rl,Rl);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function Rl(){}var Il={};function Ol(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular((function(){return e.onStable.emit(null)}))}finally{e.isStable=!0}}}function Ml(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Nl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ll(e){e._nesting--,Ol(e)}var Dl,jl=function(){function e(){s(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new qs,this.onMicrotaskEmpty=new qs,this.onStable=new qs,this.onError=new qs}return u(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,r){return e.apply(t,n)}}]),e}(),Fl=function(){var e=function(){function e(t){var n=this;s(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return u(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){Pl.assertNotInAngularZone(),Tl((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Tl((function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1}));else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(st(Pl))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}(),Vl=function(){var e=function(){function e(){s(this,e),this._applications=new Map,zl.addToWindow(this)}return u(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return zl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}(),zl=new(function(){function e(){s(this,e)}return u(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Bl=new Ye("AllowMultipleToken"),Hl=function e(t,n){s(this,e),this.name=t,this.token=n};function Ul(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new Ye(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=ql();if(!o||o.injector.get(Bl,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:Mo,useValue:"platform"});!function(e){if(Dl&&!Dl.destroyed&&!Dl.injector.get(Bl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Dl=e.get(Wl);var t=e.get(fl,null);t&&t.forEach((function(e){return e()}))}(Ko.create({providers:a,name:r}))}return function(e){var t=ql();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function ql(){return Dl&&!Dl.destroyed?Dl:null}var Wl=function(){var e=function(){function e(t){s(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return u(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new jl:("zone.js"===n?void 0:n)||new Pl({enableLongStackTrace:Or(),shouldCoalesceEventChangeDetection:r})),a=[{provide:Pl,useValue:o}];return o.run((function(){var t=Ko.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Ar,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Jl(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((a=n.injector.get(ul)).runInitializers(),a.donePromise.then((function(){return Ds(n.injector.get(ml,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return ma(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=$l({},n);return function(e,t,n){var r=new Vs(n);return Promise.resolve(r)}(0,0,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Gl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Me(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(st(Ko))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}();function $l(e,t){return Array.isArray(t)?t.reduce($l,e):Object.assign(Object.assign({},e),t)}var Kl,Gl=((Kl=function(){function e(t,n,r,i,o,a){var l=this;s(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Or(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run((function(){l.tick()}))}});var u=new N((function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular((function(){e.next(l._stable),e.complete()}))})),c=new N((function(e){var t;l._zone.runOutsideAngular((function(){t=l._zone.onStable.subscribe((function(){Pl.assertNotInAngularZone(),Tl((function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))}))}))}));var n=l._zone.onUnstable.subscribe((function(){Pl.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=se(u,c.pipe((function(e){return le()((t=ve,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,he);return r.source=e,r.subjectFactory=n,r})(e));var t})))}return u(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Ja?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(dt),o=n.create(Ko.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(Fl,null);return a&&o.injector.get(Vl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Or()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=r(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var i,o=r(this._views);try{for(o.s();!(i=o.n()).done;)i.value.checkNoChanges()}catch(a){o.e(a)}finally{o.f()}}}catch(s){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(s)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Jl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(pl,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Jl(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Kl)(st(Pl),st(gl),st(Ko),st(Ar),st(Za),st(ul))},Kl.\u0275prov=Ce({token:Kl,factory:Kl.\u0275fac}),Kl);function Jl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ql=function e(){s(this,e)},Zl=function e(){s(this,e)},Yl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Xl=function(){var e=function(){function e(t,n){s(this,e),this._compiler=t,this._config=n||Yl}return u(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=n(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),l("zn8P")(i).then((function(e){return e[o]})).then((function(e){return eu(e,i,o)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=n(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),l("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(e){return e[i+o]})).then((function(e){return eu(e,r,i)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(st(Al),st(Zl,8))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac}),e}();function eu(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var tu=Ul(null,"core",[{provide:vl,useValue:"unknown"},{provide:Wl,deps:[Ko]},{provide:Vl,deps:[]},{provide:gl,deps:[]}]),nu=[{provide:Gl,useClass:Gl,deps:[Pl,gl,Ko,Ar,Za,ul]},{provide:Ts,deps:[Pl],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:ul,useClass:ul,deps:[[new ye,ll]]},{provide:Al,useClass:Al,deps:[]},dl,{provide:gs,useFactory:function(){return ks},deps:[]},{provide:ms,useFactory:function(){return bs},deps:[]},{provide:ml,useFactory:function(e){return Ds(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new me(ml),new ye,new be]]},{provide:yl,useValue:"USD"}],ru=function(){var e=function e(t){s(this,e)};return e.\u0275mod=Tt({type:e}),e.\u0275inj=xe({factory:function(t){return new(t||e)(st(Gl))},providers:nu}),e}(),iu={production:!0,configLocal:l("ek6d")},ou=null;function au(){return ou}var su,lu=new Ye("DocumentToken"),uu=((su=function e(){s(this,e)}).\u0275fac=function(e){return new(e||su)},su.\u0275prov=Ce({factory:cu,token:su,providedIn:"platform"}),su);function cu(){return st(fu)}var du,hu=new Ye("Location Initialized"),fu=((du=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this))._doc=e,r._init(),r}return u(n,[{key:"_init",value:function(){this.location=au().getLocation(),this._history=au().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return au().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){au().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){au().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){vu()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){vu()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(uu)).\u0275fac=function(e){return new(e||du)(st(lu))},du.\u0275prov=Ce({factory:pu,token:du,providedIn:"platform"}),du);function vu(){return!!window.history.pushState}function pu(){return new fu(st(lu))}function gu(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function mu(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function yu(e){return e&&"?"!==e[0]?"?"+e:e}var ku,bu=((ku=function e(){s(this,e)}).\u0275fac=function(e){return new(e||ku)},ku.\u0275prov=Ce({factory:_u,token:ku,providedIn:"root"}),ku);function _u(e){var t=st(lu).location;return new Au(st(uu),t&&t.origin||"")}var wu,Cu,xu,Su=new Ye("appBaseHref"),Au=((xu=function(e){c(n,e);var t=d(n);function n(e,r){var i;if(s(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=r,h(i)}return u(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return gu(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+yu(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+yu(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+yu(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(bu)).\u0275fac=function(e){return new(e||xu)(st(uu),st(Su,8))},xu.\u0275prov=Ce({token:xu,factory:xu.\u0275fac}),xu),Eu=((Cu=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return u(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=gu(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+yu(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+yu(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(bu)).\u0275fac=function(e){return new(e||Cu)(st(uu),st(Su,8))},Cu.\u0275prov=Ce({token:Cu,factory:Cu.\u0275fac}),Cu),Tu=((wu=function(){function e(t,n){var r=this;s(this,e),this._subject=new qs,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=mu(Ru(i)),this._platformStrategy.onPopState((function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})}))}return u(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+yu(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Ru(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+yu(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+yu(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)})))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||wu)(st(bu),st(uu))},wu.normalizeQueryParams=yu,wu.joinWithSlash=gu,wu.stripTrailingSlash=mu,wu.\u0275prov=Ce({factory:Pu,token:wu,providedIn:"root"}),wu);function Pu(){return new Tu(st(bu),st(uu))}function Ru(e){return e.replace(/\/index.html$/,"")}var Iu,Ou=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Mu=function e(){s(this,e)},Nu=((Iu=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this)).locale=e,r}return u(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Ns(t);if(n)return n;var r=t.split("-")[0];if(n=Ns(r))return n;if("en"===r)return Os;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Ls.PluralCase]}(t||this.locale)(e)){case Ou.Zero:return"zero";case Ou.One:return"one";case Ou.Two:return"two";case Ou.Few:return"few";case Ou.Many:return"many";default:return"other"}}}]),n}(Mu)).\u0275fac=function(e){return new(e||Iu)(st(ml))},Iu.\u0275prov=Ce({token:Iu,factory:Iu.\u0275fac}),Iu);function Lu(e,t){t=encodeURIComponent(t);var i,o=r(e.split(";"));try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.indexOf("="),l=n(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),u=l[0],c=l[1];if(u.trim()===t)return decodeURIComponent(c)}}catch(d){o.e(d)}finally{o.f()}return null}var Du,ju,Fu=function(){function e(t,n,r,i){s(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return u(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Vu=((Du=function(){function e(t,n,r){s(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return u(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Fu(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new zu(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var l=new zu(e,s);n.push(l)}}));for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,o=this._viewContainer.length;i<o;i++){var a=this._viewContainer.get(i);a.context.index=i,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange((function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item}))}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}},{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",set:function(e){Or()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(e),". See https://angular.io/api/common/NgForOf#change-propagation for more information.")),this._trackByFn=e},get:function(){return this._trackByFn}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||Du)(sa(Cs),sa(_s),sa(gs))},Du.\u0275dir=Rt({type:Du,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Du),zu=function e(t,n){s(this,e),this.record=t,this.view=n},Bu=((ju=function(){function e(t,n){s(this,e),this._viewContainer=t,this._context=new Hu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return u(e,[{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}},{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Uu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Uu("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||ju)(sa(Cs),sa(_s))},ju.\u0275dir=Rt({type:ju,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),ju),Hu=function e(){s(this,e),this.$implicit=null,this.ngIf=null};function Uu(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Me(t),"'."))}var qu,Wu,$u,Ku,Gu,Ju=function(){function e(t,n){s(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return u(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),Qu=((Gu=function(){function e(){s(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return u(e,[{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}},{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}}]),e}()).\u0275fac=function(e){return new(e||Gu)},Gu.\u0275dir=Rt({type:Gu,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),Gu),Zu=((Ku=function(){function e(t,n,r){s(this,e),this.ngSwitch=r,r._addCase(),this._view=new Ju(t,n)}return u(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}()).\u0275fac=function(e){return new(e||Ku)(sa(Cs),sa(_s),sa(Qu,1))},Ku.\u0275dir=Rt({type:Ku,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Ku),Yu=(($u=function e(t,n,r){s(this,e),r._addDefault(new Ju(t,n))}).\u0275fac=function(e){return new(e||$u)(sa(Cs),sa(_s),sa(Qu,1))},$u.\u0275dir=Rt({type:$u,selectors:[["","ngSwitchDefault",""]]}),$u),Xu=((Wu=function e(){s(this,e)}).\u0275mod=Tt({type:Wu}),Wu.\u0275inj=xe({factory:function(e){return new(e||Wu)},providers:[{provide:Mu,useClass:Nu}]}),Wu),ec=((qu=function e(){s(this,e)}).\u0275prov=Ce({token:qu,providedIn:"root",factory:function(){return new tc(st(lu),window,st(Ar))}}),qu),tc=function(){function e(t,n,r){s(this,e),this.document=t,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return u(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var e=nc(this.window.history)||nc(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(e){return!1}}}]),e}();function nc(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var rc,ic,oc,ac,sc=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=lc||(lc=document.querySelector("base"))?lc.getAttribute("href"):null;return null==n?null:(t=n,rc||(rc=document.createElement("a")),rc.setAttribute("href",t),"/"===rc.pathname.charAt(0)?rc.pathname:"/"+rc.pathname)}},{key:"resetBaseElement",value:function(){lc=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Lu(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,ou||(ou=e)}}]),n}(function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.call(this)}return u(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){s(this,e)}}())),lc=null,uc=new Ye("TRANSITION_ID"),cc=[{provide:ll,useFactory:function(e,t,n){return function(){n.get(ul).donePromise.then((function(){var n=au();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[uc,lu,Ko],multi:!0}],dc=function(){function e(){s(this,e)}return u(e,[{key:"addToWindow",value:function(e){qe.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},qe.getAllAngularTestabilities=function(){return e.getAllTestabilities()},qe.getAllAngularRootElements=function(){return e.getAllRootElements()},qe.frameworkStabilizers||(qe.frameworkStabilizers=[]),qe.frameworkStabilizers.push((function(e){var t=qe.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?au().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,zl=t}}]),e}(),hc=new Ye("EventManagerPlugins"),fc=((ic=function(){function e(t,n){var r=this;s(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return u(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)}}]),e}()).\u0275fac=function(e){return new(e||ic)(st(hc),st(Pl))},ic.\u0275prov=Ce({token:ic,factory:ic.\u0275fac}),ic),vc=function(){function e(t){s(this,e),this._doc=t}return u(e,[{key:"addGlobalEventListener",value:function(e,t,n){var r=au().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(t));return this.addEventListener(r,t,n)}}]),e}(),pc=((ac=function(){function e(){s(this,e),this._stylesSet=new Set}return u(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||ac)},ac.\u0275prov=Ce({token:ac,factory:ac.\u0275fac}),ac),gc=((oc=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this))._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return u(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach((function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))}))}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(e){return au().remove(e)}))}}]),n}(pc)).\u0275fac=function(e){return new(e||oc)(st(lu))},oc.\u0275prov=Ce({token:oc,factory:oc.\u0275fac}),oc),mc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},yc=/%COMP%/g;function kc(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?kc(e,i,n):(i=i.replace(yc,e),n.push(i))}return n}function bc(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var _c,wc,Cc,xc,Sc=((_c=function(){function e(t,n,r){s(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Ac(t)}return u(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case bt.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Ec(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case bt.Native:case bt.ShadowDom:return new Tc(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=kc(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||_c)(st(fc),st(gc),st(cl))},_c.\u0275prov=Ce({token:_c,factory:_c.\u0275fac}),_c),Ac=function(){function e(t){s(this,e),this.eventManager=t,this.data=Object.create(null)}return u(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(mc[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,r){if(r){t=r+":"+t;var i=mc[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var r=mc[n];r?e.removeAttributeNS(r,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,r){r&ts.DashCase?e.style.setProperty(t,n,r&ts.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&ts.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,bc(n)):this.eventManager.addEventListener(e,t,bc(n))}}]),e}(),Ec=function(e){c(r,e);var n=d(r);function r(e,t,i,o){var a;s(this,r),(a=n.call(this,e)).component=i;var l,u=kc(o+"-"+i.id,i.styles,[]);return t.addStyles(u),a.contentAttr="_ngcontent-%COMP%".replace(yc,o+"-"+i.id),a.hostAttr=(l=o+"-"+i.id,"_nghost-%COMP%".replace(yc,l)),a}return u(r,[{key:"applyToHost",value:function(e){t(y(r.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,n){var i=t(y(r.prototype),"createElement",this).call(this,e,n);return t(y(r.prototype),"setAttribute",this).call(this,i,this.contentAttr,""),i}}]),r}(Ac),Tc=function(e){c(r,e);var n=d(r);function r(e,t,i,o){var a;s(this,r),(a=n.call(this,e)).sharedStylesHost=t,a.hostEl=i,a.component=o,a.shadowRoot=o.encapsulation===bt.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var l=kc(o.id,o.styles,[]),u=0;u<l.length;u++){var c=document.createElement("style");c.textContent=l[u],a.shadowRoot.appendChild(c)}return a}return u(r,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,n){return t(y(r.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),n)}},{key:"insertBefore",value:function(e,n,i){return t(y(r.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),n,i)}},{key:"removeChild",value:function(e,n){return t(y(r.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),n)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(t(y(r.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),r}(Ac),Pc=((wc=function(e){c(n,e);var t=d(n);function n(e){return s(this,n),t.call(this,e)}return u(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(vc)).\u0275fac=function(e){return new(e||wc)(st(lu))},wc.\u0275prov=Ce({token:wc,factory:wc.\u0275fac}),wc),Rc=["alt","control","meta","shift"],Ic={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Oc={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Mc={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Nc=((Cc=function(e){c(n,e);var t=d(n);function n(e){return s(this,n),t.call(this,e)}return u(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,r){var i=n.parseEventName(t),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return au().onAndCancel(e,i.domEventName,o)}))}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),o="";if(Rc.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Oc.hasOwnProperty(t)&&(t=Oc[t]))}return Ic[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Rc.forEach((function(r){r!=n&&(0,Mc[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(vc)).\u0275fac=function(e){return new(e||Cc)(st(lu))},Cc.\u0275prov=Ce({token:Cc,factory:Cc.\u0275fac}),Cc),Lc=Ul(tu,"browser",[{provide:vl,useValue:"browser"},{provide:fl,useValue:function(){sc.makeCurrent(),dc.init()},multi:!0},{provide:lu,useFactory:function(){return function(e){Gt=e}(document),document},deps:[]}]),Dc=[[],{provide:Mo,useValue:"root"},{provide:Ar,useFactory:function(){return new Ar},deps:[]},{provide:hc,useClass:Pc,multi:!0,deps:[lu,Pl,vl]},{provide:hc,useClass:Nc,multi:!0,deps:[lu]},[],{provide:Sc,useClass:Sc,deps:[fc,gc,cl]},{provide:es,useExisting:Sc},{provide:pc,useExisting:gc},{provide:gc,useClass:gc,deps:[lu]},{provide:Fl,useClass:Fl,deps:[Pl]},{provide:fc,useClass:fc,deps:[hc,Pl]},[]],jc=((xc=function(){function e(t){if(s(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return u(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:cl,useValue:t.appId},{provide:uc,useExisting:cl},cc]}}}]),e}()).\u0275mod=Tt({type:xc}),xc.\u0275inj=xe({factory:function(e){return new(e||xc)(st(xc,12))},providers:Dc,imports:[Xu,ru]}),xc);"undefined"!=typeof window&&window;var Fc=function(e){c(r,e);var n=d(r);function r(e){var t;return s(this,r),(t=n.call(this))._value=e,t}return u(r,[{key:"_subscribe",value:function(e){var n=t(y(r.prototype),"_subscribe",this).call(this,e);return n&&!n.closed&&e.next(this._value),n}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new j;return this._value}},{key:"next",value:function(e){t(y(r.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),r}(z),Vc=function(e){c(r,e);var n=d(r);function r(e,t){var i;return s(this,r),(i=n.call(this,e,t)).scheduler=e,i.work=t,i}return u(r,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?t(y(r.prototype),"schedule",this).call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,n){return n>0||this.closed?t(y(r.prototype),"execute",this).call(this,e,n):this._execute(e,n)}},{key:"requestAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?t(y(r.prototype),"requestAsyncId",this).call(this,e,n,i):e.flush(this)}}]),r}(function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.pending=!1,i}return u(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){c(n,e);var t=d(n);function n(e,r){return s(this,n),t.call(this)}return u(n,[{key:"schedule",value:function(e){return this}}]),n}(A))),zc=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;s(this,e),this.SchedulerAction=t,this.now=n}return u(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),Bc=new(function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(function(e){c(r,e);var n=d(r);function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zc.now;return s(this,r),(t=n.call(this,e,(function(){return r.delegate&&r.delegate!==f(t)?r.delegate.now():i()}))).actions=[],t.active=!1,t.scheduled=void 0,t}return u(r,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return r.delegate&&r.delegate!==this?r.delegate.schedule(e,n,i):t(y(r.prototype),"schedule",this).call(this,e,n,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),r}(zc)))(Vc),Hc=Bc,Uc=new N((function(e){return e.complete()}));function qc(e){return e?function(e){return new N((function(t){return e.schedule((function(){return t.complete()}))}))}(e):Uc}function Wc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[t.length-1];return H(r)?(t.pop(),Z(t,r)):ae(t)}function $c(e,t){return new N(t?function(n){return t.schedule(Kc,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function Kc(e){var t=e.error;e.subscriber.error(t)}var Gc,Jc=((Gc=function(){function e(t,n,r){s(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return u(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Wc(this.value);case"E":return $c(this.error);case"C":return qc()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new Gc("C"),Gc.undefinedValueNotification=new Gc("N",void 0),Gc),Qc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;s(this,e),this.scheduler=t,this.delay=n}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new Zc(e,this.scheduler,this.delay))}}]),e}(),Zc=function(e){c(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return s(this,n),(i=t.call(this,e)).scheduler=r,i.delay=o,i}return u(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new Yc(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(Jc.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(Jc.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Jc.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(P),Yc=function e(t,n){s(this,e),this.notification=t,this.destination=n},Xc=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(P),ed=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return u(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(P);function td(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new ed(e,n,r);if(!i.closed)return t instanceof N?t.subscribe(i):Q(t)(i)}var nd=function(){function e(t,n){s(this,e),this.observables=t,this.project=n}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new rd(e,this.observables,this.project))}}]),e}(),rd=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;s(this,n),(o=t.call(this,e)).observables=r,o.project=i,o.toRespond=[];var a=r.length;o.values=new Array(a);for(var l=0;l<a;l++)o.toRespond.push(l);for(var u=0;u<a;u++)o.add(td(f(o),r[u],void 0,u));return o}return u(n,[{key:"notifyNext",value:function(e,t,n){this.values[n]=t;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(i(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(Xc);function id(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new od(e,t,n))}}var od=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new ad(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),ad=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return u(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(P);function sd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.length;if(0===r)throw new Error("list of properties cannot be empty.");return function(e){return U(function(e,t){return function(n){for(var r=n,i=0;i<t;i++){var o=null!=r?r[e[i]]:void 0;if(void 0===o)return;r=o}return r}}(t,r))(e)}}function ld(e,t){return function(n){return n.lift(new cd(e,t))}}var ud,cd=function(){function e(t,n){s(this,e),this.compare=t,this.keySelector=n}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new dd(e,this.compare,this.keySelector))}}]),e}(),dd=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this,e)).keySelector=i,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return u(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}]),n}(P),hd={},fd="@ngrx/store/init",vd=((ud=function(e){c(r,e);var n=d(r);function r(){return s(this,r),n.call(this,{type:fd})}return u(r,[{key:"next",value:function(e){if("function"==typeof e)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===e)throw new TypeError("Actions must be objects");if(void 0===e.type)throw new TypeError("Actions must have a type property");t(y(r.prototype),"next",this).call(this,e)}},{key:"complete",value:function(){}},{key:"ngOnDestroy",value:function(){t(y(r.prototype),"complete",this).call(this)}}]),r}(Fc)).\u0275fac=function(e){return new(e||ud)},ud.\u0275prov=Ce({token:ud,factory:ud.\u0275fac}),ud),pd=[vd],gd=new Ye("@ngrx/store Internal Root Guard"),md=new Ye("@ngrx/store Internal Initial State"),yd=new Ye("@ngrx/store Initial State"),kd=new Ye("@ngrx/store Reducer Factory"),bd=new Ye("@ngrx/store Internal Reducer Factory Provider"),_d=new Ye("@ngrx/store Initial Reducers"),wd=new Ye("@ngrx/store Internal Initial Reducers"),Cd=new Ye("@ngrx/store Store Features"),xd=new Ye("@ngrx/store Internal Store Reducers"),Sd=new Ye("@ngrx/store Internal Feature Reducers"),Ad=new Ye("@ngrx/store Internal Feature Configs"),Ed=new Ye("@ngrx/store Internal Store Features"),Td=new Ye("@ngrx/store Internal Feature Reducers Token"),Pd=new Ye("@ngrx/store Feature Reducers"),Rd=new Ye("@ngrx/store User Provided Meta Reducers"),Id=new Ye("@ngrx/store Meta Reducers"),Od=new Ye("@ngrx/store Internal Resolved Meta Reducers"),Md=new Ye("@ngrx/store User Runtime Checks Config"),Nd=new Ye("@ngrx/store Internal User Runtime Checks Config"),Ld=new Ye("@ngrx/store Internal Runtime Checks"),Dd=new Ye("@ngrx/store Check if Action types are unique");function jd(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.keys(e),r={},i=0;i<n.length;i++){var o=n[i];"function"==typeof e[o]&&(r[o]=e[o])}var a=Object.keys(r);return function(e,n){e=void 0===e?t:e;for(var i=!1,o={},s=0;s<a.length;s++){var l=a[s],u=e[l],c=(0,r[l])(u,n);o[l]=c,i=i||c!==u}return i?o:e}}function Fd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){if(0===t.length)return e;var n=t[t.length-1];return t.slice(0,-1).reduceRight((function(e,t){return t(e)}),n(e))}}function Vd(e,t){return Array.isArray(t)&&t.length>0&&(e=Fd.apply(null,[].concat(i(t),[e]))),function(t,n){var r=e(t);return function(e,t){return r(e=void 0===e?n:e,t)}}}var zd,Bd,Hd,Ud=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(N),qd=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(vd),Wd=((zd=function(t){c(r,t);var n=d(r);function r(e,t,i,o){var a;return s(this,r),(a=n.call(this,o(i,t))).dispatcher=e,a.initialState=t,a.reducers=i,a.reducerFactory=o,a}return u(r,[{key:"addFeature",value:function(e){this.addFeatures([e])}},{key:"addFeatures",value:function(e){var t=e.reduce((function(e,t){var n=t.reducers,r=t.reducerFactory,o=t.metaReducers,a=t.initialState,s=t.key,l="function"==typeof n?function(e){var t=Array.isArray(e)&&e.length>0?Fd.apply(void 0,i(e)):function(e){return e};return function(e,n){return e=t(e),function(t,r){return e(t=void 0===t?n:t,r)}}}(o)(n,a):Vd(r,o)(n,a);return e[s]=l,e}),{});this.addReducers(t)}},{key:"removeFeature",value:function(e){this.removeFeatures([e])}},{key:"removeFeatures",value:function(e){this.removeReducers(e.map((function(e){return e.key})))}},{key:"addReducer",value:function(t,n){this.addReducers(e({},t,n))}},{key:"addReducers",value:function(e){this.reducers=Object.assign(Object.assign({},this.reducers),e),this.updateReducers(Object.keys(e))}},{key:"removeReducer",value:function(e){this.removeReducers([e])}},{key:"removeReducers",value:function(t){var n=this;t.forEach((function(t){var r,i;n.reducers=(r=n.reducers,i=t,Object.keys(r).filter((function(e){return e!==i})).reduce((function(t,n){return Object.assign(t,e({},n,r[n]))}),{}))})),this.updateReducers(t)}},{key:"updateReducers",value:function(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:"@ngrx/store/update-reducers",features:e})}},{key:"ngOnDestroy",value:function(){this.complete()}}]),r}(Fc)).\u0275fac=function(e){return new(e||zd)(st(qd),st(yd),st(_d),st(kd))},zd.\u0275prov=Ce({token:zd,factory:zd.\u0275fac}),zd),$d=[Wd,{provide:Ud,useExisting:Wd},{provide:qd,useExisting:vd}],Kd=((Bd=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"ngOnDestroy",value:function(){this.complete()}}]),n}(z)).\u0275fac=function(e){return Gd(e||Bd)},Bd.\u0275prov=Ce({token:Bd,factory:Bd.\u0275fac}),Bd),Gd=wr(Kd),Jd=[Kd],Qd=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(N),Zd=((Hd=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;s(this,n),a=t.call(this,o);var l=e.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Qc(e,t))}}(Bc)).pipe(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new nd(t,n))}}(r)).pipe(id(Yd,{state:o}));return a.stateSubscription=l.subscribe((function(e){var t=e.state,n=e.action;a.next(t),i.next(n)})),a}return u(n,[{key:"ngOnDestroy",value:function(){this.stateSubscription.unsubscribe(),this.complete()}}]),n}(Fc)).\u0275fac=function(e){return new(e||Hd)(st(vd),st(Ud),st(Kd),st(yd))},Hd.\u0275prov=Ce({token:Hd,factory:Hd.\u0275fac}),Hd.INIT=fd,Hd);function Yd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{state:void 0},t=arguments.length>1?arguments[1]:void 0,r=n(t,2),i=r[0],o=r[1],a=e.state;return{state:o(a,i),action:i}}var Xd,eh=[Zd,{provide:Qd,useExisting:Zd}],th=((Xd=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this)).actionsObserver=r,o.reducerManager=i,o.source=e,o}return u(n,[{key:"select",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return rh.call.apply(rh,[null,e].concat(n))(this)}},{key:"lift",value:function(e){var t=new n(this,this.actionsObserver,this.reducerManager);return t.operator=e,t}},{key:"dispatch",value:function(e){this.actionsObserver.next(e)}},{key:"next",value:function(e){this.actionsObserver.next(e)}},{key:"error",value:function(e){this.actionsObserver.error(e)}},{key:"complete",value:function(){this.actionsObserver.complete()}},{key:"addReducer",value:function(e,t){this.reducerManager.addReducer(e,t)}},{key:"removeReducer",value:function(e){this.reducerManager.removeReducer(e)}}]),n}(N)).\u0275fac=function(e){return new(e||Xd)(st(Qd),st(vd),st(Wd))},Xd.\u0275prov=Ce({token:Xd,factory:Xd.\u0275fac}),Xd),nh=[th];function rh(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return function(n){var o;if("string"==typeof e){var a=[t].concat(r).filter(Boolean);o=n.pipe(sd.apply(void 0,[e].concat(i(a))))}else{if("function"!=typeof e)throw new TypeError("Unexpected type '".concat(typeof e,"' in select operator, expected 'string' or 'function'"));o=n.pipe(U((function(n){return e(n,t)})))}return o.pipe(ld())}}var ih="https://ngrx.io/guide/store/configuration/runtime-checks";function oh(e){return void 0===e}function ah(e){return null===e}function sh(e){return Array.isArray(e)}function lh(e){return"object"==typeof e&&null!==e}function uh(e){return"function"==typeof e}function ch(e){Object.freeze(e);var t=uh(e);return Object.getOwnPropertyNames(e).forEach((function(n){if(!n.startsWith("\u0275")&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,n)&&(!t||"caller"!==n&&"callee"!==n&&"arguments"!==n)){var r=e[n];!lh(r)&&!uh(r)||Object.isFrozen(r)||ch(r)}})),e}function dh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(oh(e)||ah(e))&&0===t.length?{path:["root"],value:e}:Object.keys(e).reduce((function(n,r){if(n)return n;var o=e[r];return function(e){return uh(e)&&e.hasOwnProperty("\u0275cmp")}(o)?n:!(oh(o)||ah(o)||function(e){return"number"==typeof e}(o)||function(e){return"boolean"==typeof e}(o)||function(e){return"string"==typeof e}(o)||sh(o))&&(function(e){if(!function(e){return lh(e)&&!sh(e)}(e))return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(o)?dh(o,[].concat(i(t),[r])):{path:[].concat(i(t),[r]),value:o})}),!1)}function hh(e,t){if(!1!==e){var n=e.path.join("."),r=new Error("Detected unserializable ".concat(t,' at "').concat(n,'". ').concat(ih,"#strict").concat(t,"serializability"));throw r.value=e.value,r.unserializablePath=n,r}}function fh(e){return Or()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},e):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function vh(e){var t=e.strictActionSerializability,n=e.strictStateSerializability;return function(e){return t||n?function(e,t){return function(n,r){t.action(r)&&hh(dh(r),"action");var i=e(n,r);return t.state()&&hh(dh(i),"state"),i}}(e,{action:function(e){return t&&!gh(e)},state:function(){return n}}):e}}function ph(e){var t=e.strictActionImmutability,n=e.strictStateImmutability;return function(e){return t||n?function(e,t){return function(n,r){var i=t.action(r)?ch(r):r,o=e(n,i);return t.state()?ch(o):o}}(e,{action:function(e){return t&&!gh(e)},state:function(){return n}}):e}}function gh(e){return e.type.startsWith("@ngrx")}function mh(e){var t=e.strictActionWithinNgZone;return function(e){return t?function(e,t){return function(n,r){if(t.action(r)&&!Pl.isInAngularZone())throw new Error("Action '".concat(r.type,"' running outside NgZone. ").concat(ih,"#strictactionwithinngzone"));return e(n,r)}}(e,{action:function(e){return t&&!gh(e)}}):e}}function yh(){return[{provide:Dd,multi:!0,deps:[Ld],useFactory:bh}]}function kh(e){return e}function bh(e){if(e.strictActionTypeUniqueness){var t=Object.entries(hd).filter((function(e){return n(e,2)[1]>1})).map((function(e){return n(e,1)[0]}));if(t.length)throw new Error("Action types are registered more than once, ".concat(t.map((function(e){return'"'.concat(e,'"')})).join(", "),". ").concat(ih,"#strictactiontypeuniqueness"))}}var _h,wh,Ch,xh=((Ch=function e(t,n,r,i,o,a){s(this,e)}).\u0275mod=Tt({type:Ch}),Ch.\u0275inj=xe({factory:function(e){return new(e||Ch)(st(vd),st(Ud),st(Kd),st(th),st(gd,8),st(Dd,8))}}),Ch),Sh=((wh=function(){function e(t,n,r,i,o){s(this,e),this.features=t,this.featureReducers=n,this.reducerManager=r;var a=t.map((function(e,t){var r=n.shift()[t];return Object.assign(Object.assign({},e),{reducers:r,initialState:Rh(e.initialState)})}));r.addFeatures(a)}return u(e,[{key:"ngOnDestroy",value:function(){this.reducerManager.removeFeatures(this.features)}}]),e}()).\u0275mod=Tt({type:wh}),wh.\u0275inj=xe({factory:function(e){return new(e||wh)(st(Ed),st(Pd),st(Wd),st(xh),st(Dd,8))}}),wh),Ah=((_h=function(){function e(){s(this,e)}return u(e,null,[{key:"forRoot",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:xh,providers:[{provide:gd,useFactory:Oh,deps:[[th,new ye,new be]]},{provide:md,useValue:n.initialState},{provide:yd,useFactory:Rh,deps:[md]},{provide:wd,useValue:e},{provide:xd,useExisting:e instanceof Ye?e:wd},{provide:_d,deps:[Ko,wd,[new me(xd)]],useFactory:Eh},{provide:Rd,useValue:n.metaReducers?n.metaReducers:[]},{provide:Od,deps:[Id,Rd],useFactory:Ih},{provide:bd,useValue:n.reducerFactory?n.reducerFactory:jd},{provide:kd,deps:[bd,Od],useFactory:Vd},pd,$d,Jd,eh,nh,(t=n.runtimeChecks,[{provide:Nd,useValue:t},{provide:Md,useFactory:kh,deps:[Nd]},{provide:Ld,deps:[Md],useFactory:fh},{provide:Id,multi:!0,deps:[Ld],useFactory:ph},{provide:Id,multi:!0,deps:[Ld],useFactory:vh},{provide:Id,multi:!0,deps:[Ld],useFactory:mh}]),yh()]}}},{key:"forFeature",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{ngModule:Sh,providers:[{provide:Ad,multi:!0,useValue:n},{provide:Cd,multi:!0,useValue:{key:e,reducerFactory:n instanceof Ye||!n.reducerFactory?jd:n.reducerFactory,metaReducers:n instanceof Ye||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof Ye||!n.initialState?void 0:n.initialState}},{provide:Ed,deps:[Ko,Ad,Cd],useFactory:Th},{provide:Sd,multi:!0,useValue:t},{provide:Td,multi:!0,useExisting:t instanceof Ye?t:Sd},{provide:Pd,multi:!0,deps:[Ko,Sd,[new me(Td)]],useFactory:Ph},yh()]}}}]),e}()).\u0275mod=Tt({type:_h}),_h.\u0275inj=xe({factory:function(e){return new(e||_h)}}),_h);function Eh(e,t){return t instanceof Ye?e.get(t):t}function Th(e,t,n){return n.map((function(n,r){if(t[r]instanceof Ye){var i=e.get(t[r]);return{key:n.key,reducerFactory:i.reducerFactory?i.reducerFactory:jd,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return n}))}function Ph(e,t){return t.map((function(t){return t instanceof Ye?e.get(t):t}))}function Rh(e){return"function"==typeof e?e():e}function Ih(e,t){return e.concat(t)}function Oh(e){if(e)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Mh(e){return new N((function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?Y(n):qc()).subscribe(t)}))}var Nh=function(){function e(){s(this,e)}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new Lh(e))}}]),e}(),Lh=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"_next",value:function(e){}}]),n}(P),Dh=function(){function e(){s(this,e)}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new jh(e))}}]),e}(),jh=function(e){c(n,e);var t=d(n);function n(e){return s(this,n),t.call(this,e)}return u(n,[{key:"_next",value:function(e){this.destination.next(Jc.createNext(e))}},{key:"_error",value:function(e){var t=this.destination;t.next(Jc.createError(e)),t.complete()}},{key:"_complete",value:function(){var e=this.destination;e.next(Jc.createComplete()),e.complete()}}]),n}(P);function Fh(e){return function(t){var n=new Vh(e),r=t.lift(n);return n.caught=r}}var Vh=function(){function e(t){s(this,e),this.selector=t}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new zh(e,this.selector,this.caught))}}]),e}(),zh=function(e){c(r,e);var n=d(r);function r(e,t,i){var o;return s(this,r),(o=n.call(this,e)).selector=t,o.caught=i,o}return u(r,[{key:"error",value:function(e){if(!this.isStopped){var n;try{n=this.selector(e,this.caught)}catch(a){return void t(y(r.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var i=new X(this);this.add(i);var o=te(n,i);o!==i&&this.add(o)}}}]),r}(ee);function Bh(e,t){return function(n){return n.lift(new Hh(e,t))}}var Hh=function(){function e(t,n){s(this,e),this.predicate=t,this.thisArg=n}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new Uh(e,this.predicate,this.thisArg))}}]),e}(),Uh=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this,e)).predicate=r,o.thisArg=i,o.count=0,o}return u(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(P);function qh(e,t,n,r){return function(i){return i.lift(new Wh(e,t,n,r))}}var Wh=function(){function e(t,n,r,i){s(this,e),this.keySelector=t,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=i}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new $h(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),e}(),$h=function(e){c(r,e);var n=d(r);function r(e,t,i,o,a){var l;return s(this,r),(l=n.call(this,e)).keySelector=t,l.elementSelector=i,l.durationSelector=o,l.subjectSelector=a,l.groups=null,l.attemptedToUnsubscribe=!1,l.count=0,l}return u(r,[{key:"_next",value:function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}},{key:"_group",value:function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(s){this.error(s)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new z,n.set(t,i);var o=new Gh(t,i,this);if(this.destination.next(o),this.durationSelector){var a;try{a=this.durationSelector(new Gh(t,i))}catch(s){return void this.error(s)}this.add(a.subscribe(new Kh(t,i,this)))}}i.closed||i.next(r)}},{key:"_error",value:function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)}},{key:"_complete",value:function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()}},{key:"removeGroup",value:function(e){this.groups.delete(e)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t(y(r.prototype),"unsubscribe",this).call(this))}}]),r}(P),Kh=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this,r)).key=e,o.group=r,o.parent=i,o}return u(n,[{key:"_next",value:function(e){this.complete()}},{key:"_unsubscribe",value:function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)}}]),n}(P),Gh=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this)).key=e,o.groupSubject=r,o.refCountSubscription=i,o}return u(n,[{key:"_subscribe",value:function(e){var t=new A,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new Jh(n)),t.add(r.subscribe(e)),t}}]),n}(N),Jh=function(e){c(r,e);var n=d(r);function r(e){var t;return s(this,r),(t=n.call(this)).parent=e,e.count++,t}return u(r,[{key:"unsubscribe",value:function(){var e=this.parent;e.closed||this.closed||(t(y(r.prototype),"unsubscribe",this).call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}]),r}(A),Qh=function(){function e(t){s(this,e),this.project=t}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new Zh(e,this.project))}}]),e}(),Zh=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).project=r,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return u(n,[{key:"_next",value:function(e){this.hasSubscription||this.tryNext(e)}},{key:"tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new X(this),n=this.destination;n.add(t);var r=te(e,t);r!==t&&n.add(r)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(ee),Yh=function(){function e(){s(this,e)}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new Xh(e))}}]),e}(),Xh=function(e){c(n,e);var t=d(n);function n(e){return s(this,n),t.call(this,e)}return u(n,[{key:"_next",value:function(e){e.observe(this.destination)}}]),n}(P),ef=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function tf(e){return function(t){return 0===e?qc():t.lift(new nf(e))}}var nf=function(){function e(t){if(s(this,e),this.total=t,this.total<0)throw new ef}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new rf(e,this.total))}}]),e}(),rf=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return u(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(P);function of(e,t){return ne(e,t,1)}var af=function(){function e(t){s(this,e),this.callback=t}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new sf(e,this.callback))}}]),e}(),sf=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).add(new A(r)),i}return n}(P);function lf(e){return Object.getOwnPropertyNames(e).filter((function(t){return e[t]&&e[t].hasOwnProperty("__@ngrx/effects_create__")})).map((function(t){return Object.assign({propertyName:t},e[t]["__@ngrx/effects_create__"])}))}function uf(e){return Object.getPrototypeOf(e)}function cf(e){return Fd(df,uf)(e)}function df(e){return function(e){return e.constructor.hasOwnProperty("__@ngrx/effects__")}(e)?e.constructor["__@ngrx/effects__"]:[]}function hf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return e.pipe(Fh((function(r){return t&&t.handleError(r),n<=1?e:hf(e,t,n-1)})))}var ff,vf=((ff=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),r=t.call(this),e&&(r.source=e),r}return u(n,[{key:"lift",value:function(e){var t=new n;return t.source=this,t.operator=e,t}}]),n}(N)).\u0275fac=function(e){return new(e||ff)(st(Kd))},ff.\u0275prov=Ce({token:ff,factory:ff.\u0275fac}),ff);function pf(e){return gf(e,"ngrxOnInitEffects")}function gf(e,t){return e&&t in e&&"function"==typeof e[t]}var mf,yf=new Ye("@ngrx/effects Internal Root Guard"),kf=new Ye("ngrx/effects: User Provided Effects"),bf=new Ye("ngrx/effects: Internal Root Effects"),_f=new Ye("ngrx/effects: Root Effects"),wf=new Ye("ngrx/effects: Internal Feature Effects"),Cf=new Ye("ngrx/effects: Feature Effects"),xf=new Ye("ngrx/effects: Effects Error Handler"),Sf=((mf=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this)).errorHandler=e,i.effectsErrorHandler=r,i}return u(n,[{key:"addEffects",value:function(e){this.next(e)}},{key:"toActions",value:function(){var e=this;return this.pipe(qh(uf),ne((function(e){return e.pipe(qh(Af))})),ne((function(t){return se(t.pipe(function e(t,n){return n?function(r){return r.pipe(e((function(e,r){return Y(t(e,r)).pipe(U((function(t,i){return n(e,t,r,i)})))})))}:function(e){return e.lift(new Qh(t))}}((function(t){return(n=e.errorHandler,r=e.effectsErrorHandler,function(e){var t=function(e,t,n){var r,o=uf(e).constructor.name;return se.apply(void 0,i((r=e,[cf,lf].reduce((function(e,t){return e.concat(t(r))}),[])).map((function(r){var i=r.propertyName,a=r.dispatch,s=r.useEffectsErrorHandler,l="function"==typeof e[i]?e[i]():e[i],u=s?n(l,t):l;return!1===a?u.pipe((function(e){return e.lift(new Nh)})):u.pipe((function(e){return e.lift(new Dh)})).pipe(U((function(t){return{effect:e[i],notification:t,propertyName:i,sourceName:o,sourceInstance:e}})))}))))}(e,n,r);return gf(e,"ngrxOnRunEffects")?e.ngrxOnRunEffects(t):t})(t);var n,r})),U((function(t){return function(e,t){if("N"===e.notification.kind){var n=e.notification.value;!function(e){return"function"!=typeof e&&e&&e.type&&"string"==typeof e.type}(n)&&t.handleError(new Error("Effect ".concat((r=e,i=r.propertyName,o=r.sourceInstance,a=r.sourceName,s="function"==typeof o[i],'"'.concat(a,".").concat(String(i)).concat(s?"()":"",'"'))," dispatched an invalid action: ").concat(function(e){try{return JSON.stringify(e)}catch(t){return e}}(n))))}var r,i,o,a,s}(t,e.errorHandler),t.notification})),Bh((function(e){return"N"===e.kind})),(function(e){return e.lift(new Yh)})),t.pipe(tf(1),Bh(pf),U((function(e){return e.ngrxOnInitEffects()}))))})))}}]),n}(z)).\u0275fac=function(e){return new(e||mf)(st(Ar),st(xf))},mf.\u0275prov=Ce({token:mf,factory:mf.\u0275fac}),mf);function Af(e){return gf(e,"ngrxOnIdentifyEffects")?e.ngrxOnIdentifyEffects():""}var Ef,Tf,Pf,Rf,If=((Rf=function(){function e(t,n){s(this,e),this.effectSources=t,this.store=n,this.effectsSubscription=null}return u(e,[{key:"start",value:function(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}},{key:"ngOnDestroy",value:function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||Rf)(st(Sf),st(th))},Rf.\u0275prov=Ce({token:Rf,factory:Rf.\u0275fac}),Rf),Of=((Pf=function(){function e(t,n,r,i,o,a,l){s(this,e),this.sources=t,n.start(),i.forEach((function(e){return t.addEffects(e)})),r.dispatch({type:"@ngrx/effects/init"})}return u(e,[{key:"addEffects",value:function(e){this.sources.addEffects(e)}}]),e}()).\u0275mod=Tt({type:Pf}),Pf.\u0275inj=xe({factory:function(e){return new(e||Pf)(st(Sf),st(If),st(th),st(_f),st(xh,8),st(Sh,8),st(yf,8))}}),Pf),Mf=((Tf=function e(t,n,r,i){s(this,e),n.forEach((function(e){return e.forEach((function(e){return t.addEffects(e)}))}))}).\u0275mod=Tt({type:Tf}),Tf.\u0275inj=xe({factory:function(e){return new(e||Tf)(st(Of),st(Cf),st(xh,8),st(Sh,8))}}),Tf),Nf=((Ef=function(){function e(){s(this,e)}return u(e,null,[{key:"forFeature",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:Mf,providers:[e,{provide:wf,multi:!0,useValue:e},{provide:kf,multi:!0,useValue:[]},{provide:Cf,multi:!0,useFactory:Lf,deps:[Ko,wf,kf]}]}}},{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:Of,providers:[{provide:yf,useFactory:Df,deps:[[If,new ye,new be]]},{provide:xf,useValue:hf},If,Sf,vf,e,{provide:bf,useValue:[e]},{provide:kf,multi:!0,useValue:[]},{provide:_f,useFactory:Lf,deps:[Ko,bf,kf]}]}}}]),e}()).\u0275mod=Tt({type:Ef}),Ef.\u0275inj=xe({factory:function(e){return new(e||Ef)}}),Ef);function Lf(e,t,n){var o,a=[],s=r(t);try{for(s.s();!(o=s.n()).done;){var l=o.value;a.push.apply(a,i(l))}}catch(h){s.e(h)}finally{s.f()}var u,c=r(n);try{for(c.s();!(u=c.n()).done;){var d=u.value;a.push.apply(a,i(d))}}catch(h){c.e(h)}finally{c.f()}return function(e,t){return t.map((function(t){return e.get(t)}))}(e,a)}function Df(e){if(e)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var jf=[],Ff=function e(){s(this,e)},Vf=function e(){s(this,e)},zf=function(){function e(t){var n=this;s(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach((function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}}))}:function(){n.headers=new Map,Object.keys(t).forEach((function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))}))}:this.headers=new Map}return u(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(e){return t.applyUpdate(e)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach((function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))}))}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,i(n)),this.headers.set(t,r);break;case"d":var o=e.value;if(o){var a=this.headers.get(t);if(!a)return;0===(a=a.filter((function(e){return-1===o.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return e(t.normalizedNames.get(n),t.headers.get(n))}))}}]),e}(),Bf=function(){function e(){s(this,e)}return u(e,[{key:"encodeKey",value:function(e){return Hf(e)}},{key:"encodeValue",value:function(e){return Hf(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function Hf(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Uf=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s(this,e),this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new Bf,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var r=new Map;return e.length>0&&e.split("&").forEach((function(e){var i=e.indexOf("="),o=n(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),a=o[0],s=o[1],l=r.get(a)||[];l.push(s),r.set(a,l)})),r}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach((function(e){var n=r.fromObject[e];t.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}return u(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map((function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map((function(t){return n+"="+e.encoder.encodeValue(t)})).join("&")})).filter((function(e){return""!==e})).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(t){return e.map.set(t,e.cloneFrom.map.get(t))})),this.updates.forEach((function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)}}]),e}();function qf(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Wf(e){return"undefined"!=typeof Blob&&e instanceof Blob}function $f(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Kf=function(){function e(t,n,r,i){var o;if(s(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new zf),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var l=n.indexOf("?");this.urlWithParams=n+(-1===l?"?":l<n.length-1?"&":"")+a}}else this.params=new Uf,this.urlWithParams=n}return u(e,[{key:"serializeBody",value:function(){return null===this.body?null:qf(this.body)||Wf(this.body)||$f(this.body)||"string"==typeof this.body?this.body:this.body instanceof Uf?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||$f(this.body)?null:Wf(this.body)?this.body.type||null:qf(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Uf?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((function(e,n){return e.set(n,t.setHeaders[n])}),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((function(e,n){return e.set(n,t.setParams[n])}),u)),new e(n,r,o,{params:u,headers:l,reportProgress:s,responseType:i,withCredentials:a})}}]),e}(),Gf=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),Jf=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";s(this,e),this.headers=t.headers||new zf,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},Qf=function(e){c(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),(e=t.call(this,r)).type=Gf.ResponseHeader,e}return u(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Jf),Zf=function(e){c(n,e);var t=d(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),(e=t.call(this,r)).type=Gf.Response,e.body=void 0!==r.body?r.body:null,e}return u(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Jf),Yf=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),r.error=e.error||null,r}return n}(Jf);function Xf(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var ev,tv,nv,rv,iv,ov,av,sv,lv,uv,cv,dv=((ev=function(){function e(t){s(this,e),this.handler=t}return u(e,[{key:"request",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof Kf)n=e;else{var o=void 0;o=i.headers instanceof zf?i.headers:new zf(i.headers);var a=void 0;i.params&&(a=i.params instanceof Uf?i.params:new Uf({fromObject:i.params})),n=new Kf(e,t,void 0!==i.body?i.body:null,{headers:o,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var s=Wc(n).pipe(of((function(e){return r.handler.handle(e)})));if(e instanceof Kf||"events"===i.observe)return s;var l=s.pipe(Bh((function(e){return e instanceof Zf})));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(U((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return l.pipe(U((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return l.pipe(U((function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));case"json":default:return l.pipe(U((function(e){return e.body})))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new Uf).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,Xf(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,Xf(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,Xf(n,t))}}]),e}()).\u0275fac=function(e){return new(e||ev)(st(Ff))},ev.\u0275prov=Ce({token:ev,factory:ev.\u0275fac}),ev),hv=function(){function e(t,n){s(this,e),this.next=t,this.interceptor=n}return u(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),fv=new Ye("HTTP_INTERCEPTORS"),vv=((tv=function(){function e(){s(this,e)}return u(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||tv)},tv.\u0275prov=Ce({token:tv,factory:tv.\u0275fac}),tv),pv=/^\)\]\}',?\n/,gv=function e(){s(this,e)},mv=((rv=function(){function e(){s(this,e)}return u(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||rv)},rv.\u0275prov=Ce({token:rv,factory:rv.\u0275fac}),rv),yv=((nv=function(){function e(t){s(this,e),this.xhrFactory=t}return u(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new N((function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((function(e,t){return r.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new zf(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new Qf({headers:i,status:t,statusText:n,url:o})},u=function(){var t=l(),i=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u=void 0===r.response?r.responseText:r.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var d=u;u=u.replace(pv,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=d,c&&(c=!1,u={error:h,text:u})}}c?(n.next(new Zf({body:u,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new Yf({error:u,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=l().url,i=new Yf({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},d=!1,h=function(t){d||(n.next(l()),d=!0);var i={type:Gf.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},f=function(e){var t={type:Gf.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",u),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",h),null!==a&&r.upload&&r.upload.addEventListener("progress",f)),r.send(a),n.next({type:Gf.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),e.reportProgress&&(r.removeEventListener("progress",h),null!==a&&r.upload&&r.upload.removeEventListener("progress",f)),r.readyState!==r.DONE&&r.abort()}}))}}]),e}()).\u0275fac=function(e){return new(e||nv)(st(gv))},nv.\u0275prov=Ce({token:nv,factory:nv.\u0275fac}),nv),kv=new Ye("XSRF_COOKIE_NAME"),bv=new Ye("XSRF_HEADER_NAME"),_v=function e(){s(this,e)},wv=((cv=function(){function e(t,n,r){s(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return u(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Lu(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||cv)(st(lu),st(vl),st(kv))},cv.\u0275prov=Ce({token:cv,factory:cv.\u0275fac}),cv),Cv=((uv=function(){function e(t,n){s(this,e),this.tokenService=t,this.headerName=n}return u(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||uv)(st(_v),st(bv))},uv.\u0275prov=Ce({token:uv,factory:uv.\u0275fac}),uv),xv=((lv=function(){function e(t,n){s(this,e),this.backend=t,this.injector=n,this.chain=null}return u(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(fv,[]);this.chain=t.reduceRight((function(e,t){return new hv(e,t)}),this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||lv)(st(Vf),st(Ko))},lv.\u0275prov=Ce({token:lv,factory:lv.\u0275fac}),lv),Sv=((sv=function(){function e(){s(this,e)}return u(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Cv,useClass:vv}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:kv,useValue:t.cookieName}:[],t.headerName?{provide:bv,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=Tt({type:sv}),sv.\u0275inj=xe({factory:function(e){return new(e||sv)},providers:[Cv,{provide:fv,useExisting:Cv,multi:!0},{provide:_v,useClass:wv},{provide:kv,useValue:"XSRF-TOKEN"},{provide:bv,useValue:"X-XSRF-TOKEN"}]}),sv),Av=((av=function e(){s(this,e)}).\u0275mod=Tt({type:av}),av.\u0275inj=xe({factory:function(e){return new(e||av)},providers:[dv,{provide:Ff,useClass:xv},yv,{provide:Vf,useExisting:yv},mv,{provide:gv,useExisting:mv}],imports:[[Sv.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),av),Ev=((ov=function(){function e(){s(this,e)}return u(e,[{key:"getEnvironment",value:function(){return iu}}]),e}()).\u0275fac=function(e){return new(e||ov)},ov.\u0275prov=Ce({token:ov,factory:ov.\u0275fac,providedIn:"root"}),ov),Tv=((iv=function(){function e(t,n){s(this,e),this.http=t,this.environmentService=n}return u(e,[{key:"fetch",value:function(){var e=this,t=this.environmentService.getEnvironment();return new Promise((function(n,r){window.taigaConfig?(e._config=window.taigaConfig,n(e.config)):t.configLocal?(e._config=t.configLocal,n(e.config)):t.configRemote?e.http.get(t.configRemote).subscribe((function(t){e._config=t,n(e.config)})):r("No config provided")}))}},{key:"config",get:function(){if(window.taigaConfig){var e=Object.assign({},window.taigaConfig);return e.api.endsWith("/")&&(e.api=e.api.slice(0,e.api.length-1)),e}return this._config}},{key:"apiUrl",get:function(){return this.config.api}}]),e}()).\u0275fac=function(e){return new(e||iv)(st(dv),st(Ev))},iv.\u0275prov=Ce({token:iv,factory:iv.\u0275fac,providedIn:"root"}),iv);function Pv(e,t){return"function"==typeof t?function(n){return n.pipe(Pv((function(n,r){return Y(e(n,r)).pipe(U((function(e,i){return t(n,e,r,i)})))})))}:function(t){return t.lift(new Rv(e))}}var Rv=function(){function e(t){s(this,e),this.project=t}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new Iv(e,this.project))}}]),e}(),Iv=function(e){c(r,e);var n=d(r);function r(e,t){var i;return s(this,r),(i=n.call(this,e)).project=t,i.index=0,i}return u(r,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new X(this),r=this.destination;r.add(n),this.innerSubscription=te(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||t(y(r.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&t(y(r.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),r}(ee);function Ov(){}function Mv(e,t,n){return function(r){return r.lift(new jv(e,t,n))}}var Nv,Lv,Dv,jv=function(){function e(t,n,r){s(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new Fv(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Fv=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e))._tapNext=Ov,a._tapError=Ov,a._tapComplete=Ov,a._tapError=i||Ov,a._tapComplete=o||Ov,g(r)?(a._context=f(a),a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||Ov,a._tapError=r.error||Ov,a._tapComplete=r.complete||Ov),a}return u(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(P),Vv=((Lv=function(){function e(t,n,r,i){var o,a,l,u,c=this;s(this,e),this.templateRef=r,this.viewContainerRef=i,this.ViewContext={$implicit:void 0,ngrxLet:void 0,$error:!1,$complete:!1},this.resetContextObserver={next:function(){c.embeddedView&&(c.ViewContext.$implicit=void 0,c.ViewContext.ngrxLet=void 0,c.ViewContext.$error=!1,c.ViewContext.$complete=!1)}},this.updateViewContextObserver={next:function(e){c.embeddedView||c.createEmbeddedView(),c.ViewContext.$implicit=e,c.ViewContext.ngrxLet=e},error:function(e){c.embeddedView||c.createEmbeddedView(),c.ViewContext.$error=!0},complete:function(){c.embeddedView||c.createEmbeddedView(),c.ViewContext.$complete=!0}},this.cdAware=(a={render:(o={cdRef:t,ngZone:n},function(){o.ngZone instanceof Pl?o.cdRef.markForCheck():o.cdRef.detectChanges()}),resetContextObserver:this.resetContextObserver,updateViewContextObserver:this.updateViewContextObserver},l=new z,u=l.pipe(ld()).pipe(Pv((function(e){return null==e?(a.updateViewContextObserver.next(e),a.render(),Uc):(a.resetContextObserver.next(),a.render(),e.pipe(ld(),Mv(a.updateViewContextObserver),Mv((function(){return a.render()})),Fh((function(e){return console.error(e),Uc}))))}))),{nextPotentialObservable:function(e){l.next(e)},subscribe:function(){return u.subscribe()}}),this.subscription=this.cdAware.subscribe()}return u(e,[{key:"createEmbeddedView",value:function(){this.embeddedView=this.viewContainerRef.createEmbeddedView(this.templateRef,this.ViewContext)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe(),this.viewContainerRef.clear()}},{key:"ngrxLet",set:function(e){this.cdAware.nextPotentialObservable(e)}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||Lv)(sa(Ro),sa(Pl),sa(_s),sa(Cs))},Lv.\u0275dir=Rt({type:Lv,selectors:[["","ngrxLet",""]],inputs:{ngrxLet:"ngrxLet"}}),Lv),zv=((Nv=function e(){s(this,e)}).\u0275mod=Tt({type:Nv}),Nv.\u0275inj=xe({factory:function(e){return new(e||Nv)}}),Nv),Bv=function(e){c(r,e);var n=d(r);function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return s(this,r),(e=n.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=t<1?1:t,e._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return u(r,[{key:"nextInfiniteTimeWindow",value:function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t(y(r.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new Hv(this._getNow(),e)),this._trimBufferThenGetEvents(),t(y(r.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new j;if(this.isStopped||this.hasError?t=A.EMPTY:(this.observers.push(e),t=new F(this,e)),i&&e.add(e=new Zc(e,i)),n)for(var a=0;a<o&&!e.closed;a++)e.next(r[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(r[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||Hc).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}]),r}(z),Hv=function e(t,n){s(this,e),this.time=t,this.value=n},Uv=(Dv=Element.prototype).matches||Dv.matchesSelector||Dv.mozMatchesSelector||Dv.msMatchesSelector||Dv.oMatchesSelector||Dv.webkitMatchesSelector,qv={schedule:function(e,t){var n=setTimeout(e,t);return function(){return clearTimeout(n)}},scheduleBeforeRender:function(e){if("undefined"==typeof window)return qv.schedule(e,0);if(void 0===window.requestAnimationFrame)return qv.schedule(e,16);var t=window.requestAnimationFrame(e);return function(){return window.cancelAnimationFrame(t)}}};function Wv(e,t,n){var r=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((function(t,n){return!("*"===t||!function(e,t){return Uv.call(e,t)}(e,t)||(r=n,0))})),r}var $v=function(){function e(t,n){s(this,e),this.componentFactory=n.get(Za).resolveComponentFactory(t)}return u(e,[{key:"create",value:function(e){return new Kv(this.componentFactory,e)}}]),e}(),Kv=function(){function e(t,n){s(this,e),this.componentFactory=t,this.injector=n,this.eventEmitters=new Bv(1),this.events=this.eventEmitters.pipe(Pv((function(e){return se.apply(void 0,i(e))}))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set}return u(e,[{key:"connect",value:function(e){if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)}},{key:"disconnect",value:function(){var e=this;null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=qv.schedule((function(){null!==e.componentRef&&(e.componentRef.destroy(),e.componentRef=null)}),10))}},{key:"getInputValue",value:function(e){return null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e]}},{key:"setInputValue",value:function(e,t){var n,r;null!==this.componentRef?((n=t)!==(r=this.getInputValue(e))&&(n==n||r==r)||void 0===t&&this.unchangedInputs.has(e))&&(this.recordInputChange(e,t),this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)}},{key:"initializeComponent",value:function(e){var t=Ko.create({providers:[],parent:this.injector}),n=function(e,t){var n=e.childNodes,r=t.map((function(){return[]})),i=-1;t.some((function(e,t){return"*"===e&&(i=t,!0)}));for(var o=0,a=n.length;o<a;++o){var s=n[o],l=Wv(s,t,i);-1!==l&&r[l].push(s)}return r}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Gl).attachView(this.componentRef.hostView)}},{key:"initializeInputs",value:function(){var e=this;this.componentFactory.inputs.forEach((function(t){var n=t.propName;e.implementsOnChanges&&e.unchangedInputs.add(n),e.initialInputValues.has(n)&&e.setInputValue(n,e.initialInputValues.get(n))})),this.initialInputValues.clear()}},{key:"initializeOutputs",value:function(e){var t=this.componentFactory.outputs.map((function(t){var n=t.propName,r=t.templateName;return e.instance[n].pipe(U((function(e){return{name:r,value:e}})))}));this.eventEmitters.next(t)}},{key:"callNgOnChanges",value:function(e){if(this.implementsOnChanges&&null!==this.inputChanges){var t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}}},{key:"scheduleDetectChanges",value:function(){var e=this;this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=qv.scheduleBeforeRender((function(){e.scheduledChangeDetectionFn=null,e.detectChanges()})))}},{key:"recordInputChange",value:function(e,t){if(null===this.componentRef||this.implementsOnChanges){null===this.inputChanges&&(this.inputChanges={});var n=this.inputChanges[e];if(n)n.currentValue=t;else{var r=this.unchangedInputs.has(e);this.unchangedInputs.delete(e);var i=r?void 0:this.getInputValue(e);this.inputChanges[e]=new Ht(i,t,r)}}}},{key:"detectChanges",value:function(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}}]),e}(),Gv=function(e){c(n,e);var t=d(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).ngElementEventsSubscription=null,e}return n}(v(HTMLElement));function Jv(e,t){var r=function(e,t){return t.get(Za).resolveComponentFactory(e).inputs}(e,t.injector),i=t.strategyFactory||new $v(e,t.injector),o=function(e){var t={};return e.forEach((function(e){var n,r=e.propName,i=e.templateName;t[(n=i,n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})))]=r})),t}(r),a=function(e){c(l,e);var a=d(l);function l(e){var t;return s(this,l),(t=a.call(this)).injector=e,t}return u(l,[{key:"attributeChangedCallback",value:function(e,t,n,r){this.ngElementStrategy.setInputValue(o[e],n)}},{key:"connectedCallback",value:function(){var e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}},{key:"disconnectedCallback",value:function(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}},{key:"subscribeToEvents",value:function(){var e=this;this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe((function(t){var n=function(e,t,n){if("function"!=typeof CustomEvent){var r=e.createEvent("CustomEvent");return r.initCustomEvent(t,!1,!1,n),r}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:n})}(e.ownerDocument,t.name,t.value);e.dispatchEvent(n)}))}},{key:"ngElementStrategy",get:function(){var e=this;if(!this._ngElementStrategy){var o=this._ngElementStrategy=i.create(this.injector||t.injector),a=r.filter((function(t){var n=t.propName;return e.hasOwnProperty(n)})).map((function(t){var n=t.propName;return[n,e[n]]}));this instanceof l?a.forEach((function(t){var r=n(t,1)[0];return delete e[r]})):Qv(r,this),a.forEach((function(e){var t=n(e,2),r=t[0],i=t[1];return o.setInputValue(r,i)}))}return this._ngElementStrategy}}]),l}(Gv);return a.observedAttributes=Object.keys(o),Object.defineProperty(a.prototype,"ngElementStrategy",{enumerable:!0}),Qv(r,a.prototype),a}function Qv(e,t){e.forEach((function(e){var n=e.propName;Object.defineProperty(t,n,{get:function(){return this.ngElementStrategy.getInputValue(n)},set:function(e){this.ngElementStrategy.setInputValue(n,e)},configurable:!0,enumerable:!0})}))}var Zv,Yv,Xv=((Yv=function e(){s(this,e)}).\u0275mod=Tt({type:Yv}),Yv.\u0275inj=xe({factory:function(e){return new(e||Yv)}}),Yv),ep=((Zv=function e(){s(this,e)}).\u0275mod=Tt({type:Zv}),Zv.\u0275inj=xe({factory:function(e){return new(e||Zv)}}),Zv),tp=function(){return(tp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function np(e){return e.toLowerCase()}var rp=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],ip=/[^A-Z0-9]+/gi;function op(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=t.stripRegexp,i=void 0===r?ip:r,o=t.transform,a=void 0===o?np:o,s=t.delimiter,l=void 0===s?" ":s,u=ap(ap(e,void 0===n?rp:n,"$1\0$2"),i,"\0"),c=0,d=u.length;"\0"===u.charAt(c);)c++;for(;"\0"===u.charAt(d-1);)d--;return u.slice(c,d).split("\0").map(a).join(l)}function ap(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function sp(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),op(e,tp({delimiter:"."},t))}(e,tp({delimiter:"_"},t))}function lp(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function up(e,t){return 0===t?e.toLowerCase():lp(e,t)}function cp(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),op(e,tp({delimiter:"",transform:lp},t))}(e,tp({transform:up},t))}var dp,hp=function(){function e(){s(this,e)}return u(e,null,[{key:"buildQueryParams",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Uf;return Object.keys(e).forEach((function(r){var i=e[r],o=r in t?t[r]:r;void 0===i?n=n.append(o,"undefined"):null===i?n=n.append(o,"null"):Array.isArray(i)?n=n.append(o,i.join(",")):i.toString&&(n=n.append(o,i.toString()))})),n}},{key:"buildFormData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new FormData;return Object.keys(e).forEach((function(r){var i=e[r],o=r in t?t[r]:r;void 0===i?n.append(o,"undefined"):null===i?n.append(o,"null"):i instanceof File?n.append(o,i,i.name):Array.isArray(i)?n.append(o,i.join(",")):i.toString&&n.append(o,i.toString())})),n}},{key:"objKeysTransformer",value:function(e,t){var r=this;return null===e||"object"!=typeof e?e:Array.isArray(e)?e.map((function(e){return r.objKeysTransformer(e,t)})):Object.fromEntries(Object.entries(e).map((function(e){var i=n(e,2),o=i[0],a=i[1];return"object"==typeof a&&null!==a?[t(o),r.objKeysTransformer(a,t)]:[t(o),a]})))}},{key:"slugify",value:function(e){return e.toLowerCase().trim().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-")}}]),e}(),fp=((dp=function(){function e(){s(this,e)}return u(e,[{key:"get",value:function(e){var t=localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(n){return}}},{key:"set",value:function(e,t){localStorage.setItem(e,JSON.stringify(t))}},{key:"remove",value:function(e){localStorage.removeItem(e)}},{key:"contains",value:function(e){return void 0!==localStorage.get(e)}},{key:"clear",value:function(){localStorage.clear()}}]),e}()).\u0275fac=function(e){return new(e||dp)},dp.\u0275prov=Ce({token:dp,factory:dp.\u0275fac}),dp),vp=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),pp={},gp=function(){function e(t){s(this,e),this.resultSelector=t}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new mp(e,this.resultSelector))}}]),e}(),mp=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return u(n,[{key:"_next",value:function(e){this.values.push(pp),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++)this.add(td(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var r=this.values,i=this.toRespond?r[n]===pp?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(Xc);function yp(){return oe(1)}function kp(e){return function(t){return 0===e?qc():t.lift(new bp(e))}}var bp=function(){function e(t){if(s(this,e),this.total=t,this.total<0)throw new ef}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new _p(e,this.total))}}]),e}(),_p=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return u(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()}}]),n}(P);function wp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sp;return function(t){return t.lift(new Cp(e))}}var Cp=function(){function e(t){s(this,e),this.errorFactory=t}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new xp(e,this.errorFactory))}}]),e}(),xp=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return u(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(P);function Sp(){return new vp}function Ap(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Ep(e))}}var Ep=function(){function e(t){s(this,e),this.defaultValue=t}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new Tp(e,this.defaultValue))}}]),e}(),Tp=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return u(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(P);function Pp(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Bh((function(t,n){return e(t,n,r)})):O,tf(1),n?Ap(t):wp((function(){return new vp})))}}var Rp=function(){function e(t,n,r){s(this,e),this.predicate=t,this.thisArg=n,this.source=r}return u(e,[{key:"call",value:function(e,t){return t.subscribe(new Ip(e,this.predicate,this.thisArg,this.source))}}]),e}(),Ip=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e)).predicate=r,a.thisArg=i,a.source=o,a.index=0,a.thisArg=i||f(a),a}return u(n,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(P);function Op(){return yp()(Wc.apply(void 0,arguments))}var Mp=function e(t,n){s(this,e),this.id=t,this.url=n},Np=function(e){c(n,e);var t=d(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return s(this,n),(i=t.call(this,e,r)).navigationTrigger=o,i.restoredState=a,i}return u(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Mp),Lp=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o}return u(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Mp),Dp=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this,e,r)).reason=i,o}return u(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Mp),jp=function(e){c(n,e);var t=d(n);function n(e,r,i){var o;return s(this,n),(o=t.call(this,e,r)).error=i,o}return u(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Mp),Fp=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return u(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Mp),Vp=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return u(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Mp),zp=function(e){c(n,e);var t=d(n);function n(e,r,i,o,a){var l;return s(this,n),(l=t.call(this,e,r)).urlAfterRedirects=i,l.state=o,l.shouldActivate=a,l}return u(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Mp),Bp=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return u(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Mp),Hp=function(e){c(n,e);var t=d(n);function n(e,r,i,o){var a;return s(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return u(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Mp),Up=function(){function e(t){s(this,e),this.route=t}return u(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),qp=function(){function e(t){s(this,e),this.route=t}return u(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Wp=function(){function e(t){s(this,e),this.snapshot=t}return u(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),$p=function(){function e(t){s(this,e),this.snapshot=t}return u(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Kp=function(){function e(t){s(this,e),this.snapshot=t}return u(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Gp=function(){function e(t){s(this,e),this.snapshot=t}return u(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Jp=function(){function e(t,n,r){s(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return u(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),Qp=function(){function e(t){s(this,e),this.params=t||{}}return u(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Zp(e){return new Qp(e)}function Yp(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Xp(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;for(var i={},o=0;o<r.length;o++){var a=r[o],s=e[o];if(a.startsWith(":"))i[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function eg(e,t){var n,r=Object.keys(e),i=Object.keys(t);if(!r||!i||r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(!tg(e[n=r[o]],t[n]))return!1;return!0}function tg(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length==t.length&&e.every((function(e){return t.indexOf(e)>-1})):e===t}function ng(e){return Array.prototype.concat.apply([],e)}function rg(e){return e.length>0?e[e.length-1]:null}function ig(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function og(e){return(t=e)&&"function"==typeof t.subscribe?e:ma(e)?Y(Promise.resolve(e)):Wc(e);var t}function ag(e,t,n){return n?function(e,t){return eg(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!cg(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return tg(e[n],t[n])}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!cg(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!cg(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!cg(n.segments,a)&&!!n.children.primary&&t(n.children.primary,r,s)}(t,n,n.segments)}(e.root,t.root)}var sg=function(){function e(t,n,r){s(this,e),this.root=t,this.queryParams=n,this.fragment=r}return u(e,[{key:"toString",value:function(){return vg.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Zp(this.queryParams)),this._queryParamMap}}]),e}(),lg=function(){function e(t,n){var r=this;s(this,e),this.segments=t,this.children=n,this.parent=null,ig(n,(function(e,t){return e.parent=r}))}return u(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return pg(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),ug=function(){function e(t,n){s(this,e),this.path=t,this.parameters=n}return u(e,[{key:"toString",value:function(){return _g(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Zp(this.parameters)),this._parameterMap}}]),e}();function cg(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function dg(e,t){var n=[];return ig(e.children,(function(e,r){"primary"===r&&(n=n.concat(t(e,r)))})),ig(e.children,(function(e,r){"primary"!==r&&(n=n.concat(t(e,r)))})),n}var hg=function e(){s(this,e)},fg=function(){function e(){s(this,e)}return u(e,[{key:"parse",value:function(e){var t=new Ag(e);return new sg(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+function e(t,n){if(!t.hasChildren())return pg(t);if(n){var r=t.children.primary?e(t.children.primary,!1):"",i=[];return ig(t.children,(function(t,n){"primary"!==n&&i.push("".concat(n,":").concat(e(t,!1)))})),i.length>0?"".concat(r,"(").concat(i.join("//"),")"):r}var o=dg(t,(function(n,r){return"primary"===r?[e(t.children.primary,!1)]:["".concat(r,":").concat(e(n,!1))]}));return"".concat(pg(t),"/(").concat(o.join("//"),")")}(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map((function(e){var n=t[e];return Array.isArray(n)?n.map((function(t){return"".concat(mg(e),"=").concat(mg(t))})).join("&"):"".concat(mg(e),"=").concat(mg(n))})),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}]),e}(),vg=new fg;function pg(e){return e.segments.map((function(e){return _g(e)})).join("/")}function gg(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mg(e){return gg(e).replace(/%3B/gi,";")}function yg(e){return gg(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kg(e){return decodeURIComponent(e)}function bg(e){return kg(e.replace(/\+/g,"%20"))}function _g(e){return"".concat(yg(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(yg(e),"=").concat(yg(t[e]))})).join("")));var t}var wg=/^[^\/()?;=#]+/;function Cg(e){var t=e.match(wg);return t?t[0]:""}var xg=/^[^=?&#]+/,Sg=/^[^?&#]+/,Ag=function(){function e(t){s(this,e),this.url=t,this.remaining=t}return u(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new lg([],{}):new lg([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new lg(e,t)),n}},{key:"parseSegment",value:function(){var e=Cg(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new ug(kg(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Cg(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Cg(this.remaining);r&&(n=r,this.capture(n))}e[kg(t)]=kg(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(xg);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(Sg);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=bg(t),o=bg(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Cg(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");var o=this.parseChildren();t[i]=1===Object.keys(o).length?o.primary:new lg([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Eg=function(){function e(t){s(this,e),this._root=t}return u(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Tg(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=Tg(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Pg(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return Pg(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function Tg(e,t){if(e===t.value)return t;var n,i=r(t.children);try{for(i.s();!(n=i.n()).done;){var o=Tg(e,n.value);if(o)return o}}catch(a){i.e(a)}finally{i.f()}return null}function Pg(e,t){if(e===t.value)return[t];var n,i=r(t.children);try{for(i.s();!(n=i.n()).done;){var o=Pg(e,n.value);if(o.length)return o.unshift(t),o}}catch(a){i.e(a)}finally{i.f()}return[]}var Rg=function(){function e(t,n){s(this,e),this.value=t,this.children=n}return u(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Ig(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var Og=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,e)).snapshot=r,Fg(f(i),e),i}return u(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Eg);function Mg(e,t){var n=function(e,t){var n=new Dg([],{},{},"",{},"primary",t,null,e.root,-1,{});return new jg("",new Rg(n,[]))}(e,t),r=new Fc([new ug("",{})]),i=new Fc({}),o=new Fc({}),a=new Fc({}),s=new Fc(""),l=new Ng(r,i,a,s,o,"primary",t,n.root);return l.snapshot=n.root,new Og(new Rg(l,[]),n)}var Ng=function(){function e(t,n,r,i,o,a,l,u){s(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=l,this._futureSnapshot=u}return u(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(U((function(e){return Zp(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(U((function(e){return Zp(e)})))),this._queryParamMap}}]),e}();function Lg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce((function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var Dg=function(){function e(t,n,r,i,o,a,l,u,c,d,h){s(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=l,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=d,this._resolve=h}return u(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Zp(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Zp(this.queryParams)),this._queryParamMap}}]),e}(),jg=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this,r)).url=e,Fg(f(i),r),i}return u(n,[{key:"toString",value:function(){return Vg(this._root)}}]),n}(Eg);function Fg(e,t){t.value._routerState=e,t.children.forEach((function(t){return Fg(e,t)}))}function Vg(e){var t=e.children.length>0?" { ".concat(e.children.map(Vg).join(", ")," } "):"";return"".concat(e.value).concat(t)}function zg(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,eg(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),eg(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!eg(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),eg(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Bg(e,t){var n,r;return eg(e.params,t.params)&&cg(n=e.url,r=t.url)&&n.every((function(e,t){return eg(e.parameters,r[t].parameters)}))&&!(!e.parent!=!t.parent)&&(!e.parent||Bg(e.parent,t.parent))}function Hg(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Ug(e,t,n,r,i){var o={};return r&&ig(r,(function(e,t){o[t]=Array.isArray(e)?e.map((function(e){return""+e})):""+e})),new sg(n.root===e?t:function e(t,n,r){var i={};return ig(t.children,(function(t,o){i[o]=t===n?r:e(t,n,r)})),new lg(t.segments,i)}(n.root,e,t),o,i)}var qg=function(){function e(t,n,r){if(s(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Hg(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(i&&i!==rg(r))throw new Error("{outlets:{}} has to be the last command")}return u(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Wg=function e(t,n,r){s(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function $g(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:""+e}function Kg(e,t,n){if(e||(e=new lg([],{})),0===e.segments.length&&e.hasChildren())return Gg(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i<e.segments.length;){if(r>=n.length)return o;var a=e.segments[i],s=$g(n[r]),l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Yg(s,l,a))return o;r+=2}else{if(!Yg(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var o=new lg(e.segments.slice(0,r.pathIndex),{});return o.children.primary=new lg(e.segments.slice(r.pathIndex),e.children),Gg(o,0,i)}return r.match&&0===i.length?new lg(e.segments,{}):r.match&&!e.hasChildren()?Jg(e,t,n):r.match?Gg(e,0,i):Jg(e,t,n)}function Gg(e,t,n){if(0===n.length)return new lg(e.segments,{});var r=function(e){return"object"==typeof e[0]&&null!==e[0]&&e[0].outlets?e[0].outlets:{primary:e}}(n),i={};return ig(r,(function(n,r){null!==n&&(i[r]=Kg(e.children[r],t,n))})),ig(e.children,(function(e,t){void 0===r[t]&&(i[t]=e)})),new lg(e.segments,i)}function Jg(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){if("object"==typeof n[i]&&null!==n[i]&&void 0!==n[i].outlets){var o=Qg(n[i].outlets);return new lg(r,o)}if(0===i&&Hg(n[0]))r.push(new ug(e.segments[t].path,n[0])),i++;else{var a=$g(n[i]),s=i<n.length-1?n[i+1]:null;a&&s&&Hg(s)?(r.push(new ug(a,Zg(s))),i+=2):(r.push(new ug(a,{})),i++)}}return new lg(r,{})}function Qg(e){var t={};return ig(e,(function(e,n){null!==e&&(t[n]=Jg(new lg([],{}),0,e))})),t}function Zg(e){var t={};return ig(e,(function(e,n){return t[n]=""+e})),t}function Yg(e,t,n){return e==n.path&&eg(t,n.parameters)}var Xg=function(){function e(t,n,r,i){s(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i}return u(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),zg(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var r=this,i=Ig(t);e.children.forEach((function(e){var t=e.value.outlet;r.deactivateRoutes(e,i[t],n),delete i[t]})),ig(i,(function(e,t){r.deactivateRouteAndItsChildren(e,n)}))}},{key:"deactivateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:i})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){var n=this,r=t.getContext(e.value.outlet);if(r){var i=Ig(e),o=e.value.component?r.children:t;ig(i,(function(e,t){return n.deactivateRouteAndItsChildren(e,o)})),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(e,t,n){var r=this,i=Ig(t);e.children.forEach((function(e){r.activateRoutes(e,i[e.value.outlet],n),r.forwardEvent(new Gp(e.value.snapshot))})),e.children.length&&this.forwardEvent(new $p(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(zg(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(r.component){var a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),em(s.route)}else{var l=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),u=l?l.module.componentFactoryResolver:null;a.attachRef=null,a.route=r,a.resolver=u,a.outlet&&a.outlet.activateWith(r,u),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function em(e){zg(e.value),e.children.forEach(em)}var tm=function e(t,n){s(this,e),this.routes=t,this.module=n};function nm(e){return"function"==typeof e}function rm(e){return e instanceof sg}var im=function e(t){s(this,e),this.segmentGroup=t||null},om=function e(t){s(this,e),this.urlTree=t};function am(e){return new N((function(t){return t.error(new im(e))}))}function sm(e){return new N((function(t){return t.error(new om(e))}))}function lm(e){return new N((function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}))}var um=function(){function e(t,n,r,i,o){s(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(dt)}return u(e,[{key:"apply",value:function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(U((function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)}))).pipe(Fh((function(t){if(t instanceof om)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof im)throw e.noMatchError(t);throw t})))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(U((function(n){return t.createUrlTree(n,e.queryParams,e.fragment)}))).pipe(Fh((function(e){if(e instanceof im)throw t.noMatchError(e);throw e})))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var r=e.segments.length>0?new lg([],{primary:e}):e;return new sg(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(U((function(e){return new lg([],e)}))):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Wc({});var o=[],a=[],s={};return ig(n,(function(n,i){var l,u,c=(l=i,u=n,r.expandSegmentGroup(e,t,u,l)).pipe(U((function(e){return s[i]=e})));"primary"===i?o.push(c):a.push(c)})),Wc.apply(null,o.concat(a)).pipe(yp(),function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Bh((function(t,n){return e(t,n,r)})):O,kp(1),n?Ap(t):wp((function(){return new vp})))}}(),U((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,r,o,a){var s=this;return Wc.apply(void 0,i(n)).pipe(U((function(i){return s.expandSegmentAgainstRoute(e,t,n,i,r,o,a).pipe(Fh((function(e){if(e instanceof im)return Wc(null);throw e})))})),yp(),Pp((function(e){return!!e})),Fh((function(e,n){if(e instanceof vp||"EmptyError"===e.name){if(s.noLeftoversInUrl(t,r,o))return Wc(new lg([],{}));throw new im(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return fm(r)!==o?am(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):am(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?sm(o):this.lineralizeSegments(n,o).pipe(ne((function(n){var o=new lg(n,{});return i.expandSegment(e,o,t,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,s=cm(t,r,i),l=s.matched,u=s.consumedSegments,c=s.lastChild,d=s.positionalParamSegments;if(!l)return am(t);var h=this.applyRedirectCommands(u,r.redirectTo,d);return r.redirectTo.startsWith("/")?sm(h):this.lineralizeSegments(r,h).pipe(ne((function(r){return a.expandSegment(e,t,n,r.concat(i.slice(c)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(U((function(e){return n._loadedConfig=e,new lg(i,{})}))):Wc(new lg(i,{}));var a=cm(t,n,i),s=a.matched,l=a.consumedSegments,u=a.lastChild;if(!s)return am(t);var c=i.slice(u);return this.getChildConfig(e,n,i).pipe(ne((function(e){var n=e.module,i=e.routes,a=function(e,t,n,i){return n.length>0&&function(e,t,n){return n.some((function(n){return hm(e,t,n)&&"primary"!==fm(n)}))}(e,n,i)?{segmentGroup:dm(new lg(t,function(e,t){var n={};n.primary=t;var i,o=r(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;""===a.path&&"primary"!==fm(a)&&(n[fm(a)]=new lg([],{}))}}catch(s){o.e(s)}finally{o.f()}return n}(i,new lg(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return hm(e,t,n)}))}(e,n,i)?{segmentGroup:dm(new lg(e.segments,function(e,t,n,i){var o,a={},s=r(n);try{for(s.s();!(o=s.n()).done;){var l=o.value;hm(e,t,l)&&!i[fm(l)]&&(a[fm(l)]=new lg([],{}))}}catch(u){s.e(u)}finally{s.f()}return Object.assign(Object.assign({},i),a)}(e,n,i,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,l,c,i),s=a.segmentGroup,u=a.slicedSegments;return 0===u.length&&s.hasChildren()?o.expandChildren(n,i,s).pipe(U((function(e){return new lg(l,e)}))):0===i.length&&0===u.length?Wc(new lg(l,{})):o.expandSegment(n,s,i,u,"primary",!0).pipe(U((function(e){return new lg(l.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?Wc(new tm(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Wc(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(ne((function(n){return n?r.configLoader.load(e.injector,t).pipe(U((function(e){return t._loadedConfig=e,e}))):function(e){return new N((function(t){return t.error(Yp("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):Wc(new tm([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r,i=this,o=t.canLoad;return o&&0!==o.length?Y(o).pipe(U((function(r){var i,o=e.get(r);if(function(e){return e&&nm(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!nm(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return og(i)}))).pipe(yp(),Mv((function(e){if(rm(e)){var t=Yp('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}})),(r=function(e){return!0===e},function(e){return e.lift(new Rp(r,void 0,e))})):Wc(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Wc(n);if(r.numberOfChildren>1||!r.children.primary)return lm(e.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new sg(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return ig(e,(function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e})),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return ig(t.children,(function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)})),new lg(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map((function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)}))}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,i=0,o=r(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(i),a;i++}}catch(s){o.e(s)}finally{o.f()}return e}}]),e}();function cm(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||Xp)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function dm(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new lg(e.segments.concat(t.segments),t.children)}return e}function hm(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function fm(e){return e.outlet||"primary"}var vm=function e(t){s(this,e),this.path=t,this.route=this.path[this.path.length-1]},pm=function e(t,n){s(this,e),this.component=t,this.route=n};function gm(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function mm(e,t,n){var r=Ig(e),i=e.value;ig(r,(function(e,r){mm(e,i.component?t?t.children.getContext(r):null:t,n)})),n.canDeactivateChecks.push(new pm(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var ym=Symbol("INITIAL_VALUE");function km(){return Pv((function(e){return(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=void 0,i=void 0;return H(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&w(t[0])&&(t=t[0]),ae(t,i).lift(new gp(r))}).apply(void 0,i(e.map((function(e){return e.pipe(tf(1),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[t.length-1];return H(r)?(t.pop(),function(e){return Op(t,e,r)}):function(e){return Op(t,e)}}(ym))})))).pipe(id((function(e,t){var n=!1;return t.reduce((function(e,r,i){if(e!==ym)return e;if(r===ym&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||rm(r))return r}return e}),e)}),ym),Bh((function(e){return e!==ym})),U((function(e){return rm(e)?e:!0===e})),tf(1))}))}function bm(e,t){return null!==e&&t&&t(new Kp(e)),Wc(!0)}function _m(e,t){return null!==e&&t&&t(new Wp(e)),Wc(!0)}function wm(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Wc(r.map((function(r){return Mh((function(){var i,o=gm(r,t,n);if(function(e){return e&&nm(e.canActivate)}(o))i=og(o.canActivate(t,e));else{if(!nm(o))throw new Error("Invalid CanActivate guard");i=og(o(t,e))}return i.pipe(Pp())}))}))).pipe(km()):Wc(!0)}function Cm(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return Mh((function(){return Wc(t.guards.map((function(i){var o,a=gm(i,t.node,n);if(function(e){return e&&nm(e.canActivateChild)}(a))o=og(a.canActivateChild(r,e));else{if(!nm(a))throw new Error("Invalid CanActivateChild guard");o=og(a(r,e))}return o.pipe(Pp())}))).pipe(km())}))}));return Wc(i).pipe(km())}var xm=function e(){s(this,e)},Sm=function(){function e(t,n,r,i,o,a){s(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return u(e,[{key:"recognize",value:function(){try{var e=Tm(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new Dg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Rg(n,t),i=new jg(this.url,r);return this.inheritParamsAndData(i._root),Wc(i)}catch(o){return new N((function(e){return e.error(o)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=Lg(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,r=this,i=dg(t,(function(t,n){return r.processSegmentGroup(e,t,n)}));return n={},i.forEach((function(e){var t=n[e.value.outlet];if(t){var r=t.url.map((function(e){return e.toString()})).join("/"),i=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[e.value.outlet]=e.value})),i.sort((function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)})),i}},{key:"processSegment",value:function(e,t,n,i){var o,a=r(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;try{return this.processSegmentAgainstRoute(s,t,n,i)}catch(l){if(!(l instanceof xm))throw l}}}catch(u){a.e(u)}finally{a.f()}if(this.noLeftoversInUrl(t,n,i))return[];throw new xm}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo)throw new xm;if((e.outlet||"primary")!==r)throw new xm;var i,o=[],a=[];if("**"===e.path){var s=n.length>0?rg(n).parameters:{};i=new Dg(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Im(e),r,e.component,e,Am(t),Em(t)+n.length,Om(e))}else{var l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new xm;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||Xp)(n,e,t);if(!r)throw new xm;var i={};ig(r.posParams,(function(e,t){i[t]=e.path}));var o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=l.consumedSegments,a=n.slice(l.lastChild),i=new Dg(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Im(e),r,e.component,e,Am(t),Em(t)+o.length,Om(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Tm(t,o,a,u,this.relativeLinkResolution),d=c.segmentGroup,h=c.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(u,d);return[new Rg(i,f)]}if(0===u.length&&0===h.length)return[new Rg(i,[])];var v=this.processSegment(u,d,h,"primary");return[new Rg(i,v)]}}]),e}();function Am(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Em(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Tm(e,t,n,i,o){if(n.length>0&&function(e,t,n){return n.some((function(n){return Pm(e,t,n)&&"primary"!==Rm(n)}))}(e,n,i)){var a=new lg(t,function(e,t,n,i){var o={};o.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var a,s=r(n);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(""===l.path&&"primary"!==Rm(l)){var u=new lg([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,o[Rm(l)]=u}}}catch(c){s.e(c)}finally{s.f()}return o}(e,t,i,new lg(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return Pm(e,t,n)}))}(e,n,i)){var s=new lg(e.segments,function(e,t,n,i,o,a){var s,l={},u=r(i);try{for(u.s();!(s=u.n()).done;){var c=s.value;if(Pm(e,n,c)&&!o[Rm(c)]){var d=new lg([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===a?e.segments.length:t.length,l[Rm(c)]=d}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},o),l)}(e,t,n,i,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}var l=new lg(e.segments,e.children);return l._sourceSegment=e,l._segmentIndexShift=t.length,{segmentGroup:l,slicedSegments:n}}function Pm(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Rm(e){return e.outlet||"primary"}function Im(e){return e.data||{}}function Om(e){return e.resolve||{}}function Mm(e){return function(t){return t.pipe(Pv((function(t){var n=e(t);return n?Y(n).pipe(U((function(){return t}))):Y([t])})))}}var Nm,Lm=function(){function e(){s(this,e)}return u(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}(),Dm=((Nm=function e(){s(this,e)}).\u0275fac=function(e){return new(e||Nm)},Nm.\u0275cmp=xt({type:Nm,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&fa(0,"router-outlet")},directives:function(){return[ly]},encapsulation:2}),Nm);function jm(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var r=e[n];Fm(r,Vm(t,r))}}function Fm(e,t){if(!e)throw new Error("\n Invalid configuration of route '".concat(t,"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n "));if(Array.isArray(e))throw new Error("Invalid configuration of route '".concat(t,"': Array cannot be specified"));if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&"primary"!==e.outlet)throw new Error("Invalid configuration of route '".concat(t,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and children cannot be used together"));if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and loadChildren cannot be used together"));if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': children and loadChildren cannot be used together"));if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and component cannot be used together"));if(e.path&&e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': path and matcher cannot be used together"));if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': routes must have either a path or a matcher specified"));if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '".concat(t,"': path cannot start with a slash"));if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \"".concat(t,'", redirectTo: "').concat(e.redirectTo,"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."));if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '".concat(t,"': pathMatch can only be set to 'prefix' or 'full'"));e.children&&jm(e.children,t)}function Vm(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function zm(e){var t=e.children&&e.children.map(zm),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=Dm),n}var Bm=new Ye("ROUTES"),Hm=function(){function e(t,n,r,i){s(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return u(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(U((function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new tm(ng(i.injector.get(Bm)).map(zm),i)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Y(this.loader.load(e)):og(e()).pipe(ne((function(e){return e instanceof ht?Wc(e):Y(t.compiler.compileModuleAsync(e))})))}}]),e}(),Um=function e(){s(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new qm,this.attachRef=null},qm=function(){function e(){s(this,e),this.contexts=new Map}return u(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new Um,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),Wm=function e(){s(this,e)},$m=function(){function e(){s(this,e)}return u(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Km(e){throw e}function Gm(e,t,n){return t.parse("/")}function Jm(e,t){return Wc(null)}var Qm,Zm,Ym,Xm=((Ym=function(){function e(t,n,r,i,o,a,l,u){var c=this;s(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new z,this.errorHandler=Km,this.malformedUriErrorHandler=Gm,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Jm,afterPreactivation:Jm},this.urlHandlingStrategy=new $m,this.routeReuseStrategy=new Lm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(dt),this.console=o.get(gl);var d=o.get(Pl);this.isNgZoneEnabled=d instanceof Pl,this.resetConfig(u),this.currentUrlTree=new sg(new lg([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Hm(a,l,(function(e){return c.triggerEvent(new Up(e))}),(function(e){return c.triggerEvent(new qp(e))})),this.routerState=Mg(this.currentUrlTree,this.rootComponentType),this.transitions=new Fc({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return u(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Bh((function(e){return 0!==e.id})),U((function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),Pv((function(e){var i,o,a,s,l=!1,u=!1;return Wc(e).pipe(Mv((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Pv((function(e){var r,i,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Wc(e).pipe(Pv((function(e){var r=t.transitions.getValue();return n.next(new Np(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?Uc:[e]})),Pv((function(e){return Promise.resolve(e)})),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(Pv((function(e){return function(e,t,n,r,i){return new um(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(U((function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})})))})))}),Mv((function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,n,r,i,o){return function(r){return r.pipe(ne((function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Sm(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe(U((function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})})));var a})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Mv((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Mv((function(e){var r=new Fp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,u=e.extractedUrl,c=e.source,d=e.restoredState,h=e.extras,f=new Np(l,t.serializeUrl(u),c,d);n.next(f);var v=Mg(u,t.rootComponentType).snapshot;return Wc(Object.assign(Object.assign({},e),{targetSnapshot:v,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Uc})),Mm((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})})),Mv((function(e){var n=new Vp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),U((function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,o=n._root,function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Ig(n);return t.children.forEach((function(t){!function(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,s=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!cg(e.url,t.url);case"pathParamsOrQueryParamsChange":return!cg(e.url,t.url)||!eg(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bg(e,t)||!eg(e.queryParams,t.queryParams);case"paramsChange":default:return!Bg(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new vm(i)):(a.data=s.data,a._resolvedData=s._resolvedData),e(t,n,a.component?l?l.children:null:r,i,o),u&&o.canDeactivateChecks.push(new pm(l&&l.outlet&&l.outlet.component||null,s))}else s&&mm(n,l,o),o.canActivateChecks.push(new vm(i)),e(t,null,a.component?l?l.children:null:r,i,o)}(t,a[t.value.outlet],r,i.concat([t.value]),o),delete a[t.value.outlet]})),ig(a,(function(e,t){return mm(e,r.getContext(t),o)})),o}(o,r?r._root:null,i,[o.value]))});var n,r,i,o})),function(e,t){return function(n){return n.pipe(ne((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Wc(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Y(e).pipe(ne((function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Wc(o.map((function(o){var a,s=gm(o,t,i);if(function(e){return e&&nm(e.canDeactivate)}(s))a=og(s.canDeactivate(e,t,n,r));else{if(!nm(s))throw new Error("Invalid CanDeactivate guard");a=og(s(e,t,n,r))}return a.pipe(Pp())}))).pipe(km()):Wc(!0)}(e.component,e.route,n,t,r)})),Pp((function(e){return!0!==e}),!0))}(s,r,i,e).pipe(ne((function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Y(t).pipe(of((function(t){return Y([_m(t.route.parent,r),bm(t.route,r),Cm(e,t.path,n),wm(e,t.route,n)]).pipe(yp(),Pp((function(e){return!0!==e}),!0))})),Pp((function(e){return!0!==e}),!0))}(r,a,e,t):Wc(n)})),U((function(e){return Object.assign(Object.assign({},n),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),Mv((function(e){if(rm(e.guardsResult)){var n=Yp('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}})),Mv((function(e){var n=new zp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),Bh((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Dp(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0})),Mm((function(e){if(e.guards.canActivateChecks.length)return Wc(e).pipe(Mv((function(e){var n=new Bp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),Pv((function(e){var r,i,o=!1;return Wc(e).pipe((r=t.paramsInheritanceStrategy,i=t.ngModule.injector,function(e){return e.pipe(ne((function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Wc(e);var o=0;return Y(n).pipe(of((function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Wc({});var o={};return Y(i).pipe(ne((function(i){return function(e,t,n,r){var i=gm(e,t,r);return og(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(Mv((function(e){o[i]=e})))})),kp(1),ne((function(){return Object.keys(o).length===i.length?Wc(o):Uc})))}(e._resolve,e,t,r).pipe(U((function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Lg(e,n).resolve),null})))}(e.route,t,r,i)})),Mv((function(){return o++})),kp(1),ne((function(t){return o===n.length?Wc(e):Uc})))})))}),Mv({next:function(){return o=!0},complete:function(){if(!o){var r=new Dp(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),e.resolve(!1)}}}))})),Mv((function(e){var n=new Hp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})))})),Mm((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})})),U((function(e){var n=function(e,t,n){var i=function e(t,n,i){if(i&&t.shouldReuseRoute(n.value,i.value.snapshot)){var o=i.value;o._futureSnapshot=n.value;var a=function(t,n,i){return n.children.map((function(n){var o,a=r(i.children);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s)}}catch(l){a.e(l)}finally{a.f()}return e(t,n)}))}(t,n,i);return new Rg(o,a)}var s=t.retrieve(n.value);if(s){var l=s.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,l),l}var u,c=new Ng(new Fc((u=n.value).url),new Fc(u.params),new Fc(u.queryParams),new Fc(u.fragment),new Fc(u.data),u.outlet,u.component,u),d=n.children.map((function(n){return e(t,n)}));return new Rg(c,d)}(e,t._root,n?n._root:void 0);return new Og(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})})),Mv((function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),(o=t.rootContexts,a=t.routeReuseStrategy,s=function(e){return t.triggerEvent(e)},U((function(e){return new Xg(a,e.targetRouterState,e.currentRouterState,s).activate(o),e}))),Mv({next:function(){l=!0},complete:function(){l=!0}}),(i=function(){if(!l&&!u){t.resetUrlToCurrentUrlTree();var r=new Dp(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null},function(e){return e.lift(new af(i))}),Fh((function(r){if(u=!0,(s=r)&&s.ngNavigationCancelingError){var i=rm(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new Dp(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(o),i?setTimeout((function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);return t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})}),0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new jp(e.id,t.serializeUrl(e.extractedUrl),r);n.next(a);try{e.resolve(t.errorHandler(r))}catch(l){e.reject(l)}}var s;return Uc})))})))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(t){var n=e.parseUrl(t.url),r="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout((function(){e.scheduleNavigation(n,r,i,{replaceUrl:!0})}),0)})))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){jm(e),this.config=e.map(zm),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,o=t.fragment,a=t.preserveQueryParams,s=t.queryParamsHandling,l=t.preserveFragment;Or()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,c=l?this.currentUrlTree.fragment:o,d=null;if(s)switch(s){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}else d=a?this.currentUrlTree.queryParams:r||null;return null!==d&&(d=this.removeEmptyProps(d)),function(e,t,n,r,o){if(0===n.length)return Ug(t.root,t.root,t,r,o);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new qg(!0,0,e);var t=0,n=!1,r=e.reduce((function(e,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var a={};return ig(r.outlets,(function(e,t){a[t]="string"==typeof e?e.split("/"):e})),[].concat(i(e),[{outlets:a}])}if(r.segmentPath)return[].concat(i(e),[r.segmentPath])}return"string"!=typeof r?[].concat(i(e),[r]):0===o?(r.split("/").forEach((function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))})),e):[].concat(i(e),[r])}),[]);return new qg(n,t,r)}(n);if(a.toRoot())return Ug(t.root,new lg([],{}),t,r,o);var s=function(e,t,n){if(e.isAbsolute)return new Wg(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new Wg(r,r===t.root,0)}var i=Hg(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Wg(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,t,e),l=s.processChildren?Gg(s.segmentGroup,s.index,a.commands):Kg(s.segmentGroup,s.index,a.commands);return Ug(s.segmentGroup,l,t,r,o)}(u,this.currentUrlTree,e,d,c)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Or()&&this.isNgZoneEnabled&&!Pl.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=rm(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(rm(e))return ag(this.currentUrlTree,e,t);var n=this.parseUrl(e);return ag(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return null!=r&&(t[n]=r),t}),{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe((function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new Lp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)}),(function(t){e.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(e,t,n,r,i){var o,a,s,l=this.getTransition();if(l&&"imperative"!==t&&"imperative"===l.source&&l.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(l&&"hashchange"==t&&"popstate"===l.source&&l.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(l&&"popstate"==t&&"hashchange"===l.source&&l.rawUrl.toString()===e.toString())return Promise.resolve(!0);i?(o=i.resolve,a=i.reject,s=i.promise):s=new Promise((function(e,t){o=e,a=t}));var u=++this.navigationId;return this.setTransition({id:u,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(e){return Promise.reject(e)}))}},{key:"setBrowserUrl",value:function(e,t,n,r){var i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),e}()).\u0275fac=function(e){return new(e||Ym)(st(Oo),st(hg),st(qm),st(Tu),st(Ko),st(Ql),st(Al),st(void 0))},Ym.\u0275prov=Ce({token:Ym,factory:Ym.\u0275fac}),Ym),ey=((Zm=function(){function e(t,n,r,i,o){s(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new z,null==r&&i.setAttribute(o.nativeElement,"tabindex","0")}return u(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"onClick",value:function(){var e={skipLocationChange:ny(this.skipLocationChange),replaceUrl:ny(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){Or()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ny(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ny(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||Zm)(sa(Xm),sa(Ng),la("tabindex"),sa(ns),sa(Ya))},Zm.\u0275dir=Rt({type:Zm,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&ya("click",(function(){return t.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Ut]}),Zm),ty=((Qm=function(){function e(t,n,r){var i=this;s(this,e),this.router=t,this.route=n,this.locationStrategy=r,this.commands=[],this.onChanges=new z,this.subscription=t.events.subscribe((function(e){e instanceof Lp&&i.updateTargetUrlAndHref()}))}return u(e,[{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,r){if(0!==e||t||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:ny(this.skipLocationChange),replaceUrl:ny(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){Or()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ny(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ny(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||Qm)(sa(Xm),sa(Ng),sa(bu))},Qm.\u0275dir=Rt({type:Qm,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&ya("click",(function(e){return t.onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)})),2&e&&(Fa("href",t.href,Dr),ia("target",t.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Ut]}),Qm);function ny(e){return""===e||!!e}var ry,iy,oy,ay,sy=((iy=function(){function e(t,n,r,i,o,a){var l=this;s(this,e),this.router=t,this.element=n,this.renderer=r,this.cdr=i,this.link=o,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe((function(e){e instanceof Lp&&l.update()}))}return u(e,[{key:"ngAfterContentInit",value:function(){var e=this;Y([this.links.changes,this.linksWithHrefs.changes,Wc(null)]).pipe(oe()).subscribe((function(t){e.update(),e.subscribeToEachLinkOnChanges()}))}},{key:"subscribeToEachLinkOnChanges",value:function(){var e,t=this;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();var n=[].concat(i(this.links.toArray()),i(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter((function(e){return!!e})).map((function(e){return e.onChanges}));this.linkInputChangesSubscription=Y(n).pipe(oe()).subscribe((function(e){t.isActive!==t.isLinkActive(t.router)(e)&&t.update()}))}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}},{key:"update",value:function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.cdr.markForCheck(),e.classes.forEach((function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)})))}))}},{key:"isLinkActive",value:function(e){var t=this;return function(n){return e.isActive(n.urlTree,t.routerLinkActiveOptions.exact)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}},{key:"routerLinkActive",set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter((function(e){return!!e}))}}]),e}()).\u0275fac=function(e){return new(e||iy)(sa(Xm),sa(Ya),sa(ns),sa(Ro),sa(ey,8),sa(ty,8))},iy.\u0275dir=Rt({type:iy,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){var r;1&e&&(rl(n,ey,!0),rl(n,ty,!0)),2&e&&(tl(r=il())&&(t.links=r),tl(r=il())&&(t.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[Ut]}),iy),ly=((ry=function(){function e(t,n,r,i,o){s(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new qs,this.deactivateEvents=new qs,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}return u(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new uy(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),e}()).\u0275fac=function(e){return new(e||ry)(sa(qm),sa(Cs),sa(Za),la("name"),sa(Ro))},ry.\u0275dir=Rt({type:ry,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),ry),uy=function(){function e(t,n,r){s(this,e),this.route=t,this.childContexts=n,this.parent=r}return u(e,[{key:"get",value:function(e,t){return e===Ng?this.route:e===qm?this.childContexts:this.parent.get(e,t)}}]),e}(),cy=function e(){s(this,e)},dy=function(){function e(){s(this,e)}return u(e,[{key:"preload",value:function(e,t){return Wc(null)}}]),e}(),hy=((ay=function(){function e(t,n,r,i,o){s(this,e),this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new Hm(n,r,(function(e){return t.triggerEvent(new Up(e))}),(function(e){return t.triggerEvent(new qp(e))}))}return u(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Bh((function(e){return e instanceof Lp})),of((function(){return e.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var e=this.injector.get(dt);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],o=r(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var s=a._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else a.loadChildren&&!a.canLoad?i.push(this.preloadConfig(e,a)):a.children&&i.push(this.processRoutes(e,a.children))}}catch(l){o.e(l)}finally{o.f()}return Y(i).pipe(oe(),U((function(e){})))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,(function(){return n.loader.load(e.injector,t).pipe(ne((function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)})))}))}}]),e}()).\u0275fac=function(e){return new(e||ay)(st(Xm),st(Ql),st(Al),st(Ko),st(cy))},ay.\u0275prov=Ce({token:ay,factory:ay.\u0275fac}),ay),fy=((oy=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return u(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Np?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Lp&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Jp&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Jp(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||oy)(st(Xm),st(ec),st(void 0))},oy.\u0275prov=Ce({token:oy,factory:oy.\u0275fac}),oy),vy=new Ye("ROUTER_CONFIGURATION"),py=new Ye("ROUTER_FORROOT_GUARD"),gy=[Tu,{provide:hg,useClass:fg},{provide:Xm,useFactory:function(e,t,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new Xm(null,e,t,n,r,i,o,ng(a));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),s.errorHandler&&(c.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(c.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=au();c.events.subscribe((function(e){d.logGroup("Router Event: "+e.constructor.name),d.log(e.toString()),d.log(e),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(c.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(c.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(c.relativeLinkResolution=s.relativeLinkResolution),c},deps:[hg,qm,Tu,Ko,Ql,Al,Bm,vy,[Wm,new ye],[function(){return function e(){s(this,e)}}(),new ye]]},qm,{provide:Ng,useFactory:function(e){return e.routerState.root},deps:[Xm]},{provide:Ql,useClass:Xl},hy,dy,function(){function e(){s(this,e)}return u(e,[{key:"preload",value:function(e,t){return t().pipe(Fh((function(){return Wc(null)})))}}]),e}(),{provide:vy,useValue:{enableTracing:!1}}];function my(){return new Hl("Router",Xm)}var yy,ky=((yy=function(){function e(t,n){s(this,e)}return u(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[gy,Cy(t),{provide:py,useFactory:wy,deps:[[Xm,new ye,new be]]},{provide:vy,useValue:n||{}},{provide:bu,useFactory:_y,deps:[uu,[new me(Su),new ye],vy]},{provide:fy,useFactory:by,deps:[Xm,ec,vy]},{provide:cy,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:dy},{provide:Hl,multi:!0,useFactory:my},[Sy,{provide:ll,multi:!0,useFactory:Ay,deps:[Sy]},{provide:Ny,useFactory:Ey,deps:[Sy]},{provide:pl,multi:!0,useExisting:Ny}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Cy(t)]}}}]),e}()).\u0275mod=Tt({type:yy}),yy.\u0275inj=xe({factory:function(e){return new(e||yy)(st(py,8),st(Xm,8))}}),yy);function by(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new fy(e,t,n)}function _y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Eu(e,t):new Au(e,t)}function wy(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Cy(e){return[{provide:Go,multi:!0,useValue:e},{provide:Bm,multi:!0,useValue:e}]}var xy,Sy=((xy=function(){function e(t){s(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new z}return u(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(hu,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),r=e.injector.get(Xm),i=e.injector.get(vy);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(i.initialNavigation,"'"));r.hooks.afterPreactivation=function(){return e.initNavigation?Wc(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(vy),n=this.injector.get(hy),r=this.injector.get(fy),i=this.injector.get(Xm),o=this.injector.get(Gl);e===o.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}()).\u0275fac=function(e){return new(e||xy)(st(Ko))},xy.\u0275prov=Ce({token:xy,factory:xy.\u0275fac}),xy);function Ay(e){return e.appInitializer.bind(e)}function Ey(e){return e.bootstrapListener.bind(e)}var Ty,Py,Ry,Iy,Oy,My,Ny=new Ye("Router Initializer"),Ly=((My=function(){function e(t,n,r){s(this,e),this.localStorageService=t,this.router=n,this.configService=r}return u(e,[{key:"intercept",value:function(e,t){var n=this,r=e;return e.url.startsWith(this.configService.apiUrl)?((r=this.authInterceptor(r))instanceof Kf&&(r=this.snakeCaseRequestInterceptor(r)),this.response(t,r).pipe(Fh((function(e){return 401===e.status&&n.router.navigateByUrl("/login"),$c(e)})))):this.response(t,r)}},{key:"response",value:function(e,t){var n=this;return e.handle(t).pipe(U((function(e){return e instanceof Zf?n.camelCaseResponseInterceptor(e):e})))}},{key:"snakeCaseRequestInterceptor",value:function(e){var t=e;if(t.body){var n=hp.objKeysTransformer(t.body,sp);t=t.clone({body:n})}if(t.params){var r=new Uf;t.params.keys().forEach((function(e){var n=t.params.get(e);n&&(r=r.append(sp(e),n))})),t=t.clone({params:r})}return t}},{key:"camelCaseResponseInterceptor",value:function(e){var t=hp.objKeysTransformer(e.body,cp);return e.clone({body:t})}},{key:"authInterceptor",value:function(e){var t=this.localStorageService.get("token");return t?e.clone({setHeaders:{Authorization:"Bearer "+t}}):e}}]),e}()).\u0275fac=function(e){return new(e||My)(st(fp),st(Xm),st(Tv))},My.\u0275prov=Ce({token:My,factory:My.\u0275fac}),My),Dy=((Oy=function e(){s(this,e)}).\u0275mod=Tt({type:Oy}),Oy.\u0275inj=xe({factory:function(e){return new(e||Oy)},providers:[fp],imports:[[]]}),Oy),jy=((Iy=function e(){s(this,e)}).\u0275mod=Tt({type:Iy}),Iy.\u0275inj=xe({factory:function(e){return new(e||Iy)},providers:[{provide:fv,useClass:Ly,multi:!0}],imports:[[Dy]]}),Iy),Fy=((Ry=function(){function e(t,n){s(this,e),this.http=t,this.config=n}return u(e,[{key:"search",value:function(e,t){return this.http.get(this.base,{params:hp.buildQueryParams({project:e,text:t})})}},{key:"base",get:function(){return this.config.apiUrl+"/search"}}]),e}()).\u0275fac=function(e){return new(e||Ry)(st(dv),st(Tv))},Ry.\u0275prov=Ce({token:Ry,factory:Ry.\u0275fac}),Ry),Vy=((Py=function e(){s(this,e)}).\u0275mod=Tt({type:Py}),Py.\u0275inj=xe({factory:function(e){return new(e||Py)},providers:[Fy],imports:[[Av,jy]]}),Py),zy=((Ty=function e(){s(this,e)}).\u0275mod=Tt({type:Ty}),Ty.\u0275inj=xe({factory:function(e){return new(e||Ty)},providers:[],imports:[[Xu,Xv,ep,Vy]]}),Ty),By=l("M55E"),Hy=l.n(By);function Uy(e,t){return Array(t+1).join(e)}var qy=["address","article","aside","audio","blockquote","body","canvas","center","dd","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frameset","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","isindex","li","main","menu","nav","noframes","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul"];function Wy(e){return-1!==qy.indexOf(e.nodeName.toLowerCase())}var $y=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Ky(e){return-1!==$y.indexOf(e.nodeName.toLowerCase())}var Gy=$y.join(),Jy={};function Qy(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function Zy(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(Yy(i,t,n))return i}}function Yy(e,t,n){var r=e.filter;if("string"==typeof r){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else{if("function"!=typeof r)throw new TypeError("`filter` needs to be a string, array, or function");if(r.call(e,t,n))return!0}}function Xy(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function ek(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}Jy.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},Jy.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},Jy.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));return"setext"===n.headingStyle&&r<3?"\n\n"+e+"\n"+Uy(1===r?"=":"-",e.length)+"\n\n":"\n\n"+Uy("#",r)+" "+e+"\n\n"}},Jy.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},Jy.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},Jy.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var r=n.bulletListMarker+" ",i=t.parentNode;if("OL"===i.nodeName){var o=i.getAttribute("start"),a=Array.prototype.indexOf.call(i.children,t);r=(o?Number(o)+a:a+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},Jy.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},Jy.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){for(var r,i=((t.firstChild.className||"").match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,a=n.fence.charAt(0),s=3,l=new RegExp("^"+a+"{3,}","gm");r=l.exec(o);)r[0].length>=s&&(s=r[0].length+1);var u=Uy(a,s);return"\n\n"+u+i+"\n"+o.replace(/\n$/,"")+"\n"+u+"\n\n"}},Jy.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},Jy.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){return"["+e+"]("+t.getAttribute("href")+(t.title?' "'+t.title+'"':"")+")"}},Jy.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,i,o=t.getAttribute("href"),a=t.title?' "'+t.title+'"':"";switch(n.linkReferenceStyle){case"collapsed":r="["+e+"][]",i="["+e+"]: "+o+a;break;case"shortcut":r="["+e+"]",i="["+e+"]: "+o+a;break;default:var s=this.references.length+1;r="["+e+"]["+s+"]",i="["+s+"]: "+o+a}return this.references.push(i),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},Jy.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},Jy.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},Jy.code={filter:function(e){return"CODE"===e.nodeName&&!("PRE"===e.parentNode.nodeName&&!e.previousSibling&&!e.nextSibling)},replacement:function(e){if(!e.trim())return"";var t="`",n="",r="",i=e.match(/`+/gm);if(i)for(/^`/.test(e)&&(n=" "),/`$/.test(e)&&(r=" ");-1!==i.indexOf(t);)t+="`";return t+n+e+r+t}},Jy.image={filter:"img",replacement:function(e,t){var n=t.alt||"",r=t.getAttribute("src")||"",i=t.title||"";return r?"!["+n+"]("+r+(i?' "'+i+'"':"")+")":""}},Qy.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){return e.isBlank?this.blankRule:(t=Zy(this.array,e,this.options))||(t=Zy(this._keep,e,this.options))||(t=Zy(this._remove,e,this.options))?t:this.defaultRule;var t},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var tk,nk,rk,ik="undefined"!=typeof window?window:{},ok=function(){var e=ik.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(n){}return t}()?ik.DOMParser:(tk=function(){},nk=l(1).JSDOM,tk.prototype.parseFromString=function(e){return new nk(e).window.document},tk);function ak(e){var t;return function(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(e){return"PRE"===e.nodeName};if(t.firstChild&&!i(t)){for(var o=null,a=!1,s=null,l=ek(s,t,i);l!==t;){if(3===l.nodeType||4===l.nodeType){var u=l.data.replace(/[ \r\n\t]+/g," ");if(o&&!/ $/.test(o.data)||a||" "!==u[0]||(u=u.substr(1)),!u){l=Xy(l);continue}l.data=u,o=l}else{if(1!==l.nodeType){l=Xy(l);continue}n(l)||"BR"===l.nodeName?(o&&(o.data=o.data.replace(/ $/,"")),o=null,a=!1):r(l)&&(o=null,a=!0)}var c=ek(s,l,i);s=l,l=c}o&&(o.data=o.data.replace(/ $/,""),o.data||Xy(o))}}({element:t="string"==typeof e?(rk=rk||new ok).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):e.cloneNode(!0),isBlock:Wy,isVoid:Ky}),t}function sk(e){return e.isBlock=Wy(e),e.isCode="code"===e.nodeName.toLowerCase()||e.parentNode.isCode,e.isBlank=function(e){return-1===["A","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"].indexOf(e.nodeName)&&/^\s*$/i.test(e.textContent)&&!Ky(e)&&!function(e){return e.querySelector&&e.querySelector(Gy)}(e)}(e),e.flankingWhitespace=function(e){var t="",n="";if(!e.isBlock){var r=/^\s/.test(e.textContent),i=/\s$/.test(e.textContent),o=e.isBlank&&r&&i;r&&!lk("left",e)&&(t=" "),o||!i||lk("right",e)||(n=" ")}return{leading:t,trailing:n}}(e),e}function lk(e,t){var n,r,i;return"left"===e?(n=t.previousSibling,r=/ $/):(n=t.nextSibling,r=/^ /),n&&(3===n.nodeType?i=r.test(n.nodeValue):1!==n.nodeType||Wy(n)||(i=r.test(n.textContent))),i}var uk=Array.prototype.reduce,ck=/^\n*/,dk=/\n*$/,hk=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function fk(e){if(!(this instanceof fk))return new fk(e);this.options=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},{rules:Jy,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",blankReplacement:function(e,t){return t.isBlock?"\n\n":""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?"\n\n"+e+"\n\n":e}},e),this.rules=new Qy(this.options)}function vk(e){var t=this;return uk.call(e.childNodes,(function(e,n){var r="";return 3===(n=new sk(n)).nodeType?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):1===n.nodeType&&(r=gk.call(t,n)),mk(e,r)}),"")}function pk(e){var t=this;return this.rules.forEach((function(n){"function"==typeof n.append&&(e=mk(e,n.append(t.options)))})),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function gk(e){var t=this.rules.forNode(e),n=vk.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function mk(e,t){var n,r,i,o=(n=t,(i=(r=[e.match(dk)[0],n.match(ck)[0]].sort())[r.length-1]).length<2?i:"\n\n");return(e=e.replace(dk,""))+o+t.replace(ck,"")}fk.prototype={turndown:function(e){if(!function(e){return null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))}(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(""===e)return"";var t=vk.call(this,new ak(e));return pk.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else{if("function"!=typeof e)throw new TypeError("plugin must be a Function or an Array of Functions");e(this)}return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return hk.reduce((function(e,t){return e.replace(t[0],t[1])}),e)}};var yk,kk=fk,bk=function(e){e.addRule("taskListItems",{filter:function(e){return"checkbox"===e.type},replacement:function(e,t){return(t.checked?"[x]":"[ ]")+" "}})},_k=Array.prototype.indexOf,wk=Array.prototype.every,Ck=((yk={}).tableCell={filter:["th","td"],replacement:function(e,t){return Sk(e,t)}},yk.tableRow={filter:"tr",replacement:function(e,t){var n="",r={left:":--",right:"--:",center:":-:"};if(xk(t))for(var i=0;i<t.childNodes.length;i++){var o="---",a=(t.childNodes[i].getAttribute("align")||"").toLowerCase();a&&(o=r[a]||o),n+=Sk(o,t.childNodes[i])}return"\n"+e+(n?"\n"+n:"")}},yk.table={filter:function(e){return"TABLE"===e.nodeName&&xk(e.rows[0])},replacement:function(e){return"\n\n"+(e=e.replace("\n\n","\n"))+"\n\n"}},yk.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}},yk);function xk(e){var t,n,r=e.parentNode;return"THEAD"===r.nodeName||r.firstChild===e&&("TABLE"===r.nodeName||(n=(t=r).previousSibling,"TBODY"===t.nodeName&&(!n||"THEAD"===n.nodeName&&/^\s*$/i.test(n.textContent))))&&wk.call(e.childNodes,(function(e){return"TH"===e.nodeName}))}function Sk(e,t){if(!t.parentNode)return"";var n=" ";0===_k.call(t.parentNode.childNodes,t)&&(n="| ");var r=e.trim().replace(/^\s+|\s+$/g,"");return r.startsWith("![")&&(e=r),n+e+" |"}function Ak(e){for(var t in e.keep((function(e){return"TABLE"===e.nodeName&&!xk(e.rows[0])})),Ck)e.addRule(t,Ck[t])}var Ek,Tk,Pk,Rk=function(e){e.addRule("mention",{filter:function(e){var t;return"A"===e.tagName&&!!(null===(t=e.getAttribute("href"))||void 0===t?void 0:t.startsWith("profile/"))},replacement:function(e,t){var n,r=null===(n=t.getAttribute("href"))||void 0===n?void 0:n.split("profile/")[1];return r?"@"+r:""}})},Ik=function(e){return function(t){t.addRule("references",{filter:function(t){var n;return"A"===t.tagName&&!!(null===(n=t.getAttribute("href"))||void 0===n?void 0:n.startsWith("project/".concat(e,"/t/")))},replacement:function(e,t){var n,r=null===(n=t.getAttribute("href"))||void 0===n?void 0:n.split("/t/")[1];return r?"#"+r:""}})}},Ok=function(e){e.addRule("strikethrough",{filter:["del","s"],replacement:function(e){return"~~"+e+"~~"}})},Mk=function(e){return function(t){t.addRule("references",{filter:function(t){var n;return"A"===t.tagName&&!!(null===(n=t.getAttribute("href"))||void 0===n?void 0:n.startsWith("project/".concat(e,"/wiki/")))},replacement:function(t,n){var r=n.getAttribute("href");if(r){var i=n.innerHTML;return(r=r.replace("project/".concat(e,"/wiki/"),""))===i?"[[".concat(r,"]]"):"[[".concat(r,"|").concat(i,"]]")}throw new Error("Wiki link must have href")}})}},Nk=function(e){return[{type:"lang",regex:/(^|\s)(\\)?(#([a-z\d]+(?:[a-z\d._-]+?[a-z\d]+)*))/gi,replace:function(t,n,r){if("\\"===n)return t;var i=t.indexOf("#"),o=t.slice(0,i),a=t.slice(i).replace("&nbsp;","").replace("#","").replace(/ /g,"");return"".concat(o,"[#").concat(a,"](project/").concat(e,"/t/").concat(a,")")}},{type:"lang",regex:/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d._-]+?[a-z\d]+)*))/gi,replace:function(e,t,n){if("\\"===t)return e;var r=e.indexOf("@"),i=e.slice(0,r),o=e.slice(r).replace("&nbsp;","").replace("@","").replace(/ /g,"");return"".concat(i,"[@").concat(o,"](profile/").concat(o,")")}},{type:"output",filter:function(e){return(e=e.replace(new RegExp('href="project/',"gi"),'class="mention" data-mention="true" href="project/')).replace(new RegExp('href="profile/',"gi"),'class="mention" data-mention="true" href="profile/')}}]},Lk=function(e){return[{type:"lang",regex:/\[\[(.*?)\]\]/g,replace:function(t,r){var i=n(r.split("|"),2),o=i[0],a=i[1];return"[".concat(a||o,"](project/").concat(e,"/wiki/").concat(o,")")}}]},Dk=((Ek=function(){function e(){s(this,e)}return u(e,[{key:"setUp",value:function(e){this.showdownConverter=new Hy.a.Converter({strikethrough:!0,tables:!0,tasklists:!0,literalMidWordUnderscores:!0,simpleLineBreaks:!0,emoji:!0,openLinksInNewWindow:!0,backslashEscapesHTMLTags:!0,ellipsis:!1,simplifiedAutoLink:!0,extensions:[Nk(e),Lk(e),[{type:"output",regex:"<p>(<a.*?><img.*?</a>)</p>",replace:function(e,t){return t}}]]}),this.turndownService=new kk({codeBlockStyle:"fenced"}),this.turndownService.use([Ak,bk,Rk,Ik(e),Mk(e),Ok])}},{key:"toHtml",value:function(e){return this.showdownConverter.makeHtml(e)}},{key:"toMarkdown",value:function(e){return this.turndownService.turndown(e)}},{key:"isReady",value:function(){return this.turndownService&&this.showdownConverter}}]),e}()).\u0275fac=function(e){return new(e||Ek)},Ek.\u0275prov=Ce({token:Ek,factory:Ek.\u0275fac}),Ek),jk=l("2u/s"),Fk=l.n(jk),Vk=l("7Km7"),zk=l("USe2"),Bk=function(){function e(t,n){s(this,e),this.loader=t,this.uploadFunction=n}return u(e,[{key:"setUploadFunction",value:function(e){this.uploadFunction=e}},{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new Promise((function(n){e.uploadFunction(t,n)}))}))}},{key:"abort",value:function(){}}]),e}(),Hk=["el"],Uk=((Tk=function(){function e(){s(this,e),this.lan="en",this.placeholder="",this.focusChanged=new qs,this.changed=new qs,this.html=""}return u(e,[{key:"getTextPartLanguages",value:function(){var e=this;return[{title:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",languageCode:"ar"},{title:"Deutsch",languageCode:"de"},{title:"English",languageCode:"en"},{title:"Espa\xf1ol",languageCode:"es"},{title:"Fran\xe7ais",languageCode:"fr"},{title:"\u65e5\u672c\u8a9e",languageCode:"ja"},{title:"\ud55c\uad6d\uc5b4",languageCode:"ko"},{title:"Portugu\xeas",languageCode:"pt"},{title:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439",languageCode:"ru"},{title:"\u4e2d\u6587",languageCode:"zh"}].filter((function(t){return t.languageCode!==e.lan}))}},{key:"getLegacyLoadTranslation",value:function(){var e=this;return new Promise((function(t){window.ljs.load("/".concat(window.TAIGA_VERSION,"/ckeditor-translations/").concat(e.lan,".js"),t)}))}},{key:"ngAfterViewInit",value:function(){var e=this;"en"!==this.lan?this.getLegacyLoadTranslation().then((function(){e.initEditor()})).catch((function(){console.error("Error trying to load "+e.lan),e.lan="en",e.initEditor()})):this.initEditor()}},{key:"initEditor",value:function(){var e=this,t=this.uploadFunction;Fk.a.create(this.el.nativeElement,{placeholder:this.placeholder,language:{content:this.lan,textPartLanguage:this.getTextPartLanguages()},codeBlock:{languages:i(zk)},extraPlugins:[(function(e){e.plugins.get("FileRepository").createUploadAdapter=function(e){return new Bk(e,t)}}).bind(this)],link:{decorators:{newPage:{mode:"automatic",callback:function(){return!0},attributes:{target:"_blank"}}}},mention:{feeds:[{marker:"@",feed:this.feedUsers,itemRenderer:this.customItemRenderer.bind(this)},{marker:"#",feed:this.feedReferences,minimumCharacters:1,itemRenderer:this.customItemRenderer.bind(this)},{marker:":",feed:this.getEmojis,itemRenderer:this.emojisRenderer}]},typing:{transformations:{include:["symbols","mathematical","quotes"]}}}).then((function(t){e.editor=t,e.editor.setData(e.html),t.ui.focusTracker.on("change:isFocused",(function(t,n,r){e.focusChanged.emit(r)})),t.model.document.on("change:data",(function(){e.html=e.getHtml(),e.changed.emit(e.html)})),e.hideTableHederRowSwitch()})).catch((function(e){console.error(e)}))}},{key:"customItemRenderer",value:function(e){var t=document.createElement("span");return t.classList.add("custom-item"),t.id="mention-list-item-id-"+e.id,t.textContent=""+(e.listRenderText?e.listRenderText:e.id),t}},{key:"hideTableHederRowSwitch",value:function(){var e=this,t=this.editor.plugins.get("WidgetToolbarRepository");this.editor.plugins.get("ContextualBalloon").on("change:visibleView",(function(n,r,i){t._isToolbarVisible(t._toolbarDefinitions.get("tableContent"))&&i&&(e.editor.model.document.selection.focus.getAncestors().find((function(e){return"table"===e.name})).getAttribute("headingRows")||e.editor.execute("setTableRowHeader"),Array.from(document.querySelectorAll(".ck-dropdown .ck-list")).forEach((function(e){var t=e.querySelectorAll("li");t.length&&(t[0].style.display="none",t[1].style.display="none")})))}))}},{key:"emojisRenderer",value:function(e){var t=document.createElement("span");return t.textContent="".concat(e.text," ").concat(e.id),t}},{key:"getEmojis",value:function(e){return new Promise((function(t){t(Object.entries(Vk).filter((function(t){return n(t,1)[0].includes(e)})).map((function(e){var t=n(e,2),r=t[0],i=t[1];return{id:":".concat(r,":"),text:i}})).slice(0,10))}))}},{key:"getHtml",value:function(){return this.editor.getData()}},{key:"setHtmlContent",value:function(e){this.html=e,this.editor&&this.editor.setData(this.html)}},{key:"content",set:function(e){this.setHtmlContent(e)}}]),e}()).\u0275fac=function(e){return new(e||Tk)},Tk.\u0275cmp=xt({type:Tk,selectors:[["tg-html-editor"]],viewQuery:function(e,t){var n;1&e&&nl(Hk,!0,Ya),2&e&&tl(n=il())&&(t.el=n.first)},inputs:{feedUsers:"feedUsers",feedReferences:"feedReferences",lan:"lan",placeholder:"placeholder",uploadFunction:"uploadFunction",content:"content"},outputs:{focusChanged:"focusChanged",changed:"changed"},decls:2,vars:0,consts:[["el",""]],template:function(e,t){1&e&&fa(0,"div",null,0)},encapsulation:2,changeDetection:0}),Tk),qk=["textarea"],Wk=((Pk=function(){function e(){s(this,e),this.markdown="",this.changed=new qs,this.focusChanged=new qs}return u(e,[{key:"getMarkdown",value:function(){return this.textarea.nativeElement.innerText}},{key:"ngAfterViewInit",value:function(){this.setMarkdownContent(this.markdown)}},{key:"inputChange",value:function(){this.changed.emit(this.getMarkdown())}},{key:"setMarkdownContent",value:function(e){this.markdown=e,this.textarea&&(this.textarea.nativeElement.innerText=e)}},{key:"empty",get:function(){return!!this.markdown.length}},{key:"content",set:function(e){this.setMarkdownContent(e)}}]),e}()).\u0275fac=function(e){return new(e||Pk)},Pk.\u0275cmp=xt({type:Pk,selectors:[["tg-markdown-editor"]],viewQuery:function(e,t){var n;1&e&&nl(qk,!0,Ya),2&e&&tl(n=il())&&(t.textarea=n.first)},hostVars:2,hostBindings:function(e,t){2&e&&Ra("empty",t.empty)},inputs:{content:"content"},outputs:{changed:"changed",focusChanged:"focusChanged"},decls:2,vars:0,consts:[["contentEditable","",1,"markdown",3,"input","focus","blur"],["textarea",""]],template:function(e,t){1&e&&(da(0,"div",0,1),ya("input",(function(){return t.inputChange()}))("focus",(function(){return t.focusChanged.emit(!0)}))("blur",(function(){return t.focusChanged.emit(!1)})),ha())},styles:[""],changeDetection:0}),Pk);function $k(e,t){if(1&e){var n=ga();da(0,"tg-html-editor",3),ya("changed",(function(e){return fn(n),Ca().changed.emit(e)}))("focusChanged",(function(e){return fn(n),Ca().focusChanged.emit(e)})),ha()}if(2&e){var r=Ca();ua("content",r.contentHtml)("lan",r.lan)("placeholder",r.placeholder)("feedUsers",r.feedUsers.bind(r))("feedReferences",r.feedReferences.bind(r))("uploadFunction",r.uploadFunction)}}function Kk(e,t){if(1&e){var n=ga();da(0,"tg-markdown-editor",4),ya("changed",(function(e){return fn(n),Ca().changed.emit(e)}))("focusChanged",(function(e){return fn(n),Ca().focusChanged.emit(e)})),ha()}2&e&&ua("content",Ca().contentMarkdown)}function Gk(e,t){if(1&e){var n=ga();da(0,"button",5),ya("click",(function(){return fn(n),Ca().toMarkdown()})),Da(1,"Markdown"),ha()}}function Jk(e,t){if(1&e){var n=ga();da(0,"button",5),ya("click",(function(){return fn(n),Ca().toHtml()})),Da(1,"Html"),ha()}}var Qk,Zk=((Qk=function(){function e(t,n,r){s(this,e),this.dataConversionService=t,this.searchApiService=n,this.cd=r,this.lan="en",this.focusChanged=new qs,this.changed=new qs,this.modeChanged=new qs,this._mode="html",this.contentHtml="",this.contentMarkdown=""}return u(e,[{key:"toMarkdown",value:function(){this._mode="markdown";var e=this.htmlEditor.getHtml();this.contentMarkdown=this.dataConversionService.toMarkdown(e),this.modeChanged.emit(this._mode)}},{key:"toHtml",value:function(){this._mode="html";var e=this.markdownEditor.getMarkdown();this.contentHtml=this.dataConversionService.toHtml(e),this.modeChanged.emit(this._mode)}},{key:"feedUsers",value:function(e){return Promise.resolve(this.userMentions.filter((function(t){return t.listRenderText.toLowerCase().includes(e.toLowerCase())})))}},{key:"feedReferences",value:function(e){var t=this;return new Promise((function(n){t.searchApiService.search(t.projectId,e).pipe(U((function(e){if(!e.count||e.count===e.wikipages.length)return[];var n=function(e){return e.map((function(e){return{id:"#"+e.ref,link:"project/".concat(t.projectSlug,"/t/").concat(e.ref),listRenderText:"#".concat(e.ref," - ").concat(e.subject)}}))};return[].concat(i(n(e.userstories)),i(n(e.issues)),i(n(e.tasks))).slice(0,10)}))).subscribe((function(e){n(e)}))}))}},{key:"markdown",set:function(e){this.dataConversionService.isReady()||this.dataConversionService.setUp(this.projectSlug),this.contentMarkdown=e,this.contentHtml=this.dataConversionService.toHtml(e),this.htmlEditor&&(this.htmlEditor.content=this.contentHtml),this.cd.detectChanges()}},{key:"members",set:function(e){this.userMentions=e.map((function(e){return{id:"@"+e.username,link:"profile/"+e.username,listRenderText:"@".concat(e.username," - ").concat(e.fullNameDisplay)}}))}},{key:"mode",set:function(e){this._mode!==e&&(this._mode=e,this.cd.detectChanges())},get:function(){return this._mode}}]),e}()).\u0275fac=function(e){return new(e||Qk)(sa(Dk),sa(Fy),sa(Ro))},Qk.\u0275cmp=xt({type:Qk,selectors:[["tg-text-editor"]],viewQuery:function(e,t){var n;1&e&&(nl(Uk,!0),nl(Wk,!0)),2&e&&(tl(n=il())&&(t.htmlEditor=n.first),tl(n=il())&&(t.markdownEditor=n.first))},inputs:{projectSlug:"projectSlug",projectId:"projectId",placeholder:"placeholder",lan:"lan",uploadFunction:"uploadFunction",markdown:"markdown",members:"members",mode:"mode"},outputs:{focusChanged:"focusChanged",changed:"changed",modeChanged:"modeChanged"},features:[Ga([Dk])],decls:4,vars:4,consts:[[3,"content","lan","placeholder","feedUsers","feedReferences","uploadFunction","changed","focusChanged",4,"ngIf"],[3,"content","changed","focusChanged",4,"ngIf"],[3,"click",4,"ngIf"],[3,"content","lan","placeholder","feedUsers","feedReferences","uploadFunction","changed","focusChanged"],[3,"content","changed","focusChanged"],[3,"click"]],template:function(e,t){1&e&&(aa(0,$k,1,6,"tg-html-editor",0),aa(1,Kk,1,1,"tg-markdown-editor",1),aa(2,Gk,2,0,"button",2),aa(3,Jk,2,0,"button",2)),2&e&&(ua("ngIf","html"===t.mode),ii(1),ua("ngIf","markdown"===t.mode),ii(1),ua("ngIf","html"===t.mode),ii(1),ua("ngIf","markdown"===t.mode))},directives:[Bu,Uk,Wk],styles:["hr[_ngcontent-%COMP%]{border-bottom:1px solid var(--color-black)}"],changeDetection:0}),Qk);function Yk(e){return!!e&&(e instanceof N||"function"==typeof e.lift&&"function"==typeof e.subscribe)}function Xk(e,t){return new N((function(n){var r=e.length;if(0!==r)for(var i=new Array(r),o=0,a=0,s=function(s){var l=Y(e[s]),u=!1;n.add(l.subscribe({next:function(e){u||(u=!0,a++),i[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==r&&u||(a===r&&n.next(t?t.reduce((function(e,t,n){return e[t]=i[n],e}),{}):i),n.complete())}}))},l=0;l<r;l++)s(l);else n.complete()}))}function eb(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,l=e.scheduler,u=0,c=!1,d=!1;return function(e){var r;u++,!t||c?(c=!1,t=new Bv(i,a,l),r=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){c=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}})):r=t.subscribe(this),this.add((function(){u--,r.unsubscribe(),n&&!d&&s&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(r))}}var tb,nb,rb=function e(){s(this,e)},ib=((tb=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"getTranslation",value:function(e){return Wc({})}}]),n}(rb)).\u0275fac=function(e){return ob(e||tb)},tb.\u0275prov=Ce({token:tb,factory:tb.\u0275fac}),tb),ob=wr(ib),ab=function e(){s(this,e)},sb=((nb=function(){function e(){s(this,e)}return u(e,[{key:"handle",value:function(e){return e.key}}]),e}()).\u0275fac=function(e){return new(e||nb)},nb.\u0275prov=Ce({token:nb,factory:nb.\u0275fac}),nb);function lb(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(r in i=Object.create(null),e){if(!lb(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&void 0!==t[r])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(r=0;r<n;r++)if(!lb(e[r],t[r]))return!1;return!0}}return!1}function ub(e){return null!=e}function cb(e){return e&&"object"==typeof e&&!Array.isArray(e)}var db,hb,fb,vb,pb,gb,mb=function e(){s(this,e)},yb=((db=function(e){c(n,e);var t=d(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,e}return u(n,[{key:"interpolate",value:function(e,t){return"string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e}},{key:"getValue",value:function(e,t){var n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!ub(e)||!ub(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}},{key:"interpolateFunction",value:function(e,t){return e(t)}},{key:"interpolateString",value:function(e,t){var n=this;return t?e.replace(this.templateMatcher,(function(e,r){var i=n.getValue(t,r);return ub(i)?i:e})):e}}]),n}(mb)).\u0275fac=function(e){return kb(e||db)},db.\u0275prov=Ce({token:db,factory:db.\u0275fac}),db),kb=wr(yb),bb=function e(){s(this,e)},_b=((hb=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}]),n}(bb)).\u0275fac=function(e){return wb(e||hb)},hb.\u0275prov=Ce({token:hb,factory:hb.\u0275fac}),hb),wb=wr(_b),Cb=function e(){s(this,e),this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new qs,this.onLangChange=new qs,this.onDefaultLangChange=new qs},xb=new Ye("USE_STORE"),Sb=new Ye("USE_DEFAULT_LANG"),Ab=new Ye("DEFAULT_LANGUAGE"),Eb=new Ye("USE_EXTEND"),Tb=((gb=function(){function t(e,n,r,i,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=arguments.length>8?arguments[8]:void 0;s(this,t),this.store=e,this.currentLoader=n,this.compiler=r,this.parser=i,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=l,this.extend=u,this.pending=!1,this._onTranslationChange=new qs,this._onLangChange=new qs,this._onDefaultLangChange=new qs,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}return u(t,[{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(tf(1)).subscribe((function(n){t.changeDefaultLang(e)}))):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Wc(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(tf(1)).subscribe((function(n){t.changeLang(e)})),n):(this.changeLang(e),Wc(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(eb(1),tf(1));return this.loadingTranslations=n.pipe(U((function(n){return t.compiler.compileTranslations(n,e)})),eb(1),tf(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n=this.compiler.compileTranslations(n,t),this.translations[t]=(r||this.extend)&&this.translations[t]?function t(n,r){var i=Object.assign({},n);return cb(n)&&cb(r)&&Object.keys(r).forEach((function(o){cb(r[o])&&o in n?i[o]=t(n[o],r[o]):Object.assign(i,e({},o,r[o]))})),i}(this.translations[t],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach((function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)}))}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var o;if(t instanceof Array){var a,s={},l=!1,u=r(t);try{for(u.s();!(a=u.n()).done;){var c=a.value;s[c]=this.getParsedResult(e,c,n),Yk(s[c])&&(l=!0)}}catch(h){u.e(h)}finally{u.f()}return l?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var r=t[0];if(w(r))return Xk(r,null);if(C(r)&&Object.getPrototypeOf(r)===Object.prototype){var o=Object.keys(r);return Xk(o.map((function(e){return r[e]})),o)}}if("function"==typeof t[t.length-1]){var a=t.pop();return Xk(t=1===t.length&&w(t[0])?t[0]:t,null).pipe(U((function(e){return a.apply(void 0,i(e))})))}return Xk(t,null)}(t.map((function(e){return Yk(s[e])?s[e]:Wc(s[e])}))).pipe(U((function(e){var n={};return e.forEach((function(e,r){n[t[r]]=e})),n}))):s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===o&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===o){var d={key:t,translateService:this};void 0!==n&&(d.interpolateParams=n),o=this.missingTranslationHandler.handle(d)}return void 0!==o?o:t}},{key:"get",value:function(e,t){var n=this;if(!ub(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(of((function(r){return Yk(r=n.getParsedResult(r,e,t))?r:Wc(r)})));var r=this.getParsedResult(this.translations[this.currentLang],e,t);return Yk(r)?r:Wc(r)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!ub(e)||!e.length)throw new Error('Parameter "key" required');return Op(Mh((function(){return n.get(e,t)})),this.onTranslationChange.pipe(Pv((function(r){var i=n.getParsedResult(r.translations,e,t);return"function"==typeof i.subscribe?i:Wc(i)}))))}},{key:"stream",value:function(e,t){var n=this;if(!ub(e)||!e.length)throw new Error('Parameter "key" required');return Op(Mh((function(){return n.get(e,t)})),this.onLangChange.pipe(Pv((function(r){var i=n.getParsedResult(r.translations,e,t);return Yk(i)?i:Wc(i)}))))}},{key:"instant",value:function(e,t){if(!ub(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(Yk(n)){if(e instanceof Array){var r={};return e.forEach((function(t,n){r[e[n]]=e[n]})),r}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}},{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}}]),t}()).\u0275fac=function(e){return new(e||gb)(st(Cb),st(rb),st(bb),st(mb),st(ab),st(Sb),st(xb),st(Eb),st(Ab))},gb.\u0275prov=Ce({token:gb,factory:gb.\u0275fac}),gb),Pb=((pb=function(){function e(t,n){s(this,e),this.translate=t,this._ref=n,this.value=""}return u(e,[{key:"updateValue",value:function(e,t,n){var r=this,i=function(t){r.value=void 0!==t?t:e,r.lastKey=e,r._ref.markForCheck()};if(n){var o=this.translate.getParsedResult(n,e,t);Yk(o.subscribe)?o.subscribe(i):i(o)}this.translate.get(e,t).subscribe(i)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(lb(e,this.lastKey)&&lb(i,this.lastParams))return this.value;if(ub(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){var a=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{t=JSON.parse(a)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+i[0])}}else"object"!=typeof i[0]||Array.isArray(i[0])||(t=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,t),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe((function(r){n.lastKey&&r.lang===n.translate.currentLang&&(n.lastKey=null,n.updateValue(e,t,r.translations))}))),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe((function(r){n.lastKey&&(n.lastKey=null,n.updateValue(e,t,r.translations))}))),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe((function(){n.lastKey&&(n.lastKey=null,n.updateValue(e,t))}))),this.value}},{key:"_dispose",value:function(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}},{key:"ngOnDestroy",value:function(){this._dispose()}}]),e}()).\u0275fac=function(e){return new(e||pb)(sa(Tb),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_e.Default,t=Po(!0);if(null!=t||e&_e.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}())},pb.\u0275pipe=It({name:"translate",type:pb,pure:!1}),pb.\u0275prov=Ce({token:pb,factory:pb.\u0275fac}),pb),Rb=((vb=function(){function e(){s(this,e)}return u(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:rb,useClass:ib},t.compiler||{provide:bb,useClass:_b},t.parser||{provide:mb,useClass:yb},t.missingTranslationHandler||{provide:ab,useClass:sb},Cb,{provide:xb,useValue:t.isolate},{provide:Sb,useValue:t.useDefaultLang},{provide:Eb,useValue:t.extend},{provide:Ab,useValue:t.defaultLanguage},Tb]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:rb,useClass:ib},t.compiler||{provide:bb,useClass:_b},t.parser||{provide:mb,useClass:yb},t.missingTranslationHandler||{provide:ab,useClass:sb},{provide:xb,useValue:t.isolate},{provide:Sb,useValue:t.useDefaultLang},{provide:Eb,useValue:t.extend},{provide:Ab,useValue:t.defaultLanguage},Tb]}}}]),e}()).\u0275mod=Tt({type:vb}),vb.\u0275inj=xe({factory:function(e){return new(e||vb)}}),vb),Ib=((fb=function e(){s(this,e)}).\u0275mod=Tt({type:fb}),fb.\u0275inj=xe({factory:function(e){return new(e||fb)},imports:[[]]}),fb),Ob=function e(){s(this,e)};function Mb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Nb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Lb(e){return{type:6,styles:e,offset:null}}function Db(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function jb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Fb(e){Promise.resolve(null).then(e)}var Vb=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;s(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return u(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Fb((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),zb=function(){function e(t){var n=this;s(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,i=0,o=0,a=this.players.length;0==a?Fb((function(){return n._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++r==a&&n._onFinish()})),e.onDestroy((function(){++i==a&&n._onDestroy()})),e.onStart((function(){++o==a&&n._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return u(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach((function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}();function Bb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Hb(e){switch(e.length){case 0:return new Vb;case 1:return e[0];default:return new zb(e)}}function Ub(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,u=null;if(r.forEach((function(e){var n=e.offset,r=n==l,c=r&&u||{};Object.keys(e).forEach((function(n){var r=n,s=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,a),s){case"!":s=i[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,r,s,a)}c[r]=s})),r||s.push(c),u=c,l=n})),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function qb(e,t,n,r){switch(t){case"start":e.onStart((function(){return r(n&&Wb(n,"start",e))}));break;case"done":e.onDone((function(){return r(n&&Wb(n,"done",e))}));break;case"destroy":e.onDestroy((function(){return r(n&&Wb(n,"destroy",e))}))}}function Wb(e,t,n){var r=n.totalTime,i=$b(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function $b(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function Kb(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function Gb(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Jb=function(e,t){return!1},Qb=function(e,t){return!1},Zb=function(e,t,n){return[]},Yb=Bb();(Yb||"undefined"!=typeof Element)&&(Jb=function(e,t){return e.contains(t)},Qb=function(){if(Yb||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Qb}(),Zb=function(e,t,n){var r=[];if(n)r.push.apply(r,i(e.querySelectorAll(t)));else{var o=e.querySelector(t);o&&r.push(o)}return r});var Xb=null,e_=!1;function t_(e){Xb||(Xb=("undefined"!=typeof document?document.body:null)||{},e_=!!Xb.style&&"WebkitAppearance"in Xb.style);var t=!0;return Xb.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Xb.style)&&e_)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Xb.style),t}var n_=Qb,r_=Jb,i_=Zb;function o_(e){var t={};return Object.keys(e).forEach((function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]})),t}var a_,s_=((a_=function(){function e(){s(this,e)}return u(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return r_(e,t)}},{key:"query",value:function(e,t,n){return i_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,r,i){return new Vb(n,r)}}]),e}()).\u0275fac=function(e){return new(e||a_)},a_.\u0275prov=Ce({token:a_,factory:a_.\u0275fac}),a_),l_=function(){var e=function e(){s(this,e)};return e.NOOP=new s_,e}();function u_(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:c_(parseFloat(t[1]),t[2])}function c_(e,t){switch(t){case"s":return 1e3*e;default:return e}}function d_(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};r=c_(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=c_(parseFloat(s),a[4]));var l=a[5];l&&(o=l)}else r=e;if(!n){var u=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:r,delay:i,easing:o}}(e,t,n)}function h_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}function f_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else h_(e,n);return n}function v_(e,t,n){return n?t+":"+n+";":""}function p_(e){for(var t="",n=0;n<e.style.length;n++){var r=e.style.item(n);t+=v_(0,r,e.style.getPropertyValue(r))}for(var i in e.style)e.style.hasOwnProperty(i)&&!i.startsWith("_")&&(t+=v_(0,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[i]));e.setAttribute("style",t)}function g_(e,t,n){e.style&&(Object.keys(t).forEach((function(r){var i=x_(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[i]),e.style[i]=t[r]})),Bb()&&p_(e))}function m_(e,t){e.style&&(Object.keys(t).forEach((function(t){var n=x_(t);e.style[n]=""})),Bb()&&p_(e))}function y_(e){return Array.isArray(e)?1==e.length?e[0]:Nb(e):e}var k_=new RegExp("{{\\s*(.+?)\\s*}}","g");function b_(e){var t=[];if("string"==typeof e){for(var n;n=k_.exec(e);)t.push(n[1]);k_.lastIndex=0}return t}function __(e,t,n){var r=e.toString(),i=r.replace(k_,(function(e,r){var i=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()}));return i==r?e:i}function w_(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var C_=/-+([a-z0-9])/g;function x_(e){return e.replace(C_,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()}))}function S_(e,t){return 0===e||0===t}function A_(e,t,n){var r=Object.keys(n);if(r.length&&t.length){var i=t[0],o=[];if(r.forEach((function(e){i.hasOwnProperty(e)||o.push(e),i[e]=n[e]})),o.length)for(var a=function(){var n=t[s];o.forEach((function(t){n[t]=T_(e,t)}))},s=1;s<t.length;s++)a()}return t}function E_(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function T_(e,t){return window.getComputedStyle(e)[t]}var P_=new Set(["true","1"]),R_=new Set(["false","0"]);function I_(e,t){var n=P_.has(e)||R_.has(e),r=P_.has(t)||R_.has(t);return function(i,o){var a="*"==e||e==i,s="*"==t||t==o;return!a&&n&&"boolean"==typeof i&&(a=i?P_.has(e):R_.has(e)),!s&&r&&"boolean"==typeof o&&(s=o?P_.has(t):R_.has(t)),a&&s}}var O_=new RegExp("s*:selfs*,?","g");function M_(e,t,n){return new N_(e).build(t,n)}var N_=function(){function e(t){s(this,e),this._driver=t}return u(e,[{key:"build",value:function(e,t){var n=new L_(t);return this._resetContextStyleTimingState(n),E_(this,y_(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,r=t.queryCount=0,i=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach((function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach((function(e){s.name=e,o.push(n.visitState(s,t))})),s.name=l}else if(1==e.type){var u=n.visitTransition(e,t);r+=u.queryCount,i+=u.depCount,a.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:e.name,states:o,transitions:a,queryCount:r,depCount:i,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach((function(e){if(D_(e)){var t=e;Object.keys(t).forEach((function(e){b_(t[e]).forEach((function(e){o.hasOwnProperty(e)||i.add(e)}))}))}})),i.size){var a=w_(i.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,r,i,o=E_(this,y_(e.animation),t);return{type:1,matchers:(n=e.expr,r=t.errors,i=[],"string"==typeof n?n.split(/\s*,\s*/).forEach((function(e){return function(e,t,n){if(":"==e[0]){var r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=i[1],a=i[2],s=i[3];t.push(I_(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(I_(s,o))}(e,i,r)})):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:j_(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return E_(n,e,t)})),options:j_(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map((function(e){t.currentTime=r;var o=E_(n,e,t);return i=Math.max(i,t.currentTime),o}));return t.currentTime=i,{type:3,steps:o,options:j_(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return F_(d_(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var i=F_(0,0,"");return i.dynamic=!0,i.strValue=r,i}return F_((n=n||d_(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Lb({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=Lb(s)}t.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)})):n.push(e.styles);var r=!1,i=null;return n.forEach((function(e){if(D_(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(r){if(n._driver.validateStyleProperty(r)){var a=t.collectedStyles[t.currentQuerySelector],s=a[r],l=!0;s&&(o!=i&&o>=s.startTime&&i<=s.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),l=!1),o=s.startTime),l&&(a[r]={startTime:o,endTime:i}),t.options&&function(e,t,n){var r=t.params||{},i=b_(e);i.length&&i.forEach((function(e){r.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}(e[r],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,l=0,u=e.steps.map((function(e){var r=n._makeStyleAst(e,t),u=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(D_(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(D_(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),s=s||c<0||c>1,a=a||c<l,l=c,o.push(c),r}));s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,d=0;i>0&&i<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(d=1/(c-1));var h=c-1,f=t.currentTime,v=t.currentAnimateTimings,p=v.duration;return u.forEach((function(e,i){var a=d>0?i==h?1:d*i:o[i],s=a*p;t.currentTime=f+v.delay+s,v.duration=s,n._validateStyleAst(e,t),e.offset=a,r.styles.push(e)})),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:E_(this,y_(e.animation),t),options:j_(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:j_(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:j_(e.options)}}},{key:"visitQuery",value:function(e,t){var r=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var o=n(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(O_,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),a=o[0],s=o[1];t.currentQuerySelector=r.length?r+" "+a:a,Kb(t.collectedStyles,t.currentQuerySelector,{});var l=E_(this,y_(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:l,originalSelector:e.selector,options:j_(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:d_(e.timings,t.errors,!0);return{type:12,animation:E_(this,y_(e.animation),t),timings:n,options:null}}}]),e}(),L_=function e(t){s(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function D_(e){return!Array.isArray(e)&&"object"==typeof e}function j_(e){var t;return e?(e=h_(e)).params&&(e.params=(t=e.params)?h_(t):null):e={},e}function F_(e,t,n){return{duration:e,delay:t,easing:n}}function V_(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var z_=function(){function e(){s(this,e),this._map=new Map}return u(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,i(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),B_=new RegExp(":enter","g"),H_=new RegExp(":leave","g");function U_(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new q_).buildKeyframes(e,t,n,r,i,o,a,s,l,u)}var q_=function(){function e(){s(this,e)}return u(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,o,a,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new z_;var c=new $_(e,t,l,r,i,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),E_(this,n,c);var d=c.timelines.filter((function(e){return e.containsAnimation()}));if(d.length&&Object.keys(a).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,s)}return d.length?d.map((function(e){return e.buildKeyframes()})):[V_(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?u_(n.duration):null,o=null!=n.delay?u_(n.delay):null;return 0!==i&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)})),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),E_(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=W_);var a=u_(o.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach((function(e){return E_(n,e,i)})),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?u_(e.options.delay):0;e.steps.forEach((function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),E_(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)})),r.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return d_(t.params?__(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach((function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?u_(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=W_);var a=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach((function(r,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,r);o&&s.delayNextStep(o),r===t.element&&(l=s.currentTimeline),E_(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;E_(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}]),e}(),W_={},$_=function(){function e(t,n,r,i,o,a,l,u){s(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=a,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=W_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new K_(this._driver,n,0),l.push(this.currentTimeline)}return u(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=u_(r.duration)),null!=r.delay&&(i.delay=u_(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(e){t&&a.hasOwnProperty(e)||(a[e]=__(o[e],a,n.errors))}))}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach((function(e){n[e]=t[e]}))}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=W_,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new G_(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,r,o,a){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(B_,"."+this._enterClassName)).replace(H_,"."+this._leaveClassName);var l=this._driver.query(this.element,e,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push.apply(s,i(l))}return o||0!=s.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),e}(),K_=function(){function e(t,n,r,i){s(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return u(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},a=function(e,t){var n,r={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){r[e]="*"})):f_(e,!1,r)})),r}(e,this._globalTimelineStyles);Object.keys(a).forEach((function(e){var t=__(a[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:"*"),i._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){e._currentKeyframe[n]=t[n]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach((function(o,a){var s=f_(o,!0);Object.keys(s).forEach((function(e){var r=s[e];"!"==r?t.add(e):"*"==r&&n.add(e)})),r||(s.offset=a/e.duration),i.push(s)}));var o=t.size?w_(t.values()):[],a=n.size?w_(n.values()):[];if(r){var s=i[0],l=h_(s);s.offset=0,l.offset=1,i=[s,l]}return V_(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),G_=function(e){c(n,e);var t=d(n);function n(e,r,i,o,a,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return s(this,n),(u=t.call(this,e,r,l.delay)).element=r,u.keyframes=i,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return u(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,l=f_(e[0],!1);l.offset=0,o.push(l);var u=f_(e[0],!1);u.offset=J_(s),o.push(u);for(var c=e.length-1,d=1;d<=c;d++){var h=f_(e[d],!1);h.offset=J_((n+h.offset*r)/a),o.push(h)}r=a,n=0,i="",e=o}return V_(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(K_);function J_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Q_=function e(){s(this,e)},Z_=function(e){c(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return u(n,[{key:"normalizePropertyName",value:function(e,t){return x_(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",o=n.toString().trim();if(Y_[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+i}}]),n}(Q_),Y_=function(e){var t={};return e.forEach((function(e){return t[e]=!0})),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function X_(e,t,n,r,i,o,a,s,l,u,c,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var ew={},tw=function(){function e(t,n,r){s(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return u(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some((function(e){return e(t,n,r,i)}))}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,r,i,o,a,s,l,u){var c=[],d=this.ast.options&&this.ast.options.params||ew,h=this.buildStyles(n,a&&a.params||ew,c),f=s&&s.params||ew,v=this.buildStyles(r,f,c),p=new Set,g=new Map,m=new Map,y="void"===r,k={params:Object.assign(Object.assign({},d),f)},b=u?[]:U_(e,t,this.ast.animation,i,o,h,v,k,l,c),_=0;if(b.forEach((function(e){_=Math.max(e.duration+e.delay,_)})),c.length)return X_(t,this._triggerName,n,r,y,h,v,[],[],g,m,_,c);b.forEach((function(e){var n=e.element,r=Kb(g,n,{});e.preStyleProps.forEach((function(e){return r[e]=!0}));var i=Kb(m,n,{});e.postStyleProps.forEach((function(e){return i[e]=!0})),n!==t&&p.add(n)}));var w=w_(p.values());return X_(t,this._triggerName,n,r,y,h,v,b,w,g,m,_)}}]),e}(),nw=function(){function e(t,n){s(this,e),this.styles=t,this.defaultParams=n}return u(e,[{key:"buildStyles",value:function(e,t){var n={},r=h_(this.defaultParams);return Object.keys(e).forEach((function(t){var n=e[t];null!=n&&(r[t]=n)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach((function(e){var o=i[e];o.length>1&&(o=__(o,r,t)),n[e]=o}))}})),n}}]),e}(),rw=function(){function e(t,n){var r=this;s(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(e){r.states[e.name]=new nw(e.style,e.options&&e.options.params||{})})),iw(this.states,"true","1"),iw(this.states,"false","0"),n.transitions.forEach((function(e){r.transitionFactories.push(new tw(t,e,r.states))})),this.fallbackTransition=new tw(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return u(e,[{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find((function(i){return i.match(e,t,n,r)}))||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function iw(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var ow=new z_,aw=function(){function e(t,n,r){s(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return u(e,[{key:"register",value:function(e,t){var n=[],r=M_(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=Ub(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=U_(this._driver,t,a,"ng-enter","ng-leave",{},{},i,ow,o)).forEach((function(e){var t=Kb(s,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=r._driver.computeStyle(t,n,"*")}))}));var l=Hb(n.map((function(e){var t=s.get(e.element);return r._buildPlayer(e,{},t)})));return this._playersById[e]=l,l.onDestroy((function(){return r.destroy(e)})),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}},{key:"listen",value:function(e,t,n,r){var i=$b(t,"","","");return qb(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),sw=[],lw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},uw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cw=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";s(this,e),this.namespaceId=n;var r,i=t&&t.hasOwnProperty("value");if(this.value=null!=(r=i?t.value:t)?r:null,i){var o=h_(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return u(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach((function(e){null==n[e]&&(n[e]=t[e])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),dw=new cw("void"),hw=function(){function e(t,n,r){s(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,kw(n,this._hostClassName)}return u(e,[{key:"listen",value:function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=Kb(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};a.push(s);var l=Kb(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(kw(e,"ng-trigger"),kw(e,"ng-trigger-"+t),l[t]=dw),function(){o._engine.afterFlush((function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete l[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new vw(this.id,t,e),s=this._engine.statesByElement.get(e);s||(kw(e,"ng-trigger"),kw(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],u=new cw(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[t]=u,l||(l=dw),"void"===u.value||l.value!==u.value){var c=Kb(this._engine.playersByElement,e,[]);c.forEach((function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()}));var d=o.matchTransition(l.value,u.value,e,u.params),h=!1;if(!d){if(!i)return;d=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:a,isFallbackTransition:h}),h||(kw(e,"ng-animate-queued"),a.onStart((function(){bw(e,"ng-animate-queued")}))),a.onDone((function(){var t=r.players.indexOf(a);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}})),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}(l.params,u.params)){var f=[],v=o.matchStyles(l.value,l.params,f),p=o.matchStyles(u.value,u.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush((function(){m_(e,v),g_(e,p)}))}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach((function(t,n){delete t[e]})),this._elementListeners.forEach((function(n,r){t._elementListeners.set(r,n.filter((function(t){return t.name!=e})))}))}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach((function(e){return e.destroy()})),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,r=this._engine.driver.query(e,".ng-trigger",!0);r.forEach((function(e){if(!e.__ng_removed){var r=n._engine.fetchNamespacesByElement(e);r.size?r.forEach((function(n){return n.triggerLeaveAnimation(e,t,!1,!0)})):n.clearElementCache(e)}})),this._engine.afterFlushAnimationsDone((function(){return r.forEach((function(e){return n.clearElementCache(e)}))}))}},{key:"triggerLeaveAnimation",value:function(e,t,n,r){var i=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach((function(t){if(i._triggers[t]){var n=i.trigger(e,t,"void",r);n&&a.push(n)}})),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Hb(a).onDone((function(){return i._engine.processLeaveNode(e)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e);if(n){var r=new Set;n.forEach((function(n){var i=n.name;if(!r.has(i)){r.add(i);var o=t._triggers[i].fallbackTransition,a=t._engine.statesByElement.get(e)[i]||dw,s=new cw("void"),l=new vw(t.id,i,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:i,transition:o,fromState:a,toState:s,player:l,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(e,t){var n=this,r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else for(var a=e;a=a.parentNode;)if(r.statesByElement.get(a)){i=!0;break}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==lw||(r.afterFlush((function(){return n.clearElementCache(e)})),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){kw(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach((function(r){var i=r.player;if(!i.destroyed){var o=r.element,a=t._elementListeners.get(o);a&&a.forEach((function(t){if(t.name==r.triggerName){var n=$b(o,r.triggerName,r.fromState.value,r.toState.value);n._data=e,qb(r.player,t.phase,n,t.callback)}})),i.markedForDestroy?t._engine.afterFlush((function(){i.destroy()})):n.push(r)}})),this._queue=[],n.sort((function(e,n){var r=e.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:t._engine.driver.containsElement(e.element,n.element)?1:-1}))}},{key:"destroy",value:function(e){this.players.forEach((function(e){return e.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find((function(t){return t.element===e}))||t}}]),e}(),fw=function(){function e(t,n,r){s(this,e),this.bodyNode=t,this.driver=n,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return u(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"createNamespace",value:function(e,t){var n=new hw(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush((function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return r.destroy(t)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,r){if(pw(t)){var i=this._fetchNamespace(e);if(i)return i.trigger(t,n,r),!0}return!1}},{key:"insertNode",value:function(e,t,n,r){if(pw(t)){var i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),kw(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),bw(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,r){if(pw(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return pw(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return Hb(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=lw,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)kw(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(var o=0;o<i.length;o++)i[o]()}}else for(var a=0;a<this.collectedLeaveElements.length;a++)this.processLeaveNode(this.collectedLeaveElements[a]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((function(e){return e()})),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?Hb(n).onDone((function(){s.forEach((function(e){return e()}))})):s.forEach((function(e){return e()}))}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}},{key:"_flushAnimations",value:function(e,t){var n=this,r=new z_,o=[],a=new Map,s=[],l=new Map,u=new Map,c=new Map,d=new Set;this.disabledNodes.forEach((function(e){d.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),r=0;r<t.length;r++)d.add(t[r])}));var h=this.bodyNode,f=Array.from(this.statesByElement.keys()),v=yw(f,this.collectedEnterElements),p=new Map,g=0;v.forEach((function(e,t){var n="ng-enter"+g++;p.set(t,n),e.forEach((function(e){return kw(e,n)}))}));for(var m=[],y=new Set,k=new Set,b=0;b<this.collectedLeaveElements.length;b++){var _=this.collectedLeaveElements[b],w=_.__ng_removed;w&&w.setForRemoval&&(m.push(_),y.add(_),w.hasAnimation?this.driver.query(_,".ng-star-inserted",!0).forEach((function(e){return y.add(e)})):k.add(_))}var C=new Map,x=yw(f,Array.from(y));x.forEach((function(e,t){var n="ng-leave"+g++;C.set(t,n),e.forEach((function(e){return kw(e,n)}))})),e.push((function(){v.forEach((function(e,t){var n=p.get(t);e.forEach((function(e){return bw(e,n)}))})),x.forEach((function(e,t){var n=C.get(t);e.forEach((function(e){return bw(e,n)}))})),m.forEach((function(e){n.processLeaveNode(e)}))}));for(var S=[],A=[],E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(t).forEach((function(e){var t=e.player,i=e.element;if(S.push(t),n.collectedEnterElements.length){var a=i.__ng_removed;if(a&&a.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,i),f=C.get(i),v=p.get(i),g=n._buildInstruction(e,r,v,f,d);if(g.errors&&g.errors.length)A.push(g);else{if(d)return t.onStart((function(){return m_(i,g.fromStyles)})),t.onDestroy((function(){return g_(i,g.toStyles)})),void o.push(t);if(e.isFallbackTransition)return t.onStart((function(){return m_(i,g.fromStyles)})),t.onDestroy((function(){return g_(i,g.toStyles)})),void o.push(t);g.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),r.append(i,g.timelines),s.push({instruction:g,player:t,element:i}),g.queriedElements.forEach((function(e){return Kb(l,e,[]).push(t)})),g.preStyleProps.forEach((function(e,t){var n=Object.keys(e);if(n.length){var r=u.get(t);r||u.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))}})),g.postStyleProps.forEach((function(e,t){var n=Object.keys(e),r=c.get(t);r||c.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))}))}}));if(A.length){var T=[];A.forEach((function(e){T.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return T.push("- ".concat(e,"\n"))}))})),S.forEach((function(e){return e.destroy()})),this.reportError(T)}var P=new Map,R=new Map;s.forEach((function(e){var t=e.element;r.has(t)&&(R.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,P))})),o.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){Kb(P,t,[]).push(e),e.destroy()}))}));var I=m.filter((function(e){return ww(e,u,c)})),O=new Map;mw(O,this.driver,k,c,"*").forEach((function(e){ww(e,u,c)&&I.push(e)}));var M=new Map;v.forEach((function(e,t){mw(M,n.driver,new Set(e),u,"!")})),I.forEach((function(e){var t=O.get(e),n=M.get(e);O.set(e,Object.assign(Object.assign({},t),n))}));var N=[],L=[],D={};s.forEach((function(e){var t=e.element,i=e.player,s=e.instruction;if(r.has(t)){if(d.has(t))return i.onDestroy((function(){return g_(t,s.toStyles)})),i.disabled=!0,i.overrideTotalTime(s.totalTime),void o.push(i);var l=D;if(R.size>1){for(var u=t,c=[];u=u.parentNode;){var h=R.get(u);if(h){l=h;break}c.push(u)}c.forEach((function(e){return R.set(e,l)}))}var f=n._buildAnimation(i.namespaceId,s,P,a,M,O);if(i.setRealPlayer(f),l===D)N.push(i);else{var v=n.playersByElement.get(l);v&&v.length&&(i.parentPlayer=Hb(v)),o.push(i)}}else m_(t,s.fromStyles),i.onDestroy((function(){return g_(t,s.toStyles)})),L.push(i),d.has(t)&&o.push(i)})),L.forEach((function(e){var t=a.get(e.element);if(t&&t.length){var n=Hb(t);e.setRealPlayer(n)}})),o.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var j=0;j<m.length;j++){var F=m[j],V=F.__ng_removed;if(bw(F,"ng-leave"),!V||!V.hasAnimation){var z=[];if(l.size){var B=l.get(F);B&&B.length&&z.push.apply(z,i(B));for(var H=this.driver.query(F,".ng-animating",!0),U=0;U<H.length;U++){var q=l.get(H[U]);q&&q.length&&z.push.apply(z,i(q))}}var W=z.filter((function(e){return!e.destroyed}));W.length?_w(this,F,W):this.processLeaveNode(F)}}return m.length=0,N.forEach((function(e){n.players.push(e),e.onDone((function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)})),e.play()})),N}},{key:"elementContainsData",value:function(e,t){var n=!1,r=t.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,r,i){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var l=!i||"void"==i;s.forEach((function(e){e.queued||(l||e.triggerName==r)&&o.push(e)}))}}return(n||r)&&(o=o.filter((function(e){return!(n&&n!=e.namespaceId||r&&r!=e.triggerName)}))),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,o=this,a=t.element,s=t.isRemovalTransition?void 0:e,l=t.isRemovalTransition?void 0:t.triggerName,u=r(t.timelines);try{var c=function(){var e=i.value.element,r=e!==a,u=Kb(n,e,[]);o._getPreviousPlayers(e,r,s,l,t.toState).forEach((function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)}))};for(u.s();!(i=u.n()).done;)c()}catch(d){u.e(d)}finally{u.f()}m_(a,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,r,i,o){var a=this,s=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,h=t.timelines.map((function(t){var h=t.element;c.add(h);var f=h.__ng_removed;if(f&&f.removedBeforeQueried)return new Vb(t.duration,t.delay);var v,p,g=h!==l,m=(v=(n.get(h)||sw).map((function(e){return e.getRealPlayer()})),p=[],function e(t,n){for(var r=0;r<t.length;r++){var i=t[r];i instanceof zb?e(i.players,n):n.push(i)}}(v,p),p).filter((function(e){return!!e.element&&e.element===h})),y=i.get(h),k=o.get(h),b=Ub(0,a._normalizer,0,t.keyframes,y,k),_=a._buildPlayer(t,b,m);if(t.subTimeline&&r&&d.add(h),g){var w=new vw(e,s,h);w.setRealPlayer(_),u.push(w)}return _}));u.forEach((function(e){Kb(a.playersByQueriedElement,e.element,[]).push(e),e.onDone((function(){return function(e,t,n){var r;if(e instanceof Map){if(r=e.get(t)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){var o=r.indexOf(n);r.splice(o,1)}0==r.length&&delete e[t]}return r}(a.playersByQueriedElement,e.element,e)}))})),c.forEach((function(e){return kw(e,"ng-animating")}));var f=Hb(h);return f.onDestroy((function(){c.forEach((function(e){return bw(e,"ng-animating")})),g_(l,t.toStyles)})),d.forEach((function(e){Kb(r,e,[]).push(f)})),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Vb(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),vw=function(){function e(t,n,r){s(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new Vb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return u(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(n){t._queuedCallbacks[n].forEach((function(t){return qb(e,n,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart((function(){return n.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))}},{key:"_queueEvent",value:function(e,t){Kb(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function pw(e){return e&&1===e.nodeType}function gw(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function mw(e,t,n,r,i){var o=[];n.forEach((function(e){return o.push(gw(e))}));var a=[];r.forEach((function(n,r){var o={};n.forEach((function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=uw,a.push(r))})),e.set(r,o)}));var s=0;return n.forEach((function(e){return gw(e,o[s++])})),a}function yw(e,t){var n=new Map;if(e.forEach((function(e){return n.set(e,[])})),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var a=t.parentNode;return o=n.has(a)?a:r.has(a)?1:e(a),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)})),n}function kw(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function bw(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function _w(e,t,n){Hb(n).onDone((function(){return e.processLeaveNode(t)}))}function ww(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach((function(e){return i.add(e)})):t.set(e,r),n.delete(e),!0}var Cw=function(){function e(t,n,r){var i=this;s(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new fw(t,n,r),this._timelineEngine=new aw(t,n,r),this._transitionEngine.onRemovalComplete=function(e,t){return i.onRemovalComplete(e,t)}}return u(e,[{key:"registerTrigger",value:function(e,t,n,r,i){var o=e+"-"+r,a=this._triggerCache[o];if(!a){var s=[],l=M_(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'.concat(r,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new rw(e,t)}(r,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}},{key:"onRemove",value:function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,r,i){if("@"==r.charAt(0)){var o=n(Gb(r),2),a=o[0],s=o[1];this._timelineEngine.command(a,t,s,i)}else this._transitionEngine.trigger(e,t,r,i)}},{key:"listen",value:function(e,t,r,i,o){if("@"==r.charAt(0)){var a=n(Gb(r),2),s=a[0],l=a[1];return this._timelineEngine.listen(s,t,l,o)}return this._transitionEngine.listen(e,t,r,i,o)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function xw(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=Aw(t[0]),t.length>1&&(r=Aw(t[t.length-1]))):t&&(n=Aw(t)),n||r?new Sw(e,n,r):null}var Sw=function(){var e=function(){function e(t,n,r){s(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return u(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&g_(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(g_(this._element,this._initialStyles),this._endStyles&&(g_(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(m_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(m_(this._element,this._endStyles),this._endStyles=null),g_(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Aw(e){for(var t=null,n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];Ew(i)&&((t=t||{})[i]=e[i])}return t}function Ew(e){return"display"===e||"position"===e}var Tw=function(){function e(t,n,r,i,o,a,l){var u=this;s(this,e),this._element=t,this._name=n,this._duration=r,this._delay=i,this._easing=o,this._fillMode=a,this._onDoneFn=l,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return u._handleCallback(e)}}return u(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=Nw(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)e.charAt(n)}(n),t="".concat(n,", ").concat(t)),Mw(e,"",t),Ow(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){Pw(this._element,this._name,"paused")}},{key:"resume",value:function(){Pw(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=Rw(this._element,this._name);this._position=e*this._duration,Mw(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Ow(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Nw(e,"").split(","),(r=Iw(n,t))>=0&&(n.splice(r,1),Mw(e,"",n.join(","))))}}]),e}();function Pw(e,t,n){Mw(e,"PlayState",n,Rw(e,t))}function Rw(e,t){var n=Nw(e,"");return n.indexOf(",")>0?Iw(n.split(","),t):Iw([n],t)}function Iw(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Ow(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Mw(e,t,n,r){var i="animation"+t;if(null!=r){var o=e.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}e.style[i]=n}function Nw(e,t){return e.style["animation"+t]}var Lw=function(){function e(t,n,r,i,o,a,l,u){s(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=l,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+o,this._buildStyler()}return u(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Tw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:T_(e.element,r))}))}this.currentSnapshot=t}}]),e}(),Dw=function(e){c(r,e);var n=d(r);function r(e,t){var i;return s(this,r),(i=n.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=o_(t),i}return u(r,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),t(y(r.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),t(y(r.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,t(y(r.prototype),"destroy",this).call(this))}}]),r}(Vb),jw=function(){function e(){s(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return u(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return r_(e,t)}},{key:"query",value:function(e,t,n){return i_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map((function(e){return o_(e)}));var r="@keyframes ".concat(t," {\n"),i="";n.forEach((function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach((function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}})),r+=i+"}\n"})),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter((function(e){return e instanceof Lw})),l={};S_(n,r)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])}))})),t}(t=A_(e,t,l));if(0==n)return new Dw(e,u);var c="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(d);var h=xw(e,t),f=new Lw(e,t,c,n,r,i,u,h);return f.onDestroy((function(){var e;(e=d).parentNode.removeChild(e)})),f}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),Fw=function(){function e(t,n,r,i){s(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return u(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:T_(e.element,n))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),Vw=function(){function e(){s(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(zw().toString()),this._cssKeyframesDriver=new jw}return u(e,[{key:"validateStyleProperty",value:function(e){return t_(e)}},{key:"matchesElement",value:function(e,t){return n_(e,t)}},{key:"containsElement",value:function(e,t){return r_(e,t)}},{key:"query",value:function(e,t,n){return i_(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var l={},u=o.filter((function(e){return e instanceof Fw}));S_(n,r)&&u.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var c=xw(e,t=A_(e,t=t.map((function(e){return f_(e,!1)})),l));return new Fw(e,t,s,c)}}]),e}();function zw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Bw,Hw=((Bw=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this))._nextAnimationId=0,i._renderer=e.createRenderer(r.body,{id:"0",encapsulation:bt.None,styles:[],data:{animation:[]}}),i}return u(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Nb(e):e;return Ww(this._renderer,null,t,"register",[n]),new Uw(t,this._renderer)}}]),n}(Ob)).\u0275fac=function(e){return new(e||Bw)(st(es),st(lu))},Bw.\u0275prov=Ce({token:Bw,factory:Bw.\u0275fac}),Bw),Uw=function(e){c(n,e);var t=d(n);function n(e,r){var i;return s(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return u(n,[{key:"create",value:function(e,t){return new qw(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){s(this,e)}}()),qw=function(){function e(t,n,r,i){s(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return u(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ww(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){return 0}}]),e}();function Ww(e,t,n,r,i){return e.setProperty(t,"@@".concat(n,":").concat(r),i)}var $w,Kw,Gw,Jw,Qw,Zw,Yw,Xw,eC,tC=(($w=function(){function e(t,n,r){s(this,e),this.delegate=t,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return u(e,[{key:"createRenderer",value:function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var i=this._rendererCache.get(r);return i||(i=new nC("",r,this.engine),this._rendererCache.set(r,i)),i}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach((function t(r){Array.isArray(r)?r.forEach(t):n.engine.registerTrigger(o,a,e,r.name,r)})),new rC(this,a,r,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then((function(){e._microtaskId++}))}},{key:"scheduleListenerCallback",value:function(e,t,r){var i=this;e>=0&&e<this._microtaskId?this._zone.run((function(){return t(r)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){i._zone.run((function(){i._animationCallbacksBuffer.forEach((function(e){var t=n(e,2);(0,t[0])(t[1])})),i._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([t,r]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)})),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}()).\u0275fac=function(e){return new(e||$w)(st(es),st(Cw),st(Pl))},$w.\u0275prov=Ce({token:$w,factory:$w.\u0275fac}),$w),nC=function(){function e(t,n,r){s(this,e),this.namespaceId=t,this.delegate=n,this.engine=r,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return u(e,[{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r){this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),rC=function(e){c(r,e);var t=d(r);function r(e,n,i,o){var a;return s(this,r),(a=t.call(this,n,i,o)).factory=e,a.namespaceId=n,a}return u(r,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,r){var i,o,a=this;if("@"==t.charAt(0)){var s,l=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),u=t.substr(1),c="";return"@"!=u.charAt(0)&&(o=(i=u).indexOf("."),u=(s=n([i.substring(0,o),i.substr(o+1)],2))[0],c=s[1]),this.engine.listen(this.namespaceId,l,u,c,(function(e){a.factory.scheduleListenerCallback(e._data||-1,r,e)}))}return this.delegate.listen(e,t,r)}}]),r}(nC),iC=((Kw=function(e){c(n,e);var t=d(n);function n(e,r,i){return s(this,n),t.call(this,e.body,r,i)}return n}(Cw)).\u0275fac=function(e){return new(e||Kw)(st(lu),st(l_),st(Q_))},Kw.\u0275prov=Ce({token:Kw,factory:Kw.\u0275fac}),Kw),oC=[{provide:l_,useFactory:function(){return"function"==typeof zw()?new Vw:new jw}},{provide:new Ye("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:Ob,useClass:Hw},{provide:Q_,useFactory:function(){return new Z_}},{provide:Cw,useClass:iC},{provide:es,useFactory:function(e,t,n){return new tC(e,t,n)},deps:[Sc,Cw,Pl]}],aC=((Yw=function e(){s(this,e)}).\u0275mod=Tt({type:Yw}),Yw.\u0275inj=xe({factory:function(e){return new(e||Yw)},providers:oC,imports:[jc]}),Yw),sC=((Zw=function e(){s(this,e)}).\u0275mod=Tt({type:Zw}),Zw.\u0275inj=xe({factory:function(e){return new(e||Zw)},imports:[[Ib,Xu,Rb,ky.forChild([]),jc,aC,zv]]}),Zw),lC=((Qw=function(){function e(){s(this,e),this.ready=!1,this.state=new Fc({}),this.legacyState=this.state.asObservable()}return u(e,[{key:"setState",value:function(e){this.state.next(Object.assign(Object.assign({},this.state.value),e))}},{key:"getInjector",value:function(){return this.injector||(this.injector=this.angularBody().injector()),this.injector}},{key:"getTranslationTable",value:function(e){return this.getInjector().get("$translate").getTranslationTable(e)}},{key:"angularBody",value:function(){return window.angular.element("body")}},{key:"whenAngularReady",value:function(){var e=this,t=this.angularBody();return this.ready?Promise.resolve():new Promise((function(n){!function r(){requestAnimationFrame((function(){t.injector()?(e.ready=!0,n()):r()}))}()}))}}]),e}()).\u0275fac=function(e){return new(e||Qw)},Qw.\u0275prov=Ce({token:Qw,factory:Qw.\u0275fac}),Qw),uC=((Jw=function e(){s(this,e)}).\u0275mod=Tt({type:Jw}),Jw.\u0275inj=xe({factory:function(e){return new(e||Jw)},providers:[lC],imports:[[Xu,sC]]}),Jw),cC=((Gw=function(){function e(t,n,r,i){s(this,e),this.translate=t,this.router=n,this.legacyService=r,this.config=i}return u(e,[{key:"ngOnInit",value:function(){var e=this,t=new Fc({type:"INIT",value:null});t.subscribe((function(t){"SET_DETAIL_OBJ"===t.type&&e.legacyService.setState({detailObj:hp.objKeysTransformer(t.value,cp)})}));var n=Ko.create({providers:[{provide:Dk,deps:[]}]});window.legacyChannel=t,window.angularDataConversion=function(){return n.get(Dk)},this.router.events.pipe(Bh((function(e){return e instanceof Lp}))).subscribe((function(t){var n=e.legacyService.getInjector().get("$location"),r=e.legacyService.getInjector().get("$rootScope");if(n.path()!==t.url){var i=t.url;i.startsWith(e.baseHref)&&(i=i.replace(e.baseHref,"/")),n.url(i)}r.$applyAsync()})),this.legacyService.whenAngularReady().then((function(){var t=e.legacyService.getInjector().get("$location");e.legacyService.getInjector().get("$rootScope").$on("$routeChangeSuccess",(function(){e.router.navigateByUrl(t.path()),e.legacyService.setState({detailObj:void 0})}))}))}},{key:"baseHref",get:function(){var e;return null!==(e=this.config._config.baseHref)&&void 0!==e?e:"/"}},{key:"translations",set:function(e){this.translate.setTranslation(e.lan,e.translationTable),this.translate.use(e.lan)}}]),e}()).\u0275fac=function(e){return new(e||Gw)(sa(Tb),sa(Xm),sa(lC),sa(Tv))},Gw.\u0275cmp=xt({type:Gw,selectors:[["tg-legacy"]],inputs:{translations:"translations"},decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),Gw),dC=function(){function e(t){s(this,e),this.notifier=t}return u(e,[{key:"call",value:function(e,t){var n=new hC(e),r=te(this.notifier,new X(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}]),e}(),hC=function(e){c(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).seenValue=!1,r}return u(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(ee),fC=((Xw=function e(){s(this,e)}).\u0275fac=function(e){return new(e||Xw)},Xw.\u0275cmp=xt({type:Xw,selectors:[["tg-svg-sprite"]],decls:41,vars:0,consts:[[0,"xmlns","dc","http://purl.org/dc/elements/1.1/",0,"xmlns","cc","http://creativecommons.org/ns#",0,"xmlns","rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#",0,"xmlns","svg","http://www.w3.org/2000/svg","xmlns","http://www.w3.org/2000/svg","version","1.1"],["id","loading","viewBox","0 0 106.2 104.3"],["d","M78.6 10.4c-2.8 2.2-9.9 9.4-11.9 12-6.5 8.2-3.5 5.1-3.7-2.9V17c.2-3.8-1-9.7-2.9-14.1-1.6-4.4-4.9-3-6.7-.8a32 32 0 00-5.7 17.4c-.1 3 0 5.4.3 8.3l-1.9-4.4c-4-9-6.7-13-10-14.4-2.6-1-5.6-.8-7.4 2.1-.7 9.6 5.9 18.2 8.9 27.4 0 .3-.7 0-2.7-1-4-2.1-14-6.8-17.4-7.7-3.8-1-14.5-1.9-9 5.7A82 82 0 0029.6 52c0 .1-1.8.6-3.9 1A64.7 64.7 0 008 58.2c-3.4 1.5-11 3-6.8 7.2 1.5 1.6 1.8 1.8 3.6 2.3 7.3 1.8 18.1-2.2 27-3.5-3.3 2.6-8 6.5-14.1 11.7a19.8 19.8 0 00-4.6 6.2c-2.2 4.6-5.4 10.3 2.4 10.8 2.4 0 8.2-2.7 11.3-5.2 2-1.7 4.6-3 6.7-5 2.3-2 2.3-1.8-.2 4.2-2.6 6.1-3 8.4-2.8 12.1.2 3.8 2.7 5.8 6.6 5 1.5-.4 2.1-1.1 5-5.3 2-2.8 4-5.8 5.6-9.2.9-1.4 2.1-3.8 2.8-5.4 1-2.4 1.2-2.8 1.6-2.7.3.1.6.8.7 1.5.5 3.5 4.7 12.7 6.8 15.3 4.6 6.5 11.6 8 13-.4.1-5.8-3.4-13.3-5.4-18.8-1-2.2-1.2-2.6-.5-2 .4.4 2.9 1.6 5.4 2.8 4.3 2 5 2.1 8.4 2.7 4.8.8 7.8.7 10.6-.3 2-.8 2.3-1 2.8-2.2.5-1.1.5-1.5-.3-2.9-1.6-3-4.6-5.4-7.1-7.6a80 80 0 01-3.5-2.3L79.3 65c-.7 0-.7-1 0-.7.6.3 4.7.1 7.8-.2 2.5-.1 5-.7 6.9-1.2 6-1.5 11.7-4 12.1-5.7.7-2.9-2.4-3.3-4.2-4.4a50.7 50.7 0 00-19.5-5.4c-2.9 0-3-.3-.8-1.3 6.3-3 13.2-8 17-12.2 1.9-2.3 2-2.8 1-4-1.5-1.6-3.2-1.9-8.3-1.2-3.7.5-8.8 2.2-12.3 3.9-.4.2-1.3.5-.4-.5 1.6-1.6 3.1-3.5 4-4.6 4-4.7 6.4-11 6-14.8-1.9-6-6.8-4.8-10-2.3zm5.4 1.5c.8.3 1.2 1.4.7 3.2-.8 6.5-8.6 16.4-17.9 22.8-2.3 1.1-4.2 3.8-5.3 5-3.5 4.1 0 8.7 3 4.5 1-1.5 3-3.2 6.7-6 5.7-4.6 6.4-5 11.2-7 4-1.8 9-3.2 12.9-3 1.6.7-8.1 7.7-14.5 11.6-6.3 3.3-9.8 5.2-11 5.6-3.7 1.6-5.1 2.5-5.3 3.6-.3 1.3.6 1.3 3.9 0a46.6 46.6 0 0116.2-2c3-.2 14 3.4 17 6 0 2.2-4.3 3-6.8 3.8A67.5 67.5 0 0164 58.6c-.3-.2-.7-1.2-1-2.5a27 27 0 00-1.5-5.2 12.8 12.8 0 00-4.7-3.9c-1.2-.8-3.4-1.4-5.4-1.4-4.2 0-.7.4-.3-2.3l.5-3.8c.6-4.2-.5-8.8-.5-13.3-.4-7.6 0-11.2 1.8-16.2 1.2-3.3 3.5-8.5 4.9-.9 1.1 4.4 1.3 9.8 1.4 14.4.2 4.7-1.8 9.3-3 13.8-1 2.9-.7 2.5-1.2 4.7.2 2.9 1.6 2 4.3-2.2 1.8-3.7 4.4-7.3 6.7-11 4.2-6 8.6-10.7 15-16.2 1.1-.8 2.2-1 2.9-.7zm-50.3.3c.5.3 1.3 1 2.3 2.1 2 2.2 2.5 3 5.3 9.4 3.4 7.9 4.4 10.4 5.2 14.3.5 2.2.9 3.4 1.7 5.4.7 1.5 1.3 1.6-.6 1.9-3.6.6-6.4 2.3-7.7 5.7l-1 2.5-1-.6c-1.3-.8-3-.7-4.4-.8-.3 0-.7-.4-.8-.8 1-1.3-15.5-12.4-19.1-16.1-2.4-1.4-2-3.2.3-2.5 5 .3 20.3 6.9 24.3 10.5 1 1 .8.5 2.2 1.8 1.8 1.5 3.5 1 2.9-2.3-4-8-7.3-16.5-10-24.4-1-3-1.6-7 .4-6zm21.6 36.2c1.3.6 2.8 2 3.2 3.1.2.5.4 1.8.5 3 .5 4.9-2.7 7.9-8.2 7.9-4.5 0-6.4-1.6-7.3-5.7-.5-2.8 1.5-6.3 4.7-7.8 1.6-.8 5.7-1 7-.5zm2.3 3.3l-1-.2c-1.1-.1-1.7.3-1.4 1 .3.5 1.9 1 2.5.7.5-.3.6-.4.3-1a1 1 0 00-.4-.5zm.6 3.7c-.7-.4-3.2-.2-3.5.3-.2.5 0 1.6.6 2.1.8.6 1.1.7 1.7.5.9-.4 1.8-2.4 1.4-2.8h-.2zm14 8.9c1.7.7 3.6 1.8 6.3 3.4 2 1.3 4.4 2.8 6.4 4.7 2.2 1.8 4.8 5.3 4.7 6.3-.4 2.6-9.7.8-10.7.5-6.7-2-16.4-9-20.7-14.4 1.9-1 2.8-2.1 4.4-3.8l2.2.8c1.2.5 3.2 1.1 4.6 1.5 1 .2 1.9.5 2.9 1zm-24.8-10a3 3 0 00-1.4 0c-1.3.2-1.9 1.5-1.5 3.3.3 1.5.9 1.9 1.8 1.1.9-.8.7-.3 1.2.7.3.7.8 1.3 1 1.4.8.4 1.8-.8 1.8-1.9-.1-1.2-1-1.8-2.1-1.6-1.5.2-1.4 0-.8-1.4.4-1 .4-1.4 0-1.6zm5.9 3.6c-.4-.2-.9-.2-1.5-.2-1.3 0-1.3.3-.6 2 .8 1.7.8 1.7 1.9 1.4 1-.1 1.6-1 1.1-2.2-.2-.5-.5-.8-1-1zm-14.8-2c.3.2.5.6 1.1 2 1.3 3 3.2 5.2 5.6 6.5l2 1c-1.7 1.3-3 2.6-4.2 4.5-4.8 6.9-14.7 11.6-21.4 17.3-1 .8-6.7 4.1-6.7 1.3a30.7 30.7 0 0111.9-16.1c1.2-1 6.4-6.2 7.4-7.1 1.3-1.2 6.8-7 1-5.4-7.3 2.4-21.5 6-29.6 4.7-1.6-.9-1-1.6 3-3.4A82 82 0 0127 55.8c3.3-.7 8.1-.8 9.8-.2 1 .3 1.3.2 1.6.3zm15.6 10.2c4.9 2 9.5 13 11 17a32 32 0 012.6 15.8c-.4 2.4-6-4-6.8-6.4A57.5 57.5 0 0154.3 70c-.3-1.8-1.8-3-3.6-.9-1 1.5.1 3.7-.4 5.6-.5 1.6-5.6 13.7-6.2 14.6-2.1 3.1-3.5 6.1-6.3 9-3.1 3.6-3.3 1-3.1-3.4a63.6 63.6 0 0115.7-27.7c.8-1.1 1.1-1.3 2.8-1.4l1 .3z"],["id","epic","viewBox","0 0 24 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.085 2.00006C12.3896 2.00008 12.6681 2.17217 12.8044 2.44462L19.1189 15.0645C19.1215 15.0696 19.1241 15.0747 19.1266 15.0798L21.9896 20.8017C22.1143 21.0509 22.1012 21.3468 21.9549 21.584C21.8087 21.8212 21.5502 21.9658 21.2715 21.9663L2.88072 22.0001C2.60154 22.0006 2.34205 21.8563 2.19511 21.6189C2.04817 21.3816 2.03479 21.085 2.15975 20.8353L6.07598 13.0116C6.07806 13.0073 6.08017 13.0031 6.08233 12.9989L11.3654 2.44451C11.5018 2.17208 11.7803 2.00004 12.085 2.00006ZM7.13312 14.4947L4.18296 20.3885L19.969 20.3595L17.8052 16.0351L13.4221 13.879L10.0828 15.7644C9.8329 15.9056 9.52669 15.9028 9.27928 15.7573L7.13312 14.4947ZM16.6149 13.6562L12.0847 4.60247L7.85507 13.0524L9.69551 14.1351L13.0007 12.269C13.232 12.1384 13.513 12.1304 13.7514 12.2477L16.6149 13.6562Z"],["id","agile","viewBox","0 0 24 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M1.29304 12.4145C1.68357 12.024 2.31673 12.024 2.70726 12.4145L4.19058 13.8978L5.60506 12.4833C5.99558 12.0928 6.62875 12.0928 7.01927 12.4833C7.40979 12.8738 7.40979 13.507 7.01927 13.8975L4.89769 16.0191C4.50716 16.4096 3.874 16.4096 3.48347 16.0191L1.29304 13.8287C0.90252 13.4382 0.90252 12.805 1.29304 12.4145Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.06982 10.6056C3.31806 8.6866 4.18066 6.89887 5.52813 5.51177C6.87565 4.12462 8.63548 3.21293 10.5429 2.91509C12.4505 2.61724 14.4017 2.94956 16.1023 3.86216C17.8028 4.77475 19.1599 6.21771 19.9696 7.97284C20.7793 9.72789 20.998 11.7001 20.5936 13.5925C20.1891 15.4849 19.1832 17.1959 17.7268 18.4675C17.0873 19.0259 16.4256 19.5948 15.589 20.0022C14.7279 20.4215 13.7404 20.645 12.4444 20.645C11.8921 20.645 11.4444 20.1973 11.4444 19.645C11.4444 19.0927 11.8921 18.645 12.4444 18.645C13.4937 18.645 14.1719 18.4678 14.7134 18.2041C15.2794 17.9284 15.7574 17.5319 16.4114 16.961C17.5419 15.9739 18.3234 14.645 18.6377 13.1745C18.952 11.704 18.7819 10.1724 18.1536 8.81069C17.5254 7.44903 16.4733 6.33106 15.1566 5.62445C13.8399 4.91785 12.3291 4.66043 10.8515 4.89115C9.37384 5.12187 8.00885 5.82842 6.96269 6.90535C5.91647 7.98233 5.24618 9.37105 5.05329 10.8622C4.95357 11.6331 4.95125 12.5807 4.97825 13.3631C4.99155 13.7485 5.01151 14.0827 5.0281 14.3199C5.03639 14.4383 5.0438 14.5321 5.04907 14.5956L5.05521 14.6672L5.05677 14.6845L5.05711 14.6883C5.10879 15.2381 4.70507 15.7263 4.15526 15.778C3.60541 15.8298 3.11771 15.426 3.06596 14.8761L4.06155 14.7824C3.06596 14.8761 3.06596 14.8762 3.06596 14.8761L3.06568 14.8732L3.06509 14.8668L3.06305 14.8442L3.05594 14.7612C3.05002 14.6899 3.04192 14.5873 3.03298 14.4594C3.0151 14.2039 2.99371 13.8457 2.97944 13.4321C2.9513 12.6165 2.94897 11.5399 3.06982 10.6056Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.5005 19.657C13.5005 20.2093 13.0528 20.6571 12.5005 20.6571L2.0005 20.6571C1.44822 20.6571 1.0005 20.2094 1.0005 19.6571C1.0005 19.1048 1.44821 18.6571 2.0005 18.6571L12.5005 18.6571C13.0528 18.6571 13.5005 19.1048 13.5005 19.657Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M22.9997 19.6571C22.9997 20.2094 22.5519 20.6571 21.9997 20.6571L19.9995 20.6571C19.4472 20.657 18.9995 20.2093 18.9995 19.657C18.9996 19.1047 19.4473 18.657 19.9996 18.6571L21.9997 18.6571C22.552 18.6571 22.9997 19.1049 22.9997 19.6571Z"],["id","kanban5","viewBox","0 0 23 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M4.77568 4C4.31553 4 3.86523 4.40405 3.86523 5V19C3.86523 19.5959 4.31553 20 4.77568 20H18.1488C18.609 20 19.0593 19.5959 19.0593 19V5C19.0593 4.40405 18.609 4 18.1488 4H4.77568ZM1.86523 5C1.86523 3.38681 3.12561 2 4.77568 2H18.1488C19.7989 2 21.0593 3.38681 21.0593 5V19C21.0593 20.6132 19.7989 22 18.1488 22H4.77568C3.12561 22 1.86523 20.6132 1.86523 19V5Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M8.59668 2C9.14896 2 9.59668 2.44772 9.59668 3V21C9.59668 21.5523 9.14896 22 8.59668 22C8.04439 22 7.59668 21.5523 7.59668 21V3C7.59668 2.44772 8.04439 2 8.59668 2Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M14.3281 2C14.8804 2 15.3281 2.44772 15.3281 3V21C15.3281 21.5523 14.8804 22 14.3281 22C13.7758 22 13.3281 21.5523 13.3281 21V3C13.3281 2.44772 13.7758 2 14.3281 2Z"],["id","issue","viewBox","0 0 23 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.68682 4C6.46052 4 6.23368 4.09369 6.05903 4.27652C5.8829 4.46091 5.77637 4.72038 5.77637 5V19.0036L10.8641 15.1991C11.2192 14.9336 11.7067 14.9336 12.0618 15.1991L17.1495 19.0036V5C17.1495 4.72038 17.043 4.46091 16.8668 4.27652C16.6922 4.09369 16.4654 4 16.2391 4H6.68682ZM4.61281 2.89505C5.15473 2.32774 5.89975 2 6.68682 2H16.2391C17.0261 2 17.7711 2.32774 18.3131 2.89505C18.8535 3.46081 19.1495 4.21875 19.1495 5V21C19.1495 21.3785 18.9358 21.7246 18.5974 21.8941C18.2589 22.0636 17.8538 22.0275 17.5506 21.8009L11.4629 17.2487L5.37522 21.8009C5.07209 22.0275 4.66695 22.0636 4.32851 21.8941C3.99008 21.7246 3.77637 21.3785 3.77637 21V5C3.77637 4.21876 4.07239 3.46081 4.61281 2.89505Z"],["id","search","viewBox","0 0 24 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4ZM2 11C2 6.02944 6.02944 2 11 2C15.9706 2 20 6.02944 20 11C20 15.9706 15.9706 20 11 20C6.02944 20 2 15.9706 2 11Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M15.9433 15.9428C16.3338 15.5523 16.967 15.5523 17.3575 15.9428L21.7075 20.2928C22.098 20.6833 22.098 21.3165 21.7075 21.707C21.317 22.0975 20.6838 22.0975 20.2933 21.707L15.9433 17.357C15.5528 16.9665 15.5528 16.3333 15.9433 15.9428Z"],["id","video","viewBox","0 0 24 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M23.4792 7.12229C23.8003 7.29758 24 7.63419 24 8V17C24 17.3658 23.8003 17.7024 23.4792 17.8777C23.1581 18.053 22.767 18.039 22.4592 17.8412L15.4592 13.3412C15.173 13.1572 15 12.8403 15 12.5C15 12.1597 15.173 11.8428 15.4592 11.6588L22.4592 7.15882C22.767 6.96101 23.1581 6.947 23.4792 7.12229ZM17.8493 12.5L22 15.1683V9.83167L17.8493 12.5Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M4.73333 7C4.39219 7 4 7.31765 4 7.85714V17.1429C4 17.6823 4.39219 18 4.73333 18H14.2667C14.6078 18 15 17.6823 15 17.1429V7.85714C15 7.31765 14.6078 7 14.2667 7H4.73333ZM2 7.85714C2 6.34529 3.15989 5 4.73333 5H14.2667C15.8401 5 17 6.34529 17 7.85714V17.1429C17 18.6547 15.8401 20 14.2667 20H4.73333C3.15989 20 2 18.6547 2 17.1429V7.85714Z"],["id","book","viewBox","0 0 24 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.5 18C6.10217 18 5.72064 18.158 5.43934 18.4393C5.15804 18.7206 5 19.1022 5 19.5C5 20.0523 4.55228 20.5 4 20.5C3.44772 20.5 3 20.0523 3 19.5C3 18.5717 3.36875 17.6815 4.02513 17.0251C4.6815 16.3687 5.57174 16 6.5 16H20C20.5523 16 21 16.4477 21 17C21 17.5523 20.5523 18 20 18H6.5Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.5 3C6.10217 3 5.72064 3.15804 5.43934 3.43934C5.15804 3.72064 5 4.10218 5 4.5V19.5C5 19.8978 5.15804 20.2794 5.43934 20.5607C5.72064 20.842 6.10217 21 6.5 21H19V3H6.5ZM6.5 1H20C20.5523 1 21 1.44772 21 2V22C21 22.5523 20.5523 23 20 23H6.5C5.57174 23 4.6815 22.6313 4.02513 21.9749C3.36875 21.3185 3 20.4283 3 19.5V4.5C3 3.57174 3.36875 2.6815 4.02513 2.02513C4.6815 1.36875 5.57174 1 6.5 1Z"],["id","users","viewBox","0 0 24 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M1.46447 15.4645C2.40215 14.5268 3.67392 14 5 14H13C14.3261 14 15.5979 14.5268 16.5355 15.4645C17.4732 16.4021 18 17.6739 18 19V21C18 21.5523 17.5523 22 17 22C16.4477 22 16 21.5523 16 21V19C16 18.2044 15.6839 17.4413 15.1213 16.8787C14.5587 16.3161 13.7956 16 13 16H5C4.20435 16 3.44129 16.3161 2.87868 16.8787C2.31607 17.4413 2 18.2044 2 19V21C2 21.5523 1.55228 22 1 22C0.447715 22 0 21.5523 0 21V19C0 17.6739 0.526784 16.4021 1.46447 15.4645Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M9 4C7.34315 4 6 5.34315 6 7C6 8.65685 7.34315 10 9 10C10.6569 10 12 8.65685 12 7C12 5.34315 10.6569 4 9 4ZM4 7C4 4.23858 6.23858 2 9 2C11.7614 2 14 4.23858 14 7C14 9.76142 11.7614 12 9 12C6.23858 12 4 9.76142 4 7Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M19.032 14.8801C19.1701 14.3454 19.7155 14.0238 20.2502 14.1619C21.3229 14.4388 22.2732 15.0642 22.9519 15.9398C23.6307 16.8153 23.9994 17.8915 24.0002 18.9994L24.0002 21.0001C24.0002 21.5524 23.5525 22.0001 23.0002 22.0001C22.448 22.0001 22.0002 21.5524 22.0002 21.0001L22.0002 19.0009C22.0002 19.0008 22.0002 19.001 22.0002 19.0009C21.9997 18.3363 21.7784 17.6904 21.3713 17.1651C20.964 16.6398 20.3938 16.2645 19.7502 16.0984C19.2155 15.9603 18.8939 15.4149 19.032 14.8801Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M15.0315 2.88208C15.1685 2.34706 15.7133 2.02439 16.2483 2.16137C17.3238 2.43675 18.2771 3.06225 18.9578 3.93926C19.6386 4.81627 20.0081 5.89491 20.0081 7.00512C20.0081 8.11534 19.6386 9.19397 18.9578 10.071C18.2771 10.948 17.3238 11.5735 16.2483 11.8489C15.7133 11.9859 15.1685 11.6632 15.0315 11.1282C14.8945 10.5931 15.2172 10.0484 15.7522 9.91137C16.3975 9.74615 16.9695 9.37085 17.3779 8.84464C17.7864 8.31843 18.0081 7.67125 18.0081 7.00512C18.0081 6.339 17.7864 5.69181 17.3779 5.16561C16.9695 4.6394 16.3975 4.2641 15.7522 4.09887C15.2172 3.96189 14.8945 3.41711 15.0315 2.88208Z"],["id","settings","viewBox","0 0 24 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 10C10.8954 10 10 10.8954 10 12C10 13.1046 10.8954 14 12 14C13.1046 14 14 13.1046 14 12C14 10.8954 13.1046 10 12 10ZM8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 2C11.7348 2 11.4804 2.10536 11.2929 2.29289C11.1054 2.48043 11 2.73478 11 3V3.17399C10.9979 3.6908 10.8448 4.19572 10.5594 4.62661C10.2741 5.0575 9.86895 5.39555 9.39393 5.59914C9.30937 5.63538 9.22042 5.65969 9.12961 5.67157C8.69797 5.82272 8.23332 5.85997 7.781 5.77796C7.26 5.68349 6.77925 5.43512 6.40073 5.06486L6.39285 5.05715L6.33289 4.99711C6.24002 4.90413 6.12934 4.82998 6.00794 4.77965C5.88654 4.72933 5.75641 4.70343 5.625 4.70343C5.49358 4.70343 5.36346 4.72933 5.24206 4.77965C5.12066 4.82998 5.01037 4.90374 4.9175 4.99671L4.91671 4.9975C4.82374 5.09037 4.74998 5.20066 4.69965 5.32206C4.64933 5.44346 4.62343 5.57358 4.62343 5.705C4.62343 5.83641 4.64933 5.96654 4.69965 6.08794C4.74998 6.20934 4.82374 6.31963 4.91671 6.4125L4.98491 6.48069C5.35516 6.85921 5.60349 7.34 5.69796 7.861C5.79055 8.37163 5.73113 8.89796 5.52745 9.37477C5.34189 9.86133 5.01698 10.2827 4.59305 10.5859C4.16054 10.8952 3.64498 11.0673 3.11338 11.0797L3.09 11.08H3C2.73478 11.08 2.48043 11.1854 2.29289 11.3729C2.10536 11.5604 2 11.8148 2 12.08C2 12.3452 2.10536 12.5996 2.29289 12.7871C2.48043 12.9746 2.73478 13.08 3 13.08H3.17399C3.6908 13.0821 4.19572 13.2352 4.62661 13.5206C5.05602 13.8049 5.39322 14.2083 5.59703 14.6812C5.80908 15.1643 5.87211 15.6998 5.77796 16.219C5.68349 16.74 5.43512 17.2207 5.06486 17.5993L5.05715 17.6072L4.9971 17.6671C4.90413 17.76 4.82998 17.8707 4.77965 17.9921C4.72933 18.1135 4.70343 18.2436 4.70343 18.375C4.70343 18.5064 4.72933 18.6365 4.77965 18.7579C4.82998 18.8793 4.90374 18.9896 4.99671 19.0825L4.9975 19.0833C5.09037 19.1763 5.20066 19.25 5.32206 19.3003C5.44346 19.3507 5.57358 19.3766 5.705 19.3766C5.83641 19.3766 5.96654 19.3507 6.08794 19.3003C6.20934 19.25 6.31963 19.1763 6.4125 19.0833L6.48069 19.0151C6.85921 18.6448 7.34 18.3965 7.861 18.302C8.37162 18.2095 8.89796 18.2689 9.37476 18.4725C9.86132 18.6581 10.2827 18.983 10.5859 19.407C10.8952 19.8395 11.0673 20.355 11.0797 20.8866L11.08 20.91V21C11.08 21.2652 11.1854 21.5196 11.3729 21.7071C11.5604 21.8946 11.8148 22 12.08 22C12.3452 22 12.5996 21.8946 12.7871 21.7071C12.9746 21.5196 13.08 21.2652 13.08 21V20.83L13.08 20.826C13.0821 20.3092 13.2352 19.8043 13.5206 19.3734C13.805 18.9439 14.2083 18.6067 14.6813 18.4029C15.1644 18.1909 15.6998 18.1279 16.219 18.222C16.74 18.3165 17.2207 18.5649 17.5993 18.9351L17.6071 18.9428L17.6671 19.0029C17.76 19.0959 17.8707 19.17 17.9921 19.2203C18.1135 19.2707 18.2436 19.2966 18.375 19.2966C18.5064 19.2966 18.6365 19.2707 18.7579 19.2203C18.8793 19.17 18.9896 19.0963 19.0825 19.0033L19.0833 19.0025C19.1763 18.9096 19.25 18.7993 19.3003 18.6779C19.3507 18.5565 19.3766 18.4264 19.3766 18.295C19.3766 18.1636 19.3507 18.0335 19.3003 17.9121C19.25 17.7907 19.1763 17.6804 19.0833 17.5875L19.0151 17.5193C18.6448 17.1408 18.3965 16.66 18.302 16.139C18.2079 15.6197 18.2709 15.0842 18.483 14.6011C18.6868 14.1282 19.024 13.7249 19.4534 13.4406C19.8843 13.1552 20.3892 13.0021 20.906 13L20.91 13L21 13C21.2652 13 21.5196 12.8946 21.7071 12.7071C21.8946 12.5196 22 12.2652 22 12C22 11.7348 21.8946 11.4804 21.7071 11.2929C21.5196 11.1054 21.2652 11 21 11H20.83L20.826 11C20.3092 10.9979 19.8043 10.8448 19.3734 10.5594C18.9425 10.2741 18.6044 9.86896 18.4009 9.39393C18.3646 9.30938 18.3403 9.22042 18.3284 9.12961C18.1773 8.69798 18.14 8.23333 18.222 7.781C18.3165 7.26 18.5649 6.77925 18.9351 6.40073L18.9428 6.39285L19.0029 6.3329C19.0959 6.24002 19.17 6.12934 19.2203 6.00794C19.2707 5.88654 19.2966 5.75641 19.2966 5.625C19.2966 5.49359 19.2707 5.36346 19.2203 5.24206C19.17 5.12066 19.0963 5.01037 19.0033 4.9175L19.0025 4.91671C18.9096 4.82374 18.7993 4.74998 18.6779 4.69965C18.5565 4.64933 18.4264 4.62343 18.295 4.62343C18.1636 4.62343 18.0335 4.64933 17.9121 4.69965C17.7907 4.74998 17.6804 4.82374 17.5875 4.91671L17.5193 4.98491C17.1408 5.35516 16.66 5.60349 16.139 5.69796C15.6198 5.79211 15.0843 5.72908 14.6012 5.51703C14.1283 5.31323 13.7249 4.97602 13.4406 4.54661C13.1552 4.11572 13.0021 3.6108 13 3.09399L13 3.09V3C13 2.73478 12.8946 2.48043 12.7071 2.29289C12.5196 2.10536 12.2652 2 12 2ZM19.3999 15L20.3149 15.4038C20.2624 15.5226 20.2468 15.6544 20.2699 15.7822C20.2929 15.9086 20.3527 16.0253 20.4419 16.1177L20.4967 16.1725C20.7756 16.4511 20.9969 16.782 21.1479 17.1462C21.2989 17.5104 21.3766 17.9008 21.3766 18.295C21.3766 18.6892 21.2989 19.0796 21.1479 19.4438C20.997 19.8078 20.7758 20.1386 20.4971 20.4171C20.2186 20.6958 19.8878 20.917 19.5238 21.0679C19.1596 21.2189 18.7692 21.2966 18.375 21.2966C17.9807 21.2966 17.5904 21.2189 17.2262 21.0679C16.862 20.9169 16.5311 20.6956 16.2525 20.4167L16.1977 20.3619C16.1053 20.2727 15.9886 20.2129 15.8622 20.19C15.7344 20.1668 15.6026 20.1824 15.4838 20.2349L15.474 20.2392C15.3574 20.2891 15.258 20.372 15.188 20.4777C15.1184 20.5829 15.0808 20.7062 15.08 20.8324V21C15.08 21.7956 14.7639 22.5587 14.2013 23.1213C13.6387 23.6839 12.8756 24 12.08 24C11.2843 24 10.5213 23.6839 9.95868 23.1213C9.39607 22.5587 9.08 21.7956 9.08 21V20.9244C9.07526 20.7972 9.03327 20.6741 8.95914 20.5704C8.88326 20.4644 8.77723 20.3836 8.65482 20.3385C8.63505 20.3313 8.61551 20.3234 8.59623 20.3149C8.47742 20.2624 8.34561 20.2468 8.21782 20.27C8.09144 20.2929 7.97472 20.3527 7.88235 20.4419L7.8275 20.4967C7.82737 20.4968 7.82763 20.4966 7.8275 20.4967C7.54896 20.7755 7.21784 20.997 6.85382 21.1479C6.48963 21.2989 6.09925 21.3766 5.705 21.3766C5.31075 21.3766 4.92037 21.2989 4.55618 21.1479C4.19199 20.9969 3.86112 20.7756 3.5825 20.4967C3.30394 20.2183 3.08294 19.8877 2.93211 19.5238C2.78113 19.1596 2.70343 18.7692 2.70343 18.375C2.70343 17.9808 2.78113 17.5904 2.93211 17.2262C3.08301 16.8622 3.30415 16.5314 3.5829 16.2529C3.58303 16.2528 3.58276 16.253 3.5829 16.2529L3.63811 16.1977C3.72728 16.1053 3.78713 15.9886 3.81005 15.8622C3.83322 15.7344 3.81758 15.6026 3.76514 15.4838L3.76081 15.474C3.71087 15.3574 3.62801 15.258 3.52232 15.1881C3.41704 15.1183 3.29374 15.0808 3.1675 15.08H3C2.20435 15.08 1.44129 14.7639 0.878679 14.2013C0.316071 13.6387 0 12.8756 0 12.08C0 11.2843 0.316071 10.5213 0.878679 9.95868C1.44129 9.39607 2.20435 9.08 3 9.08H3.07564C3.20283 9.07526 3.32591 9.03327 3.42955 8.95914C3.53564 8.88327 3.61644 8.77723 3.66146 8.65482C3.66874 8.63505 3.67663 8.61551 3.68514 8.59623C3.73758 8.47742 3.75322 8.34561 3.73005 8.21782C3.70713 8.09142 3.64727 7.97467 3.55809 7.8823L3.50329 7.8275C3.50315 7.82737 3.50342 7.82763 3.50329 7.8275C3.22454 7.54896 3.00301 7.21784 2.85211 6.85382C2.70113 6.48963 2.62343 6.09925 2.62343 5.705C2.62343 5.31075 2.70113 4.92037 2.85211 4.55618C3.00301 4.19216 3.22415 3.86143 3.50289 3.58289C3.78143 3.30415 4.11216 3.08301 4.47618 2.93211C4.84037 2.78113 5.23075 2.70343 5.625 2.70343C6.01925 2.70343 6.40963 2.78113 6.77382 2.93211C7.13784 3.08301 7.46857 3.30415 7.74711 3.58289C7.74724 3.58302 7.74697 3.58276 7.74711 3.58289L7.8023 3.63809C7.89467 3.72728 8.01142 3.78713 8.13782 3.81005C8.26561 3.83322 8.39742 3.81758 8.51623 3.76514C8.58027 3.73687 8.64692 3.71549 8.71507 3.70122C8.78479 3.6539 8.84498 3.59323 8.89194 3.52232C8.96166 3.41704 8.99921 3.29374 9 3.1675V3C9 2.20435 9.31607 1.44129 9.87868 0.87868C10.4413 0.316071 11.2043 0 12 0C12.7956 0 13.5587 0.316071 14.1213 0.87868C14.6839 1.44129 15 2.20435 15 3V3.08765C15.0008 3.21384 15.0384 3.33708 15.108 3.44232C15.178 3.54801 15.2774 3.63092 15.3939 3.68086L15.4038 3.68508C15.5226 3.73752 15.6544 3.75322 15.7822 3.73005C15.9086 3.70713 16.0253 3.64728 16.1177 3.55811L16.1725 3.50329C16.4511 3.22436 16.782 3.00308 17.1462 2.85211C17.5104 2.70113 17.9007 2.62343 18.295 2.62343C18.6892 2.62343 19.0796 2.70113 19.4438 2.85211C19.8077 3.00294 20.1383 3.22394 20.4167 3.5025C20.6956 3.78112 20.9169 4.11198 21.0679 4.47618C21.2189 4.84037 21.2966 5.23075 21.2966 5.625C21.2966 6.01925 21.2189 6.40963 21.0679 6.77382C20.917 7.13784 20.6958 7.46857 20.4171 7.7471C20.417 7.74724 20.4172 7.74697 20.4171 7.7471L20.3619 7.80231C20.2727 7.89468 20.2129 8.01142 20.1899 8.13782C20.1668 8.26561 20.1824 8.39742 20.2349 8.51623C20.2631 8.58027 20.2845 8.64692 20.2988 8.71507C20.3461 8.78479 20.4068 8.84498 20.4777 8.89195C20.5829 8.96165 20.7062 8.99919 20.8324 9H21C21.7956 9 22.5587 9.31607 23.1213 9.87868C23.6839 10.4413 24 11.2043 24 12C24 12.7956 23.6839 13.5587 23.1213 14.1213C22.5587 14.6839 21.7956 15 21 15H20.9125C20.7863 15.0008 20.663 15.0383 20.5577 15.1081C20.452 15.178 20.3691 15.2774 20.3191 15.3939L19.3999 15Z"],["id","chevrons-left","viewBox","0 0 24 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.7071 6.29289C12.0976 6.68342 12.0976 7.31658 11.7071 7.70711L7.41421 12L11.7071 16.2929C12.0976 16.6834 12.0976 17.3166 11.7071 17.7071C11.3166 18.0976 10.6834 18.0976 10.2929 17.7071L5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L10.2929 6.29289C10.6834 5.90237 11.3166 5.90237 11.7071 6.29289Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M18.7071 6.29289C19.0976 6.68342 19.0976 7.31658 18.7071 7.70711L14.4142 12L18.7071 16.2929C19.0976 16.6834 19.0976 17.3166 18.7071 17.7071C18.3166 18.0976 17.6834 18.0976 17.2929 17.7071L12.2929 12.7071C11.9024 12.3166 11.9024 11.6834 12.2929 11.2929L17.2929 6.29289C17.6834 5.90237 18.3166 5.90237 18.7071 6.29289Z"],["id","chevron-left","viewBox","0 0 24 24"],["fill-rule","evenodd","clip-rule","evenodd","d","M8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071Z"]],template:function(e,t){1&e&&(jn(),da(0,"svg",0),da(1,"title"),Da(2,"Taiga SVG sprite"),ha(),da(3,"defs"),da(4,"symbol",1),fa(5,"path",2),ha(),da(6,"symbol",3),fa(7,"path",4),ha(),da(8,"symbol",5),fa(9,"path",6),fa(10,"path",7),fa(11,"path",8),fa(12,"path",9),ha(),da(13,"symbol",10),fa(14,"path",11),fa(15,"path",12),fa(16,"path",13),ha(),da(17,"symbol",14),fa(18,"path",15),ha(),da(19,"symbol",16),fa(20,"path",17),fa(21,"path",18),ha(),da(22,"symbol",19),fa(23,"path",20),fa(24,"path",21),ha(),da(25,"symbol",22),fa(26,"path",23),fa(27,"path",24),ha(),da(28,"symbol",25),fa(29,"path",26),fa(30,"path",27),fa(31,"path",28),fa(32,"path",29),ha(),da(33,"symbol",30),fa(34,"path",31),fa(35,"path",32),ha(),da(36,"symbol",33),fa(37,"path",34),fa(38,"path",35),ha(),da(39,"symbol",36),fa(40,"path",37),ha(),ha(),ha())},styles:["[_nghost-%COMP%] { display: none; }"],changeDetection:0}),Xw),vC=function(e){return e.viewEpics="view_epics",e.addEpic="add_epic",e.modifyEpic="modify_epic",e.commentEpic="comment_epic",e.deleteEpic="delete_epic",e.viewMilestones="view_milestones",e.addMilestone="add_milestone",e.modifyMilestone="modify_milestone",e.deleteMilestone="delete_milestone",e.viewUserstory="view_us",e.addUserstory="add_us",e.modifyUserstory="modify_us",e.commentUserstory="comment_us",e.deleteUserstory="delete_us",e.viewTasks="view_tasks",e.addTask="add_task",e.commentTask="comment_task",e.modifyTask="modify_task",e.deleteTask="delete_task",e.viewIssues="view_issues",e.addIssue="add_issue",e.commentIssue="comment_issue",e.modifyIssue="modify_issue",e.deleteIsue="delete_issue",e.viewWikiLinks="view_wiki_links",e.addWikiLink="add_wiki_link",e.modifyWikiLink="modify_wiki_link",e.deleteWikiLink="delete_wiki_link",e.viewWikiPages="view_wiki_pages",e.addWikiPage="add_wiki_page",e.modifyWikiPage="modify_wiki_page",e.commentWikiPage="comment_wiki_page",e.deleteWikiPage="delete_wiki_page",e.viewProject="view_project",e.modifyProject="modify_project",e.adminProjectValues="admin_project_values",e.deleteProject="delete_project",e.addMember="add_member",e.removeMember="remove_member",e.adminRoles="admin_roles",e}({}),pC=l("zbeE"),gC=l.n(pC),mC=((eC=function(){function e(){s(this,e),this.bg="",this.src="",this.logo="small",this.imgs=["/images/project-logos/project-logo-01.png","/images/project-logos/project-logo-02.png","/images/project-logos/project-logo-03.png","/images/project-logos/project-logo-04.png","/images/project-logos/project-logo-05.png"],this.colors=["rgba(153, 214, 220, 1)","rgba(213, 156, 156, 1)","rgba(214, 161, 212, 1)","rgba(164, 162, 219, 1)","rgba(152, 224, 168, 1)"],this.logos=[],this.logos=this.cartesianProduct(this.imgs,this.colors)}return u(e,[{key:"cartesianProduct",value:function(e,t){var n=[];return t.forEach((function(t){e.forEach((function(e){n.push([e,t])}))})),n}},{key:"project",set:function(e){var t=e.logoBigUrl;if("small"===this.logo&&(t=e.logoSmallUrl),t)this.src=t,this.bg="";else{var n="".concat(e.slug,"-").concat(e.id),r=gC()(n,42).result()%this.logos.length,i=this.logos[r],o=window._version?window._version:"";this.src="".concat(o).concat(i[0]),this.bg=i[1]}}}]),e}()).\u0275fac=function(e){return new(e||eC)},eC.\u0275dir=Rt({type:eC,selectors:[["","tgProjectLogo",""]],hostVars:3,hostBindings:function(e,t){2&e&&(Fa("src",t.src,Fr),Pa("background",t.bg))},inputs:{logo:"logo",project:["tgProjectLogo","project"]}}),eC),yC=function(e,t){return[e,"project",t,"epics"]};function kC(e,t){if(1&e){var n=ga();da(0,"li",10),ya("mouseenter",(function(e){return fn(n),Ca().popup(e,"epics")}))("mouseleave",(function(){return fn(n),Ca().out()})),da(1,"a",15),Hs(2,"translate"),jn(),da(3,"svg"),fa(4,"use",26),ha(),Fn(),da(5,"span",13),Da(6),Hs(7,"translate"),ha(),ha(),ha()}if(2&e){var r=Ca();Ra("active","epics"===r.section)("active-dialog","epics"===r.dialog.type),ii(1),xa("title",Us(2,7,"PROJECT.SECTION.EPICS")),ua("routerLink",zs(11,yC,r.baseHref,r.project.slug)),ii(5),ja(" ",Us(7,9,"PROJECT.SECTION.EPICS")," ")}}var bC=function(e,t,n){return[e,"project",t,"taskboard",n]};function _C(e,t){if(1&e&&(da(0,"li",33),da(1,"a",36),da(2,"span",13),Da(3),ha(),ha(),ha()),2&e){var n=t.$implicit,r=Ca().ngrxLet,i=Ca(2);ii(1),Ra("active",n.id===r),ua("routerLink",(5,o=bC,a=i.baseHref,s=i.project.slug,l=n.slug,function(e,t,n,r,i,o,a,s){var l=t+5;return function(e,t,n,r,i){var o=ra(e,t,n,r);return na(e,t+2,i)||o}(e,l,i,o,a)?ta(e,l+3,r(i,o,a)):Bs(e,l+3)}(dn(),bn(),0,o,a,s,l))),ia("title",n.name),ii(2),ja(" ",n.name," ")}var o,a,s,l}var wC=function(e,t){return[e,"project",t,"backlog"]};function CC(e,t){if(1&e&&(jn(),Fn(),da(0,"ul",32),da(1,"li",33),da(2,"a",34),Hs(3,"translate"),da(4,"span",13),Da(5),Hs(6,"translate"),ha(),ha(),ha(),aa(7,_C,4,9,"li",35),ha()),2&e){var n=t.ngrxLet,r=Ca(2);ii(2),Ra("active",null===n),xa("title",Us(3,6,"PROJECT.SECTION.BACKLOG")),ua("routerLink",zs(10,wC,r.baseHref,r.project.slug)),ii(3),ja(" ",Us(6,8,"PROJECT.SECTION.BACKLOG")," "),ii(2),ua("ngForOf",r.milestones)}}function xC(e,t){if(1&e){var n=ga();da(0,"li",27),ya("mouseenter",(function(e){return fn(n),Ca().popupScrum(e)}))("mouseleave",(function(){return fn(n),Ca().out()})),da(1,"button",11),ya("click",(function(){return fn(n),Ca().toggleScrum()})),Hs(2,"translate"),jn(),da(3,"svg"),fa(4,"use",28),ha(),Fn(),da(5,"span",13),Da(6),Hs(7,"translate"),ha(),jn(),da(8,"svg",29),fa(9,"use",30),ha(),ha(),aa(10,CC,8,13,"ul",31),ha()}if(2&e){var r=Ca();Ra("active",r.scrumVisible)("active-dialog","scrum"===r.dialog.type||"backlog"===r.section&&r.scrumVisible),ii(1),xa("title",Us(2,7,"PROJECT.SECTION.SCRUM")),ii(5),ja(" ",Us(7,9,"PROJECT.SECTION.SCRUM")," "),ii(4),ua("ngrxLet",r.milestoneId$)}}var SC=function(e,t){return[e,"project",t,"kanban"]};function AC(e,t){if(1&e){var n=ga();da(0,"li",10),ya("mouseenter",(function(e){return fn(n),Ca().popup(e,"kanban")}))("mouseleave",(function(){return fn(n),Ca().out()})),da(1,"a",15),Hs(2,"translate"),jn(),da(3,"svg"),fa(4,"use",37),ha(),Fn(),da(5,"span",13),Da(6),Hs(7,"translate"),ha(),ha(),ha()}if(2&e){var r=Ca();Ra("active","kanban"===r.section)("active-dialog","kanban"===r.dialog.type),ii(1),xa("title",Us(2,7,"PROJECT.SECTION.KANBAN")),ua("routerLink",zs(11,SC,r.baseHref,r.project.slug)),ii(5),ja(" ",Us(7,9,"PROJECT.SECTION.KANBAN")," ")}}var EC=function(e,t){return[e,"project",t,"issues"]};function TC(e,t){if(1&e){var n=ga();da(0,"li",10),ya("mouseenter",(function(e){return fn(n),Ca().popup(e,"issues")}))("mouseleave",(function(){return fn(n),Ca().out()})),da(1,"a",15),Hs(2,"translate"),jn(),da(3,"svg"),fa(4,"use",38),ha(),Fn(),da(5,"span",13),Da(6),Hs(7,"translate"),ha(),ha(),ha()}if(2&e){var r=Ca();Ra("active","issues"===r.section)("active-dialog","issues"===r.dialog.type),ii(1),xa("title",Us(2,7,"PROJECT.SECTION.ISSUES")),ua("routerLink",zs(11,EC,r.baseHref,r.project.slug)),ii(5),ja(" ",Us(7,9,"PROJECT.SECTION.ISSUES")," ")}}function PC(e,t){if(1&e){var n=ga();da(0,"li",10),ya("mouseenter",(function(e){return fn(n),Ca().popup(e,"video")}))("mouseleave",(function(){return fn(n),Ca().out()})),da(1,"a",39),Hs(2,"translate"),jn(),da(3,"svg"),fa(4,"use",40),ha(),Fn(),da(5,"span",13),Da(6),Hs(7,"translate"),ha(),ha(),ha()}if(2&e){var r=Ca();Ra("active-dialog","video"===r.dialog.type),ii(1),xa("title",Us(2,5,"PROJECT.SECTION.MEETUP")),ua("href",r.videoUrl,Dr),ii(5),ja(" ",Us(7,7,"PROJECT.SECTION.MEETUP")," ")}}var RC=function(e,t){return[e,"project",t,"wiki"]};function IC(e,t){if(1&e){var n=ga();da(0,"li",10),ya("mouseenter",(function(e){return fn(n),Ca().popup(e,"wiki")}))("mouseleave",(function(){return fn(n),Ca().out()})),da(1,"a",15),Hs(2,"translate"),jn(),da(3,"svg"),fa(4,"use",41),ha(),Fn(),da(5,"span",13),Da(6),Hs(7,"translate"),ha(),ha(),ha()}if(2&e){var r=Ca();Ra("active","wiki"===r.section)("active-dialog","wiki"===r.dialog.type),ii(1),xa("title",Us(2,7,"PROJECT.SECTION.WIKI")),ua("routerLink",zs(11,RC,r.baseHref,r.project.slug)),ii(5),ja(" ",Us(7,9,"PROJECT.SECTION.WIKI")," ")}}var OC=function(e,t){return[e,"project",t,"admin","project-profile","details"]};function MC(e,t){if(1&e){var n=ga();da(0,"li",10),ya("mouseenter",(function(e){return fn(n),Ca().popup(e,"settings")}))("mouseleave",(function(){return fn(n),Ca().out()})),da(1,"a",15),Hs(2,"translate"),jn(),da(3,"svg"),fa(4,"use",42),ha(),Fn(),da(5,"span",13),Da(6),Hs(7,"translate"),ha(),ha(),ha()}if(2&e){var r=Ca();Ra("active","admin"===r.section)("active-dialog","settings"===r.dialog.type),ii(1),xa("title",Us(2,7,"PROJECT.SECTION.SETTINGS")),ua("routerLink",zs(11,OC,r.baseHref,r.project.slug)),ii(5),ja(" ",Us(7,9,"PROJECT.SECTION.SETTINGS")," ")}}function NC(e,t){1&e&&(da(0,"span",43),Da(1),Hs(2,"translate"),ha()),2&e&&(ii(1),ja(" ",Us(2,1,"PROJECT.SECTION.COLLAPSE_MENU")," "))}function LC(e,t){if(1&e&&(da(0,"a",44),da(1,"span",45),Da(2),ha(),ha()),2&e){var n=Ca();Pa("height",n.dialog.mainLinkHeight,"px"),ua("href",n.dialog.slug,Dr),ii(2),ja(" ",n.dialog.text," ")}}function DC(e,t){if(1&e&&(da(0,"div",46),da(1,"span",45),Da(2),ha(),ha()),2&e){var n=Ca();Pa("height",n.dialog.mainLinkHeight,"px"),ii(2),ja(" ",n.dialog.text," ")}}function jC(e,t){if(1&e){var n=ga();da(0,"button",47),ya("click",(function(){return fn(n),Ca().search.emit()})),Hs(1,"translate"),Da(2),Hs(3,"translate"),ha()}2&e&&(xa("title",Us(1,2,"PROJECT.SECTION.SEARCH")),ii(2),ja(" ",Us(3,4,"PROJECT.SECTION.SEARCH")," "))}function FC(e,t){if(1&e&&(da(0,"li",33),da(1,"a",36),da(2,"span",48),Da(3),ha(),ha(),ha()),2&e){var n=t.$implicit;ii(1),ua("routerLink",n.link),ia("title",n.text),ii(2),ja(" ",n.text," ")}}function VC(e,t){if(1&e&&(da(0,"ul",32),aa(1,FC,4,3,"li",35),ha()),2&e){var n=Ca();ii(1),ua("ngForOf",n.dialog.children)}}var zC,BC,HC,UC=function(e,t){return[e,"project",t,"timeline"]},qC=function(e,t){return[e,"project",t,"team"]},WC=((HC=function(){function e(t,n,r,i,o){s(this,e),this.translateService=t,this.cd=n,this.legacyService=r,this.router=i,this.config=o,this.search=new qs,this.scrumVisible=!1,this.collapseText=!0,this.dialog={open:!1,hover:!1,mainLinkHeight:0,isSearch:!1,type:"",slug:"",top:0,left:0,text:"",height:0,children:[]},this.collapsed=!1}return u(e,[{key:"animationDone",value:function(){this.collapseText=!!this.collapsed}},{key:"ngOnInit",value:function(){this.collapsed="true"===localStorage.getItem("projectnav-collapsed"),this.section=this.getActiveSection(),this.milestoneId$=this.legacyService.legacyState.pipe(sd("detailObj"),U((function(e){return null==e?void 0:e.milestone}))),"backlog"===this.section&&(this.scrumVisible="true"===localStorage.getItem("projectnav-scrum"))}},{key:"getActiveSection",value:function(){var e=this.getSection(),t=e.breadcrumb,n=e.sectionName,r=t.lastIndexOf("backlog"),i=t.lastIndexOf("kanban"),o="";if(-1===r&&-1===i||(o=-1===i||r>i?"backlog":"kanban"),"backlog-kanban"===n){if(["backlog","kanban"].includes(o))return o;if(this.project.isBacklogActivated&&!this.project.isKanbanActivated)return"backlog";if(!this.project.isBacklogActivated&&this.project.isKanbanActivated)return"kanban"}return n}},{key:"popup",value:function(e,t){this.collapsed&&(this.initDialog(e.target,t),this.dialog.type=t)}},{key:"popupScrum",value:function(e){var t=this;if(this.collapsed){var n=this.milestones.map((function(e){return{text:e.name,link:[t.baseHref,"project",t.project.slug,"taskboard",e.slug]}}));n.unshift({text:this.translateService.instant("PROJECT.SECTION.BACKLOG"),link:[this.baseHref,"project",this.project.slug,"backlog"]}),this.initDialog(e.target,"scrum",n)}}},{key:"initDialog",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.dialogCloseTimeout&&clearTimeout(this.dialogCloseTimeout);var o=null===(n=e.querySelector(".menu-option-text"))||void 0===n?void 0:n.innerHTML;if(o){var a=null===(r=e.querySelector("a"))||void 0===r?void 0:r.getAttribute("href");this.dialog.slug=a||"";var s=48;this.dialog.hover=!1,this.dialog.mainLinkHeight=e.offsetHeight,this.dialog.left=s,this.dialog.top=e.offsetTop,this.dialog.open=!0,this.dialog.text=o,this.dialog.children=i,this.dialog.type=t}}},{key:"out",value:function(){var e=this;this.dialogCloseTimeout=setTimeout((function(){e.dialog.hover||(e.dialog.open=!1,e.dialog.type="",e.cd.markForCheck())}),100)}},{key:"enterDialog",value:function(){this.dialog.open=!0,this.dialog.hover=!0}},{key:"outDialog",value:function(){this.dialog.hover=!1,this.out()}},{key:"ngOnChanges",value:function(e){e.project&&(this.videoUrl=this.videoConferenceUrl())}},{key:"toggleScrum",value:function(){this.collapsed?this.router.navigate(["/project",this.project.slug,"backlog"]):(this.scrumVisible=!this.scrumVisible,localStorage.setItem("projectnav-scrum",String(this.scrumVisible)))}},{key:"toggleCollapse",value:function(){this.collapsed=!this.collapsed,localStorage.setItem("projectnav-collapsed",String(this.collapsed)),this.collapsed&&(this.scrumVisible=!1)}},{key:"videoConferenceUrl",value:function(){var e="";if(!this.project.videoconferences)return null;if("whereby-com"===this.project.videoconferences)e="https://whereby.com/";else if("talky"===this.project.videoconferences)e="https://talky.io/";else if("jitsi"===this.project.videoconferences)e="https://meet.jit.si/";else if("custom"===this.project.videoconferences&&this.project.videoconferencesExtraData)return this.project.videoconferencesExtraData;var t="";return t=this.project.videoconferencesExtraData?"".concat(this.project.slug,"-").concat(hp.slugify(this.project.videoconferencesExtraData)):this.project.slug,"jitsi"===this.project.videoconferences&&(t=t.replace(/-/g,"")),e+t}},{key:"getSection",value:function(){var e=this.legacyService.getInjector().get("tgProjectService");return{breadcrumb:e.sectionsBreadcrumb.toJS(),sectionName:e.section}}},{key:"openCollapseAnimation",get:function(){return this.collapsed?"collapsed":"open"}},{key:"baseHref",get:function(){var e;return null!==(e=this.config._config.baseHref)&&void 0!==e?e:"/"}},{key:"milestones",get:function(){return this.project.milestones.filter((function(e){return!e.closed})).reverse().slice(0,7)}},{key:"isMenuEpicsEnabled",get:function(){return this.project.isEpicsActivated&&this.project.myPermissions.includes(vC.viewEpics)}},{key:"isMenuScrumEnabled",get:function(){return this.project.isBacklogActivated&&this.project.myPermissions.includes(vC.viewUserstory)}},{key:"isMenuKanbanEnabled",get:function(){return this.project.isKanbanActivated&&this.project.myPermissions.includes(vC.viewUserstory)}},{key:"isMenuIssuesEnabled",get:function(){return this.project.isIssuesActivated&&this.project.myPermissions.includes(vC.viewIssues)}},{key:"isMenuWikiEnabled",get:function(){return this.project.isWikiActivated&&this.project.myPermissions.includes(vC.viewWikiPages)}}]),e}()).\u0275fac=function(e){return new(e||HC)(sa(Tb),sa(Ro),sa(lC),sa(Xm),sa(Tv))},HC.\u0275cmp=xt({type:HC,selectors:[["tg-project-navigation"]],hostVars:3,hostBindings:function(e,t){1&e&&ka("@openCollapse.done",(function(){return t.animationDone()})),2&e&&(Va("@openCollapse",t.openCollapseAnimation),Ra("collapsed",t.collapsed))},inputs:{project:"project"},outputs:{search:"search"},features:[Ut],decls:42,vars:50,consts:[[1,"nav-wrapper"],[1,"nav-inner"],[3,"mouseenter","mouseleave"],[1,"project-link",3,"routerLink"],["width","24","logo","small",3,"tgProjectLogo","alt"],["data-animation","text",1,"menu-option-text","project-name"],[1,"main-menu"],["class","menu-option",3,"active","active-dialog","mouseenter","mouseleave",4,"ngIf"],["class","menu-option scrum","routerLinkActive","active",3,"active","active-dialog","mouseenter","mouseleave",4,"ngIf"],[1,"menu-secondary","main-menu"],[1,"menu-option",3,"mouseenter","mouseleave"],["type","button",3,"title","click"],["href","#search"],["data-animation","text",1,"menu-option-text"],["class","menu-option",3,"active-dialog","mouseenter","mouseleave",4,"ngIf"],[3,"routerLink","title"],["href","#users"],["type","button",1,"collapse",3,"click"],["data-animation","text",4,"ngIf"],["href","#chevrons-left"],[1,"dialog",3,"mouseenter","mouseleave"],[1,"dialog-main","menu-option"],["class","main-link",3,"href","height",4,"ngIf"],["class","main-link",3,"height",4,"ngIf"],["class","main-link","type","button",3,"title","click",4,"ngIf"],["class","child-menu",4,"ngIf"],["href","#epic"],["routerLinkActive","active",1,"menu-option","scrum",3,"mouseenter","mouseleave"],["href","#agile"],["data-animation","text",1,"agile-chevron"],["href","#chevron-left"],["class","child-menu",4,"ngrxLet"],[1,"child-menu"],[1,"menu-option"],["routerLinkActive","active",3,"routerLink","title"],["class","menu-option",4,"ngFor","ngForOf"],["routerLinkActive","active",3,"routerLink"],["href","#kanban5"],["href","#issue"],["target","_blank",3,"href","title"],["href","#video"],["href","#book"],["href","#settings"],["data-animation","text"],[1,"main-link",3,"href"],[1,"dialog-text"],[1,"main-link"],["type","button",1,"main-link",3,"title","click"],[1,"menu-option-text"]],template:function(e,t){1&e&&(da(0,"div",0),da(1,"div",1),da(2,"h1",2),ya("mouseenter",(function(e){return t.popup(e,"project")}))("mouseleave",(function(){return t.out()})),da(3,"a",3),fa(4,"img",4),da(5,"span",5),Da(6),ha(),ha(),ha(),da(7,"ul",6),aa(8,kC,8,14,"li",7),aa(9,xC,11,11,"li",8),aa(10,AC,8,14,"li",7),aa(11,TC,8,14,"li",7),ha(),da(12,"ul",9),da(13,"li",10),ya("mouseenter",(function(e){return t.popup(e,"search")}))("mouseleave",(function(){return t.out()})),da(14,"button",11),ya("click",(function(){return t.search.emit()})),Hs(15,"translate"),jn(),da(16,"svg"),fa(17,"use",12),ha(),Fn(),da(18,"span",13),Da(19),Hs(20,"translate"),ha(),ha(),ha(),aa(21,PC,8,9,"li",14),aa(22,IC,8,14,"li",7),da(23,"li",10),ya("mouseenter",(function(e){return t.popup(e,"team")}))("mouseleave",(function(){return t.out()})),da(24,"a",15),Hs(25,"translate"),jn(),da(26,"svg"),fa(27,"use",16),ha(),Fn(),da(28,"span",13),Da(29),Hs(30,"translate"),ha(),ha(),ha(),aa(31,MC,8,14,"li",7),ha(),da(32,"button",17),ya("click",(function(){return t.toggleCollapse()})),aa(33,NC,3,3,"span",18),jn(),da(34,"svg"),fa(35,"use",19),ha(),ha(),ha(),ha(),Fn(),da(36,"div",20),ya("mouseenter",(function(){return t.enterDialog()}))("mouseleave",(function(){return t.outDialog()})),da(37,"div",21),aa(38,LC,3,4,"a",22),aa(39,DC,3,3,"div",23),aa(40,jC,4,6,"button",24),ha(),aa(41,VC,2,1,"ul",25),ha()),2&e&&(ii(3),ua("routerLink",zs(44,UC,t.baseHref,t.project.slug)),ia("title",t.project.name),ii(1),ua("tgProjectLogo",t.project)("alt",t.project.name),ii(2),ja(" ",t.project.name," "),ii(2),ua("ngIf",t.isMenuEpicsEnabled),ii(1),ua("ngIf",t.isMenuScrumEnabled),ii(1),ua("ngIf",t.isMenuKanbanEnabled),ii(1),ua("ngIf",t.isMenuIssuesEnabled),ii(2),Ra("active-dialog","search"===t.dialog.type),ii(1),xa("title",Us(15,36,"PROJECT.SECTION.SEARCH")),ii(5),ja(" ",Us(20,38,"PROJECT.SECTION.SEARCH")," "),ii(2),ua("ngIf",t.videoUrl),ii(1),ua("ngIf",t.isMenuWikiEnabled),ii(1),Ra("active","team"===t.section)("active-dialog","team"===t.dialog.type),ii(1),xa("title",Us(25,40,"PROJECT.SECTION.TEAM")),ua("routerLink",zs(47,qC,t.baseHref,t.project.slug)),ii(5),ja(" ",Us(30,42,"PROJECT.SECTION.TEAM")," "),ii(2),ua("ngIf",t.project.iAmAdmin),ii(1),Ra("collapsed",t.collapseText),ii(1),ua("ngIf",!t.collapseText),ii(3),Pa("top",t.dialog.top,"px")("left",t.dialog.left,"px"),Ra("open",t.dialog.open),ii(2),ua("ngIf",t.dialog.slug&&"scrum"!==t.dialog.type),ii(1),ua("ngIf","scrum"===t.dialog.type),ii(1),ua("ngIf","search"===t.dialog.type),ii(1),ua("ngIf",t.dialog.children.length))},directives:[ty,mC,Bu,sy,Vv,Vu],pipes:[Pb],styles:["[_nghost-%COMP%]{--menu-margin:12px;--menu-margin-text:12px;background-color:var(--color-black800);display:flex;flex-direction:column;height:100%;left:0;position:relative;top:0}.nav-wrapper[_ngcontent-%COMP%]{height:100%;overflow-x:hidden;overflow-y:auto}.nav-inner[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;height:100%;width:200px}.collapsed[_nghost-%COMP%]{width:48px}.collapsed[_nghost-%COMP%] .scrum[_ngcontent-%COMP%] .child-menu[_ngcontent-%COMP%]{display:none}h1[_ngcontent-%COMP%]{background-color:var(--color-black900);margin:0;padding:var(--spacing-2);padding-left:var(--menu-margin)}h1[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%]{align-items:center;color:var(--color-solid-primary);display:flex;font-size:var(--font-size-medium);text-decoration:none}h1[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%] .project-name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}h1[_ngcontent-%COMP%] .project-link[_ngcontent-%COMP%]:hover{color:var(--color-solid-primary)}h1[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:2px;height:24px;margin-right:var(--menu-margin-text);width:24px}.main-menu[_ngcontent-%COMP%]{margin:0;padding:0 0 var(--spacing-1) 0}.main-menu[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:var(--color-gray400);height:24px;width:24px}.menu-option[_ngcontent-%COMP%]{list-style:none;margin-bottom:var(--spacing-1)}.menu-option.active-dialog[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .menu-option.active-dialog[_ngcontent-%COMP%] > button[_ngcontent-%COMP%], .menu-option.active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .menu-option.active[_ngcontent-%COMP%] > button[_ngcontent-%COMP%], .menu-option[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover, .menu-option[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:hover{background-color:var(--color-black900);color:var(--color-white);font-weight:var(--font-weight-bold)}.menu-option.active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .menu-option.active[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{color:var(--color-gray400)}.menu-option[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover > svg[_ngcontent-%COMP%], .menu-option[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:hover > svg[_ngcontent-%COMP%]{fill:var(--color-white)}.menu-option[_ngcontent-%COMP%]:last-child{margin-bottom:0}.menu-option[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .menu-option[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-items:center;color:var(--color-gray400);display:flex;font-size:var(--font-size-medium);height:40px;padding:0;text-decoration:none;transition:background-color .2s linear}.menu-option[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;padding-right:var(--spacing-1);width:100%}.menu-option[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-left:var(--menu-margin);margin-right:var(--menu-margin-text)}.menu-option[_ngcontent-%COMP%] .agile-chevron[_ngcontent-%COMP%]{fill:var(--color-solid-primary);margin:0 0 0 auto;transition:all .2s linear;width:16px}.child-menu[_ngcontent-%COMP%]{background-color:var(--color-black900);display:none;list-style:none;padding:0 0 var(--spacing-1) 0}.child-menu[_ngcontent-%COMP%] .menu-option[_ngcontent-%COMP%]{margin-bottom:0}.child-menu[_ngcontent-%COMP%] .menu-option-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.child-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{min-width:0;padding-left:var(--spacing-5)}.child-menu[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%], .child-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .child-menu[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%], .child-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:var(--color-solid-primary);font-weight:var(--font-weight-bold)}.scrum.active[_ngcontent-%COMP%] .agile-chevron[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .2s linear}.scrum.active[_ngcontent-%COMP%] .child-menu[_ngcontent-%COMP%]{display:block}.menu-secondary[_ngcontent-%COMP%]{border-bottom:1px solid var(--color-black900);border-top:1px solid var(--color-black900);margin-top:auto}.collapse[_ngcontent-%COMP%]{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--color-gray400);cursor:pointer;display:flex;font-size:var(--font-size-medium);justify-content:flex-end;padding:var(--spacing-1);width:100%}.collapse[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{background:var(--color-black900);border-radius:50%;fill:var(--color-link-primary);height:24px;margin-left:var(--spacing-1);padding:4px;width:24px}.collapse.collapsed[_ngcontent-%COMP%]{justify-content:center;transform:rotate(180deg);width:48px}.collapse.collapsed[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin:0}.collapse[_ngcontent-%COMP%]:hover{color:var(--color-white);font-weight:var(--font-weight-bold)}.collapse[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%]{fill:var(--color-white)}.dialog[_ngcontent-%COMP%]{background-color:var(--color-black900);display:none;position:absolute;width:170px}.dialog[_ngcontent-%COMP%] .menu-option[_ngcontent-%COMP%]{margin-bottom:0}.dialog[_ngcontent-%COMP%] .child-menu[_ngcontent-%COMP%]{box-shadow:0 4px 24px rgba(0,0,0,.29);display:block;margin:0;padding:0}.dialog[_ngcontent-%COMP%] .child-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding-left:var(--spacing-4)}.dialog.open[_ngcontent-%COMP%]{display:block}.dialog[_ngcontent-%COMP%] .main-link[_ngcontent-%COMP%]{align-items:center;background-color:var(--color-black900);color:var(--color-white);display:flex;padding:0 var(--spacing-2)}.dialog[_ngcontent-%COMP%] .main-link[_ngcontent-%COMP%] .dialog-text[_ngcontent-%COMP%]{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;font-size:var(--font-size-medium);font-weight:var(--font-weight-bold);overflow:hidden;text-decoration:none;text-overflow:ellipsis}.dialog[_ngcontent-%COMP%] a.main-link[_ngcontent-%COMP%]:hover, .dialog[_ngcontent-%COMP%] button.main-link[_ngcontent-%COMP%]:hover{color:var(--color-solid-primary)}"],data:{animation:[(BC=[Db("open => collapsed",[jb('[data-animation="text"]',Lb({opacity:1})),jb(":self",Lb({width:"200px"})),jb('[data-animation="text"]',Mb(100,Lb({opacity:0}))),jb(":self",Mb(300,Lb({width:"48px"})))]),Db("collapsed => open",[jb(":self",Lb({width:"48px"})),jb(":self",Mb(300,Lb({width:"200px"})))])],{type:7,name:"openCollapse",definitions:BC,options:{}})]},changeDetection:0}),HC),$C=((zC=function(){function e(){s(this,e)}return u(e,[{key:"transform",value:function(e){return hp.objKeysTransformer(e,cp)}}]),e}()).\u0275fac=function(e){return new(e||zC)},zC.\u0275pipe=It({name:"camelCaseTransformer",type:zC,pure:!0}),zC);function KC(e,t){if(1&e){var n=ga();da(0,"tg-project-navigation",4),ya("search",(function(){return fn(n),Ca(2).events.search()})),Hs(1,"camelCaseTransformer"),ha()}2&e&&ua("project",Us(1,1,Ca(2).params.project))}function GC(e,t){if(1&e&&(va(0),aa(1,KC,2,3,"tg-project-navigation",3),pa()),2&e){var n=Ca();ii(1),ua("ngIf",null==n.params?null:n.params.project)}}function JC(e,t){1&e&&(da(0,"p"),Da(1,"Invalid component"),ha())}var QC,ZC,YC,XC,ex,tx=((QC=function(){function e(t,n){s(this,e),this.translate=t,this.cd=n,this.destroy$=new z}return u(e,[{key:"ngOnInit",value:function(){var e,t=this;this.translate.onLangChange.pipe((e=this.destroy$,function(t){return t.lift(new dC(e))})).subscribe((function(){requestAnimationFrame((function(){t.cd.detectChanges()}))}))}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete()}}]),e}()).\u0275fac=function(e){return new(e||QC)(sa(Tb),sa(Ro))},QC.\u0275cmp=xt({type:QC,selectors:[["tg-legacy-loader"]],inputs:{component:"component",params:"params",events:"events"},decls:4,vars:2,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"project","search",4,"ngIf"],[3,"project","search"]],template:function(e,t){1&e&&(va(0,0),aa(1,GC,2,1,"ng-container",1),aa(2,JC,2,0,"p",2),pa(),fa(3,"tg-svg-sprite")),2&e&&(ua("ngSwitch",t.component),ii(1),ua("ngSwitchCase","tg-project-navigation"))},directives:[Qu,Zu,Yu,fC,Bu,WC],pipes:[$C],styles:["\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}:host,:root{--color-solid-primary:#83eede;--color-link-primary:#008aa8;--color-link-tertiary:#70728f;--color-gray100:#f9f9fb;--color-gray200:#eceff4;--color-gray300:#e5e9f0;--color-gray400:#d8dee9;--color-black600:#4c566a;--color-black700:#434c5e;--color-black800:#3b4252;--color-black900:#2e3440;--color-black:#000;--color-white:#fff;--color-solid-red:rgba(228,64,87,0.5);--color-link-red:#e44057;--color-solid-orange:rgba(234,123,75,0.55);--color-link-orange:#ea7b4b;--color-solid-yellow:rgba(246,201,92,0.55);--color-link-yellow:#f6c95c;--color-solid-green:rgba(147,196,93,0.55);--color-link-green:#93c45d;--color-solid-purple:rgba(202,129,190,0.55);--color-link-purple:#ca81be;--font-size-heading-1:2.136rem;--font-size-heading-2:1.709rem;--font-size-heading-3:1.367rem;--font-size-heading-4:1.094rem;--font-size-medium:.875rem;--font-size-small:.7rem;--font-weight-light:200;--font-weight-medium:400;--font-weight-bold:700;--spacing-1:.5rem;--spacing-2:calc(var(--spacing-1) * 2);--spacing-3:calc(var(--spacing-1) * 3);--spacing-4:calc(var(--spacing-1) * 4);--spacing-5:calc(var(--spacing-1) * 5);--spacing-6:calc(var(--spacing-1) * 6);--spacing-7:calc(var(--spacing-1) * 7);--spacing-8:calc(var(--spacing-1) * 8);--spacing-9:calc(var(--spacing-1) * 9);--spacing-10:calc(var(--spacing-1) * 10);--none:0;--common:1;--slider:5;--modal:10;--overlay:90}@font-face{font-family:Ubuntu;font-style:normal;font-weight:200;src:url(Ubuntu-L.ttf)}@font-face{font-family:Ubuntu;font-style:italic;font-weight:200;src:url(Ubuntu-LI.ttf)}@font-face{font-family:Ubuntu;font-style:normal;font-weight:400;src:url(Ubuntu-R.ttf)}@font-face{font-family:Ubuntu;font-style:italic;font-weight:400;src:url(Ubuntu-RI.ttf)}@font-face{font-family:Ubuntu;font-style:normal;font-weight:700;src:url(Ubuntu-M.ttf)}@font-face{font-family:Ubuntu;font-style:italic;font-weight:700;src:url(Ubuntu-MI.ttf)}*,:after,:before{box-sizing:border-box}body{font-family:Ubuntu,sans-serif;font-size:var(--font-size-medium);font-weight:400;letter-spacing:normal;line-height:1.5}h1,h2,h3,h4,li,p{-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;word-break:break-word}"],encapsulation:3}),QC),nx=function(){function e(t,n){s(this,e),this.strategy=t,this.injector=n,this.ngZone=this.injector.get(Pl),this.strategy.events&&(this.events=this.strategy.events)}return u(e,[{key:"connect",value:function(e){var t=this;this.runInZone((function(){t.strategy.connect(e)})),this.events||(this.events=this.strategy.events)}},{key:"disconnect",value:function(){var e=this;this.runInZone((function(){e.strategy.disconnect()}))}},{key:"getInputValue",value:function(e){var t=this;return this.runInZone((function(){return t.strategy.getInputValue(e)}))}},{key:"setInputValue",value:function(e,t){var n=this;this.runInZone((function(){n.strategy.setInputValue(e,t)}))}},{key:"runInZone",value:function(e){return this.ngZone.run(e)}}]),e}(),rx=((YC=function(){function e(t,n){s(this,e),this.component=t,this.injector=n,this.ngElement=Jv(this.component,{injector:this.injector}),customElements.define(this.generateName(),this.ngElement)}return u(e,[{key:"string4",value:function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}},{key:"generateName",value:function(){var t="dummy-name-n";return t=t+(e.counter+"-")+this.string4()+this.string4()+this.string4()+"-"+this.string4()+this.string4()+"-"+this.string4(),e.counter++,t}},{key:"create",value:function(e){var t=new this.ngElement(this.injector),n=t.ngElementStrategy;return t=null,new nx(n,this.injector)}}]),e}()).counter=1,YC),ix=((ZC=function(){function e(){s(this,e),this.urlChanges=[],this._history=[new ox("","",null)],this._historyIndex=0,this._subject=new qs,this._baseHref="",this._platformStrategy=null,this._platformLocation=null,this._urlChangeListeners=[]}return u(e,[{key:"setInitialPath",value:function(e){this._history[this._historyIndex].path=e}},{key:"setBaseHref",value:function(e){this._baseHref=e}},{key:"path",value:function(){return this._history[this._historyIndex].path}},{key:"getState",value:function(){return this._history[this._historyIndex].state}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.endsWith("/")?e.substring(0,e.length-1):e;return(this.path().endsWith("/")?this.path().substring(0,this.path().length-1):this.path())==n+(t.length>0?"?"+t:"")}},{key:"simulateUrlPop",value:function(e){this._subject.emit({url:e,pop:!0,type:"popstate"})}},{key:"simulateHashChange",value:function(e){this.setInitialPath(e),this.urlChanges.push("hash: "+e),this._subject.emit({url:e,pop:!0,type:"hashchange"})}},{key:"prepareExternalUrl",value:function(e){return e.length>0&&!e.startsWith("/")&&(e="/"+e),this._baseHref+e}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e=this.prepareExternalUrl(e),this._historyIndex>0&&this._history.splice(this._historyIndex+1),this._history.push(new ox(e,t,n)),this._historyIndex=this._history.length-1;var r=this._history[this._historyIndex-1];if(r.path!=e||r.query!=t){var i=e+(t.length>0?"?"+t:"");this.urlChanges.push(i),this._subject.emit({url:i,pop:!1})}}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e=this.prepareExternalUrl(e);var r=this._history[this._historyIndex];r.path==e&&r.query==t||(r.path=e,r.query=t,r.state=n,this.urlChanges.push("replace: "+e+(t.length>0?"?"+t:"")))}},{key:"forward",value:function(){this._historyIndex<this._history.length-1&&(this._historyIndex++,this._subject.emit({url:this.path(),state:this.getState(),pop:!0}))}},{key:"back",value:function(){this._historyIndex>0&&(this._historyIndex--,this._subject.emit({url:this.path(),state:this.getState(),pop:!0}))}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)})))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}},{key:"normalize",value:function(e){return null}}]),e}()).\u0275fac=function(e){return new(e||ZC)},ZC.\u0275prov=Ce({token:ZC,factory:ZC.\u0275fac}),ZC),ox=function e(t,n,r){s(this,e),this.path=t,this.query=n,this.state=r},ax=((XC=function(e){c(n,e);var t=d(n);function n(){var e;return s(this,n),(e=t.call(this)).internalBaseHref="/",e.internalPath="/",e.internalTitle="",e.urlChanges=[],e._subject=new qs,e.stateChanges=[],e}return u(n,[{key:"simulatePopState",value:function(e){this.internalPath=e,this._subject.emit(new sx(this.path()))}},{key:"path",value:function(){return this.internalPath}},{key:"prepareExternalUrl",value:function(e){return e.startsWith("/")&&this.internalBaseHref.endsWith("/")?this.internalBaseHref+e.substring(1):this.internalBaseHref+e}},{key:"pushState",value:function(e,t,n,r){this.stateChanges.push(e),this.internalTitle=t;var i=n+(r.length>0?"?"+r:"");this.internalPath=i;var o=this.prepareExternalUrl(i);this.urlChanges.push(o)}},{key:"replaceState",value:function(e,t,n,r){this.stateChanges[(this.stateChanges.length||1)-1]=e,this.internalTitle=t;var i=n+(r.length>0?"?"+r:"");this.internalPath=i;var o=this.prepareExternalUrl(i);this.urlChanges.push("replace: "+o)}},{key:"onPopState",value:function(e){this._subject.subscribe({next:e})}},{key:"getBaseHref",value:function(){return this.internalBaseHref}},{key:"back",value:function(){this.urlChanges.length>0&&(this.urlChanges.pop(),this.stateChanges.pop(),this.simulatePopState(this.urlChanges.length>0?this.urlChanges[this.urlChanges.length-1]:""))}},{key:"forward",value:function(){throw"not implemented"}},{key:"getState",value:function(){return this.stateChanges[(this.stateChanges.length||1)-1]}}]),n}(bu)).\u0275fac=function(e){return new(e||XC)},XC.\u0275prov=Ce({token:XC,factory:XC.\u0275fac}),XC),sx=function e(t){s(this,e),this.newUrl=t,this.pop=!0,this.type="popstate"},lx=((ex=function(){function e(t){s(this,e),this.compiler=t,this._stubbedModules={}}return u(e,[{key:"load",value:function(e){return this._stubbedModules[e]?this._stubbedModules[e]:Promise.reject(new Error("Cannot find module "+e))}},{key:"stubbedModules",set:function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t[i]=this.compiler.compileModuleAsync(e[i])}this._stubbedModules=t},get:function(){return this._stubbedModules}}]),e}()).\u0275fac=function(e){return new(e||ex)(st(Al))},ex.\u0275prov=Ce({token:ex,factory:ex.\u0275fac}),ex);function ux(e,t,n,r,i,o,a,s,l){var u=new Xm(null,e,t,n,o,r,i,ng(a));return s&&(function(e){return"shouldProcessUrl"in e}(s)?u.urlHandlingStrategy=s:(s.malformedUriErrorHandler&&(u.malformedUriErrorHandler=s.malformedUriErrorHandler),s.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=s.paramsInheritanceStrategy))),l&&(u.urlHandlingStrategy=l),u}var cx,dx=((cx=function(){function e(){s(this,e)}return u(e,null,[{key:"withRoutes",value:function(t,n){return{ngModule:e,providers:[Cy(t),{provide:vy,useValue:n||{}}]}}}]),e}()).\u0275mod=Tt({type:cx}),cx.\u0275inj=xe({factory:function(e){return new(e||cx)},providers:[gy,{provide:Tu,useClass:ix},{provide:bu,useClass:ax},{provide:Ql,useClass:lx},{provide:Xm,useFactory:ux,deps:[hg,qm,Tu,Ql,Al,Ko,Bm,vy,[Wm,new ye]]},{provide:cy,useExisting:dy},Cy([])],imports:[ky]}),cx);Vw.prototype.containsElement=function(e,t){for(var n=t;n&&n!==document.documentElement;){if(n===e)return!0;n=n.parentNode||n.host}return!1};var hx,fx,vx=((hx=function e(){s(this,e)}).\u0275fac=function(e){return new(e||hx)},hx.\u0275cmp=xt({type:hx,selectors:[["tg-empty"]],decls:0,vars:0,template:function(e,t){},encapsulation:2}),hx),px=[["tg-text-editor",Zk],["tg-legacy",cC],["tg-legacy-loader",tx]],gx=((fx=function(){function e(t){s(this,e),this.injector=t}return u(e,[{key:"ngDoBootstrap",value:function(){var e,t=r(px);try{for(t.s();!(e=t.n()).done;){var n=e.value,i=new rx(n[1],this.injector),o=Jv(n[1],{injector:this.injector,strategyFactory:i});customElements.define(n[0],o)}}catch(a){t.e(a)}finally{t.f()}}}]),e}()).\u0275mod=Tt({type:fx}),fx.\u0275inj=xe({factory:function(e){return new(e||fx)(st(Ko))},providers:[{provide:Su,useFactory:function(){return window.taigaConfig.baseHref||"/"}},{provide:ll,multi:!0,deps:[Tv,Tb],useFactory:function(e,t){return function(){return e.fetch().then((function(e){return t.setDefaultLang(e.defaultLanguage),t.use(e.defaultLanguage),e}))}}}],imports:[[uC,Av,jc,Ah.forRoot({},{runtimeChecks:{strictStateImmutability:!0,strictActionImmutability:!0,strictStateSerializability:!0,strictActionSerializability:!0,strictActionTypeUniqueness:!0}}),jf,Nf.forRoot([]),zv,zy,sC,Rb.forRoot(),dx.withRoutes([{path:"**",component:vx}])]]}),fx);iu.production&&function(){if(Ir)throw new Error("Cannot enable prod mode after platform setup.");Rr=!1}(),Lc().bootstrapModule(gx).catch((function(e){return console.error(e)}))},M55E:function(e,t,n){var r;(function(){function i(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `\xab\xab\xab` and `\xbb\xbb\xbb` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r].defaultValue);return n}var o={},a={},s={},l=i(!0),u="vanilla",c={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:i(!0),allOn:function(){"use strict";var e=i(!0),t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=!0);return t}()};function d(e,t){"use strict";var n=t?"Error in "+t+" extension->":"Error in unnamed extension",r={valid:!0,error:""};o.helper.isArray(e)||(e=[e]);for(var i=0;i<e.length;++i){var a=n+" sub-extension "+i+": ",s=e[i];if("object"!=typeof s)return r.valid=!1,r.error=a+"must be an object, but "+typeof s+" given",r;if(!o.helper.isString(s.type))return r.valid=!1,r.error=a+'property "type" must be a string, but '+typeof s.type+" given",r;var l=s.type=s.type.toLowerCase();if("language"===l&&(l=s.type="lang"),"html"===l&&(l=s.type="output"),"lang"!==l&&"output"!==l&&"listener"!==l)return r.valid=!1,r.error=a+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',r;if("listener"===l){if(o.helper.isUndefined(s.listeners))return r.valid=!1,r.error=a+'. Extensions of type "listener" must have a property called "listeners"',r}else if(o.helper.isUndefined(s.filter)&&o.helper.isUndefined(s.regex))return r.valid=!1,r.error=a+l+' extensions must define either a "regex" property or a "filter" method',r;if(s.listeners){if("object"!=typeof s.listeners)return r.valid=!1,r.error=a+'"listeners" property must be an object but '+typeof s.listeners+" given",r;for(var u in s.listeners)if(s.listeners.hasOwnProperty(u)&&"function"!=typeof s.listeners[u])return r.valid=!1,r.error=a+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+u+" must be a function but "+typeof s.listeners[u]+" given",r}if(s.filter){if("function"!=typeof s.filter)return r.valid=!1,r.error=a+'"filter" must be a function, but '+typeof s.filter+" given",r}else if(s.regex){if(o.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return r.valid=!1,r.error=a+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",r;if(o.helper.isUndefined(s.replace))return r.valid=!1,r.error=a+'"regex" extensions must implement a replace string or function',r}}return r}function h(e,t){"use strict";return"\xa8E"+t.charCodeAt(0)+"E"}o.helper={},o.extensions={},o.setOption=function(e,t){"use strict";return l[e]=t,this},o.getOption=function(e){"use strict";return l[e]},o.getOptions=function(){"use strict";return l},o.resetOptions=function(){"use strict";l=i(!0)},o.setFlavor=function(e){"use strict";if(!c.hasOwnProperty(e))throw Error(e+" flavor was not found");o.resetOptions();var t=c[e];for(var n in u=e,t)t.hasOwnProperty(n)&&(l[n]=t[n])},o.getFlavor=function(){"use strict";return u},o.getFlavorOptions=function(e){"use strict";if(c.hasOwnProperty(e))return c[e]},o.getDefaultOptions=function(e){"use strict";return i(e)},o.subParser=function(e,t){"use strict";if(o.helper.isString(e)){if(void 0===t){if(a.hasOwnProperty(e))return a[e];throw Error("SubParser named "+e+" not registered!")}a[e]=t}},o.extension=function(e,t){"use strict";if(!o.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=o.helper.stdExtName(e),o.helper.isUndefined(t)){if(!s.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return s[e]}"function"==typeof t&&(t=t()),o.helper.isArray(t)||(t=[t]);var n=d(t,e);if(!n.valid)throw Error(n.error);s[e]=t},o.getAllExtensions=function(){"use strict";return s},o.removeExtension=function(e){"use strict";delete s[e]},o.resetExtensions=function(){"use strict";s={}},o.validateExtension=function(e){"use strict";var t=d(e,null);return!!t.valid||(console.warn(t.error),!1)},o.hasOwnProperty("helper")||(o.helper={}),o.helper.isString=function(e){"use strict";return"string"==typeof e||e instanceof String},o.helper.isFunction=function(e){"use strict";return e&&"[object Function]"==={}.toString.call(e)},o.helper.isArray=function(e){"use strict";return Array.isArray(e)},o.helper.isUndefined=function(e){"use strict";return void 0===e},o.helper.forEach=function(e,t){"use strict";if(o.helper.isUndefined(e))throw new Error("obj param is required");if(o.helper.isUndefined(t))throw new Error("callback param is required");if(!o.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(o.helper.isArray(e))for(var n=0;n<e.length;n++)t(e[n],n,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)}},o.helper.stdExtName=function(e){"use strict";return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},o.helper.escapeCharactersCallback=h,o.helper.escapeCharacters=function(e,t,n){"use strict";var r="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(r="\\\\"+r);var i=new RegExp(r,"g");return e.replace(i,h)},o.helper.unescapeHTMLEntities=function(e){"use strict";return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var f=function(e,t,n,r){"use strict";var i,o,a,s,l,u=r||"",c=u.indexOf("g")>-1,d=new RegExp(t+"|"+n,"g"+u.replace(/g/g,"")),h=new RegExp(t,u.replace(/g/g,"")),f=[];do{for(i=0;a=d.exec(e);)if(h.test(a[0]))i++||(s=(o=d.lastIndex)-a[0].length);else if(i&&!--i&&(f.push({left:{start:s,end:o},match:{start:o,end:a.index},right:{start:a.index,end:l=a.index+a[0].length},wholeMatch:{start:s,end:l}}),!c))return f}while(i&&(d.lastIndex=o));return f};o.helper.matchRecursiveRegExp=function(e,t,n,r){"use strict";for(var i=f(e,t,n,r),o=[],a=0;a<i.length;++a)o.push([e.slice(i[a].wholeMatch.start,i[a].wholeMatch.end),e.slice(i[a].match.start,i[a].match.end),e.slice(i[a].left.start,i[a].left.end),e.slice(i[a].right.start,i[a].right.end)]);return o},o.helper.replaceRecursiveRegExp=function(e,t,n,r,i){"use strict";if(!o.helper.isFunction(t)){var a=t;t=function(){return a}}var s=f(e,n,r,i),l=e,u=s.length;if(u>0){var c=[];0!==s[0].wholeMatch.start&&c.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d<u;++d)c.push(t(e.slice(s[d].wholeMatch.start,s[d].wholeMatch.end),e.slice(s[d].match.start,s[d].match.end),e.slice(s[d].left.start,s[d].left.end),e.slice(s[d].right.start,s[d].right.end))),d<u-1&&c.push(e.slice(s[d].wholeMatch.end,s[d+1].wholeMatch.start));s[u-1].wholeMatch.end<e.length&&c.push(e.slice(s[u-1].wholeMatch.end)),l=c.join("")}return l},o.helper.regexIndexOf=function(e,t,n){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==0)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var r=e.substring(n||0).search(t);return r>=0?r+(n||0):r},o.helper.splitAtIndex=function(e,t){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},o.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e}))},o.helper.padEnd=function(e,t,n){"use strict";return t>>=0,n=String(n||" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),String(e)+n.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"\ud83d\udc4d","-1":"\ud83d\udc4e",100:"\ud83d\udcaf",1234:"\ud83d\udd22","1st_place_medal":"\ud83e\udd47","2nd_place_medal":"\ud83e\udd48","3rd_place_medal":"\ud83e\udd49","8ball":"\ud83c\udfb1",a:"\ud83c\udd70\ufe0f",ab:"\ud83c\udd8e",abc:"\ud83d\udd24",abcd:"\ud83d\udd21",accept:"\ud83c\ude51",aerial_tramway:"\ud83d\udea1",airplane:"\u2708\ufe0f",alarm_clock:"\u23f0",alembic:"\u2697\ufe0f",alien:"\ud83d\udc7d",ambulance:"\ud83d\ude91",amphora:"\ud83c\udffa",anchor:"\u2693\ufe0f",angel:"\ud83d\udc7c",anger:"\ud83d\udca2",angry:"\ud83d\ude20",anguished:"\ud83d\ude27",ant:"\ud83d\udc1c",apple:"\ud83c\udf4e",aquarius:"\u2652\ufe0f",aries:"\u2648\ufe0f",arrow_backward:"\u25c0\ufe0f",arrow_double_down:"\u23ec",arrow_double_up:"\u23eb",arrow_down:"\u2b07\ufe0f",arrow_down_small:"\ud83d\udd3d",arrow_forward:"\u25b6\ufe0f",arrow_heading_down:"\u2935\ufe0f",arrow_heading_up:"\u2934\ufe0f",arrow_left:"\u2b05\ufe0f",arrow_lower_left:"\u2199\ufe0f",arrow_lower_right:"\u2198\ufe0f",arrow_right:"\u27a1\ufe0f",arrow_right_hook:"\u21aa\ufe0f",arrow_up:"\u2b06\ufe0f",arrow_up_down:"\u2195\ufe0f",arrow_up_small:"\ud83d\udd3c",arrow_upper_left:"\u2196\ufe0f",arrow_upper_right:"\u2197\ufe0f",arrows_clockwise:"\ud83d\udd03",arrows_counterclockwise:"\ud83d\udd04",art:"\ud83c\udfa8",articulated_lorry:"\ud83d\ude9b",artificial_satellite:"\ud83d\udef0",astonished:"\ud83d\ude32",athletic_shoe:"\ud83d\udc5f",atm:"\ud83c\udfe7",atom_symbol:"\u269b\ufe0f",avocado:"\ud83e\udd51",b:"\ud83c\udd71\ufe0f",baby:"\ud83d\udc76",baby_bottle:"\ud83c\udf7c",baby_chick:"\ud83d\udc24",baby_symbol:"\ud83d\udebc",back:"\ud83d\udd19",bacon:"\ud83e\udd53",badminton:"\ud83c\udff8",baggage_claim:"\ud83d\udec4",baguette_bread:"\ud83e\udd56",balance_scale:"\u2696\ufe0f",balloon:"\ud83c\udf88",ballot_box:"\ud83d\uddf3",ballot_box_with_check:"\u2611\ufe0f",bamboo:"\ud83c\udf8d",banana:"\ud83c\udf4c",bangbang:"\u203c\ufe0f",bank:"\ud83c\udfe6",bar_chart:"\ud83d\udcca",barber:"\ud83d\udc88",baseball:"\u26be\ufe0f",basketball:"\ud83c\udfc0",basketball_man:"\u26f9\ufe0f",basketball_woman:"\u26f9\ufe0f&zwj;\u2640\ufe0f",bat:"\ud83e\udd87",bath:"\ud83d\udec0",bathtub:"\ud83d\udec1",battery:"\ud83d\udd0b",beach_umbrella:"\ud83c\udfd6",bear:"\ud83d\udc3b",bed:"\ud83d\udecf",bee:"\ud83d\udc1d",beer:"\ud83c\udf7a",beers:"\ud83c\udf7b",beetle:"\ud83d\udc1e",beginner:"\ud83d\udd30",bell:"\ud83d\udd14",bellhop_bell:"\ud83d\udece",bento:"\ud83c\udf71",biking_man:"\ud83d\udeb4",bike:"\ud83d\udeb2",biking_woman:"\ud83d\udeb4&zwj;\u2640\ufe0f",bikini:"\ud83d\udc59",biohazard:"\u2623\ufe0f",bird:"\ud83d\udc26",birthday:"\ud83c\udf82",black_circle:"\u26ab\ufe0f",black_flag:"\ud83c\udff4",black_heart:"\ud83d\udda4",black_joker:"\ud83c\udccf",black_large_square:"\u2b1b\ufe0f",black_medium_small_square:"\u25fe\ufe0f",black_medium_square:"\u25fc\ufe0f",black_nib:"\u2712\ufe0f",black_small_square:"\u25aa\ufe0f",black_square_button:"\ud83d\udd32",blonde_man:"\ud83d\udc71",blonde_woman:"\ud83d\udc71&zwj;\u2640\ufe0f",blossom:"\ud83c\udf3c",blowfish:"\ud83d\udc21",blue_book:"\ud83d\udcd8",blue_car:"\ud83d\ude99",blue_heart:"\ud83d\udc99",blush:"\ud83d\ude0a",boar:"\ud83d\udc17",boat:"\u26f5\ufe0f",bomb:"\ud83d\udca3",book:"\ud83d\udcd6",bookmark:"\ud83d\udd16",bookmark_tabs:"\ud83d\udcd1",books:"\ud83d\udcda",boom:"\ud83d\udca5",boot:"\ud83d\udc62",bouquet:"\ud83d\udc90",bowing_man:"\ud83d\ude47",bow_and_arrow:"\ud83c\udff9",bowing_woman:"\ud83d\ude47&zwj;\u2640\ufe0f",bowling:"\ud83c\udfb3",boxing_glove:"\ud83e\udd4a",boy:"\ud83d\udc66",bread:"\ud83c\udf5e",bride_with_veil:"\ud83d\udc70",bridge_at_night:"\ud83c\udf09",briefcase:"\ud83d\udcbc",broken_heart:"\ud83d\udc94",bug:"\ud83d\udc1b",building_construction:"\ud83c\udfd7",bulb:"\ud83d\udca1",bullettrain_front:"\ud83d\ude85",bullettrain_side:"\ud83d\ude84",burrito:"\ud83c\udf2f",bus:"\ud83d\ude8c",business_suit_levitating:"\ud83d\udd74",busstop:"\ud83d\ude8f",bust_in_silhouette:"\ud83d\udc64",busts_in_silhouette:"\ud83d\udc65",butterfly:"\ud83e\udd8b",cactus:"\ud83c\udf35",cake:"\ud83c\udf70",calendar:"\ud83d\udcc6",call_me_hand:"\ud83e\udd19",calling:"\ud83d\udcf2",camel:"\ud83d\udc2b",camera:"\ud83d\udcf7",camera_flash:"\ud83d\udcf8",camping:"\ud83c\udfd5",cancer:"\u264b\ufe0f",candle:"\ud83d\udd6f",candy:"\ud83c\udf6c",canoe:"\ud83d\udef6",capital_abcd:"\ud83d\udd20",capricorn:"\u2651\ufe0f",car:"\ud83d\ude97",card_file_box:"\ud83d\uddc3",card_index:"\ud83d\udcc7",card_index_dividers:"\ud83d\uddc2",carousel_horse:"\ud83c\udfa0",carrot:"\ud83e\udd55",cat:"\ud83d\udc31",cat2:"\ud83d\udc08",cd:"\ud83d\udcbf",chains:"\u26d3",champagne:"\ud83c\udf7e",chart:"\ud83d\udcb9",chart_with_downwards_trend:"\ud83d\udcc9",chart_with_upwards_trend:"\ud83d\udcc8",checkered_flag:"\ud83c\udfc1",cheese:"\ud83e\uddc0",cherries:"\ud83c\udf52",cherry_blossom:"\ud83c\udf38",chestnut:"\ud83c\udf30",chicken:"\ud83d\udc14",children_crossing:"\ud83d\udeb8",chipmunk:"\ud83d\udc3f",chocolate_bar:"\ud83c\udf6b",christmas_tree:"\ud83c\udf84",church:"\u26ea\ufe0f",cinema:"\ud83c\udfa6",circus_tent:"\ud83c\udfaa",city_sunrise:"\ud83c\udf07",city_sunset:"\ud83c\udf06",cityscape:"\ud83c\udfd9",cl:"\ud83c\udd91",clamp:"\ud83d\udddc",clap:"\ud83d\udc4f",clapper:"\ud83c\udfac",classical_building:"\ud83c\udfdb",clinking_glasses:"\ud83e\udd42",clipboard:"\ud83d\udccb",clock1:"\ud83d\udd50",clock10:"\ud83d\udd59",clock1030:"\ud83d\udd65",clock11:"\ud83d\udd5a",clock1130:"\ud83d\udd66",clock12:"\ud83d\udd5b",clock1230:"\ud83d\udd67",clock130:"\ud83d\udd5c",clock2:"\ud83d\udd51",clock230:"\ud83d\udd5d",clock3:"\ud83d\udd52",clock330:"\ud83d\udd5e",clock4:"\ud83d\udd53",clock430:"\ud83d\udd5f",clock5:"\ud83d\udd54",clock530:"\ud83d\udd60",clock6:"\ud83d\udd55",clock630:"\ud83d\udd61",clock7:"\ud83d\udd56",clock730:"\ud83d\udd62",clock8:"\ud83d\udd57",clock830:"\ud83d\udd63",clock9:"\ud83d\udd58",clock930:"\ud83d\udd64",closed_book:"\ud83d\udcd5",closed_lock_with_key:"\ud83d\udd10",closed_umbrella:"\ud83c\udf02",cloud:"\u2601\ufe0f",cloud_with_lightning:"\ud83c\udf29",cloud_with_lightning_and_rain:"\u26c8",cloud_with_rain:"\ud83c\udf27",cloud_with_snow:"\ud83c\udf28",clown_face:"\ud83e\udd21",clubs:"\u2663\ufe0f",cocktail:"\ud83c\udf78",coffee:"\u2615\ufe0f",coffin:"\u26b0\ufe0f",cold_sweat:"\ud83d\ude30",comet:"\u2604\ufe0f",computer:"\ud83d\udcbb",computer_mouse:"\ud83d\uddb1",confetti_ball:"\ud83c\udf8a",confounded:"\ud83d\ude16",confused:"\ud83d\ude15",congratulations:"\u3297\ufe0f",construction:"\ud83d\udea7",construction_worker_man:"\ud83d\udc77",construction_worker_woman:"\ud83d\udc77&zwj;\u2640\ufe0f",control_knobs:"\ud83c\udf9b",convenience_store:"\ud83c\udfea",cookie:"\ud83c\udf6a",cool:"\ud83c\udd92",policeman:"\ud83d\udc6e",copyright:"\xa9\ufe0f",corn:"\ud83c\udf3d",couch_and_lamp:"\ud83d\udecb",couple:"\ud83d\udc6b",couple_with_heart_woman_man:"\ud83d\udc91",couple_with_heart_man_man:"\ud83d\udc68&zwj;\u2764\ufe0f&zwj;\ud83d\udc68",couple_with_heart_woman_woman:"\ud83d\udc69&zwj;\u2764\ufe0f&zwj;\ud83d\udc69",couplekiss_man_man:"\ud83d\udc68&zwj;\u2764\ufe0f&zwj;\ud83d\udc8b&zwj;\ud83d\udc68",couplekiss_man_woman:"\ud83d\udc8f",couplekiss_woman_woman:"\ud83d\udc69&zwj;\u2764\ufe0f&zwj;\ud83d\udc8b&zwj;\ud83d\udc69",cow:"\ud83d\udc2e",cow2:"\ud83d\udc04",cowboy_hat_face:"\ud83e\udd20",crab:"\ud83e\udd80",crayon:"\ud83d\udd8d",credit_card:"\ud83d\udcb3",crescent_moon:"\ud83c\udf19",cricket:"\ud83c\udfcf",crocodile:"\ud83d\udc0a",croissant:"\ud83e\udd50",crossed_fingers:"\ud83e\udd1e",crossed_flags:"\ud83c\udf8c",crossed_swords:"\u2694\ufe0f",crown:"\ud83d\udc51",cry:"\ud83d\ude22",crying_cat_face:"\ud83d\ude3f",crystal_ball:"\ud83d\udd2e",cucumber:"\ud83e\udd52",cupid:"\ud83d\udc98",curly_loop:"\u27b0",currency_exchange:"\ud83d\udcb1",curry:"\ud83c\udf5b",custard:"\ud83c\udf6e",customs:"\ud83d\udec3",cyclone:"\ud83c\udf00",dagger:"\ud83d\udde1",dancer:"\ud83d\udc83",dancing_women:"\ud83d\udc6f",dancing_men:"\ud83d\udc6f&zwj;\u2642\ufe0f",dango:"\ud83c\udf61",dark_sunglasses:"\ud83d\udd76",dart:"\ud83c\udfaf",dash:"\ud83d\udca8",date:"\ud83d\udcc5",deciduous_tree:"\ud83c\udf33",deer:"\ud83e\udd8c",department_store:"\ud83c\udfec",derelict_house:"\ud83c\udfda",desert:"\ud83c\udfdc",desert_island:"\ud83c\udfdd",desktop_computer:"\ud83d\udda5",male_detective:"\ud83d\udd75\ufe0f",diamond_shape_with_a_dot_inside:"\ud83d\udca0",diamonds:"\u2666\ufe0f",disappointed:"\ud83d\ude1e",disappointed_relieved:"\ud83d\ude25",dizzy:"\ud83d\udcab",dizzy_face:"\ud83d\ude35",do_not_litter:"\ud83d\udeaf",dog:"\ud83d\udc36",dog2:"\ud83d\udc15",dollar:"\ud83d\udcb5",dolls:"\ud83c\udf8e",dolphin:"\ud83d\udc2c",door:"\ud83d\udeaa",doughnut:"\ud83c\udf69",dove:"\ud83d\udd4a",dragon:"\ud83d\udc09",dragon_face:"\ud83d\udc32",dress:"\ud83d\udc57",dromedary_camel:"\ud83d\udc2a",drooling_face:"\ud83e\udd24",droplet:"\ud83d\udca7",drum:"\ud83e\udd41",duck:"\ud83e\udd86",dvd:"\ud83d\udcc0","e-mail":"\ud83d\udce7",eagle:"\ud83e\udd85",ear:"\ud83d\udc42",ear_of_rice:"\ud83c\udf3e",earth_africa:"\ud83c\udf0d",earth_americas:"\ud83c\udf0e",earth_asia:"\ud83c\udf0f",egg:"\ud83e\udd5a",eggplant:"\ud83c\udf46",eight_pointed_black_star:"\u2734\ufe0f",eight_spoked_asterisk:"\u2733\ufe0f",electric_plug:"\ud83d\udd0c",elephant:"\ud83d\udc18",email:"\u2709\ufe0f",end:"\ud83d\udd1a",envelope_with_arrow:"\ud83d\udce9",euro:"\ud83d\udcb6",european_castle:"\ud83c\udff0",european_post_office:"\ud83c\udfe4",evergreen_tree:"\ud83c\udf32",exclamation:"\u2757\ufe0f",expressionless:"\ud83d\ude11",eye:"\ud83d\udc41",eye_speech_bubble:"\ud83d\udc41&zwj;\ud83d\udde8",eyeglasses:"\ud83d\udc53",eyes:"\ud83d\udc40",face_with_head_bandage:"\ud83e\udd15",face_with_thermometer:"\ud83e\udd12",fist_oncoming:"\ud83d\udc4a",factory:"\ud83c\udfed",fallen_leaf:"\ud83c\udf42",family_man_woman_boy:"\ud83d\udc6a",family_man_boy:"\ud83d\udc68&zwj;\ud83d\udc66",family_man_boy_boy:"\ud83d\udc68&zwj;\ud83d\udc66&zwj;\ud83d\udc66",family_man_girl:"\ud83d\udc68&zwj;\ud83d\udc67",family_man_girl_boy:"\ud83d\udc68&zwj;\ud83d\udc67&zwj;\ud83d\udc66",family_man_girl_girl:"\ud83d\udc68&zwj;\ud83d\udc67&zwj;\ud83d\udc67",family_man_man_boy:"\ud83d\udc68&zwj;\ud83d\udc68&zwj;\ud83d\udc66",family_man_man_boy_boy:"\ud83d\udc68&zwj;\ud83d\udc68&zwj;\ud83d\udc66&zwj;\ud83d\udc66",family_man_man_girl:"\ud83d\udc68&zwj;\ud83d\udc68&zwj;\ud83d\udc67",family_man_man_girl_boy:"\ud83d\udc68&zwj;\ud83d\udc68&zwj;\ud83d\udc67&zwj;\ud83d\udc66",family_man_man_girl_girl:"\ud83d\udc68&zwj;\ud83d\udc68&zwj;\ud83d\udc67&zwj;\ud83d\udc67",family_man_woman_boy_boy:"\ud83d\udc68&zwj;\ud83d\udc69&zwj;\ud83d\udc66&zwj;\ud83d\udc66",family_man_woman_girl:"\ud83d\udc68&zwj;\ud83d\udc69&zwj;\ud83d\udc67",family_man_woman_girl_boy:"\ud83d\udc68&zwj;\ud83d\udc69&zwj;\ud83d\udc67&zwj;\ud83d\udc66",family_man_woman_girl_girl:"\ud83d\udc68&zwj;\ud83d\udc69&zwj;\ud83d\udc67&zwj;\ud83d\udc67",family_woman_boy:"\ud83d\udc69&zwj;\ud83d\udc66",family_woman_boy_boy:"\ud83d\udc69&zwj;\ud83d\udc66&zwj;\ud83d\udc66",family_woman_girl:"\ud83d\udc69&zwj;\ud83d\udc67",family_woman_girl_boy:"\ud83d\udc69&zwj;\ud83d\udc67&zwj;\ud83d\udc66",family_woman_girl_girl:"\ud83d\udc69&zwj;\ud83d\udc67&zwj;\ud83d\udc67",family_woman_woman_boy:"\ud83d\udc69&zwj;\ud83d\udc69&zwj;\ud83d\udc66",family_woman_woman_boy_boy:"\ud83d\udc69&zwj;\ud83d\udc69&zwj;\ud83d\udc66&zwj;\ud83d\udc66",family_woman_woman_girl:"\ud83d\udc69&zwj;\ud83d\udc69&zwj;\ud83d\udc67",family_woman_woman_girl_boy:"\ud83d\udc69&zwj;\ud83d\udc69&zwj;\ud83d\udc67&zwj;\ud83d\udc66",family_woman_woman_girl_girl:"\ud83d\udc69&zwj;\ud83d\udc69&zwj;\ud83d\udc67&zwj;\ud83d\udc67",fast_forward:"\u23e9",fax:"\ud83d\udce0",fearful:"\ud83d\ude28",feet:"\ud83d\udc3e",female_detective:"\ud83d\udd75\ufe0f&zwj;\u2640\ufe0f",ferris_wheel:"\ud83c\udfa1",ferry:"\u26f4",field_hockey:"\ud83c\udfd1",file_cabinet:"\ud83d\uddc4",file_folder:"\ud83d\udcc1",film_projector:"\ud83d\udcfd",film_strip:"\ud83c\udf9e",fire:"\ud83d\udd25",fire_engine:"\ud83d\ude92",fireworks:"\ud83c\udf86",first_quarter_moon:"\ud83c\udf13",first_quarter_moon_with_face:"\ud83c\udf1b",fish:"\ud83d\udc1f",fish_cake:"\ud83c\udf65",fishing_pole_and_fish:"\ud83c\udfa3",fist_raised:"\u270a",fist_left:"\ud83e\udd1b",fist_right:"\ud83e\udd1c",flags:"\ud83c\udf8f",flashlight:"\ud83d\udd26",fleur_de_lis:"\u269c\ufe0f",flight_arrival:"\ud83d\udeec",flight_departure:"\ud83d\udeeb",floppy_disk:"\ud83d\udcbe",flower_playing_cards:"\ud83c\udfb4",flushed:"\ud83d\ude33",fog:"\ud83c\udf2b",foggy:"\ud83c\udf01",football:"\ud83c\udfc8",footprints:"\ud83d\udc63",fork_and_knife:"\ud83c\udf74",fountain:"\u26f2\ufe0f",fountain_pen:"\ud83d\udd8b",four_leaf_clover:"\ud83c\udf40",fox_face:"\ud83e\udd8a",framed_picture:"\ud83d\uddbc",free:"\ud83c\udd93",fried_egg:"\ud83c\udf73",fried_shrimp:"\ud83c\udf64",fries:"\ud83c\udf5f",frog:"\ud83d\udc38",frowning:"\ud83d\ude26",frowning_face:"\u2639\ufe0f",frowning_man:"\ud83d\ude4d&zwj;\u2642\ufe0f",frowning_woman:"\ud83d\ude4d",middle_finger:"\ud83d\udd95",fuelpump:"\u26fd\ufe0f",full_moon:"\ud83c\udf15",full_moon_with_face:"\ud83c\udf1d",funeral_urn:"\u26b1\ufe0f",game_die:"\ud83c\udfb2",gear:"\u2699\ufe0f",gem:"\ud83d\udc8e",gemini:"\u264a\ufe0f",ghost:"\ud83d\udc7b",gift:"\ud83c\udf81",gift_heart:"\ud83d\udc9d",girl:"\ud83d\udc67",globe_with_meridians:"\ud83c\udf10",goal_net:"\ud83e\udd45",goat:"\ud83d\udc10",golf:"\u26f3\ufe0f",golfing_man:"\ud83c\udfcc\ufe0f",golfing_woman:"\ud83c\udfcc\ufe0f&zwj;\u2640\ufe0f",gorilla:"\ud83e\udd8d",grapes:"\ud83c\udf47",green_apple:"\ud83c\udf4f",green_book:"\ud83d\udcd7",green_heart:"\ud83d\udc9a",green_salad:"\ud83e\udd57",grey_exclamation:"\u2755",grey_question:"\u2754",grimacing:"\ud83d\ude2c",grin:"\ud83d\ude01",grinning:"\ud83d\ude00",guardsman:"\ud83d\udc82",guardswoman:"\ud83d\udc82&zwj;\u2640\ufe0f",guitar:"\ud83c\udfb8",gun:"\ud83d\udd2b",haircut_woman:"\ud83d\udc87",haircut_man:"\ud83d\udc87&zwj;\u2642\ufe0f",hamburger:"\ud83c\udf54",hammer:"\ud83d\udd28",hammer_and_pick:"\u2692",hammer_and_wrench:"\ud83d\udee0",hamster:"\ud83d\udc39",hand:"\u270b",handbag:"\ud83d\udc5c",handshake:"\ud83e\udd1d",hankey:"\ud83d\udca9",hatched_chick:"\ud83d\udc25",hatching_chick:"\ud83d\udc23",headphones:"\ud83c\udfa7",hear_no_evil:"\ud83d\ude49",heart:"\u2764\ufe0f",heart_decoration:"\ud83d\udc9f",heart_eyes:"\ud83d\ude0d",heart_eyes_cat:"\ud83d\ude3b",heartbeat:"\ud83d\udc93",heartpulse:"\ud83d\udc97",hearts:"\u2665\ufe0f",heavy_check_mark:"\u2714\ufe0f",heavy_division_sign:"\u2797",heavy_dollar_sign:"\ud83d\udcb2",heavy_heart_exclamation:"\u2763\ufe0f",heavy_minus_sign:"\u2796",heavy_multiplication_x:"\u2716\ufe0f",heavy_plus_sign:"\u2795",helicopter:"\ud83d\ude81",herb:"\ud83c\udf3f",hibiscus:"\ud83c\udf3a",high_brightness:"\ud83d\udd06",high_heel:"\ud83d\udc60",hocho:"\ud83d\udd2a",hole:"\ud83d\udd73",honey_pot:"\ud83c\udf6f",horse:"\ud83d\udc34",horse_racing:"\ud83c\udfc7",hospital:"\ud83c\udfe5",hot_pepper:"\ud83c\udf36",hotdog:"\ud83c\udf2d",hotel:"\ud83c\udfe8",hotsprings:"\u2668\ufe0f",hourglass:"\u231b\ufe0f",hourglass_flowing_sand:"\u23f3",house:"\ud83c\udfe0",house_with_garden:"\ud83c\udfe1",houses:"\ud83c\udfd8",hugs:"\ud83e\udd17",hushed:"\ud83d\ude2f",ice_cream:"\ud83c\udf68",ice_hockey:"\ud83c\udfd2",ice_skate:"\u26f8",icecream:"\ud83c\udf66",id:"\ud83c\udd94",ideograph_advantage:"\ud83c\ude50",imp:"\ud83d\udc7f",inbox_tray:"\ud83d\udce5",incoming_envelope:"\ud83d\udce8",tipping_hand_woman:"\ud83d\udc81",information_source:"\u2139\ufe0f",innocent:"\ud83d\ude07",interrobang:"\u2049\ufe0f",iphone:"\ud83d\udcf1",izakaya_lantern:"\ud83c\udfee",jack_o_lantern:"\ud83c\udf83",japan:"\ud83d\uddfe",japanese_castle:"\ud83c\udfef",japanese_goblin:"\ud83d\udc7a",japanese_ogre:"\ud83d\udc79",jeans:"\ud83d\udc56",joy:"\ud83d\ude02",joy_cat:"\ud83d\ude39",joystick:"\ud83d\udd79",kaaba:"\ud83d\udd4b",key:"\ud83d\udd11",keyboard:"\u2328\ufe0f",keycap_ten:"\ud83d\udd1f",kick_scooter:"\ud83d\udef4",kimono:"\ud83d\udc58",kiss:"\ud83d\udc8b",kissing:"\ud83d\ude17",kissing_cat:"\ud83d\ude3d",kissing_closed_eyes:"\ud83d\ude1a",kissing_heart:"\ud83d\ude18",kissing_smiling_eyes:"\ud83d\ude19",kiwi_fruit:"\ud83e\udd5d",koala:"\ud83d\udc28",koko:"\ud83c\ude01",label:"\ud83c\udff7",large_blue_circle:"\ud83d\udd35",large_blue_diamond:"\ud83d\udd37",large_orange_diamond:"\ud83d\udd36",last_quarter_moon:"\ud83c\udf17",last_quarter_moon_with_face:"\ud83c\udf1c",latin_cross:"\u271d\ufe0f",laughing:"\ud83d\ude06",leaves:"\ud83c\udf43",ledger:"\ud83d\udcd2",left_luggage:"\ud83d\udec5",left_right_arrow:"\u2194\ufe0f",leftwards_arrow_with_hook:"\u21a9\ufe0f",lemon:"\ud83c\udf4b",leo:"\u264c\ufe0f",leopard:"\ud83d\udc06",level_slider:"\ud83c\udf9a",libra:"\u264e\ufe0f",light_rail:"\ud83d\ude88",link:"\ud83d\udd17",lion:"\ud83e\udd81",lips:"\ud83d\udc44",lipstick:"\ud83d\udc84",lizard:"\ud83e\udd8e",lock:"\ud83d\udd12",lock_with_ink_pen:"\ud83d\udd0f",lollipop:"\ud83c\udf6d",loop:"\u27bf",loud_sound:"\ud83d\udd0a",loudspeaker:"\ud83d\udce2",love_hotel:"\ud83c\udfe9",love_letter:"\ud83d\udc8c",low_brightness:"\ud83d\udd05",lying_face:"\ud83e\udd25",m:"\u24c2\ufe0f",mag:"\ud83d\udd0d",mag_right:"\ud83d\udd0e",mahjong:"\ud83c\udc04\ufe0f",mailbox:"\ud83d\udceb",mailbox_closed:"\ud83d\udcea",mailbox_with_mail:"\ud83d\udcec",mailbox_with_no_mail:"\ud83d\udced",man:"\ud83d\udc68",man_artist:"\ud83d\udc68&zwj;\ud83c\udfa8",man_astronaut:"\ud83d\udc68&zwj;\ud83d\ude80",man_cartwheeling:"\ud83e\udd38&zwj;\u2642\ufe0f",man_cook:"\ud83d\udc68&zwj;\ud83c\udf73",man_dancing:"\ud83d\udd7a",man_facepalming:"\ud83e\udd26&zwj;\u2642\ufe0f",man_factory_worker:"\ud83d\udc68&zwj;\ud83c\udfed",man_farmer:"\ud83d\udc68&zwj;\ud83c\udf3e",man_firefighter:"\ud83d\udc68&zwj;\ud83d\ude92",man_health_worker:"\ud83d\udc68&zwj;\u2695\ufe0f",man_in_tuxedo:"\ud83e\udd35",man_judge:"\ud83d\udc68&zwj;\u2696\ufe0f",man_juggling:"\ud83e\udd39&zwj;\u2642\ufe0f",man_mechanic:"\ud83d\udc68&zwj;\ud83d\udd27",man_office_worker:"\ud83d\udc68&zwj;\ud83d\udcbc",man_pilot:"\ud83d\udc68&zwj;\u2708\ufe0f",man_playing_handball:"\ud83e\udd3e&zwj;\u2642\ufe0f",man_playing_water_polo:"\ud83e\udd3d&zwj;\u2642\ufe0f",man_scientist:"\ud83d\udc68&zwj;\ud83d\udd2c",man_shrugging:"\ud83e\udd37&zwj;\u2642\ufe0f",man_singer:"\ud83d\udc68&zwj;\ud83c\udfa4",man_student:"\ud83d\udc68&zwj;\ud83c\udf93",man_teacher:"\ud83d\udc68&zwj;\ud83c\udfeb",man_technologist:"\ud83d\udc68&zwj;\ud83d\udcbb",man_with_gua_pi_mao:"\ud83d\udc72",man_with_turban:"\ud83d\udc73",tangerine:"\ud83c\udf4a",mans_shoe:"\ud83d\udc5e",mantelpiece_clock:"\ud83d\udd70",maple_leaf:"\ud83c\udf41",martial_arts_uniform:"\ud83e\udd4b",mask:"\ud83d\ude37",massage_woman:"\ud83d\udc86",massage_man:"\ud83d\udc86&zwj;\u2642\ufe0f",meat_on_bone:"\ud83c\udf56",medal_military:"\ud83c\udf96",medal_sports:"\ud83c\udfc5",mega:"\ud83d\udce3",melon:"\ud83c\udf48",memo:"\ud83d\udcdd",men_wrestling:"\ud83e\udd3c&zwj;\u2642\ufe0f",menorah:"\ud83d\udd4e",mens:"\ud83d\udeb9",metal:"\ud83e\udd18",metro:"\ud83d\ude87",microphone:"\ud83c\udfa4",microscope:"\ud83d\udd2c",milk_glass:"\ud83e\udd5b",milky_way:"\ud83c\udf0c",minibus:"\ud83d\ude90",minidisc:"\ud83d\udcbd",mobile_phone_off:"\ud83d\udcf4",money_mouth_face:"\ud83e\udd11",money_with_wings:"\ud83d\udcb8",moneybag:"\ud83d\udcb0",monkey:"\ud83d\udc12",monkey_face:"\ud83d\udc35",monorail:"\ud83d\ude9d",moon:"\ud83c\udf14",mortar_board:"\ud83c\udf93",mosque:"\ud83d\udd4c",motor_boat:"\ud83d\udee5",motor_scooter:"\ud83d\udef5",motorcycle:"\ud83c\udfcd",motorway:"\ud83d\udee3",mount_fuji:"\ud83d\uddfb",mountain:"\u26f0",mountain_biking_man:"\ud83d\udeb5",mountain_biking_woman:"\ud83d\udeb5&zwj;\u2640\ufe0f",mountain_cableway:"\ud83d\udea0",mountain_railway:"\ud83d\ude9e",mountain_snow:"\ud83c\udfd4",mouse:"\ud83d\udc2d",mouse2:"\ud83d\udc01",movie_camera:"\ud83c\udfa5",moyai:"\ud83d\uddff",mrs_claus:"\ud83e\udd36",muscle:"\ud83d\udcaa",mushroom:"\ud83c\udf44",musical_keyboard:"\ud83c\udfb9",musical_note:"\ud83c\udfb5",musical_score:"\ud83c\udfbc",mute:"\ud83d\udd07",nail_care:"\ud83d\udc85",name_badge:"\ud83d\udcdb",national_park:"\ud83c\udfde",nauseated_face:"\ud83e\udd22",necktie:"\ud83d\udc54",negative_squared_cross_mark:"\u274e",nerd_face:"\ud83e\udd13",neutral_face:"\ud83d\ude10",new:"\ud83c\udd95",new_moon:"\ud83c\udf11",new_moon_with_face:"\ud83c\udf1a",newspaper:"\ud83d\udcf0",newspaper_roll:"\ud83d\uddde",next_track_button:"\u23ed",ng:"\ud83c\udd96",no_good_man:"\ud83d\ude45&zwj;\u2642\ufe0f",no_good_woman:"\ud83d\ude45",night_with_stars:"\ud83c\udf03",no_bell:"\ud83d\udd15",no_bicycles:"\ud83d\udeb3",no_entry:"\u26d4\ufe0f",no_entry_sign:"\ud83d\udeab",no_mobile_phones:"\ud83d\udcf5",no_mouth:"\ud83d\ude36",no_pedestrians:"\ud83d\udeb7",no_smoking:"\ud83d\udead","non-potable_water":"\ud83d\udeb1",nose:"\ud83d\udc43",notebook:"\ud83d\udcd3",notebook_with_decorative_cover:"\ud83d\udcd4",notes:"\ud83c\udfb6",nut_and_bolt:"\ud83d\udd29",o:"\u2b55\ufe0f",o2:"\ud83c\udd7e\ufe0f",ocean:"\ud83c\udf0a",octopus:"\ud83d\udc19",oden:"\ud83c\udf62",office:"\ud83c\udfe2",oil_drum:"\ud83d\udee2",ok:"\ud83c\udd97",ok_hand:"\ud83d\udc4c",ok_man:"\ud83d\ude46&zwj;\u2642\ufe0f",ok_woman:"\ud83d\ude46",old_key:"\ud83d\udddd",older_man:"\ud83d\udc74",older_woman:"\ud83d\udc75",om:"\ud83d\udd49",on:"\ud83d\udd1b",oncoming_automobile:"\ud83d\ude98",oncoming_bus:"\ud83d\ude8d",oncoming_police_car:"\ud83d\ude94",oncoming_taxi:"\ud83d\ude96",open_file_folder:"\ud83d\udcc2",open_hands:"\ud83d\udc50",open_mouth:"\ud83d\ude2e",open_umbrella:"\u2602\ufe0f",ophiuchus:"\u26ce",orange_book:"\ud83d\udcd9",orthodox_cross:"\u2626\ufe0f",outbox_tray:"\ud83d\udce4",owl:"\ud83e\udd89",ox:"\ud83d\udc02",package:"\ud83d\udce6",page_facing_up:"\ud83d\udcc4",page_with_curl:"\ud83d\udcc3",pager:"\ud83d\udcdf",paintbrush:"\ud83d\udd8c",palm_tree:"\ud83c\udf34",pancakes:"\ud83e\udd5e",panda_face:"\ud83d\udc3c",paperclip:"\ud83d\udcce",paperclips:"\ud83d\udd87",parasol_on_ground:"\u26f1",parking:"\ud83c\udd7f\ufe0f",part_alternation_mark:"\u303d\ufe0f",partly_sunny:"\u26c5\ufe0f",passenger_ship:"\ud83d\udef3",passport_control:"\ud83d\udec2",pause_button:"\u23f8",peace_symbol:"\u262e\ufe0f",peach:"\ud83c\udf51",peanuts:"\ud83e\udd5c",pear:"\ud83c\udf50",pen:"\ud83d\udd8a",pencil2:"\u270f\ufe0f",penguin:"\ud83d\udc27",pensive:"\ud83d\ude14",performing_arts:"\ud83c\udfad",persevere:"\ud83d\ude23",person_fencing:"\ud83e\udd3a",pouting_woman:"\ud83d\ude4e",phone:"\u260e\ufe0f",pick:"\u26cf",pig:"\ud83d\udc37",pig2:"\ud83d\udc16",pig_nose:"\ud83d\udc3d",pill:"\ud83d\udc8a",pineapple:"\ud83c\udf4d",ping_pong:"\ud83c\udfd3",pisces:"\u2653\ufe0f",pizza:"\ud83c\udf55",place_of_worship:"\ud83d\uded0",plate_with_cutlery:"\ud83c\udf7d",play_or_pause_button:"\u23ef",point_down:"\ud83d\udc47",point_left:"\ud83d\udc48",point_right:"\ud83d\udc49",point_up:"\u261d\ufe0f",point_up_2:"\ud83d\udc46",police_car:"\ud83d\ude93",policewoman:"\ud83d\udc6e&zwj;\u2640\ufe0f",poodle:"\ud83d\udc29",popcorn:"\ud83c\udf7f",post_office:"\ud83c\udfe3",postal_horn:"\ud83d\udcef",postbox:"\ud83d\udcee",potable_water:"\ud83d\udeb0",potato:"\ud83e\udd54",pouch:"\ud83d\udc5d",poultry_leg:"\ud83c\udf57",pound:"\ud83d\udcb7",rage:"\ud83d\ude21",pouting_cat:"\ud83d\ude3e",pouting_man:"\ud83d\ude4e&zwj;\u2642\ufe0f",pray:"\ud83d\ude4f",prayer_beads:"\ud83d\udcff",pregnant_woman:"\ud83e\udd30",previous_track_button:"\u23ee",prince:"\ud83e\udd34",princess:"\ud83d\udc78",printer:"\ud83d\udda8",purple_heart:"\ud83d\udc9c",purse:"\ud83d\udc5b",pushpin:"\ud83d\udccc",put_litter_in_its_place:"\ud83d\udeae",question:"\u2753",rabbit:"\ud83d\udc30",rabbit2:"\ud83d\udc07",racehorse:"\ud83d\udc0e",racing_car:"\ud83c\udfce",radio:"\ud83d\udcfb",radio_button:"\ud83d\udd18",radioactive:"\u2622\ufe0f",railway_car:"\ud83d\ude83",railway_track:"\ud83d\udee4",rainbow:"\ud83c\udf08",rainbow_flag:"\ud83c\udff3\ufe0f&zwj;\ud83c\udf08",raised_back_of_hand:"\ud83e\udd1a",raised_hand_with_fingers_splayed:"\ud83d\udd90",raised_hands:"\ud83d\ude4c",raising_hand_woman:"\ud83d\ude4b",raising_hand_man:"\ud83d\ude4b&zwj;\u2642\ufe0f",ram:"\ud83d\udc0f",ramen:"\ud83c\udf5c",rat:"\ud83d\udc00",record_button:"\u23fa",recycle:"\u267b\ufe0f",red_circle:"\ud83d\udd34",registered:"\xae\ufe0f",relaxed:"\u263a\ufe0f",relieved:"\ud83d\ude0c",reminder_ribbon:"\ud83c\udf97",repeat:"\ud83d\udd01",repeat_one:"\ud83d\udd02",rescue_worker_helmet:"\u26d1",restroom:"\ud83d\udebb",revolving_hearts:"\ud83d\udc9e",rewind:"\u23ea",rhinoceros:"\ud83e\udd8f",ribbon:"\ud83c\udf80",rice:"\ud83c\udf5a",rice_ball:"\ud83c\udf59",rice_cracker:"\ud83c\udf58",rice_scene:"\ud83c\udf91",right_anger_bubble:"\ud83d\uddef",ring:"\ud83d\udc8d",robot:"\ud83e\udd16",rocket:"\ud83d\ude80",rofl:"\ud83e\udd23",roll_eyes:"\ud83d\ude44",roller_coaster:"\ud83c\udfa2",rooster:"\ud83d\udc13",rose:"\ud83c\udf39",rosette:"\ud83c\udff5",rotating_light:"\ud83d\udea8",round_pushpin:"\ud83d\udccd",rowing_man:"\ud83d\udea3",rowing_woman:"\ud83d\udea3&zwj;\u2640\ufe0f",rugby_football:"\ud83c\udfc9",running_man:"\ud83c\udfc3",running_shirt_with_sash:"\ud83c\udfbd",running_woman:"\ud83c\udfc3&zwj;\u2640\ufe0f",sa:"\ud83c\ude02\ufe0f",sagittarius:"\u2650\ufe0f",sake:"\ud83c\udf76",sandal:"\ud83d\udc61",santa:"\ud83c\udf85",satellite:"\ud83d\udce1",saxophone:"\ud83c\udfb7",school:"\ud83c\udfeb",school_satchel:"\ud83c\udf92",scissors:"\u2702\ufe0f",scorpion:"\ud83e\udd82",scorpius:"\u264f\ufe0f",scream:"\ud83d\ude31",scream_cat:"\ud83d\ude40",scroll:"\ud83d\udcdc",seat:"\ud83d\udcba",secret:"\u3299\ufe0f",see_no_evil:"\ud83d\ude48",seedling:"\ud83c\udf31",selfie:"\ud83e\udd33",shallow_pan_of_food:"\ud83e\udd58",shamrock:"\u2618\ufe0f",shark:"\ud83e\udd88",shaved_ice:"\ud83c\udf67",sheep:"\ud83d\udc11",shell:"\ud83d\udc1a",shield:"\ud83d\udee1",shinto_shrine:"\u26e9",ship:"\ud83d\udea2",shirt:"\ud83d\udc55",shopping:"\ud83d\udecd",shopping_cart:"\ud83d\uded2",shower:"\ud83d\udebf",shrimp:"\ud83e\udd90",signal_strength:"\ud83d\udcf6",six_pointed_star:"\ud83d\udd2f",ski:"\ud83c\udfbf",skier:"\u26f7",skull:"\ud83d\udc80",skull_and_crossbones:"\u2620\ufe0f",sleeping:"\ud83d\ude34",sleeping_bed:"\ud83d\udecc",sleepy:"\ud83d\ude2a",slightly_frowning_face:"\ud83d\ude41",slightly_smiling_face:"\ud83d\ude42",slot_machine:"\ud83c\udfb0",small_airplane:"\ud83d\udee9",small_blue_diamond:"\ud83d\udd39",small_orange_diamond:"\ud83d\udd38",small_red_triangle:"\ud83d\udd3a",small_red_triangle_down:"\ud83d\udd3b",smile:"\ud83d\ude04",smile_cat:"\ud83d\ude38",smiley:"\ud83d\ude03",smiley_cat:"\ud83d\ude3a",smiling_imp:"\ud83d\ude08",smirk:"\ud83d\ude0f",smirk_cat:"\ud83d\ude3c",smoking:"\ud83d\udeac",snail:"\ud83d\udc0c",snake:"\ud83d\udc0d",sneezing_face:"\ud83e\udd27",snowboarder:"\ud83c\udfc2",snowflake:"\u2744\ufe0f",snowman:"\u26c4\ufe0f",snowman_with_snow:"\u2603\ufe0f",sob:"\ud83d\ude2d",soccer:"\u26bd\ufe0f",soon:"\ud83d\udd1c",sos:"\ud83c\udd98",sound:"\ud83d\udd09",space_invader:"\ud83d\udc7e",spades:"\u2660\ufe0f",spaghetti:"\ud83c\udf5d",sparkle:"\u2747\ufe0f",sparkler:"\ud83c\udf87",sparkles:"\u2728",sparkling_heart:"\ud83d\udc96",speak_no_evil:"\ud83d\ude4a",speaker:"\ud83d\udd08",speaking_head:"\ud83d\udde3",speech_balloon:"\ud83d\udcac",speedboat:"\ud83d\udea4",spider:"\ud83d\udd77",spider_web:"\ud83d\udd78",spiral_calendar:"\ud83d\uddd3",spiral_notepad:"\ud83d\uddd2",spoon:"\ud83e\udd44",squid:"\ud83e\udd91",stadium:"\ud83c\udfdf",star:"\u2b50\ufe0f",star2:"\ud83c\udf1f",star_and_crescent:"\u262a\ufe0f",star_of_david:"\u2721\ufe0f",stars:"\ud83c\udf20",station:"\ud83d\ude89",statue_of_liberty:"\ud83d\uddfd",steam_locomotive:"\ud83d\ude82",stew:"\ud83c\udf72",stop_button:"\u23f9",stop_sign:"\ud83d\uded1",stopwatch:"\u23f1",straight_ruler:"\ud83d\udccf",strawberry:"\ud83c\udf53",stuck_out_tongue:"\ud83d\ude1b",stuck_out_tongue_closed_eyes:"\ud83d\ude1d",stuck_out_tongue_winking_eye:"\ud83d\ude1c",studio_microphone:"\ud83c\udf99",stuffed_flatbread:"\ud83e\udd59",sun_behind_large_cloud:"\ud83c\udf25",sun_behind_rain_cloud:"\ud83c\udf26",sun_behind_small_cloud:"\ud83c\udf24",sun_with_face:"\ud83c\udf1e",sunflower:"\ud83c\udf3b",sunglasses:"\ud83d\ude0e",sunny:"\u2600\ufe0f",sunrise:"\ud83c\udf05",sunrise_over_mountains:"\ud83c\udf04",surfing_man:"\ud83c\udfc4",surfing_woman:"\ud83c\udfc4&zwj;\u2640\ufe0f",sushi:"\ud83c\udf63",suspension_railway:"\ud83d\ude9f",sweat:"\ud83d\ude13",sweat_drops:"\ud83d\udca6",sweat_smile:"\ud83d\ude05",sweet_potato:"\ud83c\udf60",swimming_man:"\ud83c\udfca",swimming_woman:"\ud83c\udfca&zwj;\u2640\ufe0f",symbols:"\ud83d\udd23",synagogue:"\ud83d\udd4d",syringe:"\ud83d\udc89",taco:"\ud83c\udf2e",tada:"\ud83c\udf89",tanabata_tree:"\ud83c\udf8b",taurus:"\u2649\ufe0f",taxi:"\ud83d\ude95",tea:"\ud83c\udf75",telephone_receiver:"\ud83d\udcde",telescope:"\ud83d\udd2d",tennis:"\ud83c\udfbe",tent:"\u26fa\ufe0f",thermometer:"\ud83c\udf21",thinking:"\ud83e\udd14",thought_balloon:"\ud83d\udcad",ticket:"\ud83c\udfab",tickets:"\ud83c\udf9f",tiger:"\ud83d\udc2f",tiger2:"\ud83d\udc05",timer_clock:"\u23f2",tipping_hand_man:"\ud83d\udc81&zwj;\u2642\ufe0f",tired_face:"\ud83d\ude2b",tm:"\u2122\ufe0f",toilet:"\ud83d\udebd",tokyo_tower:"\ud83d\uddfc",tomato:"\ud83c\udf45",tongue:"\ud83d\udc45",top:"\ud83d\udd1d",tophat:"\ud83c\udfa9",tornado:"\ud83c\udf2a",trackball:"\ud83d\uddb2",tractor:"\ud83d\ude9c",traffic_light:"\ud83d\udea5",train:"\ud83d\ude8b",train2:"\ud83d\ude86",tram:"\ud83d\ude8a",triangular_flag_on_post:"\ud83d\udea9",triangular_ruler:"\ud83d\udcd0",trident:"\ud83d\udd31",triumph:"\ud83d\ude24",trolleybus:"\ud83d\ude8e",trophy:"\ud83c\udfc6",tropical_drink:"\ud83c\udf79",tropical_fish:"\ud83d\udc20",truck:"\ud83d\ude9a",trumpet:"\ud83c\udfba",tulip:"\ud83c\udf37",tumbler_glass:"\ud83e\udd43",turkey:"\ud83e\udd83",turtle:"\ud83d\udc22",tv:"\ud83d\udcfa",twisted_rightwards_arrows:"\ud83d\udd00",two_hearts:"\ud83d\udc95",two_men_holding_hands:"\ud83d\udc6c",two_women_holding_hands:"\ud83d\udc6d",u5272:"\ud83c\ude39",u5408:"\ud83c\ude34",u55b6:"\ud83c\ude3a",u6307:"\ud83c\ude2f\ufe0f",u6708:"\ud83c\ude37\ufe0f",u6709:"\ud83c\ude36",u6e80:"\ud83c\ude35",u7121:"\ud83c\ude1a\ufe0f",u7533:"\ud83c\ude38",u7981:"\ud83c\ude32",u7a7a:"\ud83c\ude33",umbrella:"\u2614\ufe0f",unamused:"\ud83d\ude12",underage:"\ud83d\udd1e",unicorn:"\ud83e\udd84",unlock:"\ud83d\udd13",up:"\ud83c\udd99",upside_down_face:"\ud83d\ude43",v:"\u270c\ufe0f",vertical_traffic_light:"\ud83d\udea6",vhs:"\ud83d\udcfc",vibration_mode:"\ud83d\udcf3",video_camera:"\ud83d\udcf9",video_game:"\ud83c\udfae",violin:"\ud83c\udfbb",virgo:"\u264d\ufe0f",volcano:"\ud83c\udf0b",volleyball:"\ud83c\udfd0",vs:"\ud83c\udd9a",vulcan_salute:"\ud83d\udd96",walking_man:"\ud83d\udeb6",walking_woman:"\ud83d\udeb6&zwj;\u2640\ufe0f",waning_crescent_moon:"\ud83c\udf18",waning_gibbous_moon:"\ud83c\udf16",warning:"\u26a0\ufe0f",wastebasket:"\ud83d\uddd1",watch:"\u231a\ufe0f",water_buffalo:"\ud83d\udc03",watermelon:"\ud83c\udf49",wave:"\ud83d\udc4b",wavy_dash:"\u3030\ufe0f",waxing_crescent_moon:"\ud83c\udf12",wc:"\ud83d\udebe",weary:"\ud83d\ude29",wedding:"\ud83d\udc92",weight_lifting_man:"\ud83c\udfcb\ufe0f",weight_lifting_woman:"\ud83c\udfcb\ufe0f&zwj;\u2640\ufe0f",whale:"\ud83d\udc33",whale2:"\ud83d\udc0b",wheel_of_dharma:"\u2638\ufe0f",wheelchair:"\u267f\ufe0f",white_check_mark:"\u2705",white_circle:"\u26aa\ufe0f",white_flag:"\ud83c\udff3\ufe0f",white_flower:"\ud83d\udcae",white_large_square:"\u2b1c\ufe0f",white_medium_small_square:"\u25fd\ufe0f",white_medium_square:"\u25fb\ufe0f",white_small_square:"\u25ab\ufe0f",white_square_button:"\ud83d\udd33",wilted_flower:"\ud83e\udd40",wind_chime:"\ud83c\udf90",wind_face:"\ud83c\udf2c",wine_glass:"\ud83c\udf77",wink:"\ud83d\ude09",wolf:"\ud83d\udc3a",woman:"\ud83d\udc69",woman_artist:"\ud83d\udc69&zwj;\ud83c\udfa8",woman_astronaut:"\ud83d\udc69&zwj;\ud83d\ude80",woman_cartwheeling:"\ud83e\udd38&zwj;\u2640\ufe0f",woman_cook:"\ud83d\udc69&zwj;\ud83c\udf73",woman_facepalming:"\ud83e\udd26&zwj;\u2640\ufe0f",woman_factory_worker:"\ud83d\udc69&zwj;\ud83c\udfed",woman_farmer:"\ud83d\udc69&zwj;\ud83c\udf3e",woman_firefighter:"\ud83d\udc69&zwj;\ud83d\ude92",woman_health_worker:"\ud83d\udc69&zwj;\u2695\ufe0f",woman_judge:"\ud83d\udc69&zwj;\u2696\ufe0f",woman_juggling:"\ud83e\udd39&zwj;\u2640\ufe0f",woman_mechanic:"\ud83d\udc69&zwj;\ud83d\udd27",woman_office_worker:"\ud83d\udc69&zwj;\ud83d\udcbc",woman_pilot:"\ud83d\udc69&zwj;\u2708\ufe0f",woman_playing_handball:"\ud83e\udd3e&zwj;\u2640\ufe0f",woman_playing_water_polo:"\ud83e\udd3d&zwj;\u2640\ufe0f",woman_scientist:"\ud83d\udc69&zwj;\ud83d\udd2c",woman_shrugging:"\ud83e\udd37&zwj;\u2640\ufe0f",woman_singer:"\ud83d\udc69&zwj;\ud83c\udfa4",woman_student:"\ud83d\udc69&zwj;\ud83c\udf93",woman_teacher:"\ud83d\udc69&zwj;\ud83c\udfeb",woman_technologist:"\ud83d\udc69&zwj;\ud83d\udcbb",woman_with_turban:"\ud83d\udc73&zwj;\u2640\ufe0f",womans_clothes:"\ud83d\udc5a",womans_hat:"\ud83d\udc52",women_wrestling:"\ud83e\udd3c&zwj;\u2640\ufe0f",womens:"\ud83d\udeba",world_map:"\ud83d\uddfa",worried:"\ud83d\ude1f",wrench:"\ud83d\udd27",writing_hand:"\u270d\ufe0f",x:"\u274c",yellow_heart:"\ud83d\udc9b",yen:"\ud83d\udcb4",yin_yang:"\u262f\ufe0f",yum:"\ud83d\ude0b",zap:"\u26a1\ufe0f",zipper_mouth_face:"\ud83e\udd10",zzz:"\ud83d\udca4",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},o.Converter=function(e){"use strict";var t={},n=[],r=[],i={},a=u,h={parsed:{},raw:"",format:""};function f(e,t){if(t=t||null,o.helper.isString(e)){if(t=e=o.helper.stdExtName(e),o.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new o.Converter)),o.helper.isArray(e)||(e=[e]);var i=d(e,t);if(!i.valid)throw Error(i.error);for(var a=0;a<e.length;++a)switch(e[a].type){case"lang":n.push(e[a]);break;case"output":r.push(e[a]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(o.extensions[e],e);if(o.helper.isUndefined(s[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=s[e]}"function"==typeof e&&(e=e()),o.helper.isArray(e)||(e=[e]);var i=d(e,t);if(!i.valid)throw Error(i.error);for(var a=0;a<e.length;++a){switch(e[a].type){case"lang":n.push(e[a]);break;case"output":r.push(e[a])}if(e[a].hasOwnProperty("listeners"))for(var l in e[a].listeners)e[a].listeners.hasOwnProperty(l)&&v(l,e[a].listeners[l])}}function v(e,t){if(!o.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");i.hasOwnProperty(e)||(i[e]=[]),i[e].push(t)}!function(){for(var n in e=e||{},l)l.hasOwnProperty(n)&&(t[n]=l[n]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.extensions&&o.helper.forEach(t.extensions,f)}(),this._dispatch=function(e,t,n,r){if(i.hasOwnProperty(e))for(var o=0;o<i[e].length;++o){var a=i[e][o](e,t,this,n,r);a&&void 0!==a&&(t=a)}return t},this.listen=function(e,t){return v(e,t),this},this.makeHtml=function(e){if(!e)return e;var i={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:n,outputModifiers:r,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/\xa8/g,"\xa8T")).replace(/\$/g,"\xa8D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g,"&nbsp;"),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}(e)),e="\n\n"+e+"\n\n",e=(e=o.subParser("detab")(e,t,i)).replace(/^[ \t]+$/gm,""),o.helper.forEach(n,(function(n){e=o.subParser("runExtension")(n,e,t,i)})),e=o.subParser("metadata")(e,t,i),e=o.subParser("hashPreCodeTags")(e,t,i),e=o.subParser("githubCodeBlocks")(e,t,i),e=o.subParser("hashHTMLBlocks")(e,t,i),e=o.subParser("hashCodeTags")(e,t,i),e=o.subParser("stripLinkDefinitions")(e,t,i),e=o.subParser("blockGamut")(e,t,i),e=o.subParser("unhashHTMLSpans")(e,t,i),e=(e=(e=o.subParser("unescapeSpecialChars")(e,t,i)).replace(/\xa8D/g,"$$")).replace(/\xa8T/g,"\xa8"),e=o.subParser("completeHTMLDocument")(e,t,i),o.helper.forEach(r,(function(n){e=o.subParser("runExtension")(n,e,t,i)})),h=i.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">\xa8NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var n=t.createElement("div");n.innerHTML=e;var r={preList:function(e){for(var t=e.querySelectorAll("pre"),n=[],r=0;r<t.length;++r)if(1===t[r].childElementCount&&"code"===t[r].firstChild.tagName.toLowerCase()){var i=t[r].firstChild.innerHTML.trim(),a=t[r].firstChild.getAttribute("data-language")||"";if(""===a)for(var s=t[r].firstChild.className.split(" "),l=0;l<s.length;++l){var u=s[l].match(/^language-(.+)$/);if(null!==u){a=u[1];break}}i=o.helper.unescapeHTMLEntities(i),n.push(i),t[r].outerHTML='<precode language="'+a+'" precodenum="'+r.toString()+'"></precode>'}else n.push(t[r].innerHTML),t[r].innerHTML="",t[r].setAttribute("prenum",r.toString());return n}(n)};!function e(t){for(var n=0;n<t.childNodes.length;++n){var r=t.childNodes[n];3===r.nodeType?/\S/.test(r.nodeValue)||/^[ ]+$/.test(r.nodeValue)?(r.nodeValue=r.nodeValue.split("\n").join(" "),r.nodeValue=r.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(r),--n):1===r.nodeType&&e(r)}}(n);for(var i=n.childNodes,a="",s=0;s<i.length;s++)a+=o.subParser("makeMarkdown.node")(i[s],r);return a},this.setOption=function(e,n){t[e]=n},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){f(e,t=t||null)},this.useExtension=function(e){f(e)},this.setFlavor=function(e){if(!c.hasOwnProperty(e))throw Error(e+" flavor was not found");var n=c[e];for(var r in a=e,n)n.hasOwnProperty(r)&&(t[r]=n[r])},this.getFlavor=function(){return a},this.removeExtension=function(e){o.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var i=e[t],a=0;a<n.length;++a)n[a]===i&&n.splice(a,1);for(var s=0;s<r.length;++s)r[s]===i&&r.splice(s,1)}},this.getAllExtensions=function(){return{language:n,output:r}},this.getMetadata=function(e){return e?h.raw:h.parsed},this.getMetadataFormat=function(){return h.format},this._setMetadataPair=function(e,t){h.parsed[e]=t},this._setMetadataFormat=function(e){h.format=e},this._setMetadataRaw=function(e){h.raw=e}},o.subParser("anchors",(function(e,t,n){"use strict";var r=function(e,r,i,a,s,l,u){if(o.helper.isUndefined(u)&&(u=""),i=i.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(!a){if(i||(i=r.toLowerCase().replace(/ ?\n/g," ")),a="#"+i,o.helper.isUndefined(n.gUrls[i]))return e;a=n.gUrls[i],o.helper.isUndefined(n.gTitles[i])||(u=n.gTitles[i])}var c='<a href="'+(a=a.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"';return""!==u&&null!==u&&(c+=' title="'+(u=(u=u.replace(/"/g,"&quot;")).replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(a)&&(c+=' rel="noopener noreferrer" target="\xa8E95Eblank"'),c+">"+r+"</a>"};return e=(e=(e=(e=(e=n.converter._dispatch("anchors.before",e,t,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[([^\[\]]+)]()()()()()/g,r),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,n,r,i,a){if("\\"===r)return n+i;if(!o.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,a),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="\xa8E95Eblank"'),n+'<a href="'+s+'"'+l+">"+i+"</a>"}))),n.converter._dispatch("anchors.after",e,t,n)}));var v=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,g=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,y=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,k=function(e){"use strict";return function(t,n,r,i,a,s,l){var u=r=r.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),c="",d="",h=n||"",f=l||"";return/^www\./i.test(r)&&(r=r.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(c=s),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="\xa8E95Eblank"'),h+'<a href="'+r+'"'+d+">"+u+"</a>"+c+f}},b=function(e,t){"use strict";return function(n,r,i){var a="mailto:";return r=r||"",i=o.subParser("unescapeSpecialChars")(i,e,t),e.encodeEmails?(a=o.helper.encodeEmailAddress(a+i),i=o.helper.encodeEmailAddress(i)):a+=i,r+'<a href="'+a+'">'+i+"</a>"}};o.subParser("autoLinks",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(g,k(t))).replace(y,b(t,n)),n.converter._dispatch("autoLinks.after",e,t,n)})),o.subParser("simplifiedAutoLinks",(function(e,t,n){"use strict";return t.simplifiedAutoLink?(e=(e=(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n)).replace(t.excludeTrailingPunctuationFromURLs?p:v,k(t))).replace(m,b(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e})),o.subParser("blockGamut",(function(e,t,n){"use strict";return e=n.converter._dispatch("blockGamut.before",e,t,n),e=o.subParser("blockQuotes")(e,t,n),e=o.subParser("headers")(e,t,n),e=o.subParser("horizontalRule")(e,t,n),e=o.subParser("lists")(e,t,n),e=o.subParser("codeBlocks")(e,t,n),e=o.subParser("tables")(e,t,n),e=o.subParser("hashHTMLBlocks")(e,t,n),e=o.subParser("paragraphs")(e,t,n),n.converter._dispatch("blockGamut.after",e,t,n)})),o.subParser("blockQuotes",(function(e,t,n){"use strict";e=n.converter._dispatch("blockQuotes.before",e,t,n);var r=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(r=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=(e+="\n\n").replace(r,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/\xa80/g,"")).replace(/^[ \t]+$/gm,""),e=o.subParser("githubCodeBlocks")(e,t,n),e=(e=(e=o.subParser("blockGamut")(e,t,n)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){return t.replace(/^ /gm,"\xa80").replace(/\xa80/g,"")})),o.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,n)})),n.converter._dispatch("blockQuotes.after",e,t,n)})),o.subParser("codeBlocks",(function(e,t,n){"use strict";return e=n.converter._dispatch("codeBlocks.before",e,t,n),e=(e=(e+="\xa80").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=\xa80))/g,(function(e,r,i){var a=r,s=i,l="\n";return a=o.subParser("outdent")(a,t,n),a=o.subParser("encodeCode")(a,t,n),a=(a=(a=o.subParser("detab")(a,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),a="<pre><code>"+a+l+"</code></pre>",o.subParser("hashBlock")(a,t,n)+s}))).replace(/\xa80/,""),n.converter._dispatch("codeBlocks.after",e,t,n)})),o.subParser("codeSpans",(function(e,t,n){"use strict";return void 0===(e=n.converter._dispatch("codeSpans.before",e,t,n))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,r,i,a){var s=a;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=r+"<code>"+(s=o.subParser("encodeCode")(s,t,n))+"</code>",o.subParser("hashHTMLSpans")(s,t,n)})),n.converter._dispatch("codeSpans.after",e,t,n)})),o.subParser("completeHTMLDocument",(function(e,t,n){"use strict";if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r="html",i="<!DOCTYPE HTML>\n",o="",a='<meta charset="utf-8">\n',s="",l="";for(var u in void 0!==n.metadata.parsed.doctype&&(i="<!DOCTYPE "+n.metadata.parsed.doctype+">\n","html"!==(r=n.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==r||(a='<meta charset="utf-8">')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":o="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":a="html"===r||"html5"===r?'<meta charset="'+n.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+n.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+n.metadata.parsed[u]+'"',l+='<meta name="'+u+'" content="'+n.metadata.parsed[u]+'">\n';break;default:l+='<meta name="'+u+'" content="'+n.metadata.parsed[u]+'">\n'}return e=i+"<html"+s+">\n<head>\n"+o+a+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",n.converter._dispatch("completeHTMLDocument.after",e,t,n)})),o.subParser("detab",(function(e,t,n){"use strict";return e=(e=(e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"\xa8A\xa8B")).replace(/\xa8B(.+?)\xa8A/g,(function(e,t){for(var n=t,r=4-n.length%4,i=0;i<r;i++)n+=" ";return n}))).replace(/\xa8A/g," ")).replace(/\xa8B/g,""),n.converter._dispatch("detab.after",e,t,n)})),o.subParser("ellipsis",(function(e,t,n){"use strict";return t.ellipsis?(e=(e=n.converter._dispatch("ellipsis.before",e,t,n)).replace(/\.\.\./g,"\u2026"),e=n.converter._dispatch("ellipsis.after",e,t,n)):e})),o.subParser("emoji",(function(e,t,n){"use strict";return t.emoji?(e=(e=n.converter._dispatch("emoji.before",e,t,n)).replace(/:([\S]+?):/g,(function(e,t){return o.helper.emojis.hasOwnProperty(t)?o.helper.emojis[t]:e})),n.converter._dispatch("emoji.after",e,t,n)):e})),o.subParser("encodeAmpsAndAngles",(function(e,t,n){"use strict";return e=(e=(e=(e=(e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;")).replace(/<(?![a-z\/?$!])/gi,"&lt;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;"),n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)})),o.subParser("encodeBackslashEscapes",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("encodeBackslashEscapes.before",e,t,n)).replace(/\\(\\)/g,o.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,o.helper.escapeCharactersCallback),n.converter._dispatch("encodeBackslashEscapes.after",e,t,n)})),o.subParser("encodeCode",(function(e,t,n){"use strict";return e=(e=n.converter._dispatch("encodeCode.before",e,t,n)).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),n.converter._dispatch("encodeCode.after",e,t,n)})),o.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,n)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,n)})),o.subParser("githubCodeBlocks",(function(e,t,n){"use strict";return t.ghCodeBlocks?(e=n.converter._dispatch("githubCodeBlocks.before",e,t,n),e=(e=(e+="\xa80").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,r,i,a){var s=t.omitExtraWLInCodeBlocks?"":"\n";return a=o.subParser("encodeCode")(a,t,n),a="<pre><code"+(i?' class="'+i+" language-"+i+'"':"")+">"+(a=(a=(a=o.subParser("detab")(a,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",a=o.subParser("hashBlock")(a,t,n),"\n\n\xa8G"+(n.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"}))).replace(/\xa80/,""),n.converter._dispatch("githubCodeBlocks.after",e,t,n)):e})),o.subParser("hashBlock",(function(e,t,n){"use strict";return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n\xa8K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",n.converter._dispatch("hashBlock.after",e,t,n)})),o.subParser("hashCodeTags",(function(e,t,n){"use strict";return e=n.converter._dispatch("hashCodeTags.before",e,t,n),e=o.helper.replaceRecursiveRegExp(e,(function(e,r,i,a){var s=i+o.subParser("encodeCode")(r,t,n)+a;return"\xa8C"+(n.gHtmlSpans.push(s)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),n.converter._dispatch("hashCodeTags.after",e,t,n)})),o.subParser("hashElement",(function(e,t,n){"use strict";return function(e,t){var r=t;return r=(r=(r=r.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n\xa8K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n"}})),o.subParser("hashHTMLBlocks",(function(e,t,n){"use strict";e=n.converter._dispatch("hashHTMLBlocks.before",e,t,n);var r=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],i=function(e,t,r,i){var o=e;return-1!==r.search(/\bmarkdown\b/)&&(o=r+n.converter.makeHtml(t)+i),"\n\n\xa8K"+(n.gHtmlBlocks.push(o)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"&lt;"+t+"&gt;"})));for(var a=0;a<r.length;++a)for(var s,l=new RegExp("^ {0,3}(<"+r[a]+"\\b[^>]*>)","im"),u="<"+r[a]+"\\b[^>]*>",c="</"+r[a]+">";-1!==(s=o.helper.regexIndexOf(e,l));){var d=o.helper.splitAtIndex(e,s),h=o.helper.replaceRecursiveRegExp(d[1],i,u,c,"im");if(h===d[1])break;e=d[0].concat(h)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,n)),e=(e=o.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n\xa8K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,n)),n.converter._dispatch("hashHTMLBlocks.after",e,t,n)})),o.subParser("hashHTMLSpans",(function(e,t,n){"use strict";function r(e){return"\xa8C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,(function(e){return r(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<[^>]+?>/gi,(function(e){return r(e)})),n.converter._dispatch("hashHTMLSpans.after",e,t,n)})),o.subParser("unhashHTMLSpans",(function(e,t,n){"use strict";e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;r<n.gHtmlSpans.length;++r){for(var i=n.gHtmlSpans[r],o=0;/\xa8C(\d+)C/.test(i);){var a=RegExp.$1;if(i=i.replace("\xa8C"+a+"C",n.gHtmlSpans[a]),10===o){console.error("maximum nesting of 10 spans reached!!!");break}++o}e=e.replace("\xa8C"+r+"C",i)}return n.converter._dispatch("unhashHTMLSpans.after",e,t,n)})),o.subParser("hashPreCodeTags",(function(e,t,n){"use strict";return e=n.converter._dispatch("hashPreCodeTags.before",e,t,n),e=o.helper.replaceRecursiveRegExp(e,(function(e,r,i,a){var s=i+o.subParser("encodeCode")(r,t,n)+a;return"\n\n\xa8G"+(n.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),n.converter._dispatch("hashPreCodeTags.after",e,t,n)})),o.subParser("headers",(function(e,t,n){"use strict";e=n.converter._dispatch("headers.before",e,t,n);var r=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;function a(e){var r,i;if(t.customizedHeaderId){var a=e.match(/\{([^{]+?)}\s*$/);a&&a[1]&&(e=a[1])}return r=e,i=o.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(r=i+r),r=t.ghCompatibleHeaderId?r.replace(/ /g,"-").replace(/&amp;/g,"").replace(/\xa8T/g,"").replace(/\xa8D/g,"").replace(/[&+$,\/:;=?@"#{}|^\xa8~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?r.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/\xa8T/g,"\xa8").replace(/\xa8D/g,"$").replace(/["']/g,"-").toLowerCase():r.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(r=i+r),n.hashLinkCounts[r]?r=r+"-"+n.hashLinkCounts[r]++:n.hashLinkCounts[r]=1,r}return e=(e=(e=e.replace(t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,(function(e,i){var s=o.subParser("spanGamut")(i,t,n),l=t.noHeaderId?"":' id="'+a(i)+'"',u="<h"+r+l+">"+s+"</h"+r+">";return o.subParser("hashBlock")(u,t,n)}))).replace(i,(function(e,i){var s=o.subParser("spanGamut")(i,t,n),l=t.noHeaderId?"":' id="'+a(i)+'"',u=r+1,c="<h"+u+l+">"+s+"</h"+u+">";return o.subParser("hashBlock")(c,t,n)}))).replace(t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,(function(e,i,s){var l=s;t.customizedHeaderId&&(l=s.replace(/\s?\{([^{]+?)}\s*$/,""));var u=o.subParser("spanGamut")(l,t,n),c=t.noHeaderId?"":' id="'+a(s)+'"',d=r-1+i.length,h="<h"+d+c+">"+u+"</h"+d+">";return o.subParser("hashBlock")(h,t,n)})),n.converter._dispatch("headers.after",e,t,n)})),o.subParser("horizontalRule",(function(e,t,n){"use strict";e=n.converter._dispatch("horizontalRule.before",e,t,n);var r=o.subParser("hashBlock")("<hr />",t,n);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,r)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,r)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,r),n.converter._dispatch("horizontalRule.after",e,t,n)})),o.subParser("images",(function(e,t,n){"use strict";function r(e,t,r,i,a,s,l,u){var c=n.gUrls,d=n.gTitles,h=n.gDimensions;if(r=r.toLowerCase(),u||(u=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(""===i||null===i){if(""!==r&&null!==r||(r=t.toLowerCase().replace(/ ?\n/g," ")),i="#"+r,o.helper.isUndefined(c[r]))return e;i=c[r],o.helper.isUndefined(d[r])||(u=d[r]),o.helper.isUndefined(h[r])||(a=h[r].width,s=h[r].height)}t=t.replace(/"/g,"&quot;").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var f='<img src="'+(i=i.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'" alt="'+t+'"';return u&&o.helper.isString(u)&&(f+=' title="'+(u=u.replace(/"/g,"&quot;").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback))+'"'),a&&s&&(f+=' width="'+(a="*"===a?"auto":a)+'"',f+=' height="'+(s="*"===s?"auto":s)+'"'),f+" />"}return e=(e=(e=(e=(e=(e=n.converter._dispatch("images.before",e,t,n)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,r)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,n,i,o,a,s,l){return r(e,t,n,i=i.replace(/\s/g,""),o,a,0,l)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,r)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,r)).replace(/!\[([^\[\]]+)]()()()()()/g,r),n.converter._dispatch("images.after",e,t,n)})),o.subParser("italicsAndBold",(function(e,t,n){"use strict";function r(e,t,n){return t+e+n}return e=n.converter._dispatch("italicsAndBold.before",e,t,n),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return r(t,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return r(t,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return r(t,"<em>","</em>")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<em>","</em>")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e})),n.converter._dispatch("italicsAndBold.after",e,t,n)})),o.subParser("lists",(function(e,t,n){"use strict";function r(e,r){n.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(\xa80| {0,3}([*+-]|\d+[.])[ \t]+))/gm,a=/\n[ \t]*\n(?!\xa80)/.test(e+="\xa80");return t.disableForced4SpacesIndentedSublists&&(i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(\xa80|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(i,(function(e,r,i,s,l,u,c){c=c&&""!==c.trim();var d=o.subParser("outdent")(l,t,n),h="";return u&&t.tasklists&&(h=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return c&&(e+=" checked"),e+">"}))),d=d.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"\xa8A"+e})),r||d.search(/\n{2,}/)>-1?(d=o.subParser("githubCodeBlocks")(d,t,n),d=o.subParser("blockGamut")(d,t,n)):(d=(d=o.subParser("lists")(d,t,n)).replace(/\n$/,""),d=(d=o.subParser("hashHTMLBlocks")(d,t,n)).replace(/\n\n+/g,"\n\n"),d=a?o.subParser("paragraphs")(d,t,n):o.subParser("spanGamut")(d,t,n)),"<li"+h+">"+(d=d.replace("\xa8A",""))+"</li>\n"}))).replace(/\xa80/g,""),n.gListLevel--,r&&(e=e.replace(/\s+$/,"")),e}function i(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function a(e,n,o){var a=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===n?a:s,u="";if(-1!==e.search(l))!function t(c){var d=c.search(l),h=i(e,n);-1!==d?(u+="\n\n<"+n+h+">\n"+r(c.slice(0,d),!!o)+"</"+n+">\n",l="ul"==(n="ul"===n?"ol":"ul")?a:s,t(c.slice(d))):u+="\n\n<"+n+h+">\n"+r(c,!!o)+"</"+n+">\n"}(e);else{var c=i(e,n);u="\n\n<"+n+c+">\n"+r(e,!!o)+"</"+n+">\n"}return u}return e=n.converter._dispatch("lists.before",e,t,n),e+="\xa80",e=(e=n.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(\xa80|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){return a(t,n.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(\xa80|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,r){return a(n,r.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/\xa80/,""),n.converter._dispatch("lists.after",e,t,n)})),o.subParser("metadata",(function(e,t,n){"use strict";if(!t.metadata)return e;function r(e){n.metadata.raw=e,(e=(e=e.replace(/&/g,"&amp;").replace(/"/g,"&quot;")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,r){return n.metadata.parsed[t]=r,""}))}return e=(e=(e=(e=n.converter._dispatch("metadata.before",e,t,n)).replace(/^\s*\xab\xab\xab+(\S*?)\n([\s\S]+?)\n\xbb\xbb\xbb+\n/,(function(e,t,n){return r(n),"\xa8M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,i){return t&&(n.metadata.format=t),r(i),"\xa8M"}))).replace(/\xa8M/g,""),n.converter._dispatch("metadata.after",e,t,n)})),o.subParser("outdent",(function(e,t,n){"use strict";return e=(e=(e=n.converter._dispatch("outdent.before",e,t,n)).replace(/^(\t|[ ]{1,4})/gm,"\xa80")).replace(/\xa80/g,""),n.converter._dispatch("outdent.after",e,t,n)})),o.subParser("paragraphs",(function(e,t,n){"use strict";for(var r=(e=(e=(e=n.converter._dispatch("paragraphs.before",e,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),i=[],a=r.length,s=0;s<a;s++){var l=r[s];l.search(/\xa8(K|G)(\d+)\1/g)>=0?i.push(l):l.search(/\S/)>=0&&(l=(l=o.subParser("spanGamut")(l,t,n)).replace(/^([ \t]*)/g,"<p>"),i.push(l+="</p>"))}for(a=i.length,s=0;s<a;s++){for(var u="",c=i[s],d=!1;/\xa8(K|G)(\d+)\1/.test(c);){var h=RegExp.$1,f=RegExp.$2;u=(u="K"===h?n.gHtmlBlocks[f]:d?o.subParser("encodeCode")(n.ghCodeBlocks[f].text,t,n):n.ghCodeBlocks[f].codeblock).replace(/\$/g,"$$$$"),c=c.replace(/(\n\n)?\xa8(K|G)\d+\2(\n\n)?/,u),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(c)&&(d=!0)}i[s]=c}return e=(e=(e=i.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),n.converter._dispatch("paragraphs.after",e,t,n)})),o.subParser("runExtension",(function(e,t,n,r){"use strict";if(e.filter)t=e.filter(t,r.converter,n);else if(e.regex){var i=e.regex;i instanceof RegExp||(i=new RegExp(i,"g")),t=t.replace(i,e.replace)}return t})),o.subParser("spanGamut",(function(e,t,n){"use strict";return e=n.converter._dispatch("spanGamut.before",e,t,n),e=o.subParser("codeSpans")(e,t,n),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,n),e=o.subParser("encodeBackslashEscapes")(e,t,n),e=o.subParser("images")(e,t,n),e=o.subParser("anchors")(e,t,n),e=o.subParser("autoLinks")(e,t,n),e=o.subParser("simplifiedAutoLinks")(e,t,n),e=o.subParser("emoji")(e,t,n),e=o.subParser("underline")(e,t,n),e=o.subParser("italicsAndBold")(e,t,n),e=o.subParser("strikethrough")(e,t,n),e=o.subParser("ellipsis")(e,t,n),e=o.subParser("hashHTMLSpans")(e,t,n),e=o.subParser("encodeAmpsAndAngles")(e,t,n),t.simpleLineBreaks?/\n\n\xa8K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),n.converter._dispatch("spanGamut.after",e,t,n)})),o.subParser("strikethrough",(function(e,t,n){"use strict";return t.strikethrough&&(e=(e=n.converter._dispatch("strikethrough.before",e,t,n)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,r){return function(e){return t.simplifiedAutoLink&&(e=o.subParser("simplifiedAutoLinks")(e,t,n)),"<del>"+e+"</del>"}(r)})),e=n.converter._dispatch("strikethrough.after",e,t,n)),e})),o.subParser("stripLinkDefinitions",(function(e,t,n){"use strict";var r=function(r,i,a,s,l,u,c){return i=i.toLowerCase(),e.toLowerCase().split(i).length-1<2?r:(n.gUrls[i]=a.match(/^data:.+?\/.+?;base64,/)?a.replace(/\s/g,""):o.subParser("encodeAmpsAndAngles")(a,t,n),u?u+c:(c&&(n.gTitles[i]=c.replace(/"|'/g,"&quot;")),t.parseImgDimensions&&s&&l&&(n.gDimensions[i]={width:s,height:l}),""))};return e=(e=(e=(e+="\xa80").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=\xa80)|(?=\n\[))/gm,r)).replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=\xa80))/gm,r)).replace(/\xa80/,"")})),o.subParser("tables",(function(e,t,n){"use strict";if(!t.tables)return e;function r(e,r){return"<td"+r+">"+o.subParser("spanGamut")(e,t,n)+"</td>\n"}function i(e){var i,a=e.split("\n");for(i=0;i<a.length;++i)/^ {0,3}\|/.test(a[i])&&(a[i]=a[i].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(a[i])&&(a[i]=a[i].replace(/\|[ \t]*$/,"")),a[i]=o.subParser("codeSpans")(a[i],t,n);var s,l,u,c,d=a[0].split("|").map((function(e){return e.trim()})),h=a[1].split("|").map((function(e){return e.trim()})),f=[],v=[],p=[],g=[];for(a.shift(),a.shift(),i=0;i<a.length;++i)""!==a[i].trim()&&f.push(a[i].split("|").map((function(e){return e.trim()})));if(d.length<h.length)return e;for(i=0;i<h.length;++i)p.push(/^:[ \t]*--*$/.test(s=h[i])?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':"");for(i=0;i<d.length;++i)o.helper.isUndefined(p[i])&&(p[i]=""),v.push((u=p[i],c=void 0,c="",l=(l=d[i]).trim(),(t.tablesHeaderId||t.tableHeaderId)&&(c=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),"<th"+c+u+">"+(l=o.subParser("spanGamut")(l,t,n))+"</th>\n"));for(i=0;i<f.length;++i){for(var m=[],y=0;y<v.length;++y)o.helper.isUndefined(f[i][y]),m.push(r(f[i][y],p[y]));g.push(m)}return function(e,t){for(var n="<table>\n<thead>\n<tr>\n",r=e.length,i=0;i<r;++i)n+=e[i];for(n+="</tr>\n</thead>\n<tbody>\n",i=0;i<t.length;++i){n+="<tr>\n";for(var o=0;o<r;++o)n+=t[i][o];n+="</tr>\n"}return n+"</tbody>\n</table>\n"}(v,g)}return e=(e=(e=(e=n.converter._dispatch("tables.before",e,t,n)).replace(/\\(\|)/g,o.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|\xa80)/gm,i)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|\xa80)/gm,i),n.converter._dispatch("tables.after",e,t,n)})),o.subParser("underline",(function(e,t,n){"use strict";return t.underline?(e=n.converter._dispatch("underline.before",e,t,n),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return"<u>"+t+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=n.converter._dispatch("underline.after",e,t,n)):e})),o.subParser("unescapeSpecialChars",(function(e,t,n){"use strict";return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/\xa8E(\d+)E/g,(function(e,t){var n=parseInt(t);return String.fromCharCode(n)})),n.converter._dispatch("unescapeSpecialChars.after",e,t,n)})),o.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var n="";if(e.hasChildNodes())for(var r=e.childNodes,i=r.length,a=0;a<i;++a){var s=o.subParser("makeMarkdown.node")(r[a],t);""!==s&&(n+=s)}return"> "+(n=n.trim()).split("\n").join("\n> ")})),o.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var n=e.getAttribute("language"),r=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[r]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="*";for(var r=e.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],t);n+="*"}return n})),o.subParser("makeMarkdown.header",(function(e,t,n){"use strict";var r=new Array(n+1).join("#"),i="";if(e.hasChildNodes()){i=r+" ";for(var a=e.childNodes,s=a.length,l=0;l<s;++l)i+=o.subParser("makeMarkdown.node")(a[l],t)}return i})),o.subParser("makeMarkdown.hr",(function(){"use strict";return"---"})),o.subParser("makeMarkdown.image",(function(e){"use strict";var t="";return e.hasAttribute("src")&&(t+="!["+e.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),o.subParser("makeMarkdown.links",(function(e,t){"use strict";var n="";if(e.hasChildNodes()&&e.hasAttribute("href")){var r=e.childNodes,i=r.length;n="[";for(var a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],t);n+="](",n+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(n+=' "'+e.getAttribute("title")+'"'),n+=")"}return n})),o.subParser("makeMarkdown.list",(function(e,t,n){"use strict";var r="";if(!e.hasChildNodes())return"";for(var i=e.childNodes,a=i.length,s=e.getAttribute("start")||1,l=0;l<a;++l)void 0!==i[l].tagName&&"li"===i[l].tagName.toLowerCase()&&(r+=("ol"===n?s.toString()+". ":"- ")+o.subParser("makeMarkdown.listItem")(i[l],t),++s);return(r+="\n\x3c!-- --\x3e\n").trim()})),o.subParser("makeMarkdown.listItem",(function(e,t){"use strict";for(var n="",r=e.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],t);return/\n$/.test(n)?n=n.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):n+="\n",n})),o.subParser("makeMarkdown.node",(function(e,t,n){"use strict";n=n||!1;var r="";if(3===e.nodeType)return o.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":n||(r=o.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":n||(r=o.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":n||(r=o.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":n||(r=o.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":n||(r=o.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":n||(r=o.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":n||(r=o.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":n||(r=o.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":n||(r=o.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":n||(r=o.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":n||(r=o.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":n||(r=o.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":n||(r=o.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":n||(r=o.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":r=o.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":r=o.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":r=o.subParser("makeMarkdown.strong")(e,t);break;case"del":r=o.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":r=o.subParser("makeMarkdown.links")(e,t);break;case"img":r=o.subParser("makeMarkdown.image")(e,t);break;default:r=e.outerHTML+"\n\n"}return r})),o.subParser("makeMarkdown.paragraph",(function(e,t){"use strict";var n="";if(e.hasChildNodes())for(var r=e.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],t);return n.trim()})),o.subParser("makeMarkdown.pre",(function(e,t){"use strict";var n=e.getAttribute("prenum");return"<pre>"+t.preList[n]+"</pre>"})),o.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="~~";for(var r=e.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],t);n+="~~"}return n})),o.subParser("makeMarkdown.strong",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="**";for(var r=e.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],t);n+="**"}return n})),o.subParser("makeMarkdown.table",(function(e,t){"use strict";var n,r,i="",a=[[],[]],s=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(n=0;n<s.length;++n){var u=o.subParser("makeMarkdown.tableCell")(s[n],t),c="---";if(s[n].hasAttribute("style"))switch(s[n].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":c=":---";break;case"text-align:right;":c="---:";break;case"text-align:center;":c=":---:"}a[0][n]=u.trim(),a[1][n]=c}for(n=0;n<l.length;++n){var d=a.push([])-1,h=l[n].getElementsByTagName("td");for(r=0;r<s.length;++r){var f=" ";void 0!==h[r]&&(f=o.subParser("makeMarkdown.tableCell")(h[r],t)),a[d].push(f)}}var v=3;for(n=0;n<a.length;++n)for(r=0;r<a[n].length;++r){var p=a[n][r].length;p>v&&(v=p)}for(n=0;n<a.length;++n){for(r=0;r<a[n].length;++r)a[n][r]=1===n?":"===a[n][r].slice(-1)?o.helper.padEnd(a[n][r].slice(-1),v-1,"-")+":":o.helper.padEnd(a[n][r],v,"-"):o.helper.padEnd(a[n][r],v);i+="| "+a[n].join(" | ")+" |\n"}return i.trim()})),o.subParser("makeMarkdown.tableCell",(function(e,t){"use strict";var n="";if(!e.hasChildNodes())return"";for(var r=e.childNodes,i=r.length,a=0;a<i;++a)n+=o.subParser("makeMarkdown.node")(r[a],t,!0);return n.trim()})),o.subParser("makeMarkdown.txt",(function(e){"use strict";var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/\xa8NBSP;/g," "),(t=(t=(t=(t=(t=(t=(t=(t=o.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")})),void 0===(r=(function(){"use strict";return o}).call(t,n,t,e))||(e.exports=r)}).call(this)},USe2:function(e){e.exports=JSON.parse('[{"language":"plaintext","label":"Plaintext"},{"language":"1c","label":"1C"},{"language":"abnf","label":"ABNF"},{"language":"armasm","label":"ARM assembler"},{"language":"avrasm","label":"AVR assembler"},{"language":"accesslog","label":"Access logs"},{"language":"actionscript","label":"ActionScript"},{"language":"ada","label":"Ada"},{"language":"angelscript","label":"AngelScript"},{"language":"apache","label":"Apache"},{"language":"applescript","label":"AppleScript"},{"language":"arcade","label":"Arcade"},{"language":"arduino","label":"Arduino (C++ w/Arduino libs)"},{"language":"asciidoc","label":"AsciiDoc"},{"language":"aspectj","label":"AspectJ"},{"language":"autohotkey","label":"AutoHotkey"},{"language":"autoit","label":"AutoIt"},{"language":"awk","label":"Awk"},{"language":"bnf","label":"BNF"},{"language":"bash","label":"Bash"},{"language":"basic","label":"Basic"},{"language":"brainfuck","label":"Brainfuck"},{"language":"c","label":"C"},{"language":"csharp","label":"C#"},{"language":"cpp","label":"C++"},{"language":"cal","label":"C/AL"},{"language":"cmake","label":"CMake"},{"language":"csp","label":"CSP"},{"language":"css","label":"CSS"},{"language":"cos","label":"Cache Object Script"},{"language":"capnproto","label":"Cap\u2019n Proto"},{"language":"clojure","label":"Clojure"},{"language":"coffeescript","label":"CoffeeScript"},{"language":"coq","label":"Coq"},{"language":"crmsh","label":"Crmsh"},{"language":"crystal","label":"Crystal"},{"language":"d","label":"D"},{"language":"dns","label":"DNS Zone file"},{"language":"dos","label":"DOS"},{"language":"dts","label":"DTS (Device Tree)"},{"language":"dart","label":"Dart"},{"language":"delphi","label":"Delphi"},{"language":"diff","label":"Diff"},{"language":"django","label":"Django"},{"language":"dockerfile","label":"Dockerfile"},{"language":"dust","label":"Dust"},{"language":"ebnf","label":"EBNF"},{"language":"elixir","label":"Elixir"},{"language":"elm","label":"Elm"},{"language":"erlang","label":"Erlang"},{"language":"excel","label":"Excel"},{"language":"fsharp","label":"F#"},{"language":"fix","label":"FIX"},{"language":"fortran","label":"Fortran"},{"language":"gcode","label":"G-Code"},{"language":"gauss","label":"GAUSS"},{"language":"gams","label":"Gams"},{"language":"gherkin","label":"Gherkin"},{"language":"go","label":"Go"},{"language":"golo","label":"Golo"},{"language":"gradle","label":"Gradle"},{"language":"groovy","label":"Groovy"},{"language":"xml","label":"HTML, XML"},{"language":"http","label":"HTTP"},{"language":"haml","label":"Haml"},{"language":"handlebars","label":"Handlebars"},{"language":"haskell","label":"Haskell"},{"language":"haxe","label":"Haxe"},{"language":"hy","label":"Hy"},{"language":"irpf90","label":"IRPF90"},{"language":"inform7","label":"Inform7"},{"language":"ini","label":"Ini, TOML"},{"language":"json","label":"JSON"},{"language":"java","label":"Java"},{"language":"javascript","label":"JavaScript"},{"language":"julia","label":"Julia"},{"language":"kotlin","label":"Kotlin"},{"language":"ldif","label":"LDIF"},{"language":"tex","label":"LaTeX"},{"language":"lasso","label":"Lasso"},{"language":"leaf","label":"Leaf"},{"language":"less","label":"Less"},{"language":"lisp","label":"Lisp"},{"language":"livecodeserver","label":"LiveCode Server"},{"language":"livescript","label":"LiveScript"},{"language":"lua","label":"Lua"},{"language":"makefile","label":"Makefile"},{"language":"markdown","label":"Markdown"},{"language":"mathematica","label":"Mathematica"},{"language":"matlab","label":"Matlab"},{"language":"maxima","label":"Maxima"},{"language":"mel","label":"Maya Embedded Language"},{"language":"mercury","label":"Mercury"},{"language":"mizar","label":"Mizar"},{"language":"mojolicious","label":"Mojolicious"},{"language":"monkey","label":"Monkey"},{"language":"moonscript","label":"Moonscript"},{"language":"n1ql","label":"N1QL"},{"language":"nsis","label":"NSIS"},{"language":"nginx","label":"Nginx"},{"language":"nim","label":"Nim"},{"language":"nix","label":"Nix"},{"language":"ocaml","label":"OCaml"},{"language":"objectivec","label":"Objective C"},{"language":"glsl","label":"OpenGL Shading Language"},{"language":"openscad","label":"OpenSCAD"},{"language":"ruleslanguage","label":"Oracle Rules Language"},{"language":"oxygene","label":"Oxygene"},{"language":"pf","label":"PF"},{"language":"php","label":"PHP"},{"language":"parser3","label":"Parser3"},{"language":"perl","label":"Perl"},{"language":"pony","label":"Pony"},{"language":"pgsql","label":"PostgreSQL & PL/pgSQL"},{"language":"powershell","label":"PowerShell"},{"language":"processing","label":"Processing"},{"language":"prolog","label":"Prolog"},{"language":"properties","label":"Properties"},{"language":"protobuf","label":"Protocol Buffers"},{"language":"puppet","label":"Puppet"},{"language":"python","label":"Python"},{"language":"python-repl","label":"Python REPL"},{"language":"profile","label":"Python profiler results"},{"language":"k","label":"Q"},{"language":"qml","label":"QML"},{"language":"r","label":"R"},{"language":"reasonml","label":"ReasonML"},{"language":"rib","label":"RenderMan RIB"},{"language":"rsl","label":"RenderMan RSL"},{"language":"graph","label":"Roboconf"},{"language":"ruby","label":"Ruby"},{"language":"rust","label":"Rust"},{"language":"SAS","label":"SAS"},{"language":"scss","label":"SCSS"},{"language":"sml","label":"SML"},{"language":"sql","label":"SQL"},{"language":"p21","label":"STEP Part 21"},{"language":"scala","label":"Scala"},{"language":"scheme","label":"Scheme"},{"language":"scilab","label":"Scilab"},{"language":"shell","label":"Shell"},{"language":"smali","label":"Smali"},{"language":"smalltalk","label":"Smalltalk"},{"language":"stan","label":"Stan"},{"language":"stata","label":"Stata"},{"language":"stylus","label":"Stylus"},{"language":"subunit","label":"SubUnit"},{"language":"swift","label":"Swift"},{"language":"tp","label":"TP"},{"language":"tcl","label":"Tcl"},{"language":"tap","label":"Test Anything Protocol"},{"language":"thrift","label":"Thrift"},{"language":"twig","label":"Twig"},{"language":"typescript","label":"TypeScript"},{"language":"vbnet","label":"VB.Net"},{"language":"vbscript","label":"VBScript"},{"language":"vhdl","label":"VHDL"},{"language":"vala","label":"Vala"},{"language":"verilog","label":"Verilog"},{"language":"vim","label":"Vim Script"},{"language":"axapta","label":"X++"},{"language":"xl","label":"XL"},{"language":"xquery","label":"XQuery"},{"language":"yml","label":"YAML"},{"language":"zephir","label":"Zephir"},{"language":"dsconfig","label":"dsconfig"},{"language":"x86asm","label":"x86 Assembly"}]')},ek6d:function(e){e.exports=JSON.parse('{"api":"https://api.taiga.io/api/v1/","defaultLanguage":"en"}')},zbeE:function(e,t,n){!function(){var t;function n(e,r){var i=this instanceof n?this:t;if(i.reset(r),"string"==typeof e&&e.length>0&&i.hash(e),i!==this)return i}n.prototype.hash=function(e){var t,n,r,i,o;switch(this.len+=o=e.length,n=this.k1,r=0,this.rem){case 0:n^=o>r?65535&e.charCodeAt(r++):0;case 1:n^=o>r?(65535&e.charCodeAt(r++))<<8:0;case 2:n^=o>r?(65535&e.charCodeAt(r++))<<16:0;case 3:n^=o>r?(255&e.charCodeAt(r))<<24:0,n^=o>r?(65280&e.charCodeAt(r++))>>8:0}if(this.rem=o+this.rem&3,(o-=this.rem)>0){for(t=this.h1;t=5*(t=(t^=n=13715*(n=(n=11601*n+3432906752*(65535&n)&4294967295)<<15|n>>>17)+461832192*(65535&n)&4294967295)<<13|t>>>19)+3864292196&4294967295,!(r>=o);)n=65535&e.charCodeAt(r++)^(65535&e.charCodeAt(r++))<<8^(65535&e.charCodeAt(r++))<<16,n^=(255&(i=e.charCodeAt(r++)))<<24^(65280&i)>>8;switch(n=0,this.rem){case 3:n^=(65535&e.charCodeAt(r+2))<<16;case 2:n^=(65535&e.charCodeAt(r+1))<<8;case 1:n^=65535&e.charCodeAt(r)}this.h1=t}return this.k1=n,this},n.prototype.result=function(){var e,t;return t=this.h1,(e=this.k1)>0&&(t^=e=13715*(e=(e=11601*e+3432906752*(65535&e)&4294967295)<<15|e>>>17)+461832192*(65535&e)&4294967295),t^=this.len,t=51819*(t^=t>>>16)+2246770688*(65535&t)&4294967295,t=44597*(t^=t>>>13)+3266445312*(65535&t)&4294967295,(t^=t>>>16)>>>0},n.prototype.reset=function(e){return this.h1="number"==typeof e?e:0,this.rem=this.k1=this.len=0,this},t=new n,e.exports=n}()},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]])}();