1(function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("jquery"));else if("function"==typeof define&&define.amd)define(["jquery"],e);else{var o="object"==typeof exports?e(require("jquery")):e(t.jQuery);for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}})(self,t=>(()=>{"use strict";function e(t){var o=Ti[t];if(void 0!==o)return o.exports;var n=Ti[t]={exports:{}};return xi[t](n,n.exports,e),n.exports}function o(t){return-1===Ii().inArray(t.toLowerCase(),$i)?"'".concat(t,"'"):t}function n(){function t(t,a){s.clearRect(0,0,i,r),s.font=n+" "+o(t)+', "'+a+'"',s.fillText(e,i/2,r/2);var l=s.getImageData(0,0,i,r).data;return l.join("")}var e="mw",n="20px",i=40,r=20,a=document.createElement("canvas"),s=a.getContext("2d",{willReadFrequently:!0});return a.width=i,a.height=r,s.textAlign="center",s.fillStyle="black",s.textBaseline="middle",function(e){var o="Comic Sans MS"===e?"Courier New":"Comic Sans MS",n=t(o,o),i=t(e,o);return n!==i}}function i(t){return function(e){return t===e}}function r(t,e){return t===e}function a(t){return function(e,o){return e[t]===o[t]}}function s(){return!0}function l(){return!1}function c(t){return function(){return!t.apply(t,arguments)}}function u(t,e){return function(o){return t(o)&&e(o)}}function d(t){return t}function f(t,e){return function(){return t[e].apply(t,arguments)}}function h(){zi=0}function p(t){var e=++zi+"";return t?t+e:e}function m(t){var e=Ii()(document);return{top:t.top+e.scrollTop(),left:t.left+e.scrollLeft(),width:t.right-t.left,height:t.bottom-t.top}}function v(t){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[t[o]]=o);return e}function g(t,e){return e=e||"",e+t.split(".").map(function(t){return t.substring(0,1).toUpperCase()+t.substring(1)}).join("")}function b(t,e,o){var n;return function(){var i=this,r=arguments,a=function(){n=null,o||t.apply(i,r)},s=o&&!n;clearTimeout(n),n=setTimeout(a,e),s&&t.apply(i,r)}}function y(t){var e=/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi;return e.test(t)}function k(t){return t[0]}function w(t){return t[t.length-1]}function C(t){return t.slice(0,t.length-1)}function S(t){return t.slice(1)}function x(t,e){for(var o=0,n=t.length;o<n;o++){var i=t[o];if(e(i))return i}}function T(t,e){for(var o=0,n=t.length;o<n;o++)if(!e(t[o]))return!1;return!0}function E(t,e){if(t&&t.length&&e){if(t.indexOf)return-1!==t.indexOf(e);if(t.contains)return t.contains(e)}return!1}function P(t,e){return e=e||Oi.self,t.reduce(function(t,o){return t+e(o)},0)}function N(t){for(var e=[],o=t.length,n=-1;++n<o;)e[n]=t[n];return e}function I(t){return!t||!t.length}function $(t,e){if(!t.length)return[];var o=S(t);return o.reduce(function(t,o){var n=w(t);return e(w(n),o)?n[n.length]=o:t[t.length]=[o],t},[[k(t)]])}function R(t){for(var e=[],o=0,n=t.length;o<n;o++)t[o]&&e.push(t[o]);return e}function A(t){for(var e=[],o=0,n=t.length;o<n;o++)E(e,t[o])||e.push(t[o]);return e}function L(t,e){if(t&&t.length&&e){var o=t.indexOf(e);return-1===o?null:t[o+1]}return null}function F(t,e){if(t&&t.length&&e){var o=t.indexOf(e);return-1===o?null:t[o-1]}return null}function D(t){return t&&Ii()(t).hasClass("note-editable")}function H(t){return t&&Ii()(t).hasClass("note-control-sizing")}function j(t){return t=t.toUpperCase(),function(e){return e&&e.nodeName.toUpperCase()===t}}function z(t){return t&&3===t.nodeType}function O(t){return t&&1===t.nodeType}function B(t){return t&&/^BR|^IMG|^HR|^IFRAME|^BUTTON|^INPUT|^AUDIO|^VIDEO|^EMBED/.test(t.nodeName.toUpperCase())}function M(t){return!D(t)&&(t&&/^DIV|^P|^LI|^H[1-7]/.test(t.nodeName.toUpperCase()))}function U(t){return t&&/^H[1-7]/.test(t.nodeName.toUpperCase())}function W(t){return M(t)&&!Ki(t)}function K(t){return!(_(t)||q(t)||_i(t)||M(t)||qi(t)||Gi(t)||Vi(t))}function q(t){return t&&/^UL|^OL/.test(t.nodeName.toUpperCase())}function V(t){return t&&/^TD|^TH/.test(t.nodeName.toUpperCase())}function _(t){return V(t)||Gi(t)||D(t)}function G(t){return K(t)&&!!ot(t,M)}function Z(t){return K(t)&&!ot(t,M)}function Y(t,e){return t.nextSibling===e||t.previousSibling===e}function X(t,e){e=e||Oi.ok;var o=[];return t.previousSibling&&e(t.previousSibling)&&o.push(t.previousSibling),o.push(t),t.nextSibling&&e(t.nextSibling)&&o.push(t.nextSibling),o}function Q(t){return z(t)?t.nodeValue.length:t?t.childNodes.length:0}function J(t){do{if(null===t.firstElementChild||""===t.firstElementChild.innerHTML)break}while(t=t.firstElementChild);return tt(t)}function tt(t){var e=Q(t);return 0===e||(!z(t)&&1===e&&t.innerHTML===Xi||!(!Bi.all(t.childNodes,z)||""!==t.innerHTML))}function et(t){B(t)||Q(t)||(t.innerHTML=Xi)}function ot(t,e){for(;t;){if(e(t))return t;if(D(t))break;t=t.parentNode}return null}function nt(t,e){for(t=t.parentNode;t&&1===Q(t);){if(e(t))return t;if(D(t))break;t=t.parentNode}return null}function it(t,e){e=e||Oi.fail;var o=[];return ot(t,function(t){return D(t)||o.push(t),e(t)}),o}function rt(t,e){var o=it(t);return Bi.last(o.filter(e))}function at(t,e){for(var o=it(t),n=e;n;
1n=n.parentNode)if(o.indexOf(n)>-1)return n;return null}function st(t,e){e=e||Oi.fail;for(var o=[];t&&!e(t);)o.push(t),t=t.previousSibling;return o}function lt(t,e){e=e||Oi.fail;for(var o=[];t&&!e(t);)o.push(t),t=t.nextSibling;return o}function ct(t,e){var o=[];return e=e||Oi.ok,function n(i){t!==i&&e(i)&&o.push(i);for(var r=0,a=i.childNodes.length;r<a;r++)n(i.childNodes[r])}(t),o}function ut(t,e){var o=t.parentNode,n=Ii()("<"+e+">")[0];return o.insertBefore(n,t),n.appendChild(t),n}function dt(t,e){var o=e.nextSibling,n=e.parentNode;return o?n.insertBefore(t,o):n.appendChild(t),t}function ft(t,e,o){return Ii().each(e,function(e,n){!o&&Ki(t)&&null===t.firstChild&&q(n)&&t.appendChild(zt("br")),t.appendChild(n)}),t}function ht(t){return 0===t.offset}function pt(t){return t.offset===Q(t.node)}function mt(t){return ht(t)||pt(t)}function vt(t,e){for(;t&&t!==e;){if(0!==kt(t))return!1;t=t.parentNode}return!0}function gt(t,e){if(!e)return!1;for(;t&&t!==e;){if(kt(t)!==Q(t.parentNode)-1)return!1;t=t.parentNode}return!0}function bt(t,e){return ht(t)&&vt(t.node,e)}function yt(t,e){return pt(t)&>(t.node,e)}function kt(t){for(var e=0;t=t.previousSibling;)e+=1;return e}function wt(t){return!!(t&&t.childNodes&&t.childNodes.length)}function Ct(t,e){var o,n;if(0===t.offset){if(D(t.node))return null;o=t.node.parentNode,n=kt(t.node)}else wt(t.node)?(o=t.node.childNodes[t.offset-1],n=Q(o)):(o=t.node,n=e?0:t.offset-1);return{node:o,offset:n}}function St(t,e){var o,n;if(Q(t.node)===t.offset){if(D(t.node))return null;var i=Tt(t.node);i?(o=i,n=0):(o=t.node.parentNode,n=kt(t.node)+1)}else wt(t.node)?(o=t.node.childNodes[t.offset],n=0):(o=t.node,n=e?Q(t.node):t.offset+1);return{node:o,offset:n}}function xt(t,e){var o,n=0;if(Q(t.node)===t.offset){if(D(t.node))return null;o=t.node.parentNode,n=kt(t.node)+1,D(o)&&(o=t.node.nextSibling,n=0)}else wt(t.node)?(o=t.node.childNodes[t.offset],n=0):(o=t.node,n=e?Q(t.node):t.offset+1);return{node:o,offset:n}}function Tt(t){if(t.nextSibling&&t.parent===t.nextSibling.parent)return z(t.nextSibling)?t.nextSibling:Tt(t.nextSibling)}function Et(t,e){return t.node===e.node&&t.offset===e.offset}function Pt(t){if(z(t.node)||!wt(t.node)||tt(t.node))return!0;var e=t.node.childNodes[t.offset-1],o=t.node.childNodes[t.offset];return!((e&&!B(e)||o&&!B(o))&&!qi(o))}function Nt(t,e){for(;t;){if(e(t))return t;t=Ct(t)}return null}function It(t,e){for(;t;){if(e(t))return t;t=St(t)}return null}function $t(t){if(!z(t.node))return!1;var e=t.node.nodeValue.charAt(t.offset-1);return e&&" "!==e&&e!==Mi}function Rt(t){if(!z(t.node))return!1;var e=t.node.nodeValue.charAt(t.offset-1);return" "===e||e===Mi}function At(t,e,o,n){for(var i=t;i&&i.node&&(o(i),!Et(i,e));){var r=n&&t.node!==i.node&&e.node!==i.node;i=xt(i,r)}}function Lt(t,e){var o=it(e,Oi.eq(t));return o.map(kt).reverse()}function Ft(t,e){for(var o=t,n=0,i=e.length;n<i;n++)o=o.childNodes.length<=e[n]?o.childNodes[o.childNodes.length-1]:o.childNodes[e[n]];return o}function Dt(t,e){var o=e&&e.isSkipPaddingBlankHTML,n=e&&e.isNotSplitEdgePoint,i=e&&e.isDiscardEmptySplits;if(i&&(o=!0),mt(t)&&(z(t.node)||n)){if(ht(t))return t.node;if(pt(t))return t.node.nextSibling}if(z(t.node))return t.node.splitText(t.offset);var r=t.node.childNodes[t.offset],a=lt(r),s=dt(t.node.cloneNode(!1),t.node);return ft(s,a),o||(et(t.node),et(s)),i&&(tt(t.node)&&Bt(t.node),tt(s))?(Bt(s),t.node.nextSibling):s}function Ht(t,e,o){var n=it(e.node,Oi.eq(t));if(!n.length)return null;if(1===n.length)return Dt(e,o);if(n.length>2){var i=n.slice(0,n.length-1),r=i.find(function(t){return t.nextSibling});if(r&&0!=e.offset&&pt(e)){var a,s=r.nextSibling;1==s.nodeType?(a=s.childNodes[0],n=it(a,Oi.eq(t)),e={node:a,offset:0}):3!=s.nodeType||s.data.match(/[\n\r]/g)||(a=s,n=it(a,Oi.eq(t)),e={node:a,offset:0})}}return n.reduce(function(t,n){return t===e.node&&(t=Dt(e,o)),Dt({node:n,offset:t?kt(t):Q(n)},o)})}function jt(t,e){var o,n,i=e?M:_,r=it(t.node,i),a=Bi.last(r)||t.node;i(a)?(o=r[r.length-2],n=a):(o=a,n=o.parentNode);var s=o&&Ht(o,t,{isSkipPaddingBlankHTML:e,isNotSplitEdgePoint:e});return s||n!==t.node||(s=t.node.childNodes[t.offset]),{rightNode:s,container:n}}function zt(t){return document.createElement(t)}function Ot(t){return document.createTextNode(t)}function Bt(t,e){if(t&&t.parentNode){if(t.removeNode)return t.removeNode(e);var o=t.parentNode;if(!e){for(var n=[],i=0,r=t.childNodes.length;i<r;i++)n.push(t.childNodes[i]);for(var a=0,s=n.length;a<s;a++)o.insertBefore(n[a],t)}o.removeChild(t)}}function Mt(t,e){for(;t&&!D(t)&&e(t);){var o=t.parentNode;Bt(t),t=o}}
1function Ut(t,e){if(t.nodeName.toUpperCase()===e.toUpperCase())return t;var o=zt(e);return t.style.cssText&&(o.style.cssText=t.style.cssText),ft(o,Bi.from(t.childNodes)),dt(o,t),Bt(t),o}function Wt(t,e){var o=Qi(t[0])?t.val():t.html();return e?o.replace(/[\n\r]/g,""):o}function Kt(t,e){var o=Wt(t);if(e){var n=/<(\/?)(\b(?!!)[^>\s]*)(.*?)(\s*\/?>)/g;o=o.replace(n,function(t,e,o){o=o.toUpperCase();var n=/^DIV|^TD|^TH|^P|^LI|^H[1-7]/.test(o)&&!!e,i=/^BLOCKQUOTE|^TABLE|^TBODY|^TR|^HR|^UL|^OL/.test(o);return t+(n||i?"\n":"")}),o=o.trim()}return o}function qt(t){var e=Ii()(t),o=e.offset(),n=e.outerHeight(!0);return{left:o.left,top:o.top+n}}function Vt(t,e){Object.keys(e).forEach(function(o){t.on(o,e[o])})}function _t(t,e){Object.keys(e).forEach(function(o){t.off(o,e[o])})}function Gt(t){return t&&!z(t)&&Bi.contains(t.classList,"note-styletag")}function Zt(t){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zt(t)}function Yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xt(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Jt(n.key),n)}}function Qt(t,e,o){return e&&Xt(t.prototype,e),o&&Xt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Jt(t){var e=te(t,"string");return"symbol"==Zt(e)?e:e+""}function te(t,e){if("object"!=Zt(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ee(t){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(t)}function oe(t){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oe(t)}function ne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ie(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ae(n.key),n)}}function re(t,e,o){return e&&ie(t.prototype,e),o&&ie(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function ae(t){var e=se(t,"string");return"symbol"==oe(e)?e:e+""}function se(t,e){if("object"!=oe(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function le(t,e){var o,n,i=t.parentElement(),r=document.body.createTextRange(),a=Bi.from(i.childNodes);for(o=0;o<a.length;o++)if(!Ji.isText(a[o])){if(r.moveToElementText(a[o]),r.compareEndPoints("StartToStart",t)>=0)break;n=a[o]}if(0!==o&&Ji.isText(a[o-1])){var s=document.body.createTextRange(),l=null;s.moveToElementText(n||i),s.collapse(!n),l=n?n.nextSibling:i.firstChild;var c=t.duplicate();c.setEndPoint("StartToStart",s);for(var u=c.text.replace(/[\r\n]/g,"").length;u>l.nodeValue.length&&l.nextSibling;)u-=l.nodeValue.length,l=l.nextSibling;l.nodeValue;e&&l.nextSibling&&Ji.isText(l.nextSibling)&&u===l.nodeValue.length&&(u-=l.nodeValue.length,l=l.nextSibling),i=l,o=u}return{cont:i,offset:o}}function ce(t){var e=function t(e,o){var n,i;if(Ji.isText(e)){var r=Ji.listPrev(e,Oi.not(Ji.isText)),a=Bi.last(r).previousSibling;n=a||e.parentNode,o+=Bi.sum(Bi.tail(r),Ji.nodeLength),i=!a}else{if(n=e.childNodes[o]||e,Ji.isText(n))return t(n,0);o=0,i=!1}return{node:n,collapseToStart:i,offset:o}},o=document.body.createTextRange(),n=e(t.node,t.offset);return o.moveToElementText(n.node),o.collapse(n.collapseToStart),o.moveStart("character",n.offset),o}function ue(t){return Ii().Deferred(function(e){Ii().extend(new FileReader,{onload:function(t){var o=t.target.result;e.resolve(o)},onerror:function(t){e.reject(t)}}).readAsDataURL(t)}).promise()}function de(t){return Ii().Deferred(function(e){var o=Ii()("<img>");o.one("load",function(){o.off("error abort"),e.resolve(o)}).one("error abort",function(){o.off("load").detach(),e.reject(o)}).css({display:"none"}).appendTo(document.body).attr("src",t)}).promise()}function fe(t){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fe(t)}function he(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pe(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ve(n.key),n)}}
1function me(t,e,o){return e&&pe(t.prototype,e),o&&pe(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function ve(t){var e=ge(t,"string");return"symbol"==fe(e)?e:e+""}function ge(t,e){if("object"!=fe(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function be(t){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},be(t)}function ye(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ke(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ce(n.key),n)}}function we(t,e,o){return e&&ke(t.prototype,e),o&&ke(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ce(t){var e=Se(t,"string");return"symbol"==be(e)?e:e+""}function Se(t,e){if("object"!=be(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function xe(t){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xe(t)}function Te(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ee(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ne(n.key),n)}}function Pe(t,e,o){return e&&Ee(t.prototype,e),o&&Ee(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ne(t){var e=Ie(t,"string");return"symbol"==xe(e)?e:e+""}function Ie(t,e){if("object"!=xe(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=xe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function $e(t){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(t)}function Re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ae(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fe(n.key),n)}}function Le(t,e,o){return e&&Ae(t.prototype,e),o&&Ae(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fe(t){var e=De(t,"string");return"symbol"==$e(e)?e:e+""}function De(t,e){if("object"!=$e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=$e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function He(t){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(t)}function je(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ze(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Be(n.key),n)}}function Oe(t,e,o){return e&&ze(t.prototype,e),o&&ze(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Be(t){var e=Me(t,"string");return"symbol"==He(e)?e:e+""}function Me(t,e){if("object"!=He(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ue(t){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ue(t)}function We(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ke(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ve(n.key),n)}}
vendor: 16,384 bytes, lines 1-2
1function qe(t,e,o){return e&&Ke(t.prototype,e),o&&Ke(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ve(t){var e=_e(t,"string");return"symbol"==Ue(e)?e:e+""}function _e(t,e){if("object"!=Ue(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ge(t){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(t)}function Ze(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ye(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qe(n.key),n)}}function Xe(t,e,o){return e&&Ye(t.prototype,e),o&&Ye(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qe(t){var e=Je(t,"string");return"symbol"==Ge(e)?e:e+""}function Je(t,e){if("object"!=Ge(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function to(t){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(t)}function eo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oo(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,io(n.key),n)}}function no(t,e,o){return e&&oo(t.prototype,e),o&&oo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function io(t){var e=ro(t,"string");return"symbol"==to(e)?e:e+""}function ro(t,e){if("object"!=to(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=to(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ao(t){return ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(t)}function so(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=lo(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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 r,a=!0,s=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==o.return||o.return()}finally{if(s)throw r}}}}function lo(t,e){if(t){if("string"==typeof t)return co(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?co(t,e):void 0}}function co(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o<e;o++)n[o]=t[o];return n}function uo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fo(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,po(n.key),n)}}function ho(t,e,o){return e&&fo(t.prototype,e),o&&fo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function po(t){var e=mo(t,"string");return"symbol"==ao(e)?e:e+""}function mo(t,e){if("object"!=ao(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=ao(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function vo(t){return vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(t)}function go(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bo(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ko(n.key),n)}}function yo(t,e,o){return e&&bo(t.prototype,e),o&&bo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function ko(t){var e=wo(t,"string");return"symbol"==vo(e)?e:e+""}function wo(t,e){if("object"!=vo(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=vo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Co(t){return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(t)}function So(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xo(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Eo(n.key),n)}}function To(t,e,o){return e&&xo(t.prototype,e),o&&xo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Eo(t){var e=Po(t,"string");return"symbol"==Co(e)?e:e+""}function Po(t,e){if("object"!=Co(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function No(t){return No="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(t)}function Io(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $o(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ao(n.key),n)}}function Ro(t,e,o){return e&&$o(t.prototype,e),o&&$o(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ao(t){var e=Lo(t,"string");return"symbol"==No(e)?e:e+""}function Lo(t,e){if("object"!=No(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=No(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Fo(t){return Fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(t)}function Do(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ho(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zo(n.key),n)}}function jo(t,e,o){return e&&Ho(t.prototype,e),o&&Ho(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function zo(t){var e=Oo(t,"string");return"symbol"==Fo(e)?e:e+""}function Oo(t,e){if("object"!=Fo(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Fo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Bo(t){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(t)}function Mo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uo(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ko(n.key),n)}}function Wo(t,e,o){return e&&Uo(t.prototype,e),o&&Uo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ko(t){var e=qo(t,"string");return"symbol"==Bo(e)?e:e+""}function qo(t,e){if("object"!=Bo(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Bo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Vo(t){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vo(t)}function _o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Go(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Yo(n.key),n)}}function Zo(t,e,o){return e&&Go(t.prototype,e),o&&Go(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yo(t){var e=Xo(t,"string");return"symbol"==Vo(e)?e:e+""}function Xo(t,e){if("object"!=Vo(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Vo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Qo(t){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(t)}function Jo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tn(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,on(n.key),n)}}function en(t,e,o){return e&&tn(t.prototype,e),o&&tn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function on(t){var e=nn(t,"string");return"symbol"==Qo(e)?e:e+""}function nn(t,e){if("object"!=Qo(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Qo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function rn(t){return rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(t)}function an(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sn(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cn(n.key),n)}}function ln(t,e,o){return e&&sn(t.prototype,e),o&&sn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function cn(t){var e=un(t,"string");return"symbol"==rn(e)?e:e+""}function un(t,e){if("object"!=rn(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=rn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function dn(t){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(t)}function fn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hn(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mn(n.key),n)}}function pn(t,e,o){return e&&hn(t.prototype,e),o&&hn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function mn(t){var e=vn(t,"string");return"symbol"==dn(e)?e:e+""}function vn(t,e){if("object"!=dn(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function gn(t){return gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){ 2return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(t)}function bn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yn(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wn(n.key),n)}}function kn(t,e,o){return e&&yn(t.prototype,e),o&&yn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function wn(t){var e=Cn(t,"string");return"symbol"==gn(e)?e:e+""}function Cn(t,e){if("object"!=gn(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=gn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Sn(t){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sn(t)}function xn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tn(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pn(n.key),n)}}function En(t,e,o){return e&&Tn(t.prototype,e),o&&Tn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pn(t){var e=Nn(t,"string");return"symbol"==Sn(e)?e:e+""}function Nn(t,e){if("object"!=Sn(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Sn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function In(t){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(t)}function $n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rn(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ln(n.key),n)}}function An(t,e,o){return e&&Rn(t.prototype,e),o&&Rn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ln(t){var e=Fn(t,"string");return"symbol"==In(e)?e:e+""}function Fn(t,e){if("object"!=In(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=In(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Dn(t){return Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(t)}function Hn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jn(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,On(n.key),n)}}function zn(t,e,o){return e&&jn(t.prototype,e),o&&jn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function On(t){var e=Bn(t,"string");return"symbol"==Dn(e)?e:e+""}function Bn(t,e){if("object"!=Dn(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Mn(t){return Mn="function"==typeof Symbol
2&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(t)}function Un(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wn(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qn(n.key),n)}}function Kn(t,e,o){return e&&Wn(t.prototype,e),o&&Wn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function qn(t){var e=Vn(t,"string");return"symbol"==Mn(e)?e:e+""}function Vn(t,e){if("object"!=Mn(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Mn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _n(t){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(t)}function Gn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zn(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Xn(n.key),n)}}function Yn(t,e,o){return e&&Zn(t.prototype,e),o&&Zn(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function Xn(t){var e=Qn(t,"string");return"symbol"==_n(e)?e:e+""}function Qn(t,e){if("object"!=_n(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=_n(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Jn(t){return Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(t)}function ti(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ei(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ni(n.key),n)}}function oi(t,e,o){return e&&ei(t.prototype,e),o&&ei(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function ni(t){var e=ii(t,"string");return"symbol"==Jn(e)?e:e+""}function ii(t,e){if("object"!=Jn(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=Jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ri(t){return ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(t)}function ai(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function si(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ci(n.key),n)}}function li(t,e,o){return e&&si(t.prototype,e),o&&si(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function ci(t){var e=ui(t,"string");return"symbol"==ri(e)?e:e+""}function ui(t,e){if("object"!=ri(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function di(t){return di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(t)}function fi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hi(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,mi(n.key),n)}}function pi(t,e,o){return e&&hi(t.prototype,e),o&&hi(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function mi(t){var e=vi(t,"string");return"symbol"==di(e)?e:e+""}function vi(t,e){if("object"!=di(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=di(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function gi(t){return gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gi(t)}function bi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yi(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wi(n.key),n)}}function ki(t,e,o){return e&&yi(t.prototype,e),o&&yi(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function wi(t){var e=Ci(t,"string");return"symbol"==gi(e)?e:e+""}function Ci(t,e){if("object"!=gi(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=gi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Si(t){return Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(t)}var xi={7000:(t,e,o)=>{var n=o(8938),i=o.n(n);i().summernote=i().summernote||{lang:{}},i().extend(!0,i().summernote.lang,{"en-US":{font:{bold:"Bold",italic:"Italic",underline:"Underline",clear:"Remove Font Style",height:"Line Height",name:"Font Family",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript",size:"Font Size",sizeunit:"Font Size Unit"},image:{image:"Picture",insert:"Insert Image",resizeFull:"Resize full",resizeHalf:"Resize half",resizeQuarter:"Resize quarter",resizeNone:"Original size",floatLeft:"Float Left",floatRight:"Float Right",floatNone:"Remove float",shapeRounded:"Shape: Rounded",shapeCircle:"Shape: Circle",shapeThumbnail:"Shape: Thumbnail",shapeNone:"Shape: None",dragImageHere:"Drag image or text here",dropImage:"Drop image or Text",selectFromFiles:"Select from files",maximumFileSize:"Maximum file size",maximumFileSizeError:"Maximum file size exceeded.",url:"Image URL",remove:"Remove Image",original:"Original"},video:{video:"Video",videoLink:"Video Link",insert:"Insert Video",url:"Video URL",providers:"(YouTube, Google Drive, Vimeo, Vine, Instagram, DailyMotion, Youku, Peertube)"},link:{link:"Link",insert:"Insert Link",unlink:"Unlink",edit:"Edit",textToDisplay:"Text to display",url:"To what URL should this link go?",openInNewWindow:"Open in new window"},table:{table:"Table",addRowAbove:"Add row above",addRowBelow:"Add row below",addColLeft:"Add column left",addColRight:"Add column right",delRow:"Delete row",delCol:"Delete column",delTable:"Delete table"},hr:{insert:"Insert Horizontal Rule"},style:{style:"Style",p:"Normal",blockquote:"Quote",pre:"Code",h1:"Header 1",h2:"Header 2",h3:"Header 3",h4:"Header 4",h5:"Header 5",h6:"Header 6"},lists:{unordered:"Unordered list",ordered:"Ordered list"},options:{help:"Help",fullscreen:"Full Screen",codeview:"Code View"},paragraph:{paragraph:"Paragraph",outdent:"Outdent",indent:"Indent",left:"Align left",center:"Align center",right:"Align right",justify:"Justify full"}
2,color:{recent:"Recent Color",more:"More Color",background:"Background Color",foreground:"Text Color",transparent:"Transparent",setTransparent:"Set transparent",reset:"Reset",resetToDefault:"Reset to default",cpSelect:"Select"},shortcut:{shortcuts:"Keyboard shortcuts",close:"Close",textFormatting:"Text formatting",action:"Action",paragraphFormatting:"Paragraph formatting",documentStyle:"Document Style",extraKeys:"Extra keys"},help:{escape:"Escape",insertParagraph:"Insert Paragraph",undo:"Undo the last command",redo:"Redo the last command",tab:"Tab",untab:"Untab",bold:"Set a bold style",italic:"Set a italic style",underline:"Set a underline style",strikethrough:"Set a strikethrough style",removeFormat:"Clean a style",justifyLeft:"Set left align",justifyCenter:"Set center align",justifyRight:"Set right align",justifyFull:"Set full align",insertUnorderedList:"Toggle unordered list",insertOrderedList:"Toggle ordered list",outdent:"Outdent on current paragraph",indent:"Indent on current paragraph",formatPara:"Change current block's format as a paragraph(P tag)",formatH1:"Change current block's format as H1",formatH2:"Change current block's format as H2",formatH3:"Change current block's format as H3",formatH4:"Change current block's format as H4",formatH5:"Change current block's format as H5",formatH6:"Change current block's format as H6",insertHorizontalRule:"Insert horizontal rule","linkDialog.show":"Show Link Dialog"},history:{undo:"Undo",redo:"Redo"},specialChar:{specialChar:"SPECIAL CHARACTERS",select:"Select Special characters"},output:{noSelection:"No Selection Made!"}}})},8938:e=>{e.exports=t}},Ti={};e.n=(t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o}),e.d=((t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})}),e.o=((t,e)=>Object.prototype.hasOwnProperty.call(t,e));var Ei,Pi={},Ni=e(8938),Ii=e.n(Ni),$i=(e(7e3),["sans-serif","serif","monospace","cursive","fantasy"]),Ri=navigator.userAgent,Ai=/MSIE|Trident/i.test(Ri);if(Ai){var Li=/MSIE (\d+[.]\d+)/.exec(Ri);Li&&(Ei=parseFloat(Li[1])),Li=/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/.exec(Ri),Li&&(Ei=parseFloat(Li[1]))}var Fi=/Edge\/\d+/.test(Ri),Di="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,Hi=Ai?"DOMCharacterDataModified DOMSubtreeModified DOMNodeInserted":"input";const ji={isMac:navigator.appVersion.indexOf("Mac")>-1,isMSIE:Ai,isEdge:Fi,isFF:!Fi&&/firefox/i.test(Ri),isPhantom:/PhantomJS/i.test(Ri),isWebkit:!Fi&&/webkit/i.test(Ri),isChrome:!Fi&&/chrome/i.test(Ri),isSafari:!Fi&&/safari/i.test(Ri)&&!/chrome/i.test(Ri),browserVersion:Ei,isSupportTouch:Di,isFontInstalled:n(),isW3CRangeSupport:!!document.createRange,inputEventName:Hi,genericFontFamilies:$i,validFontName:o};var zi=0;const Oi={eq:i,eq2:r,peq2:a,ok:s,fail:l,self:d,not:c,and:u,invoke:f,resetUniqueId:h,uniqueId:p,rect2bnd:m,invertObject:v,namespaceToCamel:g,debounce:b,isValidUrl:y},Bi={head:k,last:w,initial:C,tail:S,prev:F,next:L,find:x,contains:E,all:T,sum:P,from:N,isEmpty:I,clusterBy:$,compact:R,unique:A};var Mi=String.fromCharCode(160),Ui="\ufeff",Wi=j("PRE"),Ki=j("LI"),qi=j("TABLE"),Vi=j("DATA"),_i=j("HR"),Gi=j("BLOCKQUOTE"),Zi=j("A"),Yi=j("BODY"),Xi=ji.isMSIE&&ji.browserVersion<11?" ":"<br>",Qi=j("TEXTAREA");const Ji={NBSP_CHAR:Mi,ZERO_WIDTH_NBSP_CHAR:Ui,blank:Xi,emptyPara:"<p>".concat(Xi,"</p>"),makePredByNodeName:j,isEditable:D,isControlSizing:H,isText:z,isElement:O,isVoid:B,isPara:M,isPurePara:W,isHeading:U,isInline:K,isBlock:Oi.not(K),isBodyInline:Z,isBody:Yi,isParaInline:G,isPre:Wi,isList:q,isTable:qi,isData:Vi,isCell:V,isBlockquote:Gi,isBodyContainer:_,isAnchor:Zi,isDiv:j("DIV"),isLi:Ki,isBR:j("BR"),isSpan:j("SPAN"),isB:j("B"),isU:j("U"),isS:j("S"),isI:j("I"),isImg:j("IMG"),isTextarea:Qi,deepestChildIsEmpty:J,isEmpty:tt,isEmptyAnchor:Oi.and(Zi,tt),isClosestSibling:Y,withClosestSiblings:X,nodeLength:Q,isLeftEdgePoint:ht,isRightEdgePoint:pt,isEdgePoint:mt,isLeftEdgeOf:vt,isRightEdgeOf:gt,isLeftEdgePointOf:bt,isRightEdgePointOf:yt,prevPoint:Ct,nextPoint:St,nextPointWithEmptyNode:xt,isSamePoint:Et,isVisiblePoint:Pt,prevPointUntil:Nt,nextPointUntil:It,isCharPoint:$t,isSpacePoint:Rt,walkPoint:At,ancestor:ot,singleChildAncestor:nt,listAncestor:it,lastAncestor:rt,listNext:lt,listPrev:st,listDescendant:ct,commonAncestor:at,wrap:ut,insertAfter:dt,a
2ppendChildNodes:ft,position:kt,hasChildren:wt,makeOffsetPath:Lt,fromOffsetPath:Ft,splitTree:Ht,splitPoint:jt,create:zt,createText:Ot,remove:Bt,removeWhile:Mt,replace:Ut,html:Kt,value:Wt,posFromPlaceholder:qt,attachEvents:Vt,detachEvents:_t,isCustomStyleTag:Gt};var tr=function(){function t(e,o){Yt(this,t),this.$note=e,this.memos={},this.modules={},this.layoutInfo={},this.options=Ii().extend(!0,{},o),Ii().summernote.ui=Ii().summernote.ui_template(this.options),this.ui=Ii().summernote.ui,this.initialize()}return Qt(t,[{key:"initialize",value:function(){return this.layoutInfo=this.ui.createLayout(this.$note),this._initialize(),this.$note.hide(),this}},{key:"destroy",value:function(){this._destroy(),this.$note.removeData("summernote"),this.ui.removeLayout(this.$note,this.layoutInfo)}},{key:"reset",value:function(){var t=this.isDisabled();this.code(Ji.emptyPara),this._destroy(),this._initialize(),t&&this.disable()}},{key:"_initialize",value:function(){var t=this;this.options.id=Oi.uniqueId(Ii().now()),this.options.container=this.options.container||this.layoutInfo.editor;var e=Ii().extend({},this.options.buttons);Object.keys(e).forEach(function(o){t.memo("button."+o,e[o])});var o=Ii().extend({},this.options.modules,Ii().summernote.plugins||{});Object.keys(o).forEach(function(e){t.module(e,o[e],!0)}),Object.keys(this.modules).forEach(function(e){t.initializeModule(e)})}},{key:"_destroy",value:function(){var t=this;Object.keys(this.modules).reverse().forEach(function(e){t.removeModule(e)}
vendor: 12,900 bytes, line 2
2),Object.keys(this.memos).forEach(function(e){t.removeMemo(e)}),this.triggerEvent("destroy",this)}},{key:"code",value:function(t){var e=this.invoke("codeview.isActivated");if(void 0===t)return this.invoke("codeview.sync"),e?this.layoutInfo.codable.val():this.layoutInfo.editable.html();e?this.invoke("codeview.sync",t):this.layoutInfo.editable.html(t),this.$note.val(t),this.triggerEvent("change",t,this.layoutInfo.editable)}},{key:"isDisabled",value:function(){return"false"===this.layoutInfo.editable.attr("contenteditable")}},{key:"enable",value:function(){this.layoutInfo.editable.attr("contenteditable",!0),this.invoke("toolbar.activate",!0),this.triggerEvent("disable",!1),this.options.editing=!0}},{key:"disable",value:function(){this.invoke("codeview.isActivated")&&this.invoke("codeview.deactivate"),this.layoutInfo.editable.attr("contenteditable",!1),this.options.editing=!1,this.invoke("toolbar.deactivate",!0),this.triggerEvent("disable",!0)}},{key:"triggerEvent",value:function(){var t=Bi.head(arguments),e=Bi.tail(Bi.from(arguments)),o=this.options.callbacks[Oi.namespaceToCamel(t,"on")];o&&o.apply(this.$note[0],e),this.$note.trigger("summernote."+t,e)}},{key:"initializeModule",value:function(t){var e=this.modules[t];e.shouldInitialize=e.shouldInitialize||Oi.ok,e.shouldInitialize()&&(e.initialize&&e.initialize(),e.events&&Ji.attachEvents(this.$note,e.events))}},{key:"module",value:function(t,e,o){if(1===arguments.length)return this.modules[t];this.modules[t]=new e(this),o||this.initializeModule(t)}},{key:"removeModule",value:function(t){var e=this.modules[t];e.shouldInitialize()&&(e.events&&Ji.detachEvents(this.$note,e.events),e.destroy&&e.destroy()),delete this.modules[t]}},{key:"memo",value:function(t,e){if(1===arguments.length)return this.memos[t];this.memos[t]=e}},{key:"removeMemo",value:function(t){this.memos[t]&&this.memos[t].destroy&&this.memos[t].destroy(),delete this.memos[t]}},{key:"createInvokeHandlerAndUpdateState",value:function(t,e){var o=this;return function(n){o.createInvokeHandler(t,e)(n),o.invoke("buttons.updateCurrentStyle")}}},{key:"createInvokeHandler",value:function(t,e){var o=this;return function(n){n.preventDefault();var i=Ii()(n.target);o.invoke(t,e||i.closest("[data-value]").data("value"),i)}}},{key:"invoke",value:function(){var t=Bi.head(arguments),e=Bi.tail(Bi.from(arguments)),o=t.split("."),n=o.length>1,i=n&&Bi.head(o),r=n?Bi.last(o):Bi.head(o),a=this.modules[i||"editor"];return!i&&this[r]?this[r].apply(this,e):a&&a[r]&&a.shouldInitialize()?a[r].apply(a,e):void 0}}])}();Ii().fn.extend({summernote:function(){var t=ee(Bi.head(arguments)),e="string"===t,o="object"===t,n=Ii().extend({},Ii().summernote.options,o?Bi.head(arguments):{});n.langInfo=Ii().extend(!0,{},Ii().summernote.lang["en-US"],Ii().summernote.lang[n.lang]),n.icons=Ii().extend(!0,{},Ii().summernote.options.icons,n.icons),n.tooltip="auto"===n.tooltip?!ji.isSupportTouch:n.tooltip,this.each(function(t,e){var o=Ii()(e);if(!o.data("summernote")){var i=new tr(o,n);o.data("summernote",i),o.data("summernote").triggerEvent("init",i.layoutInfo)}});var i=this.first();if(i.length){var r=i.data("summernote");if(e)return r.invoke.apply(r,Bi.from(arguments));n.focus&&r.invoke("editor.focus")}return this}});var er=function(){function t(e,o,n,i){ne(this,t),this.sc=e,this.so=o,this.ec=n,this.eo=i,this.isOnEditable=this.makeIsOn(Ji.isEditable),this.isOnList=this.makeIsOn(Ji.isList),this.isOnAnchor=this.makeIsOn(Ji.isAnchor),this.isOnCell=this.makeIsOn(Ji.isCell),this.isOnData=this.makeIsOn(Ji.isData)}return re(t,[{key:"nativeRange",value:function(){if(ji.isW3CRangeSupport){var t=document.createRange();return t.setStart(this.sc,this.so),t.setEnd(this.ec,this.eo),t}var e=ce({node:this.sc,offset:this.so});return e.setEndPoint("EndToEnd",ce({node:this.ec,offset:this.eo})),e}},{key:"getPoints",value:function(){return{sc:this.sc,so:this.so,ec:this.ec,eo:this.eo}}},{key:"getStartPoint",value:function(){return{node:this.sc,offset:this.so}}},{key:"getEndPoint",value:function(){return{node:this.ec,offset:this.eo}}},{key:"select",value:function(){var t=this.nativeRange();if(ji.isW3CRangeSupport){var e=document.getSelection();e.rangeCount>0&&e.removeAllRanges(),e.addRange(t)}else t.select();return this}},{key:"scrollIntoView",value:function(t){var e=Ii()(t).height();return t.scrollTop+e<this.sc.offsetTop&&(t.scrollTop+=Math.abs(t.scrollTop+e-this.sc.offsetTop)),this}},{key:"normalize",value:function(){var e=function(t,e){if(!t)return t;if(Ji.isVisiblePoint(t)&&(!Ji.isEdgePoint(t)||Ji.isRightEdgePoint(t)&&!e||Ji.isLeftEdgePoint(t)&&e||Ji.isRightEdgePoint(t)&&e&&Ji.isVoid(t.node.nextSibling)||Ji.isLeftEdgePoint(t)&&!e&&Ji.isVoid(t.node.previousSibling)||Ji.isBlock(t.node)&&Ji.isEmpty(t.node)))return t;var o=Ji.ancestor(t.node,Ji.isBlock),n=!1;if(!n){var i=Ji.prevPoint(t)||{node:null};n=(Ji.isLeftEdgePointOf(t,o)||Ji.isVoid(i.node))&&!e}var r=!1;if(!r){var a=Ji.nextPoint(t)||{node:null};r=(Ji.isRightEdgePointOf(t,o)||Ji.isVoid(a.node))&&e}if(n||r){if(Ji.isVisiblePoint(t))return t;e=!e}var s=e?Ji.nextPointUntil(Ji.nextPoint(t),Ji.isVisiblePoint):Ji.prevPointUntil(Ji.prevPoint(t),Ji.isVisiblePoint);return s||t},o=e(this.getEndPoint(),!1),n=this.isCollapsed()?o:e(this.getStartPoint(),!0);return new t(n.node,n.offset,o.node,o.offset)}},{key:"nodes",value:function(t,e){t=t||Oi.ok;var o=e&&e.includeAncestor,n=e&&e.fullyContains,i=this.getStartPoint(),r=this.getEndPoint(),a=[],s=[];return Ji.walkPoint(i,r,function(e){var i;Ji.isEditable(e.node)||(n?(Ji.isLeftEdgePoint(e)&&s.push(e.node),Ji.isRightEdgePoint(e)&&Bi.contains(s,e.node)&&(i=e.node)):i=o?Ji.ancestor(e.node,t):e.node,i&&t(i)&&a.push(i))},!0),Bi.unique(a)}},{key:"commonAncestor",value:function(){return Ji.commonAncestor(this.sc,this.ec)}},{key:"expand",value:function(e){var o=Ji.ancestor(this.sc,e),n=Ji.ancestor(this.ec,e);if(!o&&!n)return new t(this.sc,this.so,this.ec,this.eo);var i=this.getPoints();return o&&(i.sc=o,i.so=0),n&&(i.ec=n,i.eo=Ji.nodeLength(n)),new t(i.sc,i.so,i.ec,i.eo)}},{key:"collapse",value:function(e){return e?new t(this.sc,this.so,this.sc,this.so):new t(this.ec,this.eo,this.ec,this.eo)}},{key:"splitText",value:function(){var e=this.sc===this.ec,o=this.getPoints();return Ji.isText(this.ec)&&!Ji.isEdgePoint(this.getEndPoint())&&this.ec.splitText(this.eo),Ji.isText(this.sc)&&!Ji.isEdgePoint(this.getStartPoint())&&(o.sc=this.sc.splitText(this.so),o.so=0,e&&(o.ec=o.sc,o.eo=this.eo-this.so)),new t(o.sc,o.so,o.ec,o.eo)}},{key:"deleteContents",value:function(){if(this.isCollapsed())return this;var e=this.splitText(),o=e.nodes(null,{fullyContains:!0}),n=Ji.prevPointUntil(e.getStartPoint(),function(t){return!Bi.contains(o,t.node)}),i=[];return Ii().each(o,function(t,e){var o=e.parentNode;n.node!==o&&1===Ji.nodeLength(o)&&i.push(o),Ji.remove(e,!1)}),Ii().each(i,function(t,e){Ji.remove(e,!1)}),new t(n.node,n.offset,n.node,n.offset).normalize()}},{key:"makeIsOn",value:function(t){return function(){var e=Ji.ancestor(this.sc,t);return!!e&&e===Ji.ancestor(this.ec,t)}}},{key:"isLeftEdgeOf",value:function(t){if(!Ji.isLeftEdgePoint(this.getStartPoint()))return!1;var e=Ji.ancestor(this.sc,t);return e&&Ji.isLeftEdgeOf(this.sc,e)}},{key:"isCollapsed",value:function(){return this.sc===this.ec&&this.so===this.eo}},{key:"wrapBodyInlineWithPara",value:function(){if(Ji.isBodyContainer(this.sc)&&Ji.isEmpty(this.sc))return this.sc.innerHTML=Ji.emptyPara,new t(this.sc.firstChild,0,this.sc.firstChild,0);var e,o=this.normalize();if(Ji.isParaInline(this.sc)||Ji.isPara(this.sc))return o;if(Ji.isInline(o.sc)){var n=Ji.listAncestor(o.sc,Oi.not(Ji.isInline));e=Bi.last(n),Ji.isInline(e)||(e=n[n.length-2]||o.sc.childNodes[o.so])}else e=o.sc.childNodes[o.so>0?o.so-1:0];if(e){var i=Ji.listPrev(e,Ji.isParaInline).reverse();if(i=i.concat(Ji.listNext(e.nextSibling,Ji.isParaInline)),i.length){var r=Ji.wrap(Bi.head(i),"p");Ji.appendChildNodes(r,Bi.tail(i))}}return this.normalize()}},{key:"insertNode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this;(Ji.isText(t)||Ji.isInline(t))&&(o=this.wrapBodyInlineWithPara().deleteContents());var n=Ji.splitPoint(o.getStartPoint(),Ji.isInline(t));return n.rightNode?(n.rightNode.parentNode.insertBefore(t,n.rightNode),Ji.isEmpty(n.rightNode)&&(e||Ji.isPara(t))&&n.rightNode.parentNode.removeChild(n.rightNode)):n.container.appendChild(t),t}},{key:"pasteHTML",value:function(t){t=((t||"")+"").trim(t);var e=Ii()("<div></div>").html(t)[0],o=Bi.from(e.childNodes),n=this,i=!1;return n.so>=0&&(o=o.reverse(),i=!0),o=o.map(function(t){return n.insertNode(t,!Ji.isInline(t))}),i&&(o=o.reverse()),o}},{key:"toString",value:function(){var t=this.nativeRange();return ji.isW3CRangeSupport?t.toString():t.text}},{key:"getWordRange",value:function(e){var o=this.getEndPoint();if(!Ji.isCharPoint(o))return this;var n=Ji.prevPointUntil(o,function(t){return!Ji.isCharPoint(t)});return e&&(o=Ji.nextPointUntil(o,function(t){return!Ji.isCharPoint(t)})),new t(n.node,n.offset,o.node,o.offset)}},{key:"getWordsRange",value:function(e){var o=this.getEndPoint(),n=function(t){return!Ji.isCharPoint(t)&&!Ji.isSpacePoint(t)};if(n(o))return this;var i=Ji.prevPointUntil(o,n);return e&&(o=Ji.nextPointUntil(o,n)),new t(i.node,i.offset,o.node,o.offset)}},{key:"getWordsMatchRange",value:function(e){var o=this.getEndPoint(),n=Ji.prevPointUntil(o,function(n){if(!Ji.isCharPoint(n)&&!Ji.isSpacePoint(n))return!0;var i=new t(n.node,n.offset,o.node,o.offset),r=e.exec(i.toString());return r&&0===r.index}),i=new t(n.node,n.offset,o.node,o.offset),r=i.toString(),a=e.exec(r);return a&&a[0].length===r.length?i:null}},{key:"bookmark",value:function(t){return{s:{path:Ji.makeOffsetPath(t,this.sc),offset:this.so},e:{path:Ji.makeOffsetPath(t,this.ec),offset:this.eo}}}},{key:"paraBookmark",value:function(t){return{s:{path:Bi.tail(Ji.makeOffsetPath(Bi.head(t),this.sc)),offset:this.so},e:{path:Bi.tail(Ji.makeOffsetPath(Bi.last(t),this.ec)),offset:this.eo}}}},{key:"getClientRects",value:function(){var t=this.nativeRange();return t.getClientRects()}}])}();const or={create:function(t,e,o,n){if(4===arguments.length)return new er(t,e,o,n);if(2===arguments.length)return o=t,n=e,new er(t,e,o,n);var i=this.createFromSelection();if(!i&&1===arguments.length){var r=arguments[0];return Ji.isEditable(r)&&(r=r.lastChild),this.createFromBodyElement(r,Ji.emptyPara===arguments[0].innerHTML)}return i},createFromBodyElement:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.createFromNode(t);return o.collapse(e)},createFromSelection:function(){var t,e,o,n;if(ji.isW3CRangeSupport){var i=document.getSelection();if(!i||0===i.rangeCount)return null;if(Ji.isBody(i.anchorNode))return null;var r=i.getRangeAt(0);t=r.startContainer,e=r.startOffset,o=r.endContainer,n=r.endOffset}else{var a=document.selection.createRange(),s=a.duplicate();s.collapse(!1);var l=a;l.collapse(!0);var c=le(l,!0),u=le(s,!1);Ji.isText(c.node)&&Ji.isLeftEdgePoint(c)&&Ji.isTextNode(u.node)&&Ji.isRightEdgePoint(u)&&u.node.nextSibling===c.node&&(c=u),t=c.cont,e=c.offset,o=u.cont,n=u.offset}return new er(t,e,o,n)},createFromNode:function(t){var e=t,o=0,n=t,i=Ji.nodeLength(n);return Ji.isVoid(e)&&(o=Ji.listPrev(e).length-1,e=e.parentNode),Ji.isBR(n)?(i=Ji.listPrev(n).length-1,n=n.parentNode):Ji.isVoid(n)&&(i=Ji.listPrev(n).length,n=n.parentNode),this.create(e,o,n,i)},createFromNodeBefore:function(t){return this.createFromNode(t).collapse(!0)},createFromNodeAfter:function(t){return this.createFromNode(t).collapse()},createFromBookmark:function(t,e){var o=Ji.fromOffsetPath(t,e.s.path),n=e.s.offset,i=Ji.fromOffsetPath(t,e.e.path),r=e.e.offset;return new er(o,n,i,r)},createFromParaBookmark:function(t,e){var o=t.s.offset,n=t.e.offset,i=Ji.fromOffsetPath(Bi.head(e),t.s.path),r=Ji.fromOffsetPath(Bi.last(e),t.e.path);return new er(i,o,r,n)}};var nr={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUM0:48,NUM1:49,NUM2:50,NUM3:51,NUM4:52,NUM5:53,NUM6:54,NUM7:55,NUM8:56,B:66,E:69,I:73,J:74,K:75,L:76,R:82,S:83,U:85,V:86,Y:89,Z:90,SLASH:191,LEFTBRACKET:219,BACKSLASH:220,RIGHTBRACKET:221,HOME:36,END:35,PAGEUP:33,PAGEDOWN:34};const ir={isEdit:function(t){return Bi.contains([nr.BACKSPACE,nr.TAB,nr.ENTER,nr.SPACE,nr.DELETE],t)},isRemove:function(t){return Bi.contains([nr.BACKSPACE,nr.DELETE],t)},isMove:function(t){return Bi.contains([nr.LEFT,nr.UP,nr.RIGHT,nr.DOWN],t)},isNavigation:function(t){return Bi.contains([nr.HOME,nr.END,nr.PAGEUP,nr.PAGEDOWN],t)},nameFromCode:Oi.invertObject(nr),code:nr};var rr=function(){function t(e){he(this,t),this.stack=[],this.stackOffset=-1,this.context=e,this.$editable=e.layoutInfo.editable,this.editable=this.$editable[0]}return me(t,[{key:"makeSnapshot",value:function(){var t=or.create(this.editable),e={s:{path:[],offset:0},e:{path:[],offset:0}};return{contents:this.$editable.html(),bookmark:t&&t.isOnEditable()?t.bookmark(this.editable):e}}}
2,{key:"applySnapshot",value:function(t){null!==t.contents&&this.$editable.html(t.contents),null!==t.bookmark&&or.createFromBookmark(this.editable,t.bookmark).select()}},{key:"rewind",value:function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset=0,this.applySnapshot(this.stack[this.stackOffset])}},{key:"commit",value:function(){this.stack=[],this.stackOffset=-1,this.recordUndo()}},{key:"reset",value:function(){this.stack=[],this.stackOffset=-1,this.$editable.html(""),this.recordUndo()}},{key:"undo",value:function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset>0&&(this.stackOffset--,this.applySnapshot(this.stack[this.stackOffset]))}},{key:"redo",value:function(){this.stack.length-1>this.stackOffset&&(this.stackOffset++,this.applySnapshot(this.stack[this.stackOffset]))}},{key:"recordUndo",value:function(){this.stackOffset++,this.stack.length>this.stackOffset&&(this.stack=this.stack.slice(0,this.stackOffset)),this.stack.push(this.makeSnapshot()),this.stack.length>this.context.options.historyLimit&&(this.stack.shift(),this.stackOffset-=1)}}])}(),ar=function(){function t(){ye(this,t)}return we(t,[{key:"jQueryCSS",value:function(t,e){var o={};return Ii().each(e,function(e,n){o[n]=t.css(n)}),o}},{key:"fromNode",value:function(t){var e=["font-family","font-size","text-align","list-style-type","line-height"],o=this.jQueryCSS(t,e)||{},n=t[0].style.fontSize||o["font-size"];return o["font-size"]=parseInt(n,10),o["font-size-unit"]=n.match(/[a-z%]+$/),o}},{key:"stylePara",value:function(t,e){Ii().each(t.nodes(Ji.isPara,{includeAncestor:!0}),function(t,o){Ii()(o).css(e)})}},{key:"styleNodes",value:function(t,e){t=t.splitText();var o=e&&e.nodeName||"SPAN",n=!(!e||!e.expandClosestSibling),i=!(!e||!e.onlyPartialContains) 3;if(t.isCollapsed())return[t.insertNode(Ji.create(o))];var r=Ji.makePredByNodeName(o),a=t.nodes(Ji.isText,{fullyContains:!0}).map(function(t){return Ji.singleChildAncestor(t,r)||Ji.wrap(t,o)});if(n){if(i){var s=t.nodes();r=Oi.and(r,function(t){return Bi.contains(s,t)})}return a.map(function(t){var e=Ji.withClosestSiblings(t,r),o=Bi.head(e),n=Bi.tail(e);return Ii().each(n,function(t,e){Ji.appendChildNodes(o,e.childNodes),Ji.remove(e)}),Bi.head(e)})}return a}},{key:"current",value:function(t){var e=Ii()(Ji.isElement(t.sc)?t.sc:t.sc.parentNode),o=this.fromNode(e);try{o=Ii().extend(o,{"font-bold":document.queryCommandState("bold")?"bold":"normal","font-italic":document.queryCommandState("italic")?"italic":"normal","font-underline":document.queryCommandState("underline")?"underline":"normal","font-subscript":document.queryCommandState("subscript")?"subscript":"normal","font-superscript":document.queryCommandState("superscript")?"superscript":"normal","font-strikethrough":document.queryCommandState("strikethrough")?"strikethrough":"normal","font-family":document.queryCommandValue("fontname")||o["font-family"]})}catch(t){}if(t.isOnList()){var n=["circle","disc","disc-leading-zero","square"],i=n.indexOf(o["list-style-type"])>-1;o["list-style"]=i?"unordered":"ordered"}else o["list-style"]="none";var r=Ji.ancestor(t.sc,Ji.isPara);if(r&&r.style["line-height"])o["line-height"]=r.style.lineHeight;else{var a=parseInt(o["line-height"],10)/parseInt(o["font-size"],
310);o["line-height"]=a.toFixed(1)}return o.anchor=t.isOnAnchor()&&Ji.ancestor(t.sc,Ji.isAnchor),o.ancestors=Ji.listAncestor(t.sc,Ji.isEditable),o.range=t,o}}])}(),sr=function(){function t(){Te(this,t)}return Pe(t,[{key:"insertOrderedList",value:function(t){this.toggleList("OL",t)}},{key:"insertUnorderedList",value:function(t){this.toggleList("UL",t)}},{key:"indent",value:function(t){var e=this,o=or.create(t).wrapBodyInlineWithPara(),n=o.nodes(Ji.isPara,{includeAncestor:!0}),i=Bi.clusterBy(n,Oi.peq2("parentNode"));Ii().each(i,function(t,o){var n=Bi.head(o);if(Ji.isLi(n)){var i=e.findList(n.previousSibling);i?o.map(function(t){return i.appendChild(t)}):(e.wrapList(o,n.parentNode.nodeName),o.map(function(t){return t.parentNode}).map(function(t){return e.appendToPrevious(t)}))}else Ii().each(o,function(t,e){Ii()(e).css("marginLeft",function(t,e){return(parseInt(e,10)||0)+25})})}),o.select()}},{key:"outdent",value:function(t){var e=this,o=or.create(t).wrapBodyInlineWithPara(),n=o.nodes(Ji.isPara,{includeAncestor:!0}),i=Bi.clusterBy(n,Oi.peq2("parentNode"));Ii().each(i,function(t,o){var n=Bi.head(o);Ji.isLi(n)?e.releaseList([o]):Ii().each(o,function(t,e){Ii()(e).css("marginLeft",function(t,e){return e=parseInt(e,10)||0,e>25?e-25:""})})}),o.select()}},{key:"toggleList",value:function(t,e){var o=this,n=or.create(e).wrapBodyInlineWithPara(),i=n.nodes(Ji.isPara,{includeAncestor:!0}),r=n.paraBookmark(i),a=Bi.clusterBy(i,Oi.peq2("parentNode"));if(Bi.find(i,Ji.isPurePara)){var s=[];Ii().each(a,function(e,n){s=s.concat(o.wrapList(n,t))}),i=s}else{var l=n.nodes(Ji.isList,{includeAncestor:!0}).filter(function(e){return!Ii().nodeName(e,t)});l.length?Ii().each(l,function(e,o){Ji.replace(o,t)}):i=this.releaseList(a,!0)}or.createFromParaBookmark(r,i).select()}},{key:"wrapList",value:function(t,e){var o=Bi.head(t),n=Bi.last(t),i=Ji.isList(o.previousSibling)&&o.previousSibling,r=Ji.isList(n.nextSibling)&&n.nextSibling,a=i||Ji.insertAfter(Ji.create(e||"UL"),n);return t=t.map(function(t){return Ji.isPurePara(t)?Ji.replace(t,"LI"):t}),Ji.appendChildNodes(a,t,!0),r&&(Ji.appendChildNodes(a,Bi.from(r.childNodes),!0),Ji.remove(r)),t}},{key:"releaseList",value:function(t,e){var o=this,n=[];return Ii().each(t,function(t,i){var r=Bi.head(i),a=Bi.last(i),s=e?Ji.lastAncestor(r,Ji.isList):r.parentNode,l=s.parentNode;if("LI"===s.parentNode.nodeName)i.map(function(t){var e=o.findNextSiblings(t);l.nextSibling?l.parentNode.insertBefore(t,l.nextSibling):l.parentNode.appendChild(t),e.length&&(o.wrapList(e,s.nodeName),t.appendChild(e[0].parentNode))}),0===s.children.length&&l.removeChild(s),0===l.childNodes.length&&l.parentNode.removeChild(l);else{var c=s.childNodes.length>1?Ji.splitTree(s,{node:a.parentNode,offset:Ji.position(a)+1},{isSkipPaddingBlankHTML:!0}):null,u=Ji.splitTree(s,{node:r.parentNode,offset:Ji.position(r)},{isSkipPaddingBlankHTML:!0});i=e?Ji.listDescendant(u,Ji.isLi):Bi.from(u.childNodes).filter(Ji.isLi),!e&&Ji.isList(s.parentNode)||(i=i.map(function(t){return Ji.replace(t,"P")})),Ii().each(Bi.from(i).reverse(),function(t,e){Ji.insertAfter(e,s)});var d=Bi.compact([s,u,c]);Ii().each(d,function(t,e){var o=[e].concat(Ji.listDescendant(e,Ji.isList));Ii().each(o.reverse(),function(t,e){Ji.nodeLength(e)||Ji.remove(e,!0)})})}n=n.concat(i)}),n}},{key:"appendToPrevious",value:function(t){return t.previousSibling?Ji.appendChildNodes(t.previousSibling,[t]):this.wrapList([t],"LI")}},{key:"findList",value:function(t){return t?Bi.find(t.children,function(t){return["OL","UL"].indexOf(t.nodeName)>-1}):null}},{key:"findNextSiblings",value:function(t){for(var e=[];t.nextSibling;)e.push(t.nextSibling),t=t.nextSibling;return e}}])}(),lr=function(){function t(e){Re(this,t),this.bullet=new sr,this.options=e.options}return Le(t,[{key:"insertTab",value:function(t,e){var o=Ji.createText(new Array(e+1).join(Ji.NBSP_CHAR));
vendor: 9,820 bytes, line 3
3t=t.deleteContents(),t.insertNode(o,!0),t=or.create(o,e),t.select()}},{key:"insertParagraph",value:function(t,e){e=e||or.create(t),e=e.deleteContents(),e=e.wrapBodyInlineWithPara();var o,n=Ji.ancestor(e.sc,Ji.isPara);if(n){if(Ji.isLi(n)&&(Ji.isEmpty(n)||Ji.deepestChildIsEmpty(n)))return void this.bullet.toggleList(n.parentNode.nodeName);var i=null;if(1===this.options.blockquoteBreakingLevel?i=Ji.ancestor(n,Ji.isBlockquote):2===this.options.blockquoteBreakingLevel&&(i=Ji.lastAncestor(n,Ji.isBlockquote)),i){o=Ii()(Ji.emptyPara)[0],Ji.isRightEdgePoint(e.getStartPoint())&&Ji.isBR(e.sc.nextSibling)&&Ii()(e.sc.nextSibling).remove();var r=Ji.splitTree(i,e.getStartPoint(),{isDiscardEmptySplits:!0});r?r.parentNode.insertBefore(o,r):Ji.insertAfter(o,i)}else{o=Ji.splitTree(n,e.getStartPoint());var a=Ji.listDescendant(n,Ji.isEmptyAnchor);a=a.concat(Ji.listDescendant(o,Ji.isEmptyAnchor)),Ii().each(a,function(t,e){Ji.remove(e)}),(Ji.isHeading(o)||Ji.isPre(o)||Ji.isCustomStyleTag(o))&&Ji.isEmpty(o)&&(o=Ji.replace(o,"p"))}}else{var s=e.sc.childNodes[e.so];o=Ii()(Ji.emptyPara)[0],s?e.sc.insertBefore(o,s):e.sc.appendChild(o)}or.create(o,0).normalize().select().scrollIntoView(t)}}])}(),cr=function t(e,o,n,i){function r(){e&&e.tagName&&("td"===e.tagName.toLowerCase()||"th"===e.tagName.toLowerCase())&&(m.colPos=e.cellIndex,e.parentElement&&e.parentElement.tagName&&"tr"===e.parentElement.tagName.toLowerCase()&&(m.rowPos=e.parentElement.rowIndex))}function a(t,e,o,n,i,r,a){var s={baseRow:o,baseCell:n,isRowSpan:i,isColSpan:r,isVirtual:a};v[t]||(v[t]=[]),v[t][e]=s}function s(t,e,o,n){return{baseCell:t.baseCell,action:e,virtualTable:{rowIndex:o,cellIndex:n}}}function l(t,e){if(!v[t])return e;if(!v[t][e])return e;for(var o=e;v[t][o];)if(o++,!v[t][o])return o}function c(t,e){var o=l(t.rowIndex,e.cellIndex),n=e.colSpan>1,i=e.rowSpan>1,r=t.rowIndex===m.rowPos&&e.cellIndex===m.colPos;a(t.rowIndex,o,t,e,i,n,!1);var s=e.attributes.rowSpan?parseInt(e.attributes.rowSpan.value,10):0;if(s>1)for(var c=1;c<s;c++){var d=t.rowIndex+c;u(d,o,e,r),a(d,o,t,e,!0,n,!0)}var f=e.attributes.colSpan?parseInt(e.attributes.colSpan.value,10):0;if(f>1)for(var h=1;h<f;h++){var p=l(t.rowIndex,o+h);u(t.rowIndex,p,e,r),a(t.rowIndex,p,t,e,i,!0,!0)}}function u(t,e,o,n){t===m.rowPos&&m.colPos>=o.cellIndex&&o.cellIndex<=e&&!n&&m.colPos++}function d(){for(var t=i.rows,e=0;e<t.length;e++)for(var o=t[e].cells,n=0;n<o.length;n++)c(t[e],o[n])}function f(e){switch(o){case t.where.Column:if(e.isColSpan)return t.resultAction.SubtractSpanCount;break;case t.where.Row:if(!e.isVirtual&&e.isRowSpan)return t.resultAction.AddCell;if(e.isRowSpan)return t.resultAction.SubtractSpanCount}return t.resultAction.RemoveCell}function h(e){switch(o){case t.where.Column:if(e.isColSpan)return t.resultAction.SumSpanCount;if(e.isRowSpan&&e.isVirtual)return t.resultAction.Ignore;break;case t.where.Row:if(e.isRowSpan)return t.resultAction.SumSpanCount;if(e.isColSpan&&e.isVirtual)return t.resultAction.Ignore}return t.resultAction.AddCell}function p(){r(),d()}var m={colPos:0,rowPos:0},v=[],g=[];this.getActionList=function(){for(var e=o===t.where.Row?m.rowPos:-1,i=o===t.where.Column?m.colPos:-1,r=0,a=!0;a;){var l=e>=0?e:r,c=i>=0?i:r,u=v[l];if(!u)return a=!1,g;var d=u[c];if(!d)return a=!1,g;var p=t.resultAction.Ignore;switch(n){case t.requestAction.Add:p=h(d);break;case t.requestAction.Delete:p=f(d)}g.push(s(d,p,l,c)),r++}return g},p()};cr.where={Row:0,Column:1},cr.requestAction={Add:0,Delete:1},cr.resultAction={Ignore:0,SubtractSpanCount:1,RemoveCell:2,AddCell:3,SumSpanCount:4};var ur=function(){function t(){je(this,t)}return Oe(t,[{key:"tab",value:function(t,e){var o=Ji.ancestor(t.commonAncestor(),Ji.isCell),n=Ji.ancestor(o,Ji.isTable),i=Ji.listDescendant(n,Ji.isCell),r=Bi[e?"prev":"next"](i,o);r&&or.create(r,0).select()}},{key:"addRow",value:function(t,e){for(var o=Ji.ancestor(t.commonAncestor(),Ji.isCell),n=Ii()(o).closest("tr"),i=this.recoverAttributes(n),r=Ii()("<tr"+i+"></tr>"),a=new cr(o,cr.where.Row,cr.requestAction.Add,Ii()(n).closest("table")[0]),s=a.getActionList(),l=0;l<s.length;l++){var c=s[l],u=this.recoverAttributes(c.baseCell);switch(c.action){case cr.resultAction.AddCell:r.append("<td"+u+">"+Ji.blank+"</td>");break;case cr.resultAction.SumSpanCount:if("top"===e){var d=c.baseCell.parent,f=(d?c.baseCell.closest("tr").rowIndex:0)<=n[0].rowIndex;if(f){var h=Ii()("<div></div>").append(Ii()("<td"+u+">"+Ji.blank+"</td>").removeAttr("rowspan")).html();r.append(h);break}}var p=parseInt(c.baseCell.rowSpan,10);p++,c.baseCell.setAttribute("rowSpan",p)}}if("top"===e)n.before(r);else{var m=o.rowSpan>1;if(m){var v=n[0].rowIndex+(o.rowSpan-2);return void Ii()(Ii()(n).parent().find("tr")[v]).after(Ii()(r))}n.after(r)}}},{key:"addCol",value:function(t,e){var o=Ji.ancestor(t.commonAncestor(),Ji.isCell),n=Ii()(o).closest("tr"),i=Ii()(n).siblings();i.push(n);for(var r=new cr(o,cr.where.Column,cr.requestAction.Add,Ii()(n).closest("table")[0]),a=r.getActionList(),s=0;s<a.length;s++){var l=a[s],c=this.recoverAttributes(l.baseCell);switch(l.action){case cr.resultAction.AddCell:"right"===e?Ii()(l.baseCell).after("<td"+c+">"+Ji.blank+"</td>"):Ii()(l.baseCell).before("<td"+c+">"+Ji.blank+"</td>");break;case cr.resultAction.SumSpanCount:if("right"===e){var u=parseInt(l.baseCell.colSpan,10);u++,l.baseCell.setAttribute("colSpan",u)}else Ii()(l.baseCell).before("<td"+c+">"+Ji.blank+"</td>")}}}},{key:"recoverAttributes",value:function(t){var e="";if(!t)return e;for(var o=t.attributes||[],n=0;n<o.length;n++)"id"!==o[n].name.toLowerCase()&&o[n].specified&&(e+=" "+o[n].name+"='"+o[n].value+"'");return e}},{key:"deleteRow",value:function(t){for(var e=Ji.ancestor(t.commonAncestor(),Ji.isCell),o=Ii()(e).closest("tr"),n=o.children("td, th").index(Ii()(e)),i=o[0].rowIndex,r=new cr(e,cr.where.Row,cr.requestAction.Delete,Ii()(o).closest("table")[0]),a=r.getActionList(),s=0;s<a.length;s++)if(a[s]){var l=a[s].baseCell,c=a[s].virtualTable,u=l.rowSpan&&l.rowSpan>1,d=u?parseInt(l.rowSpan,10):0;switch(a[s].action){case cr.resultAction.Ignore:continue;case cr.resultAction.AddCell:var f=o.next("tr")[0];if(!f)continue;var h=o[0].cells[n];u&&(d>2?(d--,f.insertBefore(h,f.cells[n]),f.cells[n].setAttribute("rowSpan",d),f.cells[n].innerHTML=""):2===d&&(f.insertBefore(h,f.cells[n]),f.cells[n].removeAttribute("rowSpan"),f.cells[n].innerHTML=""));continue;case cr.resultAction.SubtractSpanCount:u&&(d>2?(d--,l.setAttribute("rowSpan",d),c.rowIndex!==i&&l.cellIndex===n&&(l.innerHTML="")):2===d&&(l.removeAttribute("rowSpan"),c.rowIndex!==i&&l.cellIndex===n&&(l.innerHTML="")));continue;case cr.resultAction.RemoveCell:continue}}o.remove()}},{key:"deleteCol",value:function(t){for(var e=Ji.ancestor(t.commonAncestor(),Ji.isCell),o=Ii()(e).closest("tr"),n=o.children("td, th").index(Ii()(e)),i=new cr(e,cr.where.Column,cr.requestAction.Delete,Ii()(o).closest("table")[0]),r=i.getActionList(),a=0;a<r.length;a++)if(r[a])switch(r[a].action){case cr.resultAction.Ignore:continue;case cr.resultAction.SubtractSpanCount:var s=r[a].baseCell,l=s.colSpan&&s.colSpan>1;if(l){var c=s.colSpan?parseInt(s.colSpan,10):0;c>2?(c--,s.setAttribute("colSpan",c),s.cellIndex===n&&(s.innerHTML="")):2===c&&(s.removeAttribute("colSpan"),s.cellIndex===n&&(s.innerHTML=""))}continue;case cr.resultAction.RemoveCell:Ji.remove(r[a].baseCell,!0);continue}}},{key:"createTable",value:function(t,e,o){for(var n,i=[],r=0;r<t;r++)i.push("<td>"+Ji.blank+"</td>");n=i.join("");for(var a,s=[],l=0;l<e;l++)s.push("<tr>"+n+"</tr>");a=s.join("");var c=Ii()("<table>"+a+"</table>");return o&&o.tableClassName&&c.addClass(o.tableClassName),c[0]}},{key:"deleteTable",value:function(t){var e=Ji.ancestor(t.commonAncestor(),Ji.isCell);Ii()(e).closest("table").remove()}}])}(),dr="bogus",fr=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,hr=/^(\+?\d{1,3}[\s-]?)?(\d{1,4})[\s-]?(\d{1,4})[\s-]?(\d{1,4})$/,pr=/^([A-Za-z][A-Za-z0-9+-.]*\:|#|\/)/,mr=function(){function t(e){var o=this;We(this,t),this.context=e,this.$note=e.layoutInfo.note,this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.options=e.options,this.lang=this.options.langInfo,this.editable=this.$editable[0],this.lastRange=null,this.snapshot=null,this.style=new ar,this.table=new ur,this.typing=new lr(e),this.bullet=new sr,this.history=new rr(e),this.context.memo("help.escape",this.lang.help.escape),this.context.memo("help.undo",this.lang.help.undo),this.context.memo("help.redo",this.lang.help.redo),this.context.memo("help.tab",this.lang.help.tab),this.context.memo("help.untab",this.lang.help.untab),this.context.memo("help.insertParagraph",this.lang.help.insertParagraph),this.context.memo("help.insertOrderedList",this.lang.help.insertOrderedList),this.context.memo("help.insertUnorderedList",this.lang.help.insertUnorderedList),this.context.memo("help.indent",this.lang.help.indent),this.context.memo("help.outdent",this.lang.help.outdent),this.context.memo("help.formatPara",this.lang.help.formatPara),this.context.memo("help.insertHorizontalRule",this.lang.help.insertHorizontalRule),this.context.memo("help.fontName",this.lang.help.fontName);for(var n=["bold","italic","underline","strikethrough","superscript","subscript","justifyLeft","justifyCenter","justifyRight","justifyFull","formatBlock","removeFormat","backColor"],i=0,r=n.length;i<r;i++)this[n[i]]=function(t){return function(e){o.beforeCommand(),document.execCommand(t,!1,e),o.afterCommand(!0)}}(n[i]),this.context.memo("help."+n[i],this.lang.help[n[i]]);this.fontName=this.wrapCommand(function(t){return o.fontStyling("font-family",ji.validFontName(t))}),this.fontSize=this.wrapCommand(function(t){var e=o.currentStyle()["font-size-unit"];return o.fontStyling("font-size",t+e)}),this.fontSizeUnit=this.wrapCommand(function(t){var e=o.currentStyle()["font-size"];return o.fontStyling("font-size",e+t)});for(var a=1;a<=6;
3a++)this["formatH"+a]=function(t){return function(){o.formatBlock("H"+t)}}(a),this.context.memo("help.formatH"+a,this.lang.help["formatH"+a]);this.insertParagraph=this.wrapCommand(function(){o.typing.insertParagraph(o.editable)}),this.insertOrderedList=this.wrapCommand(function(){o.bullet.insertOrderedList(o.editable)}),this.insertUnorderedList=this.wrapCommand(function(){o.bullet.insertUnorderedList(o.editable)}),this.indent=this.wrapCommand(function(){o.bullet.indent(o.editable)}),this.outdent=this.wrapCommand(function(){o.bullet.outdent(o.editable)}),this.insertNode=this.wrapCommand(function(t){if(!o.isLimited(Ii()(t).text().length)){var e=o.getLastRange();e.insertNode(t),o.setLastRange(or.createFromNodeAfter(t).select())}}),this.insertText=this.wrapCommand(function(t){if(!o.isLimited(t.length)){var e=o.getLastRange(),n=e.insertNode(Ji.createText(t));o.setLastRange(or.create(n,Ji.nodeLength(n)).select())}}),this.pasteHTML=this.wrapCommand(function(t){if(!o.isLimited(t.length)){t=o.context.invoke("codeview.purify",t);var e=o.getLastRange().pasteHTML(t);o.setLastRange(or.createFromNodeAfter(Bi.last(e)).select())}}),this.formatBlock=this.wrapCommand(function(t,e){var n=o.options.callbacks.onApplyCustomStyle;n?n.call(o,e,o.context,o.onFormatBlock):o.onFormatBlock(t,e)}),this.insertHorizontalRule=this.wrapCommand(function(){var t=o.getLastRange().insertNode(Ji.create("HR"));t.nextSibling&&o.setLastRange(or.create(t.nextSibling,0).normalize().select())}),this.lineHeight=this.wrapCommand(function(t){o.style.stylePara(o.getLastRange(),{lineHeight:t})}),this.createLink=this.wrapCommand(function(t){var e=[],n=t.url,i=t.text,r=t.isNewWindow,a=o.options.linkAddNoReferrer,s=o.options.linkAddNoOpener,l=t.range||o.getLastRange(),c=i.length-l.toString().length;if(!(c>0&&o.isLimited(c))){var u=l.toString()!==i;"string"==typeof n&&(n=n.trim()),n=o.options.onCreateLink?o.options.onCreateLink(n):o.checkLinkUrl(n);var d=[];if(u){l=l.deleteContents();var f=l.insertNode(Ii()("<A></A>").text(i)[0]);d.push(f)}else d=o.style.styleNodes(l,{nodeName:"A",expandClosestSibling:!0,onlyPartialContains:!0});Ii().each(d,function(t,o){Ii()(o).attr("href",n),r?(Ii()(o).attr("target","_blank"),a&&e.push("noreferrer"),s&&e.push("noopener"),e.length&&Ii()(o).attr("rel",e.join(" "))):Ii()(o).removeAttr("target")}),o.setLastRange(o.createRangeFromList(d).select())}}),this.color=this.wrapCommand(function(t){var e=t.foreColor,o=t.backColor;e&&document.execCommand("foreColor",!1,e),o&&document.execCommand("backColor",!1,o)}),this.foreColor=this.wrapCommand(function(t){document.execCommand("foreColor",!1,t)}),this.insertTable=this.wrapCommand(function(t){var e=t.split("x"),n=o.getLastRange().deleteContents();n.insertNode(o.table.createTable(e[0],e[1],o.options))}),this.removeMedia=this.wrapCommand(function(){var t=Ii()(o.restoreTarget()).parent();t.closest("figure").length?t.closest("figure").remove():t=Ii()(o.restoreTarget()).detach(),o.setLastRange(or.createFromSelection(t).select()),o.context.triggerEvent("media.delete",t,o.$editable)}),this.floatMe=this.wrapCommand(function(t){var e=Ii()(o.restoreTarget());e.toggleClass("note-float-left","left"===t),e.toggleClass("note-float-right","right"===t),e.css("float","none"===t?"":t)}),this.resize=this.wrapCommand(function(t){var e=Ii()(o.restoreTarget());t=parseFloat(t),0===t?e.css("width",""):e.css({width:100*t+"%",height:""})})}return qe(t,[{key:"initialize",value:function(){var t=this;this.$editable.on("keydown",function(e){if(e.keyCode===ir.code.ENTER&&t.context.triggerEvent("enter",e),t.context.triggerEvent("keydown",e),t.snapshot=t.history.makeSnapshot(),t.hasKeyShortCut=!1,e.isDefaultPrevented()||(t.options.shortcuts?t.hasKeyShortCut=t.handleKeyMap(e):t.preventDefaultEditableShortCuts(e)),t.isLimited(1,e)){var o=t.getLastRange();if(o.eo-o.so==0)return!1}t.setLastRange(),t.options.recordEveryKeystroke&&!1===t.hasKeyShortCut&&t.history.recordUndo()}).on("keyup",function(e){t.setLastRange(),t.context.triggerEvent("keyup",e)}).on("focus",function(e){t.setLastRange(),t.context.triggerEvent("focus",e)}).on("blur",function(e){t.context.triggerEvent("blur",e)}).on("mousedown",function(e){t.context.triggerEvent("mousedown",e)}).on("mouseup",function(e){t.setLastRange(),t.history.recordUndo(),t.context.triggerEvent("mouseup",e)}).on("scroll",function(e){t.context.triggerEvent("scroll",e)}).on("paste",function(e){t.setLastRange(),t.context.triggerEvent("paste",e)}).on("copy",function(e){t.context.triggerEvent("copy",e)}).on("input",function(){t.isLimited(0)&&t.snapshot&&t.history.applySnapsh
vendor: 8,965 bytes, line 3
3ot(t.snapshot)}),this.$editable.attr("spellcheck",this.options.spellCheck),this.$editable.attr("autocorrect",this.options.spellCheck),this.options.disableGrammar&&this.$editable.attr("data-gramm",!1),this.$editable.html(Ji.html(this.$note)||Ji.emptyPara),this.$editable.on(ji.inputEventName,Oi.debounce(function(){t.context.triggerEvent("change",t.$editable.html(),t.$editable)},10)),this.$editable.on("focusin",function(e){t.context.triggerEvent("focusin",e)}).on("focusout",function(e){t.context.triggerEvent("focusout",e)}),this.options.airMode?this.options.overrideContextMenu&&this.$editor.on("contextmenu",function(e){return t.context.triggerEvent("contextmenu",e),!1}):(this.options.width&&this.$editor.outerWidth(this.options.width),this.options.height&&this.$editable.outerHeight(this.options.height),this.options.maxHeight&&this.$editable.css("max-height",this.options.maxHeight),this.options.minHeight&&this.$editable.css("min-height",this.options.minHeight)),this.history.recordUndo(),this.setLastRange()}},{key:"destroy",value:function(){this.$editable.off()}},{key:"handleKeyMap",value:function(t){var e=this.options.keyMap[ji.isMac?"mac":"pc"],o=[];t.metaKey&&o.push("CMD"),t.ctrlKey&&!t.altKey&&o.push("CTRL"),t.shiftKey&&o.push("SHIFT");var n=ir.nameFromCode[t.keyCode];n&&o.push(n);var i=e[o.join("+")];if("TAB"!==n||this.options.tabDisable)if(i){if(!1!==this.context.invoke(i))return t.preventDefault(),!0}else ir.isEdit(t.keyCode)&&(ir.isRemove(t.keyCode)&&this.context.invoke("removed"),this.afterCommand());else this.afterCommand();return!1}},{key:"preventDefaultEditableShortCuts",value:function(t){(t.ctrlKey||t.metaKey)&&Bi.contains([66,73,85],t.keyCode)&&t.preventDefault()}},{key:"isLimited",value:function(t,e){return t=t||0,(void 0===e||!(ir.isMove(e.keyCode)||ir.isNavigation(e.keyCode)||e.ctrlKey||e.metaKey||Bi.contains([ir.code.BACKSPACE,ir.code.DELETE],e.keyCode)))&&(this.options.maxTextLength>0&&this.$editable.text().length+t>this.options.maxTextLength)}},{key:"checkLinkUrl",value:function(t){return fr.test(t)?"mailto://"+t:hr.test(t)?"tel://"+t:pr.test(t)?t:"http://"+t}},{key:"createRange",value:function(){return this.focus(),this.setLastRange(),this.getLastRange()}},{key:"createRangeFromList",value:function(t){var e=or.createFromNodeBefore(Bi.head(t)),o=e.getStartPoint(),n=or.createFromNodeAfter(Bi.last(t)),i=n.getEndPoint();return or.create(o.node,o.offset,i.node,i.offset)}},{key:"setLastRange",value:function(t){t?this.lastRange=t:(this.lastRange=or.create(this.editable),0===Ii()(this.lastRange.sc).closest(".note-editable").length&&(this.lastRange=or.createFromBodyElement(this.editable)))}},{key:"getLastRange",value:function(){return this.lastRange||this.setLastRange(),this.lastRange}},{key:"saveRange",value:function(t){t&&this.getLastRange().collapse().select()}},{key:"restoreRange",value:function(){this.lastRange&&(this.lastRange.select(),this.focus())}},{key:"saveTarget",value:function(t){this.$editable.data("target",t)}},{key:"clearTarget",value:function(){this.$editable.removeData("target")}},{key:"restoreTarget",value:function(){return this.$editable.data("target")}},{key:"currentStyle",value:function(){var t=or.create();return t&&(t=t.normalize()),t?this.style.current(t):this.style.fromNode(this.$editable)}},{key:"styleFromNode",value:function(t){return this.style.fromNode(t)}},{key:"undo",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.undo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"commit",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.commit(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"redo",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.redo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"beforeCommand",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),document.execCommand("styleWithCSS",!1,this.options.styleWithCSS),this.focus()}},{key:"afterCommand",value:function(t){this.normalizeContent(),this.history.recordUndo(),t||this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"tab",value:function(){var t=this.getLastRange();if(t.isCollapsed()&&t.isOnCell())this.table.tab(t);else{if(0===this.options.tabSize)return!1;this.isLimited(this.options.tabSize)||(this.beforeCommand(),this.typing.insertTab(t,this.options.tabSize),this.afterCommand())}}},{key:"untab",value:function(){var t=this.getLastRange();if(t.isCollapsed()&&t.isOnCell())this.table.tab(t,!0);else if(0===this.options.tabSize)return!1}},{key:"wrapCommand",value:function(t){return function(){this.beforeCommand(),t.apply(this,arguments),this.afterCommand()}}},{key:"removed",value:function(t,e,o){t=or.create(),t.isCollapsed()&&t.isOnCell()&&(e=t.ec,(o=e.tagName)&&1===e.childElementCount&&"BR"===e.childNodes[0].tagName&&("P"===o?e.remove():["TH","TD"].indexOf(o)>=0&&e.firstChild.remove()))}},{key:"insertImage",value:function(t,e){var o=this;return de(t,e).then(function(t){o.beforeCommand(),"function"==typeof e?e(t):("string"==typeof e&&t.attr("data-filename",e),t.css("width",Math.min(o.$editable.width(),t.width()))),t.show(),o.getLastRange().insertNode(t[0]),o.setLastRange(or.createFromNodeAfter(t[0]).select()),o.afterCommand()}).fail(function(t){o.context.triggerEvent("image.upload.error",t)})}},{key:"insertImagesAsDataURL",value:function(t){var e=this;Ii().each(t,function(t,o){var n=o.name;e.options.maximumImageFileSize&&e.options.maximumImageFileSize<o.size?e.context.triggerEvent("image.upload.error",e.lang.image.maximumFileSizeError):ue(o).then(function(t){return e.insertImage(t,n)}).fail(function(){e.context.triggerEvent("image.upload.error")})})}},{key:"insertImagesOrCallback",value:function(t){var e=this.options.callbacks;e.onImageUpload?this.context.triggerEvent("image.upload",t):this.insertImagesAsDataURL(t)}},{key:"getSelectedText",value:function(){var t=this.getLastRange();return t.isOnAnchor()&&(t=or.createFromNode(Ji.ancestor(t.sc,Ji.isAnchor))),t.toString()}},{key:"onFormatBlock",value:function(t,e){if(document.execCommand("FormatBlock",!1,ji.isMSIE?"<"+t+">":t),e&&e.length&&(e[0].tagName.toUpperCase()!==t.toUpperCase()&&(e=e.find(t)),e&&e.length)){var o=this.createRange(),n=Ii()([o.sc,o.ec]).closest(t);n.removeClass();var i=e[0].className||"";i&&n.addClass(i)}}},{key:"formatPara",value:function(){this.formatBlock("P")}},{key:"fontStyling",value:function(t,e){var o=this.getLastRange();if(""!==o){var n=this.style.styleNodes(o);if(this.$editor.find(".note-status-output").html(""),Ii()(n).css(t,e),o.isCollapsed()){var i=Bi.head(n);i&&!Ji.nodeLength(i)&&(i.innerHTML=Ji.ZERO_WIDTH_NBSP_CHAR,or.createFromNode(i.firstChild).select(),this.setLastRange(),this.$editable.data(dr,i))}else o.select()}else{var r=Ii().now();this.$editor.find(".note-status-output").html('<div id="note-status-output-'+r+'" class="alert alert-info">'+this.lang.output.noSelection+"</div>"),setTimeout(function(){Ii()("#note-status-output-"+r).remove()},5e3)}}},{key:"unlink",value:function(){var t=this.getLastRange();if(t.isOnAnchor()){var e=Ji.ancestor(t.sc,Ji.isAnchor);t=or.createFromNode(e),t.select(),this.setLastRange(),this.beforeCommand(),document.execCommand("unlink"),this.afterCommand()}}},{key:"getLinkInfo",value:function(){this.hasFocus()||this.focus();var t=this.getLastRange().expand(Ji.isAnchor),e=Ii()(Bi.head(t.nodes(Ji.isAnchor))),o={range:t,text:t.toString(),url:e.length?e.attr("href"):""};return e.length&&(o.isNewWindow="_blank"===e.attr("target")),o}},{key:"addRow",value:function(t){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.addRow(e,t),this.afterCommand())}},{key:"addCol",value:function(t){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.addCol(e,t),this.afterCommand())}},{key:"deleteRow",value:function(){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.deleteRow(t),this.afterCommand())}},{key:"deleteCol",value:function(){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.deleteCol(t),this.afterCommand())}},{key:"deleteTable",value:function(){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.deleteTable(t),this.afterCommand())}},{key:"resizeTo",value:function(t,e,o){var n;if(o){var i=t.y/t.x,r=e.data("ratio");n={width:r>i?t.x:t.y/r,height:r>i?t.x*r:t.y}}else n={width:t.x,height:t.y};e.css(n)}},{key:"hasFocus",value:function(){return this.$editable.is(":focus")}},{key:"focus",value:function(){this.hasFocus()||this.$editable.trigger("focus")}},{key:"isEmpty",value:function(){return Ji.isEmpty(this.$editable[0])||Ji.emptyPara===this.$editable.html()}}
3,{key:"empty",value:function(){this.context.invoke("code",Ji.emptyPara)}},{key:"normalizeContent",value:function(){this.$editable[0].normalize()}}])}(),vr=function(){function t(e){Ze(this,t),this.context=e,this.options=e.options,this.$editable=e.layoutInfo.editable}return Xe(t,[{key:"initialize",value:function(){this.$editable.on("paste",this.pasteByEvent.bind(this))}},{key:"pasteByEvent",value:function(t){var e=this;if(!this.context.isDisabled()){var o=t.originalEvent.clipboardData;if(o&&o.items&&o.items.length){var n=o.files,i=o.getData("Text");n.length>0&&this.options.allowClipboardImagePasting&&(this.context.invoke("editor.insertImagesOrCallback",n),t.preventDefault()),i.length>0&&this.context.invoke("editor.isLimited",i.length)&&t.preventDefault()}else if(window.clipboardData){var r=window.clipboardData.getData("text");this.context.invoke("editor.isLimited",r.length)&&t.preventDefault()}setTimeout(function(){e.context.invoke("editor.afterCommand")},10)}}}])}(),gr=function(){function t(e){eo(this,t),this.context=e,this.$eventListener=Ii()(document),this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.options=e.options,this.lang=this.options.langInfo,this.documentEventHandlers={},this.$dropzone=Ii()(['<div class="note-dropzone">','<div class="note-dropzone-message"></div>',"</div>"].join("")).prependTo(this.$editor)}return no(t,[{key:"initialize",value:function(){this.options.disableDragAndDrop?(this.documentEventHandlers.onDrop=function(t){t.preventDefault()},this.$eventListener=this.$dropzone,this.$eventListener.on("drop",this.documentEventHandlers.onDrop)):this.attachDragAndDropEvent()}},{key:"attachDragAndDropEvent",value:function(){var t=this,e=Ii()(),o=this.$dropzone.find(".note-dropzone-message");this.documentEventHandlers.onDragenter=function(n){var i=t.context.invoke("codeview.isActivated"),r=t.$editor.width()>0&&t.$editor.height()>0;i||e.length||!r||(t.$editor.addClass("dragover"),t.$dropzone.width(t.$editor.width()),t.$dropzone.height(t.$editor.height()),o.text(t.lang.image.dragImageHere)),e=e.add(n.target)},this.documentEventHandlers.onDragleave=function(o){e=e.not(o.target),e.length&&"BODY"!==o.target.nodeName||(e=Ii()(),t.$editor.removeClass("dragover"))},this.documentEventHandlers.onDrop=function(){e=Ii()(),t.$editor.removeClass("dragover")},this.$eventListener.on("dragenter",this.documentEventHandlers.onDragenter).on("dragleave",this.documentEventHandlers.onDragleave).on("drop",this.documentEventHandlers.onDrop),this.$dropzone.on("dragenter",function(){t.$dropzone.addClass("hover"),o.text(t.lang.image.dropImage)}).on("dragleave",function(){t.$dropzone.removeClass("hover"),o.text(t.lang.image.dragImageHere)}),this.$dropzone.on("drop",function(e){var o=e.originalEvent.dataTransfer;e.preventDefault(),o&&o.files&&o.files.length?(t.$editable.trigger("focus"),t.context.invoke("editor.insertImagesOrCallback",o.files)):Ii().each(o.types,function(e,n){if(!(n.toLowerCase().indexOf("_moz_")>-1)){var i=o.getData(n);n.toLowerCase().indexOf("text")>-1?t.context.invoke("editor.pasteHTML",i):Ii()(i).each(function(e,o){t.context.invoke("editor.insertNode",o)})}})}).on("dragover",!1)}},{key:"destroy",value:function(){var t=this;Object.keys(this.documentEventHandlers).forEach(function(e){ 4t.$eventListener.off(e.slice(2).toLowerCase(),t.documentEventHandlers[e])}),this.documentEventHandlers={}}}])}(),br=function(){function t(e){uo(this,t),this.context=e,this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.options=e.options,this.CodeMirrorConstructor=window.CodeMirror,this.options.codemirror.CodeMirrorConstructor&&(this.CodeMirrorConstructor=this.options.codemirror.CodeMirrorConstructor)}return ho(t,[{key:"sync",value:function(t){var e=this.isActivated(),o=this.CodeMirrorConstructor;e&&(t?o?this.$codable.data("cmEditor").getDoc().setValue(t):this.$codable.val(t):o&&this.$codable.data("cmEditor").save())}},{key:"initialize",value:function(){var t=this;this.$codable.on("keyup",function(e){e.keyCode===ir.code.ESCAPE&&t.deactivate()})}},{key:"isActivated",value:function(){return this.$editor.hasClass("codeview")}},{key:"toggle",value:function(){this.isActivated()?this.deactivate():this.activate(),this.context.triggerEvent("codeview.toggled")}},{key:"purify",value:function(t){if(this.options.codeviewFilter&&(t=t.replace(this.options.codeviewFilterRegex,""),this.options.codeviewIframeFilter)){var e=this.options.codeviewIframeWhitelistSrc.concat(this.options.codeviewIframeWhitelistSrcBase);t=t.replace(/(<iframe.*?>.*?(?:<\/iframe>)?)/gi,function(t){if(/<.+src(?==?('|"|\s)?)[\s\S]+src(?=('|"|\s)?)[^>]*?>/i.test(t))return"";var o,n=so(e);try{for(n.s();!(o=n.n()).done;){var i=o.value;if(new RegExp('src="(https?:)?//'+i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+'/(.+)"').test(t))return t}}catch(t){n.e(t)}finally{n.f()}return""})}return t}}
4,{key:"activate",value:function(){var t=this,e=this.CodeMirrorConstructor;if(this.$codable.val(Ji.html(this.$editable,this.options.prettifyHtml)),this.$codable.height(this.$editable.height()),this.context.invoke("toolbar.updateCodeview",!0),this.context.invoke("airPopover.updateCodeview",!0),this.$editor.addClass("codeview"),this.$codable.trigger("focus"),e){var o=e.fromTextArea(this.$codable[0],this.options.codemirror);if(this.options.codemirror.tern){var n=new e.TernServer(this.options.codemirror.tern);o.ternServer=n,o.on("cursorActivity",function(t){n.updateArgHints(t)})}o.on("blur",function(e){t.context.triggerEvent("blur.codeview",o.getValue(),e)}),o.on("change",function(){t.context.triggerEvent("change.codeview",o.getValue(),o)}),o.setSize(null,this.$editable.outerHeight()),this.$codable.data("cmEditor",o)}else this.$codable.on("blur",function(e){t.context.triggerEvent("blur.codeview",t.$codable.val(),e)}),this.$codable.on("input",function(){t.context.triggerEvent("change.codeview",t.$codable.val(),t.$codable)})}},{key:"deactivate",value:function(){var t=this.CodeMirrorConstructor;if(t){var e=this.$codable.data("cmEditor");this.$codable.val(e.getValue()),e.toTextArea()}var o=this.purify(Ji.value(this.$codable,this.options.prettifyHtml)||Ji.emptyPara),n=this.$editable.html()!==o;this.$editable.html(o),this.$editable.height(this.options.height?this.$codable.height():"auto"),this.$editor.removeClass("codeview"),n&&this.context.triggerEvent("change",this.$editable.html(),this.$editable),this.$editable.trigger("focus"),this.context.invoke("toolbar.updateCodeview",!1),this.context.invoke("airPopover.updateCodeview",!1)}},{key:"destroy",value:function(){this.isActivated()&&this.deactivate()}}])}(),yr=24,kr=function(){function t(e){go(this,t),this.$document=Ii()(document),this.$statusbar=e.layoutInfo.statusbar,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.options=e.options}return yo(t,[{key:"initialize",value:function(){var t=this;this.options.airMode||this.options.disableResizeEditor?this.destroy():this.$statusbar.on("mousedown touchstart",function(e){e.preventDefault(),e.stopPropagation();var o=t.$editable.offset().top-t.$document.scrollTop(),n=t.$codable.offset().top-t.$document.scrollTop(),i=function(e){var i="mousemove"==e.type?e:e.originalEvent.touches[0],r=i.clientY-(o+yr),a=i.clientY-(n+yr);r=t.options.minheight>0?Math.max(r,t.options.minheight):r,r=t.options.maxHeight>0?Math.min(r,t.options.maxHeight):r,a=t.options.minheight>0?Math.max(a,t.options.minheight):a,a=t.options.maxHeight>0?Math.min(a,t.options.maxHeight):a,t.$editable.height(r),t.$codable.height(a)};t.$document.on("mousemove touchmove",i).one("mouseup touchend",function(){t.$document.off("mousemove touchmove",i)})})}},{key:"destroy",value:function(){this.$statusbar.off(),this.$statusbar.addClass("locked")}}])}(),wr=function(){function t(e){var o=this;So(this,t),this.context=e,this.$editor=e.layoutInfo.editor,this.$toolbar=e.layoutInfo.toolbar,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.$window=Ii()(window),this.$scrollbar=Ii()("html, body"),this.scrollbarClassName="note-fullscreen-body",this.onResize=function(){o.resizeTo({h:o.$window.height()-o.$toolbar.outerHeight()})}}return To(t,[{key:"resizeTo",value:function(t){this.$editable.css("height",t.h),this.$codable.css("height",t.h),this.$codable.data("cmeditor")&&this.$codable.data("cmeditor").setsize(null,t.h)}},{key:"toggle",value:function(){this.$editor.toggleClass("fullscreen");var t=this.isFullscreen();this.$scrollbar.toggleClass(this.scrollbarClassName,t),t?(this.$editable.data("orgHeight",this.$editable.css("height")),this.$editable.data("orgMaxHeight",this.$editable.css("maxHeight")),this.$editable.css("maxHeight",""),this.$window.on("resize",this.onResize).trigger("resize")):(this.$window.off("resize",this.onResize),this.resizeTo({h:this.$editable.data("orgHeight")}),this.$editable.css("maxHeight",this.$editable.css("orgMaxHeight"))),this.context.invoke("toolbar.updateFullscreen",t)}},{key:"isFullscreen",value:function(){return this.$editor.hasClass("fullscreen")}},{key:"destroy",value:function(){this.$scrollbar.removeClass(this.scrollbarClassName)}}])}(),Cr=function(){function t(e){var o=this;Io(this,t),this.context=e,this.$document=Ii()(document),this.$editingArea=e.layoutInfo.editingArea,this.options=e.options,this.lang=this.options.langInfo,this.events={"summernote.mousedown":function(t,e){o.update(e.target,e)&&e.preventDefault()},"summernote.keyup summernote.scroll summernote.change summernote.dialog.shown":function(){o.update()},"summernote.disable summernote.blur":function(){o.hide()},"summernote.codeview.toggled":function(){o.update()}}}return Ro(t,[{key:"initialize",value:function(){var t=this;this.$handle=Ii()(['<div class="note-handle">','<div class="note-control-selection">','<div class="note-control-selection-bg"></div>','<div class="note-control-holder note-control-nw"></div>','<div class="note-control-holder note-control-ne"></div>','<div class="note-control-holder note-control-sw"></div>
4','<div class="',this.options.disableResizeImage?"note-control-holder":"note-control-sizing",' note-control-se"></div>',this.options.disableResizeImage?"":'<div class="note-control-selection-info"></div>',"</div>","</div>"].join("")).prependTo(this.$editingArea),this.$handle.on("mousedown",function(e){if(Ji.isControlSizing(e.target)){e.preventDefault(),e.stopPropagation();var o=t.$handle.find(".note-control-selection").data("target"),n=o.offset(),i=t.$document.scrollTop(),r=function(e){t.context.invoke("editor.resizeTo",{x:e.clientX-n.left,y:e.clientY-(n.top-i)},o,!e.shiftKey),t.update(o[0],e)};t.$document.on("mousemove",r).one("mouseup",function(e){e.preventDefault(),t.$document.off("mousemove",r),t.context.invoke("editor.afterCommand")}),o.data("ratio")||o.data("ratio",o.height()/o.width())}}),this.$handle.on("wheel",function(e){e.preventDefault(),t.update()})}},{key:"destroy",value:function(){this.$handle.remove()}},{key:"update",value:function(t,e){if(this.context.isDisabled())return!1;var o=Ji.isImg(t),n=this.$handle.find(".note-control-selection");if(this.context.invoke("imagePopover.update",t,e),o){var i=Ii()(t),r=this.$editingArea[0].getBoundingClientRect(),a=t.getBoundingClientRect();n.css({display:"block",left:a.left-r.left,top:a.top-r.top,width:a.width,height:a.height}).data("target",i);var s=new Image;s.src=i.attr("src");var l=a.width+"x"+a.height+" ("+this.lang.image.original+": "+s.width+"x"+s.height+")";n.find(".note-control-selection-info").text(l),this.context.invoke("editor.saveTarget",t)}else this.hide();return o}},{key:"hide",value:function(){this.context.invoke("editor.clearTarget"),this.$handle.children().hide()}}])}(),Sr="http://",xr=/^([A-Za-z][A-Za-z0-9+-.]*\:[\/]{2}|tel:|mailto:[A-Z0-9._%+-]+@|xmpp:[A-Z0-9._%+-]+@)?(www\.)?(.+)$/i,Tr=function(){function t(e){var o=this;Do(this,t),this.context=e,this.options=e.options,this.$editable=e.layoutInfo.editable,this.events={"summernote.keyup":function(t,e){e.isDefaultPrevented()||o.handleKeyup(e)},"summernote.keydown":function(t,e){o.handleKeydown(e)}}}return jo(t,[{key:"initialize",value:function(){this.lastWordRange=null}},{key:"destroy",value:function(){this.lastWordRange=null}},{key:"replace",value:function(){if(this.lastWordRange){var t=this.lastWordRange.toString(),e=t.match(xr);if(e&&(e[1]||e[2])){var o=e[1]?t:Sr+t,n=this.options.showDomainOnlyForAutolink?t.replace(/^(?:https?:\/\/)?(?:tel?:?)?(?:mailto?:?)?(?:xmpp?:?)?(?:www\.)?/i,"").split("/")[0]:t,i=Ii()("<a></a>").html(n).attr("href",o)[0];this.context.options.linkTargetBlank&&Ii()(i).attr("target","_blank"),this.lastWordRange.insertNode(i),this.lastWordRange=null,this.context.invoke("editor.focus"),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}}}},{key:"handleKeydown",value:function(t){if(Bi.contains([ir.code.ENTER,ir.code.SPACE],t.keyCode)){var e=this.context.invoke("editor.createRange").getWordRange();this.lastWordRange=e}}},{key:"handleKeyup",value:function(t){(ir.code.SPACE===t.keyCode||ir.code.ENTER===t.keyCode&&!t.shiftKey)&&this.replace()}}])}(),Er=function(){function t(e){var o=this;Mo(this,t),this.$note=e.layoutInfo.note,this.events={"summernote.change":function(){o.$note.val(e.invoke("code"))}}}return Wo(t,[{key:"shouldInitialize",value:function(){return Ji.isTextarea(this.$note[0])}}])}(),Pr=function(){function t(e){var o=this;_o(this,t),this.context=e,this.options=e.options.replace||{},this.keys=[ir.code.ENTER,ir.code.SPACE,ir.code.PERIOD,ir.code.COMMA,ir.code.SEMICOLON,ir.code.SLASH],this.previousKeydownCode=null,this.events={"summernote.keyup":function(t,e){e.isDefaultPrevented()||o.handleKeyup(e)},"summernote.keydown":function(t,e){o.handleKeydown(e)}}}return Zo(t,[{key:"shouldInitialize",value:function(){return!!this.options.match}},{key:"initialize",value:function(){this.lastWord=null}},{key:"destroy",value:function(){this.lastWord=null}},{key:"replace",value:function(){if(this.lastWord){var t=this,e=this.lastWord.toString();this.options.match(e,function(e){if(e){var o="";if("string"==typeof e?o=Ji.createText(e):e instanceof jQuery?o=e[0]:e instanceof Node&&(o=e),!o)return;
vendor: 6,980 bytes, line 4
4t.lastWord.insertNode(o),t.lastWord=null,t.context.invoke("editor.focus")}})}}},{key:"handleKeydown",value:function(t){if(this.previousKeydownCode&&Bi.contains(this.keys,this.previousKeydownCode))this.previousKeydownCode=t.keyCode;else{if(Bi.contains(this.keys,t.keyCode)){var e=this.context.invoke("editor.createRange").getWordRange();this.lastWord=e}this.previousKeydownCode=t.keyCode}}},{key:"handleKeyup",value:function(t){Bi.contains(this.keys,t.keyCode)&&this.replace()}}])}(),Nr=function(){function t(e){var o=this;Jo(this,t),this.context=e,this.$editingArea=e.layoutInfo.editingArea,this.options=e.options,!0===this.options.inheritPlaceholder&&(this.options.placeholder=this.context.$note.attr("placeholder")||this.options.placeholder),this.events={"summernote.init summernote.change":function(){o.update()},"summernote.codeview.toggled":function(){o.update()}}}return en(t,[{key:"shouldInitialize",value:function(){return!!this.options.placeholder}},{key:"initialize",value:function(){var t=this;this.$placeholder=Ii()('<div class="note-placeholder"></div>'),this.$placeholder.on("click",function(){t.context.invoke("focus")}).html(this.options.placeholder).prependTo(this.$editingArea),this.update()}},{key:"destroy",value:function(){this.$placeholder.remove()}},{key:"update",value:function(){var t=!this.context.invoke("codeview.isActivated")&&this.context.invoke("editor.isEmpty");this.$placeholder.toggle(t)}}])}(),Ir=function(){function t(e){an(this,t),this.ui=Ii().summernote.ui,this.context=e,this.$toolbar=e.layoutInfo.toolbar,this.options=e.options,this.lang=this.options.langInfo,this.invertedKeyMap=Oi.invertObject(this.options.keyMap[ji.isMac?"mac":"pc"])}return ln(t,[{key:"representShortcut",value:function(t){var e=this.invertedKeyMap[t];return this.options.shortcuts&&e?(ji.isMac&&(e=e.replace("CMD","â").replace("SHIFT","â§")),e=e.replace("BACKSLASH","\\").replace("SLASH","/").replace("LEFTBRACKET","[").replace("RIGHTBRACKET","]")," ("+e+")"):""}},{key:"button",value:function(t){return!this.options.tooltip&&t.tooltip&&delete t.tooltip,t.container=this.options.container,this.ui.button(t)}},{key:"initialize",value:function(){this.addToolbarButtons(),this.addImagePopoverButtons(),this.addLinkPopoverButtons(),this.addTablePopoverButtons(),this.fontInstalledMap={}}},{key:"destroy",value:function(){delete this.fontInstalledMap}},{key:"isFontInstalled",value:function(t){return Object.prototype.hasOwnProperty.call(this.fontInstalledMap,t)||(this.fontInstalledMap[t]=ji.isFontInstalled(t)||Bi.contains(this.options.fontNamesIgnoreCheck,t)),this.fontInstalledMap[t]}},{key:"isFontDeservedToAdd",value:function(t){return t=t.toLowerCase(),""!==t&&this.isFontInstalled(t)&&-1===ji.genericFontFamilies.indexOf(t)}},{key:"colorPalette",value:function(t,e,o,n){var i=this;return this.ui.buttonGroup({className:"note-color "+t,children:[this.button({className:"note-current-color-button",contents:this.ui.icon(this.options.icons.font+" note-recent-color"),tooltip:e,click:function(t){var e=Ii()(t.currentTarget);o&&n?i.context.invoke("editor.color",{backColor:e.attr("data-backColor"),foreColor:e.attr("data-foreColor")}):o?i.context.invoke("editor.color",{backColor:e.attr("data-backColor")}):n&&i.context.invoke("editor.color",{foreColor:e.attr("data-foreColor")})},callback:function(t){var e=t.find(".note-recent-color");o&&(e.css("background-color",i.options.colorButton.backColor),t.attr("data-backColor",i.options.colorButton.backColor)),n?(e.css("color",i.options.colorButton.foreColor),t.attr("data-foreColor",i.options.colorButton.foreColor)):e.css("color","transparent")}}),this.button({className:"dropdown-toggle",contents:this.ui.dropdownButtonContents("",this.options),tooltip:this.lang.color.more,data:{toggle:"dropdown"}}),this.ui.dropdown({items:(o?['<div class="note-palette">','<div class="note-palette-title">'+this.lang.color.background+"</div>","<div>",'<button type="button" class="note-color-reset btn btn-light btn-default" data-event="backColor" data-value="transparent">',this.lang.color.transparent,"</button>","</div>",'<div class="note-holder" data-event="backColor"><!-- back colors --></div>',"<div>",'<button type="button" class="note-color-select btn btn-light btn-default" data-event="openPalette" data-value="backColorPicker-'+this.options.id+'">',this.lang.color.cpSelect,"</button>",'<input type="color" id="backColorPicker-'+this.options.id+'" class="note-btn note-color-select-btn" value="'+this.options.colorButton.backColor+'" data-event="backColorPalette-'+this.options.id+'">',"</div>",'<div class="note-holder-custom" id="backColorPalette-'+this.options.id+'" data-event="backColor"></div>',"</div>"].join(""):"")+(n?['<div class="note-palette">','<div class="note-palette-title">'+this.lang.color.foreground+"</div>","<div>",'<button type="button" class="note-color-reset btn btn-light btn-default" data-event="removeFormat" data-value="foreColor">',this.lang.color.resetToDefault,"</button>","</div>",'<div class="note-holder" data-event="foreColor"><!-- fore colors --></div>',"<div>",'<button type="button" class="note-color-select btn btn-light btn-default" data-event="openPalette" data-value="foreColorPicker-'+this.options.id+'">',this.lang.color.cpSelect,"</button>",'<input type="color" id="foreColorPicker-'+this.options.id+'" class="note-btn note-color-select-btn" value="'+this.options.colorButton.foreColor+'" data-event="foreColorPalette-'+this.options.id+'">',"</div>",'<div class="note-holder-custom" id="foreColorPalette-'+this.options.id+'" data-event="foreColor"></div>',"</div>"].join(""):""),callback:function(t){t.find(".note-holder").each(function(t,e){var o=Ii()(e);o.append(i.ui.palette({colors:i.options.colors,colorsName:i.options.colorsName,eventName:o.data("event"),container:i.options.container,tooltip:i.options.tooltip}).render())});var e=[["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF"]];t.find(".note-holder-custom").each(function(t,o){var n=Ii()(o);n.append(i.ui.palette({colors:e,colorsName:e,eventName:n.data("event"),container:i.options.container,tooltip:i.options.tooltip}).render())}),t.find("input[type=color]").each(function(e,o){Ii()(o).on("change",function(){var e=t.find("#"+Ii()(this).data("event")).find(".note-color-btn").first(),o=this.value.toUpperCase();e.css("background-color",o).attr("aria-label",o).attr("data-value",o).attr("data-original-title",o),e.trigger("click")})})},click:function(e){e.stopPropagation();var o=Ii()("."+t).find(".note-dropdown-menu"),n=Ii()(e.target),r=n.data("event"),a=n.attr("data-value");if("openPalette"===r){var s=o.find("#"+a),l=Ii()(o.find("#"+s.data("event")).find(".note-color-row")[0]),c=l.find(".note-color-btn").last().detach(),u=s.val();c.css("background-color",u).attr("aria-label",u).attr("data-value",u).attr("data-original-title",u),l.prepend(c),s.trigger("click")}else{if(Bi.contains(["backColor","foreColor"],r)){var d="backColor"===r?"background-color":"color",f=n.closest(".
4note-color").find(".note-recent-color"),h=n.closest(".note-color").find(".note-current-color-button");f.css(d,a),h.attr("data-"+r,a)}i.context.invoke("editor."+r,a)}}})]}).render()}},{key:"addToolbarButtons",value:function(){var t=this;this.context.memo("button.style",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.magic),t.options),tooltip:t.lang.style.style,data:{toggle:"dropdown"}}),t.ui.dropdown({className:"dropdown-style",items:t.options.styleTags,title:t.lang.style.style,template:function(e){"string"==typeof e&&(e={tag:e,title:Object.prototype.hasOwnProperty.call(t.lang.style,e)?t.lang.style[e]:e});var o=e.tag,n=e.title,i=e.style?' style="'+e.style+'" ':"",r=e.className?' class="'+e.className+'"':"";return"<"+o+i+r+">"+n+"</"+o+">"},click:t.context.createInvokeHandler("editor.formatBlock")})]).render()});for(var e=function(){var e=t.options.styleTags[o];t.context.memo("button.style."+e,function(){return t.button({className:"note-btn-style-"+e,contents:'<div data-value="'+e+'">'+e.toUpperCase()+"</div>",tooltip:t.lang.style[e],click:t.context.createInvokeHandler("editor.formatBlock")}).render()})},o=0,n=this.options.styleTags.length;o<n;o++)e();this.context.memo("button.bold",function(){return t.button({className:"note-btn-bold",contents:t.ui.icon(t.options.icons.bold),tooltip:t.lang.font.bold+t.representShortcut("bold"),click:t.context.createInvokeHandlerAndUpdateState("editor.bold")}).render()}),this.context.memo("button.italic",function(){return t.button({className:"note-btn-italic",contents:t.ui.icon(t.options.icons.italic),tooltip:t.lang.font.italic+t.representShortcut("italic"),click:t.context.createInvokeHandlerAndUpdateState("editor.italic")}).render()}),this.context.memo("button.underline",function(){return t.button({className:"note-btn-underline",contents:t.ui.icon(t.options.icons.underline),tooltip:t.lang.font.underline+t.representShortcut("underline"),click:t.context.createInvokeHandlerAndUpdateState("editor.underline")}).render()}),this.context.memo("button.clear",function(){return t.button({contents:t.ui.icon(t.options.icons.eraser),tooltip:t.lang.font.clear+t.representShortcut("removeFormat"),click:t.context.createInvokeHandler("editor.removeFormat")}).render()}),this.context.memo("button.strikethrough",function(){return t.button({className:"note-btn-strikethrough",contents:t.ui.icon(t.options.icons.strikethrough),tooltip:t.lang.font.strikethrough+t.representShortcut("strikethrough"),click:t.context.createInvokeHandlerAndUpdateState("editor.strikethrough")}).render()}),this.context.memo("button.superscript",function(){return t.button({className:"note-btn-superscript",contents:t.ui.icon(t.options.icons.superscript),tooltip:t.lang.font.superscript,click:t.context.createInvokeHandlerAndUpdateState("editor.superscript")}).render()}),this.context.memo("button.subscript",function(){return t.button({className:"note-btn-subscript",contents:t.ui.icon(t.options.icons.subscript),tooltip:t.lang.font.subscript,click:t.context.createInvokeHandlerAndUpdateState("editor.subscript")}).render()}),this.context.memo("button.fontname",function(){var e=t.context.invoke("editor.currentStyle");return t.options.addDefaultFonts&&Ii().each(e["font-family"].split(","),function(e,o){o=o.trim().replace(/['"]+/g,""),t.isFontDeservedToAdd(o)&&-1===t.options.fontNames.indexOf(o)&&t.options.fontNames.push(o)}),t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents('<span class="note-current-fontname"></span>',t.options),tooltip:t.lang.font.name,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({className:"dropdown-fontname",checkClassName:t.options.icons.menuCheck,items:t.options.fontNames.filter(t.isFontInstalled.bind(t)),title:t.lang.font.name,template:function(t){return'<span style="font-family: '+ji.validFontName(t)+'">'+t+"</span>"},click:t.context.createInvokeHandlerAndUpdateState("editor.fontName")})]).render()}),this.context.memo("button.fontsize",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents('<span class="note-current-fontsize"></span>',t.options),tooltip:t.lang.font.size,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({className:"dropdown-fontsize",checkClassName:t.options.icons.menuCheck,items:t.options.fontSizes,title:t.lang.font.size,click:t.context.createInvokeHandlerAndUpdateState("editor.fontSize")})]).render()}),this.context.memo("button.fontsizeunit",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents('<span class="note-current-fontsizeunit"></span>',t.options),tooltip:t.lang.font.sizeunit,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({className:"dropdown-fontsizeunit",checkClassName:t.options.icons.menuCheck,items:t.options.fontSizeUnits,title:t.lang.font.sizeunit,click:t.context.createInvokeHandlerAndUpdateState("editor.fontSizeUnit")})]).render()}),this.context.memo("button.color",function(){return t.colorPalette
4("note-color-all",t.lang.color.recent,!0,!0)}),this.context.memo("button.forecolor",function(){return t.colorPalette("note-color-fore",t.lang.color.foreground,!1,!0)}),this.context.memo("button.backcolor",function(){return t.colorPalette("note-color-back",t.lang.color.background,!0,!1)}),this.context.memo("button.ul",function(){return t.button({contents:t.ui.icon(t.options.icons.unorderedlist),tooltip:t.lang.lists.unordered+t.representShortcut("insertUnorderedList"),click:t.context.createInvokeHandler("editor.insertUnorderedList")}).render()}),this.context.memo("button.ol",function(){return t.button({contents:t.ui.icon(t.options.icons.orderedlist),tooltip:t.lang.lists.ordered+t.representShortcut("insertOrderedList"),click:t.context.createInvokeHandler("editor.insertOrderedList")}).render()});var i=this.button({contents:this.ui.icon(this.options.icons.alignLeft),tooltip:this.lang.paragraph.left+this.representShortcut("justifyLeft"),click:this.context.createInvokeHandler("editor.justifyLeft")}),r=this.button({contents:this.ui.icon(this.options.icons.alignCenter),tooltip:this.lang.paragraph.center+this.representShortcut("justifyCenter"),click:this.context.createInvokeHandler("editor.justifyCenter")}),a=this.button({contents:this.ui.icon(this.options.icons.alignRight),tooltip:this.lang.paragraph.right+this.representShortcut("justifyRight"),click:this.context.createInvokeHandler("editor.justifyRight")}),s=this.button({contents:this.ui.icon(this.options.icons.alignJustify),tooltip:this.lang.paragraph.justify+this.representShortcut("justifyFull"),click:this.context.createInvokeHandler("editor.justifyFull")}),l=this.button({contents:this.ui.icon(this.options.icons.outdent),tooltip:this.lang.paragraph.outdent+this.representShortcut("outdent"),click:this.context.createInvokeHandler("editor.outdent")}),c=this.button({contents:this.ui.icon(this.options.icons.indent),tooltip:this.lang.paragraph.indent+this.representShortcut("indent"),click:this.context.createInvokeHandler("editor.indent")});this.context.memo("button.justifyLeft",Oi.invoke(i,"render")),this.context.memo("button.justifyCenter",Oi.invoke(r,"render")),this.context.memo("button.justifyRight",Oi.invoke(a,"render")),this.context.memo("button.justifyFull",Oi.invoke(s,"render")),this.context.memo("button.outdent",Oi.invoke(l,"render")),this.context.memo("button.indent",Oi.invoke(c,"render")),this.context.memo("button.paragraph",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.alignLeft),t.options),tooltip:t.lang.paragraph.paragraph,data:{toggle:"dropdown"}}),t.ui.dropdown([t.ui.buttonGroup({className:"note-align",children:[i,r,a,s]}),t.ui.buttonGroup({className:"note-list",children:[l,c]})])]).render()}),this.context.memo("button.height",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.textHeight),t.options),tooltip:t.lang.font.height,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({items:t.options.lineHeights,checkClassName:t.options.icons.menuCheck,className:"dropdown-line-height",title:t.lang.font.height,click:t.context.createInvokeHandler("editor.lineHeight")})]).render()}),this.context.memo("button.table",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.table),t.options),tooltip:t.lang.table.table,data:{toggle:"dropdown"}}),t.ui.dropdown({title:t.lang.table.table,className:"note-table",items:['<div class="note-dimension-picker">','<div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"></div>','<div class="note-dimension-picker-highlighted"></div>','<div class="note-dimension-picker-unhighlighted"></div>',"</div>",'<div class="note-dimension-display">1 x 1</div>'].join("")})],{callback:function(e){var o=e.find(".note-dimension-picker-mousecatcher");o.css({width:t.options.insertTableMaxSize.col+"em",height:t.options.insertTableMaxSize.row+"em"}).on("mousedown",t.context.createInvokeHandler("editor.insertTable")).on("mousemove",t.tableMoveHandler.bind(t))}}).render()}),this.context.memo("button.link",function(){return t.button({contents:t.ui.icon(t.options.icons.link),tooltip:t.lang.link.link+t.representShortcut("linkDialog.show"),click:t.context.createInvokeHandler("linkDialog.show")}).render()}),this.context.memo("button.picture",function(){return t.button({contents:t.ui.icon(t.options.icons.picture),tooltip:t.lang.
4image.image,click:t.context.createInvokeHandler("imageDialog.show")}).render()}),this.context.memo("button.video",function(){return t.button({contents:t.ui.icon(t.options.icons.video),tooltip:t.lang.video.video,click:t.context.createInvokeHandler("videoDialog.show")}).render()}),this.context.memo("button.hr",function(){return t.button({contents:t.ui.icon(t.options.icons.minus),tooltip:t.lang.hr.insert+t.representShortcut("insertHorizontalRule"),click:t.context.createInvokeHandler("editor.insertHorizontalRule")}).render()}),this.context.memo("button.fullscreen",function(){return t.button({className:"btn-fullscreen note-codeview-keep",contents:t.ui.icon(t.options.icons.arrowsAlt),tooltip:t.lang.options.fullscreen,click:t.context.createInvokeHandler("fullscreen.toggle")}).render()}),this.context.memo("button.codeview",function(){return t.button({className:"btn-codeview note-codeview-keep",contents:t.ui.icon(t.options.icons.code),tooltip:t.lang.options.codeview,click:t.context.createInvokeHandler("codeview.toggle")}).render()}),this.context.memo("button.redo",function(){return t.button({contents:t.ui.icon(t.options.icons.redo),tooltip:t.lang.history.redo+t.representShortcut("redo"),click:t.context.createInvokeHandler("editor.redo")}).render()}),this.context.memo("button.undo",function(){return t.button({contents:t.ui.icon(t.options.icons.undo),tooltip:t.lang.history.undo+t.representShortcut("undo"),click:t.context.createInvokeHandler("editor.undo")}).render()}),this.context.memo("button.help",function(){return t.button({contents:t.ui.icon(t.options.icons.question),tooltip:t.lang.options.help,click:t.context.createInvokeHandler("helpDialog.show")}).render()})}},{key:"addImagePopoverButtons",value:function(){var t=this;this.context.memo("button.resizeFull",function(){return t.button({contents:'<span class="note-fontsize-10">100%</span>',tooltip:t.lang.image.resizeFull,click:t.context.createInvokeHandler("editor.resize","1")}
4).render()}),this.context.memo("button.resizeHalf",function(){return t.button({contents:'<span class="note-fontsize-10">50%</span>',tooltip:t.lang.image.resizeHalf,click:t.context.createInvokeHandler("editor.resize","0.5")}).render()}),this.context.memo("button.resizeQuarter",function(){return t.button({contents:'<span class="note-fontsize-10">25%</span>',tooltip:t.lang.image.resizeQuarter,click:t.context.createInvokeHandler("editor.resize","0.25")}).render()}),this.context.memo("button.resizeNone",function(){return t.button({contents:t.ui.icon(t.options.icons.rollback),tooltip:t.lang.image.resizeNone,click:t.context.createInvokeHandler("editor.resize","0")}).render()}),this.context.memo("button.floatLeft",function(){return t.button({contents:t.ui.icon(t.options.icons.floatLeft),tooltip:t.lang.image.floatLeft,click:t.context.createInvokeHandler("editor.floatMe","left")}).render()}),this.context.memo("button.floatRight",function(){return t.button({contents:t.ui.icon(t.options.icons.floatRight),tooltip:t.lang.image.floatRight,click:t.context.createInvokeHandler("editor.floatMe","right")}).render()}),this.context.memo("button.floatNone",function(){return t.button({contents:t.ui.icon(t.options.icons.rollback),tooltip:t.lang.image.floatNone,click:t.context.createInvokeHandler("editor.floatMe","none")}).render()}),this.context.memo("button.removeMedia",function(){return t.button({contents:t.ui.icon(t.options.icons.trash),tooltip:t.lang.image.remove,click:t.context.createInvokeHandler("editor.removeMedia")}).render()})}},{key:"addLinkPopoverButtons",value:function(){var t=this;this.context.memo("button.linkDialogShow",function(){return t.button({contents:t.ui.icon(t.options.icons.link),tooltip:t.lang.link.edit,click:t.context.createInvokeHandler("linkDialog.show")}).render()}),this.context.memo("button.unlink",function(){return t.button({contents:t.ui.icon(t.options.icons.unlink),tooltip:t.lang.link.unlink,click:t.context.createInvokeHandler("editor.unlink")}).render()})}},{key:"addTablePopoverButtons",value:function(){var t=this;this.context.memo("button.addRowUp",function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.rowAbove),tooltip:t.lang.table.addRowAbove,click:t.context.createInvokeHandler("editor.addRow","top")}).render()}),this.context.memo("button.addRowDown",function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.rowBelow),tooltip:t.lang.table.addRowBelow,click:t.context.createInvokeHandler("editor.addRow","bottom")}).render()}),this.context.memo("button.addColLeft",function(){return t.button({className:"btn-md", 5contents:t.ui.icon(t.options.icons.colBefore),tooltip:t.lang.table.addColLeft,click:t.context.createInvokeHandler("editor.addCol","left")}).render()}),this.context.memo("button.addColRight",function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.colAfter),tooltip:t.lang.table.addColRight,click:t.context.createInvokeHandler("editor.addCol","right")}).render()}),this.context.memo("button.deleteRow",function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.rowRemove),tooltip:t.lang.table.delRow,click:t.context.createInvokeHandler("editor.deleteRow")}).render()}),this.context.memo("button.deleteCol",function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.colRemove),tooltip:t.lang.table.delCol,click:t.context.createInvokeHandler("editor.deleteCol")}).render()}),this.context.memo("button.deleteTable",function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.trash),tooltip:t.lang.table.delTable,click:t.context.createInvokeHandler("editor.deleteTable")}).render()})}},{key:"build",value:function(t,e){for(var o=0,n=e.length;o<n;o++){for(var i=e[o],r=Array.isArray(i)?i[0]:i,a=Array.isArray(i)?1===i.length?[i[0]]:i[1]:[i],s=this.ui.buttonGroup({className:"note-"+r}).render(),l=0,c=a.length;l<c;l++){var u=this.context.memo("button."+a[l]);u&&s.append("function"==typeof u?u(this.context):u)}s.appendTo(t)}}},{key:"updateCurrentStyle",value:function(t){var e=t||this.$toolbar,o=this.context.
5invoke("editor.currentStyle");if(this.updateBtnStates(e,{".note-btn-bold":function(){return"bold"===o["font-bold"]},".note-btn-italic":function(){return"italic"===o["font-italic"]},".note-btn-underline":function(){return"underline"===o["font-underline"]},".note-btn-subscript":function(){return"subscript"===o["font-subscript"]},".note-btn-superscript":function(){return"superscript"===o["font-superscript"]},".note-btn-strikethrough":function(){return"strikethrough"===o["font-strikethrough"]}}),o["font-family"]){var n=o["font-family"].split(",").map(function(t){return t.replace(/[\'\"]/g,"").replace(/\s+$/,"").replace(/^\s+/,"")}),i=Bi.find(n,this.isFontInstalled.bind(this));e.find(".dropdown-fontname a").each(function(t,e){var o=Ii()(e),n=o.data("value")+""==i+"";o.toggleClass("checked",n)}),e.find(".note-current-fontname").text(i).css("font-family",i)}if(o["font-size"]){var r=o["font-size"];e.find(".dropdown-fontsize a").each(function(t,e){var o=Ii()(e),n=o.data("value")+""==r+"";o.toggleClass("checked",n)}),e.find(".note-current-fontsize").text(r);var a=o["font-size-unit"];e.find(".dropdown-fontsizeunit a").each(function(t,e){var o=Ii()(e),n=o.data("value")+""==a+"";o.toggleClass("checked",n)}),e.find(".note-current-fontsizeunit").text(a)}if(o["line-height"]){var s=o["line-height"];e.find(".dropdown-line-height a").each(function(t,e){var o=Ii()(e),n=Ii()(e).data("value")+""==s+"";o.toggleClass("checked",n)}),e.find(".note-current-line-height").text(s)}}},{key:"updateBtnStates",value:function(t,e){var o=this;Ii().each(e,function(e,n){o.ui.toggleBtnActive(t.find(e),n())})}},{key:"tableMoveHandler",value:function(t){var e,o=18,n=Ii()(t.target.parentNode),i=n.next(),r=n.find(".note-dimension-picker-mousecatcher"),a=n.find(".note-dimension-picker-highlighted"),s=n.find(".note-dimension-picker-unhighlighted");if(void 0===t.offsetX){var l=Ii()(t.target).offset();e={x:t.pageX-l.left,y:t.pageY-l.top}}else e={x:t.offsetX,y:t.offsetY};var c={c:Math.ceil(e.x/o)||1,r:Math.ceil(e.y/o)||1};a.css({width:c.c+"em",height:c.r+"em"}),r.data("value",c.c+"x"+c.r),c.c>3&&c.c<this.options.insertTableMaxSize.col&&s.css({width:c.c+1+"em"}),c.r>3&&c.r<this.options.insertTableMaxSize.row&&s.css({height:c.r+1+"em"}),i.html(c.c+" x "+c.r)}}])}(),$r=function(){function t(e){fn(this,t),this.context=e,this.$window=Ii()(window),this.$document=Ii()(document),this.ui=Ii().summernote.ui,this.$note=e.layoutInfo.note,this.$editor=e.layoutInfo.editor,this.$toolbar=e.layoutInfo.toolbar,this.$editable=e.layoutInfo.editable,this.$statusbar=e.layoutInfo.statusbar,this.options=e.options,this.isFollowing=!1,this.followScroll=this.followScroll.bind(this)}return pn(t,[{key:"shouldInitialize",value:function(){return!this.options.airMode}},{key:"initialize",value:function(){var t=this;this.options.toolbar=this.options.toolbar||[],this.options.toolbar.length?this.context.invoke("buttons.build",this.$toolbar,this.options.toolbar):this.$toolbar.hide(),this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.changeContainer(!1),this.$note.on("summernote.keyup summernote.mouseup summernote.change",function(){t.context.invoke("buttons.updateCurrentStyle")}),this.context.invoke("buttons.updateCurrentStyle"),this.options.followingToolbar&&this.$window.on("scroll resize",this.followScroll)}},{key:"destroy",value:function(){this.$toolbar.children().remove(),this.options.followingToolbar&&this.$window.off("scroll resize",this.followScroll)}},{key:"followScroll",value:function(){if(this.$editor.hasClass("fullscreen"))return!1;var t=this.$editor.outerHeight(),e=this.$editor.width(),o=this.$toolbar.height(),n=this.$statusbar.height(),i=0;this.options.otherStaticBar&&(i=Ii()(this.options.otherStaticBar).outerHeight());var r=this.$document.scrollTop(),a=this.$editor.offset().top,s=a+t,l=a-i,c=s-i-o-n;!this.isFollowing&&r>l&&r<c-o?(this.isFollowing=!0,this.$editable.css({marginTop:this.$toolbar.outerHeight()}),this.$toolbar.css({position:"fixed",top:i,width:e,zIndex:1e3})):this.isFollowing&&(r<l||r>c)&&(this.isFollowing=!1,this.$toolbar.css({position:"relative",top:0,width:"100%",zIndex:"auto"}),this.$editable.css({marginTop:""}))}}
5,{key:"changeContainer",value:function(t){t?this.$toolbar.prependTo(this.$editor):this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.options.followingToolbar&&this.followScroll()}},{key:"updateFullscreen",value:function(t){this.ui.toggleBtnActive(this.$toolbar.find(".btn-fullscreen"),t),this.changeContainer(t)}},{key:"updateCodeview",value:function(t){this.ui.toggleBtnActive(this.$toolbar.find(".btn-codeview"),t),t?this.deactivate():this.activate()}},{key:"activate",value:function(t){var e=this.$toolbar.find("button");t||(e=e.not(".note-codeview-keep")),this.ui.toggleBtn(e,!0)}},{key:"deactivate",value:function(t){var e=this.$toolbar.find("button");t||(e=e.not(".note-codeview-keep")),this.ui.toggleBtn(e,!1)}}])}(),Rr=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,Ar=/^(\+?\d{1,3}[\s-]?)?(\d{1,4})[\s-]?(\d{1,4})[\s-]?(\d{1,4})$/,Lr=/^([A-Za-z][A-Za-z0-9+-.]*\:|#|\/)/,Fr=function(){function t(e){bn(this,t),this.context=e,this.ui=Ii().summernote.ui,this.$body=Ii()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo,e.memo("help.linkDialog.show",this.options.langInfo.help["linkDialog.show"])}return kn(t,[{key:"initialize",value:function(){var t=this.options.dialogsInBody?this.$body:this.options.container,e=['<div class="form-group note-form-group">','<label for="note-dialog-link-txt-'.concat(this.options.id,'" class="text-muted note-form-label">').concat(this.lang.link.textToDisplay,"</label>"),'<input id="note-dialog-link-txt-'.concat(this.options.id,'" class="note-link-text form-control note-form-control note-input" type="text"/>'),"</div>",'<div class="form-group note-form-group">','<label for="note-dialog-link-url-'.concat(this.options.id,'" class="text-muted note-form-label">').concat(this.lang.link.url,"</label>"),'<input id="note-dialog-link-url-'.concat(this.options.id,'" class="note-link-url form-control note-form-control note-input" type="text" value="http://"/>'),"</div>",this.options.disableLinkTarget?"":Ii()("<div></div>").append(this.ui.checkbox({className:"sn-checkbox-open-in-new-window",text:this.lang.link.openInNewWindow,checked:!0}).render()).html()].join(""),o="btn btn-primary note-btn note-btn-primary note-link-btn",n='<input type="button" href="#" class="'.concat(o,'" value="').concat(this.lang.link.insert,'" disabled>');this.$dialog=this.ui.dialog({className:"link-dialog",title:this.lang.link.insert,fade:this.options.dialogsFade,body:e,footer:n}).render().appendTo(t)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(t,e){t.on("keypress",function(t){t.keyCode===ir.code.ENTER&&(t.preventDefault(),e.trigger("click"))})}},{key:"checkLinkUrl",value:function(t){return Rr.test(t)?"mailto://"+t:Ar.test(t)?"tel://"+t:Lr.test(t)?t:"http://"+t}},{key:"onCheckLinkUrl",value:function(t){var e=this;t.on("blur",function(t){t.target.value=""==t.target.value?"":e.checkLinkUrl(t.target.value)})}},{key:"toggleLinkBtn",value:function(t,e,o){this.ui.toggleBtn(t,e.val()&&o.val())}},{key:"showLinkDialog",value:function(t){var e=this;return Ii().Deferred(function(o){var n=e.$dialog.find(".note-link-text"),i=e.$dialog.find(".note-link-url"),r=e.$dialog.find(".note-link-btn"),a=e.$dialog.find(".sn-checkbox-open-in-new-window input[type=checkbox]");e.ui.onDialogShown(e.$dialog,function(){e.context.triggerEvent("dialog.shown"),!t.url&&Oi.isValidUrl(t.text)&&(t.url=e.checkLinkUrl(t.text)),n.on("input paste propertychange",function(){var o=n.val(),a=document.createElement("div");a.innerText=o,o=a.innerHTML,t.text=o,e.toggleLinkBtn(r,n,i)}).val(t.text),i.on("input paste propertychange",function(){t.text||n.val(i.val()),e.toggleLinkBtn(r,n,i)}).val(t.url),ji.isSupportTouch||i.trigger("focus"),e.toggleLinkBtn(r,n,i),e.bindEnterKey(i,r),e.bindEnterKey(n,r),e.onCheckLinkUrl(i);var s=void 0!==t.isNewWindow?t.isNewWindow:e.context.options.linkTargetBlank;a.prop("checked",s),r.one("click",function(r){r.preventDefault(),o.resolve({range:t.range,url:i.val(),text:n.val(),isNewWindow:a.is(":checked")}),e.ui.hideDialog(e.$dialog)})}),e.ui.onDialogHidden(e.$dialog,function(){n.off(),i.off(),r.off(),"pending"===o.state()&&o.reject()}),e.ui.showDialog(e.$dialog)}).promise()}}
5,{key:"show",value:function(){var t=this,e=this.context.invoke("editor.getLinkInfo");this.context.invoke("editor.saveRange"),this.showLinkDialog(e).then(function(e){t.context.invoke("editor.restoreRange"),t.context.invoke("editor.createLink",e)}).fail(function(){t.context.invoke("editor.restoreRange")})}}])}(),Dr=function(){function t(e){var o=this;xn(this,t),this.context=e,this.ui=Ii().summernote.ui,this.options=e.options,this.events={"summernote.keyup summernote.mouseup summernote.change summernote.scroll":function(){o.update()},"summernote.disable summernote.dialog.shown":function(){o.hide()},"summernote.blur":function(t,e){e.originalEvent&&e.originalEvent.relatedTarget&&o.$popover[0].contains(e.originalEvent.relatedTarget)||o.hide()}}}return En(t,[{key:"shouldInitialize",value:function(){return!Bi.isEmpty(this.options.popover.link)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-link-popover",callback:function(t){var e=t.find(".popover-content,.note-popover-content");e.prepend('<span><a target="_blank"></a> </span>')}}).render().appendTo(this.options.container);var t=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",t,this.options.popover.link),this.$popover.on("mousedown",function(t){t.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(){if(this.context.invoke("editor.hasFocus")){var t=this.context.invoke("editor.getLastRange");if(t.isCollapsed()&&t.isOnAnchor()){var e=Ji.ancestor(t.sc,Ji.isAnchor),o=Ii()(e).attr("href");this.$popover.find("a").attr("href",o).text(o);var n=Ji.posFromPlaceholder(e),i=Ii()(this.options.container).offset();n.top-=i.top,n.left-=i.left,this.$popover.css({display:"block",left:n.left,top:n.top})}else this.hide()}else this.hide()}},{key:"hide",value:function(){this.$popover.hide()}}])}(),Hr=function(){function t(e){$n(this,t),this.context=e,this.ui=Ii().summernote.ui,this.$body=Ii()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}return An(t,[{key:"initialize",value:function(){var t="";if(this.options.maximumImageFileSize){var e=Math.floor(Math.log(this.options.maximumImageFileSize)/Math.log(1024)),o=1*(this.options.maximumImageFileSize/Math.pow(1024,e)).toFixed(2)+" "+" KMGTP"[e]+"B";t="<small>".concat(this.lang.image.maximumFileSize+" : "+o,"</small>")}var n=this.options.dialogsInBody?this.$body:this.options.container,i=['<div class="form-group note-form-group note-group-select-from-files">','<label for="note-dialog-image-file-'+this.options.id+'" class="note-form-label">'+this.lang.image.selectFromFiles+"</label>",'<input id="note-dialog-image-file-'+this.options.id+'" class="hidden note-image-input form-control-file note-form-control note-input" ',' type="file" name="files" accept="'+this.options.acceptImageFileTypes+'" multiple="multiple"/>',t,"</div>",'<div class="form-group note-group-image-url">','<label for="note-dialog-image-url-'+this.options.id+'" class="note-form-label">'+this.lang.image.url+"</label>",'<input id="note-dialog-image-url-'+this.options.id+'" class="note-image-url form-control note-form-control note-input" type="text"/>',"</div>"].join(""),r=this.options.id,a=this.lang.image.selectFromFiles||"Upload file",s=(i=['<h3 class="form-header m-0 p-t-0"><i class="fal fa-fw m-r-5 fa-upload"></i> '+a+"</h3>",'<div class="file-upload-container">','<div class="file-upload">','<label for="file-upload-'+r+'" class="upload-btn noselect">','<i class="fat fa-paperclip" style="transform: rotate(316deg);"></i>',a,"</label>",'<input type="file" name="files" id="file-upload-'+r+'" class="note-image-input form-control-file note-form-control note-input" onchange="updateFileName(this, \'file-name-'+r+'\')" accept="'+this.options.acceptImageFileTypes+'" >',"</div>",'<div id="file-name-'+r+'" class="hidden file-name"></div>',"</div>",'<div class="clearfix m-b-20"></div>','<div class="form-group note-group-image-url">','<h3 class="form-header"><i class="fal fa-fw m-r-5 fa-globe"></i> '+this.lang.image.url+"</h3>",'<input id="note-dialog-image-url-'+r+'" class="note-image-url form-control note-form-control note-input" type="text">',"</div>"].join(""),"btn btn-primary note-btn note-btn-primary note-image-btn"),l='<input type="button" href="#" class="'.concat(s,'" value="').concat(this.lang.image.insert,'" disabled>');this.$dialog=this.ui.dialog({title:this.lang.image.insert,fade:this.options.dialogsFade,body:i,footer:l}).render().appendTo(n)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(t,e){t.on("keypress",function(t){t.keyCode===ir.code.ENTER&&(t.preventDefault(),e.trigger("click"))})}},{key:"show",value:function(){var t=this;
5this.context.invoke("editor.saveRange"),this.showImageDialog().then(function(e){t.ui.hideDialog(t.$dialog),t.context.invoke("editor.restoreRange"),"string"==typeof e?t.options.callbacks.onImageLinkInsert?t.context.triggerEvent("image.link.insert",e):t.context.invoke("editor.insertImage",e):t.context.invoke("editor.insertImagesOrCallback",e)}).fail(function(){t.context.invoke("editor.restoreRange")})}},{key:"showImageDialog",value:function(){var t=this;return Ii().Deferred(function(e){var o=t.$dialog.find(".note-image-input"),n=t.$dialog.find(".note-image-url"),i=t.$dialog.find(".note-image-btn");t.ui.onDialogShown(t.$dialog,function(){t.context.triggerEvent("dialog.shown"),o.replaceWith(o.clone().on("change",function(t){e.resolve(t.target.files||t.target.value)}).val("")),n.on("input paste propertychange",function(){t.ui.toggleBtn(i,n.val())}).val(""),ji.isSupportTouch||n.trigger("focus"),i.on("click",function(t){t.preventDefault(),e.resolve(n.val())}),t.bindEnterKey(n,i)}),t.ui.onDialogHidden(t.$dialog,function(){o.off(),n.off(),i.off(),"pending"===e.state()&&e.reject()}),t.ui.showDialog(t.$dialog)})}}])}(),jr=function(){function t(e){var o=this;Hn(this,t),this.context=e,this.ui=Ii().summernote.ui,this.editable=e.layoutInfo.editable[0],this.options=e.options,this.events={"summernote.disable summernote.dialog.shown":function(){o.hide()},"summernote.blur":function(t,e){e.originalEvent&&e.originalEvent.relatedTarget&&o.$popover[0].contains(e.originalEvent.relatedTarget)||o.hide()}}}return zn(t,[{key:"shouldInitialize",value:function(){return!Bi.isEmpty(this.options.popover.image)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-image-popover"}).render().appendTo(this.options.container);var t=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",t,this.options.popover.image),this.$popover.on("mousedown",function(t){t.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(t,e){if(Ji.isImg(t)){var o=Ii()(t).offset(),n=Ii()(this.options.container).offset(),i={};this.options.popatmouse?(i.left=e.pageX-20,i.top=e.pageY):i=o,i.top-=n.top,i.left-=n.left,this.$popover.css({display:"block",left:i.left,top:i.top})}else this.hide()}},{key:"hide",value:function(){this.$popover.hide()}}])}(),zr=function(){function t(e){var o=this;Un(this,t),this.context=e,this.ui=Ii().summernote.ui,this.options=e.options,this.events={"summernote.mousedown":function(t,e){o.update(e.target)},"summernote.keyup summernote.scroll summernote.change":function(){o.update()},"summernote.disable summernote.dialog.shown":function(){o.hide()},"summernote.blur":function(t,e){e.originalEvent&&e.originalEvent.relatedTarget&&o.$popover[0].contains(e.originalEvent.relatedTarget)||o.hide()}}}return Kn(t,[{key:"shouldInitialize",value:function(){return!Bi.isEmpty(this.options.popover.table)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-table-popover"}).render().appendTo(this.options.container);var t=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",t,this.options.popover.table),ji.isFF&&document.execCommand("enableInlineTableEditing",!1,!1),this.$popover.on("mousedown",function(t){t.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(t){if(this.context.isDisabled())return!1;var e=Ji.isCell(t)||Ji.isCell(null==t?void 0:t.parentElement);if(e){var o=Ji.posFromPlaceholder(t),n=Ii()(this.options.container).offset();o.top-=n.top,o.left-=n.left,this.$popover.css({display:"block",left:o.left,top:o.top})}else this.hide();return e}},{key:"hide",value:function(){this.$popover.hide()}}])}(),Or=function(){function t(e){Gn(this,t),this.context=e,this.ui=Ii().summernote.ui,this.$body=Ii()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}return Yn(t,[{key:"initialize",value:function(){var t=this.options.dialogsInBody?this.$body:this.options.container,e=['<div class="form-group note-form-group row-fluid">','<h3 for="note-dialog-video-url-'.concat(this.options.id,'" class="form-header p-t-0"> <i class="fal fa-fw m-r-5 fa-paste"></i>').concat(this.lang.video.url,"</h3>"),'<input id="note-dialog-video-url-'.concat(this.options.id,'" class="note-video-url form-control note-form-control note-input" type="text"/>'),"</div>"].join(""),o="btn btn-primary note-btn note-btn-primary note-video-btn",n='<input type="button" href="#" class="'.concat(o,'" value="').concat(this.lang.video.insert,'" disabled>');this.$dialog=this.ui.dialog({title:this.lang.video.insert,fade:this.options.dialogsFade,body:e,footer:n}).render().appendTo(t)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(t,e){t.on("keypress",function(t){t.keyCode===ir.code.ENTER&&(t.preventDefault(),e.trigger("click"))})}},{key:"createVideoNode",value:function(t){var e,o=/(?:youtu\.be\/|youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=|shorts\/|live\/))([^&\n?]+)(?:.*[?&]t=([^&\n]+))?.*/,n=/^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/,i=t.match(o),r=/(?:\.|\/\/)drive\.google\.com\/file\/d\/(.[a-zA-Z0-9_-]*)\/view/,a=t.match(r),s=/(?:www\.|\/\/)instagram\.com\/(reel|p)\/(.[a-zA-Z0-9_-]*)/,l=t.match(s),c=/\/\/vine\.co\/v\/([a-zA-Z0-9]+)/,u=t.match(c),d=/\/\/(player\.)?vimeo\.com\/([a-z]*\/)*(\d+)[?]?.*/,f=t.match(d),h=/.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/,p=t.match(h),m=/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/,v=t.match(m),g=/\/\/(.*)\/videos\/watch\/([^?]*)(?:\?(?:start=(\w*))?(?:&stop=(\w*))?(?:&loop=([10]))?(?:&autoplay=([10]))?(?:&muted=([10]))?)?/,b=t.match(g),y=/\/\/v\.qq\.com.*?vid=(.+)/,k=t.match(y),w=/\/\/v\.qq\.com\/x?\/?(page|cover).*?\/([^\/]+)\.html\??.*/,C=t.match(w),S=/^.+.(mp4|m4v)$/,x=t.match(S),T=/^.+.(ogg|ogv)$/,E=t.match(T),P=/^.+.(webm)$/,N=t.match(P),I=/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/,$=t.match(I);if(i&&11===i[1].length){var R=i[1],A=0;if(void 0!==i[2]){var L=i[2].match(n);if(L)for(var F=[3600,60,1],D=0,H=F.length;D<H;D++)A+=void 0!==L[D+1]?F[D]*parseInt(L[D+1],10):0;else A=parseInt(i[2],10)}e=Ii()("<iframe>").attr("frameborder",0).attr("src","//www.youtube.com/embed/"+R+(A>0?"?start="+A:"")).attr("width","640").attr("height","360")}else if(a&&a[0].length)e=Ii()("<iframe>").attr("frameborder",0).attr("src","https://drive.google.com/file/d/"+a[1]+"/preview").attr("width","640").attr("height","480");else if(l&&l[0].length)e=Ii()("<iframe>").attr("frameborder",0).attr("src","https://instagram.com/p/"+l[2]+"/embed/").attr("width","612").attr("height","710").attr("scrolling","no").attr("allowtransparency","true");else if(u&&u[0].length)e=Ii()("<iframe>").attr("frameborder",0).attr("src",u[0]+"/embed/simple").attr("width","600").attr("height","600").attr("class","vine-embed");else if(f&&f[3].length)e=Ii()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("src","//player.vimeo.com/video/"+f[3]).attr("width","640").attr("height","360");else if(p&&p[2].length)e=Ii()("<iframe>").attr("frameborder",0).attr("src","//www.dailymotion.com/embed/video/"+p[2]).attr("width","640").attr("height","360");else if(v&&v[1].length)e=Ii()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","498").attr("width","510").attr("src","//player.youku.com/embed/"+v[1]);else if(b&&b[0].length){var j=0;"undefined"!==b[2]&&(j=b[2]);var z=0;"undefined"!==b[3]&&(z=b[3]);var O=0;"undefined"!==b[4]&&(O=b[4]);var B=0;"undefined"!==b[5]&&(B=b[5]);var M=0;"undefined"!==b[6]&&(M=b[6]),e=Ii()('<iframe allowfullscreen sandbox="allow-same-origin allow-scripts allow-popups">').attr("frameborder",0).attr("src","//"+b[1]+"/videos/embed/"+b[2]+"?loop="+O+"&autoplay="
5+B+"&muted="+M+(j>0?"&start="+j:"")+(z>0?"&end="+A:"")).attr("width","560").attr("height","315")}else if(k&&k[1].length||C&&C[2].length){var U=k&&k[1].length?k[1]:C[2];e=Ii()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","310").attr("width","500").attr("src","https://v.qq.com/txp/iframe/player.html?vid="+U+"&auto=0")}else if(x||E||N)e=Ii()("<video controls>").attr("src",t).attr("width","640").attr("height","360").addClass("video-js vjs-default-skin");else{if(!$||!$[0].length)return!1;e=Ii()("<iframe>").attr("frameborder",0).attr("src","https://www.facebook.com/plugins/video.php?href="+encodeURIComponent($[0])+"&show_text=0&width=560").attr("width","560").attr("height","301").attr("scrolling","no").attr("allowtransparency","true")}return e.addClass("note-video-clip"),e[0]}},{key:"show",value:function(){var t=this,e=this.context.invoke("editor.getSelectedText");this.context.invoke("editor.saveRange"),this.showVideoDialog(e).then(function(e){t.ui.hideDialog(t.$dialog),t.context.invoke("editor.restoreRange");var o=t.createVideoNode(e);o&&t.context.invoke("editor.insertNode",o)}).fail(function(){t.context.invoke("editor.restoreRange")})}},{key:"showVideoDialog",value:function(){var t=this;return Ii().Deferred(function(e){var o=t.$dialog.find(".note-video-url"),n=t.$dialog.find(".note-video-btn");t.ui.onDialogShown(t.$dialog,function(){t.context.triggerEvent("dialog.shown"),o.on("input paste propertychange",function(){t.ui.toggleBtn(n,o.val())}),ji.isSupportTouch||o.trigger("focus"),n.on("click",function(t){t.preventDefault(),e.resolve(o.val())}),t.bindEnterKey(o,n)}),t.ui.onDialogHidden(t.$dialog,function(){o.off(),n.off(),"pending"===e.state()&&e.reject()}),t.ui.showDialog(t.$dialog)})}}])}(),Br=function(){function t(e){ti(this,t),this.context=e,this.ui=Ii().summernote.ui,this.$body=Ii()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}return oi(t,[{key:"initialize",value:function(){var t=this.options.dialogsInBody?this.$body:this.options.container,e=['<p class="text-center">','<a href="http://summernote.org/" target="_blank" rel="noopener noreferrer">Summernote 0.9.0</a> · ','<a href="https://github.com/summernote/summernote" target="_blank" rel="noopener noreferrer">Project</a> · ','<a href="https://github.com/summernote/summernote/issues" target="_blank" rel="noopener noreferrer">Issues</a>',"</p>"].join("");this.$dialog=this.ui.dialog({title:this.lang.options.help,fade:this.options.dialogsFade,body:this.createShortcutList(),footer:e,callback:function(t){t.find(".modal-body,.note-modal-body").css({"max-height":300,overflow:"scroll"})}}).render().appendTo(t)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"createShortcutList",value:function(){var t=this,e=this.options.keyMap[ji.isMac?"mac":"pc"];return Object.keys(e).map(function(o){var n=e[o],i=Ii()('<div><div class="help-list-item"></div></div>');return i.append(Ii()("<label><kbd>"+o+"</kdb></label>").css({width:180,"margin-right":10})).append(Ii()("<span></span>").html(t.context.memo("help."+n)||n)),i.html()}).join("")}},{key:"showHelpDialog",value:function(){var t=this;return Ii().Deferred(function(e){t.ui.onDialogShown(t.$dialog,function(){t.context.triggerEvent("dialog.shown"),e.resolve()}),t.ui.showDialog(t.$dialog)}).promise()}},{key:"show",value:function(){var t=this;this.context.invoke("editor.saveRange"),this.showHelpDialog().then(function(){t.context.invoke("editor.restoreRange")})}}])}(),Mr=-5,Ur=5,Wr=function(){function t(e){var o=this;ai(this,t),this.context=e,this.ui=Ii().summernote.ui,this.options=e.options,this.hidable=!0,this.onContextmenu=!1,this.pageX=null,this.pageY=null,this.events={"summernote.contextmenu":function(t){o.options.editing&&(t.preventDefault(),t.stopPropagation(),o.onContextmenu=!0,o.update(!0))},"summernote.mousedown":function(t,e){o.pageX=e.pageX,o.pageY=e.pageY},"summernote.keyup summernote.mouseup summernote.scroll":function(t,e){if(o.options.editing&&!o.onContextmenu){if("keyup"==e.type){var n=o.context.
5invoke("editor.getLastRange"),i=n.getWordRange(),r=Oi.rect2bnd(Bi.last(i.getClientRects()));o.pageX=r.left,o.pageY=r.top}else o.pageX=e.pageX,o.pageY=e.pageY;o.update()}o.onContextmenu=!1},"summernote.disable summernote.change summernote.dialog.shown summernote.blur":function(){o.hide()},"summernote.focusout":function(){o.$popover.is(":active,:focus")||o.hide()}}}return li(t,[{key:"shouldInitialize",value:function(){return this.options.airMode&&!Bi.isEmpty(this.options.popover.air)}},{key:"initialize",value:function(){var t=this;this.$popover=this.ui.popover({className:"note-air-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content");this.context.invoke("buttons.build",e,this.options.popover.air),this.$popover.on("mousedown",function(){t.hidable=!1}),this.$popover.on("mouseup",function(){t.hidable=!0})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(t){var e=this.context.invoke("editor.currentStyle");if(!e.range||e.range.isCollapsed()&&!t)this.hide();else{var o={left:this.pageX,top:this.pageY},n=Ii()(this.options.container).offset();o.top-=n.top,o.left-=n.left,this.$popover.css({display:"block",left:Math.max(o.left,0)+Mr,top:o.top+Ur}),this.context.invoke("buttons.updateCurrentStyle",this.$popover)}}},{key:"updateCodeview",value:function(t){this.ui.toggleBtnActive(this.$popover.find(".btn-codeview"),t),t&&this.hide()}},{key:"hide",value:function(){this.hidable&&this.$popover.hide()}}])}(),Kr=5,qr=function(){function t(e){var o=this;fi(this,t),this.context=e,this.ui=Ii().summernote.ui,this.$editable=e.layoutInfo.editable,this.options=e.options,this.hint=this.options.hint||[],this.direction=this.options.hintDirection||"bottom",this.hints=Array.isArray(this.hint)?this.hint:[this.hint],this.events={"summernote.keyup":function(t,e){e.isDefaultPrevented()||o.handleKeyup(e)},"summernote.keydown":function(t,e){o.handleKeydown(e)},"summernote.disable summernote.dialog.shown summernote.blur":function(){o.hide()}}}return pi(t,[{key:"shouldInitialize",value:function(){return this.hints.length>0}},{key:"initialize",value:function(){var t=this;this.lastWordRange=null,this.matchingWord=null,this.$popover=this.ui.popover({className:"note-hint-popover",hideArrow:!0,direction:""}).render().appendTo(this.options.container),this.$popover.hide(),this.$content=this.$popover.find(".popover-content,.note-popover-content"),this.$content.on("click",".note-hint-item",function(e){t.$content.find(".active").removeClass("active"),Ii()(e.currentTarget).addClass("active"),t.replace()}),this.$popover.on("mousedown",function(t){t.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"selectItem",value:function(t){this.$content.find(".active").removeClass("active"),t.addClass("active"),this.$content[0].scrollTop=t[0].offsetTop-this.$content.innerHeight()/2}},{key:"moveDown",value:function(){var t=this.$content.find(".note-hint-item.active"),e=t.
vendor: 7,109 bytes, lines 5-6
5next();if(e.length)this.selectItem(e);else{var o=t.parent().next();o.length||(o=this.$content.find(".note-hint-group").first()),this.selectItem(o.find(".note-hint-item").first())}}},{key:"moveUp",value:function(){var t=this.$content.find(".note-hint-item.active"),e=t.prev();if(e.length)this.selectItem(e);else{var o=t.parent().prev();o.length||(o=this.$content.find(".note-hint-group").last()),this.selectItem(o.find(".note-hint-item").last())}}},{key:"replace",value:function(){var t=this.$content.find(".note-hint-item.active");if(t.length){var e=this.nodeFromItem(t);if(null!==this.matchingWord&&0===this.matchingWord.length)this.lastWordRange.so=this.lastWordRange.eo;else if(null!==this.matchingWord&&this.matchingWord.length>0&&!this.lastWordRange.isCollapsed()){var o=this.lastWordRange.eo-this.lastWordRange.so-this.matchingWord.length;o>0&&(this.lastWordRange.so+=o)}if(this.lastWordRange.insertNode(e),"next"===this.options.hintSelect){var n=document.createTextNode("");Ii()(e).after(n),or.createFromNodeBefore(n).select()}else or.createFromNodeAfter(e).select();this.lastWordRange=null,this.hide(),this.context.invoke("editor.focus"),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}}},{key:"nodeFromItem",value:function(t){var e=this.hints[t.data("index")],o=t.data("item"),n=e.content?e.content(o):o;return"string"==typeof n&&(n=Ji.createText(n)),n}},{key:"createItemTemplates",value:function(t,e){var o=this.hints[t];return e.map(function(e,n){var i=Ii()('<div class="note-hint-item"></div>');return i.append(o.template?o.template(e):e+""),i.data({index:t,item:e}),0===t&&0===n&&i.addClass("active"),i})}},{key:"handleKeydown",value:function(t){this.$popover.is(":visible")&&(t.keyCode===ir.code.ENTER?(t.preventDefault(),this.replace()):t.keyCode===ir.code.UP?(t.preventDefault(),this.moveUp()):t.keyCode===ir.code.DOWN&&(t.preventDefault(),this.moveDown()))}},{key:"searchKeyword",value:function(t,e,o){var n=this.hints[t];if(n&&n.match.test(e)&&n.search){var i=n.match.exec(e);this.matchingWord=i[0],n.search(i[1],o)}else o()}},{key:"createGroup",value:function(t,e){var o=this,n=Ii()('<div class="note-hint-group note-hint-group-'+t+'"></div>') 6;return this.searchKeyword(t,e,function(e){e=e||[],e.length&&(n.html(o.createItemTemplates(t,e)),o.show())}),n}},{key:"handleKeyup",value:function(t){var e=this;if(!Bi.contains([ir.code.ENTER,ir.code.UP,ir.code.DOWN],t.keyCode)){var o,n,i=this.context.invoke("editor.getLastRange");if("words"===this.options.hintMode){if(o=i.getWordsRange(i),n=o.toString(),this.hints.forEach(function(t){if(t.match.test(n))return o=i.getWordsMatchRange(t.match),!1}),!o)return void this.hide();n=o.toString()}else o=i.getWordRange(),n=o.toString();if(this.hints.length&&n){this.$content.empty();var r=Oi.rect2bnd(Bi.last(o.getClientRects())),a=Ii()(this.options.container).offset();r&&(r.top-=a.top,r.left-=a.left,this.$popover.hide(),this.lastWordRange=o,this.hints.forEach(function(t,o){t.match.test(n)&&e.createGroup(o,n).appendTo(e.$content)}),this.$content.find(".note-hint-item").first().addClass("active"),"top"===this.direction?this.$popover.css({left:r.left,top:r.top-this.$popover.outerHeight()-Kr}):this.$popover.css({left:r.left,top:r.top+r.height+Kr}))}else this.hide()}}},{key:"show",value:function(){this.$popover.show()}},{key:"hide",value:function(){this.$popover.hide()}}])}();Ii().summernote=Ii().extend(Ii().summernote,{version:"0.9.0",plugins:{},dom:Ji,range:or,lists:Bi,options:{langInfo:Ii().summernote.lang["en-US"],editing:!0,modules:{editor:mr,clipboard:vr,dropzone:gr,codeview:br,statusbar:kr,fullscreen:wr,handle:Cr,hintPopover:qr,autoLink:Tr,autoSync:Er,autoReplace:Pr,placeholder:Nr,buttons:Ir,toolbar:$r,linkDialog:Fr,linkPopover:Dr,imageDialog:Hr,imagePopover:jr,tablePopover:zr,videoDialog:Or,helpDialog:Br,airPopover:Wr},buttons:{},lang:"en-US",followingToolbar:!1,toolbarPosition:"top",otherStaticBar:"",codeviewKeepButton:!1,toolbar:[["style",["style"]],["font",["bold","underline","clear"]],["fontname",["fontname"]],["color",["color"]],["para",["ul","ol","paragraph"]],["table",["table"]],["insert",["link","picture","video"]],["view",["fullscreen","codeview","help"]]],popatmouse:!0,popover:{image:[["resize",["resizeFull","resizeHalf","resizeQuarter","resizeNone"]],["float",["floatLeft","floatRight","floatNone"]],["remove",["removeMedia"]]],link:[["link",["linkDialogShow","unlink"]]],table:[["add",["addRowDown","addRowUp","addColLeft","addColRight"]],["delete",["deleteRow","deleteCol","deleteTable"]]],air:[["color",["color"]],["font",["bold","underline","clear"]],["para",["ul","paragraph"]],["table",["table"]],["insert",["link","picture"]],["view",["fullscreen","codeview"]]]},linkAddNoReferrer:!1,addLinkNoOpener:!1,airMode:!1,overrideContextMenu:!1,width:null,height:null,linkTargetBlank:!0,focus:!1,tabDisable:!1,tabSize:4,styleWithCSS:!1,shortcuts:!0,textareaAutoSync:!0,tooltip:"auto",container:null,maxTextLength:0,blockquoteBreakingLevel:2,spellCheck:!0,disableGrammar:!1,placeholder:null,inheritPlaceholder:!1,recordEveryKeystroke:!1,historyLimit:200,showDomainOnlyForAutolink:!1,hintMode:"word",hintSelect:"after",hintDirection:"bottom",styleTags:["p","blockquote","h1","h2","h3","h4","h5"],fontNames:["Arial","Arial Black","Comic Sans MS","Courier New","Helvetica Neue","Helvetica","Impact","Lucida Grande","Tahoma","Times New Roman","Verdana"],fontNamesIgnoreCheck:[],addDefaultFonts:!0,fontSizes:["8","9","10","11","12","14","18","24","36"],fontSizeUnits:["px","pt"],colors:[["#000000","#424242","#636363","#9C9C94","#CEC6CE","#EFEFEF","#F7F7F7","#FFFFFF"],["#FF0000","#FF9C00","#FFFF00","#00FF00","#00FFFF","#0000FF","#9C00FF","#FF00FF"],["#F7C6CE","#FFE7CE","#FFEFC6","#D6EFD6","#CEDEE7","#CEE7F7","#D6D6E7","#E7D6DE"],["#E79C9C","#FFC69C","#FFE79C","#B5D6A5","#A5C6CE","#9CC6EF","#B5A5D6","#D6A5BD"],["#E76363","#F7AD6B","#FFD663","#94BD7B","#73A5AD","#6BADDE","#8C7BC6","#C67BA5"],["#CE0000","#E79439","#EFC631","#6BA54A","#4A7B8C","#3984C6","#634AA5","#A54A7B"],["#9C0000","#B56308","#BD9400","#397B21","#104A5A","#085294","#311873","#731842"],["#630000","#7B3900","#846300","#295218","#083139","#003163","#21104A","#4A1031"]],colorsName:[["Black","Tundora","Dove Gray","Star Dust","Pale Slate","Gallery","Alabaster","White"],["Red","Orange Peel","Yellow","Green","Cyan","Blue","Electric Violet","Magenta"],["Azalea","Karry","Egg White","Zanah","Botticelli","Tropical Blue","Mischka","Twilight"],["Tonys Pink","Peach Orange","Cream Brulee","Sprout","Casper","Perano","Cold Purple","Careys Pink"],["Mandy","Rajah","Dandelion","Olivine","Gulf Stream","Viking","Blue Marguerite","Puce"],["Guardsman Red","Fire Bush","Golden Dream","Chelsea Cucumber","Smalt Blue","Boston Blue","Butterfly Bush","Cadillac"],["Sangria","Mai Tai","Buddha Gold","Forest Green","Eden","Venice Blue","Meteorite","Claret"],["Rosewood","Cinnamon","Olive","Parsley","Tiber","Midnight Blue","Valentino","Loulou"]],colorButton:{foreColor:"#000000",backColor:"#FFFF00"},lineHeights:["1.0","1.2","1.4","1.5","1.6","1.8","2.0","3.0"],tableClassName:"table table-bordered",insertTableMaxSize:{col:10,row:10}
6,dialogsInBody:!1,dialogsFade:!1,maximumImageFileSize:null,acceptImageFileTypes:"image/*",allowClipboardImagePasting:!0,callbacks:{onBeforeCommand:null,onBlur:null,onBlurCodeview:null,onChange:null,onChangeCodeview:null,onDialogShown:null,onEnter:null,onFocus:null,onImageLinkInsert:null,onImageUpload:null,onImageUploadError:null,onInit:null,onKeydown:null,onKeyup:null,onMousedown:null,onMouseup:null,onPaste:null,onScroll:null},codemirror:{mode:"text/html",htmlMode:!0,lineNumbers:!0},codeviewFilter:!0,codeviewFilterRegex:/<\/*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|ilayer|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|t(?:itle|extarea)|xml)[^>]*?>/gi,codeviewIframeFilter:!0,codeviewIframeWhitelistSrc:[],codeviewIframeWhitelistSrcBase:["www.youtube.com","www.youtube-nocookie.com","www.facebook.com","vine.co","instagram.com","player.vimeo.com","www.dailymotion.com","player.youku.com","jumpingbean.tv","v.qq.com"],keyMap:{pc:{ESC:"escape",ENTER:"insertParagraph","CTRL+Z":"undo","CTRL+Y":"redo",TAB:"tab","SHIFT+TAB":"untab","CTRL+B":"bold","CTRL+I":"italic","CTRL+U":"underline","CTRL+SHIFT+S":"strikethrough","CTRL+BACKSLASH":"removeFormat","CTRL+SHIFT+L":"justifyLeft","CTRL+SHIFT+E":"justifyCenter","CTRL+SHIFT+R":"justifyRight","CTRL+SHIFT+J":"justifyFull","CTRL+SHIFT+NUM7":"insertUnorderedList","CTRL+SHIFT+NUM8":"insertOrderedList","CTRL+LEFTBRACKET":"outdent","CTRL+RIGHTBRACKET":"indent","CTRL+NUM0":"formatPara","CTRL+NUM1":"formatH1","CTRL+NUM2":"formatH2","CTRL+NUM3":"formatH3","CTRL+NUM4":"formatH4","CTRL+NUM5":"formatH5","CTRL+NUM6":"formatH6","CTRL+ENTER":"insertHorizontalRule","CTRL+K":"linkDialog.show"},mac:{ESC:"escape",ENTER:"insertParagraph","CMD+Z":"undo","CMD+SHIFT+Z":"redo",TAB:"tab","SHIFT+TAB":"untab","CMD+B":"bold","CMD+I":"italic","CMD+U":"underline","CMD+SHIFT+S":"strikethrough","CMD+BACKSLASH":"removeFormat","CMD+SHIFT+L":"justifyLeft","CMD+SHIFT+E":"justifyCenter","CMD+SHIFT+R":"justifyRight","CMD+SHIFT+J":"justifyFull","CMD+SHIFT+NUM7":"insertUnorderedList","CMD+SHIFT+NUM8":"insertOrderedList","CMD+LEFTBRACKET":"outdent","CMD+RIGHTBRACKET":"indent","CMD+NUM0":"formatPara","CMD+NUM1":"formatH1","CMD+NUM2":"formatH2","CMD+NUM3":"formatH3","CMD+NUM4":"formatH4","CMD+NUM5":"formatH5","CMD+NUM6":"formatH6","CMD+ENTER":"insertHorizontalRule","CMD+K":"linkDialog.show"}},icons:{align:"note-icon-align",alignCenter:"note-icon-align-center",alignJustify:"note-icon-align-justify",alignLeft:"note-icon-align-left",alignRight:"note-icon-align-right",rowBelow:"note-icon-row-below",colBefore:"note-icon-col-before",colAfter:"note-icon-col-after",rowAbove:"note-icon-row-above",rowRemove:"note-icon-row-remove",colRemove:"note-icon-col-remove",indent:"note-icon-align-indent",outdent:"note-icon-align-outdent",arrowsAlt:"note-icon-arrows-alt",bold:"note-icon-bold",caret:"note-icon-caret",circle:"note-icon-circle",close:"note-icon-close",code:"note-icon-code",eraser:"note-icon-eraser",floatLeft:"note-icon-float-left",floatRight:"note-icon-float-right",font:"note-icon-font",frame:"note-icon-frame",italic:"note-icon-italic",link:"note-icon-link",unlink:"note-icon-chain-broken",magic:"note-icon-magic",menuCheck:"note-icon-menu-check",minus:"note-icon-minus",orderedlist:"note-icon-orderedlist",pencil:"note-icon-pencil",picture:"note-icon-picture",question:"note-icon-question",redo:"note-icon-redo",rollback:"note-icon-rollback",square:"note-icon-square",strikethrough:"note-icon-strikethrough",subscript:"note-icon-subscript",superscript:"note-icon-superscript",table:"note-icon-table",textHeight:"note-icon-text-height",trash:"note-icon-trash",underline:"note-icon-underline",undo:"note-icon-undo",unorderedlist:"note-icon-unorderedlist",video:"note-icon-video"}}});var Vr=function(){function t(e,o,n,i){bi(this,t),this.markup=e,this.children=o,this.options=n,this.callback=i}return ki(t,[{key:"render",value:function(t){var e=Ii()(this.markup);if(this.options&&this.options.contents&&e.html(this.options.contents),this.options&&this.options.className&&e.addClass(this.options.className),this.options&&this.options.data&&Ii().each(this.options.data,function(t,o){e.attr("data-"+t,o)}),this.options&&this.options.click&&e.on("click",this.options.click),this.children){var o=e.find(".note-children-container");
6this.children.forEach(function(t){t.render(o.length?o:e)})}return this.callback&&this.callback(e,this.options),this.options&&this.options.callback&&this.options.callback(e),t&&t.append(e),e}}])}();const _r={create:function(t,e){return function(){var o="object"===gi(arguments[1])?arguments[1]:arguments[0],n=Array.isArray(arguments[0])?arguments[0]:[];return o&&o.children&&(n=o.children),new Vr(t,n,o,e)}}};var Gr=_r.create('<div class="note-editor note-frame panel panel-default"></div>'),Zr=_r.create('<div class="panel-heading note-toolbar" role="toolbar"></div>'),Yr=_r.create('<div class="note-editing-area"></div>'),Xr=_r.create('<textarea class="note-codable" aria-multiline="true"></textarea>'),Qr=_r.create('<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"></div>'),Jr=_r.create(['<output class="note-status-output" role="status" aria-live="polite"></output>','<div class="note-statusbar" role="status">','<div class="note-resizebar" aria-label="Resize">','<div class="note-icon-bar"></div>','<div class="note-icon-bar"></div>','<div class="note-icon-bar"></div>',"</div>","</div>"].join("")),ta=_r.create('<div class="note-editor note-airframe"></div>'),ea=_r.create(['<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"></div>','<output class="note-status-output" role="status" aria-live="polite"></output>'].join("")),oa=_r.create('<div class="note-btn-group btn-group"></div>'),na=_r.create('<ul class="note-dropdown-menu dropdown-menu"></ul>',function(t,e){var o=Array.isArray(e.items)?e.items.map(function(t){var o="string"==typeof t?t:t.value||"",n=e.template?e.template(t):t,i="object"===Si(t)?t.option:void 0,r='data-value="'+o+'"',a=void 0!==i?' data-option="'+i+'"':"";return'<li aria-label="'+o+'"><a href="#" '+(r+a)+">"+n+"</a></li>"}).join(""):e.items;t.html(o).attr({"aria-label":e.title}),e&&e.codeviewKeepButton&&t.addClass("note-codeview-keep")}),ia=function(t,e){return t+" "+ca(e.icons.caret,"span")},ra=_r.create('<ul class="note-dropdown-menu dropdown-menu note-check"></ul>',function(t,e){var o=Array.isArray(e.items)?e.items.map(function(t){var o="string"==typeof t?t:t.value||"",n=e.template?e.template(t):t;return'<li aria-label="'+t+'"><a href="#" data-value="'+o+'">'+ca(e.checkClassName)+" "+n+"</a></li>"}).join(""):e.items;t.html(o).attr({"aria-label":e.title}),e&&e.codeviewKeepButton&&t.addClass("note-codeview-keep")}),aa=_r.create('<div class="modal note-modal" aria-hidden="false" tabindex="-1" role="dialog"></div>',function(t,e){e.fade&&t.addClass("fade"),t.attr({"aria-label":e.title}),t.html(['<div class="modal-dialog br1em">','<div class="modal-content">',e.title?'<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true"><i class="fal fa-times appmaincolor"></i></button><h4 class="modal-title">'+e.title+"</h4></div>":"",'<div class="modal-body">'+e.body+"</div>",e.footer?'<div class="modal-footer">'+e.footer+"</div>":"","</div>","</div>"].join(""))}),sa=_r.create(['<div class="note-popover popover in">','<div class="arrow"></div>','<div class="popover-content note-children-container"></div>',"</div>"].join(""),function(t,e){var o=void 0!==e.direction?e.direction:"bottom";t.addClass(o),e.hideArrow&&t.find(".arrow").hide()}),la=_r.create('<div class="checkbox"></div>',function(t,e){t.html(["<label"+(e.id?' for="note-'+e.id+'"':"")+">",'<input type="checkbox"'+(e.id?' id="note-'+e.id+'"':""),e.checked?" checked":"",' aria-checked="'+(e.checked?"true":"false")+'"/>',e.text?e.text:"","</label>"].join(""))}),ca=function(t,e){return t.match(/^</)?t:(e=e||"i","<"+e+' class="'+t+'"></'+e+">")},ua=function(t){return{editor:Gr,toolbar:Zr,editingArea:Yr,codable:Xr,editable:Qr,statusbar:Jr,airEditor:ta,airEditable:ea,buttonGroup:oa,dropdown:na,dropdownButtonContents:ia,dropdownCheck:ra,dialog:aa,popover:sa,checkbox:la,icon:ca,options:t,palette:function(e,o){return _r.create('<div class="note-color-palette"></div>',function(e,o){for(var n=[],i=0,r=o.colors.length;i<r;
6i++){for(var a=o.eventName,s=o.colors[i],l=o.colorsName[i],c=[],u=0,d=s.length;u<d;u++){var f=s[u],h=l[u];c.push(['<button type="button" class="note-color-btn"','style="background-color:',f,'" ','data-event="',a,'" ','data-value="',f,'" ','title="',h,'" ','aria-label="',h,'" ','data-toggle="button" tabindex="-1"></button>'].join(""))}n.push('<div class="note-color-row">'+c.join("")+"</div>")}e.html(n.join("")),o.tooltip&&e.find(".note-color-btn").tooltip({container:o.container||t.container,trigger:"hover",placement:"bottom"})})(e,o)},button:function(e,o){return _r.create('<button type="button" class="note-btn btn btn-default btn-sm" tabindex="-1"></button>',function(e,o){o&&o.tooltip&&e.attr({title:o.tooltip,"aria-label":o.tooltip}).tooltip({container:o.container||t.container,trigger:"hover",placement:"bottom"}).on("click",function(t){Ii()(t.currentTarget).tooltip("hide")}),o&&o.codeviewButton&&e.addClass("note-codeview-keep")})(e,o)},toggleBtn:function(t,e){t.toggleClass("disabled",!e),t.attr("disabled",!e)},toggleBtnActive:function(t,e){t.toggleClass("active",e)},onDialogShown:function(t,e){t.one("shown.bs.modal",e)},onDialogHidden:function(t,e){t.one("hidden.bs.modal",e)},showDialog:function(t){t.modal("show")},hideDialog:function(t){t.modal("hide")},createLayout:function(e){var o=(t.airMode?ta([Yr([Xr(),ea()])]):"bottom"===t.toolbarPosition?Gr([Yr([Xr(),Qr()]),Zr(),Jr()]):Gr([Zr(),Yr([Xr(),Qr()]),Jr()])).render();return o.insertAfter(e),{note:e,editor:o,toolbar:o.find(".note-toolbar"),editingArea:o.find(".note-editing-area"),editable:o.find(".note-editable"),codable:o.find(".note-codable"),statusbar:o.find(".note-statusbar")}},removeLayout:function(t,e){t.html(e.editable.html()),e.editor.remove(),t.show()}}};return Ii().summernote=Ii().extend(Ii().summernote,{ui_template:ua,interface:"bs3"}),Pi})());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.