(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65d2bc1c"],{"01b0":function(e,t,n){},"0632":function(e,t,n){},"0829":function(e,t,n){},"0876":function(e,t,n){},"0a33":function(e,t,n){},"0baa":function(e,t,n){},"0bda":function(e,t,n){},"0d30":function(e,t,n){},"10f4":function(e,t,n){},"133b":function(e,t,n){},"1f26":function(e,t,n){},"27e6":function(e,t,n){},"29a1":function(e,t,n){},"2a04":function(e,t,n){},"2ab7":function(e,t,n){},"30d5":function(e,t,n){},"30db":function(e,t,n){"use strict";(function(e,i){n.d(t,"h",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return _})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return w})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return S})),n.d(t,"i",(function(){return B})),n.d(t,"a",(function(){return E}));var o="en",r=!1,s=!1,a=!1,u=!1,l=!1,c=!1,d=void 0,h=void 0,A="undefined"!==typeof e&&"undefined"!==typeof e.versions&&"undefined"!==typeof e.versions.electron&&"renderer"===e.type;if("object"!==typeof navigator||A){if("object"===typeof e){r="win32"===e.platform,s="darwin"===e.platform,a="linux"===e.platform,d=o,o;var p=Object({VUE_APP_BASE_API:"",VUE_APP_WS_URL:"",NODE_ENV:"production",BASE_URL:"/"})["VSCODE_NLS_CONFIG"];if(p)try{var f=JSON.parse(p),g=f.availableLanguages["*"];d=f.locale,g||o,f._translationsConfigFile}catch(x){}u=!0}}else h=navigator.userAgent,r=h.indexOf("Windows")>=0,s=h.indexOf("Macintosh")>=0,c=h.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,a=h.indexOf("Linux")>=0,l=!0,d=navigator.language,d;var m=r,v=s,_=a,y=u,w=l,b=c,C="object"===typeof self?self:"object"===typeof i?i:{},S=C,B=function(){if(S.setImmediate)return S.setImmediate.bind(S);if("function"===typeof S.postMessage&&!S.importScripts){var t=[];S.addEventListener("message",(function(e){if(e.data&&e.data.vscodeSetImmediateId)for(var n=0,i=t.length;n"+o+""};e.exports=function(e,t){var n={};n[e]=t(a),i(i.P+i.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},"38a2b":function(e,t,n){},"3a19":function(e,t,n){},"41a01":function(e,t,n){},"42f0":function(e,t,n){},"44c7":function(e,t,n){},"4d3d":function(e,t,n){},"4e2b":function(e,t,n){"use strict";var i=n("dc62"),o=n.n(i),r=n("454f"),s=n.n(r),a=n("25b0"),u=n.n(a);function l(e,t){return l=u.a?u.a.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=o()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),s()(e,"prototype",{writable:!1}),t&&l(e,t)}n.d(t,"a",(function(){return c}))},5029:function(e,t,n){},5110:function(e,t,n){(function(e){ /*! Copyright (c) 2014 Taylor Hakes Copyright (c) 2014 Forbes Lindesay */ (function(e,t){t()})(0,(function(){"use strict";function t(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var n=setTimeout;function i(){}function o(e,t){return function(){e.apply(t,arguments)}}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(o){return void u(t.promise,o)}a(t.promise,i)}else(1===e._state?a:u)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof r)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void d(o(n,t),e)}e._state=1,e._value=t,l(e)}catch(i){u(e,i)}}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,i){t(n,i,e)}}function l(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(i=r.next()).done)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(o)throw o.error}}return s}function g(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{u(o[e](t))}catch(n){d(r[0][3],n)}}function u(e){e.value instanceof _?Promise.resolve(e.value.v).then(l,c):d(r[0][2],e)}function l(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}}function w(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:_(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof p?p(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){t=e[n](t),o(i,r,t.done,t.value)}))}}function o(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t};function B(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&h(t,e,n);return S(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function L(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(89)),s=i(n(4)),a=i(n(26)),u=i(n(17)),l=i(n(121)),c=i(n(27)),d=i(n(91)),h=i(n(70)),A=i(n(28)),p=i(n(57));(0,o["default"])(t,"__esModule",{value:!0}),t.DomElement=void 0;var f=n(2),g=n(6),m=[];function v(e){var t=document.createElement("div");t.innerHTML=e;var n=t.children;return g.toArray(n)}function _(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}function y(e){var t=document.querySelectorAll(e);return g.toArray(t)}function w(e){var t=[],n=[];return t=(0,r["default"])(e)?e:e.split(";"),(0,s["default"])(t).call(t,(function(e){var t,i=(0,a["default"])(t=e.split(":")).call(t,(function(e){return(0,u["default"])(e).call(e)}));2===i.length&&n.push(i[0]+":"+i[1])})),n}var b=function(){function e(t){if(this.elems=[],this.length=this.elems.length,this.dataSource=new l["default"],t){if(t instanceof e)return t;var n=[],i=t instanceof Node?t.nodeType:-1;if(this.selector=t,1===i||9===i)n=[t];else if(_(t))n=g.toArray(t);else if(t instanceof Array)n=t;else if("string"===typeof t){var o,r=(0,u["default"])(o=t.replace("/\n/mg","")).call(o);n=0===(0,c["default"])(r).call(r,"<")?v(r):y(r)}var s=n.length;if(!s)return this;for(var a=0;a=t&&(e%=t),C(this.elems[e])},e.prototype.first=function(){return this.get(0)},e.prototype.last=function(){var e=this.length;return this.get(e-1)},e.prototype.on=function(e,t,n){var i;return e?("function"===typeof t&&(n=t,t=""),(0,s["default"])(i=this).call(i,(function(i){if(t){var o=function(e){var i=e.target;i.matches(t)&&n.call(i,e)};i.addEventListener(e,o),m.push({elem:i,selector:t,fn:n,agentFn:o})}else i.addEventListener(e,n)}))):this},e.prototype.off=function(e,t,n){var i;return e?("function"===typeof t&&(n=t,t=""),(0,s["default"])(i=this).call(i,(function(i){if(t){for(var o=-1,r=0;r]+>/g,(function(){return""}))},e.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},e.prototype.val=function(){var e,t=this.elems[0];return(0,u["default"])(e=t.value).call(e)},e.prototype.focus=function(){var e;return(0,s["default"])(e=this).call(e,(function(e){e.focus()}))},e.prototype.prev=function(){var e=this.elems[0];return C(e.previousElementSibling)},e.prototype.next=function(){var e=this.elems[0];return C(e.nextElementSibling)},e.prototype.getNextSibling=function(){var e=this.elems[0];return C(e.nextSibling)},e.prototype.parent=function(){var e=this.elems[0];return C(e.parentElement)},e.prototype.parentUntil=function(e,t){var n=t||this.elems[0];if("BODY"===n.nodeName)return null;var i=n.parentElement;return null===i?null:i.matches(e)?C(i):this.parentUntil(e,i)},e.prototype.parentUntilEditor=function(e,t,n){var i=n||this.elems[0];if(C(i).equal(t.$textContainerElem)||C(i).equal(t.$toolbarElem))return null;var o=i.parentElement;return null===o?null:o.matches(e)?C(o):this.parentUntilEditor(e,t,o)},e.prototype.equal=function(t){return t instanceof e?this.elems[0]===t.elems[0]:t instanceof HTMLElement&&this.elems[0]===t},e.prototype.insertBefore=function(e){var t,n=C(e),i=n.elems[0];return i?(0,s["default"])(t=this).call(t,(function(e){var t=i.parentNode;null===t||void 0===t||t.insertBefore(e,i)})):this},e.prototype.insertAfter=function(e){var t,n=C(e),i=n.elems[0],o=i&&i.nextSibling;return i?(0,s["default"])(t=this).call(t,(function(e){var t=i.parentNode;o?t.insertBefore(e,o):t.appendChild(e)})):this},e.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},e.prototype.getNodeTop=function(e){if(this.length<1)return this;var t=this.parent();return e.$textElem.equal(this)||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},e.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},e.prototype.scrollTop=function(e){var t=this.elems[0];t.scrollTo({top:e})},e}();function C(){for(var e=[],t=0;t/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
")}function f(e){return e.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}function g(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=t(n,e[n]);if(!1===i)break}}function m(e,t){var n,i,o,r=e.length||0;for(n=0;n

',t.EMPTY_P_LAST_REGEX=/

<\/p>$/gim,t.EMPTY_P_REGEX=/

/gim},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(145))},function(e,t){e.exports={}},function(e,t,n){var i=n(8),o=n(74),r=n(16),s=n(64),a=n(76),u=n(106),l=o("wks"),c=i.Symbol,d=u?c:c&&c.withoutSetter||s;e.exports=function(e){return r(l,e)||(a&&r(c,e)?l[e]=c[e]:l[e]=d("Symbol."+e)),l[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var i=n(9),o=n(16),r=n(93),s=n(18).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});o(t,e)||s(t,e,{value:r.f(e)})}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,n){var i=n(11);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var i=n(9);e.exports=function(e){return i[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=n(192)},function(e,t,n){var i=n(14),o=n(100),r=n(25),s=n(60),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(r(e),t=s(t,!0),r(n),o)try{return a(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(14),o=n(18),r=n(48);e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var i=function(){var e;return function(){return"undefined"===typeof e&&(e=Boolean(window&&document&&document.all&&!window.atob)),e}}(),o=function(){var e={};return function(t){if("undefined"===typeof e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(i){n=null}e[t]=n}return e[t]}}(),r=[];function s(e){for(var t=-1,n=0;n0){var i=null===n||void 0===n?void 0:n.getNodeName();i&&"I"===i&&t.addClass(l)}}));var d=new c["default"](o,i);return o.dropList=d,t.on("click",(function(){var e;null!=n.selection.getRange()&&(t.css("z-index",n.zIndex.get("menu")),(0,r["default"])(e=n.txt.eventHooks.dropListMenuHoverEvents).call(e,(function(e){return e()})),d.show())})).on("mouseleave",(function(){t.css("z-index","auto"),d.hideTimeoutId=(0,s["default"])((function(){d.hide()}))})),o}return a.__extends(t,e),t}(l["default"]);t["default"]=d},function(e,t,n){var i=n(13);e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){e.exports=n(188)},function(e,t,n){e.exports=n(201)},function(e,t,n){e.exports=n(213)},function(e,t,n){e.exports=n(283)},function(e,t,n){var i=n(72),o=n(49);e.exports=function(e){return i(o(e))}},function(e,t,n){var i=n(49);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(40),o=n(72),r=n(31),s=n(35),a=n(88),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,c=4==e,d=6==e,h=5==e||d;return function(A,p,f,g){for(var m,v,_=r(A),y=o(_),w=i(p,f,3),b=s(y.length),C=0,S=g||a,B=t?S(A,b):n?S(A,0):void 0;b>C;C++)if((h||C in y)&&(m=y[C],v=w(m,C,_),e))if(t)B[C]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:u.call(B,m)}else if(c)return!1;return d?-1:l||c?c:B}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(29)),a=i(n(132));(0,o["default"])(t,"__esModule",{value:!0});var u=n(2),l=u.__importDefault(n(3)),c=n(7),d=function(){function e(t,n){this.menu=t,this.conf=n,this.$container=l["default"]('

');var i=t.editor;i.txt.eventHooks.clickEvents.push(e.hideCurAllPanels),i.txt.eventHooks.toolbarClickEvents.push(e.hideCurAllPanels),i.txt.eventHooks.dropListMenuHoverEvents.push(e.hideCurAllPanels)}return e.prototype.create=function(){var t=this,n=this.menu;if(!e.createdMenus.has(n)){var i=this.conf,o=this.$container,a=i.width||300,d=n.editor.$toolbarElem.getBoundingClientRect(),h=n.$elem.getBoundingClientRect(),A=d.height+d.top-h.top,p=(d.width-a)/2+d.left-h.left,f=300;Math.abs(p)>f&&(p=h.left');o.append(g),g.on("click",(function(){t.remove()}));var m=l["default"]('
    '),v=l["default"]('
    ');o.append(m).append(v);var _=i.height;_&&v.css("height",_+"px").css("overflow-y","auto");var y=i.tabs||[],w=[],b=[];(0,r["default"])(y).call(y,(function(e,t){if(e){var n=e.title||"",i=e.tpl||"",o=l["default"]('
  • '+n+"
  • ");m.append(o);var s=l["default"](i);v.append(s),w.push(o),b.push(s),0===t?(o.data("active",!0),o.addClass("w-e-active")):s.hide(),o.on("click",(function(){o.data("active")||((0,r["default"])(w).call(w,(function(e){e.data("active",!1),e.removeClass("w-e-active")})),(0,r["default"])(b).call(b,(function(e){e.hide()})),o.data("active",!0),o.addClass("w-e-active"),s.show())}))}})),o.on("click",(function(e){e.stopPropagation()})),n.$elem.append(o),i.setLinkValue&&i.setLinkValue(o,"text"),i.setLinkValue&&i.setLinkValue(o,"link"),(0,r["default"])(y).call(y,(function(e,n){if(e){var i=e.events||[];(0,r["default"])(i).call(i,(function(e){var i,o=e.selector,r=e.type,a=e.fn||c.EMPTY_FN,l=b[n],d=null!==(i=e.bindEnter)&&void 0!==i&&i,h=function(e){return u.__awaiter(t,void 0,void 0,(function(){var t;return u.__generator(this,(function(n){switch(n.label){case 0:return e.stopPropagation(),[4,a(e)];case 1:return t=n.sent(),t&&this.remove(),[2]}}))}))};(0,s["default"])(l).call(l,o).on(r,h),d&&"click"===r&&l.on("keyup",(function(e){13==e.keyCode&&h(e)}))}))}}));var C=(0,s["default"])(o).call(o,"input[type=text],textarea");C.length&&C.get(0).focus(),e.hideCurAllPanels(),n.setPanel(this),e.createdMenus.add(n)}},e.prototype.remove=function(){var t=this.menu,n=this.$container;n&&n.remove(),e.createdMenus["delete"](t)},e.hideCurAllPanels=function(){var t;0!==e.createdMenus.size&&(0,r["default"])(t=e.createdMenus).call(t,(function(e){var t=e.panel;t&&t.remove()}))},e.createdMenus=new a["default"],e}();t["default"]=d},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(62),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},function(e,t,n){var i=n(9),o=n(8),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e])||r(o[e]):i[e]&&i[e][t]||o[e]&&o[e][t]}},function(e,t,n){var i=n(81),o=n(18).f,r=n(19),s=n(16),a=n(170),u=n(10),l=u("toStringTag");e.exports=function(e,t,n,u){if(e){var c=n?e:e.prototype;s(c,l)||o(c,l,{configurable:!0,value:t}),u&&!i&&r(c,"toString",a)}}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(95)),a=function(e){function t(t,n){return e.call(this,t,n)||this}return r.__extends(t,e),t.prototype.setPanel=function(e){this.panel=e},t}(s["default"]);t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(57));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=function(){function e(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1;var i=u["default"]("
    ");i.addClass("w-e-tooltip"),this.$container=i}return e.prototype.getPositionData=function(){var e=this.$container,t=0,n=0,i=20,o=document.documentElement.scrollTop,r=this.$targetElem.getBoundingClientRect(),s=this.editor.$textElem.getBoundingClientRect(),a=this.$targetElem.getOffsetData(),l=u["default"](a.parent),c=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=l.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var d=l.getBoundingClientRect().height,h=a.top,A=a.left,p=a.height,f=h-c;f>i+5?(t=f-i-15,e.addClass("w-e-tooltip-up")):f+p+i0?f:0)+i+10,e.addClass("w-e-tooltip-down")),n=A<0?0:A}else r.top");a.addClass("w-e-tooltip-item-wrapper "),a.append(s),o.append(a),s.on("click",(function(o){o.preventDefault();var r=t.onClick(n,i);r&&e.remove()}))}))},e.prototype.create=function(){var e,t,n=this.editor,i=this.$container;this.appendMenus();var o=this.getPositionData(),r=o.top,a=o.left;i.css("top",r+"px"),i.css("left",a+"px"),i.css("z-index",n.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(i):u["default"]("body").append(i),this._show=!0,n.beforeDestroy((0,s["default"])(e=this.remove).call(e,this)),n.txt.eventHooks.onBlurEvents.push((0,s["default"])(t=this.remove).call(t,this))},e.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,o["default"])(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t["default"]=l},function(e,t,n){var i=n(41);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var i,o,r,s=n(165),a=n(8),u=n(13),l=n(19),c=n(16),d=n(63),h=n(51),A=a.WeakMap,p=function(e){return r(e)?o(e):i(e,{})},f=function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(s){var g=new A,m=g.get,v=g.has,_=g.set;i=function(e,t){return _.call(g,e,t),t},o=function(e){return m.call(g,e)||{}},r=function(e){return v.call(g,e)}}else{var y=d("state");h[y]=!0,i=function(e,t){return l(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},r=function(e){return c(e,y)}}e.exports={set:i,get:o,has:r,enforce:p,getterFor:f}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var s=n(2),a=n(137),u=s.__importDefault(n(3));function l(e){var t=[];return(0,r["default"])(e).call(e,(function(e){var n=e.getNodeName();if(n!==a.ListType.OrderedList&&n!==a.ListType.UnorderedList)t.push(e);else if(e.prior)t.push(e.prior);else{var i=e.children();null===i||void 0===i||(0,r["default"])(i).call(i,(function(e){t.push(u["default"](e))}))}})),t}function c(e,t,n){var i=e.selection,o=document.createRange();t.length>1?(o.setStart(t.elems[0],0),o.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):o.selectNodeContents(t.elems[0]),n&&o.collapse(!1),i.saveRange(o),i.restoreSelection()}function d(e){var t;return e.prior?e.prior:u["default"](null===(t=e.children())||void 0===t?void 0:t.elems[0])}function h(e){var t;return e.prior?e.prior:u["default"](null===(t=e.children())||void 0===t?void 0:t.last().elems[0])}function A(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)}function p(e){return document.createElement(e)}function f(){return document.createDocumentFragment()}function g(e,t,n){return void 0===n&&(n="li"),(0,r["default"])(e).call(e,(function(e){var i=p(n);i.innerHTML=e.html(),t.appendChild(i),e.remove()})),t}t.filterSelectionNodes=l,t.updateRange=c,t.getStartPoint=d,t.getEndPoint=h,t.insertBefore=A,t.createElement=p,t.createDocumentFragment=f,t.createElementFragment=g},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var i=n(164).charAt,o=n(42),r=n(75),s="String Iterator",a=o.set,u=o.getterFor(s);r(String,"String",(function(e){a(this,{type:s,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=i(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t){e.exports={}},function(e,t,n){var i=n(107),o=n(80);e.exports=Object.keys||function(e){return i(e,o)}},function(e,t,n){var i=n(19);e.exports=function(e,t,n,o){o&&o.enumerable?e[t]=n:i(e,t,n)}},function(e,t,n){n(173);var i=n(174),o=n(8),r=n(65),s=n(19),a=n(44),u=n(10),l=u("toStringTag");for(var c in i){var d=o[c],h=d&&d.prototype;h&&r(h)!==l&&s(h,l,c),a[c]=a.Array}},function(e,t,n){var i=n(34);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(11),o=n(10),r=n(86),s=o("species");e.exports=function(e){return r>=51||!i((function(){var t=[],n=t.constructor={};return n[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){e.exports=n(222)},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.ListHandle=void 0;var r=n(2),s=r.__importDefault(n(373)),a=function(){function e(e){this.options=e,this.selectionRangeElem=new s["default"]}return e}();t.ListHandle=a},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:i},function(e,t,n){var i=n(13);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(74),o=n(64),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},function(e,t,n){var i=n(81),o=n(34),r=n(10),s=r("toStringTag"),a="Arguments"==o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=Object(e),s))?n:a?o(t):"Object"==(i=o(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){var i=n(25),o=n(112),r=n(35),s=n(40),a=n(113),u=n(114),l=function(e,t){this.stopped=e,this.result=t},c=e.exports=function(e,t,n,c,d){var h,A,p,f,g,m,v,_=s(t,n,c?2:1);if(d)h=e;else{if(A=a(e),"function"!=typeof A)throw TypeError("Target is not iterable");if(o(A)){for(p=0,f=r(e.length);f>p;p++)if(g=c?_(i(v=e[p])[0],v[1]):_(e[p]),g&&g instanceof l)return g;return new l(!1)}h=A.call(e)}m=h.next;while(!(v=m.call(h)).done)if(g=u(h,_,v.value,c),"object"==typeof g&&g&&g instanceof l)return g;return new l(!1)};c.stop=function(e){return new l(!0,e)}},function(e,t,n){"use strict";var i=n(11);e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var i=n(60),o=n(18),r=n(48);e.exports=function(e,t,n){var s=i(t);s in e?o.f(e,s,r(0,n)):e[s]=n}},function(e,t,n){e.exports=n(209)},function(e,t,n){var i=n(14),o=n(59),r=n(48),s=n(30),a=n(60),u=n(16),l=n(100),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=s(e),t=a(t,!0),l)try{return c(e,t)}catch(n){}if(u(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){var i=n(11),o=n(34),r="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?r.call(e,""):Object(e)}:Object},function(e,t,n){var i=n(8),o=n(13),r=i.document,s=o(r)&&o(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},function(e,t,n){var i=n(43),o=n(103);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";var i=n(5),o=n(167),r=n(105),s=n(171),a=n(37),u=n(19),l=n(53),c=n(10),d=n(43),h=n(44),A=n(104),p=A.IteratorPrototype,f=A.BUGGY_SAFARI_ITERATORS,g=c("iterator"),m="keys",v="values",_="entries",y=function(){return this};e.exports=function(e,t,n,c,A,w,b){o(n,t,c);var C,S,B,E=function(e){if(e===A&&k)return k;if(!f&&e in D)return D[e];switch(e){case m:return function(){return new n(this,e)};case v:return function(){return new n(this,e)};case _:return function(){return new n(this,e)}}return function(){return new n(this)}},x=t+" Iterator",L=!1,D=e.prototype,N=D[g]||D["@@iterator"]||A&&D[A],k=!f&&N||E(A),I="Array"==t&&D.entries||N;if(I&&(C=r(I.call(new e)),p!==Object.prototype&&C.next&&(d||r(C)===p||(s?s(C,p):"function"!=typeof C[g]&&u(C,g,y)),a(C,x,!0,!0),d&&(h[x]=y))),A==v&&N&&N.name!==v&&(L=!0,k=function(){return N.call(this)}),d&&!b||D[g]===k||u(D,g,k),h[t]=k,A)if(S={values:E(v),keys:w?k:E(m),entries:E(_)},b)for(B in S)(f||L||!(B in D))&&l(D,B,S[B]);else i({target:t,proto:!0,forced:f||L},S);return S}},function(e,t,n){var i=n(11);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},function(e,t,n){var i,o=n(25),r=n(169),s=n(80),a=n(51),u=n(108),l=n(73),c=n(63),d=">",h="<",A="prototype",p="script",f=c("IE_PROTO"),g=function(){},m=function(e){return h+p+d+e+h+"/"+p+d},v=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e,t=l("iframe"),n="java"+p+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},y=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}y=i?v(i):_();var e=s.length;while(e--)delete y[A][s[e]];return y()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[A]=o(e),n=new g,g[A]=null,n[f]=e):n=y(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(30),o=n(35),r=n(79),s=function(e){return function(t,n,s){var a,u=i(t),l=o(u.length),c=r(s,l);if(e&&n!=n){while(l>c)if(a=u[c++],a!=a)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},function(e,t,n){var i=n(62),o=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?o(n+t,0):r(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var i=n(10),o=i("toStringTag"),r={};r[o]="z",e.exports="[object z]"===String(r)},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var i=n(36);e.exports=i("navigator","userAgent")||""},function(e,t,n){"use strict";var i=n(41),o=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){var i,o,r=n(8),s=n(84),a=r.process,u=a&&a.versions,l=u&&u.v8;l?(i=l.split("."),o=i[0]+i[1]):s&&(i=s.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/),i&&(o=i[1]))),e.exports=o&&+o},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(6),l=s.__importDefault(n(267)),c=s.__importDefault(n(280)),d=s.__importDefault(n(281)),h=s.__importDefault(n(282)),A=s.__importDefault(n(301)),p=s.__importStar(n(416)),f=s.__importDefault(n(417)),g=s.__importDefault(n(418)),m=s.__importDefault(n(419)),v=s.__importStar(n(420)),_=s.__importDefault(n(423)),y=s.__importDefault(n(424)),w=s.__importDefault(n(425)),b=s.__importDefault(n(427)),C=s.__importDefault(n(437)),S=s.__importDefault(n(440)),B=s.__importStar(n(441)),E=s.__importDefault(n(23)),x=s.__importDefault(n(134)),L=s.__importDefault(n(24)),D=s.__importDefault(n(33)),N=s.__importDefault(n(38)),k=s.__importDefault(n(39)),I=1,F=function(){function e(e,t){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+I++,this.toolbarSelector=e,this.textSelector=t,p.selectorValidator(this),this.config=u.deepClone(l["default"]),this.$toolbarElem=a["default"]("
    "),this.$textContainerElem=a["default"]("
    "),this.$textElem=a["default"]("
    "),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new c["default"](this),this.cmd=new d["default"](this),this.txt=new h["default"](this),this.menus=new A["default"](this),this.zIndex=new y["default"],this.change=new w["default"](this),this.history=new b["default"](this),this.onSelectionChange=new S["default"](this);var n=C["default"](this),i=n.disable,o=n.enable;this.disable=i,this.enable=o,this.isEnable=!0}return e.prototype.initSelection=function(e){f["default"](this,e)},e.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),m["default"](this),p["default"](this),this.txt.init(),this.menus.init(),v["default"](this),this.initSelection(!0),g["default"](this),this.change.observe(),this.history.observe(),B["default"](this)},e.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},e.prototype.destroy=function(){var e,t=this;(0,r["default"])(e=this.beforeDestroyHooks).call(e,(function(e){return e.call(t)})),this.$toolbarElem.remove(),this.$textContainerElem.remove()},e.prototype.fullScreen=function(){v.setFullScreen(this)},e.prototype.unFullScreen=function(){v.setUnFullScreen(this)},e.prototype.scrollToHead=function(e){_["default"](this,e)},e.registerMenu=function(t,n){n&&"function"===typeof n&&(e.globalCustomMenuConstructorList[t]=n)},e.prototype.registerPlugin=function(e,t){B.registerPlugin(e,t,this.pluginsFunctionList)},e.registerPlugin=function(t,n){B.registerPlugin(t,n,e.globalPluginsFunctionList)},e.$=a["default"],e.BtnMenu=E["default"],e.DropList=x["default"],e.DropListMenu=L["default"],e.Panel=D["default"],e.PanelMenu=N["default"],e.Tooltip=k["default"],e.globalCustomMenuConstructorList={},e.globalPluginsFunctionList={},e}();t["default"]=F},function(e,t,n){var i=n(13),o=n(55),r=n(10),s=r("species");e.exports=function(e,t){var n;return o(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[s],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){var i=n(49),o=n(68),r="["+o+"]",s=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),u=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(s,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},function(e,t,n){e.exports=n(205)},function(e,t,n){var i=n(227),o=n(230);function r(t){return e.exports=r="function"===typeof o&&"symbol"===typeof i?function(e){return typeof e}:function(e){return e&&"function"===typeof o&&e.constructor===o&&e!==o.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t,n){var i=n(10);t.f=i},function(e,t,n){e.exports=n(306)},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(33)),u=function(){function e(e,t){var n=this;this.$elem=e,this.editor=t,this._active=!1,e.on("click",(function(e){var i;a["default"].hideCurAllPanels(),(0,r["default"])(i=t.txt.eventHooks.menuClickEvents).call(i,(function(e){return e()})),e.stopPropagation(),null!=t.selection.getRange()&&n.clickHandler(e)}))}return e.prototype.clickHandler=function(e){},e.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},e.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,o["default"])(e.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(28));function s(e){var n=e.elems[0];while(n&&(0,r["default"])(i=t.EXTRA_TAG).call(i,n.nodeName)){var i;if(n=n.parentElement,"A"===n.nodeName)return n}}function a(e){var t,n=e.selection.getSelectionContainerElem();if(!(null===(t=null===n||void 0===n?void 0:n.elems)||void 0===t?void 0:t.length))return!1;if("A"===n.getNodeName())return!0;var i=s(n);return!(!i||"A"!==i.nodeName)}(0,o["default"])(t,"__esModule",{value:!0}),t.getParentNodeA=t.EXTRA_TAG=void 0,t.EXTRA_TAG=["B","FONT","I","STRIKE"],t.getParentNodeA=s,t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(57)),s=i(n(4)),a=i(n(27));(0,o["default"])(t,"__esModule",{value:!0});var u=n(2),l=n(6),c=u.__importDefault(n(135)),d=u.__importDefault(n(136)),h=function(){function e(e){this.editor=e}return e.prototype.insertImg=function(e,t,n){var i=this.editor,o=i.config,r="validate.",s=function(e,t){return void 0===t&&(t=r),i.i18next.t(t+e)},a=e.replace(//g,">");a=a.replace("'",'"');var u="";n&&(u=n.replace("'",'"'),u="data-href='"+encodeURIComponent(u)+"' ");var l="";t&&(l=t.replace(//g,">"),l=l.replace("'",'"'),l="alt='"+l+"' "),i.cmd["do"]("insertHTML","'),o.linkImgCallback(e,t,n);var c=document.createElement("img");c.onload=function(){c=null},c.onerror=function(){o.customAlert(s("插入图片错误"),"error","wangEditor: "+s("插入图片错误")+","+s("图片链接")+' "'+e+'",'+s("下载链接失败")),c=null},c.onabort=function(){return c=null},c.src=e},e.prototype.uploadImg=function(e){var t=this;if(e.length){var n=this.editor,i=n.config,o="validate.",u=function(e){return n.i18next.t(o+e)},h=i.uploadImgServer,A=i.uploadImgShowBase64,p=i.uploadImgMaxSize,f=p/1024/1024,g=i.uploadImgMaxLength,m=i.uploadFileName,v=i.uploadImgParams,_=i.uploadImgParamsWithUrl,y=i.uploadImgHeaders,w=i.uploadImgHooks,b=i.uploadImgTimeout,C=i.withCredentials,S=i.customUploadImg;if(S||h||A){var B=[],E=[];if(l.arrForEach(e,(function(e){if(e){var t=e.name||e.type.replace("/","."),i=e.size;if(t&&i){var o=n.config.uploadImgAccept.join("|"),r=".("+o+")$",s=new RegExp(r,"i");!1!==s.test(t)?pg)i.customAlert(u("一次最多上传")+g+u("张图片"),"warning");else if(S&&"function"===typeof S){var x;S(B,(0,r["default"])(x=this.insertImg).call(x,this))}else{var L=new FormData;if((0,s["default"])(B).call(B,(function(e,t){var n=m||e.name;B.length>1&&(n+=t+1),L.append(n,e)})),h){var D=h.split("#");h=D[0];var N=D[1]||"";(0,s["default"])(l).call(l,v,(function(e,t){_&&((0,a["default"])(h).call(h,"?")>0?h+="&":h+="?",h=h+e+"="+t),L.append(e,t)})),N&&(h+="#"+N);var k=c["default"](h,{timeout:b,formData:L,headers:y,withCredentials:!!C,beforeSend:function(e){if(w.before)return w.before(e,n,B)},onTimeout:function(e){i.customAlert(u("上传图片超时"),"error"),w.timeout&&w.timeout(e,n)},onProgress:function(e,t){var i=new d["default"](n);t.lengthComputable&&(e=t.loaded/t.total,i.show(e))},onError:function(e){i.customAlert(u("上传图片错误"),"error",u("上传图片错误")+","+u("服务器返回状态")+": "+e.status),w.error&&w.error(e,n)},onFail:function(e,t){i.customAlert(u("上传图片失败"),"error",u("上传图片返回结果错误")+","+u("返回结果")+": "+t),w.fail&&w.fail(e,n,t)},onSuccess:function(e,o){if(w.customInsert){var a;w.customInsert((0,r["default"])(a=t.insertImg).call(a,t),o,n)}else{if("0"!=o.errno)return i.customAlert(u("上传图片失败"),"error",u("上传图片返回结果错误")+","+u("返回结果")+" errno="+o.errno),void(w.fail&&w.fail(e,n,o));var l=o.data;(0,s["default"])(l).call(l,(function(e){"string"===typeof e?t.insertImg(e):t.insertImg(e.url,e.alt,e.href)})),w.success&&w.success(e,n,o)}}});"string"===typeof k&&i.customAlert(k,"error")}else A&&l.arrForEach(e,(function(e){var n=t,i=new FileReader;i.readAsDataURL(e),i.onload=function(){if(this.result){var e=this.result.toString();n.insertImg(e,e)}}}))}else i.customAlert(u("传入的文件不合法"),"warning")}}},e}();t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(410)),s=i(n(4)),a=i(n(45));function u(e){return!!e.length&&"w-e-todo"===e.attr("class")}function l(e){var t=e.selection.getSelectionRangeTopNodes();if(0!==t.length)return(0,r["default"])(t).call(t,(function(e){return u(e)}))}function c(e,t,n){var i;if(e.hasChildNodes()){var o=e.cloneNode(),r=!1;""===t.nodeValue&&(r=!0);var a=[];return(0,s["default"])(i=e.childNodes).call(i,(function(e){if(!d(e,t)&&r&&(o.appendChild(e.cloneNode(!0)),"BR"!==e.nodeName&&a.push(e)),d(e,t)){if(1===e.nodeType){var i=c(e,t,n);i&&""!==i.textContent&&(null===o||void 0===o||o.appendChild(i))}if(3===e.nodeType&&t.isEqualNode(e)){var s=h(e,n);o.textContent=s}r=!0}})),(0,s["default"])(a).call(a,(function(e){var t=e;t.remove()})),o}}function d(e,t){return 3===e.nodeType?e.nodeValue===t.nodeValue:e.contains(t)}function h(e,t,n){void 0===n&&(n=!0);var i=e.nodeValue,o=null===i||void 0===i?void 0:(0,a["default"])(i).call(i,0,t);if(i=null===i||void 0===i?void 0:(0,a["default"])(i).call(i,t),!n){var r=i;i=o,o=r}return e.nodeValue=o,i}(0,o["default"])(t,"__esModule",{value:!0}),t.dealTextNode=t.isAllTodo=t.isTodo=t.getCursorNextNode=void 0,t.isTodo=u,t.isAllTodo=l,t.getCursorNextNode=c,t.dealTextNode=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(430),s=function(){function e(e){this.maxSize=e,this.isRe=!1,this.data=new r.CeilStack(e),this.revokeData=new r.CeilStack(e)}return(0,o["default"])(e.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),e.prototype.resetMaxSize=function(e){this.data.resetMax(e),this.revokeData.resetMax(e)},e.prototype.save=function(e){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(e),this},e.prototype.revoke=function(e){!this.isRe&&(this.isRe=!0);var t=this.data.outstack();return!!t&&(this.revokeData.instack(t),e(t),!0)},e.prototype.restore=function(e){!this.isRe&&(this.isRe=!0);var t=this.revokeData.outstack();return!!t&&(this.data.instack(t),e(t),!0)},e}();t["default"]=s},function(e,t,n){var i=n(14),o=n(11),r=n(73);e.exports=!i&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(11),o=/#|\.prototype\./,r=function(e,t){var n=a[s(e)];return n==l||n!=u&&("function"==typeof t?i(t):!!t)},s=r.normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=r.data={},u=r.NATIVE="N",l=r.POLYFILL="P";e.exports=r},function(e,t,n){var i=n(103),o=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return o.call(e)}),e.exports=i.inspectSource},function(e,t,n){var i=n(8),o=n(166),r="__core-js_shared__",s=i[r]||o(r,{});e.exports=s},function(e,t,n){"use strict";var i,o,r,s=n(105),a=n(19),u=n(16),l=n(10),c=n(43),d=l("iterator"),h=!1,A=function(){return this};[].keys&&(r=[].keys(),"next"in r?(o=s(s(r)),o!==Object.prototype&&(i=o)):h=!0),void 0==i&&(i={}),c||u(i,d)||a(i,d,A),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:h}},function(e,t,n){var i=n(16),o=n(31),r=n(63),s=n(168),a=r("IE_PROTO"),u=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=o(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){var i=n(76);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var i=n(16),o=n(30),r=n(78).indexOf,s=n(51);e.exports=function(e,t){var n,a=o(e),u=0,l=[];for(n in a)!i(s,n)&&i(a,n)&&l.push(n);while(t.length>u)i(a,n=t[u++])&&(~r(l,n)||l.push(n));return l}},function(e,t,n){var i=n(36);e.exports=i("document","documentElement")},function(e,t,n){var i=n(8);e.exports=i.Promise},function(e,t,n){var i=n(53);e.exports=function(e,t,n){for(var o in t)n&&n.unsafe&&e[o]?e[o]=t[o]:i(e,o,t[o],n);return e}},function(e,t,n){"use strict";var i=n(36),o=n(18),r=n(10),s=n(14),a=r("species");e.exports=function(e){var t=i(e),n=o.f;s&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(10),o=n(44),r=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[r]===e)}},function(e,t,n){var i=n(65),o=n(44),r=n(10),s=r("iterator");e.exports=function(e){if(void 0!=e)return e[s]||e["@@iterator"]||o[i(e)]}},function(e,t,n){var i=n(25);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(s){var r=e["return"];throw void 0!==r&&i(r.call(e)),s}}},function(e,t,n){var i=n(10),o=i("iterator"),r=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(u){}return n}},function(e,t,n){var i=n(25),o=n(41),r=n(10),s=r("species");e.exports=function(e,t){var n,r=i(e).constructor;return void 0===r||void 0==(n=i(r)[s])?t:o(n)}},function(e,t,n){var i,o,r,s=n(8),a=n(11),u=n(34),l=n(40),c=n(108),d=n(73),h=n(118),A=s.location,p=s.setImmediate,f=s.clearImmediate,g=s.process,m=s.MessageChannel,v=s.Dispatch,_=0,y={},w="onreadystatechange",b=function(e){if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},C=function(e){return function(){b(e)}},S=function(e){b(e.data)},B=function(e){s.postMessage(e+"",A.protocol+"//"+A.host)};p&&f||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return y[++_]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(_),_},f=function(e){delete y[e]},"process"==u(g)?i=function(e){g.nextTick(C(e))}:v&&v.now?i=function(e){v.now(C(e))}:m&&!h?(o=new m,r=o.port2,o.port1.onmessage=S,i=l(r.postMessage,r,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||a(B)||"file:"===A.protocol?i=w in d("script")?function(e){c.appendChild(d("script"))[w]=function(){c.removeChild(this),b(e)}}:function(e){setTimeout(C(e),0)}:(i=B,s.addEventListener("message",S,!1))),e.exports={set:p,clear:f}},function(e,t,n){var i=n(84);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},function(e,t,n){var i=n(25),o=n(13),r=n(85);e.exports=function(e,t){if(i(e),o(t)&&t.constructor===e)return t;var n=r.f(e),s=n.resolve;return s(t),n.promise}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){e.exports=n(197)},function(e,t,n){"use strict";var i=n(5),o=n(8),r=n(123),s=n(11),a=n(19),u=n(66),l=n(83),c=n(13),d=n(37),h=n(18).f,A=n(32).forEach,p=n(14),f=n(42),g=f.set,m=f.getterFor;e.exports=function(e,t,n){var f,v=-1!==e.indexOf("Map"),_=-1!==e.indexOf("Weak"),y=v?"set":"add",w=o[e],b=w&&w.prototype,C={};if(p&&"function"==typeof w&&(_||b.forEach&&!s((function(){(new w).entries().next()})))){f=t((function(t,n){g(l(t,f,e),{type:e,collection:new w}),void 0!=n&&u(n,t[y],t,v)}));var S=m(e);A(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in b)||_&&"clear"==e||a(f.prototype,e,(function(n,i){var o=S(this).collection;if(!t&&_&&!c(n))return"get"==e&&void 0;var r=o[e](0===n?0:n,i);return t?this:r}))})),_||h(f.prototype,"size",{configurable:!0,get:function(){return S(this).collection.size}})}else f=n.getConstructor(t,e,v,y),r.REQUIRED=!0;return d(f,e,!1,!0),C[e]=f,i({global:!0,forced:!0},C),_||n.setStrong(f,e,v),f}},function(e,t,n){var i=n(51),o=n(13),r=n(16),s=n(18).f,a=n(64),u=n(200),l=a("meta"),c=0,d=Object.isExtensible||function(){return!0},h=function(e){s(e,l,{value:{objectID:"O"+ ++c,weakData:{}}})},A=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,l)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[l].objectID},p=function(e,t){if(!r(e,l)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[l].weakData},f=function(e){return u&&g.REQUIRED&&d(e)&&!r(e,l)&&h(e),e},g=e.exports={REQUIRED:!1,fastKey:A,getWeakData:p,onFreeze:f};i[l]=!0},function(e,t,n){"use strict";var i=n(18).f,o=n(77),r=n(110),s=n(40),a=n(83),u=n(66),l=n(75),c=n(111),d=n(14),h=n(123).fastKey,A=n(42),p=A.set,f=A.getterFor;e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,i){a(e,c,t),p(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=i&&u(i,e[l],e,n)})),A=f(t),g=function(e,t,n){var i,o,r=A(e),s=m(e,t);return s?s.value=n:(r.last=s={index:o=h(t,!0),key:t,value:n,previous:i=r.last,next:void 0,removed:!1},r.first||(r.first=s),i&&(i.next=s),d?r.size++:e.size++,"F"!==o&&(r.index[o]=s)),e},m=function(e,t){var n,i=A(e),o=h(t);if("F"!==o)return i.index[o];for(n=i.first;n;n=n.next)if(n.key==t)return n};return r(c.prototype,{clear:function(){var e=this,t=A(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=A(t),i=m(t,e);if(i){var o=i.next,r=i.previous;delete n.index[i.index],i.removed=!0,r&&(r.next=o),o&&(o.previous=r),n.first==i&&(n.first=o),n.last==i&&(n.last=r),d?n.size--:t.size--}return!!i},forEach:function(e){var t,n=A(this),i=s(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),r(c.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&i(c.prototype,"size",{get:function(){return A(this).size}}),c},setStrong:function(e,t,n){var i=t+" Iterator",o=f(t),r=f(i);l(e,t,(function(e,t){p(this,{type:i,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=r(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},function(e,t,n){var i=n(12);i("iterator")},function(e,t,n){var i=n(107),o=n(80),r=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){e.exports=n(268)},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={zIndex:1e4}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0}),t.getPasteImgs=t.getPasteHtml=t.getPasteText=void 0;var s=n(2),a=n(6),u=s.__importDefault(n(292));function l(e){var t=e.clipboardData,n="";return n=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),a.replaceHtmlSymbol(n)}function c(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=e.clipboardData,o="";if(i&&(o=i.getData("text/html")),!o){var r=l(e);if(!r)return"";o="

    "+r+"

    "}return o=o.replace(/<(\d)/gm,(function(e,t){return"<"+t})),o=o.replace(/<(\/?meta.*?)>/gim,""),o=u["default"](o,t,n),o}function d(e){var t,n=[],i=l(e);if(i)return n;var o=null===(t=e.clipboardData)||void 0===t?void 0:t.items;return o?((0,r["default"])(a).call(a,o,(function(e,t){var i=t.type;/image/i.test(i)&&n.push(t.getAsFile())})),n):n}t.getPasteText=l,t.getPasteHtml=c,t.getPasteImgs=d},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(310)},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(46));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=n(7),c=function(){function e(e,t){var n=this;this.hideTimeoutId=0,this.menu=e,this.conf=t;var i=u["default"]('
    '),o=u["default"]("

    "+t.title+"

    ");o.addClass("w-e-dp-title"),i.append(o);var a=t.list||[],c=t.type||"list",d=t.clickHandler||l.EMPTY_FN,h=u["default"]('
      ');(0,r["default"])(a).call(a,(function(e){var t=e.$elem,i=e.value,o=u["default"]('
    • ');t&&(o.append(t),h.append(o),o.on("click",(function(e){d(i),e.stopPropagation(),n.hideTimeoutId=(0,s["default"])((function(){n.hide()}))})))})),i.append(h),i.on("mouseleave",(function(){n.hideTimeoutId=(0,s["default"])((function(){n.hide()}))})),this.$container=i,this.rendered=!1,this._show=!1}return e.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e=this.menu,t=e.$elem,n=this.$container;if(!this._show){if(this.rendered)n.show();else{var i=t.getBoundingClientRect().height||0,o=this.conf.width||100;n.css("margin-top",i+"px").css("width",o+"px"),t.append(n),this.rendered=!0}this._show=!0}},e.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,o["default"])(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(92)),r=i(n(1)),s=i(n(4));(0,r["default"])(t,"__esModule",{value:!0});var a=n(6);function u(e,t){var n=new XMLHttpRequest;if(n.open("POST",e),n.timeout=t.timeout||1e4,n.ontimeout=function(){console.error("wangEditor - 请求超时"),t.onTimeout&&t.onTimeout(n)},n.upload&&(n.upload.onprogress=function(e){var n=e.loaded/e.total;t.onProgress&&t.onProgress(n,e)}),t.headers&&(0,s["default"])(a).call(a,t.headers,(function(e,t){n.setRequestHeader(e,t)})),n.withCredentials=!!t.withCredentials,t.beforeSend){var i=t.beforeSend(n);if(i&&"object"===(0,o["default"])(i)&&i.prevent)return i.msg}return n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200)&&!(e>=300&&e<400)){if(e>=400)return console.error("wangEditor - XHR 报错,状态码 "+e),void(t.onError&&t.onError(n));var i,r=n.responseText;if("object"!==(0,o["default"])(r))try{i=JSON.parse(r)}catch(s){return console.error("wangEditor - 返回结果不是 JSON 格式",r),void(t.onFail&&t.onFail(n,r))}else i=r;t.onSuccess(n,i)}}},n.send(t.formData||null),n}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(342)),s=i(n(46));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=function(){function e(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=u["default"]('
      '),this.isShow=!1,this.time=0,this.timeoutId=0}return e.prototype.show=function(e){var t=this;if(!this.isShow){this.isShow=!0;var n=this.$bar,i=this.$textContainer;i.append(n),(0,r["default"])()-this.time>100&&e<=1&&(n.css("width",100*e+"%"),this.time=(0,r["default"])());var o=this.timeoutId;o&&clearTimeout(o),this.timeoutId=(0,s["default"])((function(){t.hide()}),500)}},e.prototype.hide=function(){var e=this.$bar;e.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},e}();t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.ListType=void 0;var r,s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(24)),l=n(47),c=s.__importStar(n(371));(function(e){e["OrderedList"]="OL",e["UnorderedList"]="UL"})(r=t.ListType||(t.ListType={}));var d=function(e){function t(t){var n=this,i=a["default"]('
      \n \n
      '),o={width:130,title:"序列",type:"list",list:[{$elem:a["default"]('\n

      \n \n '+t.i18next.t("menus.dropListMenu.list.无序列表")+"\n

      "),value:r.UnorderedList},{$elem:a["default"]('

      \n \n '+t.i18next.t("menus.dropListMenu.list.有序列表")+"\n

      "),value:r.OrderedList}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,o)||this,n}return s.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();void 0!==n&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},t.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},t.prototype.handleSelectionRangeNodes=function(e){var t=this.editor,n=t.selection,i=e.toLowerCase(),o=n.getSelectionContainerElem(),r=n.getSelectionStartElem().getNodeTop(t),s=n.getSelectionEndElem().getNodeTop(t);if(this.validator(r,s,t.$textElem)){var a=n.getRange(),u=null===a||void 0===a?void 0:a.collapsed;t.$textElem.equal(o)||(o=o.getNodeTop(t));var d,h={editor:t,listType:e,listTarget:i,$selectionElem:o,$startElem:r,$endElem:s};d=this.isOrderElem(o)?c.ClassType.Wrap:this.isOrderElem(r)&&this.isOrderElem(s)?c.ClassType.Join:this.isOrderElem(r)?c.ClassType.StartJoin:this.isOrderElem(s)?c.ClassType.EndJoin:c.ClassType.Other;var A=new c["default"](c.createListHandle(d,h,a));l.updateRange(t,A.getSelectionRangeElem(),!!u)}},t.prototype.isOrderElem=function(e){var t=e.getNodeName();return t===r.OrderedList||t===r.UnorderedList},t.prototype.tryChangeActive=function(){},t}(u["default"]);t["default"]=d},function(e,t,n){e.exports=n(395)},function(e,t,n){"use strict";var i=n(0),o=i(n(1));function r(e){var t=e.selection.getSelectionContainerElem();return!!(null===t||void 0===t?void 0:t.length)&&!("CODE"!=t.getNodeName()&&"PRE"!=t.getNodeName()&&"CODE"!=t.parent().getNodeName()&&"PRE"!=t.parent().getNodeName()&&!/hljs/.test(t.parent().attr("class")))}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29));(0,o["default"])(t,"__esModule",{value:!0}),t.todo=void 0;var s=n(2),a=s.__importDefault(n(3)),u=function(){function e(e){var t;this.template='

      ',this.checked=!1,this.$todo=a["default"](this.template),this.$child=null===(t=null===e||void 0===e?void 0:e.childNodes())||void 0===t?void 0:t.clone(!0)}return e.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},e.prototype.getInput=function(){var e=this.$todo,t=(0,r["default"])(e).call(e,"input");return t},e.prototype.getInputContainer=function(){var e=this.getInput().parent();return e},e.prototype.getTodo=function(){return this.$todo},e}();function l(e){var t=new u(e);return t.init(),t}t.todo=u,t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2);n(146),n(148),n(152),n(154),n(156),n(158),n(160);var s=r.__importDefault(n(87));r.__exportStar(n(442),t);try{document}catch(a){throw new Error("请在浏览器环境下运行")}t["default"]=s["default"]},function(e,t,n){var i=n(143);e.exports=i},function(e,t,n){n(144);var i=n(9),o=i.Object,r=e.exports=function(e,t,n){return o.defineProperty(e,t,n)};o.defineProperty.sham&&(r.sham=!0)},function(e,t,n){var i=n(5),o=n(14),r=n(18);i({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r.f})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(20),o=n(147);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n background-color: #fff;\n /*表情菜单样式*/\n /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n font-size: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 16px !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n cursor: pointer;\n display: block;\n height: 0px;\n border: 0;\n border-top: 3px solid #ccc;\n margin: 20px 0;\n}\n.w-e-clear-fix:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-drop-list-item {\n position: relative;\n top: 1px;\n padding-right: 7px;\n color: #333 !important;\n}\n.w-e-drop-list-tl {\n padding-left: 10px;\n text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(149);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21),o=n(150),r=n(151);t=i(!1);var s=o(r);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+s+') format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'w-e-icon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n content: "\\f014";\n}\n.w-e-icon-header:before {\n content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n content: "\\f1fc";\n}\n.w-e-icon-image:before {\n content: "\\e90d";\n}\n.w-e-icon-play:before {\n content: "\\e912";\n}\n.w-e-icon-location:before {\n content: "\\e947";\n}\n.w-e-icon-undo:before {\n content: "\\e965";\n}\n.w-e-icon-redo:before {\n content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n content: "\\e9bb";\n}\n.w-e-icon-link:before {\n content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n content: "\\e9df";\n}\n.w-e-icon-bold:before {\n content: "\\ea62";\n}\n.w-e-icon-underline:before {\n content: "\\ea63";\n}\n.w-e-icon-italic:before {\n content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n content: "\\ea65";\n}\n.w-e-icon-table2:before {\n content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n content: "\\f120";\n}\n.w-e-icon-page-break:before {\n content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n content: "\\ea0d";\n}\n.w-e-icon-font:before {\n content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n content: "\\e901";\n}\n.w-e-icon-split-line:before {\n content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n content: "\\ea52";\n}\n',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n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gq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){var i=n(20),o=n(153);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,'.w-e-toolbar {\n display: flex;\n padding: 0 6px;\n flex-wrap: wrap;\n position: relative;\n /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n position: relative;\n display: flex;\n width: 40px;\n height: 40px;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n color: #333;\n}\n.w-e-toolbar .w-e-active i {\n color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n color: #1e88e5;\n}\n.w-e-menu-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n font-size: 14px;\n margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(155);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,'.w-e-text-container {\n position: relative;\n height: 100%;\n}\n.w-e-text-container .w-e-progress {\n position: absolute;\n background-color: #1e88e5;\n top: 0;\n left: 0;\n height: 1px;\n}\n.w-e-text-container .placeholder {\n color: #D4D4D4;\n position: absolute;\n font-size: 11pt;\n line-height: 22px;\n left: 10px;\n top: 10px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n z-index: -1;\n}\n.w-e-text {\n padding: 0 10px;\n overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n margin: 10px 0;\n line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n display: block;\n border-left: 8px solid #d0e5f2;\n padding: 5px 10px;\n margin: 10px 0;\n line-height: 1.4;\n font-size: 100%;\n background-color: #f1f1f1;\n}\n.w-e-text code {\n display: inline-block;\n background-color: #f1f1f1;\n border-radius: 3px;\n padding: 3px 5px;\n margin: 0 3px;\n}\n.w-e-text pre code {\n display: block;\n}\n.w-e-text table {\n border-top: 1px solid #ccc;\n border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n border-bottom: 1px solid #ccc;\n border-right: 1px solid #ccc;\n padding: 3px 5px;\n min-height: 30px;\n height: 30px;\n}\n.w-e-text table th {\n border-bottom: 2px solid #ccc;\n text-align: center;\n background-color: #f1f1f1;\n}\n.w-e-text:focus {\n outline: none;\n}\n.w-e-text img {\n cursor: pointer;\n}\n.w-e-text img:hover {\n box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n list-style: none;\n font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n position: relative;\n left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n position: absolute;\n margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n top: 50%;\n margin-top: -6px;\n}\n.w-e-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n cursor: pointer;\n font-size: 14px;\n margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n color: #ccc;\n text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(157);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,'.w-e-menu .w-e-panel-container {\n position: absolute;\n top: 0;\n left: 50%;\n border: 1px solid #ccc;\n border-top: 0;\n box-shadow: 1px 1px 2px #ccc;\n color: #333;\n background-color: #fff;\n text-align: left;\n /* 为 emotion panel 定制的样式 */\n /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n margin: 2px 5px 0 0;\n cursor: pointer;\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n list-style: none;\n display: flex;\n font-size: 14px;\n margin: 2px 10px 0 10px;\n border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n padding: 3px 5px;\n color: #999;\n cursor: pointer;\n margin: 0 3px;\n position: relative;\n top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n color: #333;\n border-bottom: 1px solid #333;\n cursor: default;\n font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n padding: 10px 15px 10px 15px;\n font-size: 16px;\n /* 输入框的样式 */\n /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n width: 100%;\n border: 1px solid #ccc;\n padding: 5px;\n margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n border: none;\n border-bottom: 1px solid #ccc;\n font-size: 14px;\n height: 20px;\n color: #333;\n text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n width: 30px;\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n display: block;\n width: 100%;\n margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n font-size: 14px;\n color: #1e88e5;\n border: none;\n padding: 5px 10px;\n background-color: #fff;\n cursor: pointer;\n border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n float: left;\n margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n float: right;\n margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n cursor: pointer;\n font-size: 18px;\n padding: 0 3px;\n display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n display: inline-block;\n color: #999;\n cursor: pointer;\n font-size: 60px;\n line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(159);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,".w-e-toolbar .w-e-droplist {\n position: absolute;\n left: 0;\n top: 0;\n background-color: #fff;\n border: 1px solid #f1f1f1;\n border-right-color: #ccc;\n border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n text-align: center;\n color: #999;\n line-height: 2;\n border-bottom: 1px solid #f1f1f1;\n font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n list-style: none;\n line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n color: #333;\n padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n list-style: none;\n text-align: left;\n padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n display: inline-block;\n padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),o=i(n(161));Element.prototype.matches||(Element.prototype.matches=function(e){var t=this.ownerDocument.querySelectorAll(e),n=t.length;for(n;n>=0;n--)if(t.item(n)===this)break;return n>-1}),o["default"]||(window.Promise=o["default"])},function(e,t,n){e.exports=n(162)},function(e,t,n){var i=n(163);e.exports=i},function(e,t,n){n(61),n(50),n(54),n(175),n(178),n(179);var i=n(9);e.exports=i.Promise},function(e,t,n){var i=n(62),o=n(49),r=function(e){return function(t,n){var r,s,a=String(o(t)),u=i(n),l=a.length;return u<0||u>=l?e?"":void 0:(r=a.charCodeAt(u),r<55296||r>56319||u+1===l||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):r:e?a.slice(u,u+2):s-56320+(r-55296<<10)+65536)}};e.exports={codeAt:r(!1),charAt:r(!0)}},function(e,t,n){var i=n(8),o=n(102),r=i.WeakMap;e.exports="function"===typeof r&&/native code/.test(o(r))},function(e,t,n){var i=n(8),o=n(19);e.exports=function(e,t){try{o(i,e,t)}catch(n){i[e]=t}return t}},function(e,t,n){"use strict";var i=n(104).IteratorPrototype,o=n(77),r=n(48),s=n(37),a=n(44),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(i,{next:r(1,n)}),s(e,l,!1,!0),a[l]=u,e}},function(e,t,n){var i=n(11);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var i=n(14),o=n(18),r=n(25),s=n(52);e.exports=i?Object.defineProperties:function(e,t){r(e);var n,i=s(t),a=i.length,u=0;while(a>u)o.f(e,n=i[u++],t[n]);return e}},function(e,t,n){"use strict";var i=n(81),o=n(65);e.exports=i?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){var i=n(25),o=n(172);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return i(n),o(r),t?e.call(n,r):n.__proto__=r,n}}():void 0)},function(e,t,n){var i=n(13);e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var i=n(30),o=n(82),r=n(44),s=n(42),a=n(75),u="Array Iterator",l=s.set,c=s.getterFor(u);e.exports=a(Array,"Array",(function(e,t){l(this,{type:u,target:i(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var i,o,r,s,a=n(5),u=n(43),l=n(8),c=n(36),d=n(109),h=n(53),A=n(110),p=n(37),f=n(111),g=n(13),m=n(41),v=n(83),_=n(34),y=n(102),w=n(66),b=n(115),C=n(116),S=n(117).set,B=n(176),E=n(119),x=n(177),L=n(85),D=n(120),N=n(42),k=n(101),I=n(10),F=n(86),M=I("species"),O="Promise",T=N.get,P=N.set,R=N.getterFor(O),U=d,H=l.TypeError,Q=l.document,V=l.process,W=c("fetch"),K=L.f,z=K,j="process"==_(V),G=!!(Q&&Q.createEvent&&l.dispatchEvent),q="unhandledrejection",Y="rejectionhandled",X=0,J=1,Z=2,$=1,ee=2,te=k(O,(function(){var e=y(U)!==String(U);if(!e){if(66===F)return!0;if(!j&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!U.prototype["finally"])return!0;if(F>=51&&/native code/.test(U))return!1;var t=U.resolve(1),n=function(e){e((function(){}),(function(){}))},i=t.constructor={};return i[M]=n,!(t.then((function(){}))instanceof n)})),ne=te||!b((function(e){U.all(e)["catch"]((function(){}))})),ie=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},oe=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;B((function(){var o=t.value,r=t.state==J,s=0;while(i.length>s){var a,u,l,c=i[s++],d=r?c.ok:c.fail,h=c.resolve,A=c.reject,p=c.domain;try{d?(r||(t.rejection===ee&&ue(e,t),t.rejection=$),!0===d?a=o:(p&&p.enter(),a=d(o),p&&(p.exit(),l=!0)),a===c.promise?A(H("Promise-chain cycle")):(u=ie(a))?u.call(a,h,A):h(a)):A(o)}catch(f){p&&!l&&p.exit(),A(f)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&se(e,t)}))}},re=function(e,t,n){var i,o;G?(i=Q.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),l.dispatchEvent(i)):i={promise:t,reason:n},(o=l["on"+e])?o(i):e===q&&x("Unhandled promise rejection",n)},se=function(e,t){S.call(l,(function(){var n,i=t.value,o=ae(t);if(o&&(n=D((function(){j?V.emit("unhandledRejection",i,e):re(q,e,i)})),t.rejection=j||ae(t)?ee:$,n.error))throw n.value}))},ae=function(e){return e.rejection!==$&&!e.parent},ue=function(e,t){S.call(l,(function(){j?V.emit("rejectionHandled",e):re(Y,e,t.value)}))},le=function(e,t,n,i){return function(o){e(t,n,o,i)}},ce=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=Z,oe(e,t,!0))},de=function(e,t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===n)throw H("Promise can't be resolved itself");var o=ie(n);o?B((function(){var i={done:!1};try{o.call(n,le(de,e,i,t),le(ce,e,i,t))}catch(r){ce(e,i,r,t)}})):(t.value=n,t.state=J,oe(e,t,!1))}catch(r){ce(e,{done:!1},r,t)}}};te&&(U=function(e){v(this,U,O),m(e),i.call(this);var t=T(this);try{e(le(de,this,t),le(ce,this,t))}catch(n){ce(this,t,n)}},i=function(e){P(this,{type:O,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},i.prototype=A(U.prototype,{then:function(e,t){var n=R(this),i=K(C(this,U));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=j?V.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=X&&oe(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i,t=T(e);this.promise=e,this.resolve=le(de,e,t),this.reject=le(ce,e,t)},L.f=K=function(e){return e===U||e===r?new o(e):z(e)},u||"function"!=typeof d||(s=d.prototype.then,h(d.prototype,"then",(function(e,t){var n=this;return new U((function(e,t){s.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return E(U,W.apply(l,arguments))}}))),a({global:!0,wrap:!0,forced:te},{Promise:U}),p(U,O,!1,!0),f(O),r=c(O),a({target:O,stat:!0,forced:te},{reject:function(e){var t=K(this);return t.reject.call(void 0,e),t.promise}}),a({target:O,stat:!0,forced:u||te},{resolve:function(e){return E(u&&this===r?U:this,e)}}),a({target:O,stat:!0,forced:ne},{all:function(e){var t=this,n=K(t),i=n.resolve,o=n.reject,r=D((function(){var n=m(t.resolve),r=[],s=0,a=1;w(e,(function(e){var u=s++,l=!1;r.push(void 0),a++,n.call(t,e).then((function(e){l||(l=!0,r[u]=e,--a||i(r))}),o)})),--a||i(r)}));return r.error&&o(r.value),n.promise},race:function(e){var t=this,n=K(t),i=n.reject,o=D((function(){var o=m(t.resolve);w(e,(function(e){o.call(t,e).then(n.resolve,i)}))}));return o.error&&i(o.value),n.promise}})},function(e,t,n){var i,o,r,s,a,u,l,c,d=n(8),h=n(71).f,A=n(34),p=n(117).set,f=n(118),g=d.MutationObserver||d.WebKitMutationObserver,m=d.process,v=d.Promise,_="process"==A(m),y=h(d,"queueMicrotask"),w=y&&y.value;w||(i=function(){var e,t;_&&(e=m.domain)&&e.exit();while(o){t=o.fn,o=o.next;try{t()}catch(n){throw o?s():r=void 0,n}}r=void 0,e&&e.enter()},_?s=function(){m.nextTick(i)}:g&&!f?(a=!0,u=document.createTextNode(""),new g(i).observe(u,{characterData:!0}),s=function(){u.data=a=!a}):v&&v.resolve?(l=v.resolve(void 0),c=l.then,s=function(){c.call(l,i)}):s=function(){p.call(d,i)}),e.exports=w||function(e){var t={fn:e,next:void 0};r&&(r.next=t),o||(o=t,s()),r=t}},function(e,t,n){var i=n(8);e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";var i=n(5),o=n(41),r=n(85),s=n(120),a=n(66);i({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=r.f(t),i=n.resolve,u=n.reject,l=s((function(){var n=o(t.resolve),r=[],s=0,u=1;a(e,(function(e){var o=s++,a=!1;r.push(void 0),u++,n.call(t,e).then((function(e){a||(a=!0,r[o]={status:"fulfilled",value:e},--u||i(r))}),(function(e){a||(a=!0,r[o]={status:"rejected",reason:e},--u||i(r))}))})),--u||i(r)}));return l.error&&u(l.value),n.promise}})},function(e,t,n){"use strict";var i=n(5),o=n(43),r=n(109),s=n(11),a=n(36),u=n(116),l=n(119),c=n(53),d=!!r&&s((function(){r.prototype["finally"].call({then:function(){}},(function(){}))}));i({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=u(this,a("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof r||r.prototype["finally"]||c(r.prototype,"finally",a("Promise").prototype["finally"])},function(e,t,n){n(54);var i=n(181),o=n(65),r=Array.prototype,s={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===r||e instanceof Array&&t===r.forEach||s.hasOwnProperty(o(e))?i:t}},function(e,t,n){var i=n(182);e.exports=i},function(e,t,n){n(183);var i=n(15);e.exports=i("Array").forEach},function(e,t,n){"use strict";var i=n(5),o=n(184);i({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(e,t,n){"use strict";var i=n(32).forEach,o=n(67),r=n(22),s=o("forEach"),a=r("forEach");e.exports=s&&a?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var i=n(186);e.exports=i},function(e,t,n){n(187);var i=n(9);e.exports=i.Array.isArray},function(e,t,n){var i=n(5),o=n(55);i({target:"Array",stat:!0},{isArray:o})},function(e,t,n){var i=n(189);e.exports=i},function(e,t,n){var i=n(190),o=Array.prototype;e.exports=function(e){var t=e.map;return e===o||e instanceof Array&&t===o.map?i:t}},function(e,t,n){n(191);var i=n(15);e.exports=i("Array").map},function(e,t,n){"use strict";var i=n(5),o=n(32).map,r=n(56),s=n(22),a=r("map"),u=s("map");i({target:"Array",proto:!0,forced:!a||!u},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(193);e.exports=i},function(e,t,n){var i=n(194),o=String.prototype;e.exports=function(e){var t=e.trim;return"string"===typeof e||e===o||e instanceof String&&t===o.trim?i:t}},function(e,t,n){n(195);var i=n(15);e.exports=i("String").trim},function(e,t,n){"use strict";var i=n(5),o=n(90).trim,r=n(196);i({target:"String",proto:!0,forced:r("trim")},{trim:function(){return o(this)}})},function(e,t,n){var i=n(11),o=n(68),r="​…᠎";e.exports=function(e){return i((function(){return!!o[e]()||r[e]()!=r||o[e].name!==e}))}},function(e,t,n){var i=n(198);e.exports=i},function(e,t,n){n(199),n(61),n(50),n(54);var i=n(9);e.exports=i.Map},function(e,t,n){"use strict";var i=n(122),o=n(124);e.exports=i("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){var i=n(11);e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var i=n(202);e.exports=i},function(e,t,n){var i=n(203),o=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===o||e instanceof Array&&t===o.indexOf?i:t}},function(e,t,n){n(204);var i=n(15);e.exports=i("Array").indexOf},function(e,t,n){"use strict";var i=n(5),o=n(78).indexOf,r=n(67),s=n(22),a=[].indexOf,u=!!a&&1/[1].indexOf(1,-0)<0,l=r("indexOf"),c=s("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:u||!l||!c},{indexOf:function(e){return u?a.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(206);e.exports=i},function(e,t,n){var i=n(207),o=Array.prototype;e.exports=function(e){var t=e.splice;return e===o||e instanceof Array&&t===o.splice?i:t}},function(e,t,n){n(208);var i=n(15);e.exports=i("Array").splice},function(e,t,n){"use strict";var i=n(5),o=n(79),r=n(62),s=n(35),a=n(31),u=n(88),l=n(69),c=n(56),d=n(22),h=c("splice"),A=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,f=Math.min,g=9007199254740991,m="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!h||!A},{splice:function(e,t){var n,i,c,d,h,A,v=a(this),_=s(v.length),y=o(e,_),w=arguments.length;if(0===w?n=i=0:1===w?(n=0,i=_-y):(n=w-2,i=f(p(r(t),0),_-y)),_+n-i>g)throw TypeError(m);for(c=u(v,i),d=0;d_-i+n;d--)delete v[d-1]}else if(n>i)for(d=_-i;d>y;d--)h=d+i-1,A=d+n-1,h in v?v[A]=v[h]:delete v[A];for(d=0;d1?arguments[1]:void 0)}})},function(e,t,n){var i=n(214);e.exports=i},function(e,t,n){var i=n(215),o=n(217),r=Array.prototype,s=String.prototype;e.exports=function(e){var t=e.includes;return e===r||e instanceof Array&&t===r.includes?i:"string"===typeof e||e===s||e instanceof String&&t===s.includes?o:t}},function(e,t,n){n(216);var i=n(15);e.exports=i("Array").includes},function(e,t,n){"use strict";var i=n(5),o=n(78).includes,r=n(82),s=n(22),a=s("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!a},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},function(e,t,n){n(218);var i=n(15);e.exports=i("String").includes},function(e,t,n){"use strict";var i=n(5),o=n(219),r=n(49),s=n(221);i({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~String(r(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(220);e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var i=n(13),o=n(34),r=n(10),s=r("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==o(e))}},function(e,t,n){var i=n(10),o=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(i){}}return!1}},function(e,t,n){var i=n(223);e.exports=i},function(e,t,n){var i=n(224),o=Function.prototype;e.exports=function(e){var t=e.bind;return e===o||e instanceof Function&&t===o.bind?i:t}},function(e,t,n){n(225);var i=n(15);e.exports=i("Function").bind},function(e,t,n){var i=n(5),o=n(226);i({target:"Function",proto:!0},{bind:o})},function(e,t,n){"use strict";var i=n(41),o=n(13),r=[].slice,s={},a=function(e,t,n){if(!(t in s)){for(var i=[],o=0;o=51||!o((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),v=d("concat"),_=function(e){if(!s(e))return!1;var t=e[p];return void 0!==t?!!t:r(e)},y=!m||!v;i({target:"Array",proto:!0,forced:y},{concat:function(e){var t,n,i,o,r,s=a(this),d=c(s,0),h=0;for(t=-1,i=arguments.length;tf)throw TypeError(g);for(n=0;n=f)throw TypeError(g);l(d,h++,r)}return d.length=h,d}})},function(e,t,n){"use strict";var i=n(5),o=n(8),r=n(36),s=n(43),a=n(14),u=n(76),l=n(106),c=n(11),d=n(16),h=n(55),A=n(13),p=n(25),f=n(31),g=n(30),m=n(60),v=n(48),_=n(77),y=n(52),w=n(126),b=n(235),C=n(127),S=n(71),B=n(18),E=n(59),x=n(19),L=n(53),D=n(74),N=n(63),k=n(51),I=n(64),F=n(10),M=n(93),O=n(12),T=n(37),P=n(42),R=n(32).forEach,U=N("hidden"),H="Symbol",Q="prototype",V=F("toPrimitive"),W=P.set,K=P.getterFor(H),z=Object[Q],j=o.Symbol,G=r("JSON","stringify"),q=S.f,Y=B.f,X=b.f,J=E.f,Z=D("symbols"),$=D("op-symbols"),ee=D("string-to-symbol-registry"),te=D("symbol-to-string-registry"),ne=D("wks"),ie=o.QObject,oe=!ie||!ie[Q]||!ie[Q].findChild,re=a&&c((function(){return 7!=_(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=q(z,t);i&&delete z[t],Y(e,t,n),i&&e!==z&&Y(z,t,i)}:Y,se=function(e,t){var n=Z[e]=_(j[Q]);return W(n,{type:H,tag:e,description:t}),a||(n.description=t),n},ae=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof j},ue=function(e,t,n){e===z&&ue($,t,n),p(e);var i=m(t,!0);return p(n),d(Z,i)?(n.enumerable?(d(e,U)&&e[U][i]&&(e[U][i]=!1),n=_(n,{enumerable:v(0,!1)})):(d(e,U)||Y(e,U,v(1,{})),e[U][i]=!0),re(e,i,n)):Y(e,i,n)},le=function(e,t){p(e);var n=g(t),i=y(n).concat(pe(n));return R(i,(function(t){a&&!de.call(n,t)||ue(e,t,n[t])})),e},ce=function(e,t){return void 0===t?_(e):le(_(e),t)},de=function(e){var t=m(e,!0),n=J.call(this,t);return!(this===z&&d(Z,t)&&!d($,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,U)&&this[U][t])||n)},he=function(e,t){var n=g(e),i=m(t,!0);if(n!==z||!d(Z,i)||d($,i)){var o=q(n,i);return!o||!d(Z,i)||d(n,U)&&n[U][i]||(o.enumerable=!0),o}},Ae=function(e){var t=X(g(e)),n=[];return R(t,(function(e){d(Z,e)||d(k,e)||n.push(e)})),n},pe=function(e){var t=e===z,n=X(t?$:g(e)),i=[];return R(n,(function(e){!d(Z,e)||t&&!d(z,e)||i.push(Z[e])})),i};if(u||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),n=function(e){this===z&&n.call($,e),d(this,U)&&d(this[U],t)&&(this[U][t]=!1),re(this,t,v(1,e))};return a&&oe&&re(z,t,{configurable:!0,set:n}),se(t,e)},L(j[Q],"toString",(function(){return K(this).tag})),L(j,"withoutSetter",(function(e){return se(I(e),e)})),E.f=de,B.f=ue,S.f=he,w.f=b.f=Ae,C.f=pe,M.f=function(e){return se(F(e),e)},a&&(Y(j[Q],"description",{configurable:!0,get:function(){return K(this).description}}),s||L(z,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:j}),R(y(ne),(function(e){O(e)})),i({target:H,stat:!0,forced:!u},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=j(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),i({target:"Object",stat:!0,forced:!u,sham:!a},{create:ce,defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:he}),i({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:Ae,getOwnPropertySymbols:pe}),i({target:"Object",stat:!0,forced:c((function(){C.f(1)}))},{getOwnPropertySymbols:function(e){return C.f(f(e))}}),G){var fe=!u||c((function(){var e=j();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));i({target:"JSON",stat:!0,forced:fe},{stringify:function(e,t,n){var i,o=[e],r=1;while(arguments.length>r)o.push(arguments[r++]);if(i=t,(A(t)||void 0!==e)&&!ae(e))return h(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!ae(t))return t}),o[1]=t,G.apply(null,o)}})}j[Q][V]||x(j[Q],V,j[Q].valueOf),T(j,H),k[U]=!0},function(e,t,n){var i=n(30),o=n(126).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return o(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?a(e):o(i(e))}},function(e,t,n){var i=n(12);i("asyncIterator")},function(e,t){},function(e,t,n){var i=n(12);i("hasInstance")},function(e,t,n){var i=n(12);i("isConcatSpreadable")},function(e,t,n){var i=n(12);i("match")},function(e,t,n){var i=n(12);i("matchAll")},function(e,t,n){var i=n(12);i("replace")},function(e,t,n){var i=n(12);i("search")},function(e,t,n){var i=n(12);i("species")},function(e,t,n){var i=n(12);i("split")},function(e,t,n){var i=n(12);i("toPrimitive")},function(e,t,n){var i=n(12);i("toStringTag")},function(e,t,n){var i=n(12);i("unscopables")},function(e,t,n){var i=n(37);i(Math,"Math",!0)},function(e,t,n){var i=n(8),o=n(37);o(i.JSON,"JSON",!0)},function(e,t,n){var i=n(12);i("asyncDispose")},function(e,t,n){var i=n(12);i("dispose")},function(e,t,n){var i=n(12);i("observable")},function(e,t,n){var i=n(12);i("patternMatch")},function(e,t,n){var i=n(12);i("replaceAll")},function(e,t,n){e.exports=n(257)},function(e,t,n){var i=n(258);e.exports=i},function(e,t,n){n(259);var i=n(9);e.exports=i.parseInt},function(e,t,n){var i=n(5),o=n(260);i({global:!0,forced:parseInt!=o},{parseInt:o})},function(e,t,n){var i=n(8),o=n(90).trim,r=n(68),s=i.parseInt,a=/^[+-]?0[Xx]/,u=8!==s(r+"08")||22!==s(r+"0x16");e.exports=u?function(e,t){var n=o(String(e));return s(n,t>>>0||(a.test(n)?16:10))}:s},function(e,t,n){var i=n(262);e.exports=i},function(e,t,n){var i=n(263),o=Array.prototype;e.exports=function(e){var t=e.slice;return e===o||e instanceof Array&&t===o.slice?i:t}},function(e,t,n){n(264);var i=n(15);e.exports=i("Array").slice},function(e,t,n){"use strict";var i=n(5),o=n(13),r=n(55),s=n(79),a=n(35),u=n(30),l=n(69),c=n(10),d=n(56),h=n(22),A=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),f=c("species"),g=[].slice,m=Math.max;i({target:"Array",proto:!0,forced:!A||!p},{slice:function(e,t){var n,i,c,d=u(this),h=a(d.length),A=s(e,h),p=s(void 0===t?h:t,h);if(r(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?o(n)&&(n=n[f],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return g.call(d,A,p);for(i=new(void 0===n?Array:n)(m(p-A,0)),c=0;A2,o=i?s.call(arguments,2):void 0;return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};i({global:!0,bind:!0,forced:a},{setTimeout:u(o.setTimeout),setInterval:u(o.setInterval)})},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(128));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(272)),u=s.__importDefault(n(273)),l=s.__importDefault(n(129)),c=s.__importDefault(n(274)),d=s.__importDefault(n(275)),h=s.__importDefault(n(276)),A=s.__importDefault(n(130)),p=s.__importDefault(n(277)),f=s.__importDefault(n(278)),g=s.__importDefault(n(279)),m=(0,r["default"])({},a["default"],u["default"],l["default"],d["default"],c["default"],h["default"],A["default"],p["default"],f["default"],g["default"],{linkCheck:function(e,t){return!0}});t["default"]=m},function(e,t,n){var i=n(269);e.exports=i},function(e,t,n){n(270);var i=n(9);e.exports=i.Object.assign},function(e,t,n){var i=n(5),o=n(271);i({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";var i=n(14),o=n(11),r=n(52),s=n(127),a=n(59),u=n(31),l=n(72),c=Object.assign,d=Object.defineProperty;e.exports=!c||o((function(){if(i&&1!==c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||r(c({},t)).join("")!=o}))?function(e,t){var n=u(e),o=arguments.length,c=1,d=s.f,h=a.f;while(o>c){var A,p=l(arguments[c++]),f=d?r(p).concat(d(p)):r(p),g=f.length,m=0;while(g>m)A=f[m++],i&&!h.call(p,A)||(n[A]=p[A])}return n}:c},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"    ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(7);function s(e,t,n){window.alert(e),n&&console.error("wangEditor: "+n)}t["default"]={onchangeTimeout:200,onchange:null,onfocus:r.EMPTY_FN,onblur:r.EMPTY_FN,onCatalogChange:null,customAlert:s}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e}}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={styleWithCSS:!1}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(7);t["default"]={linkImgCheck:function(e,t,n){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:r.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t["default"]={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{"重置":"重置","插入":"插入","默认":"默认","创建":"创建","修改":"修改","如":"如","请输入正文":"请输入正文",menus:{title:{"标题":"标题","加粗":"加粗","字号":"字号","字体":"字体","斜体":"斜体","下划线":"下划线","删除线":"删除线","缩进":"缩进","行高":"行高","文字颜色":"文字颜色","背景色":"背景色","链接":"链接","序列":"序列","对齐":"对齐","引用":"引用","表情":"表情","图片":"图片","视频":"视频","表格":"表格","代码":"代码","分割线":"分割线","恢复":"恢复","撤销":"撤销","全屏":"全屏","取消全屏":"取消全屏","待办事项":"待办事项"},dropListMenu:{"设置标题":"设置标题","背景颜色":"背景颜色","文字颜色":"文字颜色","设置字号":"设置字号","设置字体":"设置字体","设置缩进":"设置缩进","对齐方式":"对齐方式","设置行高":"设置行高","序列":"序列",head:{"正文":"正文"},indent:{"增加缩进":"增加缩进","减少缩进":"减少缩进"},justify:{"靠左":"靠左","居中":"居中","靠右":"靠右","两端":"两端"},list:{"无序列表":"无序列表","有序列表":"有序列表"}},panelMenus:{emoticon:{"默认":"默认","新浪":"新浪",emoji:"emoji","手势":"手势"},image:{"上传图片":"上传图片","网络图片":"网络图片","图片地址":"图片地址","图片文字说明":"图片文字说明","跳转链接":"跳转链接"},link:{"链接":"链接","链接文字":"链接文字","取消链接":"取消链接","查看链接":"查看链接"},video:{"插入视频":"插入视频","上传视频":"上传视频"},table:{"行":"行","列":"列","的":"的","表格":"表格","添加行":"添加行","删除行":"删除行","添加列":"添加列","删除列":"删除列","设置表头":"设置表头","取消表头":"取消表头","插入表格":"插入表格","删除表格":"删除表格"},code:{"删除代码":"删除代码","修改代码":"修改代码","插入代码":"插入代码"}}},validate:{"张图片":"张图片","大于":"大于","图片链接":"图片链接","不是图片":"不是图片","返回结果":"返回结果","上传图片超时":"上传图片超时","上传图片错误":"上传图片错误","上传图片失败":"上传图片失败","插入图片错误":"插入图片错误","一次最多上传":"一次最多上传","下载链接失败":"下载链接失败","图片验证未通过":"图片验证未通过","服务器返回状态":"服务器返回状态","上传图片返回结果错误":"上传图片返回结果错误","请替换为支持的图片类型":"请替换为支持的图片类型","您插入的网络图片无法识别":"您插入的网络图片无法识别","您刚才插入的图片链接未通过编辑器校验":"您刚才插入的图片链接未通过编辑器校验","插入视频错误":"插入视频错误","视频链接":"视频链接","不是视频":"不是视频","视频验证未通过":"视频验证未通过","个视频":"个视频","上传视频超时":"上传视频超时","上传视频错误":"上传视频错误","上传视频失败":"上传视频失败","上传视频返回结果错误":"上传视频返回结果错误"}}},en:{wangEditor:{"重置":"reset","插入":"insert","默认":"default","创建":"create","修改":"edit","如":"like","请输入正文":"please enter the text",menus:{title:{"标题":"head","加粗":"bold","字号":"font size","字体":"font family","斜体":"italic","下划线":"underline","删除线":"strikethrough","缩进":"indent","行高":"line heihgt","文字颜色":"font color","背景色":"background","链接":"link","序列":"numbered list","对齐":"align","引用":"quote","表情":"emoticons","图片":"image","视频":"media","表格":"table","代码":"code","分割线":"split line","恢复":"redo","撤销":"undo","全屏":"fullscreen","取消全屏":"cancel fullscreen","待办事项":"todo"},dropListMenu:{"设置标题":"title","背景颜色":"background","文字颜色":"font color","设置字号":"font size","设置字体":"font family","设置缩进":"indent","对齐方式":"align","设置行高":"line heihgt","序列":"list",head:{"正文":"text"},indent:{"增加缩进":"indent","减少缩进":"outdent"},justify:{"靠左":"left","居中":"center","靠右":"right","两端":"justify"},list:{"无序列表":"unordered","有序列表":"ordered"}},panelMenus:{emoticon:{"表情":"emoji","手势":"gesture"},image:{"上传图片":"upload image","网络图片":"network image","图片地址":"image link","图片文字说明":"image alt","跳转链接":"hyperlink"},link:{"链接":"link","链接文字":"link text","取消链接":"unlink","查看链接":"view links"},video:{"插入视频":"insert video","上传视频":"upload local video"},table:{"行":"rows","列":"columns","的":" ","表格":"table","添加行":"insert row","删除行":"delete row","添加列":"insert column","删除列":"delete column","设置表头":"set header","取消表头":"cancel header","插入表格":"insert table","删除表格":"delete table"},code:{"删除代码":"delete code","修改代码":"edit code","插入代码":"insert code"}}},validate:{"张图片":"images","大于":"greater than","图片链接":"image link","不是图片":"is not image","返回结果":"return results","上传图片超时":"upload image timeout","上传图片错误":"upload image error","上传图片失败":"upload image failed","插入图片错误":"insert image error","一次最多上传":"once most at upload","下载链接失败":"download link failed","图片验证未通过":"image validate failed","服务器返回状态":"server return status","上传图片返回结果错误":"upload image return results error","请替换为支持的图片类型":"please replace with a supported image type","您插入的网络图片无法识别":"the network picture you inserted is not recognized","您刚才插入的图片链接未通过编辑器校验":"the image link you just inserted did not pass the editor verification","插入视频错误":"insert video error","视频链接":"video link","不是视频":"is not video","视频验证未通过":"video validate failed","个视频":"videos","上传视频超时":"upload video timeout","上传视频错误":"upload video error","上传视频失败":"upload video failed","上传视频返回结果错误":"upload video return results error"}}}}}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(6);function s(){return!(!r.UA.isIE()&&!r.UA.isOldEdge)}t["default"]={compatibleMode:s,historyMaxSize:30}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(7);t["default"]={onlineVideoCheck:function(e){return!0},onlineVideoCallback:r.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(6),l=n(7),c=function(){function e(e){this._currentRange=null,this.editor=e}return e.prototype.getRange=function(){return this._currentRange},e.prototype.saveRange=function(e){if(e)this._currentRange=e;else{var t=window.getSelection();if(0!==t.rangeCount){var n=t.getRangeAt(0),i=this.getSelectionContainerElem(n);if((null===i||void 0===i?void 0:i.length)&&"false"!==i.attr("contenteditable")&&!i.parentUntil("[contenteditable=false]")){var o=this.editor,s=o.$textElem;if(s.isContain(i)){var a;if(s.elems[0]===i.elems[0])if((0,r["default"])(a=s.html()).call(a)===l.EMPTY_P){var u=s.children(),c=null===u||void 0===u?void 0:u.last();o.selection.createRangeByElem(c,!0,!0),o.selection.restoreSelection()}this._currentRange=n}}}}},e.prototype.collapseRange=function(e){void 0===e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},e.prototype.getSelectionText=function(){var e=this._currentRange;return e?e.toString():""},e.prototype.getSelectionContainerElem=function(e){var t,n;if(t=e||this._currentRange,t)return n=t.commonAncestorContainer,a["default"](1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionStartElem=function(e){var t,n;if(t=e||this._currentRange,t)return n=t.startContainer,a["default"](1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionEndElem=function(e){var t,n;if(t=e||this._currentRange,t)return n=t.endContainer,a["default"](1===n.nodeType?n:n.parentNode)},e.prototype.isSelectionEmpty=function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},e.prototype.restoreSelection=function(){var e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))},e.prototype.createEmptyRange=function(){var e,t=this.editor,n=this.getRange();if(n&&this.isSelectionEmpty())try{u.UA.isWebkit()?(t.cmd["do"]("insertHTML","​"),n.setEnd(n.endContainer,n.endOffset+1),this.saveRange(n)):(e=a["default"](""),t.cmd["do"]("insertElem",e),this.createRangeByElem(e,!0))}catch(i){}},e.prototype.createRangeByElems=function(e,t){var n=window.getSelection?window.getSelection():document.getSelection();null===n||void 0===n||n.removeAllRanges();var i=document.createRange();i.setStart(e,0),i.setEnd(t,t.childNodes.length||1),this.saveRange(i),this.restoreSelection()},e.prototype.createRangeByElem=function(e,t,n){if(e.length){var i=e.elems[0],o=document.createRange();n?o.selectNodeContents(i):o.selectNode(i),null!=t&&(o.collapse(t),t||(this.saveRange(o),this.editor.selection.moveCursor(i))),this.saveRange(o)}},e.prototype.getSelectionRangeTopNodes=function(){var e,t,n,i=null===(e=this.getSelectionStartElem())||void 0===e?void 0:e.getNodeTop(this.editor),o=null===(t=this.getSelectionEndElem())||void 0===t?void 0:t.getNodeTop(this.editor);return n=this.recordSelectionNodes(a["default"](i),a["default"](o)),n},e.prototype.moveCursor=function(e,t){var n,i=this.getRange(),o=3===e.nodeType?null===(n=e.nodeValue)||void 0===n?void 0:n.length:e.childNodes.length;(u.UA.isFirefox||u.UA.isIE())&&0!==o&&(3!==e.nodeType&&"BR"!==e.childNodes[o-1].nodeName||(o-=1));var r=null!==t&&void 0!==t?t:o;i&&e&&(i.setStart(e,r),i.setEnd(e,r),this.restoreSelection())},e.prototype.getCursorPos=function(){var e=window.getSelection();return null===e||void 0===e?void 0:e.anchorOffset},e.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},e.prototype.recordSelectionNodes=function(e,t){var n=[],i=!0;try{var o=e,r=this.editor.$textElem;while(i){var s=null===o||void 0===o?void 0:o.getNodeTop(this.editor);"BODY"===s.getNodeName()&&(i=!1),s.length>0&&(n.push(a["default"](o)),(null===t||void 0===t?void 0:t.equal(s))||r.equal(s)?i=!1:o=s.getNextSibling())}}catch(u){i=!1}return n},e.prototype.setRangeToElem=function(e){var t=this.getRange();null===t||void 0===t||t.setStart(e,0),null===t||void 0===t||t.setEnd(e,0)},e}();t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=function(){function e(e){this.editor=e}return e.prototype["do"]=function(e,t){var n=this.editor;n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var i=n.selection;if(i.getRange()){switch(i.restoreSelection(),e){case"insertHTML":this.insertHTML(t);break;case"insertElem":this.insertElem(t);break;default:this.execCommand(e,t);break}n.menus.changeActive(),i.saveRange(),i.restoreSelection()}},e.prototype.insertHTML=function(e){var t=this.editor,n=t.selection.getRange();if(null!=n)if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",e);else if(n.insertNode){if(n.deleteContents(),s["default"](e).elems.length>0)n.insertNode(s["default"](e).elems[0]);else{var i=document.createElement("p");i.appendChild(document.createTextNode(e)),n.insertNode(i)}t.selection.collapseRange()}},e.prototype.insertElem=function(e){var t=this.editor,n=t.selection.getRange();null!=n&&n.insertNode&&(n.deleteContents(),n.insertNode(e.elems[0]))},e.prototype.execCommand=function(e,t){document.execCommand(e,!1,t)},e.prototype.queryCommandValue=function(e){return document.queryCommandValue(e)},e.prototype.queryCommandState=function(e){return document.queryCommandState(e)},e.prototype.queryCommandSupported=function(e){return document.queryCommandSupported(e)},e}();t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29)),s=i(n(4)),a=i(n(17)),u=i(n(27)),l=i(n(46));(0,o["default"])(t,"__esModule",{value:!0});var c=n(2),d=c.__importDefault(n(3)),h=c.__importDefault(n(287)),A=n(6),p=c.__importDefault(n(299)),f=c.__importDefault(n(300)),g=n(7),m=function(){function e(e){this.editor=e,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return e.prototype.init=function(){this._saveRange(),this._bindEventHooks(),h["default"](this)},e.prototype.togglePlaceholder=function(){var e,t=this.html(),n=(0,r["default"])(e=this.editor.$textContainerElem).call(e,".placeholder");n.hide(),this.editor.isComposing||t&&" "!==t||n.show()},e.prototype.clear=function(){this.html(g.EMPTY_P)},e.prototype.html=function(e){var t=this.editor,n=t.$textElem;if(null==e){var i=n.html();i=i.replace(/\u200b/gm,""),i=i.replace(/

      <\/p>/gim,""),i=i.replace(g.EMPTY_P_LAST_REGEX,""),i=i.replace(g.EMPTY_P_REGEX,"

      ");var o=i.match(/<(img|br|hr|input)[^>]*>/gi);return null!==o&&(0,s["default"])(o).call(o,(function(e){e.match(/\/>/)||(i=i.replace(e,e.substring(0,e.length-1)+"/>"))})),i}e=(0,a["default"])(e).call(e),""===e&&(e=g.EMPTY_P),0!==(0,u["default"])(e).call(e,"<")&&(e="

      "+e+"

      "),n.html(e),t.initSelection()},e.prototype.setJSON=function(e){var t=f["default"](e).children(),n=this.editor,i=n.$textElem;t&&i.replaceChildAll(t)},e.prototype.getJSON=function(){var e=this.editor,t=e.$textElem;return p["default"](t)},e.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e){var i=n.text();return i=i.replace(/\u200b/gm,""),i}n.text("

      "+e+"

      "),t.initSelection()},e.prototype.append=function(e){var t=this.editor;0!==(0,u["default"])(e).call(e,"<")&&(e="

      "+e+"

      "),this.html(this.html()+e),t.initSelection()},e.prototype._saveRange=function(){var e=this.editor,t=e.$textElem,n=d["default"](document);function i(){e.selection.saveRange(),e.menus.changeActive()}function o(){i(),t.off("click",o)}function r(){i(),n.off("mouseup",r)}function s(){n.on("mouseup",r),t.off("mouseleave",s)}t.on("keyup",i),t.on("click",o),t.on("mousedown",(function(){t.on("mouseleave",s)})),t.on("mouseup",(function(n){t.off("mouseleave",s),(0,l["default"])((function(){var t=e.selection,n=t.getRange();null!==n&&i()}),0)}))},e.prototype._bindEventHooks=function(){var e=this.editor,t=e.$textElem,n=this.eventHooks;function i(e){e.preventDefault()}t.on("click",(function(e){var t=n.clickEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){if(13===e.keyCode){var t=n.enterUpEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("keyup",(function(e){var t=n.keyupEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))})),t.on("keydown",(function(e){var t=n.keydownEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){if(8===e.keyCode||46===e.keyCode){var t=n.deleteUpEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(e){if(8===e.keyCode||46===e.keyCode){var t=n.deleteDownEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("paste",(function(e){if(!A.UA.isIE()){e.preventDefault();var t=n.pasteEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(t){(e.isFocus||e.isCompatibleMode)&&(t.ctrlKey||t.metaKey)&&90===t.keyCode&&(t.preventDefault(),t.shiftKey?e.history.restore():e.history.revoke())})),t.on("keyup",(function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabUpEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabDownEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("scroll",A.throttle((function(e){var t=n.textScrollEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}),100)),d["default"](document).on("dragleave",i).on("drop",i).on("dragenter",i).on("dragover",i),e.beforeDestroy((function(){d["default"](document).off("dragleave",i).off("drop",i).off("dragenter",i).off("dragover",i)})),t.on("drop",(function(e){e.preventDefault();var t=n.dropEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))})),t.on("click",(function(e){var t=null,i=e.target,o=d["default"](i);if("A"===o.getNodeName())t=o;else{var r=o.parentUntil("a");null!=r&&(t=r)}if(t){var a=n.linkClickEvents;(0,s["default"])(a).call(a,(function(e){return e(t)}))}})),t.on("click",(function(e){var t=null,i=e.target,o=d["default"](i);if("IMG"!==o.getNodeName()||o.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=o),t){var r=n.imgClickEvents;(0,s["default"])(r).call(r,(function(e){return e(t)}))}})),t.on("click",(function(e){var t=null,i=e.target,o=d["default"](i);if("PRE"===o.getNodeName())t=o;else{var r=o.parentUntil("pre");null!==r&&(t=r)}if(t){var a=n.codeClickEvents;(0,s["default"])(a).call(a,(function(e){return e(t)}))}})),t.on("click",(function(t){var i=null,o=t.target,r=d["default"](o);if("HR"===r.getNodeName()&&(i=r),i){e.selection.createRangeByElem(i),e.selection.restoreSelection();var a=n.splitLineEvents;(0,s["default"])(a).call(a,(function(e){return e(i)}))}})),e.$toolbarElem.on("click",(function(e){var t=n.toolbarClickEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))})),e.$textContainerElem.on("mousedown",(function(e){var t=e.target,i=d["default"](t);if(i.hasClass("w-e-img-drag-rb")){var o=n.imgDragBarMouseDownEvents;(0,s["default"])(o).call(o,(function(e){return e()}))}})),t.on("click",(function(t){var i=null,o=t.target;if(i=d["default"](o).parentUntilEditor("TABLE",e,o),i){var r=n.tableClickEvents;(0,s["default"])(r).call(r,(function(e){return e(i,t)}))}})),t.on("keydown",(function(e){if(13===e.keyCode){var t=n.enterDownEvents;(0,s["default"])(t).call(t,(function(t){return t(e)}))}})),t.on("click",(function(e){var t=null,i=e.target,o=d["default"](i);if("VIDEO"===o.getNodeName()&&(e.stopPropagation(),t=o),t){var r=n.videoClickEvents;(0,s["default"])(r).call(r,(function(e){return e(t)}))}}))},e}();t["default"]=m},function(e,t,n){var i=n(284);e.exports=i},function(e,t,n){var i=n(285),o=Array.prototype;e.exports=function(e){var t=e.find;return e===o||e instanceof Array&&t===o.find?i:t}},function(e,t,n){n(286);var i=n(15);e.exports=i("Array").find},function(e,t,n){"use strict";var i=n(5),o=n(32).find,r=n(82),s=n(22),a="find",u=!0,l=s(a);a in[]&&Array(1)[a]((function(){u=!1})),i({target:"Array",proto:!0,forced:u||!l},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r(a)},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(288)),a=r.__importStar(n(289)),u=r.__importDefault(n(290)),l=r.__importDefault(n(291)),c=r.__importDefault(n(298));function d(e){var t=e.editor,n=e.eventHooks;s["default"](t,n.enterUpEvents,n.enterDownEvents),a["default"](t,n.deleteUpEvents,n.deleteDownEvents),a.cutToKeepP(t,n.keyupEvents),u["default"](t,n.tabDownEvents),l["default"](t,n.pasteEvents),c["default"](t,n.imgClickEvents)}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(27));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(7),u=s.__importDefault(n(3));function l(e,t,n){function i(t){var n,i=u["default"](a.EMPTY_P);i.insertBefore(t),(0,r["default"])(n=t.html()).call(n,"=0?i.remove():(e.selection.createRangeByElem(i,!0,!0),e.selection.restoreSelection(),t.remove())}function o(){var t=e.$textElem,n=e.selection.getSelectionContainerElem(),o=n.parent();if("
      "!==o.html())if("FONT"!==n.getNodeName()||""!==n.text()||"monospace"!==n.attr("face")){if(o.equal(t)){var r=n.getNodeName();"P"===r&&null===n.attr("data-we-empty-p")||n.text()||i(n)}}else i(o);else i(o)}function s(t){var n;e.selection.saveRange(null===(n=getSelection())||void 0===n?void 0:n.getRangeAt(0));var i=e.selection.getSelectionContainerElem();i.id===e.textElemId&&(t.preventDefault(),e.cmd["do"]("insertHTML","


      "))}t.push(o),n.push(s)}t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17)),s=i(n(28));(0,o["default"])(t,"__esModule",{value:!0}),t.cutToKeepP=void 0;var a=n(2),u=n(7),l=a.__importDefault(n(3));function c(e,t,n){function i(){var t=e.$textElem,n=e.$textElem.html(),i=e.$textElem.text(),o=(0,r["default"])(n).call(n),a=["


      ","
      ",'

      ',u.EMPTY_P];if(/^\s*$/.test(i)&&(!o||(0,s["default"])(a).call(a,o))){t.html(u.EMPTY_P);var l=t.getNode();e.selection.createRangeByElems(l.childNodes[0],l.childNodes[0]);var c=e.selection.getSelectionContainerElem();e.selection.restoreSelection(),e.selection.moveCursor(c.getNode(),0)}}function o(t){var n,i=e.$textElem,o=(0,r["default"])(n=i.html().toLowerCase()).call(n);o!==u.EMPTY_P||t.preventDefault()}t.push(i),n.push(o)}function d(e,t){function n(t){var n;if(88===t.keyCode){var i=e.$textElem,o=(0,r["default"])(n=i.html().toLowerCase()).call(n);if(!o||"
      "===o){var s=l["default"](u.EMPTY_P);i.html(" "),i.append(s),e.selection.createRangeByElem(s,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(s.getNode(),0)}}}t.push(n)}t.cutToKeepP=d,t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1));function r(e,t){function n(){if(e.cmd.queryCommandSupported("insertHTML")){var t=e.selection.getSelectionContainerElem();if(t){var n=t.parent(),i=t.getNodeName(),o=n.getNodeName();"CODE"==i||"CODE"===o||"PRE"===o||/hljs/.test(o)?e.cmd["do"]("insertHTML",e.config.languageTab):e.cmd["do"]("insertHTML","    ")}}}t.push(n)}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17)),s=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var a=n(131),u=n(6),l=n(7);function c(e){var t,n=(0,r["default"])(t=e.replace(/
      /gim,"

      ").replace(/<\/div>/gim,"

      ")).call(t),i=document.createElement("div");return i.innerHTML=n,i.innerHTML.replace(/

      <\/p>/gim,"")}function d(e){var t=e.replace(/
      |/gm,"\n").replace(/<[^>]+>/gm,"");return t}function h(e){var t;if(""===e)return!1;var n=document.createElement("div");return n.innerHTML=e,"P"===(null===(t=n.firstChild)||void 0===t?void 0:t.nodeName)}function A(e){if(!(null===e||void 0===e?void 0:e.length))return!1;var t=e.elems[0];return"P"===t.nodeName&&"
      "===t.innerHTML}function p(e,t){function n(t){var n=e.config,i=n.pasteFilterStyle,o=n.pasteIgnoreImg,r=n.pasteTextHandle,p=a.getPasteHtml(t,i,o),f=a.getPasteText(t);f=f.replace(/\n/gm,"
      ");var g=e.selection.getSelectionContainerElem();if(g){var m=null===g||void 0===g?void 0:g.getNodeName(),v=null===g||void 0===g?void 0:g.getNodeTop(e),_="";if(v.elems[0]&&(_=null===v||void 0===v?void 0:v.getNodeName()),"CODE"===m||"PRE"===_)return r&&u.isFunction(r)&&(f=""+(r(f)||"")),void e.cmd["do"]("insertHTML",d(f));if(l.urlRegex.test(f)&&i){r&&u.isFunction(r)&&(f=""+(r(f)||""));var y=f.replace(l.urlRegex,(function(e){return''+e+""})),w=e.selection.getRange(),b=document.createElement("div"),C=document.createDocumentFragment();if(b.innerHTML=y,null==w)return;while(b.childNodes.length)C.append(b.childNodes[0]);var S=C.querySelectorAll("a");return(0,s["default"])(S).call(S,(function(e){e.innerText=e.href})),w.insertNode&&(w.deleteContents(),w.insertNode(C)),void e.selection.clearWindowSelectionRange()}if(p)try{r&&u.isFunction(r)&&(p=""+(r(p)||""));var B=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(p);if(B&&i)e.cmd["do"]("insertHTML",""+c(f));else{var E=c(p);if(h(E)){var x=e.$textElem;if(e.cmd["do"]("insertHTML",E),x.equal(g))return void e.selection.createEmptyRange();A(v)&&v.remove()}else e.cmd["do"]("insertHTML",E)}}catch(L){r&&u.isFunction(r)&&(f=""+(r(f)||"")),e.cmd["do"]("insertHTML",""+c(f))}}}t.push(n)}t["default"]=p},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17)),s=i(n(4)),a=i(n(28));(0,o["default"])(t,"__esModule",{value:!0});var u=n(2),l=n(293),c=u.__importDefault(n(297));function d(e){var t=/.*?<\/span>/gi,n=/(.*?)<\/span>/;return e.replace(t,(function(e){var t=e.match(n);return null==t?"":t[1]}))}function h(e,t){var n;return e=(0,r["default"])(n=e.toLowerCase()).call(n),!!l.IGNORE_TAGS.has(e)||!(!t||"img"!==e)}function A(e,t){var n="";n="<"+e;var i=[];(0,s["default"])(t).call(t,(function(e){i.push(e.name+'="'+e.value+'"')})),i.length>0&&(n=n+" "+i.join(" "));var o=l.EMPTY_TAGS.has(e);return n=n+(o?"/":"")+">",n}function p(e){return""}function f(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=[],o="";function u(e){e=(0,r["default"])(e).call(e),e&&(l.EMPTY_TAGS.has(e)||(o=e))}function f(){o=""}var g=new c["default"];g.parse(e,{startElement:function(e,o){if(u(e),!h(e,n)){var r=l.NECESSARY_ATTRS.get(e)||[],c=[];(0,s["default"])(o).call(o,(function(e){var n=e.name;"style"!==n?!1!==(0,a["default"])(r).call(r,n)&&c.push(e):t||c.push(e)}));var d=A(e,c);i.push(d)}},characters:function(e){e&&(h(o,n)||i.push(e))},endElement:function(e){if(!h(e,n)){var t=p(e);i.push(t),f()}},comment:function(e){u(e)}});var m=i.join("");return m=d(m),m}t["default"]=f},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(132)),s=i(n(121));(0,o["default"])(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new r["default"](["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new s["default"]([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new r["default"](["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new r["default"](["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){var i=n(295);e.exports=i},function(e,t,n){n(296),n(61),n(50),n(54);var i=n(9);e.exports=i.Set},function(e,t,n){"use strict";var i=n(122),o=n(124);e.exports=i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){t&&(this.contentHandler=t);var n,i,o,r=!1,s=this;while(e.length>0)"\x3c!--"==e.substring(0,4)?(o=e.indexOf("--\x3e"),-1!=o?(this.contentHandler.comment(e.substring(4,o)),e=e.substring(o+3),r=!1):r=!0):"0&&l(e.children,t.getRootNode()));t&&n.appendChild(t)})),u["default"](n)}t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(89)),s=i(n(70)),a=i(n(28)),u=i(n(302)),l=i(n(4)),c=i(n(94)),d=i(n(133)),h=i(n(46)),A=i(n(57));(0,o["default"])(t,"__esModule",{value:!0});var p=n(2),f=p.__importDefault(n(87)),g=p.__importDefault(n(314)),m=p.__importDefault(n(3)),v=function(){function e(e){this.editor=e,this.menuList=[],this.constructorList=g["default"]}return e.prototype.extend=function(e,t){t&&"function"===typeof t&&(this.constructorList[e]=t)},e.prototype.init=function(){var e,t,n=this,i=this.editor.config,o=i.excludeMenus;!1===(0,r["default"])(o)&&(o=[]),i.menus=(0,s["default"])(e=i.menus).call(e,(function(e){return!1===(0,a["default"])(o).call(o,e)}));var d=(0,u["default"])(f["default"].globalCustomMenuConstructorList);d=(0,s["default"])(d).call(d,(function(e){return(0,a["default"])(o).call(o,e)})),(0,l["default"])(d).call(d,(function(e){delete f["default"].globalCustomMenuConstructorList[e]})),(0,l["default"])(t=i.menus).call(t,(function(e){var t=n.constructorList[e];n._initMenuList(e,t)}));for(var h=0,A=(0,c["default"])(f["default"].globalCustomMenuConstructorList);h\n

      \n
      \n
      \n
      ');o.css("visibility","hidden"),t.append(o),o.css("z-index",e.zIndex.get("tooltip"));var r=0;function s(){r&&clearTimeout(r)}function a(){s(),o.css("visibility","hidden")}t.on("mouseover",(function(n){var u,l,c=n.target,d=m["default"](c);if(d.isContain(t))a();else{if(null!=d.parentUntil(".w-e-droplist"))a();else if(d.attr("data-title"))u=d.attr("data-title"),l=d;else{var A=d.parentUntil(".w-e-menu");null!=A&&(u=A.attr("data-title"),l=A)}if(u&&l){s();var p=l.getOffsetData();o.text(e.i18next.t("menus.title."+u));var f=o.getOffsetData(),g=p.left+p.width/2-f.width/2;o.css("left",g+"px"),"up"===i?o.css("top",p.top-f.height-8+"px"):"down"===i&&o.css("top",p.top+p.height+8+"px"),r=(0,h["default"])((function(){o.css("visibility","visible")}),200)}else a()}})).on("mouseleave",(function(){a()}))},e.prototype._addToToolbar=function(){var e,t=this.editor,n=t.$toolbarElem;(0,l["default"])(e=this.menuList).call(e,(function(e){var t=e.$elem;t&&n.append(t)}))},e.prototype.menuFind=function(e){for(var t=this.menuList,n=0,i=t.length;nc)n=u[c++],i&&!s.call(a,n)||d.push(e?[n,a[n]]:a[n]);return d}};e.exports={entries:a(!0),values:a(!1)}},function(e,t,n){var i=n(311);e.exports=i},function(e,t,n){var i=n(312),o=Array.prototype;e.exports=function(e){var t=e.some;return e===o||e instanceof Array&&t===o.some?i:t}},function(e,t,n){n(313);var i=n(15);e.exports=i("Array").some},function(e,t,n){"use strict";var i=n(5),o=n(32).some,r=n(67),s=n(22),a=r("some"),u=s("some");i({target:"Array",proto:!0,forced:!a||!u},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(315)),a=r.__importDefault(n(316)),u=r.__importDefault(n(321)),l=r.__importDefault(n(326)),c=r.__importDefault(n(327)),d=r.__importDefault(n(328)),h=r.__importDefault(n(329)),A=r.__importDefault(n(331)),p=r.__importDefault(n(333)),f=r.__importDefault(n(334)),g=r.__importDefault(n(337)),m=r.__importDefault(n(338)),v=r.__importDefault(n(339)),_=r.__importDefault(n(350)),y=r.__importDefault(n(365)),w=r.__importDefault(n(369)),b=r.__importDefault(n(137)),C=r.__importDefault(n(378)),S=r.__importDefault(n(380)),B=r.__importDefault(n(381)),E=r.__importDefault(n(382)),x=r.__importDefault(n(401)),L=r.__importDefault(n(406)),D=r.__importDefault(n(409));t["default"]={bold:s["default"],head:a["default"],italic:l["default"],link:u["default"],underline:c["default"],strikeThrough:d["default"],fontName:h["default"],fontSize:A["default"],justify:p["default"],quote:f["default"],backColor:g["default"],foreColor:m["default"],video:v["default"],image:_["default"],indent:y["default"],emoticon:w["default"],list:b["default"],lineHeight:C["default"],undo:S["default"],redo:B["default"],table:E["default"],code:x["default"],splitLine:L["default"],todo:D["default"]}},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(23)),a=r.__importDefault(n(3)),u=function(e){function t(t){var n=this,i=a["default"]('
      \n \n
      ');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd["do"]("bold"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e=this.editor;e.cmd.queryCommandState("bold")?this.active():this.unActive()},t}(s["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(27)),s=i(n(29)),a=i(n(4)),u=i(n(317)),l=i(n(28));(0,o["default"])(t,"__esModule",{value:!0});var c=n(2),d=c.__importDefault(n(24)),h=c.__importDefault(n(3)),A=n(6),p=n(7),f=function(e){function t(t){var n=this,i=h["default"]('
      '),o={width:100,title:"设置标题",type:"list",list:[{$elem:h["default"]("

      H1

      "),value:"

      "},{$elem:h["default"]("

      H2

      "),value:"

      "},{$elem:h["default"]("

      H3

      "),value:"

      "},{$elem:h["default"]("

      H4

      "),value:"

      "},{$elem:h["default"]("

      H5
      "),value:"
      "},{$elem:h["default"]("

      "+t.i18next.t("menus.dropListMenu.head.正文")+"

      "),value:"

      "}],clickHandler:function(e){n.command(e)}};n=e.call(this,i,t,o)||this;var r=t.config.onCatalogChange;return r&&(n.oldCatalogs=[],n.addListenerCatalog(),n.getCatalogs()),n}return c.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n))this.setMultilineHead(e);else{var i;if((0,r["default"])(i=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(i,h["default"](n).getNodeName())>-1)return;t.cmd["do"]("formatBlock",e)}"

      "!==e&&this.addUidForSelectionElem()},t.prototype.addUidForSelectionElem=function(){var e=this.editor,t=e.selection.getSelectionContainerElem(),n=A.getRandomCode();h["default"](t).attr("id",n)},t.prototype.addListenerCatalog=function(){var e=this,t=this.editor;t.txt.eventHooks.changeEvents.push((function(){e.getCatalogs()}))},t.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=e.config.onCatalogChange,i=(0,s["default"])(t).call(t,"h1,h2,h3,h4,h5"),o=[];(0,a["default"])(i).call(i,(function(e,t){var n=h["default"](e),i=n.attr("id"),r=n.getNodeName(),s=n.text();i||(i=A.getRandomCode(),n.attr("id",i)),s&&o.push({tag:r,id:i,text:s})})),(0,u["default"])(this.oldCatalogs)!==(0,u["default"])(o)&&(this.oldCatalogs=o,n&&n(o))},t.prototype.setMultilineHead=function(e){var t,n,i=this,o=this.editor,r=o.selection,s=null===(t=r.getSelectionContainerElem())||void 0===t?void 0:t.elems[0],u=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],l=h["default"](r.getSelectionStartElem()),c=h["default"](r.getSelectionEndElem());c.elems[0].outerHTML!==h["default"](p.EMPTY_P).elems[0].outerHTML||c.elems[0].nextSibling||(c=c.prev());var d=[];d.push(l.getNodeTop(o));var A=[],f=null===(n=r.getRange())||void 0===n?void 0:n.commonAncestorContainer.childNodes;null===f||void 0===f||(0,a["default"])(f).call(f,(function(e,t){e===d[0].getNode()&&A.push(t),e===c.getNodeTop(o).getNode()&&A.push(t)}));var g=0;while(d[g].getNode()!==c.getNodeTop(o).getNode()){if(!d[g].elems[0])return;var m=h["default"](d[g].next().getNode());d.push(m),g++}null===d||void 0===d||(0,a["default"])(d).call(d,(function(t,n){if(!i.hasTag(t,u)){var o=h["default"](e),r=t.parent().getNode();o.html(""+t.html()),r.insertBefore(o.getNode(),t.getNode()),t.remove()}})),r.createRangeByElems(s.children[A[0]],s.children[A[1]])},t.prototype.hasTag=function(e,t){var n,i=this;if(!e)return!1;if((0,l["default"])(t).call(t,null===e||void 0===e?void 0:e.getNodeName()))return!0;var o=!1;return null===(n=e.children())||void 0===n||(0,a["default"])(n).call(n,(function(e){o=i.hasTag(h["default"](e),t)})),o},t.prototype.tryChangeActive=function(){var e=this.editor,t=/^h/i,n=e.cmd.queryCommandValue("formatBlock");t.test(n)?this.active():this.unActive()},t}(d["default"]);t["default"]=f},function(e,t,n){e.exports=n(318)},function(e,t,n){var i=n(319);e.exports=i},function(e,t,n){n(320);var i=n(9);i.JSON||(i.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return i.JSON.stringify.apply(null,arguments)}},function(e,t,n){var i=n(5),o=n(36),r=n(11),s=o("JSON","stringify"),a=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,l=/^[\uDC00-\uDFFF]$/,c=function(e,t,n){var i=n.charAt(t-1),o=n.charAt(t+1);return u.test(e)&&!l.test(o)||l.test(e)&&!u.test(i)?"\\u"+e.charCodeAt(0).toString(16):e},d=r((function(){return'"\\udf06\\ud834"'!==s("\udf06\ud834")||'"\\udead"'!==s("\udead")}));s&&i({target:"JSON",stat:!0,forced:d},{stringify:function(e,t,n){var i=s.apply(null,arguments);return"string"==typeof i?i.replace(a,c):i}})},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(38)),u=s.__importDefault(n(3)),l=s.__importDefault(n(322)),c=s.__importStar(n(96)),d=s.__importDefault(n(33)),h=s.__importDefault(n(324)),A=n(7),p=function(e){function t(t){var n=this,i=u["default"]('

      ');return n=e.call(this,i,t)||this,h["default"](t),n}return s.__extends(t,e),t.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getSelectionContainerElem(),i=t.$textElem,o=i.html(),s=(0,r["default"])(o).call(o);if(s===A.EMPTY_P){var a=i.children();t.selection.createRangeByElem(a,!0,!0),n=t.selection.getSelectionContainerElem()}if(!n||!t.$textElem.equal(n))if(this.isActive){var l="",d="";if(e=t.selection.getSelectionContainerElem(),!e)return;if("A"!==e.getNodeName()){var h=c.getParentNodeA(e);e=u["default"](h)}l=e.elems[0].innerText,d=e.attr("href"),this.createPanel(l,d)}else t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),"")},t.prototype.createPanel=function(e,t){var n=l["default"](this.editor,e,t),i=new d["default"](this,n);i.create()},t.prototype.tryChangeActive=function(){var e=this.editor;c["default"](e)?this.active():this.unActive()},t}(a["default"]);t["default"]=p},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(28)),s=i(n(17)),a=i(n(29));(0,o["default"])(t,"__esModule",{value:!0});var u=n(2),l=n(6),c=u.__importDefault(n(3)),d=u.__importStar(n(96)),h=n(323);function A(e,t,n){var i,o=l.getRandom("input-link"),u=l.getRandom("input-text"),A=l.getRandom("btn-ok"),p=l.getRandom("btn-del"),f=d["default"](e)?"inline-block":"none";function g(){if(d["default"](e)){var t=e.selection.getSelectionContainerElem();t&&(e.selection.createRangeByElem(t),e.selection.restoreSelection(),i=t)}}function m(t,n){var i=t.replace(//g,">"),o=c["default"](''+i+""),r=o.elems[0];r.innerText=t,r.href=n,d["default"](e)?(g(),e.cmd["do"]("insertElem",o)):e.cmd["do"]("insertElem",o)}function v(){if(d["default"](e))if(g(),"A"===i.getNodeName()){var t,n=i.elems[0],o=n.parentElement;o&&(0,r["default"])(t=d.EXTRA_TAG).call(t,o.nodeName)?o.innerHTML=n.innerHTML:e.cmd["do"]("insertHTML",""+n.innerHTML+"")}else{var s=d.getParentNodeA(i),a=s.innerHTML;e.cmd["do"]("insertHTML",""+a+"")}}function _(t,n){var i=e.config.linkCheck(t,n);if(void 0===i);else{if(!0===i)return!0;e.config.customAlert(i,"warning")}return!1}var y={width:300,height:0,tabs:[{title:e.i18next.t("menus.panelMenus.link.链接"),tpl:'
      \n \n \n \n \n
      \n \n \n
      \n
      ",events:[{selector:"#"+A,type:"click",fn:function(){var t,n,i,a,l,A=e.selection.getSelectionContainerElem(),p=null===A||void 0===A?void 0:A.elems[0];e.selection.restoreSelection();var f=e.selection.getSelectionRangeTopNodes()[0].getNode(),g=window.getSelection(),v=c["default"]("#"+o),y=c["default"]("#"+u),w=(0,s["default"])(t=v.val()).call(t),b=(0,s["default"])(n=y.val()).call(n),C="";g&&!(null===g||void 0===g?void 0:g.isCollapsed)&&(C=null===(a=h.insertHtml(g,f))||void 0===a?void 0:(0,s["default"])(a).call(a));var S=null===C||void 0===C?void 0:C.replace(/<.*?>/g,""),B=null!==(l=null===S||void 0===S?void 0:S.length)&&void 0!==l?l:0;if(B<=b.length){var E=b.substring(0,B),x=b.substring(B);S===E&&(b=S+x)}if(w&&(b||(b=w),_(b,w))){if("A"===(null===p||void 0===p?void 0:p.nodeName))return p.setAttribute("href",w),p.innerText=b,!0;if("A"!==(null===p||void 0===p?void 0:p.nodeName)&&(0,r["default"])(i=d.EXTRA_TAG).call(i,p.nodeName)){var L=d.getParentNodeA(A);if(L)return L.setAttribute("href",w),p.innerText=b,!0}return m(b,w),!0}},bindEnter:!0},{selector:"#"+p,type:"click",fn:function(){return v(),!0}}]}],setLinkValue:function(e,i){var r,s="",l="";"text"===i&&(s="#"+u,l=t),"link"===i&&(s="#"+o,l=n),r=(0,a["default"])(e).call(e,s).elems[0],r.value=l}};return y}t["default"]=A},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));function s(e,t){var n=e,i=e;do{if(n.textContent===t)break;i=n,n.parentNode&&(n=null===n||void 0===n?void 0:n.parentNode)}while("P"!==(null===n||void 0===n?void 0:n.nodeName));return i}function a(e,t){var n=e.nodeName,i="";if(3===e.nodeType||/^(h|H)[1-6]$/.test(n))return t;if(1===e.nodeType){var o=e.getAttribute("style"),r=e.getAttribute("face"),s=e.getAttribute("color");o&&(i=i+' style="'+o+'"'),r&&(i=i+' face="'+r+'"'),s&&(i=i+' color="'+s+'"')}return n=n.toLowerCase(),"<"+n+i+">"+t+""}function u(e,t,n,i){var o,r=null===(o=t.textContent)||void 0===o?void 0:o.substring(n,i),s=t,u="";do{u=a(s,null!==r&&void 0!==r?r:""),r=u,s=null===s||void 0===s?void 0:s.parentElement}while(s&&s.textContent!==e);return u}function l(e,t){var n,i,o,r,l,h=e.anchorNode,A=e.focusNode,p=e.anchorOffset,f=e.focusOffset,g=null!==(n=t.textContent)&&void 0!==n?n:"",m=c(t),v="",_="",y="",w="",b=h,C=A,S=h;if(null===h||void 0===h?void 0:h.isEqualNode(null!==A&&void 0!==A?A:null)){var B=u(g,h,p,f);return B=d(m,B),B}h&&(_=u(g,h,null!==p&&void 0!==p?p:0)),A&&(w=u(g,A,0,f)),h&&(b=s(h,g)),A&&(C=s(A,g)),S=null!==(i=null===b||void 0===b?void 0:b.nextSibling)&&void 0!==i?i:h;while(!(null===S||void 0===S?void 0:S.isEqualNode(null!==C&&void 0!==C?C:null))){var E=null===S||void 0===S?void 0:S.nodeName;if("#text"===E)y+=null===S||void 0===S?void 0:S.textContent;else{var x=null===(r=null===(o=null===S||void 0===S?void 0:S.firstChild)||void 0===o?void 0:o.parentElement)||void 0===r?void 0:r.innerHTML;S&&(y+=a(S,null!==x&&void 0!==x?x:""))}var L=null!==(l=null===S||void 0===S?void 0:S.nextSibling)&&void 0!==l?l:S;if(L===S)break;S=L}return v=""+_+y+w,v=d(m,v),v}function c(e){var t,n=null!==(t=e.textContent)&&void 0!==t?t:"",i=[];while((null===e||void 0===e?void 0:e.textContent)===n)"P"!==e.nodeName&&"TABLE"!==e.nodeName&&i.push(e),e=e.childNodes[0];return i}function d(e,t){return(0,r["default"])(e).call(e,(function(e){t=a(e,t)})),t}(0,o["default"])(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=s,t.makeHtmlString=a,t.createPartHtml=u,t.insertHtml=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(325));function a(e){s["default"](e)}t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(28));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(39)),l=n(96);function c(e){var t;function n(n){var i=[{$elem:a["default"](""+e.i18next.t("menus.panelMenus.link.查看链接")+""),onClick:function(e,t){var n=t.attr("href");return window.open(n,"_target"),!0}},{$elem:a["default"](""+e.i18next.t("menus.panelMenus.link.取消链接")+""),onClick:function(e,t){var n,i;e.selection.createRangeByElem(t),e.selection.restoreSelection();var o=t.childNodes();if("IMG"===(null===o||void 0===o?void 0:o.getNodeName())){var s=null===(i=null===(n=e.selection.getSelectionContainerElem())||void 0===n?void 0:n.children())||void 0===i?void 0:i.elems[0].children[0];e.cmd["do"]("insertHTML","")}else{var a,u=t.elems[0],c=u.innerHTML,d=u.parentElement;d&&(0,r["default"])(a=l.EXTRA_TAG).call(a,d.nodeName)?d.innerHTML=c:e.cmd["do"]("insertHTML",""+c+"")}return!0}}];t=new u["default"](e,n,i),t.create()}function i(){t&&(t.remove(),t=null)}return{showLinkTooltip:n,hideLinkTooltip:i}}function d(e){var t=c(e),n=t.showLinkTooltip,i=t.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(23)),a=r.__importDefault(n(3)),u=function(e){function t(t){var n=this,i=a["default"]('
      \n \n
      ');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd["do"]("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e=this.editor;e.cmd.queryCommandState("italic")?this.active():this.unActive()},t}(s["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(23)),a=r.__importDefault(n(3)),u=function(e){function t(t){var n=this,i=a["default"]('
      \n \n
      ');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd["do"]("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e=this.editor;e.cmd.queryCommandState("underline")?this.active():this.unActive()},t}(s["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(23)),a=r.__importDefault(n(3)),u=function(e){function t(t){var n=this,i=a["default"]('
      \n \n
      ');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd["do"]("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e=this.editor;e.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},t}(s["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(24)),a=r.__importDefault(n(3)),u=r.__importDefault(n(330)),l=function(e){function t(t){var n=this,i=a["default"]('
      \n \n
      '),o=new u["default"](t.config.fontNames),r={width:100,title:"设置字体",type:"list",list:o.getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this,n}return r.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),o=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=o){var r="p"!==(null===o||void 0===o?void 0:o.nodeName.toLowerCase()),s=(null===o||void 0===o?void 0:o.getAttribute("face"))===e;if(i){if(r&&!s){var a=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(a[0]),n.selection.moveCursor(a[0].elems[0])}n.selection.setRangeToElem(o),n.selection.createEmptyRange()}n.cmd["do"]("fontName",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(s["default"]);t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=function(){function e(e){var t=this;this.itemList=[],(0,r["default"])(e).call(e,(function(e){var n="string"===typeof e?e:e.value,i="string"===typeof e?e:e.name;t.itemList.push({$elem:a["default"]("

      "+i+"

      "),value:i})}))}return e.prototype.getItemList=function(){return this.itemList},e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(24)),a=r.__importDefault(n(3)),u=r.__importDefault(n(332)),l=function(e){function t(t){var n=this,i=a["default"]('
      \n \n
      '),o=new u["default"](t.config.fontSizes),r={width:160,title:"设置字号",type:"list",list:o.getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,r)||this,n}return r.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),o=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];null!=o&&(n.cmd["do"]("fontSize",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection()))},t.prototype.tryChangeActive=function(){},t}(s["default"]);t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=function(){function e(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:s["default"]('

      '+n.name+"

      "),value:n.value})}}return e.prototype.getItemList=function(){return this.itemList},e}();t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(27));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(24)),l=a.__importDefault(n(3)),c=["LI"],d=["BLOCKQUOTE"],h=function(e){function t(t){var n=this,i=l["default"]('
      '),o={width:100,title:"对齐方式",type:"list",list:[{$elem:l["default"]('

      \n \n '+t.i18next.t("menus.dropListMenu.justify.靠左")+"\n

      "),value:"left"},{$elem:l["default"]('

      \n \n '+t.i18next.t("menus.dropListMenu.justify.居中")+"\n

      "),value:"center"},{$elem:l["default"]('

      \n \n '+t.i18next.t("menus.dropListMenu.justify.靠右")+"\n

      "),value:"right"},{$elem:l["default"]('

      \n \n '+t.i18next.t("menus.dropListMenu.justify.两端")+"\n

      "),value:"justify"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,o)||this,n}return a.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection,i=n.getSelectionContainerElem();n.saveRange();var o=t.selection.getSelectionRangeTopNodes();if(null===i||void 0===i?void 0:i.length)if(this.isSpecialNode(i,o[0])||this.isSpecialTopNode(o[0])){var s=this.getSpecialNodeUntilTop(i,o[0]);if(null==s)return;l["default"](s).css("text-align",e)}else(0,r["default"])(o).call(o,(function(t){t.css("text-align",e)}));n.restoreSelection()},t.prototype.getSpecialNodeUntilTop=function(e,t){var n=e.elems[0],i=t.elems[0];while(null!=n){if(-1!==(0,s["default"])(c).call(c,null===n||void 0===n?void 0:n.nodeName))return n;if(n.parentNode===i)return n;n=n.parentNode}return n},t.prototype.isSpecialNode=function(e,t){var n=this.getSpecialNodeUntilTop(e,t);return null!=n&&-1!==(0,s["default"])(c).call(c,n.nodeName)},t.prototype.isSpecialTopNode=function(e){var t;return null!=e&&-1!==(0,s["default"])(d).call(d,null===(t=e.elems[0])||void 0===t?void 0:t.nodeName)},t.prototype.tryChangeActive=function(){},t}(u["default"]);t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(23)),l=s.__importDefault(n(335)),c=s.__importDefault(n(336)),d=n(7),h=function(e){function t(t){var n=this,i=a["default"]('
      \n \n
      ');return n=e.call(this,i,t)||this,l["default"](t),n}return s.__extends(t,e),t.prototype.clickHandler=function(){var e,t,n=this.editor,i=n.selection.isSelectionEmpty(),o=n.selection.getSelectionRangeTopNodes(),s=o[o.length-1],u=this.getTopNodeName();if("BLOCKQUOTE"!==u){var l=c["default"](o);if(n.$textElem.equal(s)){var h=null===(e=n.selection.getSelectionContainerElem())||void 0===e?void 0:e.elems[0];n.selection.createRangeByElems(h.children[0],h.children[0]),o=n.selection.getSelectionRangeTopNodes(),l=c["default"](o),s.append(l)}else l.insertAfter(s);this.delSelectNode(o);var A=null===(t=l.childNodes())||void 0===t?void 0:t.last().getNode();if(null==A)return;return A.textContent?n.selection.moveCursor(A):n.selection.moveCursor(A,0),this.tryChangeActive(),void a["default"](d.EMPTY_P).insertAfter(l)}var p=a["default"](s.childNodes()),f=p.length,g=s;(0,r["default"])(p).call(p,(function(e){var t=a["default"](e);t.insertAfter(g),g=t})),s.remove(),n.selection.moveCursor(p.elems[f-1]),this.tryChangeActive(),i&&(n.selection.collapseRange(),n.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e,t=this.editor,n=null===(e=t.selection.getSelectionRangeTopNodes()[0])||void 0===e?void 0:e.getNodeName();"BLOCKQUOTE"===n?this.active():this.unActive()},t.prototype.getTopNodeName=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes()[0],n=null===t||void 0===t?void 0:t.getNodeName();return n},t.prototype.delSelectNode=function(e){(0,r["default"])(e).call(e,(function(e){e.remove()}))},t}(u["default"]);t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=n(7),a=r.__importDefault(n(3));function u(e){function t(t){var n,i=e.selection.getSelectionContainerElem(),o=e.selection.getSelectionRangeTopNodes()[0];if("BLOCKQUOTE"===(null===o||void 0===o?void 0:o.getNodeName())){if("BLOCKQUOTE"===i.getNodeName()){var r=null===(n=i.childNodes())||void 0===n?void 0:n.getNode();e.selection.moveCursor(r)}if(""===i.text()){t.preventDefault(),i.remove();var u=a["default"](s.EMPTY_P);u.insertAfter(o),e.selection.moveCursor(u.getNode(),0)}""===o.text()&&o.remove()}}e.txt.eventHooks.enterDownEvents.push(t)}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3));function u(e){var t=a["default"]("
      ");return(0,r["default"])(e).call(e,(function(e){t.append(e.clone(!0))})),t}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(24)),u=s.__importDefault(n(3)),l=n(6),c=function(e){function t(t){var n,i=this,o=u["default"]('
      \n \n
      '),s={width:120,title:"背景颜色",type:"inline-block",list:(0,r["default"])(n=t.config.colors).call(n,(function(e){return{$elem:u["default"](''),value:e}})),clickHandler:function(e){i.command(e)}};return i=e.call(this,o,t,s)||this,i}return s.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),o=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=o){var r="p"!==(null===o||void 0===o?void 0:o.nodeName.toLowerCase()),s=null===o||void 0===o?void 0:o.style.backgroundColor,a=l.hexToRgb(e)===s;if(i){if(r&&!a){var u=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(u[0]),n.selection.moveCursor(u[0].elems[0])}n.selection.createEmptyRange()}n.cmd["do"]("backColor",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(a["default"]);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(24)),u=s.__importDefault(n(3)),l=function(e){function t(t){var n,i=this,o=u["default"]('
      \n \n
      '),s={width:120,title:"文字颜色",type:"inline-block",list:(0,r["default"])(n=t.config.colors).call(n,(function(e){return{$elem:u["default"](''),value:e}})),clickHandler:function(e){i.command(e)}};return i=e.call(this,o,t,s)||this,i}return s.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),o=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=o){var r=n.selection.getSelectionText();if("A"===o.nodeName&&o.textContent===r){var s=u["default"]("").getNode();o.appendChild(s)}n.cmd["do"]("foreColor",e),i&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(a["default"]);t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(33)),u=r.__importDefault(n(38)),l=r.__importDefault(n(340)),c=r.__importDefault(n(346)),d=function(e){function t(t){var n=this,i=s["default"]('
      \n \n
      ');return n=e.call(this,i,t)||this,c["default"](t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel("")},t.prototype.createPanel=function(e){var t=l["default"](this.editor,e),n=new a["default"](this,t);n.create()},t.prototype.tryChangeActive=function(){},t}(u["default"]);t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(6),u=s.__importDefault(n(3)),l=s.__importDefault(n(341)),c=n(7);function d(e,t){var n=e.config,i=new l["default"](e),o=a.getRandom("input-iframe"),s=a.getRandom("btn-ok"),d=a.getRandom("input-upload"),h=a.getRandom("btn-local-ok");function A(t){e.cmd["do"]("insertHTML",t+c.EMPTY_P),e.config.onlineVideoCallback(t)}function p(t){var n=e.config.onlineVideoCheck(t);return!0===n||("string"===typeof n&&e.config.customAlert(n,"error"),!1)}var f=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'
      \n
      \n \n
      \n
      \n \n
      \n
      ',events:[{selector:"#"+h,type:"click",fn:function(){var e=u["default"]("#"+d),t=e.elems[0];if(!t)return!0;t.click()}},{selector:"#"+d,type:"change",fn:function(){var e=u["default"]("#"+d),t=e.elems[0];if(!t)return!0;var n=t.files;return n.length&&i.uploadVideo(n),!0}}]},{title:e.i18next.t("menus.panelMenus.video.插入视频"),tpl:'
      \n "/>\n \n
      \n \n
      \n
      ",events:[{selector:"#"+s,type:"click",fn:function(){var e,t=u["default"]("#"+o),n=(0,r["default"])(e=t.val()).call(e);if(n&&p(n))return A(n),!0},bindEnter:!0}]}],g={width:300,height:0,tabs:[]};return window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&g.tabs.push(f[0]),n.showLinkVideo&&g.tabs.push(f[1]),g}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(133)),s=i(n(57)),a=i(n(4)),u=i(n(27));(0,o["default"])(t,"__esModule",{value:!0});var l=n(2),c=n(6),d=l.__importDefault(n(135)),h=l.__importDefault(n(136)),A=n(7),p=n(6),f=function(){function e(e){this.editor=e}return e.prototype.uploadVideo=function(e){var t=this;if(e.length){var n=this.editor,i=n.config,o="validate.",l=function(e){return n.i18next.t(o+e)},A=i.uploadVideoServer,p=i.uploadVideoMaxSize,f=p/1024,g=i.uploadVideoName,m=i.uploadVideoParams,v=i.uploadVideoParamsWithUrl,_=i.uploadVideoHeaders,y=i.uploadVideoHooks,w=i.uploadVideoTimeout,b=i.withVideoCredentials,C=i.customUploadVideo,S=i.uploadVideoAccept,B=[],E=[];if(c.arrForEach(e,(function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(S instanceof Array?(0,r["default"])(S).call(S,(function(e){return e===t.split(".")[t.split(".").length-1]}))?f1&&(n+=t+1),L.append(n,e)})),A){var D=A.split("#");A=D[0];var N=D[1]||"";(0,a["default"])(c).call(c,m,(function(e,t){v&&((0,u["default"])(A).call(A,"?")>0?A+="&":A+="?",A=A+e+"="+t),L.append(e,t)})),N&&(A+="#"+N);var k=d["default"](A,{timeout:w,formData:L,headers:_,withCredentials:!!b,beforeSend:function(e){if(y.before)return y.before(e,n,B)},onTimeout:function(e){i.customAlert(l("上传视频超时"),"error"),y.timeout&&y.timeout(e,n)},onProgress:function(e,t){var i=new h["default"](n);t.lengthComputable&&(e=t.loaded/t.total,i.show(e))},onError:function(e){i.customAlert(l("上传视频错误"),"error",l("上传视频错误")+","+l("服务器返回状态")+": "+e.status),y.error&&y.error(e,n)},onFail:function(e,t){i.customAlert(l("上传视频失败"),"error",l("上传视频返回结果错误")+","+l("返回结果")+": "+t),y.fail&&y.fail(e,n,t)},onSuccess:function(e,o){if(y.customInsert){var r;y.customInsert((0,s["default"])(r=t.insertVideo).call(r,t),o,n)}else{if("0"!=o.errno)return i.customAlert(l("上传视频失败"),"error",l("上传视频返回结果错误")+","+l("返回结果")+" errno="+o.errno),void(y.fail&&y.fail(e,n,o));var a=o.data;t.insertVideo(a.url),y.success&&y.success(e,n,o)}}});"string"===typeof k&&i.customAlert(k,"error")}}else i.customAlert(l("传入的文件不合法"),"warning")}},e.prototype.insertVideo=function(e){var t=this.editor,n=t.config,i="validate.",o=function(e,n){return void 0===n&&(n=i),t.i18next.t(n+e)};if(n.customInsertVideo)n.customInsertVideo(e);else{p.UA.isFirefox?t.cmd["do"]("insertHTML",'

      '):t.cmd["do"]("insertHTML",''+A.EMPTY_P);var r=document.createElement("video");r.onload=function(){r=null},r.onerror=function(){n.customAlert(o("插入视频错误"),"error","wangEditor: "+o("插入视频错误")+","+o("视频链接")+' "'+e+'",'+o("下载链接失败")),r=null},r.onabort=function(){return r=null},r.src=e}},e}();t["default"]=f},function(e,t,n){e.exports=n(343)},function(e,t,n){var i=n(344);e.exports=i},function(e,t,n){n(345);var i=n(9);e.exports=i.Date.now},function(e,t,n){var i=n(5);i({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(347)),a=r.__importDefault(n(349));function u(e){s["default"](e),a["default"](e)}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(39)),u=r.__importDefault(n(348));function l(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};function i(i){var o=[{$elem:s["default"](""),onClick:function(e,t){return t.remove(),!0}},{$elem:s["default"]("100%"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:s["default"]("50%"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:s["default"]("30%"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:s["default"](""+n("重置")+""),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:s["default"](""+n("menus.justify.靠左")+""),onClick:function(e,t){return u["default"](t,"left"),!0}},{$elem:s["default"](""+n("menus.justify.居中")+""),onClick:function(e,t){return u["default"](t,"center"),!0}},{$elem:s["default"](""+n("menus.justify.靠右")+""),onClick:function(e,t){return u["default"](t,"right"),!0}}];t=new a["default"](e,i,o),t.create()}function o(){t&&(t.remove(),t=null)}return{showVideoTooltip:i,hideVideoTooltip:o}}function c(e){var t=l(e),n=t.showVideoTooltip,i=t.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}t.createShowHideFn=l,t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(28));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3));function u(e,t){var n=["P"],i=l(e,n);i&&a["default"](i).css("text-align",t)}function l(e,t){var n,i=e.elems[0];while(null!=i){if((0,r["default"])(t).call(t,null===i||void 0===i?void 0:i.nodeName))return i;if("BODY"===(null===(n=null===i||void 0===i?void 0:i.parentNode)||void 0===n?void 0:n.nodeName))return null;i=i.parentNode}return i}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(6);function s(e){if(r.UA.isFirefox){var t=e.txt,n=e.selection,i=t.eventHooks.keydownEvents;i.push((function(t){var i=n.getSelectionContainerElem();if(i){var o=i.getNodeTop(e),r=o.length&&o.prev().length?o.prev():null;r&&r.attr("data-we-video-p")&&0===n.getCursorPos()&&8===t.keyCode&&r.remove()}}))}}t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(7),u=s.__importDefault(n(3)),l=s.__importDefault(n(33)),c=s.__importDefault(n(38)),d=s.__importDefault(n(351)),h=s.__importDefault(n(364)),A=function(e){function t(t){var n,i=this,o=u["default"]('
      '),s=h["default"](t);s.onlyUploadConf&&(o=s.onlyUploadConf.$elem,(0,r["default"])(n=s.onlyUploadConf.events).call(n,(function(e){var t=e.type,n=e.fn||a.EMPTY_FN;o.on(t,(function(e){e.stopPropagation(),n(e)}))})));return i=e.call(this,o,t)||this,i.imgPanelConfig=s,d["default"](t),i}return s.__extends(t,e),t.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},t.prototype.createPanel=function(){var e=this.imgPanelConfig,t=new l["default"](this,e);this.setPanel(t),t.create()},t.prototype.tryChangeActive=function(){},t}(c["default"]);t["default"]=A},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(352)),a=r.__importDefault(n(353)),u=r.__importDefault(n(354)),l=r.__importDefault(n(362)),c=r.__importDefault(n(363));function d(e){s["default"](e),a["default"](e),u["default"](e),l["default"](e),c["default"](e)}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=n(131),a=r.__importDefault(n(97));function u(e,t){var n=e.config,i=n.pasteFilterStyle,o=n.pasteIgnoreImg,r=s.getPasteHtml(t,i,o);if(r)return!0;var a=s.getPasteText(t);return!!a}function l(e,t){for(var n,i=(null===(n=t.clipboardData)||void 0===n?void 0:n.types)||[],o=0;o\n
      \n
      \n ');return n.hide(),t.append(n),n}function h(e,t,n){var i=e.getBoundingClientRect(),o=n.getBoundingClientRect(),a=o.width.toFixed(2),u=o.height.toFixed(2);(0,r["default"])(t).call(t,".w-e-img-drag-show-size").text(a+"px * "+u+"px"),c(t,(0,s["default"])(a),(0,s["default"])(u),o.left-i.left,o.top-i.top),t.show()}function A(e){var t,n=e.$textContainerElem,i=d(e,n);function o(e,n){e.on("click",(function(e){e.stopPropagation()})),e.on("mousedown",".w-e-img-drag-rb",(function(i){if(i.preventDefault(),t){var o=i.clientX,a=i.clientY,l=n.getBoundingClientRect(),d=t.getBoundingClientRect(),h=d.width,A=d.height,p=d.left-l.left,f=d.top-l.top,g=h/A,m=h,v=A,_=u["default"](document);_.on("mousemove",w),_.on("mouseup",b),_.on("mouseleave",y)}function y(){_.off("mousemove",w),_.off("mouseup",b)}function w(t){t.stopPropagation(),t.preventDefault(),m=h+(t.clientX-o),v=A+(t.clientY-a),m/v!=g&&(v=m/g),m=(0,s["default"])(m.toFixed(2)),v=(0,s["default"])(v.toFixed(2)),(0,r["default"])(e).call(e,".w-e-img-drag-show-size").text(m.toFixed(2).replace(".00","")+"px * "+v.toFixed(2).replace(".00","")+"px"),c(e,m,v,p,f)}function b(){t.attr("width",m+""),t.attr("height",v+"");var n=t.getBoundingClientRect();c(e,m,v,n.left-l.left,n.top-l.top),y()}}))}function a(e){if(l.UA.isIE())return!1;e&&(t=e,h(n,i,t))}function A(){(0,r["default"])(n).call(n,".w-e-img-drag-mask").hide()}return o(i,n),u["default"](document).on("click",A),e.beforeDestroy((function(){u["default"](document).off("click",A)})),{showDrag:a,hideDrag:A}}function p(e){var t=A(e),n=t.showDrag,i=t.hideDrag;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}t.createShowHideFn=A,t["default"]=p},function(e,t,n){e.exports=n(356)},function(e,t,n){var i=n(357);e.exports=i},function(e,t,n){n(358);var i=n(9);e.exports=i.parseFloat},function(e,t,n){var i=n(5),o=n(359);i({global:!0,forced:parseFloat!=o},{parseFloat:o})},function(e,t,n){var i=n(8),o=n(90).trim,r=n(68),s=i.parseFloat,a=1/s(r+"-0")!==-1/0;e.exports=a?function(e){var t=o(String(e)),n=s(t);return 0===n&&"-"==t.charAt(0)?-0:n}:s},function(e,t,n){var i=n(20),o=n(361);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,".w-e-text-container {\n overflow: hidden;\n}\n.w-e-img-drag-mask {\n position: absolute;\n z-index: 1;\n border: 1px dashed #ccc;\n box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n position: absolute;\n right: -5px;\n bottom: -5px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #ccc;\n cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n min-width: 110px;\n height: 22px;\n line-height: 22px;\n font-size: 14px;\n color: #999;\n position: absolute;\n left: 0;\n top: 0;\n background-color: #999;\n color: #fff;\n border-radius: 2px;\n padding: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(39));function u(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};function i(i){var o=[{$elem:s["default"](""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("delete"),!0}},{$elem:s["default"]("30%"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:s["default"]("50%"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:s["default"]("100%"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];o.push({$elem:s["default"](""+n("重置")+""),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),i.attr("data-href")&&o.push({$elem:s["default"](""+n("查看链接")+""),onClick:function(e,t){var n=t.attr("data-href");return n&&(n=decodeURIComponent(n),window.open(n,"_target")),!0}}),t=new a["default"](e,i,o),t.create()}function o(){t&&(t.remove(),t=null)}return{showImgTooltip:i,hideImgTooltip:o}}function l(e){var t=u(e),n=t.showImgTooltip,i=t.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i),e.txt.eventHooks.imgDragBarMouseDownEvents.push(i),e.txt.eventHooks.changeEvents.push(i)}t.createShowHideFn=u,t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));function r(e){var t=e.txt,n=e.selection,i=t.eventHooks.keydownEvents;i.push((function(e){var t=n.getSelectionContainerElem(),i=n.getRange();if(i&&t&&8===e.keyCode&&n.isSelectionEmpty()){var o=i.startContainer,r=i.startOffset,s=null;if(0===r)while(o!==t.elems[0]&&t.elems[0].contains(o)&&o.parentNode&&!s){if(o.previousSibling){s=o.previousSibling;break}o=o.parentNode}else 3!==o.nodeType&&(s=o.childNodes[r-1]);if(s){var a=s;while(a.childNodes.length)a=a.childNodes[a.childNodes.length-1];a instanceof HTMLElement&&"IMG"===a.tagName&&(a.remove(),e.preventDefault())}}}))}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26)),s=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=n(6),c=a.__importDefault(n(97));function d(e){var t,n=e.config,i=new c["default"](e),o=l.getRandom("up-trigger-id"),a=l.getRandom("up-file-id"),d=l.getRandom("input-link-url"),h=l.getRandom("input-link-url-alt"),A=l.getRandom("input-link-url-href"),p=l.getRandom("btn-link"),f="menus.panelMenus.image.",g=function(t,n){return void 0===n&&(n=f),e.i18next.t(n+t)};function m(e,t,i){var o=n.linkImgCheck(e);return!0===o||("string"===typeof o&&n.customAlert(o,"error"),!1)}var v=1===n.uploadImgMaxLength?"":'multiple="multiple"',_=(0,r["default"])(t=n.uploadImgAccept).call(t,(function(e){return"image/"+e})).join(","),y=function(e,t,n){return'
      \n
      \n \n
      \n
      \n \n
      \n
      '},w=[{selector:"#"+o,type:"click",fn:function(){var e=n.uploadImgFromMedia;if(e&&"function"===typeof e)return e(),!0;var t=u["default"]("#"+a),i=t.elems[0];if(!i)return!0;i.click()}},{selector:"#"+a,type:"change",fn:function(){var e=u["default"]("#"+a),t=e.elems[0];if(!t)return!0;var n=t.files;return(null===n||void 0===n?void 0:n.length)&&i.uploadImg(n),t&&(t.value=""),!0}}],b=[''];n.showLinkImgAlt&&b.push('\n '),n.showLinkImgHref&&b.push('\n ');var C=[{title:g("上传图片"),tpl:y("w-e-up-img-container","w-e-icon-upload2",""),events:w},{title:g("网络图片"),tpl:"
      \n "+b.join("")+'\n
      \n \n
      \n
      ",events:[{selector:"#"+p,type:"click",fn:function(){var e,t=u["default"]("#"+d),o=(0,s["default"])(e=t.val()).call(e);if(o){var r,a,l,c;if(n.showLinkImgAlt)r=(0,s["default"])(a=u["default"]("#"+h).val()).call(a);if(n.showLinkImgHref)l=(0,s["default"])(c=u["default"]("#"+A).val()).call(c);if(m(o,r,l))return i.insertImg(o,r,l),!0}},bindEnter:!0}]}],S={width:300,height:0,tabs:[],onlyUploadConf:{$elem:u["default"](y("w-e-menu","w-e-icon-image","图片")),events:w}};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg||n.uploadImgFromMedia)&&S.tabs.push(C[0]),n.showLinkImg&&(S.tabs.push(C[1]),S.onlyUploadConf=void 0),S}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(24)),l=s.__importDefault(n(366)),c=function(e){function t(t){var n=this,i=a["default"]('
      \n \n
      '),o={width:130,title:"设置缩进",type:"list",list:[{$elem:a["default"]('

      \n \n '+t.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n

      "),value:"increase"},{$elem:a["default"]('

      \n \n '+t.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n

      "),value:"decrease"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,o)||this,n}return s.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n)){var i=t.selection.getSelectionRangeTopNodes();i.length>0&&(0,r["default"])(i).call(i,(function(n){l["default"](a["default"](n),e,t)}))}else n&&n.length>0&&(0,r["default"])(n).call(n,(function(n){l["default"](a["default"](n),e,t)}));t.selection.restoreSelection(),this.tryChangeActive()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionStartElem(),n=a["default"](t).getNodeTop(e);n.length<=0||(""!=n.elems[0].style["paddingLeft"]?this.active():this.unActive())},t}(u["default"]);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(45)),s=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(367)),l=a.__importDefault(n(368)),c=/^(\d+)(\w+)$/,d=/^(\d+)%$/;function h(e){var t=e.config.indentation;if("string"===typeof t){if(c.test(t)){var n,i=(0,r["default"])(n=(0,s["default"])(t).call(t).match(c)).call(n,1,3),o=i[0],a=i[1];return{value:Number(o),unit:a}}if(d.test(t))return{value:Number((0,s["default"])(t).call(t).match(d)[1]),unit:"%"}}else if(void 0!==t.value&&t.unit)return t;return{value:2,unit:"em"}}function A(e,t,n){var i=e.getNodeTop(n),o=/^(P|H[0-9]*)$/;o.test(i.getNodeName())&&("increase"===t?u["default"](i,h(n)):"decrease"===t&&l["default"](i,h(n)))}t["default"]=A},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(45));function s(e,t){var n=e.elems[0];if(""===n.style["paddingLeft"])e.css("padding-left",t.value+t.unit);else{var i=n.style["paddingLeft"],o=(0,r["default"])(i).call(i,0,i.length-t.unit.length),s=Number(o)+t.value;e.css("padding-left",""+s+t.unit)}}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(45));function s(e,t){var n=e.elems[0];if(""!==n.style["paddingLeft"]){var i=n.style["paddingLeft"],o=(0,r["default"])(i).call(i,0,i.length-t.unit.length),s=Number(o)-t.value;s>0?e.css("padding-left",""+s+t.unit):e.css("padding-left","")}}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(38)),u=r.__importDefault(n(33)),l=r.__importDefault(n(370)),c=function(e){function t(t){var n=this,i=s["default"]('

      \n \n
      ');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.createPanel=function(){var e=l["default"](this.editor),t=new u["default"](this,e);t.create()},t.prototype.clickHandler=function(){this.createPanel()},t.prototype.tryChangeActive=function(){},t}(a["default"]);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26)),s=i(n(70)),a=i(n(17));(0,o["default"])(t,"__esModule",{value:!0});var u=n(2),l=u.__importDefault(n(3));function c(e){var t=e.config.emotions;function n(e){var t,n,i=[];"image"==e.type?(i=(0,r["default"])(t=e.content).call(t,(function(e){return"string"==typeof e?"":'\n ['+e.alt+']\n '})),i=(0,s["default"])(i).call(i,(function(e){return""!==e}))):i=(0,r["default"])(n=e.content).call(n,(function(e){return''+e+""}));return i.join("").replace(/ /g,"")}var i=(0,r["default"])(t).call(t,(function(t){return{title:e.i18next.t("menus.panelMenus.emoticon."+t.title),tpl:"
      "+n(t)+"
      ",events:[{selector:".eleImg",type:"click",fn:function(t){var n,i,o=l["default"](t.target),r=o.getNodeName();"IMG"===r?n=(0,a["default"])(i=o.parent().html()).call(i):n=""+o.html()+"";return e.cmd["do"]("insertHTML",n),!0}}]}})),o={width:300,height:230,tabs:i};return o}t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var r,s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(372)),l=s.__importDefault(n(374)),c=s.__importDefault(n(375)),d=s.__importDefault(n(376)),h=s.__importDefault(n(377));(function(e){e["Wrap"]="WrapListHandle",e["Join"]="JoinListHandle",e["StartJoin"]="StartJoinListHandle",e["EndJoin"]="EndJoinListHandle",e["Other"]="OtherListHandle"})(r=t.ClassType||(t.ClassType={}));var A={WrapListHandle:u["default"],JoinListHandle:l["default"],StartJoinListHandle:c["default"],EndJoinListHandle:d["default"],OtherListHandle:h["default"]};function p(e,t,n){if(e===r.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==r.Other?new A[e](t):new A[e](t,n)}t.createListHandle=p;var f=function(){function e(e){this.handle=e,this.handle.exec()}return e.prototype.getSelectionRangeElem=function(){return a["default"](this.handle.selectionRangeElem.get())},e}();t["default"]=f},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(58),l=n(47),c=function(e){function t(t){return e.call(this,t)||this}return s.__extends(t,e),t.prototype.exec=function(){var e,t=this.options,n=t.listType,i=t.listTarget,o=t.$selectionElem,s=t.$startElem,u=t.$endElem,c=[],d=null===o||void 0===o?void 0:o.getNodeName(),h=s.prior,A=u.prior;if(!s.prior&&!u.prior||!(null===h||void 0===h?void 0:h.prev().length)&&!(null===A||void 0===A?void 0:A.next().length)){var p;(0,r["default"])(p=null===o||void 0===o?void 0:o.children()).call(p,(function(e){c.push(a["default"](e))})),d===n?e=l.createElementFragment(c,l.createDocumentFragment(),"p"):(e=l.createElement(i),(0,r["default"])(c).call(c,(function(t){e.appendChild(t.elems[0])}))),this.selectionRangeElem.set(e),l.insertBefore(o,e,o.elems[0]),o.remove()}else{var f=h;while(f.length)c.push(f),f=(null===A||void 0===A?void 0:A.equal(f))?a["default"](void 0):f.next();var g=h.prev(),m=A.next();if(d===n?e=l.createElementFragment(c,l.createDocumentFragment(),"p"):(e=l.createElement(i),(0,r["default"])(c).call(c,(function(t){e.append(t.elems[0])}))),g.length&&m.length){var v=[];while(m.length)v.push(m),m=m.next();var _=l.createElement(d);(0,r["default"])(v).call(v,(function(e){_.append(e.elems[0])})),a["default"](_).insertAfter(o),this.selectionRangeElem.set(e);var y=o.next();y.length?l.insertBefore(o,e,y.elems[0]):o.parent().elems[0].append(e)}else if(g.length){this.selectionRangeElem.set(e);y=o.next();y.length?l.insertBefore(o,e,y.elems[0]):o.parent().elems[0].append(e)}else this.selectionRangeElem.set(e),l.insertBefore(o,e,o.elems[0])}},t}(u.ListHandle);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=function(){function e(){this._element=null}return e.prototype.set=function(e){if(e instanceof DocumentFragment){var t,n=[];(0,r["default"])(t=e.childNodes).call(t,(function(e){n.push(e)})),e=n}this._element=e},e.prototype.get=function(){return this._element},e.prototype.clear=function(){this._element=null},e}();t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(58),l=n(47),c=function(e){function t(t){return e.call(this,t)||this}return s.__extends(t,e),t.prototype.exec=function(){var e,t,n,i,o,s,u,c,d=this.options,h=d.editor,A=d.listType,p=d.listTarget,f=d.$startElem,g=d.$endElem,m=h.selection.getSelectionRangeTopNodes(),v=null===f||void 0===f?void 0:f.getNodeName(),_=null===g||void 0===g?void 0:g.getNodeName();if(v===_)if(m.length>2)if(m.shift(),m.pop(),c=l.createElementFragment(l.filterSelectionNodes(m),l.createDocumentFragment()),v===A)null===(e=g.children())||void 0===e||(0,r["default"])(e).call(e,(function(e){c.append(e)})),g.remove(),this.selectionRangeElem.set(c),f.elems[0].append(c);else{var y=document.createDocumentFragment(),w=document.createDocumentFragment(),b=l.getStartPoint(f);while(b.length){var C=b.elems[0];b=b.next(),y.append(C)}var S=l.getEndPoint(g),B=[];while(S.length)B.unshift(S.elems[0]),S=S.prev();(0,r["default"])(B).call(B,(function(e){w.append(e)}));var E=l.createElement(p);E.append(y),E.append(c),E.append(w),c=E,this.selectionRangeElem.set(c),a["default"](E).insertAfter(f),!(null===(t=f.children())||void 0===t?void 0:t.length)&&f.remove(),!(null===(n=g.children())||void 0===n?void 0:n.length)&&g.remove()}else{m.length=0;b=l.getStartPoint(f);while(b.length)m.push(b),b=b.next();S=l.getEndPoint(g),B=[];while(S.length)B.unshift(S),S=S.prev();m.push.apply(m,B),v===A?(c=l.createElementFragment(m,l.createDocumentFragment(),"p"),this.selectionRangeElem.set(c),l.insertBefore(f,c,g.elems[0])):(c=l.createElement(p),(0,r["default"])(m).call(m,(function(e){c.append(e.elems[0])})),this.selectionRangeElem.set(c),a["default"](c).insertAfter(f)),!(null===(i=f.children())||void 0===i?void 0:i.length)&&g.remove(),!(null===(o=g.children())||void 0===o?void 0:o.length)&&g.remove()}else{var x=[];S=l.getEndPoint(g);while(S.length)x.unshift(S),S=S.prev();var L=[];b=l.getStartPoint(f);while(b.length)L.push(b),b=b.next();if(c=l.createDocumentFragment(),m.shift(),m.pop(),(0,r["default"])(L).call(L,(function(e){return c.append(e.elems[0])})),c=l.createElementFragment(l.filterSelectionNodes(m),c),(0,r["default"])(x).call(x,(function(e){return c.append(e.elems[0])})),this.selectionRangeElem.set(c),v===A)f.elems[0].append(c),!(null===(s=g.children())||void 0===s?void 0:s.length)&&g.remove();else if(null===(u=g.children())||void 0===u?void 0:u.length){var D=g.children();l.insertBefore(D,c,D.elems[0])}else g.elems[0].append(c)}},t}(u.ListHandle);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(58),l=n(47),c=function(e){function t(t){return e.call(this,t)||this}return s.__extends(t,e),t.prototype.exec=function(){var e,t,n=this.options,i=n.editor,o=n.listType,s=n.listTarget,u=n.$startElem,c=i.selection.getSelectionRangeTopNodes(),d=null===u||void 0===u?void 0:u.getNodeName();c.shift();var h=[],A=l.getStartPoint(u);while(A.length)h.push(A),A=A.next();d===o?(t=l.createDocumentFragment(),(0,r["default"])(h).call(h,(function(e){return t.append(e.elems[0])})),t=l.createElementFragment(l.filterSelectionNodes(c),t),this.selectionRangeElem.set(t),u.elems[0].append(t)):(t=l.createElement(s),(0,r["default"])(h).call(h,(function(e){return t.append(e.elems[0])})),t=l.createElementFragment(l.filterSelectionNodes(c),t),this.selectionRangeElem.set(t),a["default"](t).insertAfter(u),!(null===(e=u.children())||void 0===e?void 0:e.length)&&u.remove())},t}(u.ListHandle);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(58),l=n(47),c=function(e){function t(t){return e.call(this,t)||this}return s.__extends(t,e),t.prototype.exec=function(){var e,t,n,i=this.options,o=i.editor,s=i.listType,u=i.listTarget,c=i.$endElem,d=o.selection.getSelectionRangeTopNodes(),h=null===c||void 0===c?void 0:c.getNodeName();d.pop();var A=[],p=l.getEndPoint(c);while(p.length)A.unshift(p),p=p.prev();if(h===s)if(n=l.createElementFragment(l.filterSelectionNodes(d),l.createDocumentFragment()),(0,r["default"])(A).call(A,(function(e){return n.append(e.elems[0])})),this.selectionRangeElem.set(n),null===(e=c.children())||void 0===e?void 0:e.length){var f=c.children();l.insertBefore(f,n,f.elems[0])}else c.elems[0].append(n);else{var g=l.filterSelectionNodes(d);g.push.apply(g,A),n=l.createElementFragment(g,l.createElement(u)),this.selectionRangeElem.set(n),a["default"](n).insertBefore(c),!(null===(t=c.children())||void 0===t?void 0:t.length)&&c.remove()}},t}(u.ListHandle);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=n(58),a=n(47),u=function(e){function t(t,n){var i=e.call(this,t)||this;return i.range=n,i}return r.__extends(t,e),t.prototype.exec=function(){var e=this.options,t=e.editor,n=e.listTarget,i=t.selection.getSelectionRangeTopNodes(),o=a.createElementFragment(a.filterSelectionNodes(i),a.createElement(n));this.selectionRangeElem.set(o),this.range.insertNode(o)},t}(s.ListHandle);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(27));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(24)),l=a.__importDefault(n(3)),c=a.__importDefault(n(379)),d=function(e){function t(t){var n=this,i=l["default"]('
      \n \n
      '),o=new c["default"](t,t.config.lineHeights),r={width:100,title:"设置行高",type:"list",list:o.getItemList(),clickHandler:function(e){t.selection.saveRange(),n.command(e)}};return n=e.call(this,i,t,r)||this,n}return a.__extends(t,e),t.prototype.command=function(e){var t=this.editor;t.selection.restoreSelection();var n=l["default"](t.selection.getSelectionContainerElem());if(n.elems.length)if(n&&t.$textElem.equal(n)){for(var i=!1,o=l["default"](t.selection.getSelectionStartElem()).elems[0],r=l["default"](t.selection.getSelectionEndElem()).elems[0],s=this.getDom(o),a=this.getDom(r),u=n.elems[0].children,c=0;c"+e.i18next.t("默认")+""),value:""}],(0,r["default"])(t).call(t,(function(e){n.itemList.push({$elem:a["default"](""+e+""),value:e})}))}return e.prototype.getItemList=function(){return this.itemList},e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(23)),u=function(e){function t(t){var n=this,i=s["default"]('
      \n \n
      ');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.revoke();var t=e.$textElem.children();if(null===t||void 0===t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},t}(a["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(23)),u=function(e){function t(t){var n=this,i=s["default"]('
      \n \n
      ');return n=e.call(this,i,t)||this,n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.restore();var t=e.$textElem.children();if(null===t||void 0===t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},t}(a["default"]);t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(38)),a=r.__importDefault(n(3)),u=r.__importDefault(n(383)),l=r.__importDefault(n(33)),c=r.__importDefault(n(392)),d=function(e){function t(t){var n=this,i=a["default"]('
      ');return n=e.call(this,i,t)||this,c["default"](t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel()},t.prototype.createPanel=function(){var e=u["default"](this.editor),t=new l["default"](this,e);t.create()},t.prototype.tryChangeActive=function(){},t}(s["default"]);t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(384));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(6),u=s.__importDefault(n(3));n(389);var l=s.__importDefault(n(391));function c(e){return e>0&&(0,r["default"])(e)}function d(e){var t=new l["default"](e),n=a.getRandom("w-col-id"),i=a.getRandom("w-row-id"),o=a.getRandom("btn-link"),r="menus.panelMenus.table.",s=function(t){return e.i18next.t(t)},d=[{title:s(r+"插入表格"),tpl:'
      \n
      \n '+s("创建")+'\n \n '+s(r+"行")+'\n \n '+(s(r+"列")+s(r+"的")+s(r+"表格"))+'\n
      \n
      \n \n
      \n
      ",events:[{selector:"#"+o,type:"click",fn:function(){var o=Number(u["default"]("#"+n).val()),r=Number(u["default"]("#"+i).val());return c(r)&&c(o)?(t.createAction(r,o),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}],h={width:330,height:0,tabs:[]};return h.tabs.push(d[0]),h}t["default"]=d},function(e,t,n){e.exports=n(385)},function(e,t,n){var i=n(386);e.exports=i},function(e,t,n){n(387);var i=n(9);e.exports=i.Number.isInteger},function(e,t,n){var i=n(5),o=n(388);i({target:"Number",stat:!0},{isInteger:o})},function(e,t,n){var i=n(13),o=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var i=n(20),o=n(390);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,".w-e-table {\n display: flex;\n}\n.w-e-table .w-e-table-input {\n width: 40px;\n text-align: center!important;\n margin: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=n(7),a=r.__importDefault(n(3)),u=function(){function e(e){this.editor=e}return e.prototype.createAction=function(e,t){var n=this.editor,i=a["default"](n.selection.getSelectionContainerElem()),o=a["default"](i.elems[0]).parentUntilEditor("UL",n),r=a["default"](i.elems[0]).parentUntilEditor("OL",n);if(!o&&!r){var s=this.createTableHtml(e,t);n.cmd["do"]("insertHTML",s)}},e.prototype.createTableHtml=function(e,t){for(var n="",i="",o=0;o":"";n=n+""+i+""}var a=''+n+"
      "+s.EMPTY_P;return a},e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(393)),a=n(400);function u(e){s["default"](e),a.bindEventKeyboardEvent(e),a.bindClickEvent(e)}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(39)),u=r.__importDefault(n(394)),l=r.__importDefault(n(399)),c=n(7);function d(e){var t;function n(n){var i=new l["default"](e),o="menus.panelMenus.table.",r=function(t,n){return void 0===n&&(n=o),e.i18next.t(n+t)},d=[{$elem:s["default"](""+r("删除表格")+""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("insertHTML",c.EMPTY_P),!0}},{$elem:s["default"](""+r("添加行")+""),onClick:function(e,t){var n=h(e);if(n)return!0;var o=s["default"](e.selection.getSelectionStartElem()),r=i.getRowNode(o.elems[0]);if(!r)return!0;var a=Number(i.getCurrentRowIndex(t.elems[0],r)),l=i.getTableHtml(t.elems[0]),c=i.getTableHtml(u["default"].ProcessingRow(s["default"](l),a).elems[0]);return c=p(t,c),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("insertHTML",c),!0}},{$elem:s["default"](""+r("删除行")+""),onClick:function(e,t){var n=h(e);if(n)return!0;var o=s["default"](e.selection.getSelectionStartElem()),r=i.getRowNode(o.elems[0]);if(!r)return!0;var a=Number(i.getCurrentRowIndex(t.elems[0],r)),l=i.getTableHtml(t.elems[0]),d=u["default"].DeleteRow(s["default"](l),a).elems[0].children[0].children.length,A="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),A=0===d?c.EMPTY_P:i.getTableHtml(u["default"].DeleteRow(s["default"](l),a).elems[0]),A=p(t,A),e.cmd["do"]("insertHTML",A),!0}},{$elem:s["default"](""+r("添加列")+""),onClick:function(e,t){var n=h(e);if(n)return!0;var o=s["default"](e.selection.getSelectionStartElem()),r=i.getCurrentColIndex(o.elems[0]),a=i.getTableHtml(t.elems[0]),l=i.getTableHtml(u["default"].ProcessingCol(s["default"](a),r).elems[0]);return l=p(t,l),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("insertHTML",l),!0}},{$elem:s["default"](""+r("删除列")+""),onClick:function(e,t){var n=h(e);if(n)return!0;var o=s["default"](e.selection.getSelectionStartElem()),r=i.getCurrentColIndex(o.elems[0]),a=i.getTableHtml(t.elems[0]),l=u["default"].DeleteCol(s["default"](a),r),d=l.elems[0].children[0].children[0].children.length,A="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),A=0===d?c.EMPTY_P:i.getTableHtml(l.elems[0]),A=p(t,A),e.cmd["do"]("insertHTML",A),!0}},{$elem:s["default"](""+r("设置表头")+""),onClick:function(e,t){var n=h(e);if(n)return!0;var o=s["default"](e.selection.getSelectionStartElem()),r=i.getRowNode(o.elems[0]);if(!r)return!0;var a=Number(i.getCurrentRowIndex(t.elems[0],r));0!==a&&(a=0);var l=i.getTableHtml(t.elems[0]),c=i.getTableHtml(u["default"].setTheHeader(s["default"](l),a,"th").elems[0]);return c=p(t,c),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("insertHTML",c),!0}},{$elem:s["default"](""+r("取消表头")+""),onClick:function(e,t){var n=s["default"](e.selection.getSelectionStartElem()),o=i.getRowNode(n.elems[0]);if(!o)return!0;var r=Number(i.getCurrentRowIndex(t.elems[0],o));0!==r&&(r=0);var a=i.getTableHtml(t.elems[0]),l=i.getTableHtml(u["default"].setTheHeader(s["default"](a),r,"td").elems[0]);return l=p(t,l),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("insertHTML",l),!0}}];t=new a["default"](e,n,d),t.create()}function i(){t&&(t.remove(),t=null)}return{showTableTooltip:n,hideTableTooltip:i}}function h(e){var t=e.selection.getSelectionStartElem(),n=e.selection.getSelectionEndElem();return(null===t||void 0===t?void 0:t.elems[0])!==(null===n||void 0===n?void 0:n.elems[0])}function A(e){var t=d(e),n=t.showTableTooltip,i=t.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}function p(e,t){var n=e.elems[0].nextSibling;return n&&"
      "!==n.innerHTML||(t+=""+c.EMPTY_P),t}t["default"]=A},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(45)),s=i(n(91)),a=i(n(4)),u=i(n(138));(0,o["default"])(t,"__esModule",{value:!0});var l=n(2),c=l.__importDefault(n(3));function d(e,t){for(var n=m(e),i=(0,r["default"])(Array.prototype).apply(n.children),o=i[0].children.length,a=document.createElement("tr"),u=0;u1?arguments[1]:void 0,v=void 0!==m,_=l(p),y=0;if(v&&(m=i(m,g>2?arguments[2]:void 0,2)),void 0==_||f==Array&&s(_))for(t=a(p.length),n=new f(t);t>y;y++)A=v?m(p[y],y):p[y],u(n,y,A);else for(d=_.call(p),h=d.next,n=new f;!(c=h.call(d)).done;y++)A=v?r(d,m,[c.value,y],!0):c.value,u(n,y,A);return n.length=y,n}},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(138));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(3)),l=function(){function e(e){this.editor=e}return e.prototype.getRowNode=function(e){var t,n=u["default"](e).elems[0];return n.parentNode?(n=null===(t=u["default"](n).parentUntil("TR",n))||void 0===t?void 0:t.elems[0],n):n},e.prototype.getCurrentRowIndex=function(e,t){var n,i=0,o=e.children[0];return"COLGROUP"===o.nodeName&&(o=e.children[e.children.length-1]),(0,r["default"])(n=(0,s["default"])(o.children)).call(n,(function(e,n){e===t&&(i=n)})),i},e.prototype.getCurrentColIndex=function(e){var t,n,i=0,o="TD"===u["default"](e).getNodeName()||"TH"===u["default"](e).getNodeName()?e:null===(n=u["default"](e).parentUntil("TD",e))||void 0===n?void 0:n.elems[0],a=u["default"](o).parent();return(0,r["default"])(t=(0,s["default"])(a.elems[0].children)).call(t,(function(e,t){e===o&&(i=t)})),i},e.prototype.getTableHtml=function(e){var t=''+u["default"](e).html()+"
      ";return t},e}();t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.bindEventKeyboardEvent=t.bindClickEvent=void 0;var r=n(2),s=r.__importDefault(n(3));function a(e){if(!e.length)return!1;var t=e.elems[0];return"P"===t.nodeName&&"
      "===t.innerHTML}function u(e){function t(t,n){if(n.detail>=3){var i=window.getSelection();if(i){var o=i.focusNode,r=i.anchorNode,a=s["default"](null===r||void 0===r?void 0:r.parentElement);if(!t.isContain(s["default"](o))){var u="TD"===a.elems[0].tagName?a:a.parentUntilEditor("td",e);if(u){var l=e.selection.getRange();null===l||void 0===l||l.setEnd(u.elems[0],u.elems[0].childNodes.length),e.selection.restoreSelection()}}}}}e.txt.eventHooks.tableClickEvents.push(t)}function l(e){var t=e.txt,n=e.selection,i=t.eventHooks.keydownEvents;i.push((function(t){e.selection.saveRange();var i=n.getSelectionContainerElem();if(i){var o=i.getNodeTop(e),r=o.length&&o.prev().length?o.prev():null;if(r&&"TABLE"===r.getNodeName()&&n.isSelectionEmpty()&&0===n.getCursorPos()&&8===t.keyCode){var s=o.next(),u=!!s.length;u&&a(o)&&(o.remove(),e.selection.setRangeToElem(s.elems[0])),t.preventDefault()}}}))}t.bindClickEvent=u,t.bindEventKeyboardEvent=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26));(0,o["default"])(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var s=n(2),a=s.__importDefault(n(38)),u=s.__importDefault(n(3)),l=n(6),c=s.__importDefault(n(402)),d=s.__importDefault(n(139)),h=s.__importDefault(n(33)),A=s.__importDefault(n(403));function p(e,t){return t?(t=i(t),t=n(t),t=l.replaceSpecialSymbol(t),t):t;function n(e){var t=e.match(//g);return null===t||(0,r["default"])(t).call(t,(function(t){e=e.replace(t,t.replace(/<\/code>/g,"\n").replace(/
      /g,""))})),e}function i(e){var t,n=e.match(//gm);if(!n||!n.length)return e;for(var o=(0,r["default"])(t=l.deepClone(n)).call(t,(function(e){return e=e.replace(/]+>/,""),e.replace(/<\/span>/,"")})),s=0;s');return n=e.call(this,i,t)||this,A["default"](t),n}return s.__extends(t,e),t.prototype.insertLineCode=function(e){var t=this.editor,n=u["default"](""+e+"");t.cmd["do"]("insertElem",n),t.selection.createRangeByElem(n,!1),t.selection.restoreSelection()},t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},t.prototype.createPanel=function(e,t){var n=c["default"](this.editor,e,t),i=new h["default"](this,n);i.create()},t.prototype.tryChangeActive=function(){var e=this.editor;d["default"](e)?this.active():this.unActive()},t}(a["default"]);t["default"]=f},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(26));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=n(6),u=s.__importDefault(n(3)),l=s.__importDefault(n(139)),c=n(7);function d(e,t,n){var i,o=a.getRandom("input-iframe"),s=a.getRandom("select"),d=a.getRandom("btn-ok");function h(t,n){var i,o=l["default"](e);o&&A();var r=null===(i=e.selection.getSelectionStartElem())||void 0===i?void 0:i.elems[0].innerHTML;r&&e.cmd["do"]("insertHTML",c.EMPTY_P);var s=n.replace(//g,">");e.highlight&&(s=e.highlight.highlightAuto(s).value),e.cmd["do"]("insertHTML",'
      '+s+"
      ");var a=e.selection.getSelectionStartElem(),d=null===a||void 0===a?void 0:a.getNodeTop(e);0===(null===d||void 0===d?void 0:d.getNextSibling().elems.length)&&u["default"](c.EMPTY_P).insertAfter(d)}function A(){if(l["default"](e)){var t=e.selection.getSelectionStartElem(),n=null===t||void 0===t?void 0:t.getNodeTop(e);n&&(e.selection.createRangeByElem(n),e.selection.restoreSelection(),n)}}var p=function(t){return e.i18next.t(t)},f={width:500,height:0,tabs:[{title:p("menus.panelMenus.code.插入代码"),tpl:'
      \n \n \n
      \n \n
      \n
      ",events:[{selector:"#"+d,type:"click",fn:function(){var t=document.getElementById(o),n=u["default"]("#"+s),i=n.val(),r=t.value;if(r)return!l["default"](e)&&(h(i,r),!0)}}]}]};return f}t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(404)),a=r.__importDefault(n(405));function u(e){s["default"](e),a["default"](e)}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(39));function u(e){var t;function n(n){var i="menus.panelMenus.code.",o=function(t,n){return void 0===n&&(n=i),e.i18next.t(n+t)},r=[{$elem:s["default"](""+o("删除代码")+""),onClick:function(e,t){return t.remove(),!0}}];t=new a["default"](e,n,r),t.create()}function i(){t&&(t.remove(),t=null)}return{showCodeTooltip:n,hideCodeTooltip:i}}function l(e){var t=u(e),n=t.showCodeTooltip,i=t.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}t.createShowHideFn=u,t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=n(7),a=r.__importDefault(n(3));function u(e){var t=e.$textElem,n=e.selection,i=e.txt,o=i.eventHooks.keydownEvents;o.push((function(e){var i;if(40===e.keyCode){var o=n.getSelectionContainerElem(),r=null===(i=t.children())||void 0===i?void 0:i.last();if("XMP"===(null===o||void 0===o?void 0:o.elems[0].tagName)&&"PRE"===(null===r||void 0===r?void 0:r.elems[0].tagName)){var u=a["default"](s.EMPTY_P);t.append(u)}}})),o.push((function(i){e.selection.saveRange();var o=n.getSelectionContainerElem();if(o){var r=o.getNodeTop(e),u=null===r||void 0===r?void 0:r.prev(),l=null===r||void 0===r?void 0:r.getNextSibling();if(u.length&&"PRE"===(null===u||void 0===u?void 0:u.getNodeName())&&0===l.length&&0===n.getCursorPos()&&8===i.keyCode){var c=a["default"](s.EMPTY_P);t.append(c)}}}))}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(23)),a=r.__importDefault(n(3)),u=r.__importDefault(n(407)),l=n(6),c=n(7),d=function(e){function t(t){var n=this,i=a["default"]('
      ');return n=e.call(this,i,t)||this,u["default"](t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getRange(),n=e.selection.getSelectionContainerElem();if(null===n||void 0===n?void 0:n.length){var i=a["default"](n.elems[0]),o=i.parentUntil("TABLE",n.elems[0]),r=i.children();"CODE"!==i.getNodeName()&&(o&&"TABLE"===a["default"](o.elems[0]).getNodeName()||r&&0!==r.length&&"IMG"===a["default"](r.elems[0]).getNodeName()&&!(null===t||void 0===t?void 0:t.collapsed)||this.createSplitLine())}},t.prototype.createSplitLine=function(){var e="
      "+c.EMPTY_P;l.UA.isFirefox&&(e="

      "),this.editor.cmd["do"]("insertHTML",e)},t.prototype.tryChangeActive=function(){},t}(s["default"]);t["default"]=d},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(408));function a(e){s["default"](e)}t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=r.__importDefault(n(39));function u(e){var t;function n(n){var i=[{$elem:s["default"](""+e.i18next.t("menus.panelMenus.删除")+""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd["do"]("delete"),!0}}];t=new a["default"](e,n,i),t.create()}function i(){t&&(t.remove(),t=null)}return{showSplitLineTooltip:n,hideSplitLineTooltip:i}}function l(e){var t=u(e),n=t.showSplitLineTooltip,i=t.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(n),e.txt.eventHooks.clickEvents.push(i),e.txt.eventHooks.keyupEvents.push(i),e.txt.eventHooks.toolbarClickEvents.push(i),e.txt.eventHooks.menuClickEvents.push(i),e.txt.eventHooks.textScrollEvents.push(i)}t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=s.__importDefault(n(23)),l=n(98),c=s.__importDefault(n(415)),d=s.__importDefault(n(140)),h=function(e){function t(t){var n=this,i=a["default"]('
      \n \n
      ');return n=e.call(this,i,t)||this,c["default"](t),n}return s.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;l.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},t.prototype.tryChangeActive=function(){l.isAllTodo(this.editor)?this.active():this.unActive()},t.prototype.setTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,r["default"])(t).call(t,(function(t){var n,i=null===t||void 0===t?void 0:t.getNodeName();if("P"===i){var o=d["default"](t),r=o.getTodo(),s=null===(n=r.children())||void 0===n?void 0:n.getNode();r.insertAfter(t),e.selection.moveCursor(s),t.remove()}})),this.tryChangeActive()},t.prototype.cancelTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,r["default"])(t).call(t,(function(t){var n,i,o,r=null===(i=null===(n=t.childNodes())||void 0===n?void 0:n.childNodes())||void 0===i?void 0:i.clone(!0),s=a["default"]("

      ");s.append(r),s.insertAfter(t),null===(o=s.childNodes())||void 0===o||o.get(0).remove(),e.selection.moveCursor(s.getNode()),t.remove()}))},t}(u["default"]);t["default"]=h},function(e,t,n){e.exports=n(411)},function(e,t,n){var i=n(412);e.exports=i},function(e,t,n){var i=n(413),o=Array.prototype;e.exports=function(e){var t=e.every;return e===o||e instanceof Array&&t===o.every?i:t}},function(e,t,n){n(414);var i=n(15);e.exports=i("Array").every},function(e,t,n){"use strict";var i=n(5),o=n(32).every,r=n(67),s=n(22),a=r("every"),u=s("every");i({target:"Array",proto:!0,forced:!a||!u},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3)),u=n(98),l=s.__importDefault(n(140)),c=n(98),d=n(7);function h(e){function t(t){var n,i;if(u.isAllTodo(e)){t.preventDefault();var o=e.selection,s=o.getSelectionRangeTopNodes()[0],h=null===(n=s.childNodes())||void 0===n?void 0:n.get(0),A=null===(i=window.getSelection())||void 0===i?void 0:i.anchorNode,p=o.getRange();if(!(null===p||void 0===p?void 0:p.collapsed)){var f=null===p||void 0===p?void 0:p.commonAncestorContainer.childNodes,g=null===p||void 0===p?void 0:p.startContainer,m=null===p||void 0===p?void 0:p.endContainer,v=null===p||void 0===p?void 0:p.startOffset,_=null===p||void 0===p?void 0:p.endOffset,y=0,w=0,b=[];null===f||void 0===f||(0,r["default"])(f).call(f,(function(e,t){e.contains(g)&&(y=t),e.contains(m)&&(w=t)})),w-y>1&&(null===f||void 0===f||(0,r["default"])(f).call(f,(function(e,t){t<=y||t>=w||b.push(e)})),(0,r["default"])(b).call(b,(function(e){e.remove()}))),c.dealTextNode(g,v),c.dealTextNode(m,_,!1),e.selection.moveCursor(m,0)}if(""===s.text()){var C=a["default"](d.EMPTY_P);return C.insertAfter(s),o.moveCursor(C.getNode()),void s.remove()}var S=o.getCursorPos(),B=u.getCursorNextNode(null===h||void 0===h?void 0:h.getNode(),A,S),E=l["default"](a["default"](B)),x=E.getInputContainer(),L=x.parent().getNode(),D=E.getTodo(),N=x.getNode().nextSibling;if(""===(null===h||void 0===h?void 0:h.text())&&(null===h||void 0===h||h.append(a["default"]("
      "))),D.insertAfter(s),N&&""!==(null===N||void 0===N?void 0:N.textContent))o.moveCursor(L);else{if("BR"!==(null===N||void 0===N?void 0:N.nodeName)){var k=a["default"]("
      ");k.insertAfter(x)}o.moveCursor(L,1)}}}function n(t){var n,i;if(u.isAllTodo(e)){var o,s=e.selection,l=s.getSelectionRangeTopNodes()[0],c=null===(n=l.childNodes())||void 0===n?void 0:n.getNode(),h=a["default"]("

      "),A=h.getNode(),p=null===(i=window.getSelection())||void 0===i?void 0:i.anchorNode,f=s.getCursorPos(),g=p.previousSibling;if(""===l.text()){t.preventDefault();var m=a["default"](d.EMPTY_P);return m.insertAfter(l),l.remove(),void s.moveCursor(m.getNode(),0)}if("SPAN"===(null===g||void 0===g?void 0:g.nodeName)&&"INPUT"===g.childNodes[0].nodeName&&0===f)t.preventDefault(),null===c||void 0===c||(0,r["default"])(o=c.childNodes).call(o,(function(e,t){0!==t&&A.appendChild(e.cloneNode(!0))})),h.insertAfter(l),l.remove()}}function i(){var t=e.selection,n=t.getSelectionRangeTopNodes()[0];n&&c.isTodo(n)&&""===n.text()&&(a["default"](d.EMPTY_P).insertAfter(n),n.remove())}function o(e){e&&e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&(e.target.checked?e.target.setAttribute("checked","true"):e.target.removeAttribute("checked"))}e.txt.eventHooks.enterDownEvents.push(t),e.txt.eventHooks.deleteUpEvents.push(i),e.txt.eventHooks.deleteDownEvents.push(n),e.txt.eventHooks.clickEvents.push(o)}t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.selectorValidator=void 0;var r=n(2),s=r.__importDefault(n(3)),a=n(6),u=n(7),l=r.__importDefault(n(130)),c={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function d(e){var t,n,i,o=e.toolbarSelector,r=s["default"](o),d=e.textSelector,h=e.config,A=h.height,p=e.i18next,f=s["default"]("
      "),g=s["default"]("
      "),m=null;null==d?(n=r.children(),r.append(f).append(g),f.css("background-color",c.toolbarBgColor).css("border",c.border).css("border-bottom",c.toolbarBottomBorder),g.css("border",c.border).css("border-top","none").css("height",A+"px")):(r.append(f),m=s["default"](d).children(),s["default"](d).append(g),n=g.children()),t=s["default"]("
      "),t.attr("contenteditable","true").css("width","100%").css("height","100%");var v=e.config.placeholder;i=v!==l["default"].placeholder?s["default"]("
      "+v+"
      "):s["default"]("
      "+p.t(v)+"
      "),i.addClass("placeholder"),n&&n.length?(t.append(n),i.hide()):t.append(s["default"](u.EMPTY_P)),m&&m.length&&(t.append(m),i.hide()),g.append(t),g.append(i),f.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),g.addClass("w-e-text-container"),g.css("z-index",e.zIndex.get()),t.addClass("w-e-text");var _=a.getRandom("toolbar-elem");f.attr("id",_);var y=a.getRandom("text-elem");t.attr("id",y);var w=g.getBoundingClientRect().height,b=t.getBoundingClientRect().height;w!==b&&t.css("min-height",w+"px"),e.$toolbarElem=f,e.$textContainerElem=g,e.$textElem=t,e.toolbarElemId=_,e.textElemId=y}function h(e){var t="data-we-id",n=/^wangEditor-\d+$/,i=e.textSelector,o=e.toolbarSelector,r={bar:s["default"]("
      "),text:s["default"]("
      ")};if(null==o)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(r.bar=s["default"](o),!r.bar.elems.length)throw new Error("无效的节点选择器:"+o);if(n.test(r.bar.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(i){if(r.text=s["default"](i),!r.text.elems.length)throw new Error("无效的节点选择器:"+i);if(n.test(r.text.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}r.bar.attr(t,e.id),r.text.attr(t,e.id),e.beforeDestroy((function(){r.bar.removeAttr(t),r.text.removeAttr(t)}))}t["default"]=d,t.selectorValidator=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(3)),a=n(7);function u(e,t){var n=e.$textElem,i=n.children();if(!i||!i.length)return n.append(s["default"](a.EMPTY_P)),void u(e);var o=i.last();if(t){var r=o.html().toLowerCase(),l=o.getNodeName();if("
      "!==r&&"
      "!==r||"P"!==l)return n.append(s["default"](a.EMPTY_P)),void u(e)}e.selection.createRangeByElem(o,!1,!0),e.config.focus?e.selection.restoreSelection():e.selection.clearWindowSelectionRange()}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3));function u(e){l(e),c(e),d(e)}function l(e){e.txt.eventHooks.changeEvents.push((function(){var t=e.config.onchange;if(t){var n=e.txt.html()||"";e.isFocus=!0,t(n)}e.txt.togglePlaceholder()}))}function c(e){function t(t){var n=t.target,i=a["default"](n),o=e.$textElem,r=e.$toolbarElem,s=o.isContain(i),u=r.isContain(i),l=r.elems[0]==t.target;if(s)e.isFocus||A(e),e.isFocus=!0;else{if(u&&!l||!e.isFocus)return;h(e),e.isFocus=!1}}e.isFocus=!1,document.activeElement===e.$textElem.elems[0]&&e.config.focus&&(A(e),e.isFocus=!0),a["default"](document).on("click",t),e.beforeDestroy((function(){a["default"](document).off("click",t)}))}function d(e){e.$textElem.on("compositionstart",(function(){e.isComposing=!0,e.txt.togglePlaceholder()})).on("compositionend",(function(){e.isComposing=!1,e.txt.togglePlaceholder()}))}function h(e){var t,n=e.config,i=n.onblur,o=e.txt.html()||"";(0,r["default"])(t=e.txt.eventHooks.onBlurEvents).call(t,(function(e){return e()})),i(o)}function A(e){var t=e.config,n=t.onfocus,i=e.txt.html()||"";n(i)}t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));function r(e){var t=e.config,n=t.lang,i=t.languages;if(null==e.i18next)e.i18next={t:function(e){var t=e.split(".");return t[t.length-1]}};else try{e.i18next.init({ns:"wangEditor",lng:n,defaultNS:"wangEditor",resources:i})}catch(o){throw new Error("i18next:"+o)}}(0,o["default"])(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29));(0,o["default"])(t,"__esModule",{value:!0}),t.setUnFullScreen=t.setFullScreen=void 0;var s=n(2),a=s.__importDefault(n(3));n(421);var u="w-e-icon-fullscreen",l="w-e-icon-fullscreen_exit",c="w-e-full-screen-editor";t.setFullScreen=function(e){var t=a["default"](e.toolbarSelector),n=e.$textContainerElem,i=e.$toolbarElem,o=(0,r["default"])(i).call(i,"i."+u),s=e.config;o.removeClass(u),o.addClass(l),t.addClass(c),t.css("z-index",s.zIndexFullScreen);var d=i.getBoundingClientRect();n.css("height","calc(100% - "+d.height+"px)")},t.setUnFullScreen=function(e){var t=a["default"](e.toolbarSelector),n=e.$textContainerElem,i=e.$toolbarElem,o=(0,r["default"])(i).call(i,"i."+l),s=e.config;o.removeClass(l),o.addClass(u),t.removeClass(c),t.css("z-index","auto"),n.css("height",s.height+"px")};var d=function(e){if(!e.textSelector&&e.config.showFullScreen){var n=e.$toolbarElem,i=a["default"]('
      \n \n
      ');i.on("click",(function(n){var o,s=(0,r["default"])(o=a["default"](n.currentTarget)).call(o,"i");s.hasClass(u)?(i.attr("data-title","取消全屏"),t.setFullScreen(e)):(i.attr("data-title","全屏"),t.setUnFullScreen(e))})),n.append(i)}};t["default"]=d},function(e,t,n){var i=n(20),o=n(422);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,".w-e-full-screen-editor {\n position: fixed;\n width: 100%!important;\n height: 100%!important;\n left: 0;\n top: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29));(0,o["default"])(t,"__esModule",{value:!0});var s=function(e,t){var n,i=e.isEnable?e.$textElem:(0,r["default"])(n=e.$textContainerElem).call(n,".w-e-content-mantle"),o=(0,r["default"])(i).call(i,"[id='"+t+"']"),s=o.getOffsetData().top;i.scrollTop(s)};t["default"]=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(129)),a={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},u=function(){function e(){this.tier=a,this.baseZIndex=s["default"].zIndex}return e.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},e.prototype.init=function(e){this.baseZIndex==s["default"].zIndex&&(this.baseZIndex=e.config.zIndex)},e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(70)),s=i(n(4));(0,o["default"])(t,"__esModule",{value:!0});var a=n(2),u=a.__importDefault(n(426)),l=n(6),c=n(7);function d(e,t){return(0,r["default"])(e).call(e,(function(e){var n=e.type,i=e.target,o=e.attributeName;return"attributes"!=n||"attributes"==n&&("contenteditable"==o||i!=t)}))}var h=function(e){function t(t){var n=e.call(this,(function(e,i){var o;if(e=d(e,i.target),(o=n.data).push.apply(o,e),t.isCompatibleMode)n.asyncSave();else if(!t.isComposing)return n.asyncSave()}))||this;return n.editor=t,n.data=[],n.asyncSave=c.EMPTY_FN,n}return a.__extends(t,e),t.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},t.prototype.emit=function(){var e;(0,s["default"])(e=this.editor.txt.eventHooks.changeEvents).call(e,(function(e){return e()}))},t.prototype.observe=function(){var t=this;e.prototype.observe.call(this,this.editor.$textElem.elems[0]);var n=this.editor.config.onchangeTimeout;this.asyncSave=l.debounce((function(){t.save()}),n),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",(function(){t.asyncSave()}))},t}(u["default"]);t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(t){e(t,n)},this.observer=new MutationObserver(this.callback),t&&(this.options=t)}return(0,o["default"])(e.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),e.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},e.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},e.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},e}();t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(428)),a=r.__importDefault(n(435)),u=r.__importDefault(n(436)),l=function(){function e(e){this.editor=e,this.content=new s["default"](e),this.scroll=new a["default"](e),this.range=new u["default"](e)}return(0,o["default"])(e.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),e.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},e.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},e.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e}();t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(429)),a=r.__importDefault(n(433)),u=function(){function e(e){this.editor=e}return e.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new a["default"](this.editor):this.cache=new s["default"](this.editor),this.cache.observe()},e.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},e.prototype.revoke=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.revoke()},e.prototype.restore=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.restore()},e}();t["default"]=u},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(99)),a=r.__importDefault(n(431)),u=n(432),l=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n}return r.__extends(t,e),t.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.compile=function(e){return this.save(a["default"](e)),this},t.prototype.revoke=function(){return e.prototype.revoke.call(this,(function(e){u.revoke(e)}))},t.prototype.restore=function(){return e.prototype.restore.call(this,(function(e){u.restore(e)}))},t}(s["default"]);t["default"]=l},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0}),t.CeilStack=void 0;var r=function(){function e(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,e=Math.abs(e),e&&(this.max=e)}return e.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,o["default"])(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},e.prototype.outstack=function(){return this.data.shift()},e.prototype.clear=function(){return this.data.length=0,this},e}();t.CeilStack=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(27));(0,o["default"])(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0;var a=n(6);function u(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function l(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function c(e){var t={};return e.addedNodes.length&&(t.add=a.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=a.toArray(e.removedNodes)),t}function d(e){var t;return t=e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target},t}t.compileType=u,t.compileValue=l,t.complieNodes=c,t.compliePosition=d;var h=["UL","OL","H1","H2","H3","H4","H5","H6"];function A(e){var t=[],n=!1,i=[];return(0,r["default"])(e).call(e,(function(e,o){var r={type:u(e.type),target:e.target,attr:e.attributeName||"",value:l(e)||"",oldValue:e.oldValue||"",nodes:c(e),position:d(e)};if(t.push(r),a.UA.isFirefox){if(n&&e.addedNodes.length&&1==e.addedNodes[0].nodeType){var A=e.addedNodes[0],f={type:"node",target:A,attr:"",value:"",oldValue:"",nodes:{add:[n]},position:{type:"parent",target:A}};-1!=(0,s["default"])(h).call(h,A.nodeName)?(f.nodes.add=a.toArray(A.childNodes),t.push(f)):3==n.nodeType?(p(A,i)&&(f.nodes.add=a.toArray(A.childNodes)),t.push(f)):-1==(0,s["default"])(h).call(h,e.target.nodeName)&&p(A,i)&&(f.nodes.add=a.toArray(A.childNodes),t.push(f))}"node"==r.type&&1==e.removedNodes.length?(n=e.removedNodes[0],i.push(n)):(n=!1,i.length=0)}})),t}function p(e,t){for(var n=0,i=t.length-1;i>0;i--){if(!e.contains(t[i]))break;n++}return n}t["default"]=A},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(4)),s=i(n(94));function a(e,t){var n=e.position.target;switch(e.position.type){case"before":n.nextSibling?(n=n.nextSibling,(0,r["default"])(t).call(t,(function(t){e.target.insertBefore(t,n)}))):(0,r["default"])(t).call(t,(function(t){e.target.appendChild(t)}));break;case"after":(0,r["default"])(t).call(t,(function(t){e.target.insertBefore(t,n)}));break;default:(0,r["default"])(t).call(t,(function(e){n.appendChild(e)}));break}}function u(e){for(var t=0,n=(0,s["default"])(e.nodes);t-1;t--){var n=e[t];d[n.type](n)}}function A(e){for(var t=0,n=(0,s["default"])(e.nodes);tthis.max)this.data.shift();return this.point=this.size-1,this},e.prototype.current=function(){return this.data[this.point]},e.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},e.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},e}();t.TailChain=s},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(99)),a=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.last=0,n.target=t.$textElem.elems[0],n}return r.__extends(t,e),t.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",(function(){e.last=e.target.scrollTop})),this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.save=function(){return e.prototype.save.call(this,[this.last,this.target.scrollTop]),this},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,(function(e){t.target.scrollTop=e[0]}))},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,(function(e){t.target.scrollTop=e[1]}))},t}(s["default"]);t["default"]=a},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=n(2),s=r.__importDefault(n(99)),a=r.__importDefault(n(3)),u=n(6);function l(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}var c=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.lastRange=l(document.createRange()),n.root=t.$textElem.elems[0],n.updateLastRange=u.debounce((function(){n.lastRange=l(n.rangeHandle)}),t.config.onchangeTimeout),n}return r.__extends(t,e),(0,o["default"])(t.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),t.prototype.observe=function(){var e=this;function t(){var t=e.rangeHandle;(e.root===t.commonAncestorContainer||e.root.contains(t.commonAncestorContainer))&&(e.editor.isComposing||e.updateLastRange())}function n(t){"Backspace"!=t.key&&"Delete"!=t.key||e.updateLastRange()}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),a["default"](document).on("selectionchange",t),this.editor.beforeDestroy((function(){a["default"](document).off("selectionchange",t)})),e.editor.$textElem.on("keydown",n)},t.prototype.save=function(){var t=l(this.rangeHandle);return e.prototype.save.call(this,[this.lastRange,t]),this.lastRange=t,this},t.prototype.set=function(e){try{if(e){var t=this.rangeHandle;return t.setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}}catch(n){return!1}return!1},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,(function(e){t.set(e[0])}))},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,(function(e){t.set(e[1])}))},t}(s["default"]);t["default"]=c},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(29));(0,o["default"])(t,"__esModule",{value:!0});var s=n(2),a=s.__importDefault(n(3));function u(e){var t,n,i=!1;function o(){if(!i){e.$textElem.hide();var o=e.zIndex.get("textContainer"),r=e.txt.html();t=a["default"]('
      \n
      '+r+"
      \n
      "),e.$textContainerElem.append(t);var s=e.zIndex.get("menu");n=a["default"]('
      '),e.$toolbarElem.append(n),i=!0,e.isEnable=!1}}function s(){i&&(t.remove(),n.remove(),e.$textElem.show(),i=!1,e.isEnable=!0)}return e.txt.eventHooks.changeEvents.push((function(){i&&(0,r["default"])(t).call(t,".w-e-content-preview").html(e.$textElem.html())})),{disable:o,enable:s}}n(438),t["default"]=u},function(e,t,n){var i=n(20),o=n(439);o=o.__esModule?o.default:o,"string"===typeof o&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){var i=n(21);t=i(!1),t.push([e.i,".w-e-content-mantle {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n width: 100%;\n min-height: 100%;\n padding: 0 10px;\n line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n box-shadow: none;\n}\n.w-e-menue-mantle {\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0});var r=function(){function e(e){var t=this;this.editor=e;var n=function(){var n=document.activeElement;n===e.$textElem.elems[0]&&t.emit()};window.document.addEventListener("selectionchange",n),this.editor.beforeDestroy((function(){window.document.removeEventListener("selectionchange",n)}))}return e.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;if(t){var n=this.editor.selection;n.saveRange(),n.isSelectionEmpty()||t({text:n.getSelectionText(),html:null===(e=n.getSelectionContainerElem())||void 0===e?void 0:e.elems[0].innerHTML,selection:n})}},e}();t["default"]=r},function(e,t,n){"use strict";var i=n(0),o=i(n(1)),r=i(n(128)),s=i(n(94)),a=i(n(4));(0,o["default"])(t,"__esModule",{value:!0}),t.registerPlugin=void 0;var u=n(2),l=u.__importDefault(n(87)),c=n(6);function d(e,t,n){if(!e)throw new TypeError("name is not define");if(!t)throw new TypeError("options is not define");if(!t.intention)throw new TypeError("options.intention is not define");if(t.intention&&"function"!==typeof t.intention)throw new TypeError("options.intention is not function");n[e]&&console.warn("plugin "+e+" 已存在,已覆盖。"),n[e]=t}function h(e){var t=(0,r["default"])({},c.deepClone(l["default"].globalPluginsFunctionList),c.deepClone(e.pluginsFunctionList)),n=(0,s["default"])(t);(0,a["default"])(n).call(n,(function(t){var n=t[0],i=t[1];console.info("plugin "+n+" initializing");var o=i.intention,r=i.config;o(e,r),console.info("plugin "+n+" initialization complete")}))}t.registerPlugin=d,t["default"]=h},function(e,t,n){"use strict";var i=n(0),o=i(n(1));(0,o["default"])(t,"__esModule",{value:!0})}])["default"]}))},"722f9":function(e,t,n){},"725e":function(e,t,n){},"733c":function(e,t,n){var i=n("63b6"),o=n("a159"),r=n("79aa"),s=n("e4ae"),a=n("f772"),u=n("294c"),l=n("c189"),c=(n("e53d").Reflect||{}).construct,d=u((function(){function e(){}return!(c((function(){}),[],e)instanceof e)})),h=!u((function(){c((function(){}))}));i(i.S+i.F*(d||h),"Reflect",{construct:function(e,t){r(e),s(t);var n=arguments.length<3?e:r(arguments[2]);if(h&&!d)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(l.apply(e,i))}var u=n.prototype,A=o(a(u)?u:Object.prototype),p=Function.apply.call(e,A,t);return a(p)?p:A}})},7457:function(e,t,n){},"782d":function(e,t,n){},"7a2c":function(e,t,n){},"7a99":function(e,t,n){},"7aad":function(e,t,n){},"7b59":function(e,t,n){},8478:function(e,t,n){},8899:function(e,t,n){},"8bf4":function(e,t,n){},"8ea9":function(e,t,n){"use strict";var i={};function o(e,t){var n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var i=n[0];return"undefined"!==typeof t[i]?t[i]:e})),n}function r(e,t){for(var n=[],i=2;i/?";function u(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,i=a;n=0||(t+="\\"+o)}return t+="\\s]+)",new RegExp(t,"g")}var l=u();function c(e){var t=l;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function d(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1;t.lastIndex=s;while(o=t.exec(n)){var a=o.index||0;if(a<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+a,endColumn:i+1+t.lastIndex}}return null}function h(e,t,n,i){var o,r=e-1-i;t.lastIndex=0;while(o=t.exec(n)){var s=o.index||0;if(s>r)return null;if(t.lastIndex>=r)return{word:o[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex}}return null}function A(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=o[0].indexOf(" ")>=0?h(e,t,n,i):d(e,t,n,i);return t.lastIndex=0,r}var p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(){return f=Object.assign||function(e){for(var t,n=1,i=arguments.length;nn?n:e},t.float=function(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;var n=parseFloat(e);return isNaN(n)?t:n},t.prototype.validate=function(e){return this.validationFn(t.float(e,this.defaultValue))},t}(w),B=function(e){function t(t,n,i,o){void 0===o&&(o=void 0);var r=this;return"undefined"!==typeof o&&(o.type="string",o.default=i),r=e.call(this,t,n,i,o)||this,r}return p(t,e),t.string=function(e,t){return"string"!==typeof e?t:e},t.prototype.validate=function(e){return t.string(e,this.defaultValue)},t}(w),E=function(e){function t(t,n,i,o,r){void 0===r&&(r=void 0);var s=this;return"undefined"!==typeof r&&(r.type="string",r.enum=o,r.default=i),s=e.call(this,t,n,i,r)||this,s._allowedValues=o,s}return p(t,e),t.stringSet=function(e,t,n){return"string"!==typeof e||-1===n.indexOf(e)?t:e},t.prototype.validate=function(e){return t.stringSet(e,this.defaultValue,this._allowedValues)},t}(w),x=function(e){function t(t,n,i,o,r,s,a){void 0===a&&(a=void 0);var u=this;return"undefined"!==typeof a&&(a.type="string",a.enum=r,a.default=o),u=e.call(this,t,n,i,a)||this,u._allowedValues=r,u._convert=s,u}return p(t,e),t.prototype.validate=function(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)},t}(_);function L(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var D,N=function(e){function t(){return e.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[r("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),r("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),r("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:r("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return p(t,e),t.prototype.validate=function(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},t.prototype.compute=function(e,t,n){return 0===n?e.accessibilitySupport:n},t}(_);function k(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}function I(e){switch(e){case"line":return D.Line;case"block":return D.Block;case"underline":return D.Underline;case"line-thin":return D.LineThin;case"block-outline":return D.BlockOutline;case"underline-thin":return D.UnderlineThin}}(function(e){e[e["Line"]=1]="Line",e[e["Block"]=2]="Block",e[e["Underline"]=3]="Underline",e[e["LineThin"]=4]="LineThin",e[e["BlockOutline"]=5]="BlockOutline",e[e["UnderlineThin"]=6]="UnderlineThin"})(D||(D={}));var F=function(e){function t(){return e.call(this,100,[53,25])||this}return p(t,e),t.prototype.compute=function(e,t,n){var i="monaco-editor";return t.get(25)&&(i+=" "+t.get(25)),e.extraEditorClassName&&(i+=" "+e.extraEditorClassName),"default"===t.get(53)?i+=" mouse-default":"copy"===t.get(53)&&(i+=" mouse-copy"),t.get(81)&&(i+=" showUnused"),i},t}(y),M=function(e){function t(){return e.call(this,24,"emptySelectionClipboard",!0,{description:r("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return p(t,e),t.prototype.compute=function(e,t,n){return n&&e.emptySelectionClipboard},t}(b),O=function(e){function t(){var t=this,n={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return t=e.call(this,27,"find",n,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:n.seedSearchStringFromSelection,description:r("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:n.autoFindInSelection,enumDescriptions:[r("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),r("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),r("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:r("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:n.globalFindClipboard,description:r("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:s["e"]},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:n.addExtraSpaceOnTop,description:r("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{seedSearchStringFromSelection:b.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":E.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:b.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:b.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},t}(_),T=function(e){function t(){return e.call(this,33,"fontLigatures",t.OFF,{anyOf:[{type:"boolean",description:r("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:r("fontFeatureSettings","Explicit font-feature-settings.")}],description:r("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return p(t,e),t.prototype.validate=function(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?t.OFF:"true"===e?t.ON:e:Boolean(e)?t.ON:t.OFF},t.OFF='"liga" off, "calt" off',t.ON='"liga" on, "calt" on',t}(_),P=function(e){function t(){return e.call(this,32)||this}return p(t,e),t.prototype.compute=function(e,t,n){return e.fontInfo},t}(y),R=function(e){function t(){return e.call(this,34,"fontSize",se.fontSize,{type:"number",minimum:6,maximum:100,default:se.fontSize,description:r("fontSize","Controls the font size in pixels.")})||this}return p(t,e),t.prototype.validate=function(e){var t=S.float(e,this.defaultValue);return 0===t?se.fontSize:S.clamp(t,6,100)},t.prototype.compute=function(e,t,n){return e.fontInfo.fontSize},t}(w),U=function(e){function t(){var t=this,n={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},i={type:"string",enum:["peek","gotoAndPeek","goto"],default:n.multiple,enumDescriptions:[r("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),r("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),r("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return t=e.call(this,39,"gotoLocation",n,{"editor.gotoLocation.multiple":{deprecationMessage:r("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":f({description:r("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleTypeDefinitions":f({description:r("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleDeclarations":f({description:r("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleImplementations":f({description:r("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleReferences":f({description:r("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},i),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:n.alternativeDefinitionCommand,description:r("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:n.alternativeTypeDefinitionCommand,description:r("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:n.alternativeDeclarationCommand,description:r("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:n.alternativeImplementationCommand,description:r("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:n.alternativeReferenceCommand,description:r("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,t}return p(t,e),t.prototype.validate=function(e){var t,n,i,o,r;if("object"!==typeof e)return this.defaultValue;var s=e;return{multiple:E.stringSet(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=s.multipleDefinitions,null!==t&&void 0!==t?t:E.stringSet(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"])),multipleTypeDefinitions:(n=s.multipleTypeDefinitions,null!==n&&void 0!==n?n:E.stringSet(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"])),multipleDeclarations:(i=s.multipleDeclarations,null!==i&&void 0!==i?i:E.stringSet(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"])),multipleImplementations:(o=s.multipleImplementations,null!==o&&void 0!==o?o:E.stringSet(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"])),multipleReferences:(r=s.multipleReferences,null!==r&&void 0!==r?r:E.stringSet(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"])),alternativeDefinitionCommand:B.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:B.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:B.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:B.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:B.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},t}(_),H=function(e){function t(){var t=this,n={enabled:!0,delay:300,sticky:!0};return t=e.call(this,42,"hover",n,{"editor.hover.enabled":{type:"boolean",default:n.enabled,description:r("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:n.delay,description:r("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:n.sticky,description:r("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:b.boolean(t.enabled,this.defaultValue.enabled),delay:C.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:b.boolean(t.sticky,this.defaultValue.sticky)}},t}(_),Q=function(e){function t(){return e.call(this,103,[38,46,29,52,74,48])||this}return p(t,e),t.prototype.compute=function(e,n,i){return t.computeLayout(n,{outerWidth:e.outerWidth,outerHeight:e.outerHeight,lineHeight:e.fontInfo.lineHeight,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})},t.computeLayout=function(e,t){var n,i=0|t.outerWidth,o=0|t.outerHeight,r=0|t.lineHeight,s=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,u=t.maxDigitWidth,l=t.pixelRatio,c=e.get(38),d=0!==e.get(48).renderType,h=0|e.get(49),A=e.get(52),p=A.enabled,f=A.side,m=A.renderCharacters,v=l>=2?Math.round(2*A.scale):A.scale,_=0|A.maxColumn,y=e.get(74),w=0|y.verticalScrollbarSize,b=y.verticalHasArrows,S=0|y.arrowSize,B=0|y.horizontalScrollbarSize,E=e.get(46),x=e.get(29);if("string"===typeof E&&/^\d+(\.\d+)?ch$/.test(E)){var L=parseFloat(E.substr(0,E.length-2));n=C.clampedInt(L*a,0,0,1e3)}else n=C.clampedInt(E,0,0,1e3);x&&(n+=16);var D=0;if(d){var N=Math.max(s,h);D=Math.round(N*u)}var k=0;c&&(k=r);var I,F,M,O,T=0,P=T+k,R=P+D,U=R+n,H=i-k-D-n;if(p){var Q=v/l;I=m?1:2,M=Math.max(0,Math.floor((H-w-2)*Q/(a+Q)))+g;var V=M/Q;V>_&&(M=Math.floor(_*Q)),O=H-M,"left"===f?(F=0,T+=M,P+=M,R+=M,U+=M):F=i-M-w}else F=0,M=0,I=0,O=H;var W=Math.max(1,Math.floor((O-w-2)/a)),K=b?S:0;return{width:i,height:o,glyphMarginLeft:T,glyphMarginWidth:k,glyphMarginHeight:o,lineNumbersLeft:P,lineNumbersWidth:D,lineNumbersHeight:o,decorationsLeft:R,decorationsWidth:n,decorationsHeight:o,contentLeft:U,contentWidth:O,contentHeight:o,renderMinimap:I,minimapLeft:F,minimapWidth:M,viewportColumn:W,verticalScrollbarWidth:w,horizontalScrollbarHeight:B,overviewRuler:{top:K,width:w,height:o-2*K,right:0}}},t}(y),V=function(e){function t(){var t=this,n={enabled:!0};return t=e.call(this,45,"lightbulb",n,{"editor.lightbulb.enabled":{type:"boolean",default:n.enabled,description:r("codeActions","Enables the code action lightbulb in the editor.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:b.boolean(t.enabled,this.defaultValue.enabled)}},t}(_),W=function(e){function t(){return e.call(this,47,"lineHeight",se.lineHeight,0,150,{description:r("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return p(t,e),t.prototype.compute=function(e,t,n){return e.fontInfo.lineHeight},t}(C),K=function(e){function t(){var t=this,n={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return t=e.call(this,52,"minimap",n,{"editor.minimap.enabled":{type:"boolean",default:n.enabled,description:r("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:n.side,description:r("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:n.showSlider,description:r("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:n.scale,minimum:1,maximum:3,description:r("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:n.renderCharacters,description:r("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:n.maxColumn,description:r("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:b.boolean(t.enabled,this.defaultValue.enabled),side:E.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:E.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:b.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:C.clampedInt(t.scale,1,1,3),maxColumn:C.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}},t}(_);function z(e){return"ctrlCmd"===e?s["e"]?"metaKey":"ctrlKey":"altKey"}var j=function(e){function t(){var t=this,n={enabled:!0,cycle:!1};return t=e.call(this,62,"parameterHints",n,{"editor.parameterHints.enabled":{type:"boolean",default:n.enabled,description:r("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:n.cycle,description:r("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:b.boolean(t.enabled,this.defaultValue.enabled),cycle:b.boolean(t.cycle,this.defaultValue.cycle)}},t}(_),G=function(e){function t(){return e.call(this,101)||this}return p(t,e),t.prototype.compute=function(e,t,n){return e.pixelRatio},t}(y),q=function(e){function t(){var t=this,n={other:!0,comments:!1,strings:!1};return t=e.call(this,63,"quickSuggestions",n,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:n.strings,description:r("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:n.comments,description:r("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:n.other,description:r("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:n,description:r("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,t.defaultValue=n,t}return p(t,e),t.prototype.validate=function(e){if("boolean"===typeof e)return e;if("object"===typeof e){var t=e,n={other:b.boolean(t.other,this.defaultValue.other),comments:b.boolean(t.comments,this.defaultValue.comments),strings:b.boolean(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n}return this.defaultValue},t}(_),Y=function(e){function t(){return e.call(this,48,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[r("lineNumbers.off","Line numbers are not rendered."),r("lineNumbers.on","Line numbers are rendered as absolute number."),r("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),r("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:r("lineNumbers","Controls the display of line numbers.")})||this}return p(t,e),t.prototype.validate=function(e){var t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}},t}(_),X=function(e){function t(){var t=this,n=[];return t=e.call(this,73,"rulers",n,{type:"array",items:{type:"number"},default:n,description:r("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this,t}return p(t,e),t.prototype.validate=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n
      ",s+='
      ';var d=this._decodeMetadata(t.tokens2[1+(r<<1)]);s+='',s+='",s+='",s+='",s+='",s+='",s+="",s+='
      ',n'+Lr(t.tokens1[n].type)+""),this._domNode.innerHTML=s,this._editor.layoutContentWidget(this)},t.prototype._decodeMetadata=function(e){var t=zl.getColorMap(),n=vl.getLanguageId(e),i=vl.getTokenType(e),o=vl.getFontStyle(e),r=vl.getForeground(e),s=vl.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:o,foreground:t[r],background:t[s]}},t.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},t.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},t.prototype._getTokensAtLine=function(e){var t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),i=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState}},t.prototype._getStateBeforeLine=function(e){for(var t=this._tokenizationSupport.getInitialState(),n=1;n0?n.actionBar.push(o,{icon:!0,label:!1}):n.actionBar.isEmpty()||o&&0!==o.length||n.actionBar.clear(),e instanceof E1&&e.getGroupLabel()?ho(n.container,"has-group-label"):po(n.container,"has-group-label"),e instanceof E1){var r=e,s=n;r.showBorder()?(ho(s.container,"results-group-separator"),i.pickerGroupBorder&&(s.container.style.borderTopColor=i.pickerGroupBorder.toString())):(po(s.container,"results-group-separator"),s.container.style.borderTopColor="");var a=r.getGroupLabel()||"";s.group&&(s.group.textContent=a,i.pickerGroupForeground&&(s.group.style.color=i.pickerGroupForeground.toString()))}if(e instanceof B1){var u=e.getHighlights(),l=u[0],c=u[1],d=u[2],h=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=h;var A=e.getLabelOptions()||Object.create(null);A.matches=l||[],A.title=e.getTooltip(),A.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),A.descriptionMatches=c||[],n.label.setLabel(e.getLabel()||"",e.getDescription(),A),n.detail.set(e.getDetail(),d),n.keybinding.set(e.getKeybinding())}},e.prototype.disposeTemplate=function(e,t){t.actionBar.dispose(),t.actionBar=null,t.container=null,t.entry=null,t.keybinding=null,t.detail=null,t.group=null,t.icon=null,t.label.dispose(),t.label=null},e}(),k1=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=new x1),this._entries=e,this._dataSource=this,this._renderer=new N1(t),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(e.prototype,"entries",{get:function(){return this._entries},set:function(e){this._entries=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),e.prototype.getId=function(e){return e.getId()},e.prototype.getLabel=function(e){return ka(e.getLabel())},e.prototype.getAriaLabel=function(e){var t=e.getAriaLabel();return t?r("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):r("quickOpenAriaLabel","picker")},e.prototype.isVisible=function(e){return!e.isHidden()},e.prototype.run=function(e,t,n){return e.run(t,n)},e}(),I1=(n("a87d9"),n("52c8"),function(){function e(e){this.modelProvider=Sa(e.getModel)?e:{getModel:function(){return e}}}return e.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t)},e.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return!!(n&&n===t&&n.entries.length>0)},e.prototype.getChildren=function(e,t){var n=this.modelProvider.getModel();return Promise.resolve(n===t?n.entries:[])},e.prototype.getParent=function(e,t){return Promise.resolve(null)},e}()),F1=function(){function e(e){this.modelProvider=e}return e.prototype.getAriaLabel=function(e,t){var n=this.modelProvider.getModel();return n.accessibilityProvider?n.accessibilityProvider.getAriaLabel(t):null},e.prototype.getPosInSet=function(e,t){var n=this.modelProvider.getModel(),i=0;if(n.filter)for(var o=0,r=n.entries;o=0;t--){var n=this._arr[t];if(e.toChord().equals(n.keybinding))return n.callback}return null},e}()),P1=function(){function e(e){var t=this;void 0===e&&(e={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=e,this.downKeyBindingDispatcher=new T1,this.upKeyBindingDispatcher=new T1,("boolean"!==typeof e.keyboardSupport||e.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,(function(e,n){return t.onUp(e,n)})),this.downKeyBindingDispatcher.set(18,(function(e,n){return t.onDown(e,n)})),this.downKeyBindingDispatcher.set(15,(function(e,n){return t.onLeft(e,n)})),this.downKeyBindingDispatcher.set(17,(function(e,n){return t.onRight(e,n)})),s["e"]&&(this.downKeyBindingDispatcher.set(2064,(function(e,n){return t.onLeft(e,n)})),this.downKeyBindingDispatcher.set(300,(function(e,n){return t.onDown(e,n)})),this.downKeyBindingDispatcher.set(302,(function(e,n){return t.onUp(e,n)}))),this.downKeyBindingDispatcher.set(11,(function(e,n){return t.onPageUp(e,n)})),this.downKeyBindingDispatcher.set(12,(function(e,n){return t.onPageDown(e,n)})),this.downKeyBindingDispatcher.set(14,(function(e,n){return t.onHome(e,n)})),this.downKeyBindingDispatcher.set(13,(function(e,n){return t.onEnd(e,n)})),this.downKeyBindingDispatcher.set(10,(function(e,n){return t.onSpace(e,n)})),this.downKeyBindingDispatcher.set(9,(function(e,n){return t.onEscape(e,n)})),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2051,this.onEnter.bind(this)))}return e.prototype.onMouseDown=function(e,t,n,i){if(void 0===i&&(i="mouse"),0===this.options.clickBehavior&&(n.leftButton||n.middleButton)){if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(Go(n.target,"scrollbar","monaco-tree"))return!1;if(Go(n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,i)}return!1},e.prototype.onClick=function(e,t,n){var i=s["e"];return i&&n.ctrlKey?(n.preventDefault(),n.stopPropagation(),!1):(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&((0!==this.options.clickBehavior||!n.leftButton&&!n.middleButton)&&this.onLeftClick(e,t,n))},e.prototype.onLeftClick=function(e,t,n,i){void 0===i&&(i="mouse");var o=n,r={origin:i,originalEvent:n,didClickOnTwistie:this.isClickOnTwistie(o)};if(e.getInput()===t)e.clearFocus(r),e.clearSelection(r);else{var s=n&&o.browserEvent&&"mousedown"===o.browserEvent.type&&1===o.browserEvent.detail;s||n.preventDefault(),n.stopPropagation(),e.domFocus(),e.setSelection([t],r),e.setFocus(t,r),this.shouldToggleExpansion(t,o,i)&&(e.isExpanded(t)?e.collapse(t).then(void 0,Ae):e.expand(t).then(void 0,Ae))}return!0},e.prototype.shouldToggleExpansion=function(e,t,n){var i="mouse"===n&&2===t.detail;return this.openOnSingleClick||i||this.isClickOnTwistie(t)},Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return 0===this.options.openMode},enumerable:!0,configurable:!0}),e.prototype.isClickOnTwistie=function(e){var t=e.target;if(!co(t,"content"))return!1;var n=window.getComputedStyle(t,":before");if("none"===n.backgroundImage||"none"===n.display)return!1;var i=parseInt(n.width)+parseInt(n.paddingRight);return e.browserEvent.offsetX<=i},e.prototype.onContextMenu=function(e,t,n){return n.target&&n.target.tagName&&"input"===n.target.tagName.toLowerCase()||n&&(n.preventDefault(),n.stopPropagation()),!1},e.prototype.onTap=function(e,t,n){var i=n.initialTarget;return(!i||!i.tagName||"input"!==i.tagName.toLowerCase())&&this.onLeftClick(e,t,n,"touch")},e.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t)},e.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t)},e.prototype.onKey=function(e,t,n){var i=e.dispatch(n.toKeybinding());return!(!i||!i(t,n))&&(n.preventDefault(),n.stopPropagation(),!0)},e.prototype.onUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPrevious(1,n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onPageUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPreviousPage(n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNext(1,n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onPageDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNextPage(n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onHome=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusFirst(n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onEnd=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusLast(n),e.reveal(e.getFocus()).then(void 0,Ae)),!0},e.prototype.onLeft=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.collapse(i).then((function(t){if(i&&!t)return e.focusParent(n),e.reveal(e.getFocus())})).then(void 0,Ae)}return!0},e.prototype.onRight=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.expand(i).then((function(t){if(i&&!t)return e.focusFirstChild(n),e.reveal(e.getFocus())})).then(void 0,Ae)}return!0},e.prototype.onEnter=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())return!1;var i=e.getFocus();return i&&e.setSelection([i],n),!0},e.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();return n&&e.toggleExpansion(n),!0},e.prototype.onEscape=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?(e.clearHighlight(n),!0):e.getSelection().length?(e.clearSelection(n),!0):!!e.getFocus()&&(e.clearFocus(n),!0)},e}(),R1=function(){function e(){}return e.prototype.getDragURI=function(e,t){return null},e.prototype.onDragStart=function(e,t,n){},e.prototype.onDragOver=function(e,t,n,i){return null},e.prototype.drop=function(e,t,n,i){},e}(),U1=function(){function e(){}return e.prototype.isVisible=function(e,t){return!0},e}(),H1=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return null},e}(),Q1=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t}return e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }"),e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }"),e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }"),e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},e}(),V1=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),W1=function(){function e(e){this._onDispose=new Ye,this.onDispose=this._onDispose.event,this._item=e}return Object.defineProperty(e.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},e}(),K1=function(){function e(){this.locks=Object.create({})}return e.prototype.isLocked=function(e){return!!this.locks[e.id]},e.prototype.run=function(e,t){var n,i=this,o=this.getLock(e);return new Promise(o?function(n,r){Ue.once(o.onDispose)((function(){return i.run(e,t).then(n,r)}))}:function(o,r){if(e.isDisposed())return r(new Error("Item is disposed."));var s=i.locks[e.id]=new W1(e);return n=t().then((function(t){return delete i.locks[e.id],s.dispose(),t})).then(o,r),n})},e.prototype.getLock=function(e){var t;for(t in this.locks){var n=this.locks[t];if(e.intersects(n.item))return n}return null},e}(),z1=function(){function e(){this._isDisposed=!1,this._onDidRevealItem=new Je,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new Je,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new Je,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new Je,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new Je,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new Je,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new Je,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new Je,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new Je,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new Je,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new Je,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return e.prototype.register=function(e){ru(!this.isRegistered(e.id),"item already registered: "+e.id);var t=Le(this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose));this.items[e.id]={item:e,disposable:t}},e.prototype.deregister=function(e){ru(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},e.prototype.dispose=function(){this.items={},this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},e.prototype.isDisposed=function(){return this._isDisposed},e}(),j1=function(){function e(e,t,n,i,o){this._onDidCreate=new Ye,this._onDidReveal=new Ye,this.onDidReveal=this._onDidReveal.event,this._onExpand=new Ye,this.onExpand=this._onExpand.event,this._onDidExpand=new Ye,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new Ye,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new Ye,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new Ye,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new Ye,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new Ye,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new Ye,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new Ye,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new Ye,this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=n,this.lock=i,this.element=o,this.id=e,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!(!this.context.dataSource.shouldAutoexpand||!this.context.dataSource.shouldAutoexpand(this.context.tree,o)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return e.prototype.getElement=function(){return this.element},e.prototype.hasChildren=function(){return this.doesHaveChildren},e.prototype.getDepth=function(){return this.depth},e.prototype.isVisible=function(){return this.visible},e.prototype.setVisible=function(e){this.visible=e},e.prototype.isExpanded=function(){return this.expanded},e.prototype._setExpanded=function(e){this.expanded=e},e.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},e.prototype.expand=function(){var e=this;if(this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this))return Promise.resolve(!1);var t=this.lock.run(this,(function(){if(e.isExpanded()||!e.doesHaveChildren)return Promise.resolve(!1);var t,n={item:e};return e._onExpand.fire(n),t=e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Promise.resolve(null),t.then((function(){return e._setExpanded(!0),e._onDidExpand.fire(n),!0}))}));return t.then((function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then((function(){return!0})):t)}))},e.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=Promise.resolve(null);return this.forEachChild((function(e){n=n.then((function(){return e.collapse(!0)}))})),n.then((function(){return t.collapse(!1)}))}return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,(function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Promise.resolve(!0)}))},e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},e.prototype.hasTrait=function(e){return this.traits[e]||!1},e.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},e.prototype.getHeight=function(){return this.height},e.prototype.refreshChildren=function(t,n,i){var o=this;if(void 0===n&&(n=!1),void 0===i&&(i=!1),!i&&!this.isExpanded()){var r=function(e){e.needsChildrenRefresh=!0,e.forEachChild(r)};return r(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var s=function(){var i,r={item:o,isNested:n};o._onRefreshChildren.fire(r),i=o.doesHaveChildren?o.context.dataSource.getChildren(o.context.tree,o.element):Promise.resolve([]);var s=i.then((function(n){if(o.isDisposed()||o.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(n))return Promise.reject(new Error("Please return an array of children."));n=n?n.slice(0):[],n=o.sort(n);var i={};while(null!==o.firstChild)i[o.firstChild.id]=o.firstChild,o.removeChild(o.firstChild);for(var r=0,s=n.length;r=0;o--)this.onInsertItem(l[o]);for(o=this.heightMap.length-1;o>=i;o--)this.onRefreshItem(this.heightMap[o]);return a},e.prototype.onInsertItem=function(e){},e.prototype.onRemoveItems=function(e){var t,n=null,i=null,o=0,r=0;while(n=e.next()){if(o=this.indexes[n],t=this.heightMap[o],!t)return void console.error("view item doesnt exist");r-=t.height,delete this.indexes[n],this.onRemoveItem(t),null===i&&(i=o)}if(0!==r&&null!==i)for(this.heightMap.splice(i,o-i+1),o=i;o=n.top+n.height))return t;if(i===t)break;i=t}return this.heightMap.length},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},e.prototype.itemAtIndex=function(e){return this.heightMap[e]},e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},e.prototype.createViewItem=function(e){throw new Error("not implemented")},e.prototype.dispose=function(){this.heightMap=[],this.indexes={}},e}(),e2=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),t2=function(){function e(e,t,n){this._posx=e,this._posy=t,this._target=n}return e.prototype.preventDefault=function(){},e.prototype.stopPropagation=function(){},Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),e}(),n2=function(e){function t(t){var n=e.call(this,t.posx,t.posy,t.target)||this;return n.originalEvent=t,n}return e2(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(t2),i2=function(e){function t(t,n,i){var o=e.call(this,t,n,i.target)||this;return o.originalEvent=i,o}return e2(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(t2),o2=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function r2(e){try{e.parentElement.removeChild(e)}catch(t){}}var s2=function(){function e(e){this.context=e,this._cache={"":[]}}return e.prototype.alloc=function(e){var t=this.cache(e).pop();if(!t){var n=document.createElement("div");n.className="content";var i=document.createElement("div");i.appendChild(n);var o=null;try{o=this.context.renderer.renderTemplate(this.context.tree,e,n)}catch(r){console.error("Tree usage error: exception while rendering template"),console.error(r)}t={element:i,templateId:e,templateData:o}}return t},e.prototype.release=function(e,t){r2(t.element),this.cache(e).push(t)},e.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[])},e.prototype.garbageCollect=function(){var e=this;this._cache&&Object.keys(this._cache).forEach((function(t){e._cache[t].forEach((function(n){e.context.renderer.disposeTemplate(e.context.tree,t,n.templateData),n.element=null,n.templateData=null})),delete e._cache[t]}))},e.prototype.dispose=function(){this.garbageCollect(),this._cache=null},e}(),a2=function(){function e(e,t){var n=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=Ie.None,this._draggable=!1,this.context=e,this.model=t,this.id=this.model.id,this.row=null,this.top=0,this.height=t.getHeight(),this._styles={},t.getAllTraits().forEach((function(e){return n._styles[e]=!0})),t.isExpanded()&&this.addClass("expanded")}return Object.defineProperty(e.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loading",{set:function(e){e?this.addClass("codicon-loading"):this.removeClass("codicon-loading")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable=e,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),e.prototype.addClass=function(e){this._styles[e]=!0,this.render(!0)},e.prototype.removeClass=function(e){delete this._styles[e],this.render(!0)},e.prototype.render=function(e){var t=this;if(void 0===e&&(e=!1),this.model&&this.element){var n=["monaco-tree-row"];n.push.apply(n,Object.keys(this._styles)),this.model.hasChildren()&&n.push("has-children"),this.element.className=n.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var i=this.context.accessibilityProvider,o=i.getAriaLabel(this.context.tree,this.model.getElement());if(o&&this.element.setAttribute("aria-label",o),i.getPosInSet&&i.getSetSize&&(this.element.setAttribute("aria-setsize",i.getSetSize()),this.element.setAttribute("aria-posinset",i.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var r=ms(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",r)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles["expanded"])):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var s=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(s!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),s?(this.uri=s,this.draggable=!0,this.unbindDragStart=vo(this.element,"dragstart",(function(e){t.onDragStart(e)}))):this.uri=null),!e&&this.element){var a=0;if(this.context.horizontalScrolling){var u=window.getComputedStyle(this.element);a=parseFloat(u.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width=Qn?"-moz-fit-content":"fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(l){console.error("Tree usage error: exception while rendering element"),console.error(l)}this.context.horizontalScrolling&&(this.width=Wo(this.element)+a,this.element.style.width="")}}},e.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[c2.BINDING]=this),!this.element.parentElement){if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t)}catch(n){console.warn("Failed to locate previous tree element"),e.appendChild(this.element)}this.render()}},e.prototype.removeFromDOM=function(){this.row&&(this.unbindDragStart.dispose(),this.uri=null,this.element[c2.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},e.prototype.dispose=function(){this.row=null},e}(),u2=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.row={element:i,templateData:null,templateId:null},o}return o2(t,e),t.prototype.render=function(){if(this.model&&this.element){var e=["monaco-tree-wrapper"];e.push.apply(e,Object.keys(this._styles)),this.model.hasChildren()&&e.push("has-children"),this.element.className=e.join(" ")}},t.prototype.insertInDOM=function(e,t){},t.prototype.removeFromDOM=function(){},t}(a2);function l2(e,t){return!e&&!t||!(!e||!t)&&(e.accept===t.accept&&(e.bubble===t.bubble&&e.effect===t.effect))}var c2=function(e){function t(n,i){var o=e.call(this)||this;o.model=null,o.lastPointerType="",o.lastClickTimeStamp=0,o.contentWidthUpdateDelayer=new mi(50),o.isRefreshing=!1,o.refreshingPreviousChildrenIds={},o.currentDragAndDropData=null,o.currentDropTarget=null,o.currentDropTargets=null,o.currentDropDisposable=Ie.None,o.gestureDisposable=Ie.None,o.dragAndDropScrollInterval=null,o.dragAndDropScrollTimeout=null,o.dragAndDropMouseY=null,o.highlightedItemWasDraggable=!1,o.onHiddenScrollTop=null,o._onDOMFocus=new Ye,o.onDOMFocus=o._onDOMFocus.event,o._onDOMBlur=new Ye,o._onDidScroll=new Ye,t.counter++,o.instance=t.counter;var r="undefined"===typeof n.options.horizontalScrollMode?2:n.options.horizontalScrollMode;o.horizontalScrolling=2!==r,o.context={dataSource:n.dataSource,renderer:n.renderer,controller:n.controller,dnd:n.dnd,filter:n.filter,sorter:n.sorter,tree:n.tree,accessibilityProvider:n.accessibilityProvider,options:n.options,cache:new s2(n),horizontalScrolling:o.horizontalScrolling},o.modelListeners=[],o.viewListeners=[],o.items={},o.domNode=document.createElement("div"),o.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+o.instance,o.domNode.tabIndex=n.options.preventRootFocus?-1:0,o.styleElement=qo(o.domNode),o.treeStyler=n.styler||new Q1(o.styleElement,"monaco-tree-instance-"+o.instance),o.domNode.setAttribute("role","tree"),o.context.options.ariaLabel&&o.domNode.setAttribute("aria-label",o.context.options.ariaLabel),o.context.options.alwaysFocused&&ho(o.domNode,"focused"),o.context.options.paddingOnRow||ho(o.domNode,"no-row-padding"),o.wrapper=document.createElement("div"),o.wrapper.className="monaco-tree-wrapper",o.scrollableElement=new PB(o.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:r,vertical:"undefined"!==typeof n.options.verticalScrollMode?n.options.verticalScrollMode:1,useShadows:n.options.useShadows}),o.scrollableElement.onScroll((function(e){o.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth),o._onDidScroll.fire()})),Rn?(o.wrapper.style.msTouchAction="none",o.wrapper.style.msContentZooming="none"):o.gestureDisposable=Tg.addTarget(o.wrapper),o.rowsContainer=document.createElement("div"),o.rowsContainer.className="monaco-tree-rows",n.options.showTwistie&&(o.rowsContainer.className+=" show-twisties");var s=sr(o.domNode);return o.viewListeners.push(s.onDidFocus((function(){return o.onFocus()}))),o.viewListeners.push(s.onDidBlur((function(){return o.onBlur()}))),o.viewListeners.push(s),o.viewListeners.push(vo(o.domNode,"keydown",(function(e){return o.onKeyDown(e)}))),o.viewListeners.push(vo(o.domNode,"keyup",(function(e){return o.onKeyUp(e)}))),o.viewListeners.push(vo(o.domNode,"mousedown",(function(e){return o.onMouseDown(e)}))),o.viewListeners.push(vo(o.domNode,"mouseup",(function(e){return o.onMouseUp(e)}))),o.viewListeners.push(vo(o.wrapper,"auxclick",(function(e){e&&1===e.button&&o.onMouseMiddleClick(e)}))),o.viewListeners.push(vo(o.wrapper,"click",(function(e){return o.onClick(e)}))),o.viewListeners.push(vo(o.domNode,"contextmenu",(function(e){return o.onContextMenu(e)}))),o.viewListeners.push(vo(o.wrapper,Fg.Tap,(function(e){return o.onTap(e)}))),o.viewListeners.push(vo(o.wrapper,Fg.Change,(function(e){return o.onTouchChange(e)}))),Rn&&(o.viewListeners.push(vo(o.wrapper,"MSPointerDown",(function(e){return o.onMsPointerDown(e)}))),o.viewListeners.push(vo(o.wrapper,"MSGestureTap",(function(e){return o.onMsGestureTap(e)}))),o.viewListeners.push(Oo(o.wrapper,"MSGestureChange",(function(e){return o.onThrottledMsGestureChange(e)}),(function(e,t){t.stopPropagation(),t.preventDefault();var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n})))),o.viewListeners.push(vo(window,"dragover",(function(e){return o.onDragOver(e)}))),o.viewListeners.push(vo(o.wrapper,"drop",(function(e){return o.onDrop(e)}))),o.viewListeners.push(vo(window,"dragend",(function(e){return o.onDragEnd(e)}))),o.viewListeners.push(vo(window,"dragleave",(function(e){return o.onDragOver(e)}))),o.wrapper.appendChild(o.rowsContainer),o.domNode.appendChild(o.scrollableElement.getDomNode()),i.appendChild(o.domNode),o.lastRenderTop=0,o.lastRenderHeight=0,o.didJustPressContextMenuKey=!1,o.currentDropTarget=null,o.currentDropTargets=[],o.shouldInvalidateDropReaction=!1,o.dragAndDropScrollInterval=null,o.dragAndDropScrollTimeout=null,o.onRowsChanged(),o.layout(),o.setupMSGesture(),o.applyStyles(n.options),o}return o2(t,e),t.prototype.applyStyles=function(e){this.treeStyler.style(e)},t.prototype.createViewItem=function(e){return new a2(this.context,e)},t.prototype.getHTMLElement=function(){return this.domNode},t.prototype.focus=function(){this.domNode.focus()},t.prototype.isFocused=function(){return document.activeElement===this.domNode},t.prototype.blur=function(){this.domNode.blur()},t.prototype.setupMSGesture=function(){var e=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout((function(){return e.msGesture.target=e.wrapper}),100))},t.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop},t.prototype.layout=function(e,t){this.isTreeVisible()&&(this.viewHeight=e||Ko(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||Wo(this.wrapper)))},t.prototype.render=function(e,t,n,i,o){var r,s,a=e,u=e+t,l=this.lastRenderTop+this.lastRenderHeight;for(r=this.indexAfter(u)-1,s=this.indexAt(Math.max(l,a));r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(u))-1,s=this.indexAt(a);r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),s=Math.min(this.indexAt(a),this.indexAfter(l));r1e3,l=[],c=!1;if(!u){var d=new Xc({getElements:function(){return o}},{getElements:function(){return r.map((function(e){return e.id}))}},null);l=d.ComputeDiff(!1).changes,c=l.some((function(e){if(e.modifiedLength>0)for(var n=e.modifiedStart,i=e.modifiedStart+e.modifiedLength;n0&&this.onRemoveItems(new He(o,p.originalStart,p.originalStart+p.originalLength)),p.modifiedLength>0){var f=r[p.modifiedStart-1]||n;f=f.getDepth()>0?f:null,this.onInsertItems(new He(r,p.modifiedStart,p.modifiedStart+p.modifiedLength),f?f.id:null)}}else(u||l.length)&&(this.onRemoveItems(new He(o)),this.onInsertItems(new He(r),n.getDepth()>0?n.id:null));(u||l.length)&&this.onRowsChanged()}},t.prototype.onItemRefresh=function(e){this.onItemsRefresh([e])},t.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter((function(e){return t.items.hasOwnProperty(e.id)}))),this.onRowsChanged()},t.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0)},t.prototype.onItemExpanded=function(e){var t=e.item,n=this.items[t.id];if(n){n.expanded=!0;var i=this.onInsertItems(t.getNavigator(),t.id)||0,o=this.scrollTop;n.top+n.height<=this.scrollTop&&(o+=i),this.onRowsChanged(o)}},t.prototype.onItemCollapsing=function(e){var t=e.item,n=this.items[t.id];n&&(n.expanded=!1,this.onRemoveItems(new Ve(t.getNavigator(),(function(e){return e&&e.id}))),this.onRowsChanged())},t.prototype.onItemReveal=function(e){var t=e.item,n=e.relativeTop,i=this.items[t.id];if(i)if(null!==n){n=n<0?0:n,n=n>1?1:n;var o=i.height-this.viewHeight;this.scrollTop=o*n+i.top}else{var r=i.top+i.height,s=this.scrollTop+this.viewHeight;i.top=s&&(this.scrollTop=r-this.viewHeight)}},t.prototype.onItemAddTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.addClass(n),"highlighted"===n&&(ho(this.domNode,n),i&&(this.highlightedItemWasDraggable=!!i.draggable,i.draggable&&(i.draggable=!1)))},t.prototype.onItemRemoveTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.removeClass(n),"highlighted"===n&&(po(this.domNode,n),this.highlightedItemWasDraggable&&(i.draggable=!0),this.highlightedItemWasDraggable=!1)},t.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();go(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",ms(this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant")},t.prototype.onInsertItem=function(e){var t=this;e.onDragStart=function(n){t.onDragStart(e,n)},e.needsRender=!0,this.refreshViewItem(e),this.items[e.id]=e},t.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1),e.needsRender=e.needsRender||t,this.refreshViewItem(e)},t.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e),e.dispose(),delete this.items[e.id]},t.prototype.refreshViewItem=function(e){e.render(),this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e)},t.prototype.onClick=function(e){if(!this.lastPointerType||"mouse"===this.lastPointerType){var t=new di(e),n=this.getItemAround(t.target);n&&(Rn&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,n.model.getElement(),t))}},t.prototype.onMouseMiddleClick=function(e){if(this.context.controller.onMouseMiddleClick){var t=new di(e),n=this.getItemAround(t.target);n&&this.context.controller.onMouseMiddleClick(this.context.tree,n.model.getElement(),t)}},t.prototype.onMouseDown=function(e){if(this.didJustPressContextMenuKey=!1,this.context.controller.onMouseDown&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new di(e);if(!(t.ctrlKey&&s["f"]&&s["e"])){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseDown(this.context.tree,n.model.getElement(),t)}}},t.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new di(e);if(!(t.ctrlKey&&s["f"]&&s["e"])){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseUp(this.context.tree,n.model.getElement(),t)}}},t.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);t&&this.context.controller.onTap(this.context.tree,t.model.getElement(),e)},t.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},t.prototype.onContextMenu=function(e){var t,n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var i=new oi(e);n=this.model.getFocus();var o=void 0;if(n){var r=this.context.dataSource.getId(this.context.tree,n),s=this.items[r];o=Ho(s.element)}else n=this.model.getInput(),o=Ho(this.inputItem.element);t=new i2(o.left+o.width,o.top,i)}else{var a=new di(e),u=this.getItemAround(a.target);if(!u)return;n=u.model.getElement(),t=new n2(a)}this.context.controller.onContextMenu(this.context.tree,n,t)},t.prototype.onKeyDown=function(e){var t=new oi(e);this.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode,t.target&&t.target.tagName&&"input"===t.target.tagName.toLowerCase()||(this.didJustPressContextMenuKey&&(t.preventDefault(),t.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,t))},t.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new oi(e))},t.prototype.onDragStart=function(e,t){if(!this.model.getHighlight()){var n,i=e.model.getElement(),o=this.model.getSelection();if(n=o.indexOf(i)>-1?o:[i],t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setData(BL.RESOURCES,JSON.stringify([e.uri])),t.dataTransfer.setDragImage){var r=void 0;r=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,n):String(n.length);var s=document.createElement("div");s.className="monaco-tree-drag-image",s.textContent=r,document.body.appendChild(s),t.dataTransfer.setDragImage(s,-10,-10),setTimeout((function(){return document.body.removeChild(s)}),0)}this.currentDragAndDropData=new X1(n),xL.CurrentDragAndDropData=new J1(n),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new hi(t))}},t.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=Uo(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval((function(){if(null!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.viewHeight-35;n<35?i=Math.max(-14,.2*(n-35)):n>o&&(i=Math.min(14,.2*(n-o))),e.scrollTop+=i}}),10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout((function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null}),1e3))},t.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},t.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},t.prototype.onDragOver=function(e){var t=this;e.preventDefault();var n,i=new hi(e),o=this.getItemAround(i.target);if(!o||0===i.posx&&0===i.posy&&i.browserEvent.type===tr.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach((function(e){return e.dropTarget=!1})),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=i.posy,!this.currentDragAndDropData)if(xL.CurrentDragAndDropData)this.currentDragAndDropData=xL.CurrentDragAndDropData;else{if(!i.dataTransfer.types)return!1;this.currentDragAndDropData=new Z1}this.currentDragAndDropData.update(i.browserEvent.dataTransfer);var r,s=o.model;do{if(n=s?s.getElement():this.model.getInput(),r=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,n,i),!r||1!==r.bubble)break;s=s&&s.parent}while(s);if(!s)return this.currentDropElement=null,!1;var a=r&&r.accept;a?(this.currentDropElement=s.getElement(),i.preventDefault(),i.dataTransfer.dropEffect=0===r.effect?"copy":"move"):this.currentDropElement=null;var u=s.id===this.inputItem.id?this.inputItem:this.items[s.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==u||!l2(this.currentDropElementReaction,r))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach((function(e){return e.dropTarget=!1})),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=u,this.currentDropElementReaction=r,a)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),0===r.bubble){var l=s.getNavigator(),c=void 0;while(c=l.next())o=this.items[c.id],o&&(o.dropTarget=!0,this.currentDropTargets.push(o))}if(r.autoExpand){var d=vi(500);this.currentDropDisposable=De((function(){return d.cancel()})),d.then((function(){return t.context.tree.expand(t.currentDropElement)})).then((function(){return t.shouldInvalidateDropReaction=!0}))}}return!0},t.prototype.onDrop=function(e){if(this.currentDropElement){var t=new hi(e);t.preventDefault(),this.currentDragAndDropData.update(t.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,t),this.onDragEnd(e)}this.cancelDragAndDropScrollInterval()},t.prototype.onDragEnd=function(e){this.currentDropTarget&&(this.currentDropTargets.forEach((function(e){return e.dropTarget=!1})),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,xL.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},t.prototype.onFocus=function(){this.context.options.alwaysFocused||ho(this.domNode,"focused"),this._onDOMFocus.fire()},t.prototype.onBlur=function(){this.context.options.alwaysFocused||po(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},t.prototype.onMsPointerDown=function(e){if(this.msGesture){var t=e.pointerType;t!==(e.MSPOINTER_TYPE_MOUSE||"mouse")?t===(e.MSPOINTER_TYPE_TOUCH||"touch")&&(this.lastPointerType="touch",e.stopPropagation(),e.preventDefault(),this.msGesture.addPointer(e.pointerId)):this.lastPointerType="mouse"}},t.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY},t.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY),this.onTap(e)},t.prototype.insertItemInDOM=function(e){var t=null,n=this.itemAfter(e);n&&n.element&&(t=n.element),e.insertInDOM(this.rowsContainer,t)},t.prototype.removeItemFromDOM=function(e){e&&e.removeFromDOM()},t.prototype.shouldBeRendered=function(e){return e.topthis.lastRenderTop},t.prototype.getItemAround=function(e){var n=this.inputItem,i=e;do{if(i[t.BINDING]&&(n=i[t.BINDING]),i===this.wrapper||i===this.domNode)return n;if(i===this.scrollableElement.getDomNode()||i===document.body)return}while(i=i.parentElement)},t.prototype.releaseModel=function(){this.model&&(this.modelListeners=xe(this.modelListeners),this.model=null)},t.prototype.dispose=function(){var t=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=xe(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach((function(e){return t.items[e].removeFromDOM()})),this.context.cache&&this.context.cache.dispose(),this.gestureDisposable.dispose(),e.prototype.dispose.call(this)},t.BINDING="monaco-tree-row",t.LOADING_DECORATION_DELAY=800,t.counter=0,t}($1),d2=function(){function e(e,t,n){if(void 0===n&&(n={}),this.tree=e,this.configuration=t,this.options=n,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new P1({clickBehavior:1,keyboardSupport:"boolean"!==typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new R1,this.filter=t.filter||new U1,this.sorter=t.sorter,this.accessibilityProvider=t.accessibilityProvider||new H1,this.styler=t.styler}return e}(),h2={listFocusBackground:N_.fromHex("#073655"),listActiveSelectionBackground:N_.fromHex("#0E639C"),listActiveSelectionForeground:N_.fromHex("#FFFFFF"),listFocusAndSelectionBackground:N_.fromHex("#094771"),listFocusAndSelectionForeground:N_.fromHex("#FFFFFF"),listInactiveSelectionBackground:N_.fromHex("#3F3F46"),listHoverBackground:N_.fromHex("#2A2D2E"),listDropBackground:N_.fromHex("#383B3D")},A2=function(){function e(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new $e,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new $e,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new $e,this._onDidExpandItem=new $e,this._onDidCollapseItem=new $e,this._onDispose=new Ye,this.onDidDispose=this._onDispose.event,this.container=e,du(n,h2,!1),n.twistiePixels="number"===typeof n.twistiePixels?n.twistiePixels:32,n.showTwistie=!1!==n.showTwistie,n.indentPixels="number"===typeof n.indentPixels?n.indentPixels:12,n.alwaysFocused=!0===n.alwaysFocused,n.useShadows=!1!==n.useShadows,n.paddingOnRow=!1!==n.paddingOnRow,n.showLoading=!1!==n.showLoading,this.context=new d2(this,t,n),this.model=new Y1(this.context),this.view=new c2(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return e.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view.onDOMFocus},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.domFocus=function(){this.view.focus()},e.prototype.isDOMFocused=function(){return this.view.isFocused()},e.prototype.domBlur=function(){this.view.blur()},e.prototype.setInput=function(e){return this.model.setInput(e)},e.prototype.getInput=function(){return this.model.getInput()},e.prototype.expand=function(e){return this.model.expand(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},e.prototype.isExpanded=function(e){return this.model.isExpanded(e)},e.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},e.prototype.getHighlight=function(){return this.model.getHighlight()},e.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},e.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},e.prototype.getSelection=function(){return this.model.getSelection()},e.prototype.clearSelection=function(e){this.model.setSelection([],e)},e.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},e.prototype.getFocus=function(){return this.model.getFocus()},e.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},e.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},e.prototype.focusParent=function(e){this.model.focusParent(e)},e.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},e.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},e.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},e.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},e.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},e.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},e.prototype.clearFocus=function(e){this.model.setFocus(null,e)},e.prototype.dispose=function(){this._onDispose.fire(),this.model.dispose(),this.view.dispose(),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},e}(),p2=(n("1f26"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),f2="done",g2="active",m2="infinite",v2="discrete",_2="monaco-progress-container",y2="progress-bit",w2={progressBarBackground:N_.fromHex("#0E70C0")},b2=function(e){function t(t,n){var i=e.call(this)||this;return i.options=n||Object.create(null),du(i.options,w2,!1),i.workedVal=0,i.progressBarBackground=i.options.progressBarBackground,i._register(i.showDelayedScheduler=new Si((function(){return hr(i.element)}),0)),i.create(t),i}return p2(t,e),t.prototype.create=function(e){this.element=document.createElement("div"),ho(this.element,_2),e.appendChild(this.element),this.bit=document.createElement("div"),ho(this.bit,y2),this.element.appendChild(this.bit),this.applyStyles()},t.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",fo(this.element,g2,m2,v2),this.workedVal=0,this.totalWork=void 0},t.prototype.stop=function(){return this.doDone(!1)},t.prototype.doDone=function(e){var t=this;return ho(this.element,f2),co(this.element,m2)?(this.bit.style.opacity="0",e?setTimeout((function(){return t.off()}),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((function(){return t.off()}),200):this.off()),this},t.prototype.hide=function(){Ar(this.element),this.showDelayedScheduler.cancel()},t.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},t.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}},t}(Ie),C2=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return C2(t,e),t.prototype.onContextMenu=function(t,n,i){return s["e"]?this.onLeftClick(t,n,i):e.prototype.onContextMenu.call(this,t,n,i)},t}(P1),B2={background:N_.fromHex("#1E1E1E"),foreground:N_.fromHex("#CCCCCC"),pickerGroupForeground:N_.fromHex("#0097FB"),pickerGroupBorder:N_.fromHex("#3F3F46"),widgetShadow:N_.fromHex("#000000"),progressBarBackground:N_.fromHex("#0E70C0")},E2=r("quickOpenAriaLabel","Quick picker. Type to narrow down results."),x2=function(e){function t(t,n,i){var o=e.call(this)||this;return o.isDisposed=!1,o.container=t,o.callbacks=n,o.options=i,o.styles=i||Object.create(null),du(o.styles,B2,!1),o.model=null,o}return C2(t,e),t.prototype.getModel=function(){return this.model},t.prototype.create=function(){var e=this;this.element=document.createElement("div"),ho(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(vo(this.element,tr.CONTEXT_MENU,(function(e){return nr.stop(e,!0)}))),this._register(vo(this.element,tr.FOCUS,(function(t){return e.gainingFocus()}),!0)),this._register(vo(this.element,tr.BLUR,(function(t){return e.loosingFocus(t)}),!0)),this._register(vo(this.element,tr.KEY_DOWN,(function(t){var n=new oi(t);if(9===n.keyCode)nr.stop(t,!0),e.hide(2);else if(2===n.keyCode&&!n.altKey&&!n.ctrlKey&&!n.metaKey){var i=t.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");n.shiftKey&&n.target===i[0]?(nr.stop(t,!0),i[i.length-1].focus()):n.shiftKey||n.target!==i[i.length-1]||(nr.stop(t,!0),i[0].focus())}}))),this.progressBar=this._register(new b2(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),ho(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new gV(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:E2,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(vo(this.inputBox.inputElement,tr.INPUT,(function(t){return e.onType()}))),this._register(vo(this.inputBox.inputElement,tr.KEY_DOWN,(function(t){var n=new oi(t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)nr.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||i){nr.stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?2:1)}}))),this.resultCount=document.createElement("div"),ho(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),ho(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var t=this.options.treeCreator||function(e,t,n){return new A2(e,t,n)};return this.tree=this._register(t(this.treeContainer,{dataSource:new I1(this),controller:new S2({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new O1(this,this.styles),filter:new M1(this),accessibilityProvider:new F1(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:r("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus((function(t){e.elementFocused(t.focus,t)}))),this._register(this.tree.onDidChangeSelection((function(t){if(t.selection&&t.selection.length>0){var n=t.payload&&t.payload.originalEvent instanceof di?t.payload.originalEvent:void 0,i=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,i?2:1)}}))),this._register(vo(this.treeContainer,tr.KEY_DOWN,(function(t){var n=new oi(t);if(e.quickNavigateConfiguration)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)nr.stop(t,!0),e.navigateInTree(n.keyCode);else if(3===n.keyCode){nr.stop(t,!0);var i=e.tree.getFocus();i&&e.elementSelected(i,t)}}))),this._register(vo(this.treeContainer,tr.KEY_UP,(function(t){var n=new oi(t),i=n.keyCode;if(e.quickNavigateConfiguration){var o=e.quickNavigateConfiguration.keybindings,r=o.some((function(e){var t=e.getParts(),o=t[0],r=t[1];return!r&&(o.shiftKey&&4===i?!(n.ctrlKey||n.altKey||n.metaKey):!(!o.altKey||6!==i)||(!(!o.ctrlKey||5!==i)||!(!o.metaKey||57!==i)))}));if(r){var s=e.tree.getFocus();s&&e.elementSelected(s,t)}}}))),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(vo(this.treeContainer,tr.KEY_DOWN,(function(t){var n=new oi(t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(nr.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.treeElement.focus())}))),this.element},t.prototype.style=function(e){this.styles=e,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.styles.foreground?this.styles.foreground.toString():null,t=this.styles.background?this.styles.background.toString():"",n=this.styles.borderColor?this.styles.borderColor.toString():"",i=this.styles.widgetShadow?this.styles.widgetShadow.toString():"";this.element.style.color=e,this.element.style.backgroundColor=t,this.element.style.borderColor=n,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.boxShadow=i?"0 5px 8px "+i:""}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},t.prototype.shouldOpenInBackground=function(e){if(e instanceof oi){if(17!==e.keyCode)return!1;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;var t=this.inputBox.inputElement;return t.selectionEnd===this.inputBox.value.length&&t.selectionStart===t.selectionEnd}return e.middleButton},t.prototype.onType=function(){var e=this.inputBox.value;this.helpText&&(e?Ar(this.helpText):hr(this.helpText)),this.callbacks.onType(e)},t.prototype.navigateInTree=function(e,t){var n=this.tree.getInput(),i=n?n.entries:[],o=this.tree.getFocus();switch(e){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:t?this.tree.focusPrevious():this.tree.focusNext();break}var r=this.tree.getFocus();i.length>1&&o===r&&(16===e||2===e&&t?this.tree.focusLast():(18===e||2===e&&!t)&&this.tree.focusFirst()),r=this.tree.getFocus(),r&&this.tree.reveal(r)},t.prototype.elementFocused=function(e,t){if(e&&this.isVisible()){var n=this.treeElement.getAttribute("aria-activedescendant");n?this.inputElement.setAttribute("aria-activedescendant",n):this.inputElement.removeAttribute("aria-activedescendant");var i={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(e,0,i)}},t.prototype.elementSelected=function(e,t,n){var i=!0;if(this.isVisible()){var o=n||1,r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};i=this.model.runner.run(e,o,r)}i&&this.hide(0)},t.prototype.extractKeyMods=function(e){return{ctrlCmd:e&&(e.ctrlKey||e.metaKey||e.payload&&e.payload.originalEvent&&(e.payload.originalEvent.ctrlKey||e.payload.originalEvent.metaKey)),alt:e&&(e.altKey||e.payload&&e.payload.originalEvent&&e.payload.originalEvent.altKey)}},t.prototype.show=function(e,t){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=t?t.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(Ar(this.inputContainer),hr(this.element),this.tree.domFocus()):(hr(this.inputContainer),hr(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||fa(e)?Ar(this.helpText):hr(this.helpText)),fa(e)?this.doShowWithPrefix(e):(t&&t.value&&this.restoreLastInput(t.value),this.doShowWithInput(e,t&&t.autoFocus?t.autoFocus:{})),t&&t.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(t.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},t.prototype.restoreLastInput=function(e){this.inputBox.value=e,this.inputBox.select(),this.callbacks.onType(e)},t.prototype.doShowWithPrefix=function(e){this.inputBox.value=e,this.callbacks.onType(e)},t.prototype.doShowWithInput=function(e,t){this.setInput(e,t)},t.prototype.setInputAndLayout=function(e,t){var n=this;this.treeContainer.style.height=this.getHeight(e)+"px",this.tree.setInput(null).then((function(){return n.model=e,n.inputElement.setAttribute("aria-haspopup",String(e&&e.entries&&e.entries.length>0)),n.tree.setInput(e)})).then((function(){n.tree.layout();var i=e?e.entries.filter((function(t){return n.isElementVisible(e,t)})):[];n.updateResultCount(i.length),i.length&&n.autoFocus(e,i,t)}))},t.prototype.isElementVisible=function(e,t){return!e.filter||e.filter.isVisible(t)},t.prototype.autoFocus=function(e,t,n){if(void 0===n&&(n={}),n.autoFocusPrefixMatch){for(var i=void 0,o=void 0,r=n.autoFocusPrefixMatch,s=r.toLowerCase(),a=0,u=t;an.autoFocusIndex&&(this.tree.focusNth(n.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):n.autoFocusSecondEntry?t.length>1&&this.tree.focusNth(1):n.autoFocusLastEntry&&t.length>1&&this.tree.focusLast()},t.prototype.getHeight=function(e){var n=this,i=e.renderer;if(!e){var o=i.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*o:0}var r,s=0;this.layoutDimensions&&this.layoutDimensions.height&&(r=.4*(this.layoutDimensions.height-50)),(!r||r>t.MAX_ITEMS_HEIGHT)&&(r=t.MAX_ITEMS_HEIGHT);for(var a=e.entries.filter((function(t){return n.isElementVisible(e,t)})),u=this.options.maxItemsToShow||a.length,l=0;l=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},k2=function(e,t){return function(n,i){t(n,i,e)}},I2=function(){function e(e,t){this.themeService=t,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=e}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},e.prototype.run=function(e){var t=this;this.widget&&(this.widget.destroy(),this.widget=null);var n=function(e){t.clearDecorations(),e&&t.lastKnownEditorSelection&&(t.editor.setSelection(t.lastKnownEditorSelection),t.editor.revealRangeInCenterIfOutsideViewport(t.lastKnownEditorSelection,0)),t.lastKnownEditorSelection=null,document.activeElement!==document.body&&e||t.editor.focus()};this.widget=new L2(this.editor,(function(){return n(!1)}),(function(){return n(!0)}),(function(n){t.widget.setInput(e.getModel(n),e.getAutoFocus(n))}),{inputAriaLabel:e.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},e.prototype.decorateLine=function(t,n){var i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var o=[{range:t,options:e._RANGE_HIGHLIGHT_DECORATION}],r=n.deltaDecorations(i,o);this.rangeHighlightDecorationId=r[0]},e.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},e.ID="editor.controller.quickOpenController",e._RANGE_HIGHLIGHT_DECORATION=z_.register({className:"rangeHighlight",isWholeLine:!0}),e=N2([k2(1,um)],e),e}(),F2=function(e){function t(t,n){var i=e.call(this,n)||this;return i._inputAriaLabel=t,i}return D2(t,e),t.prototype.getController=function(e){return I2.get(e)},t.prototype._show=function(e,t){e.run({inputAriaLabel:this._inputAriaLabel,getModel:function(e){return t.getModel(e)},getAutoFocus:function(e){return t.getAutoFocus(e)}})},t}(_g);Bg(I2.ID,I2);var M2=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O2=function(e){function t(t,n,i){var o=e.call(this)||this;return o.editor=n,o.decorator=i,o.parseResult=o.parseInput(t),o}return M2(t,e),t.prototype.parseInput=function(e){var t,n,i=e.split(",").map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)}));if(t=0===i.length?new mn(-1,-1):1===i.length?new mn(i[0],1):new mn(i[0],i[1]),sA(this.editor))n=this.editor.getModel();else{var o=this.editor.getModel();n=o?o.modified:null}var r,s=!!n&&n.validatePosition(t).equals(t);return r=s?t.column&&t.column>1?xr(rf.gotoLineLabelValidLineAndColumn,t.lineNumber,t.column):xr(rf.gotoLineLabelValidLine,t.lineNumber):t.lineNumber<1||t.lineNumber>(n?n.getLineCount():0)?xr(rf.gotoLineLabelEmptyWithLineLimit,n?n.getLineCount():0):xr(rf.gotoLineLabelEmptyWithLineAndColumnLimit,n?n.getLineMaxColumn(t.lineNumber):0),{position:t,isValid:s,label:r}},t.prototype.getLabel=function(){return this.parseResult.label},t.prototype.getAriaLabel=function(){var e=this.editor.getPosition(),t=e?e.lineNumber:0;return xr(rf.gotoLineAriaLabel,t,this.parseResult.label)},t.prototype.run=function(e,t){return 1===e?this.runOpen():this.runPreview()},t.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e,0),this.editor.focus(),!0},t.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(e,this.editor),!1},t.prototype.toSelection=function(){return new vn(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},t}(B1),T2=function(e){function t(){return e.call(this,rf.gotoLineActionInput,{id:"editor.action.gotoLine",label:rf.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:2085,mac:{primary:293},weight:100}})||this}return M2(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new k1([new O2(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0}}})},t}(F2);Cg(T2);var P2=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),R2=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s.key=t,s.keyAriaLabel=n,s.setHighlights(i),s.action=o,s.editor=r,s}return P2(t,e),t.prototype.getLabel=function(){return this.action.label},t.prototype.getAriaLabel=function(){return this.keyAriaLabel?xr(sf.ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):xr(sf.ariaLabelEntry,this.getLabel())},t.prototype.getGroupLabel=function(){return this.key},t.prototype.run=function(e,t){var n=this;return 1===e&&(setTimeout((function(){n.editor.focus();try{var e=n.action.run()||Promise.resolve();e.then(void 0,Ae)}catch(t){Ae(t)}}),50),!0)},t}(E1),U2=function(e){function t(){return e.call(this,sf.quickCommandActionInput,{id:"editor.action.quickCommand",label:sf.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:_S.focus,primary:Rn?571:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})||this}return P2(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(pD);this._show(this.getController(t),{getModel:function(e){return new k1(n._editorActionsToEntries(i,t,e))},getAutoFocus:function(e){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:e}}})},t.prototype._sort=function(e,t){var n=(e.getLabel()||"").toLowerCase(),i=(t.getLabel()||"").toLowerCase();return n.localeCompare(i)},t.prototype._editorActionsToEntries=function(e,t,n){for(var i=t.getSupportedActions(),o=[],r=0,s=i;r0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&0===n.indexOf(Z2)){for(var h=null,A=null,p=0,f=0;f0)):p++}A&&A.setGroupLabel(this.typeToLabel(h||"",p))}else o.length>0&&o[0].setGroupLabel(xr(af._symbols_,o.length));return o},t.prototype.typeToLabel=function(e,t){switch(e){case"module":return xr(af._modules_,t);case"class":return xr(af._class_,t);case"interface":return xr(af._interface_,t);case"method":return xr(af._method_,t);case"function":return xr(af._function_,t);case"property":return xr(af._property_,t);case"variable":return xr(af._variable_,t);case"var":return xr(af._variable2_,t);case"constructor":return xr(af._constructor_,t);case"call":return xr(af._call_,t)}return e},t.prototype.sortNormal=function(e,t,n){var i=t.getLabel().toLowerCase(),o=n.getLabel().toLowerCase(),r=i.localeCompare(o);if(0!==r)return r;var s=t.getRange(),a=n.getRange();return s.startLineNumber-a.startLineNumber},t.prototype.sortScoped=function(e,t,n){e=e.substr(Z2.length);var i=t.getType(),o=n.getType(),r=i.localeCompare(o);if(0!==r)return r;if(e){var s=t.getLabel().toLowerCase(),a=n.getLabel().toLowerCase(),u=s.localeCompare(a);if(0!==u)return u}var l=t.getRange(),c=n.getRange();return l.startLineNumber-c.startLineNumber},t}(F2);Cg(e4);var t4=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),n4=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},i4=function(e,t){return function(n,i){t(n,i,e)}},o4=function(e){function t(t,n,i,o,r,s,a){return e.call(this,!0,t,n,i,o,r,s,a)||this}return t4(t,e),t=n4([i4(1,Mp),i4(2,kn),i4(3,$p),i4(4,xn),i4(5,aT),i4(6,rp)],t),t}(Ij);Bg(Ij.ID,o4);var r4=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s4=function(e){function t(){var t=e.call(this,{id:"editor.action.toggleHighContrast",label:lf.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0})||this;return t._originalThemeName=null,t}return r4(t,e),t.prototype.run=function(e,t){var n=e.get(AD);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getTheme().themeName,n.setTheme("hc-black"))},t}(_g);Cg(s4),n.d(t,"a",(function(){return GP}))},"930f":function(e,t,n){},"94a7":function(e,t,n){},"96b9":function(e,t,n){},a87d9:function(e,t,n){},aa28:function(e,t,n){n("733c"),e.exports=n("584a").Reflect.construct},abf2:function(e,t,n){},b0b4:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("454f"),o=n.n(i),r=n("a6fa");function s(e,t){for(var n=0;n * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License */ (function(t,n){e.exports=n()})(0,(function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=55296&&o<=56319&&n>10),s%1024+56320)),(o+1===n||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"===typeof Uint8Array?[]:new Uint8Array(256),A=0;A>4,c[u++]=(15&i)<<4|o>>2,c[u++]=(3&o)<<6|63&r;return l},v=function(e){for(var t=e.length,n=[],i=0;i>y,B=1<>y,L=S+x,D=L,N=32,k=D+N,I=65536>>w,F=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>y],t=(t<>y)],t=(t<>w),t=this.index[t],t+=e>>y&M,t=this.index[t],t=(t<W?(o.push(!0),s-=W):o.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return i.push(r),n.push(oe);if(s===G||s===$){if(0===r)return i.push(r),n.push(ve);var a=n[r-1];return-1===Qe.indexOf(a)?(i.push(i[r-1]),n.push(a)):(i.push(r),n.push(ve))}return i.push(r),s===_e?n.push("strict"===t?le:Be):s===Ne||s===me?n.push(ve):s===ke?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(Be):n.push(ve):void n.push(s)})),[i,n,o]},ze=function(e,t,n,i){var o=i[n];if(Array.isArray(e)?-1!==e.indexOf(o):e===o){var r=n;while(r<=i.length){r++;var s=i[r];if(s===t)return!0;if(s!==Z)break}}if(o===Z){r=n;while(r>0){r--;var a=i[r];if(Array.isArray(e)?-1!==e.indexOf(a):e===a){var u=n;while(u<=i.length){u++;s=i[u];if(s===t)return!0;if(s!==Z)break}}if(a!==Z)break}}return!1},je=function(e,t){var n=e;while(n>=0){var i=t[n];if(i!==Z)return i;n--}return 0},Ge=function(e,t,n,i,o){if(0===n[i])return Me;var r=i-1;if(Array.isArray(o)&&!0===o[r])return Me;var s=r-1,a=r+1,u=t[r],l=s>=0?t[s]:0,c=t[a];if(u===z&&c===j)return Me;if(-1!==Re.indexOf(u))return Fe;if(-1!==Re.indexOf(c))return Me;if(-1!==Ue.indexOf(c))return Me;if(je(r,t)===X)return Oe;if(Te.get(e[r])===$)return Me;if((u===ye||u===we)&&Te.get(e[a])===$)return Me;if(u===Y||c===Y)return Me;if(u===J)return Me;if(-1===[Z,te,ie].indexOf(u)&&c===J)return Me;if(-1!==[re,se,ae,he,ge].indexOf(c))return Me;if(je(r,t)===ce)return Me;if(ze(de,ce,r,t))return Me;if(ze([re,se],le,r,t))return Me;if(ze(ee,ee,r,t))return Me;if(u===Z)return Oe;if(u===de||c===de)return Me;if(c===oe||u===oe)return Oe;if(-1!==[te,ie,le].indexOf(c)||u===ne)return Me;if(l===Se&&-1!==We.indexOf(u))return Me;if(u===ge&&c===Se)return Me;if(c===ue)return Me;if(-1!==Pe.indexOf(c)&&u===Ae||-1!==Pe.indexOf(u)&&c===Ae)return Me;if(u===fe&&-1!==[Be,ye,we].indexOf(c)||-1!==[Be,ye,we].indexOf(u)&&c===pe)return Me;if(-1!==Pe.indexOf(u)&&-1!==He.indexOf(c)||-1!==He.indexOf(u)&&-1!==Pe.indexOf(c))return Me;if(-1!==[fe,pe].indexOf(u)&&(c===Ae||-1!==[ce,ie].indexOf(c)&&t[a+1]===Ae)||-1!==[ce,ie].indexOf(u)&&c===Ae||u===Ae&&-1!==[Ae,ge,he].indexOf(c))return Me;if(-1!==[Ae,ge,he,re,se].indexOf(c)){var d=r;while(d>=0){var h=t[d];if(h===Ae)return Me;if(-1===[ge,he].indexOf(h))break;d--}}if(-1!==[fe,pe].indexOf(c)){d=-1!==[re,se].indexOf(u)?s:r;while(d>=0){h=t[d];if(h===Ae)return Me;if(-1===[ge,he].indexOf(h))break;d--}}if(Ee===u&&-1!==[Ee,xe,be,Ce].indexOf(c)||-1!==[xe,be].indexOf(u)&&-1!==[xe,Le].indexOf(c)||-1!==[Le,Ce].indexOf(u)&&c===Le)return Me;if(-1!==Ve.indexOf(u)&&-1!==[ue,pe].indexOf(c)||-1!==Ve.indexOf(c)&&u===fe)return Me;if(-1!==Pe.indexOf(u)&&-1!==Pe.indexOf(c))return Me;if(u===he&&-1!==Pe.indexOf(c))return Me;if(-1!==Pe.concat(Ae).indexOf(u)&&c===ce&&-1===Ie.indexOf(e[a])||-1!==Pe.concat(Ae).indexOf(c)&&u===se)return Me;if(u===De&&c===De){var A=n[r],p=1;while(A>0){if(A--,t[A]!==De)break;p++}if(p%2!==0)return Me}return u===ye&&c===we?Me:Oe},qe=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=Ke(e,t.lineBreak),i=n[0],o=n[1],r=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(o=o.map((function(e){return-1!==[Ae,ve,Ne].indexOf(e)?Be:e})));var s="keep-all"===t.wordBreak?r.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0;return[i,o,s]},Ye=function(){function e(e,t,n,i){this.codePoints=e,this.required=t===Fe,this.start=n,this.end=i}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Xe=function(e,t){var n=l(e),i=qe(n,t),o=i[0],r=i[1],s=i[2],a=n.length,u=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};var e=Me;while(c=Wt&&e<=57},tn=function(e){return e>=55296&&e<=57343},nn=function(e){return en(e)||e>=Yt&&e<=Jt||e>=Kt&&e<=jt},on=function(e){return e>=Kt&&e<=qt},rn=function(e){return e>=Yt&&e<=$t},sn=function(e){return on(e)||rn(e)},an=function(e){return e>=Lt},un=function(e){return e===tt||e===ot||e===rt},ln=function(e){return sn(e)||an(e)||e===pt},cn=function(e){return ln(e)||en(e)||e===ft},dn=function(e){return e>=Tt&&e<=Pt||e===Rt||e>=Ut&&e<=Ht||e===Qt},hn=function(e,t){return e===it&&t!==tt},An=function(e,t,n){return e===ft?ln(t)||hn(t,n):!!ln(e)||!(e!==it||!hn(e,t))},pn=function(e,t,n){return e===kt||e===ft?!!en(t)||t===Ot&&en(n):en(e===Ot?t:e)},fn=function(e){var t=0,n=1;e[t]!==kt&&e[t]!==ft||(e[t]===ft&&(n=-1),t++);var i=[];while(en(e[t]))i.push(e[t++]);var o=i.length?parseInt(c.apply(void 0,i),10):0;e[t]===Ot&&t++;var r=[];while(en(e[t]))r.push(e[t++]);var s=r.length,a=s?parseInt(c.apply(void 0,r),10):0;e[t]!==Xt&&e[t]!==zt||t++;var u=1;e[t]!==kt&&e[t]!==ft||(e[t]===ft&&(u=-1),t++);var l=[];while(en(e[t]))l.push(e[t++]);var d=l.length?parseInt(c.apply(void 0,l),10):0;return n*(o+a*Math.pow(10,-s))*Math.pow(10,u*d)},gn={type:2},mn={type:3},vn={type:4},_n={type:13},yn={type:8},wn={type:21},bn={type:9},Cn={type:10},Sn={type:11},Bn={type:12},En={type:14},xn={type:23},Ln={type:1},Dn={type:25},Nn={type:24},kn={type:26},In={type:27},Fn={type:28},Mn={type:29},On={type:31},Tn={type:32},Pn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){var e=[],t=this.consumeToken();while(t!==Tn)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case st:return this.consumeStringToken(st);case ut:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(cn(t)||hn(n,i)){var o=An(t,n,i)?Ze:Je,r=this.consumeName();return{type:5,value:r,flags:o}}break;case lt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),_n;break;case dt:return this.consumeStringToken(dt);case ht:return gn;case At:return mn;case Nt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),En;break;case kt:if(pn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case It:return vn;case ft:var s=e,a=this.peekCodePoint(0),u=this.peekCodePoint(1);if(pn(s,a,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(An(s,a,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===ft&&u===vt)return this.consumeCodePoint(),this.consumeCodePoint(),Nn;break;case Ot:if(pn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case nt:if(this.peekCodePoint(0)===Nt){this.consumeCodePoint();while(1){var l=this.consumeCodePoint();if(l===Nt&&(l=this.consumeCodePoint(),l===nt))return this.consumeToken();if(l===Vt)return this.consumeToken()}}break;case Ft:return kn;case Mt:return In;case mt:if(this.peekCodePoint(0)===gt&&this.peekCodePoint(1)===ft&&this.peekCodePoint(2)===ft)return this.consumeCodePoint(),this.consumeCodePoint(),Dn;break;case _t:var d=this.peekCodePoint(0),h=this.peekCodePoint(1),A=this.peekCodePoint(2);if(An(d,h,A)){r=this.consumeName();return{type:7,value:r}}break;case yt:return Fn;case it:if(hn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case wt:return Mn;case bt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),yn;break;case Ct:return Sn;case Bt:return Bn;case Gt:case Zt:var p=this.peekCodePoint(0),f=this.peekCodePoint(1);return p!==kt||!nn(f)&&f!==St||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Et:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),bn;if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),wn;break;case xt:if(this.peekCodePoint(0)===at)return this.consumeCodePoint(),Cn;break;case Vt:return Tn}return un(e)?(this.consumeWhiteSpace(),On):en(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ln(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return"undefined"===typeof e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){var e=[],t=this.consumeCodePoint();while(nn(t)&&e.length<6)e.push(t),t=this.consumeCodePoint();var n=!1;while(t===St&&e.length<6)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(c.apply(void 0,e.map((function(e){return e===St?Wt:e}))),16),o=parseInt(c.apply(void 0,e.map((function(e){return e===St?Jt:e}))),16);return{type:30,start:i,end:o}}var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===ft&&nn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();var s=[];while(nn(t)&&s.length<6)s.push(t),t=this.consumeCodePoint();o=parseInt(c.apply(void 0,s),16);return{type:30,start:r,end:o}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===ht?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ht?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Vt)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===dt||t===st){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Vt||this.peekCodePoint(0)===At)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),xn)}while(1){var i=this.consumeCodePoint();if(i===Vt||i===At)return{type:22,value:c.apply(void 0,e)};if(un(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Vt||this.peekCodePoint(0)===At?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),xn);if(i===st||i===dt||i===ht||dn(i))return this.consumeBadUrlRemnants(),xn;if(i===it){if(!hn(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),xn;e.push(this.consumeEscapedCodePoint())}else e.push(i)}},e.prototype.consumeWhiteSpace=function(){while(un(this.peekCodePoint(0)))this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){while(1){var e=this.consumeCodePoint();if(e===At||e===Vt)return;hn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){var t=5e4,n="";while(e>0){var i=Math.min(t,e);n+=c.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){var t="",n=0;do{var i=this._value[n];if(i===Vt||void 0===i||i===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(i===tt)return this._value.splice(0,n),Ln;if(i===it){var o=this._value[n+1];o!==Vt&&void 0!==o&&(o===tt?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):hn(i,o)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}while(1)},e.prototype.consumeNumber=function(){var e=[],t=$e,n=this.peekCodePoint(0);n!==kt&&n!==ft||e.push(this.consumeCodePoint());while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===Ot&&en(i)){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=et;while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}n=this.peekCodePoint(0),i=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((n===Xt||n===zt)&&((i===kt||i===ft)&&en(o)||en(i))){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=et;while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}return[fn(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],i=this.peekCodePoint(0),o=this.peekCodePoint(1),r=this.peekCodePoint(2);if(An(i,o,r)){var s=this.consumeName();return{type:15,number:t,flags:n,unit:s}}return i===ct?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(nn(e)){var t=c(e);while(nn(this.peekCodePoint(0))&&t.length<6)t+=c(this.consumeCodePoint());un(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||tn(n)||n>1114111?Dt:n}return e===Vt?Dt:e},e.prototype.consumeName=function(){var e="";while(1){var t=this.consumeCodePoint();if(cn(t))e+=c(t);else{if(!hn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Rn=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Pn;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){var e=this.consumeToken();while(31===e.type)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){var e=[];while(1){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){var t={type:e,values:[]},n=this.consumeToken();while(1){if(32===n.type||Gn(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){var t={name:e.value,values:[],type:18};while(1){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return"undefined"===typeof e?Tn:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Un=function(e){return 15===e.type},Hn=function(e){return 17===e.type},Qn=function(e){return 20===e.type},Vn=function(e){return 0===e.type},Wn=function(e,t){return Qn(e)&&e.value===t},Kn=function(e){return 31!==e.type},zn=function(e){return 31!==e.type&&4!==e.type},jn=function(e){var t=[],n=[];return e.forEach((function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)})),n.length&&t.push(n),t},Gn=function(e,t){return 11===t&&12===e.type||(28===t&&29===e.type||2===t&&3===e.type)},qn=function(e){return 17===e.type||15===e.type},Yn=function(e){return 16===e.type||qn(e)},Xn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Jn={type:17,number:0,flags:$e},Zn={type:16,number:50,flags:$e},$n={type:16,number:100,flags:$e},ei=function(e,t,n){var i=e[0],o=e[1];return[ti(i,t),ti("undefined"!==typeof o?o:i,n)]},ti=function(e,t){if(16===e.type)return e.number/100*t;if(Un(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},ni="deg",ii="grad",oi="rad",ri="turn",si={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case ni:return Math.PI*t.number/180;case ii:return Math.PI/200*t.number;case oi:return t.number;case ri:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},ai=function(e){return 15===e.type&&(e.unit===ni||e.unit===ii||e.unit===oi||e.unit===ri)},ui=function(e){var t=e.filter(Qn).map((function(e){return e.value})).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Jn,Jn];case"to top":case"bottom":return li(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Jn,$n];case"to right":case"left":return li(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$n,$n];case"to bottom":case"top":return li(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$n,Jn];case"to left":case"right":return li(270)}return 0},li=function(e){return Math.PI*e/180},ci={name:"color",parse:function(e,t){if(18===t.type){var n=vi[t.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var i=t.value.substring(0,1),o=t.value.substring(1,2),r=t.value.substring(2,3);return Ai(parseInt(i+i,16),parseInt(o+o,16),parseInt(r+r,16),1)}if(4===t.value.length){i=t.value.substring(0,1),o=t.value.substring(1,2),r=t.value.substring(2,3);var s=t.value.substring(3,4);return Ai(parseInt(i+i,16),parseInt(o+o,16),parseInt(r+r,16),parseInt(s+s,16)/255)}if(6===t.value.length){i=t.value.substring(0,2),o=t.value.substring(2,4),r=t.value.substring(4,6);return Ai(parseInt(i,16),parseInt(o,16),parseInt(r,16),1)}if(8===t.value.length){i=t.value.substring(0,2),o=t.value.substring(2,4),r=t.value.substring(4,6),s=t.value.substring(6,8);return Ai(parseInt(i,16),parseInt(o,16),parseInt(r,16),parseInt(s,16)/255)}}if(20===t.type){var a=yi[t.value.toUpperCase()];if("undefined"!==typeof a)return a}return yi.TRANSPARENT}},di=function(e){return 0===(255&e)},hi=function(e){var t=255&e,n=255&e>>8,i=255&e>>16,o=255&e>>24;return t<255?"rgba("+o+","+i+","+n+","+t/255+")":"rgb("+o+","+i+","+n+")"},Ai=function(e,t,n,i){return(e<<24|t<<16|n<<8|Math.round(255*i)<<0)>>>0},pi=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},fi=function(e,t){var n=t.filter(zn);if(3===n.length){var i=n.map(pi),o=i[0],r=i[1],s=i[2];return Ai(o,r,s,1)}if(4===n.length){var a=n.map(pi),u=(o=a[0],r=a[1],s=a[2],a[3]);return Ai(o,r,s,u)}return 0};function gi(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var mi=function(e,t){var n=t.filter(zn),i=n[0],o=n[1],r=n[2],s=n[3],a=(17===i.type?li(i.number):si.parse(e,i))/(2*Math.PI),u=Yn(o)?o.number/100:0,l=Yn(r)?r.number/100:0,c="undefined"!==typeof s&&Yn(s)?ti(s,1):1;if(0===u)return Ai(255*l,255*l,255*l,1);var d=l<=.5?l*(u+1):l+u-l*u,h=2*l-d,A=gi(h,d,a+1/3),p=gi(h,d,a),f=gi(h,d,a-1/3);return Ai(255*A,255*p,255*f,c)},vi={hsl:mi,hsla:mi,rgb:fi,rgba:fi},_i=function(e,t){return ci.parse(e,Rn.create(t).parseComponentValue())},yi={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},wi={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Qn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},bi={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ci=function(e,t){var n=ci.parse(e,t[0]),i=t[1];return i&&Yn(i)?{color:n,stop:i}:{color:n,stop:null}},Si=function(e,t){var n=e[0],i=e[e.length-1];null===n.stop&&(n.stop=Jn),null===i.stop&&(i.stop=$n);for(var o=[],r=0,s=0;sr?o.push(u):o.push(r),r=u}else o.push(null)}var l=null;for(s=0;se.optimumDistance)?{optimumCorner:t,optimumDistance:a}:e}),{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},Di=function(e,t,n,i,o){var r=0,s=0;switch(e.size){case 0:0===e.shape?r=s=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-o)):1===e.shape&&(r=Math.min(Math.abs(t),Math.abs(t-i)),s=Math.min(Math.abs(n),Math.abs(n-o)));break;case 2:if(0===e.shape)r=s=Math.min(xi(t,n),xi(t,n-o),xi(t-i,n),xi(t-i,n-o));else if(1===e.shape){var a=Math.min(Math.abs(n),Math.abs(n-o))/Math.min(Math.abs(t),Math.abs(t-i)),u=Li(i,o,t,n,!0),l=u[0],c=u[1];r=xi(l-t,(c-n)/a),s=a*r}break;case 1:0===e.shape?r=s=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-o)):1===e.shape&&(r=Math.max(Math.abs(t),Math.abs(t-i)),s=Math.max(Math.abs(n),Math.abs(n-o)));break;case 3:if(0===e.shape)r=s=Math.max(xi(t,n),xi(t,n-o),xi(t-i,n),xi(t-i,n-o));else if(1===e.shape){a=Math.max(Math.abs(n),Math.abs(n-o))/Math.max(Math.abs(t),Math.abs(t-i));var d=Li(i,o,t,n,!1);l=d[0],c=d[1];r=xi(l-t,(c-n)/a),s=a*r}break}return Array.isArray(e.size)&&(r=ti(e.size[0],i),s=2===e.size.length?ti(e.size[1],o):r),[r,s]},Ni=function(e,t){var n=li(180),i=[];return jn(t).forEach((function(t,o){if(0===o){var r=t[0];if(20===r.type&&"to"===r.value)return void(n=ui(t));if(ai(r))return void(n=si.parse(e,r))}var s=Ci(e,t);i.push(s)})),{angle:n,stops:i,type:1}},ki=function(e,t){var n=li(180),i=[];return jn(t).forEach((function(t,o){if(0===o){var r=t[0];if(20===r.type&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(n=ui(t));if(ai(r))return void(n=(si.parse(e,r)+li(270))%li(360))}var s=Ci(e,t);i.push(s)})),{angle:n,stops:i,type:1}},Ii=function(e,t){var n=li(180),i=[],o=1,r=0,s=3,a=[];return jn(t).forEach((function(t,n){var r=t[0];if(0===n){if(Qn(r)&&"linear"===r.value)return void(o=1);if(Qn(r)&&"radial"===r.value)return void(o=2)}if(18===r.type)if("from"===r.name){var s=ci.parse(e,r.values[0]);i.push({stop:Jn,color:s})}else if("to"===r.name){s=ci.parse(e,r.values[0]);i.push({stop:$n,color:s})}else if("color-stop"===r.name){var a=r.values.filter(zn);if(2===a.length){s=ci.parse(e,a[1]);var u=a[0];Hn(u)&&i.push({stop:{type:16,number:100*u.number,flags:u.flags},color:s})}}})),1===o?{angle:(n+li(180))%li(360),stops:i,type:o}:{size:s,shape:r,stops:i,position:a,type:o}},Fi="closest-side",Mi="farthest-side",Oi="closest-corner",Ti="farthest-corner",Pi="circle",Ri="ellipse",Ui="cover",Hi="contain",Qi=function(e,t){var n=0,i=3,o=[],r=[];return jn(t).forEach((function(t,s){var a=!0;if(0===s){var u=!1;a=t.reduce((function(e,t){if(u)if(Qn(t))switch(t.value){case"center":return r.push(Zn),e;case"top":case"left":return r.push(Jn),e;case"right":case"bottom":return r.push($n),e}else(Yn(t)||qn(t))&&r.push(t);else if(Qn(t))switch(t.value){case Pi:return n=0,!1;case Ri:return n=1,!1;case"at":return u=!0,!1;case Fi:return i=0,!1;case Ui:case Mi:return i=1,!1;case Hi:case Oi:return i=2,!1;case Ti:return i=3,!1}else if(qn(t)||Yn(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return e}),a)}if(a){var l=Ci(e,t);o.push(l)}})),{size:i,shape:n,stops:o,position:r,type:2}},Vi=function(e,t){var n=0,i=3,o=[],r=[];return jn(t).forEach((function(t,s){var a=!0;if(0===s?a=t.reduce((function(e,t){if(Qn(t))switch(t.value){case"center":return r.push(Zn),!1;case"top":case"left":return r.push(Jn),!1;case"right":case"bottom":return r.push($n),!1}else if(Yn(t)||qn(t))return r.push(t),!1;return e}),a):1===s&&(a=t.reduce((function(e,t){if(Qn(t))switch(t.value){case Pi:return n=0,!1;case Ri:return n=1,!1;case Hi:case Fi:return i=0,!1;case Mi:return i=1,!1;case Oi:return i=2,!1;case Ui:case Ti:return i=3,!1}else if(qn(t)||Yn(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return e}),a)),a){var u=Ci(e,t);o.push(u)}})),{size:i,shape:n,stops:o,position:r,type:2}},Wi=function(e){return 1===e.type},Ki=function(e){return 2===e.type},zi={name:"image",parse:function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var i=qi[t.name];if("undefined"===typeof i)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return i(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function ji(e){return!(20===e.type&&"none"===e.value)&&(18!==e.type||!!qi[e.name])}var Gi,qi={"linear-gradient":Ni,"-moz-linear-gradient":ki,"-ms-linear-gradient":ki,"-o-linear-gradient":ki,"-webkit-linear-gradient":ki,"radial-gradient":Qi,"-moz-radial-gradient":Vi,"-ms-radial-gradient":Vi,"-o-radial-gradient":Vi,"-webkit-radial-gradient":Vi,"-webkit-gradient":Ii},Yi={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter((function(e){return zn(e)&&ji(e)})).map((function(t){return zi.parse(e,t)}))}},Xi={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Qn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ji={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return jn(t).map((function(e){return e.filter(Yn)})).map(Xn)}},Zi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return jn(t).map((function(e){return e.filter(Qn).map((function(e){return e.value})).join(" ")})).map($i)}},$i=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(e){e["AUTO"]="auto",e["CONTAIN"]="contain",e["COVER"]="cover"})(Gi||(Gi={}));var eo,to={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return jn(t).map((function(e){return e.filter(no)}))}},no=function(e){return Qn(e)||Yn(e)},io=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},oo=io("top"),ro=io("right"),so=io("bottom"),ao=io("left"),uo=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Xn(t.filter(Yn))}}},lo=uo("top-left"),co=uo("top-right"),ho=uo("bottom-right"),Ao=uo("bottom-left"),po=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},fo=po("top"),go=po("right"),mo=po("bottom"),vo=po("left"),_o=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Un(t)?t.number:0}}},yo=_o("top"),wo=_o("right"),bo=_o("bottom"),Co=_o("left"),So={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bo={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},Eo={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Qn).reduce((function(e,t){return e|xo(t.value)}),0)}},xo=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Lo={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Do={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};(function(e){e["NORMAL"]="normal",e["STRICT"]="strict"})(eo||(eo={}));var No,ko={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return eo.STRICT;case"normal":default:return eo.NORMAL}}},Io={name:"line-height",initialValue:"normal",prefix:!1,type:4},Fo=function(e,t){return Qn(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Yn(e)?ti(e,t):t},Mo={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:zi.parse(e,t)}},Oo={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},To={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Po=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Ro=Po("top"),Uo=Po("right"),Ho=Po("bottom"),Qo=Po("left"),Vo={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Qn).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Wo={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ko=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},zo=Ko("top"),jo=Ko("right"),Go=Ko("bottom"),qo=Ko("left"),Yo={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Xo={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Jo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Wn(t[0],"none")?[]:jn(t).map((function(t){for(var n={color:yi.TRANSPARENT,offsetX:Jn,offsetY:Jn,blur:Jn},i=0,o=0;o1?1:0],this.overflowWrap=Ir(e,Wo,t.overflowWrap),this.paddingTop=Ir(e,zo,t.paddingTop),this.paddingRight=Ir(e,jo,t.paddingRight),this.paddingBottom=Ir(e,Go,t.paddingBottom),this.paddingLeft=Ir(e,qo,t.paddingLeft),this.paintOrder=Ir(e,Er,t.paintOrder),this.position=Ir(e,Xo,t.position),this.textAlign=Ir(e,Yo,t.textAlign),this.textDecorationColor=Ir(e,dr,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=Ir(e,hr,null!==(i=t.textDecorationLine)&&void 0!==i?i:t.textDecoration),this.textShadow=Ir(e,Jo,t.textShadow),this.textTransform=Ir(e,Zo,t.textTransform),this.transform=Ir(e,$o,t.transform),this.transformOrigin=Ir(e,rr,t.transformOrigin),this.visibility=Ir(e,sr,t.visibility),this.webkitTextStrokeColor=Ir(e,xr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ir(e,Lr,t.webkitTextStrokeWidth),this.wordBreak=Ir(e,ar,t.wordBreak),this.zIndex=Ir(e,ur,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return di(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return vr(this.display,4)||vr(this.display,33554432)||vr(this.display,268435456)||vr(this.display,536870912)||vr(this.display,67108864)||vr(this.display,134217728)},e}(),Nr=function(){function e(e,t){this.content=Ir(e,_r,t.content),this.quotes=Ir(e,Cr,t.quotes)}return e}(),kr=function(){function e(e,t){this.counterIncrement=Ir(e,yr,t.counterIncrement),this.counterReset=Ir(e,wr,t.counterReset)}return e}(),Ir=function(e,t,n){var i=new Pn,o=null!==n&&"undefined"!==typeof n?n.toString():t.initialValue;i.write(o);var r=new Rn(i.read());switch(t.type){case 2:var s=r.parseComponentValue();return t.parse(e,Qn(s)?s.value:t.initialValue);case 0:return t.parse(e,r.parseComponentValue());case 1:return t.parse(e,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(t.format){case"angle":return si.parse(e,r.parseComponentValue());case"color":return ci.parse(e,r.parseComponentValue());case"image":return zi.parse(e,r.parseComponentValue());case"length":var a=r.parseComponentValue();return qn(a)?a:Jn;case"length-percentage":var u=r.parseComponentValue();return Yn(u)?u:Jn;case"time":return lr.parse(e,r.parseComponentValue())}break}},Fr="data-html2canvas-debug",Mr=function(e){var t=e.getAttribute(Fr);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Or=function(e,t){var n=Mr(e);return 1===n||t===n},Tr=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Or(t,3),this.styles=new Dr(e,window.getComputedStyle(t,null)),Na(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=a(this.context,t),Or(t,4)&&(this.flags|=16)}return e}(),Pr="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNw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AAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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gAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Rr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ur="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Hr=0;Hr>4,c[u++]=(15&i)<<4|o>>2,c[u++]=(3&o)<<6|63&r;return l},Vr=function(e){for(var t=e.length,n=[],i=0;i>Kr,Yr=1<>Kr,Zr=qr+Jr,$r=Zr,es=32,ts=$r+es,ns=65536>>zr,is=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Kr],t=(t<>Kr)],t=(t<>zr),t=this.index[t],t+=e>>Kr&os,t=this.index[t],t=(t<=55296&&o<=56319&&n>10),s%1024+56320)),(o+1===n||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},Ds=as(Pr),Ns="×",ks="÷",Is=function(e){return Ds.get(e)},Fs=function(e,t,n){var i=n-2,o=t[i],r=t[n-1],s=t[n];if(r===ps&&s===fs)return Ns;if(r===ps||r===fs||r===gs)return ks;if(s===ps||s===fs||s===gs)return ks;if(r===_s&&-1!==[_s,ys,bs,Cs].indexOf(s))return Ns;if((r===bs||r===ys)&&(s===ys||s===ws))return Ns;if((r===Cs||r===ws)&&s===ws)return Ns;if(s===Ss||s===ms)return Ns;if(s===vs)return Ns;if(r===As)return Ns;if(r===Ss&&s===Bs){while(o===ms)o=t[--i];if(o===Bs)return Ns}if(r===Es&&s===Es){var a=0;while(o===Es)a++,o=t[--i];if(a%2===0)return Ns}return ks},Ms=function(e){var t=xs(e),n=t.length,i=0,o=0,r=t.map(Is);return{next:function(){if(i>=n)return{done:!0,value:null};var e=Ns;while(is.x||o.y>s.y;return s=o,0===t||a}));return e.body.removeChild(t),a},Rs=function(){return"undefined"!==typeof(new Image).crossOrigin},Us=function(){return"string"===typeof(new XMLHttpRequest).responseType},Hs=function(e){var t=new Image,n=e.createElement("canvas"),i=n.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,";try{i.drawImage(t,0,0),n.toDataURL()}catch(zt){return!1}return!0},Qs=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Vs=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var i=t.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,n,n);var o=new Image,r=t.toDataURL();o.src=r;var s=Ws(n,n,0,0,o);return i.fillStyle="red",i.fillRect(0,0,n,n),Ks(s).then((function(t){i.drawImage(t,0,0);var o=i.getImageData(0,0,n,n).data;i.fillStyle="red",i.fillRect(0,0,n,n);var s=e.createElement("div");return s.style.backgroundImage="url("+r+")",s.style.height=n+"px",Qs(o)?Ks(Ws(n,n,0,0,s)):Promise.reject(!1)})).then((function(e){return i.drawImage(e,0,0),Qs(i.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},Ws=function(e,t,n,i,o){var r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",i.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(o),s},Ks=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){return t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},zs={get SUPPORT_RANGE_BOUNDS(){var e=Ts(document);return Object.defineProperty(zs,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=zs.SUPPORT_RANGE_BOUNDS&&Ps(document);return Object.defineProperty(zs,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Hs(document);return Object.defineProperty(zs,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"===typeof Array.from&&"function"===typeof window.fetch?Vs(document):Promise.resolve(!1);return Object.defineProperty(zs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=Rs();return Object.defineProperty(zs,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Us();return Object.defineProperty(zs,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(zs,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(zs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},js=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Gs=function(e,t,n,i){var o=Zs(t,n),r=[],a=0;return o.forEach((function(t){if(n.textDecorationLine.length||t.trim().length>0)if(zs.SUPPORT_RANGE_BOUNDS){var o=Ys(i,a,t.length).getClientRects();if(o.length>1){var u=Xs(t),l=0;u.forEach((function(t){r.push(new js(t,s.fromDOMRectList(e,Ys(i,l+a,t.length).getClientRects()))),l+=t.length}))}else r.push(new js(t,s.fromDOMRectList(e,o)))}else{var c=i.splitText(t.length);r.push(new js(t,qs(e,i))),i=c}else zs.SUPPORT_RANGE_BOUNDS||(i=i.splitText(t.length));a+=t.length})),r},qs=function(e,t){var n=t.ownerDocument;if(n){var i=n.createElement("html2canvaswrapper");i.appendChild(t.cloneNode(!0));var o=t.parentNode;if(o){o.replaceChild(i,t);var r=a(e,i);return i.firstChild&&o.replaceChild(i.firstChild,i),r}}return s.EMPTY},Ys=function(e,t,n){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var o=i.createRange();return o.setStart(e,t),o.setEnd(e,t+n),o},Xs=function(e){if(zs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return Os(e)},Js=function(e,t){if(zs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map((function(e){return e.segment}))}return ea(e,t)},Zs=function(e,t){return 0!==t.letterSpacing?Xs(e):Js(e,t)},$s=[32,160,4961,65792,65793,4153,4241],ea=function(e,t){var n,i=Xe(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),o=[],r=function(){if(n.value){var e=n.value.slice(),t=l(e),i="";t.forEach((function(e){-1===$s.indexOf(e)?i+=c(e):(i.length&&o.push(i),o.push(c(e)),i="")})),i.length&&o.push(i)}};while(!(n=i.next()).done)r();return o},ta=function(){function e(e,t,n){this.text=na(t.data,n.textTransform),this.textBounds=Gs(e,this.text,n,t)}return e}(),na=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(ia,oa);case 2:return e.toUpperCase();default:return e}},ia=/(^|\s|:|-|\(|\))([a-z])/g,oa=function(e,t,n){return e.length>0?t+n.toUpperCase():e},ra=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return t(n,e),n}(Tr),sa=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return t(n,e),n}(Tr),aa=function(e){function n(t,n){var i=e.call(this,t,n)||this,o=new XMLSerializer,r=a(t,n);return n.setAttribute("width",r.width+"px"),n.setAttribute("height",r.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(o.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return t(n,e),n}(Tr),ua=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.value=n.value,i}return t(n,e),n}(Tr),la=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.start=n.start,i.reversed="boolean"===typeof n.reversed&&!0===n.reversed,i}return t(n,e),n}(Tr),ca=[{type:15,flags:0,unit:"px",number:3}],da=[{type:16,flags:0,number:50}],ha=function(e){return e.width>e.height?new s(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)n.textNodes.push(new ta(e,o,n.styles));else if(Da(o))if(ja(o)&&o.assignedNodes)o.assignedNodes().forEach((function(t){return Ca(e,t,n,i)}));else{var s=Sa(e,o);s.styles.isVisible()&&(Ea(o,s,i)?s.flags|=4:xa(s.styles)&&(s.flags|=2),-1!==ba.indexOf(o.tagName)&&(s.flags|=8),n.elements.push(s),o.slot,o.shadowRoot?Ca(e,o.shadowRoot,s,i):Ka(o)||Ta(o)||za(o)||Ca(e,o,s,i))}},Sa=function(e,t){return Ha(t)?new ra(e,t):Ra(t)?new sa(e,t):Ta(t)?new aa(e,t):Ia(t)?new ua(e,t):Fa(t)?new la(e,t):Ma(t)?new va(e,t):za(t)?new _a(e,t):Ka(t)?new ya(e,t):Qa(t)?new wa(e,t):new Tr(e,t)},Ba=function(e,t){var n=Sa(e,t);return n.flags|=4,Ca(e,t,n,n),n},Ea=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Pa(e)&&n.styles.isTransparent()},xa=function(e){return e.isPositioned()||e.isFloating()},La=function(e){return e.nodeType===Node.TEXT_NODE},Da=function(e){return e.nodeType===Node.ELEMENT_NODE},Na=function(e){return Da(e)&&"undefined"!==typeof e.style&&!ka(e)},ka=function(e){return"object"===typeof e.className},Ia=function(e){return"LI"===e.tagName},Fa=function(e){return"OL"===e.tagName},Ma=function(e){return"INPUT"===e.tagName},Oa=function(e){return"HTML"===e.tagName},Ta=function(e){return"svg"===e.tagName},Pa=function(e){return"BODY"===e.tagName},Ra=function(e){return"CANVAS"===e.tagName},Ua=function(e){return"VIDEO"===e.tagName},Ha=function(e){return"IMG"===e.tagName},Qa=function(e){return"IFRAME"===e.tagName},Va=function(e){return"STYLE"===e.tagName},Wa=function(e){return"SCRIPT"===e.tagName},Ka=function(e){return"TEXTAREA"===e.tagName},za=function(e){return"SELECT"===e.tagName},ja=function(e){return"SLOT"===e.tagName},Ga=function(e){return e.tagName.indexOf("-")>0},qa=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,i=e.counterReset,o=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(o=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)}));var r=[];return o&&i.forEach((function(e){var n=t.counters[e.counter];r.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),r},e}(),Ya={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Xa={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ja={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Za={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$a=function(e,t,n,i,o,r){return en?hu(e,o,r.length>0):i.integers.reduce((function(t,n,o){while(e>=n)e-=n,t+=i.values[o];return t}),"")+r},eu=function(e,t,n,i){var o="";do{n||e--,o=i(e)+o,e/=t}while(e*t>=t);return o},tu=function(e,t,n,i,o){var r=n-t+1;return(e<0?"-":"")+(eu(Math.abs(e),r,i,(function(e){return c(Math.floor(e%r)+t)}))+o)},nu=function(e,t,n){void 0===n&&(n=". ");var i=t.length;return eu(Math.abs(e),i,!1,(function(e){return t[Math.floor(e%i)]}))+n},iu=1,ou=2,ru=4,su=8,au=function(e,t,n,i,o,r){if(e<-9999||e>9999)return hu(e,4,o.length>0);var s=Math.abs(e),a=o;if(0===s)return t[0]+a;for(var u=0;s>0&&u<=4;u++){var l=s%10;0===l&&vr(r,iu)&&""!==a?a=t[l]+a:l>1||1===l&&0===u||1===l&&1===u&&vr(r,ou)||1===l&&1===u&&vr(r,ru)&&e>100||1===l&&u>1&&vr(r,su)?a=t[l]+(u>0?n[u-1]:"")+a:1===l&&u>0&&(a=n[u-1]+a),s=Math.floor(s/10)}return(e<0?i:"")+a},uu="十百千萬",lu="拾佰仟萬",cu="マイナス",du="마이너스",hu=function(e,t,n){var i=n?". ":"",o=n?"、":"",r=n?", ":"",s=n?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var a=tu(e,48,57,!0,i);return a.length<4?"0"+a:a;case 4:return nu(e,"〇一二三四五六七八九",o);case 6:return $a(e,1,3999,Ya,3,i).toLowerCase();case 7:return $a(e,1,3999,Ya,3,i);case 8:return tu(e,945,969,!1,i);case 9:return tu(e,97,122,!1,i);case 10:return tu(e,65,90,!1,i);case 11:return tu(e,1632,1641,!0,i);case 12:case 49:return $a(e,1,9999,Xa,3,i);case 35:return $a(e,1,9999,Xa,3,i).toLowerCase();case 13:return tu(e,2534,2543,!0,i);case 14:case 30:return tu(e,6112,6121,!0,i);case 15:return nu(e,"子丑寅卯辰巳午未申酉戌亥",o);case 16:return nu(e,"甲乙丙丁戊己庚辛壬癸",o);case 17:case 48:return au(e,"零一二三四五六七八九",uu,"負",o,ou|ru|su);case 47:return au(e,"零壹貳參肆伍陸柒捌玖",lu,"負",o,iu|ou|ru|su);case 42:return au(e,"零一二三四五六七八九",uu,"负",o,ou|ru|su);case 41:return au(e,"零壹贰叁肆伍陆柒捌玖",lu,"负",o,iu|ou|ru|su);case 26:return au(e,"〇一二三四五六七八九","十百千万",cu,o,0);case 25:return au(e,"零壱弐参四伍六七八九","拾百千万",cu,o,iu|ou|ru);case 31:return au(e,"영일이삼사오육칠팔구","십백천만",du,r,iu|ou|ru);case 33:return au(e,"零一二三四五六七八九","十百千萬",du,r,0);case 32:return au(e,"零壹貳參四五六七八九","拾百千",du,r,iu|ou|ru);case 18:return tu(e,2406,2415,!0,i);case 20:return $a(e,1,19999,Za,3,i);case 21:return tu(e,2790,2799,!0,i);case 22:return tu(e,2662,2671,!0,i);case 22:return $a(e,1,10999,Ja,3,i);case 23:return nu(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return nu(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return tu(e,3302,3311,!0,i);case 28:return nu(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",o);case 29:return nu(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",o);case 34:return tu(e,3792,3801,!0,i);case 37:return tu(e,6160,6169,!0,i);case 38:return tu(e,4160,4169,!0,i);case 39:return tu(e,2918,2927,!0,i);case 40:return tu(e,1776,1785,!0,i);case 43:return tu(e,3046,3055,!0,i);case 44:return tu(e,3174,3183,!0,i);case 45:return tu(e,3664,3673,!0,i);case 46:return tu(e,3872,3881,!0,i);case 3:default:return tu(e,48,57,!0,i)}},Au="data-html2canvas-ignore",pu=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new qa,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,r=gu(e,t);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,u=r.contentWindow,l=u.document,c=_u(r).then((function(){return i(n,void 0,void 0,(function(){var e,n;return o(this,(function(i){switch(i.label){case 0:return this.scrolledElements.forEach(Su),u&&(u.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||u.scrollY===t.top&&u.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-t.left,u.scrollY-t.top,0,0))),e=this.options.onclone,n=this.clonedReferenceElement,"undefined"===typeof n?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:i.sent(),i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,vu(l)]:[3,4];case 3:i.sent(),i.label=4;case 4:return"function"===typeof e?[2,Promise.resolve().then((function(){return e(l,n)})).then((function(){return r}))]:[2,r]}}))}))}));return l.open(),l.write(bu(document.doctype)+""),Cu(this.referenceElement.ownerDocument,s,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){if(Or(e,2),Ra(e))return this.createCanvasClone(e);if(Ua(e))return this.createVideoClone(e);if(Va(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Ha(t)&&(Ha(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Ga(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return wu(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"===typeof t.cssText?e+t.cssText:e}),""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(zt){if(this.context.logger.error("Unable to access cssRules property",zt),"SecurityError"!==zt.name)throw zt}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(zt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var o=e.getContext("2d"),r=i.getContext("2d");if(r)if(!this.options.allowTaint&&o)r.putImageData(o.getImageData(0,0,e.width,e.height),0,0);else{var s=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(s){var a=s.getContextAttributes();!1===(null===a||void 0===a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}r.drawImage(e,0,0)}return i}catch(zt){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(zt){this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},e.prototype.appendChildNode=function(e,t,n){Da(t)&&(Wa(t)||t.hasAttribute(Au)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Da(t)&&Va(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var i=this,o=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;o;o=o.nextSibling)if(Da(o)&&ja(o)&&"function"===typeof o.assignedNodes){var r=o.assignedNodes();r.length&&r.forEach((function(e){return i.appendChildNode(t,e,n)}))}else this.appendChildNode(t,o,n)},e.prototype.cloneNode=function(e,t){if(La(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&Da(e)&&(Na(e)||ka(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var o=n.getComputedStyle(e),r=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&Na(i)&&(this.clonedReferenceElement=i),Pa(i)&&Nu(i);var a=this.counters.parse(new kr(this.context,o)),u=this.resolvePseudoContent(e,i,r,hs.BEFORE);Ga(e)&&(t=!0),Ua(e)||this.cloneChildNodes(e,i,t),u&&i.insertBefore(u,i.firstChild);var l=this.resolvePseudoContent(e,i,s,hs.AFTER);return l&&i.appendChild(l),this.counters.pop(a),(o&&(this.options.copyStyles||ka(e))&&!Qa(e)||t)&&wu(o,i),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(Ka(e)||za(e))&&(Ka(i)||za(i))&&(i.value=e.value),i}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,i){var o=this;if(n){var r=n.content,s=t.ownerDocument;if(s&&r&&"none"!==r&&"-moz-alt-content"!==r&&"none"!==n.display){this.counters.parse(new kr(this.context,n));var a=new Nr(this.context,n),u=s.createElement("html2canvaspseudoelement");wu(n,u),a.content.forEach((function(t){if(0===t.type)u.appendChild(s.createTextNode(t.value));else if(22===t.type){var n=s.createElement("img");n.src=t.value,n.style.opacity="1",u.appendChild(n)}else if(18===t.type){if("attr"===t.name){var i=t.values.filter(Qn);i.length&&u.appendChild(s.createTextNode(e.getAttribute(i[0].value)||""))}else if("counter"===t.name){var r=t.values.filter(zn),l=r[0],c=r[1];if(l&&Qn(l)){var d=o.counters.getCounterValue(l.value),h=c&&Qn(c)?To.parse(o.context,c.value):3;u.appendChild(s.createTextNode(hu(d,h,!1)))}}else if("counters"===t.name){var A=t.values.filter(zn),p=(l=A[0],A[1]);c=A[2];if(l&&Qn(l)){var f=o.counters.getCounterValues(l.value),g=c&&Qn(c)?To.parse(o.context,c.value):3,m=p&&0===p.type?p.value:"",v=f.map((function(e){return hu(e,g,!1)})).join(m);u.appendChild(s.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":u.appendChild(s.createTextNode(Sr(a.quotes,o.quoteDepth++,!0)));break;case"close-quote":u.appendChild(s.createTextNode(Sr(a.quotes,--o.quoteDepth,!1)));break;default:u.appendChild(s.createTextNode(t.value))}})),u.className=xu+" "+Lu;var l=i===hs.BEFORE?" "+xu:" "+Lu;return ka(t)?t.className.baseValue+=l:t.className+=l,u}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(function(e){e[e["BEFORE"]=0]="BEFORE",e[e["AFTER"]=1]="AFTER"})(hs||(hs={}));var fu,gu=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(Au,"true"),e.body.appendChild(n),n},mu=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},vu=function(e){return Promise.all([].slice.call(e.images,0).map(mu))},_u=function(e){return new Promise((function(t,n){var i=e.contentWindow;if(!i)return n("No window assigned for iframe");var o=i.document;i.onload=e.onload=function(){i.onload=e.onload=null;var n=setInterval((function(){o.body.childNodes.length>0&&"complete"===o.readyState&&(clearInterval(n),t(e))}),50)}}))},yu=["all","d","content"],wu=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e.item(n);-1===yu.indexOf(i)&&t.style.setProperty(i,e.getPropertyValue(i))}return t},bu=function(e){var t="";return e&&(t+=""),t},Cu=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},Su=function(e){var t=e[0],n=e[1],i=e[2];t.scrollLeft=n,t.scrollTop=i},Bu=":before",Eu=":after",xu="___html2canvas___pseudoelement_before",Lu="___html2canvas___pseudoelement_after",Du='{\n content: "" !important;\n display: none !important;\n}',Nu=function(e){ku(e,"."+xu+Bu+Du+"\n ."+Lu+Eu+Du)},ku=function(e,t){var n=e.ownerDocument;if(n){var i=n.createElement("style");i.textContent=t,e.appendChild(i)}},Iu=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),Fu=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Hu(e)||Pu(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return i(this,void 0,void 0,(function(){var t,n,i,r,s=this;return o(this,(function(o){switch(o.label){case 0:return t=Iu.isSameOrigin(e),n=!Ru(e)&&!0===this._options.useCORS&&zs.SUPPORT_CORS_IMAGES&&!t,i=!Ru(e)&&!t&&!Hu(e)&&"string"===typeof this._options.proxy&&zs.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Ru(e)||Hu(e)||i||n?(r=e,i?[4,this.proxy(r)]:[3,2]):[2];case 1:r=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var i=new Image;i.onload=function(){return e(i)},i.onerror=t,(Uu(r)||n)&&(i.crossOrigin="anonymous"),i.src=r,!0===i.complete&&setTimeout((function(){return e(i)}),500),s._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,o.sent()]}}))}))},e.prototype.has=function(e){return"undefined"!==typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise((function(o,r){var s=zs.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===s)o(a.response);else{var e=new FileReader;e.addEventListener("load",(function(){return o(e.result)}),!1),e.addEventListener("error",(function(e){return r(e)}),!1),e.readAsDataURL(a.response)}else r("Failed to proxy resource "+i+" with status code "+a.status)},a.onerror=r;var u=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+u+"url="+encodeURIComponent(e)+"&responseType="+s),"text"!==s&&a instanceof XMLHttpRequest&&(a.responseType=s),t._options.imageTimeout){var l=t._options.imageTimeout;a.timeout=l,a.ontimeout=function(){return r("Timed out ("+l+"ms) proxying "+i)}}a.send()}))},e}(),Mu=/^data:image\/svg\+xml/i,Ou=/^data:image\/.*;base64,/i,Tu=/^data:image\/.*/i,Pu=function(e){return zs.SUPPORT_SVG_DRAWING||!Qu(e)},Ru=function(e){return Tu.test(e)},Uu=function(e){return Ou.test(e)},Hu=function(e){return"blob"===e.substr(0,4)},Qu=function(e){return"svg"===e.substr(-3).toLowerCase()||Mu.test(e)},Vu=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Wu=function(e,t,n){return new Vu(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Ku=function(){function e(e,t,n,i){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=i}return e.prototype.subdivide=function(t,n){var i=Wu(this.start,this.startControl,t),o=Wu(this.startControl,this.endControl,t),r=Wu(this.endControl,this.end,t),s=Wu(i,o,t),a=Wu(o,r,t),u=Wu(s,a,t);return n?new e(this.start,i,s,u):new e(u,a,r,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),zu=function(e){return 1===e.type},ju=function(){function e(e){var t=e.styles,n=e.bounds,i=ei(t.borderTopLeftRadius,n.width,n.height),o=i[0],r=i[1],s=ei(t.borderTopRightRadius,n.width,n.height),a=s[0],u=s[1],l=ei(t.borderBottomRightRadius,n.width,n.height),c=l[0],d=l[1],h=ei(t.borderBottomLeftRadius,n.width,n.height),A=h[0],p=h[1],f=[];f.push((o+a)/n.width),f.push((A+c)/n.width),f.push((r+p)/n.height),f.push((u+d)/n.height);var g=Math.max.apply(Math,f);g>1&&(o/=g,r/=g,a/=g,u/=g,c/=g,d/=g,A/=g,p/=g);var m=n.width-a,v=n.height-d,_=n.width-c,y=n.height-p,w=t.borderTopWidth,b=t.borderRightWidth,C=t.borderBottomWidth,S=t.borderLeftWidth,B=ti(t.paddingTop,e.bounds.width),E=ti(t.paddingRight,e.bounds.width),x=ti(t.paddingBottom,e.bounds.width),L=ti(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||r>0?Gu(n.left+S/3,n.top+w/3,o-S/3,r-w/3,fu.TOP_LEFT):new Vu(n.left+S/3,n.top+w/3),this.topRightBorderDoubleOuterBox=o>0||r>0?Gu(n.left+m,n.top+w/3,a-b/3,u-w/3,fu.TOP_RIGHT):new Vu(n.left+n.width-b/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=c>0||d>0?Gu(n.left+_,n.top+v,c-b/3,d-C/3,fu.BOTTOM_RIGHT):new Vu(n.left+n.width-b/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=A>0||p>0?Gu(n.left+S/3,n.top+y,A-S/3,p-C/3,fu.BOTTOM_LEFT):new Vu(n.left+S/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=o>0||r>0?Gu(n.left+2*S/3,n.top+2*w/3,o-2*S/3,r-2*w/3,fu.TOP_LEFT):new Vu(n.left+2*S/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=o>0||r>0?Gu(n.left+m,n.top+2*w/3,a-2*b/3,u-2*w/3,fu.TOP_RIGHT):new Vu(n.left+n.width-2*b/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=c>0||d>0?Gu(n.left+_,n.top+v,c-2*b/3,d-2*C/3,fu.BOTTOM_RIGHT):new Vu(n.left+n.width-2*b/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=A>0||p>0?Gu(n.left+2*S/3,n.top+y,A-2*S/3,p-2*C/3,fu.BOTTOM_LEFT):new Vu(n.left+2*S/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=o>0||r>0?Gu(n.left+S/2,n.top+w/2,o-S/2,r-w/2,fu.TOP_LEFT):new Vu(n.left+S/2,n.top+w/2),this.topRightBorderStroke=o>0||r>0?Gu(n.left+m,n.top+w/2,a-b/2,u-w/2,fu.TOP_RIGHT):new Vu(n.left+n.width-b/2,n.top+w/2),this.bottomRightBorderStroke=c>0||d>0?Gu(n.left+_,n.top+v,c-b/2,d-C/2,fu.BOTTOM_RIGHT):new Vu(n.left+n.width-b/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=A>0||p>0?Gu(n.left+S/2,n.top+y,A-S/2,p-C/2,fu.BOTTOM_LEFT):new Vu(n.left+S/2,n.top+n.height-C/2),this.topLeftBorderBox=o>0||r>0?Gu(n.left,n.top,o,r,fu.TOP_LEFT):new Vu(n.left,n.top),this.topRightBorderBox=a>0||u>0?Gu(n.left+m,n.top,a,u,fu.TOP_RIGHT):new Vu(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||d>0?Gu(n.left+_,n.top+v,c,d,fu.BOTTOM_RIGHT):new Vu(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=A>0||p>0?Gu(n.left,n.top+y,A,p,fu.BOTTOM_LEFT):new Vu(n.left,n.top+n.height),this.topLeftPaddingBox=o>0||r>0?Gu(n.left+S,n.top+w,Math.max(0,o-S),Math.max(0,r-w),fu.TOP_LEFT):new Vu(n.left+S,n.top+w),this.topRightPaddingBox=a>0||u>0?Gu(n.left+Math.min(m,n.width-b),n.top+w,m>n.width+b?0:Math.max(0,a-b),Math.max(0,u-w),fu.TOP_RIGHT):new Vu(n.left+n.width-b,n.top+w),this.bottomRightPaddingBox=c>0||d>0?Gu(n.left+Math.min(_,n.width-S),n.top+Math.min(v,n.height-C),Math.max(0,c-b),Math.max(0,d-C),fu.BOTTOM_RIGHT):new Vu(n.left+n.width-b,n.top+n.height-C),this.bottomLeftPaddingBox=A>0||p>0?Gu(n.left+S,n.top+Math.min(y,n.height-C),Math.max(0,A-S),Math.max(0,p-C),fu.BOTTOM_LEFT):new Vu(n.left+S,n.top+n.height-C),this.topLeftContentBox=o>0||r>0?Gu(n.left+S+L,n.top+w+B,Math.max(0,o-(S+L)),Math.max(0,r-(w+B)),fu.TOP_LEFT):new Vu(n.left+S+L,n.top+w+B),this.topRightContentBox=a>0||u>0?Gu(n.left+Math.min(m,n.width+S+L),n.top+w+B,m>n.width+S+L?0:a-S+L,u-(w+B),fu.TOP_RIGHT):new Vu(n.left+n.width-(b+E),n.top+w+B),this.bottomRightContentBox=c>0||d>0?Gu(n.left+Math.min(_,n.width-(S+L)),n.top+Math.min(v,n.height+w+B),Math.max(0,c-(b+E)),d-(C+x),fu.BOTTOM_RIGHT):new Vu(n.left+n.width-(b+E),n.top+n.height-(C+x)),this.bottomLeftContentBox=A>0||p>0?Gu(n.left+S+L,n.top+y,Math.max(0,A-(S+L)),p-(C+x),fu.BOTTOM_LEFT):new Vu(n.left+S+L,n.top+n.height-(C+x))}return e}();(function(e){e[e["TOP_LEFT"]=0]="TOP_LEFT",e[e["TOP_RIGHT"]=1]="TOP_RIGHT",e[e["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",e[e["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(fu||(fu={}));var Gu=function(e,t,n,i,o){var r=(Math.sqrt(2)-1)/3*4,s=n*r,a=i*r,u=e+n,l=t+i;switch(o){case fu.TOP_LEFT:return new Ku(new Vu(e,l),new Vu(e,l-a),new Vu(u-s,t),new Vu(u,t));case fu.TOP_RIGHT:return new Ku(new Vu(e,t),new Vu(e+s,t),new Vu(u,l-a),new Vu(u,l));case fu.BOTTOM_RIGHT:return new Ku(new Vu(u,t),new Vu(u,t+a),new Vu(e+s,l),new Vu(e,l));case fu.BOTTOM_LEFT:default:return new Ku(new Vu(u,l),new Vu(u-s,l),new Vu(e,t+a),new Vu(e,t))}},qu=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Yu=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Xu=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ju=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),Zu=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),$u=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),el=function(e){return 0===e.type},tl=function(e){return 1===e.type},nl=function(e){return 2===e.type},il=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},ol=function(e,t,n,i,o){return e.map((function(e,r){switch(r){case 0:return e.add(t,n);case 1:return e.add(t+i,n);case 2:return e.add(t+i,n+o);case 3:return e.add(t,n+o)}return e}))},rl=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),sl=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new ju(this.container),this.container.styles.opacity<1&&this.effects.push(new $u(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,o=this.container.styles.transform;this.effects.push(new Ju(n,i,o))}if(0!==this.container.styles.overflowX){var r=qu(this.curves),s=Xu(this.curves);il(r,s)?this.effects.push(new Zu(r,6)):(this.effects.push(new Zu(r,2)),this.effects.push(new Zu(s,4)))}}return e.prototype.getEffects=function(e){var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,i=this.effects.slice(0);while(n){var o=n.effects.filter((function(e){return!tl(e)}));if(t||0!==n.container.styles.position||!n.parent){if(i.unshift.apply(i,o),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var r=qu(n.curves),s=Xu(n.curves);il(r,s)||i.unshift(new Zu(s,6))}}else i.unshift.apply(i,o);n=n.parent}return i.filter((function(t){return vr(t.target,e)}))},e}(),al=function(e,t,n,i){e.container.elements.forEach((function(o){var r=vr(o.flags,4),s=vr(o.flags,2),a=new sl(o,e);vr(o.styles.display,2048)&&i.push(a);var u=vr(o.flags,8)?[]:i;if(r||s){var l=r||o.styles.isPositioned()?n:t,c=new rl(a);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var d=o.styles.zIndex.order;if(d<0){var h=0;l.negativeZIndex.some((function(e,t){return d>e.element.container.styles.zIndex.order?(h=t,!1):h>0})),l.negativeZIndex.splice(h,0,c)}else if(d>0){var A=0;l.positiveZIndex.some((function(e,t){return d>=e.element.container.styles.zIndex.order?(A=t+1,!1):A>0})),l.positiveZIndex.splice(A,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else o.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);al(a,c,r?c:n,u)}else o.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),al(a,t,n,u);vr(o.flags,8)&&ul(o,u)}))},ul=function(e,t){for(var n=e instanceof la?e.start:1,i=e instanceof la&&e.reversed,o=0;o0&&e.intrinsicHeight>0){var i=ml(e),o=Xu(t);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return i(this,void 0,void 0,(function(){var t,i,r,a,u,l,c,d,h,A,p,f,g,m,v,_,y,w,b;return o(this,(function(o){switch(o.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,i=e.curves,r=t.styles,a=0,u=t.textNodes,o.label=1;case 1:return a0&&S>0&&(v=i.ctx.createPattern(f,"repeat"),i.renderRepeat(y,v,E,x))):Ki(n)&&(_=yl(e,t,[null,null,null]),y=_[0],w=_[1],b=_[2],C=_[3],S=_[4],B=0===n.position.length?[Zn]:n.position,E=ti(B[0],C),x=ti(B[B.length-1],S),L=Di(n,E,x,C,S),D=L[0],N=L[1],D>0&&N>0&&(k=i.ctx.createRadialGradient(w+E,b+x,0,w+E,b+x,D),Si(n.stops,2*D).forEach((function(e){return k.addColorStop(e.stop,hi(e.color))})),i.path(y),i.ctx.fillStyle=k,D!==N?(I=e.bounds.left+.5*e.bounds.width,F=e.bounds.top+.5*e.bounds.height,M=N/D,O=1/M,i.ctx.save(),i.ctx.translate(I,F),i.ctx.transform(1,0,0,M,0,0),i.ctx.translate(-I,-F),i.ctx.fillRect(w,O*(b-F)+F,C,S*O),i.ctx.restore()):i.ctx.fill())),o.label=6;case 6:return t--,[2]}}))},i=this,r=0,s=e.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return r0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,s,e.curves,2)]:[3,11]):[3,13];case 4:return o.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,s,e.curves,3)];case 6:return o.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,s,e.curves)];case 8:return o.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,s,e.curves)];case 10:o.sent(),o.label=11;case 11:s++,o.label=12;case 12:return a++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(e,t,n,r,s){return i(this,void 0,void 0,(function(){var i,a,u,l,c,d,h,A,p,f,g,m,v,_,y,w;return o(this,(function(o){return this.ctx.save(),i=Al(r,n),a=cl(r,n),2===s&&(this.path(a),this.ctx.clip()),zu(a[0])?(u=a[0].start.x,l=a[0].start.y):(u=a[0].x,l=a[0].y),zu(a[1])?(c=a[1].end.x,d=a[1].end.y):(c=a[1].x,d=a[1].y),h=0===n||2===n?Math.abs(u-c):Math.abs(l-d),this.ctx.beginPath(),3===s?this.formatPath(i):this.formatPath(a.slice(0,2)),A=t<3?3*t:2*t,p=t<3?2*t:t,3===s&&(A=t,p=t),f=!0,h<=2*A?f=!1:h<=2*A+p?(g=h/(2*A+p),A*=g,p*=g):(m=Math.floor((h+p)/(A+p)),v=(h-m*A)/(m-1),_=(h-(m+1)*A)/m,p=_<=0||Math.abs(p-v)0?arguments[0]:void 0)}}),{get:function(e){var t=i.getEntry(o(this,r),e);return t&&t.v},set:function(e,t){return i.def(o(this,r),0===e?0:e,t)}},i,!0)},fe86:function(e,t,n){}}]);