151 lines
1.6 MiB
JavaScript
151 lines
1.6 MiB
JavaScript
|
|
!function(){var e=["trigger"],t=["cacheOptions"],r=["appendTo"];function n(){return n="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=T(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},n.apply(this,arguments)}function o(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(D){u=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new A(o||[]);return n(a,"_invoke",{value:E(e,r,l)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(D){return{type:"throw",arg:D}}}e.wrap=c;var d={};function p(){}function h(){}function v(){}var g={};u(g,a,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(T([])));b&&b!==t&&r.call(b,a)&&(g=b);var y=v.prototype=p.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(n,i,a,l){var s=f(e[n],e,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==O(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function E(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return _()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=k(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function k(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.l
|
||
|
|
var Pi=function(e,t){var r,n=e.__vccOpts||e,o=d(t);try{for(o.s();!(r=o.n()).done;){var i=f(r.value,2),a=i[0],l=i[1];n[a]=l}}catch(s){o.e(s)}finally{o.f()}return n},Ni={name:"ArrowDown"},Bi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ri=[Q("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)];var Ii=Pi(Ni,[["render",function(e,t,r,n,o,i){return J(),Z("svg",Bi,Ri)}],["__file","arrow-down.vue"]]),Li={name:"CaretRight"},Mi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ji=[Q("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1)];var zi=Pi(Li,[["render",function(e,t,r,n,o,i){return J(),Z("svg",Mi,ji)}],["__file","caret-right.vue"]]),Ui={name:"Check"},Hi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vi=[Q("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1)];a("e",Pi(Ui,[["render",function(e,t,r,n,o,i){return J(),Z("svg",Hi,Vi)}],["__file","check.vue"]]));var $i={name:"CircleCheck"},Wi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gi=[Q("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Q("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1)];var qi=a("c",Pi($i,[["render",function(e,t,r,n,o,i){return J(),Z("svg",Wi,Gi)}],["__file","circle-check.vue"]])),Ki={name:"CircleCloseFilled"},Yi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xi=[Q("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1)];var Ji=Pi(Ki,[["render",function(e,t,r,n,o,i){return J(),Z("svg",Yi,Xi)}],["__file","circle-close-filled.vue"]]),Zi={name:"CircleClose"},Qi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ea=[Q("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Q("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1)];var ta=a("d",Pi(Zi,[["render",function(e,t,r,n,o,i){return J(),Z("svg",Qi,ea)}],["__file","circle-close.vue"]])),ra={name:"Close"},na={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},oa=[Q("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)];var ia=a("f",Pi(ra,[["render",function(e,t,r,n,o,i){return J(),Z("svg",na,oa)}],["__file","close.vue"]])),aa={name:"Delete"},la={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sa=[Q("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1)];a("j",Pi(aa,[["render",function(e,t,r,n,o,i){return J(),Z("svg",la,sa)}],["__file","delete.vue"]]));var ua={name:"Document"},ca={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fa=[Q("path",{fill:"cu
|
||
|
|
/*!
|
||
|
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
|
|
*
|
||
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/function Xj(e){return"[object Object]"===Object.prototype.toString.call(e)}function Jj(e){var t,r;return!1!==Xj(e)&&(void 0===(t=e.constructor)||!1!==Xj(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function Zj(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qj(e){return!!e&&!!e[Lz]}function ez(e){return!!e&&(function(e){if(!e||"object"!=O(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Mz}(e)||Array.isArray(e)||!!e[Iz]||!!e.constructor[Iz]||iz(e)||az(e))}function tz(e,t,r){void 0===r&&(r=!1),0===rz(e)?(r?Object.keys:jz)(e).forEach((function(n){r&&"symbol"==O(n)||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function rz(e){var t=e[Lz];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:iz(e)?2:az(e)?3:0}function nz(e,t){return 2===rz(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oz(e,t,r){var n=rz(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function iz(e){return Pz&&e instanceof Map}function az(e){return Nz&&e instanceof Set}function lz(e){return e.o||e.t}function sz(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=zz(e);delete t[Lz];for(var r=jz(t),n=0;n<r.length;n++){var o=r[n],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function uz(e,t){return void 0===t&&(t=!1),fz(e)||Qj(e)||!ez(e)||(rz(e)>1&&(e.set=e.add=e.clear=e.delete=cz),Object.freeze(e),t&&tz(e,(function(e,t){return uz(t,!0)}),!0)),e}function cz(){Zj(2)}function fz(e){return null==e||"object"!=O(e)||Object.isFrozen(e)}function dz(e){var t=Uz[e];return t||Zj(18,e),t}function pz(){return Dz}function hz(e,t){t&&(dz("Patches"),e.u=[],e.s=[],e.v=t)}function vz(e){gz(e),e.p.forEach(bz),e.p=null}function gz(e){e===Dz&&(Dz=e.l)}function mz(e){return Dz={p:[],l:Dz,h:e,m:!0,_:0}}function bz(e){var t=e[Lz];0===t.i||1===t.i?t.j():t.O=!0}function yz(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.g||dz("ES5").S(t,e,n),n?(r[Lz].P&&(vz(t),Zj(4)),ez(e)&&(e=wz(t,e),t.l||Ez(t,e)),t.u&&dz("Patches").M(r[Lz],e,t.u,t.s)):e=wz(t,r,[]),vz(t),t.u&&t.v(t.u,t.s),e!==Rz?e:void 0}function wz(e,t,r){if(fz(t))return t;var n=t[Lz];if(!n)return tz(t,(function(o,i){return xz(e,n,t,o,i,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Ez(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=sz(n.k):n.o;tz(3===n.i?new Set(o):o,(function(t,i){return xz(e,n,o,t,i,r)})),Ez(e,o,!1),r&&e.u&&dz("Patches").R(n,r,e.u,e.s)}return n.o}function xz(e,t,r,n,o,i){if(Qj(o)){var a=wz(e,o,i&&t&&3!==t.i&&!nz(t.D,n)?i.concat(n):void 0);if(oz(r,n,a),!Qj(a))return;e.m=!1}if(ez(o)&&!fz(o)){if(!e.h.F&&e._<1)return;wz(e,o),t&&t.A.l||Ez(e,o)}}function Ez(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&uz(t,r)}function kz(e,t){var r=e[Lz];return(r?lz(r):e)[t]}function Sz(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Cz(e){e.P||(e.P=!0,e.l&&Cz(e.l))}function Az(e){e.o||(e.o=sz(e.t))}function Tz(e,t,r){var n=iz(t)?dz("MapSet").N(t,r):az(t)?dz("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:pz(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=n,i=Hz;r&&(o=[n],i=Vz);var a=Proxy.revocable(o,i),l=a.revoke,s=a.proxy;return n.k=s,n.j=l,s}(t,r):dz("ES5").J(t,r);return(r?r.A:pz()).p.push(n),n}function Oz(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return sz(e)}var _z,Dz,Fz="undefined"!=typeof Symbol&&"symbol"==O(Symbol("x")),Pz="undefined"!=typeof Map,Nz="undefined"!=typeof Set,Bz="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Rz=Fz?Symbol.for("immer-nothing"):((_
|
||
|
|
/**
|
||
|
|
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
||
|
|
* and replaces it with values from options `{smart_count: 5}`
|
||
|
|
*
|
||
|
|
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
||
|
|
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
||
|
|
*
|
||
|
|
* @param {string} phrase that needs interpolation, with placeholders
|
||
|
|
* @param {object} options with values that will be used to replace placeholders
|
||
|
|
* @returns {any[]} interpolated
|
||
|
|
*/}function JG(e,t){var r=/\$/g,n=[e];if(null==t)return n;for(var o=0,i=Object.keys(t);o<i.length;o++){var a=i[o];if("_"!==a){var l=t[a];"string"==typeof l&&(l=r[Symbol.replace](l,"$$$$")),n=XG(n,new RegExp("%\\{".concat(a,"\\}"),"g"),l)}}return n}var ZG=(WG=function(e){return"__private_"+YG+++"_"+e}("apply"),function(){function e(t){y(this,e),Object.defineProperty(this,WG,{value:QG}),this.locale={strings:{},pluralize:function(e){return 1===e?0:1}},Array.isArray(t)?t.forEach(KG(this,WG)[WG],this):KG(this,WG)[WG](t)}return m(e,[{key:"translate",value:function(e,t){return this.translateArray(e,t).join("")}},{key:"translateArray",value:function(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error("missing string: ".concat(e));var r=this.locale.strings[e];if("object"==O(r)){if(t&&void 0!==t.smart_count)return JG(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return JG(r,t)}}]),e}());function QG(e){if(null!=e&&e.strings){var t=this.locale;this.locale=u(u({},t),{},{strings:u(u({},t.strings),e.strings)}),this.locale.pluralize=e.pluralize||t.pluralize}}var eq=function(){var e={},t=e._fns={};return e.emit=function(e,r,n,o,i,a,l){var s=function(e){for(var r=t[e]?t[e]:[],n=e.indexOf(":"),o=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],i=Object.keys(t),a=0,l=i.length;a<l;a++){var s=i[a];if("*"===s&&(r=r.concat(t[s])),2===o.length&&o[0]===s){r=r.concat(t[s]);break}}return r}(e);s.length&&function(e,t,r){for(var n=0,o=t.length;n<o&&t[n];n++)t[n].event=e,t[n].apply(t[n],r)}(e,s,[r,n,o,i,a,l])},e.on=function(e,r){t[e]||(t[e]=[]),t[e].push(r)},e.once=function(t,r){this.on(t,(function n(){r.apply(this,arguments),e.off(t,n)}))},e.off=function(e,t){var r=[];if(e&&t)for(var n=this._fns[e],o=0,i=n?n.length:0;o<i;o++)n[o]!==t&&r.push(n[o]);r.length?this._fns[e]=r:delete this._fns[e]},e},tq=function(e){return crypto.getRandomValues(new Uint8Array(e))},rq=function(e,t,r){var n=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*n*t/e.length);return function(){for(var i="";;)for(var a=r(o),l=o;l--;)if((i+=e[a[l]&n]||"").length===t)return i}},nq={nanoid:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",r=crypto.getRandomValues(new Uint8Array(e));e--;){var n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t},customAlphabet:function(e,t){return rq(e,t,tq)},customRandom:rq,urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",random:tq},oq=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+O(e));var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var o=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function iq(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}iq.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)"*"!==o[t]&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==O(e))for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n};var aq=/[\/\+\.]/,lq=0;var sq=function(e){return"__private_"+lq+++"_"+e}("publish"),uq=function(){function e(){y(this,e),Object.defineProperty(this,sq,{value:cq}),this.state={},this.callbacks=[]}return m(e,[{key:"getState",value:function(){return this.state}},{key:"setState",value:function(e){var t=u({},this.state),r=u(u({},this.state),e);this.state=r,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,sq)[sq](t,r,e)}},{key:"subscribe",value:function(e){var t=this;ret
|
||
|
|
/*!
|
||
|
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
|
|
*
|
||
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/function KZ(e){return"[object Object]"===Object.prototype.toString.call(e)}WZ({target:"Object",stat:!0,forced:qZ},{keys:function(e){return GZ(oX(e))}});var YZ=function(e){return!1!==KZ(t=e)&&(void 0===(r=t.constructor)||!1!==KZ(n=r.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||YU.isOperationList(e.redos[0]))&&(0===e.undos.length||YU.isOperationList(e.undos[0]));var t,r,n},XZ=new WeakMap,JZ=new WeakMap,ZZ={isHistoryEditor:function(e){return YZ(e.history)&&UU.isEditor(e)},isMerging:function(e){return JZ.get(e)},isSaving:function(e){return XZ.get(e)},redo:function(e){e.redo()},undo:function(e){e.undo()},withoutMerging:function(e,t){var r=ZZ.isMerging(e);JZ.set(e,!1),t(),JZ.set(e,r)},withoutSaving:function(e,t){var r=ZZ.isSaving(e);XZ.set(e,!1),t(),XZ.set(e,r)}},QZ=WY.String,eQ=function(e){if("Symbol"===PJ(e))throw TypeError("Cannot convert a Symbol value to a string");return QZ(e)},tQ=function(){var e=LX(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},rQ=SJ.PROPER,nQ=RegExp.prototype,oQ=nQ.toString,iQ=eX(tQ),aQ=yX((function(){return"/a/b"!=oQ.call({source:"a",flags:"b"})})),lQ=rQ&&"toString"!=oQ.name;(aQ||lQ)&&CJ(RegExp.prototype,"toString",(function(){var e=LX(this),t=eQ(e.source),r=e.flags;return"/"+t+"/"+eQ(void 0===r&&zX(nQ,e)&&!("flags"in nQ)?iQ(e):r)}),{unsafe:!0});var sQ,uQ=_X?Object.defineProperties:function(e,t){LX(e);for(var r,n=yZ(t),o=GZ(t),i=o.length,a=0;i>a;)eJ.f(e,r=o[a++],n[r]);return e},cQ=dX("document","documentElement"),fQ=fJ("IE_PROTO"),dQ=function(){},pQ=function(e){return"<script>"+e+"<\/script>"},hQ=function(e){e.write(pQ("")),e.close();var t=e.parentWindow.Object;return e=null,t},vQ=function(){try{sQ=new ActiveXObject("htmlfile")}catch(e){}var e,t;vQ="undefined"!=typeof document?document.domain&&sQ?hQ(sQ):((t=NX("iframe")).style.display="none",cQ.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(pQ("document.F=Object")),e.close(),e.F):hQ(sQ);for(var r=DZ.length;r--;)delete vQ.prototype[DZ[r]];return vQ()};dJ[fQ]=!0;var gQ=Object.create||function(e,t){var r;return null!==e?(dQ.prototype=LX(e),r=new dQ,dQ.prototype=null,r[fQ]=e):r=vQ(),void 0===t?r:uQ(r,t)},mQ=AX("unscopables"),bQ=Array.prototype;null==bQ[mQ]&&eJ.f(bQ,mQ,{configurable:!0,value:gQ(null)});var yQ=function(e){bQ[mQ][e]=!0},wQ=AZ.includes;WZ({target:"Array",proto:!0},{includes:function(e){return wQ(this,e,arguments.length>1?arguments[1]:void 0)}}),yQ("includes");var xQ=AX("match"),EQ=function(e){var t;return DX(e)&&(void 0!==(t=e[xQ])?!!t:"RegExp"==OJ(e))},kQ=WY.TypeError,SQ=function(e){if(EQ(e))throw kQ("The method doesn't accept regular expressions");return e},CQ=AX("match"),AQ=function(e){var t=/./;try{"/./"[e](t)}catch(F_){try{return t[CQ]=!1,"/./"[e](t)}catch(e){}}return!1},TQ=eX("".indexOf);WZ({target:"String",proto:!0,forced:!AQ("includes")},{includes:function(e){return!!~TQ(eQ(rX(this)),eQ(SQ(e)),arguments.length>1?arguments[1]:void 0)}});var OQ=/"/g,_Q=eX("".replace);WZ({target:"String",proto:!0,forced:yX((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,r=eQ(rX(this)),n="<a",(n+=' name="'+_Q(eQ(t),OQ,""")+'"')+">"+r+"</a>";var t,r,n}});var DQ=function(e,t,r){var n,o;LX(e);try{if(!(n=qX(e,"return"))){if("throw"===t)throw r;return r}n=jX(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return LX(n),r},FQ=function(e,t,r,n){try{return n?t(LX(r)[0],r[1]):t(r)}catch(t){DQ(e,"throw",t)}},PQ={},NQ=AX("iterator"),BQ=Array.prototype,RQ=function(e){return void 0!==e&&(PQ.Array===e||BQ[NQ]===e)},IQ=function(e,t,r){var n=JX(t);n in e?eJ.f(e,n,tJ(0,r)):e[n]=r},LQ=AX("iterator"),MQ=function(e){if(null!=e)return qX(e,LQ)||qX(e,"@@iterator")||PQ[PJ(e)]},jQ=WY.TypeError,zQ=function(e,t){var r=arguments.length<2?MQ(e):t;if(GX(r))return LX(jX(r,e));throw jQ($X(e)+" is not iterable")},UQ=WY.Array,HQ=AX("iterator"),VQ=!1;try{var $Q=0,WQ={next:function(){re
|
||
|
|
/*! *****************************************************************************
|
||
|
|
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 L1=function(e,t){return L1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},L1(e,t)};function M1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}L1(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var j1=function(){return j1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},j1.apply(this,arguments)};function z1(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function U1(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function H1(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}var V1=0,$1=function(){this.id=""+V1++},W1=wJ.set,G1=wJ.getterFor("Array Iterator"),q1=C0(Array,"Array",(function(e,t){W1(this,{type:"Array Iterator",target:yZ(e),index:0,kind:t})}),(function(){var e=G1(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");PQ.Arguments=PQ.Array,yQ("keys"),yQ("values"),yQ("entries");var K1=function(e,t,r){for(var n in t)CJ(e,n,t[n],r);return e},Y1=WY.Array,X1=Math.max,J1=function(e,t,r){for(var n=KJ(e),o=SZ(t,n),i=SZ(void 0===r?n:r,n),a=Y1(X1(i-o,0)),l=0;o<i;o++,l++)IQ(a,l,e[o]);return a.length=l,a},Z1=PZ.f,Q1="object"==("undefined"==typeof window?"undefined":O(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],e2={f:function(e){return Q1&&"Window"==OJ(e)?function(e){try{return Z1(e)}catch(e){return J1(Q1)}}(e):Z1(yZ(e))}},t2=yX((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),r2=Object.isExtensible,n2=yX((function(){r2(1)}))||t2?function(e){return!!DX(e)&&(!t2||"ArrayBuffer"!=OJ(e))&&(!r2||r2(e))}:r2,o2=!yX((function(){return Object.isExtensible(Object.preventExtensions({}))})),i2=UY((function(e){var t=eJ.f,r=!1,n=cX("meta"),o=0,i=function(e){t(e,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var e=PZ.f,t=eX([].splice),o={};o[n]=1,e(o).length&&(PZ.f=function(r){for(var o=e(r),i=0,a=o.length;i<a;i++)if(o[i]===n){t(o,i,1);break}return o},WZ({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:e2.f}))},fastKey:function(e,t){if(!DX(e))return"symbol"==O(e)?e:("string"==typeof e?"S":"P")+e;if(!aX(e,n)){if(!n2(e))return"F";if(!t)return"E";i(e)}return e[n].objectID},getWeakData:function(e,t){if(!aX(e,n)){if(!n2(e))return!0;if(!t)return!1;i(e)}return e[n].weakData},onFreeze:function(e){return o2&&r&&n2(e)&&!aX(e,n)&&i(e),e}};dJ[n]=!0})),a2=WY.TypeError,l2=function(e,t){this.stopped=e,this.result=t},s2=l2.prototype,u2=function(e,t,r){var n,o,i,a,l,s,u,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),h=jJ(t,c),v=function(e){return n&&DQ(n,"normal",e),new l2(!0,e)},g=function(e){return f?(LX(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)n=e;else{if(!(o=MQ(e)))throw a2($X(e)+" is not iterable");if(RQ(o)){for(i=0,a=KJ(e);a>i;i++)if((l=g(e[i]))&&zX(s2,l))return l;return new l2(!1)}n=zQ(e,o)}for(s=n.next;!(u=jX(s,n)).done;){try{l=g(u.value)}catch(e){DQ(n,"throw",e)}if("object"==O(l)&&l&&zX(s2,l))return l}return new l2(!1)},c2=WY.TypeError,f2=function(e,t){if(zX(t,e))return e;throw c2("Incorrect invocation")},d2=function(e,t,r){var n
|
||
|
|
/*! *****************************************************************************
|
||
|
|
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.
|
||
|
|
***************************************************************************** */};function Aoe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Coe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Toe=function(){return Toe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Toe.apply(this,arguments)};function Ooe(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function l(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}s((n=n.apply(e,t||[])).next())}))}function _oe(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function Doe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Foe(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Poe(e){var t=Foe(UU.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var r=t[0];if(!RU.isElement(r))return!1;if("paragraph"===r.type)return!1;if(""!==GU.string(r))return!1;var n=r.children,o=void 0===n?[]:n;return!!fH.isText(o[0])&&(_H.setNodes(e,{type:"paragraph"}),!0)}var Noe={renderElems:[B9],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[Soe],editorPlugin:function(e){var t=e.deleteBackward,r=e.deleteForward;e.insertText,e.insertBreak;var n=e;return n.deleteBackward=function(e){Poe(n)||t(e)},n.deleteForward=function(e){Poe(n)||r(e)},n}},Boe=/"/g,Roe=eee("".replace),Ioe=function(e,t,r,n){var o=Ire(see(e)),i="<"+t;return""!==r&&(i+=" "+r+'="'+Roe(Ire(n),Boe,""")+'"'),i+">"+o+"</"+t+">"},Loe=function(e){return U9((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function Moe(e,t){var r=t,n=e,o=n.bold,i=n.italic,a=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),a&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function joe(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}lre({target:"String",proto:!0,forced:Loe("bold")},{bold:function(){return Ioe(this,"b","","")}}),lre({target:"String",proto:!0,forced:Loe("italics")},{italics:function(){return Ioe(this,"i","","")}}),lre({target:"String",proto:!0,forced:Loe("sub")},{sub:function(){return Ioe(this,"sub","","")}}),lre({targe
|
||
|
|
/*! *****************************************************************************
|
||
|
|
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.
|
||
|
|
***************************************************************************** */};function nbe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}rbe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function obe(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ibe(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function abe(e){return UU.nodes(e,{at:e.selection||void 0,match:function(t){return 1===B3.findPath(e,t).length}})}var lbe=Phe.includes;Vve({target:"Array",proto:!0},{includes:function(e){return lbe(this,e,arguments.length>1?arguments[1]:void 0)}}),Jhe("includes");var sbe,ube,cbe=function(){var e=Qpe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},fbe=ape.RegExp,dbe=dpe((function(){var e=fbe("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),pbe=dbe||dpe((function(){return!fbe("a","y").sticky})),hbe={BROKEN_CARET:dbe||dpe((function(){var e=fbe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:pbe,UNSUPPORTED_Y:dbe},vbe=ape.RegExp,gbe=dpe((function(){var e=vbe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),mbe=ape.RegExp,bbe=dpe((function(){var e=mbe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ybe=bve.get,wbe=Cpe("native-string-replace",String.prototype.replace),xbe=RegExp.prototype.exec,Ebe=xbe,kbe=fpe("".charAt),Sbe=fpe("".indexOf),Cbe=fpe("".replace),Abe=fpe("".slice),Tbe=(ube=/b*/g,ahe(xbe,sbe=/a/,"a"),ahe(xbe,ube,"a"),0!==sbe.lastIndex||0!==ube.lastIndex),Obe=hbe.BROKEN_CARET,_be=void 0!==/()??/.exec("")[1];(Tbe||_be||Obe||gbe||bbe)&&(Ebe=function(e){var t,r,n,o,i,a,l,s=this,u=ybe(s),c=Cge(e),f=u.raw;if(f)return f.lastIndex=s.lastIndex,t=ahe(Ebe,f,c),s.lastIndex=f.lastIndex,t;var d=u.groups,p=Obe&&s.sticky,h=ahe(cbe,s),v=s.source,g=0,m=c;if(p&&(h=Cbe(h,"y",""),-1===Sbe(h,"g")&&(h+="g"),m=Abe(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==kbe(c,s.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,g++),r=new RegExp("^(?:"+v+")",h)),_be&&(r=new RegExp("^"+v+"$(?!\\s)",h)),Tbe&&(n=s.lastIndex),o=ahe(xbe,p?r:s,m),p?o?(o.input=Abe(o.input,g),o[0]=Abe(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Tbe&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),_be&&o&&o.length>1&&ahe(wbe,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Khe(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var Dbe=Ebe;Vve({target:"RegExp",proto:!0,forced:/./.exec!==Dbe},{exec:Dbe});var Fbe=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return B3.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var r=t.ordered;return(void 0!==r&&r)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!B3.getSelectedElems(e).some((function(t){if(UU.isVoid(e,t)&&UU.isBlock(e,t))return!0;var r=t.type;return!!["pre","code","table"].includes(r)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?_H.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):_H.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),Pbe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=p9("listModule.unOrderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><pat
|
||
|
|
/*! *****************************************************************************
|
||
|
|
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.
|
||
|
|
***************************************************************************** */
|
||
|
|
function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),l=a.next();!l.done;l=a.next())l.value,i=!0}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}Uxe({target:"Array",proto:!0,forced:!$Ee},{slice:function(e,t){var r,n,o,i=Wye(this),a=Exe(i),l=yxe(e,a),s=yxe(void 0===t?a:t,a);if(FEe(i)&&(r=i.constructor,(jEe(r)&&(r===GEe||FEe(r.prototype))||qye(r)&&null===(r=r[WEe]))&&(r=void 0),r===GEe||void 0===r))return VEe(i,l,s);for(n=new(void 0===r?GEe:r)(qEe(s-l,0)),o=0;l<s;l++,o++)l in i&&zEe(n,o,i[l]);return n.length=o,n}});var JEe=Iye(Iye.bind),ZEe=Owe("species"),QEe=kye.Array,eke=function(e,t){return new(function(e){var t;return FEe(e)&&(t=e.constructor,(jEe(t)&&(t===QEe||FEe(t.prototype))||qye(t)&&null===(t=t[ZEe]))&&(t=void 0)),void 0===t?QEe:t}(e))(0===t?0:t)},tke=Iye([].push),rke=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(s,u,c,f){for(var d,p,h=mwe(s),v=Hye(h),g=function(e,t){return uwe(e),void 0===t?e:JEe?JEe(e,t):function(){return e.apply(t,arguments)}}(u,c),m=Exe(v),b=0,y=f||eke,w=t?y(s,m):r||a?y(s,0):void 0;m>b;b++)if((l||b in v)&&(p=g(d=v[b],b,h),e))if(t)w[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:tke(w,d)}else switch(e){case 4:return!1;case 7:tke(w,d)}return i?-1:n||o?o:w}},nke={forEach:rke(0),map:rke(1),filter:rke(2),some:rke(3),every:rke(4),find:rke(5),findIndex:rke(6),filterReject:rke(7)},oke=nke.map;Uxe({target:"Array",proto:!0,forced:!HEe("map")},{map:function(e){return oke(this,e,arguments.length>1?arguments[1]:void 0)}});var ike=Vxe?{}.toString:function(){return"[object "+qxe(this)+"]"};function ake(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function lke(e){return ake(e).every((function(e){return!!e.isHeader}))}Vxe||pxe(Object.prototype,"toString",ike,{unsafe:!0});var ske=dxe.PROPER,uke=RegExp.prototype,cke=uke.toString,fke=Iye(Qxe),dke=Sye((function(){return"/a/b"!=cke.call({source:"a",flags:"b"})})),pke=ske&&"toString"!=cke.name;(dke||pke)&&pxe(RegExp.prototype,"toString",(function(){var e=zwe(this),t=Yxe(e.source),r=e.flags;return"/"+t+"/"+Yxe(void 0===r&&Yye(uke,e)&&!("flags"in uke)?fke(e):r)}),{unsafe:!0});var hke=Owe("unscopables"),vke=Array.prototype;null==vke[hke]&&Vwe.f(vke,hke,{configurable:!0,value:hEe(null)});var gke=nke.find,mke=!0;"find"in[]&&Array(1).find((function(){mke=!1})),Uxe({target:"Array",proto:!0,forced:mke},{find:function(e){return gke(this,e,arguments.length>1?arguments[1]:void 0)}}),vke[hke].find=!0;var bke=Function.prototype,yke=bke.apply,wke=bke.bind,xke=bke.call,Eke="object"==("undefined"==typeof Reflect?"undefined":O(Reflect))&&Reflect.apply||(wke?xke.bind(yke):function(){return xke.apply(yke,arguments)}),kke=Owe("species"),Ske=RegExp.prototype,Cke=function(e,t,r,n){var o=Owe(e),i=!Sye((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Sye((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[kke]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var l=Iye(/./[o]),s=t(o,""[e],(function(e,t,r,n,o){var a=Iye(e),s=t.exec;return s===DEe||s===Ske.exec?i&&!o?{done:!0,value:l(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));pxe(String.prototype,e,s[0]),pxe(Ske,o,s[1])}n&&$we(Ske[o],"sham",!0)},Ake=Owe("match"),Tke=kye.TypeError,Oke=Owe("species"),_ke=Iye("".charAt),Dke=Iye("".charCodeAt),Fke=Iye("".slice),Pke=function(e){return function(t,r){var n,o,i=Yxe($ye(t)),a=gxe(r),l=i.length;return a<0||a>=l?e?"":void 0:(n=Dke(i,a))<55296||n>56319||a+1===l||(o=Dke(i,a+1))<56320||o>57343?e?_ke(i,a):n:e?Fke(i,a,a+2):o-56320+(n-55296<<10)+65536}}(!0),Nke=function(e,t,r){return t+(r?Pke(e,t).length:1)},Bke=kye.Array,Rke=Math.max,Ike=function(e,t,r){for(var n=Exe(e),o=yxe(t,n),i=yxe(void 0=
|
||
|
|
/*! *****************************************************************************
|
||
|
|
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 JSe=function(){return JSe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},JSe.apply(this,arguments)};function ZSe(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function l(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}s((n=n.apply(e,t||[])).next())}))}function QSe(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function eCe(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}var tCe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function rCe(e){var t={exports:{}};return e(t,t.exports),t.exports}var nCe,oCe,iCe=function(e){return e&&e.Math==Math&&e},aCe=iCe("object"==("undefined"==typeof globalThis?"undefined":O(globalThis))&&globalThis)||iCe("object"==("undefined"==typeof window?"undefined":O(window))&&window)||iCe("object"==("undefined"==typeof self?"undefined":O(self))&&self)||iCe("object"==O(tCe)&&tCe)||function(){return this}()||Function("return this")(),lCe=function(e){try{return!!e()}catch(e){return!0}},sCe=!lCe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),uCe=Function.prototype.call,cCe=uCe.bind?uCe.bind(uCe):function(){return uCe.apply(uCe,arguments)},fCe={}.propertyIsEnumerable,dCe=Object.getOwnPropertyDescriptor,pCe={f:dCe&&!fCe.call({1:2},1)?function(e){var t=dCe(this,e);return!!t&&t.enumerable}:fCe},hCe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vCe=Function.prototype,gCe=vCe.bind,mCe=vCe.call,bCe=gCe&&gCe.bind(mCe),yCe=gCe?function(e){return e&&bCe(mCe,e)}:function(e){return e&&function(){return mCe.apply(e,arguments)}},wCe=yCe({}.toString),xCe=yCe("".slice),ECe=function(e){return xCe(wCe(e),8,-1)},kCe=aCe.Object,SCe=yCe("".split),CCe=lCe((function(){return!kCe("z").propertyIsEnumerable(0)}))?function(e){return"String"==ECe(e)?SCe(e,""):kCe(e)}:kCe,ACe=aCe.TypeError,TCe=function(e){if(null==e)throw ACe("Can't call method on "+e);return e},OCe=function(e){return CCe(TCe(e))},_Ce=function(e){return"function"==typeof e},DCe=function(e){return"object"==O(e)?null!==e:_Ce(e)},FCe=function(e,t){return arguments.length<2?function(e){return _Ce(e)?e:void 0}(aCe[e]):aCe[e]&&aCe[e][t]},PCe=yCe({}.isPrototypeOf),NCe=FCe("navigator","userAgent")||"",BCe=aCe.process,RCe=aCe.Deno,ICe=BCe&&BCe.versions||RCe&&RCe.version,LCe=ICe&&ICe.v8;LCe&&(oCe=(nCe=LCe.split("."))[0]>0&&nCe[0]<4?1:+(nCe[0]+nCe[1])),!oCe&&NCe&&(!(nCe=NCe.match(/Edge\/(\d+)/))||nCe[1]>=74)&&(nCe=NCe.match(/Chrome\/(\d+)/))&&(oCe=+nCe[1]);var MCe=oCe,jCe=!!Object.getOwnPropertySymbols&&!lCe((function(){var e=Symbol();return!String(
|
||
|
|
/*! *****************************************************************************
|
||
|
|
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 ELe=function(){return ELe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ELe.apply(this,arguments)};function kLe(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function l(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}s((n=n.apply(e,t||[])).next())}))}function SLe(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var CLe=_Be("unscopables"),ALe=Array.prototype;null==ALe[CLe]&&$Be.f(ALe,CLe,{configurable:!0,value:DIe(null)});var TLe,OLe,_Le,DLe=function(e){ALe[CLe][e]=!0},FLe={},PLe=!CNe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),NLe=eRe("IE_PROTO"),BLe=SNe.Object,RLe=BLe.prototype,ILe=PLe?BLe.getPrototypeOf:function(e){var t=bBe(e);if(wBe(t,NLe))return t[NLe];var r=t.constructor;return qNe(r)&&t instanceof r?r.prototype:t instanceof BLe?RLe:null},LLe=_Be("iterator"),MLe=!1;[].keys&&("next"in(_Le=[].keys())?(OLe=ILe(ILe(_Le)))!==Object.prototype&&(TLe=OLe):MLe=!0);var jLe=null==TLe||CNe((function(){var e={};return TLe[LLe].call(e)!==e}));jLe&&(TLe={}),qNe(TLe[LLe])||hRe(TLe,LLe,(function(){return this}));var zLe={IteratorPrototype:TLe,BUGGY_SAFARI_ITERATORS:MLe},ULe=$Be.f,HLe=_Be("toStringTag"),VLe=function(e,t,r){e&&!wBe(e=r?e:e.prototype,HLe)&&ULe(e,HLe,{configurable:!0,value:t})},$Le=zLe.IteratorPrototype,WLe=function(){return this},GLe=SNe.String,qLe=SNe.TypeError,KLe=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=LNe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return UBe(r),function(e){if("object"==O(e)||qNe(e))return e;throw qLe("Can't set "+GLe(e)+" as a prototype")}(n),t?e(r,n):r.__proto__=n,r}}():void 0),YLe=pRe.PROPER,XLe=pRe.CONFIGURABLE,JLe=zLe.IteratorPrototype,ZLe=zLe.BUGGY_SAFARI_ITERATORS,QLe=_Be("iterator"),eMe=function(){return this},tMe=function(e,t,r,n,o,i,a){!function(e,t,r,n){var o=t+" Iterator";e.prototype=DIe($Le,{next:PNe(1,r)}),VLe(e,o,!1),FLe[o]=WLe}(r,t,n);var l,s,u,c=function(e){if(e===o&&v)return v;if(!ZLe&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[QLe]||p["@@iterator"]||o&&p[o],v=!ZLe&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(l=ILe(g.call(new e)))!==Object.prototype&&l.next&&(ILe(l)!==JLe&&(KLe?KLe(l,JLe):qNe(l[QLe])||hRe(l,QLe,eMe)),VLe(l,f,!0)),YLe&&"values"==o&&h&&"values"!==h.name&&(XLe?WBe(p,"name","values"):(d=!0,v=function(){return ONe(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(u in s)(ZLe||d||!(u in p))&&hRe(p,u,s[u]);else HRe({target:t,proto:!0,forced:ZLe||d},s);return p[QLe]!==v&&hRe(p,QLe,v,{name:o}),FLe[t]=v,s},rMe=uRe.set,nMe=uRe.getterFor("Array Iterator"),oMe=tMe(Array,"Array",(function
|
||
|
|
/**
|
||
|
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
||
|
|
*
|
||
|
|
* @license MIT <https://opensource.org/licenses/MIT>
|
||
|
|
* @author Lea Verou <https://lea.verou.me>
|
||
|
|
* @namespace
|
||
|
|
* @public
|
||
|
|
*/e.exports&&(e.exports=t),void 0!==hUe&&(hUe.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,r){var n={};n["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};o["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/
|
||
|
|
/*! *****************************************************************************
|
||
|
|
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.
|
||
|
|
***************************************************************************** */
|
||
|
|
function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var v=h.value,g=d+E$e(v);"string"!=typeof v&&l.push(((n={})[v.type]=!0,n.anchor={path:a,offset:d},n.focus={path:a,offset:g},n)),d=g}}catch(e){t={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(t)throw t.error}}return l},zWe=function(){return zWe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zWe.apply(this,arguments)},UWe=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=zWe(zWe({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=zWe(zWe({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=zWe(zWe({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=zWe(zWe({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var r=e.key,n=e.factory,o=e.config,i=j1(j1({},o),t||{});if(null!=L3[r])throw new Error("Duplicated key '"+r+"' in menu items");L3[r]=n,function(e,t){null!=t&&(I3[e]=t)}(r,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,r=e.renderElem;m8[t||""]=r}(e)},e.registerRenderStyle=function(e){!function(e){g8.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,r=e.elemToHtml;X3[t||""]=r}(e)},e.registerStyleToHtml=function(e){!function(e){Y3.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){M4.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,r=e.parseElemHtml;z4[t]=r}(e)},e.registerParseStyleHtml=function(e){!function(e){j4.push(e)}(e)},e.registerModule=function(e){HWe(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
|
||
|
|
/*! *****************************************************************************
|
||
|
|
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.
|
||
|
|
***************************************************************************** */function HWe(e){var t=e.menus,r=e.renderElems,n=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,l=e.parseElemsHtml,s=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach((function(e){return UWe.registerMenu(e)})),r&&r.forEach((function(e){return UWe.registerRenderElem(e)})),n&&UWe.registerRenderStyle(n),o&&o.forEach((function(e){return UWe.registerElemToHtml(e)})),i&&UWe.registerStyleToHtml(i),a&&a.forEach((function(e){return UWe.registerPreParseHtml(e)})),l&&l.forEach((function(e){return UWe.registerParseElemHtml(e)})),s&&UWe.registerParseStyleHtml(s),u&&UWe.registerPlugin(u)}epe.forEach((function(e){return HWe(e)})),HWe(gye),HWe(XSe),HWe(bNe),HWe(pUe),HWe(IWe);var VWe='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',$We={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},WWe={hoverbarKeys:zWe(zWe({},$We),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};UWe.setEditorConfig(zWe(zWe({},WWe),{decorate:jWe}));var GWe={hoverbarKeys:$We};UWe.setSimpleEditorConfig(zWe(zWe({},GWe),{decorate:jWe}));var qWe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:p9("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:p9("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:p9("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:p9("editor.image"),iconSvg:VWe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:p9("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};UWe.setToolbarConfig(qWe);var KWe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:p9("editor.image"),iconSvg:VWe,me
|