f-docx-editor 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("@tiptap/core"),require("@tiptap/extension-color"),require("@tiptap/extension-highlight"),require("@tiptap/extension-placeholder"),require("@tiptap/extension-table"),require("@tiptap/extension-table-cell"),require("@tiptap/extension-table-header"),require("@tiptap/extension-table-row"),require("@tiptap/extension-text-align"),require("@tiptap/extension-text-style"),require("@tiptap/starter-kit"),require("@tiptap/vue-3"),require("docx-preview"),require("docxtemplater"),require("docxtemplater-image-module-free"),require("echarts"),require("pizzip"),require("element-plus"),require("@element-plus/icons-vue"),require("vue")):"function"===typeof define&&define.amd?define(["@tiptap/core","@tiptap/extension-color","@tiptap/extension-highlight","@tiptap/extension-placeholder","@tiptap/extension-table","@tiptap/extension-table-cell","@tiptap/extension-table-header","@tiptap/extension-table-row","@tiptap/extension-text-align","@tiptap/extension-text-style","@tiptap/starter-kit","@tiptap/vue-3","docx-preview","docxtemplater","docxtemplater-image-module-free","echarts","pizzip","element-plus","@element-plus/icons-vue","vue"],e):"object"===typeof exports?exports["FDocxEditor"]=e(require("@tiptap/core"),require("@tiptap/extension-color"),require("@tiptap/extension-highlight"),require("@tiptap/extension-placeholder"),require("@tiptap/extension-table"),require("@tiptap/extension-table-cell"),require("@tiptap/extension-table-header"),require("@tiptap/extension-table-row"),require("@tiptap/extension-text-align"),require("@tiptap/extension-text-style"),require("@tiptap/starter-kit"),require("@tiptap/vue-3"),require("docx-preview"),require("docxtemplater"),require("docxtemplater-image-module-free"),require("echarts"),require("pizzip"),require("element-plus"),require("@element-plus/icons-vue"),require("vue")):t["FDocxEditor"]=e(t["@tiptap/core"],t["@tiptap/extension-color"],t["@tiptap/extension-highlight"],t["@tiptap/extension-placeholder"],t["@tiptap/extension-table"],t["@tiptap/extension-table-cell"],t["@tiptap/extension-table-header"],t["@tiptap/extension-table-row"],t["@tiptap/extension-text-align"],t["@tiptap/extension-text-style"],t["@tiptap/starter-kit"],t["@tiptap/vue-3"],t["docx-preview"],t["docxtemplater"],t["docxtemplater-image-module-free"],t["echarts"],t["pizzip"],t["ElementPlus"],t["ElementPlusIconsVue"],t["Vue"])})("undefined"!==typeof self?self:this,function(t,e,n,r,o,i,s,a,l,c,u,h,p,f,d,m,g,v,w,y){return function(){"use strict";var x={8868:function(t,e){e.A=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n}},1128:function(e){e.exports=t},8846:function(t){t.exports=e},7193:function(t){t.exports=n},5300:function(t){t.exports=r},8521:function(t){t.exports=o},9272:function(t){t.exports=i},3305:function(t){t.exports=s},8804:function(t){t.exports=a},2748:function(t){t.exports=l},4932:function(t){t.exports=c},4339:function(t){t.exports=u},5733:function(t){t.exports=h},9083:function(t){t.exports=p},1978:function(t){t.exports=f},9150:function(t){t.exports=d},7190:function(t){t.exports=m},2266:function(t){t.exports=g},8275:function(t){t.exports=v},2337:function(t){t.exports=w},154:function(t){t.exports=y},9306:function(t,e,n){var r=n(4901),o=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},7080:function(t,e,n){var r=n(4402).has;t.exports=function(t){return r(t),t}},4328:function(t,e,n){var r=n(4995),o=new r.WeakMap,i=r.set,s=r.remove;t.exports=function(t){return i(o,t,1),s(o,t),t}},6557:function(t,e,n){var r=n(4995).has;t.exports=function(t){return r(t),t}},6469:function(t,e,n){var r=n(8227),o=n(2360),i=n(4913).f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),t.exports=function(t){a[s][t]=!0}},679:function(t,e,n){var r=n(1625),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},8551:function(t,e,n){var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,e,n){var r=n(5397),o=n(5610),i=n(6198),s=function(t){return function(e,n,s){var a=r(e),l=i(a);if(0===l)return!t&&-1;var c,u=o(s,l);if(t&&n!==n){while(l>u)if(c=a[u++],c!==c)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4527:function(t,e,n){var r=n(3724),o=n(4376),i=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!s(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7680:function(t,e,n){var r=n(9504);t.exports=r([].slice)},6319:function(t,e,n){var r=n(8551),o=n(9539);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(s){o(t,"throw",s)}}},2195:function(t,e,n){var r=n(9504),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:function(t,e,n){var r=n(2140),o=n(4901),i=n(2195),s=n(8227),a=s("toStringTag"),l=Object,c="Arguments"===i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=l(t),a))?n:c?i(e):"Object"===(r=i(e))&&o(e.callee)?"Arguments":r}},7740:function(t,e,n){var r=n(9297),o=n(5031),i=n(7347),s=n(4913);t.exports=function(t,e,n){for(var a=o(e),l=s.f,c=i.f,u=0;u<a.length;u++){var h=a[u];r(t,h)||n&&r(n,h)||l(t,h,c(e,h))}}},2211:function(t,e,n){var r=n(9039);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2529:function(t){t.exports=function(t,e){return{value:t,done:e}}},6699:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=function(t,e,n){r?o.f(t,e,i(0,n)):t[e]=n}},2106:function(t,e,n){var r=n(283),o=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},6840:function(t,e,n){var r=n(4901),o=n(4913),i=n(283),s=n(9433);t.exports=function(t,e,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(r(n)&&i(n,c,a),a.global)l?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6279:function(t,e,n){var r=n(6840);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},9433:function(t,e,n){var r=n(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},3724:function(t,e,n){var r=n(9039);t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,n){var r=n(4576),o=n(34),i=r.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},6837:function(t){var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw new e("Maximum allowed index exceeded");return t}},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,n){var r=n(4576),o=r.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},9519:function(t,e,n){var r,o,i=n(4576),s=n(2839),a=i.process,l=i.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},6518:function(t,e,n){var r=n(4576),o=n(7347).f,i=n(6699),s=n(6840),a=n(9433),l=n(7740),c=n(2796);t.exports=function(t,e){var n,u,h,p,f,d,m=t.target,g=t.global,v=t.stat;if(u=g?r:v?r[m]||a(m,{}):r[m]&&r[m].prototype,u)for(h in e){if(f=e[h],t.dontCallGetSet?(d=o(u,h),p=d&&d.value):p=u[h],n=c(g?h:m+(v?".":"#")+h,t.forced),!n&&void 0!==p){if(typeof f==typeof p)continue;l(f,p)}(t.sham||p&&p.sham)&&i(f,"sham",!0),s(u,h,f,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},8745:function(t,e,n){var r=n(616),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(i):function(){return s.apply(i,arguments)})},6080:function(t,e,n){var r=n(7476),o=n(9306),i=n(616),s=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){var r=n(9039);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565:function(t,e,n){var r=n(616),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},350:function(t,e,n){var r=n(3724),o=n(9297),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),l=a&&"something"===function(){}.name,c=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},6706:function(t,e,n){var r=n(9504),o=n(9306);t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(i){}}},7476:function(t,e,n){var r=n(2195),o=n(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},9504:function(t,e,n){var r=n(616),o=Function.prototype,i=o.call,s=r&&o.bind.bind(i,i);t.exports=r?s:function(t){return function(){return i.apply(t,arguments)}}},7751:function(t,e,n){var r=n(4576),o=n(4901),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},8646:function(t,e,n){var r=n(9565),o=n(8551),i=n(1767),s=n(851);t.exports=function(t,e){e&&"string"===typeof t||o(t);var n=s(t);return i(o(void 0!==n?r(n,t):t))}},851:function(t,e,n){var r=n(6955),o=n(5966),i=n(4117),s=n(6269),a=n(8227),l=a("iterator");t.exports=function(t){if(!i(t))return o(t,l)||o(t,"@@iterator")||s[r(t)]}},81:function(t,e,n){var r=n(9565),o=n(9306),i=n(8551),s=n(6823),a=n(851),l=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(o(n))return i(r(n,t));throw new l(s(t)+" is not iterable")}},5966:function(t,e,n){var r=n(9306),o=n(4117);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},3789:function(t,e,n){var r=n(9306),o=n(8551),i=n(9565),s=n(1291),a=n(1767),l="Invalid size",c=RangeError,u=TypeError,h=Math.max,p=function(t,e){this.set=t,this.size=h(e,0),this.has=r(t.has),this.keys=r(t.keys)};p.prototype={getIterator:function(){return a(o(i(this.keys,this.set)))},includes:function(t){return i(this.has,this.set,t)}},t.exports=function(t){o(t);var e=+t.size;if(e!==e)throw new u(l);var n=s(e);if(n<0)throw new c(l);return new p(t,n)}},4576:function(t,e,n){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){t.exports={}},397:function(t,e,n){var r=n(7751);t.exports=r("document","documentElement")},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(2195),s=Object,a=r("".split);t.exports=o(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?a(t,""):s(t)}:s},3706:function(t,e,n){var r=n(9504),o=n(4901),i=n(7629),s=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},1181:function(t,e,n){var r,o,i,s=n(8622),a=n(4576),l=n(34),c=n(6699),u=n(9297),h=n(7629),p=n(6119),f=n(421),d="Object already initialized",m=a.TypeError,g=a.WeakMap,v=function(t){return i(t)?o(t):r(t,{})},w=function(t){return function(e){var n;if(!l(e)||(n=o(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}};if(s||h.state){var y=h.state||(h.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw new m(d);return e.facade=t,y.set(t,e),e},o=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var x=p("state");f[x]=!0,r=function(t,e){if(u(t,x))throw new m(d);return e.facade=t,c(t,x,e),e},o=function(t){return u(t,x)?t[x]:{}},i=function(t){return u(t,x)}}t.exports={set:r,get:o,has:i,enforce:v,getterFor:w}},4209:function(t,e,n){var r=n(8227),o=n(6269),i=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},4376:function(t,e,n){var r=n(2195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4901:function(t){var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,n){var r=n(9039),o=n(4901),i=/#|\.prototype\./,s=function(t,e){var n=l[a(t)];return n===u||n!==c&&(o(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},4117:function(t){t.exports=function(t){return null===t||void 0===t}},34:function(t,e,n){var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6395:function(t){t.exports=!1},5810:function(t,e,n){var r=n(34),o=n(1181).get;t.exports=function(t){if(!r(t))return!1;var e=o(t);return!!e&&"RawJSON"===e.type}},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),s=n(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,a(t))}},507:function(t,e,n){var r=n(9565);t.exports=function(t,e,n){var o,i,s=n?t:t.iterator,a=t.next;while(!(o=r(a,s)).done)if(i=e(o.value),void 0!==i)return i}},2652:function(t,e,n){var r=n(6080),o=n(9565),i=n(8551),s=n(6823),a=n(4209),l=n(6198),c=n(1625),u=n(81),h=n(851),p=n(9539),f=TypeError,d=function(t,e){this.stopped=t,this.result=e},m=d.prototype;t.exports=function(t,e,n){var g,v,w,y,x,b,S,k=n&&n.that,C=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),N=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),M=r(e,k),T=function(t){var e=g;return g=void 0,e&&p(e,"normal"),new d(!0,t)},$=function(t){return C?(i(t),A?M(t[0],t[1],T):M(t[0],t[1])):A?M(t,T):M(t)};if(E)g=t.iterator;else if(N)g=t;else{if(v=h(t),!v)throw new f(s(t)+" is not iterable");if(a(v)){for(w=0,y=l(t);y>w;w++)if(x=$(t[w]),x&&c(m,x))return x;return new d(!1)}g=u(t,v)}b=E?t.next:g.next;while(!(S=o(b,g)).done){var O=S.value;try{x=$(O)}catch(R){if(!g)throw R;p(g,"throw",R)}if("object"==typeof x&&x&&c(m,x))return x}return new d(!1)}},1385:function(t,e,n){var r=n(9539);t.exports=function(t,e,n){for(var o=t.length-1;o>=0;o--)if(void 0!==t[o])try{n=r(t[o].iterator,e,n)}catch(i){e="throw",n=i}if("throw"===e)throw n;return n}},9539:function(t,e,n){var r=n(9565),o=n(8551),i=n(5966);t.exports=function(t,e,n){var s,a;o(t);try{if(s=i(t,"return"),!s){if("throw"===e)throw n;return n}s=r(s,t)}catch(l){a=!0,s=l}if("throw"===e)throw n;if(a)throw s;return o(s),n}},9462:function(t,e,n){var r=n(9565),o=n(2360),i=n(6699),s=n(6279),a=n(8227),l=n(1181),c=n(5966),u=n(7657).IteratorPrototype,h=n(2529),p=n(9539),f=n(1385),d=a("toStringTag"),m="IteratorHelper",g="WrapForValidIterator",v="normal",w="throw",y=l.set,x=function(t){var e=l.getterFor(t?g:m);return s(o(u),{next:function(){var n=e(this);if(t)return n.nextHandler();if(n.done)return h(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:h(r,n.done)}catch(o){throw n.done=!0,o}},return:function(){var n=e(this),o=n.iterator,i=n.done;if(n.done=!0,t){var s=c(o,"return");return s?r(s,o):h(void 0,!0)}if(i)return h(void 0,!0);if(n.inner)try{p(n.inner.iterator,v)}catch(a){return p(o,w,a)}if(n.openIters)try{f(n.openIters,v)}catch(a){if(o)return p(o,w,a);throw a}return o&&p(o,v),h(void 0,!0)}})},b=x(!0),S=x(!1);i(S,d,"Iterator Helper"),t.exports=function(t,e,n){var r=function(r,o){o?(o.iterator=r.iterator,o.next=r.next):o=r,o.type=e?g:m,o.returnHandlerResult=!!n,o.nextHandler=t,o.counter=0,o.done=!1,y(this,o)};return r.prototype=e?b:S,r}},684:function(t){t.exports=function(t,e){var n="function"==typeof Iterator&&Iterator.prototype[t];if(n)try{n.call({next:null},e).next()}catch(r){return!0}}},4549:function(t,e,n){var r=n(4576);t.exports=function(t,e){var n=r.Iterator,o=n&&n.prototype,i=o&&o[t],s=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(a){a instanceof e||(s=!1)}if(!s)return i}},7657:function(t,e,n){var r,o,i,s=n(9039),a=n(4901),l=n(34),c=n(2360),u=n(2787),h=n(6840),p=n(8227),f=n(6395),d=p("iterator"),m=!1;[].keys&&(i=[].keys(),"next"in i?(o=u(u(i)),o!==Object.prototype&&(r=o)):m=!0);var g=!l(r)||s(function(){var t={};return r[d].call(t)!==t});g?r={}:f&&(r=c(r)),a(r[d])||h(r,d,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},6269:function(t){t.exports={}},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)}},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),s=n(9297),a=n(3724),l=n(350).CONFIGURABLE,c=n(3706),u=n(1181),h=u.enforce,p=u.get,f=String,d=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),w=a&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),y=String(String).split("String"),x=t.exports=function(t,e,n){"Symbol("===m(f(e),0,7)&&(e="["+g(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||l&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),w&&n&&s(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=h(t);return s(r,"source")||(r.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=x(function(){return i(this)&&p(this).source||c(this)},"toString")},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},7819:function(t,e,n){var r=n(9039);t.exports=!r(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},2360:function(t,e,n){var r,o=n(8551),i=n(6801),s=n(8727),a=n(421),l=n(397),c=n(4055),u=n(6119),h=">",p="<",f="prototype",d="script",m=u("IE_PROTO"),g=function(){},v=function(t){return p+d+h+t+p+"/"+d+h},w=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=c("iframe"),n="java"+d+":";return e.style.display="none",l.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F},x=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}x="undefined"!=typeof document?document.domain&&r?w(r):y():w(r);var t=s.length;while(t--)delete x[f][s[t]];return x()};a[m]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[f]=o(t),n=new g,g[f]=null,n[m]=t):n=x(),void 0===e?n:i.f(n,e)}},6801:function(t,e,n){var r=n(3724),o=n(8686),i=n(4913),s=n(8551),a=n(5397),l=n(1072);e.f=r&&!o?Object.defineProperties:function(t,e){s(t);var n,r=a(e),o=l(e),c=o.length,u=0;while(c>u)i.f(t,n=o[u++],r[n]);return t}},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),s=n(8551),a=n(6969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",p="configurable",f="writable";e.f=r?i?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var r=u(t,e);r&&r[f]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:h in n?n[h]:r[h],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=a(e),s(n),o)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),s=n(6980),a=n(5397),l=n(6969),c=n(9297),u=n(5917),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=a(t),e=l(e),u)try{return h(t,e)}catch(n){}if(c(t,e))return s(!o(i.f,t,e),t[e])}},8480:function(t,e,n){var r=n(1828),o=n(8727),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},3717:function(t,e){e.f=Object.getOwnPropertySymbols},2787:function(t,e,n){var r=n(9297),o=n(4901),i=n(8981),s=n(6119),a=n(2211),l=s("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=i(t);if(r(e,l))return e[l];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof c?u:null}},1625:function(t,e,n){var r=n(9504);t.exports=r({}.isPrototypeOf)},1828:function(t,e,n){var r=n(9504),o=n(9297),i=n(5397),s=n(9617).indexOf,a=n(421),l=r([].push);t.exports=function(t,e){var n,r=i(t),c=0,u=[];for(n in r)!o(a,n)&&o(r,n)&&l(u,n);while(e.length>c)o(r,n=e[c++])&&(~s(u,n)||l(u,n));return u}},1072:function(t,e,n){var r=n(1828),o=n(8727);t.exports=Object.keys||function(t){return r(t,o)}},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},4270:function(t,e,n){var r=n(9565),o=n(4901),i=n(34),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&o(n=t.toString)&&!i(a=r(n,t)))return a;if(o(n=t.valueOf)&&!i(a=r(n,t)))return a;if("string"!==e&&o(n=t.toString)&&!i(a=r(n,t)))return a;throw new s("Can't convert object to primitive value")}},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),s=n(3717),a=n(8551),l=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=s.f;return n?l(e,n(t)):e}},8235:function(t,e,n){var r=n(9504),o=n(9297),i=SyntaxError,s=parseInt,a=String.fromCharCode,l=r("".charAt),c=r("".slice),u=r(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},p=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;t.exports=function(t,e){var n=!0,r="";while(e<t.length){var d=l(t,e);if("\\"===d){var m=c(t,e,e+2);if(o(h,m))r+=h[m],e+=2;else{if("\\u"!==m)throw new i('Unknown escape sequence: "'+m+'"');e+=2;var g=c(t,e,e+4);if(!u(p,g))throw new i("Bad Unicode escape at: "+e);r+=a(s(g,16)),e+=4}}else{if('"'===d){n=!1,e++;break}if(u(f,d))throw new i("Bad control character in string literal at: "+e);r+=d,e++}}if(n)throw new i("Unterminated string at: "+e);return{value:r,end:e}}},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},9286:function(t,e,n){var r=n(4402),o=n(8469),i=r.Set,s=r.add;t.exports=function(t){var e=new i;return o(t,function(t){s(e,t)}),e}},3440:function(t,e,n){var r=n(7080),o=n(4402),i=n(9286),s=n(5170),a=n(3789),l=n(8469),c=n(507),u=o.has,h=o.remove;t.exports=function(t){var e=r(this),n=a(t),o=i(e);return s(o)<=n.size?l(o,function(t){n.includes(t)&&h(o,t)}):c(n.getIterator(),function(t){u(o,t)&&h(o,t)}),o}},4402:function(t,e,n){var r=n(9504),o=Set.prototype;t.exports={Set:Set,add:r(o.add),has:r(o.has),remove:r(o["delete"]),proto:o}},8750:function(t,e,n){var r=n(7080),o=n(4402),i=n(5170),s=n(3789),a=n(8469),l=n(507),c=o.Set,u=o.add,h=o.has;t.exports=function(t){var e=r(this),n=s(t),o=new c;return i(e)>n.size?l(n.getIterator(),function(t){h(e,t)&&u(o,t)}):a(e,function(t){n.includes(t)&&u(o,t)}),o}},4449:function(t,e,n){var r=n(7080),o=n(4402).has,i=n(5170),s=n(3789),a=n(8469),l=n(507),c=n(9539);t.exports=function(t){var e=r(this),n=s(t);if(i(e)<=n.size)return!1!==a(e,function(t){if(n.includes(t))return!1},!0);var u=n.getIterator();return!1!==l(u,function(t){if(o(e,t))return c(u.iterator,"normal",!1)})}},3838:function(t,e,n){var r=n(7080),o=n(5170),i=n(8469),s=n(3789);t.exports=function(t){var e=r(this),n=s(t);return!(o(e)>n.size)&&!1!==i(e,function(t){if(!n.includes(t))return!1},!0)}},8527:function(t,e,n){var r=n(7080),o=n(4402).has,i=n(5170),s=n(3789),a=n(507),l=n(9539);t.exports=function(t){var e=r(this),n=s(t);if(i(e)<n.size)return!1;var c=n.getIterator();return!1!==a(c,function(t){if(!o(e,t))return l(c.iterator,"normal",!1)})}},8469:function(t,e,n){var r=n(9504),o=n(507),i=n(4402),s=i.Set,a=i.proto,l=r(a.forEach),c=r(a.keys),u=c(new s).next;t.exports=function(t,e,n){return n?o({iterator:c(t),next:u},e):l(t,e)}},4916:function(t,e,n){var r=n(7751),o=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(t){return{size:t,has:function(){return!0},keys:function(){throw new Error("e")}}};t.exports=function(t,e){var n=r("Set");try{(new n)[t](o(0));try{return(new n)[t](o(-1)),!1}catch(a){if(!e)return!0;try{return(new n)[t](i(-1/0)),!1}catch(l){var s=new n([1,2]);return e(s[t](i(1/0)))}}}catch(l){return!1}}},9835:function(t){t.exports=function(t){try{var e=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},r=e[t](n);return 1===r.size&&4===r.values().next().value}catch(o){return!1}}},5170:function(t,e,n){var r=n(6706),o=n(4402);t.exports=r(o.proto,"size","get")||function(t){return t.size}},3650:function(t,e,n){var r=n(7080),o=n(4402),i=n(9286),s=n(3789),a=n(507),l=o.add,c=o.has,u=o.remove;t.exports=function(t){var e=r(this),n=s(t).getIterator(),o=i(e);return a(n,function(t){c(e,t)?u(o,t):l(o,t)}),o}},4204:function(t,e,n){var r=n(7080),o=n(4402).add,i=n(9286),s=n(3789),a=n(507);t.exports=function(t){var e=r(this),n=s(t).getIterator(),l=i(e);return a(n,function(t){o(l,t)}),l}},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,n){var r=n(6395),o=n(4576),i=n(9433),s="__core-js_shared__",a=t.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4495:function(t,e,n){var r=n(9519),o=n(9039),i=n(4576),s=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))}},1291:function(t,e,n){var r=n(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){var e=r(t);return e>0?o(e,9007199254740991):0}},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),s=n(5966),a=n(4270),l=n(8227),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,l=s(t,u);if(l){if(void 0===e&&(e="default"),n=r(l,t,e),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},2140:function(t,e,n){var r=n(8227),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},655:function(t,e,n){var r=n(6955),o=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},3392:function(t,e,n){var r=n(9504),o=0,i=Math.random(),s=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},7040:function(t,e,n){var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){var r=n(3724),o=n(9039);t.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2812:function(t){var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},8622:function(t,e,n){var r=n(4576),o=n(4901),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},4995:function(t,e,n){var r=n(9504),o=WeakMap.prototype;t.exports={WeakMap:WeakMap,set:r(o.set),get:r(o.get),has:r(o.has),remove:r(o["delete"])}},8227:function(t,e,n){var r=n(4576),o=n(5745),i=n(9297),s=n(3392),a=n(4495),l=n(7040),c=r.Symbol,u=o("wks"),h=l?c["for"]||c:c&&c.withoutSetter||s;t.exports=function(t){return i(u,t)||(u[t]=a&&i(c,t)?c[t]:h("Symbol."+t)),u[t]}},4423:function(t,e,n){var r=n(6518),o=n(9617).includes,i=n(9039),s=n(6469),a=i(function(){return!Array(1).includes()}),l=i(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:a||l},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},4114:function(t,e,n){var r=n(6518),o=n(8981),i=n(6198),s=n(4527),a=n(6837),l=n(9039),c=l(function(){return 4294967297!==[].push.call({length:4294967296},1)}),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=c||!u();r({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=o(this),n=i(e),r=arguments.length;a(n+r);for(var l=0;l<r;l++)e[n]=arguments[l],n++;return s(e,n),n}})},8111:function(t,e,n){var r=n(6518),o=n(4576),i=n(679),s=n(8551),a=n(4901),l=n(2787),c=n(2106),u=n(4659),h=n(9039),p=n(9297),f=n(8227),d=n(7657).IteratorPrototype,m=n(3724),g=n(6395),v="constructor",w="Iterator",y=f("toStringTag"),x=TypeError,b=o[w],S=g||!a(b)||b.prototype!==d||!h(function(){b({})}),k=function(){if(i(this,d),l(this)===d)throw new x("Abstract class Iterator not directly constructable")},C=function(t,e){m?c(d,t,{configurable:!0,get:function(){return e},set:function(e){if(s(this),this===d)throw new x("You can't redefine this property");p(this,t)?this[t]=e:u(this,t,e)}}):d[t]=e};p(d,y)||C(y,w),!S&&p(d,v)&&d[v]!==Object||C(v,k),k.prototype=d,r({global:!0,constructor:!0,forced:S},{Iterator:k})},2489:function(t,e,n){var r=n(6518),o=n(9565),i=n(9306),s=n(8551),a=n(1767),l=n(9462),c=n(6319),u=n(6395),h=n(9539),p=n(684),f=n(4549),d=!u&&!p("filter",function(){}),m=!u&&!d&&f("filter",TypeError),g=u||d||m,v=l(function(){var t,e,n,r=this.iterator,i=this.predicate,a=this.next;while(1){if(t=s(o(a,r)),e=this.done=!!t.done,e)return;if(n=t.value,c(r,i,[n,this.counter++],!0))return n}});r({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(t){s(this);try{i(t)}catch(e){h(this,"throw",e)}return m?o(m,this,t):new v(a(this),{predicate:t})}})},116:function(t,e,n){var r=n(6518),o=n(9565),i=n(2652),s=n(9306),a=n(8551),l=n(1767),c=n(9539),u=n(4549),h=u("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:h},{find:function(t){a(this);try{s(t)}catch(r){c(this,"throw",r)}if(h)return o(h,this,t);var e=l(this),n=0;return i(e,function(e,r){if(t(e,n++))return r(e)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},531:function(t,e,n){var r=n(6518),o=n(9565),i=n(9306),s=n(8551),a=n(1767),l=n(8646),c=n(9462),u=n(9539),h=n(6395),p=n(684),f=n(4549);function d(){try{var t=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(t){return t});t.next(),t["return"]()}catch(e){return!0}}var m=!h&&!p("flatMap",function(){}),g=!h&&!m&&f("flatMap",TypeError),v=h||m||g||d(),w=c(function(){var t,e,n=this.iterator,r=this.mapper;while(1){if(e=this.inner)try{if(t=s(o(e.next,e.iterator)),!t.done)return t.value;this.inner=null}catch(i){u(n,"throw",i)}if(t=s(o(this.next,n)),this.done=!!t.done)return;try{this.inner=l(r(t.value,this.counter++),!1)}catch(i){u(n,"throw",i)}}});r({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(t){s(this);try{i(t)}catch(e){u(this,"throw",e)}return g?o(g,this,t):new w(a(this),{mapper:t,inner:null})}})},7588:function(t,e,n){var r=n(6518),o=n(9565),i=n(2652),s=n(9306),a=n(8551),l=n(1767),c=n(9539),u=n(4549),h=u("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:h},{forEach:function(t){a(this);try{s(t)}catch(r){c(this,"throw",r)}if(h)return o(h,this,t);var e=l(this),n=0;i(e,function(e){t(e,n++)},{IS_RECORD:!0})}})},1701:function(t,e,n){var r=n(6518),o=n(9565),i=n(9306),s=n(8551),a=n(1767),l=n(9462),c=n(6319),u=n(9539),h=n(684),p=n(4549),f=n(6395),d=!f&&!h("map",function(){}),m=!f&&!d&&p("map",TypeError),g=f||d||m,v=l(function(){var t=this.iterator,e=s(o(this.next,t)),n=this.done=!!e.done;if(!n)return c(t,this.mapper,[e.value,this.counter++],!0)});r({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(t){s(this);try{i(t)}catch(e){u(this,"throw",e)}return m?o(m,this,t):new v(a(this),{mapper:t})}})},8237:function(t,e,n){var r=n(6518),o=n(2652),i=n(9306),s=n(8551),a=n(1767),l=n(9539),c=n(4549),u=n(8745),h=n(9039),p=TypeError,f=h(function(){[].keys().reduce(function(){},void 0)}),d=!f&&c("reduce",p);r({target:"Iterator",proto:!0,real:!0,forced:f||d},{reduce:function(t){s(this);try{i(t)}catch(h){l(this,"throw",h)}var e=arguments.length<2,n=e?void 0:arguments[1];if(d)return u(d,this,e?[t]:[t,n]);var r=a(this),c=0;if(o(r,function(r){e?(e=!1,n=r):n=t(n,r,c),c++},{IS_RECORD:!0}),e)throw new p("Reduce of empty iterator with no initial value");return n}})},3579:function(t,e,n){var r=n(6518),o=n(9565),i=n(2652),s=n(9306),a=n(8551),l=n(1767),c=n(9539),u=n(4549),h=u("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:h},{some:function(t){a(this);try{s(t)}catch(r){c(this,"throw",r)}if(h)return o(h,this,t);var e=l(this),n=0;return i(e,function(e,r){if(t(e,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},9112:function(t,e,n){var r=n(6518),o=n(3724),i=n(4576),s=n(7751),a=n(9504),l=n(9565),c=n(4901),u=n(34),h=n(4376),p=n(9297),f=n(655),d=n(6198),m=n(4659),g=n(9039),v=n(8235),w=n(4495),y=i.JSON,x=i.Number,b=i.SyntaxError,S=y&&y.parse,k=s("Object","keys"),C=Object.getOwnPropertyDescriptor,E=a("".charAt),N=a("".slice),A=a(/./.exec),M=a([].push),T=/^\d$/,$=/^[1-9]$/,O=/^[\d-]$/,R=/^[\t\n\r ]$/,I=0,z=1,V=function(t,e){t=f(t);var n=new D(t,0,""),r=n.parse(),o=r.value,i=n.skip(R,r.end);if(i<t.length)throw new b('Unexpected extra character: "'+E(t,i)+'" after the parsed data at: '+i);return c(e)?j({"":o},"",e,r):o},j=function(t,e,n,r){var o,i,s,a,c,f=t[e],m=r&&f===r.value,g=m&&"string"==typeof r.source?{source:r.source}:{};if(u(f)){var v=h(f),w=m?r.nodes:v?[]:{};if(v)for(o=w.length,s=d(f),a=0;a<s;a++)L(f,a,j(f,""+a,n,a<o?w[a]:void 0));else for(i=k(f),s=d(i),a=0;a<s;a++)c=i[a],L(f,c,j(f,c,n,p(w,c)?w[c]:void 0))}return l(n,t,e,f,g)},L=function(t,e,n){if(o){var r=C(t,e);if(r&&!r.configurable)return}void 0===n?delete t[e]:m(t,e,n)},B=function(t,e,n,r){this.value=t,this.end=e,this.source=n,this.nodes=r},D=function(t,e){this.source=t,this.index=e};D.prototype={fork:function(t){return new D(this.source,t)},parse:function(){var t=this.source,e=this.skip(R,this.index),n=this.fork(e),r=E(t,e);if(A(O,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new b('Unexpected character: "'+r+'" at: '+e)},node:function(t,e,n,r,o){return new B(e,r,t?null:N(this.source,n,r),o)},object:function(){var t=this.source,e=this.index+1,n=!1,r={},o={},i=!1;while(e<t.length){if(e=this.until(['"',"}"],e),"}"===E(t,e)&&!n){e++,i=!0;break}var s=this.fork(e).string(),a=s.value;e=s.end,e=this.until([":"],e)+1,e=this.skip(R,e),s=this.fork(e).parse(),m(o,a,s),m(r,a,s.value),e=this.until([",","}"],s.end);var l=E(t,e);if(","===l)n=!0,e++;else if("}"===l){e++,i=!0;break}}if(!i)throw new b("Unterminated object at: "+e);return this.node(z,r,this.index,e,o)},array:function(){var t=this.source,e=this.index+1,n=!1,r=[],o=[],i=!1;while(e<t.length){if(e=this.skip(R,e),"]"===E(t,e)&&!n){e++,i=!0;break}var s=this.fork(e).parse();if(M(o,s),M(r,s.value),e=this.until([",","]"],s.end),","===E(t,e))n=!0,e++;else if("]"===E(t,e)){e++,i=!0;break}}if(!i)throw new b("Unterminated array at: "+e);return this.node(z,r,this.index,e,o)},string:function(){var t=this.index,e=v(this.source,this.index+1);return this.node(I,e.value,t,e.end)},number:function(){var t=this.source,e=this.index,n=e;if("-"===E(t,n)&&n++,"0"===E(t,n))n++;else{if(!A($,E(t,n)))throw new b("Failed to parse number at: "+n);n=this.skip(T,n+1)}if("."===E(t,n)){var r=n+1;if(n=this.skip(T,r),r===n)throw new b("Failed to parse number's fraction at: "+n)}if("e"===E(t,n)||"E"===E(t,n)){n++,"+"!==E(t,n)&&"-"!==E(t,n)||n++;var o=n;if(n=this.skip(T,n),o===n)throw new b("Failed to parse number's exponent value at: "+n)}return this.node(I,x(N(t,e,n)),e,n)},keyword:function(t){var e=""+t,n=this.index,r=n+e.length;if(N(this.source,n,r)!==e)throw new b("Failed to parse value at: "+n);return this.node(I,t,n,r)},skip:function(t,e){for(var n=this.source;e<n.length;e++)if(!A(t,E(n,e)))break;return e},until:function(t,e){e=this.skip(R,e);for(var n=E(this.source,e),r=0;r<t.length;r++)if(t[r]===n)return e;throw new b('Unexpected character: "'+n+'" at: '+e)}};var _=g(function(){var t,e="9007199254740993";return S(e,function(e,n,r){t=r.source}),t!==e}),F=w&&!g(function(){return 1/S("-0 \t")!==-1/0});r({target:"JSON",stat:!0,forced:_},{parse:function(t,e){return F&&!c(e)?S(t):V(t,e)}})},3110:function(t,e,n){var r=n(6518),o=n(7751),i=n(8745),s=n(9565),a=n(9504),l=n(9039),c=n(4376),u=n(4901),h=n(5810),p=n(757),f=n(2195),d=n(655),m=n(7680),g=n(8235),v=n(3392),w=n(4495),y=n(7819),x=String,b=o("JSON","stringify"),S=a(/./.exec),k=a("".charAt),C=a("".charCodeAt),E=a("".replace),N=a("".slice),A=a([].push),M=a(1.1.toString),T=/[\uD800-\uDFFF]/g,$=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,R=v(),I=R.length,z=!w||l(function(){var t=o("Symbol")("stringify detection");return"[null]"!==b([t])||"{}"!==b({a:t})||"{}"!==b(Object(t))}),V=l(function(){return'"\\udf06\\ud834"'!==b("\udf06\ud834")||'"\\udead"'!==b("\udead")}),j=z?function(t,e){var n=m(arguments),r=B(e);if(u(r)||void 0!==t&&!p(t))return n[1]=function(t,e){if(u(r)&&(e=s(r,this,x(t),e)),!p(e))return e},i(b,null,n)}:b,L=function(t,e,n){var r=k(n,e-1),o=k(n,e+1);return S($,t)&&!S(O,o)||S(O,t)&&!S($,r)?"\\u"+M(C(t,0),16):t},B=function(t){if(u(t))return t;if(c(t)){for(var e=t.length,n=[],r=0;r<e;r++){var o=t[r];"string"==typeof o?A(n,o):"number"!=typeof o&&"Number"!==f(o)&&"String"!==f(o)||A(n,d(o))}var i=n.length,s=!0;return function(t,e){if(s)return s=!1,e;if(c(this))return e;for(var r=0;r<i;r++)if(n[r]===t)return e}}};b&&r({target:"JSON",stat:!0,arity:3,forced:z||V||!y},{stringify:function(t,e,n){var r=B(e),o=[],i=j(t,function(t,e){var n=u(r)?s(r,this,x(t),e):e;return!y&&h(n)?R+(A(o,n.rawJSON)-1):n},n);if("string"!=typeof i)return i;if(V&&(i=E(i,T,L)),y)return i;for(var a="",l=i.length,c=0;c<l;c++){var p=k(i,c);if('"'===p){var f=g(i,++c).end-1,d=N(i,c,f);a+=N(d,0,I)===R?o[N(d,I)]:'"'+d+'"',c=f}else a+=p}return a}})},7642:function(t,e,n){var r=n(6518),o=n(3440),i=n(9039),s=n(4916),a=!s("difference",function(t){return 0===t.size}),l=a||i(function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var n=t++>1;return e.has(1)&&e.clear(),{done:n,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size});r({target:"Set",proto:!0,real:!0,forced:l},{difference:o})},8004:function(t,e,n){var r=n(6518),o=n(9039),i=n(8750),s=n(4916),a=!s("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2)})||o(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))});r({target:"Set",proto:!0,real:!0,forced:a},{intersection:i})},3853:function(t,e,n){var r=n(6518),o=n(4449),i=n(4916),s=!i("isDisjointFrom",function(t){return!t});r({target:"Set",proto:!0,real:!0,forced:s},{isDisjointFrom:o})},5876:function(t,e,n){var r=n(6518),o=n(3838),i=n(4916),s=!i("isSubsetOf",function(t){return t});r({target:"Set",proto:!0,real:!0,forced:s},{isSubsetOf:o})},2475:function(t,e,n){var r=n(6518),o=n(8527),i=n(4916),s=!i("isSupersetOf",function(t){return!t});r({target:"Set",proto:!0,real:!0,forced:s},{isSupersetOf:o})},5024:function(t,e,n){var r=n(6518),o=n(3650),i=n(9835),s=n(4916),a=!s("symmetricDifference")||!i("symmetricDifference");r({target:"Set",proto:!0,real:!0,forced:a},{symmetricDifference:o})},1698:function(t,e,n){var r=n(6518),o=n(4204),i=n(9835),s=n(4916),a=!s("union")||!i("union");r({target:"Set",proto:!0,real:!0,forced:a},{union:o})},9452:function(t,e,n){var r=n(6518),o=n(9306),i=n(6557),s=n(4328),a=n(4995),l=n(6395),c=a.get,u=a.has,h=a.set,p=l||!function(){try{WeakMap.prototype.getOrInsertComputed&&(new WeakMap).getOrInsertComputed(1,function(){throw 1})}catch(t){return t instanceof TypeError}}();r({target:"WeakMap",proto:!0,real:!0,forced:p},{getOrInsertComputed:function(t,e){if(l||i(this),s(t),o(e),u(this,t))return c(this,t);var n=e(t);return h(this,t,n),n}})},8454:function(t,e,n){var r=n(6518),o=n(4995),i=n(6395),s=o.get,a=o.has,l=o.set;r({target:"WeakMap",proto:!0,real:!0,forced:i},{getOrInsert:function(t,e){return a(this,t)?s(this,t):(l(this,t,e),e)}})},4603:function(t,e,n){var r=n(6840),o=n(9504),i=n(655),s=n(2812),a=URLSearchParams,l=a.prototype,c=o(l.append),u=o(l["delete"]),h=o(l.forEach),p=o([].push),f=new a("a=1&a=2&b=3");f["delete"]("a",1),f["delete"]("b",void 0),f+""!=="a=2"&&r(l,"delete",function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var r=[];h(this,function(t,e){p(r,{key:e,value:t})}),s(e,1);var o,a=i(t),l=i(n),f=0,d=r.length;while(f<d)o=r[f],u(this,o.key),f++;f=0;while(f<d)o=r[f++],o.key===a&&o.value===l||c(this,o.key,o.value)},{enumerable:!0,unsafe:!0})},7566:function(t,e,n){var r=n(6840),o=n(9504),i=n(655),s=n(2812),a=URLSearchParams,l=a.prototype,c=o(l.getAll),u=o(l.has),h=new a("a=1");!h.has("a",2)&&h.has("a",void 0)||r(l,"has",function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var r=c(this,t);s(e,1);var o=i(n),a=0;while(a<r.length)if(r[a++]===o)return!0;return!1},{enumerable:!0,unsafe:!0})},8721:function(t,e,n){var r=n(3724),o=n(9504),i=n(2106),s=URLSearchParams.prototype,a=o(s.forEach);r&&!("size"in s)&&i(s,"size",{get:function(){var t=0;return a(this,function(){t++}),t},configurable:!0,enumerable:!0})}},b={};function S(t){var e=b[t];if(void 0!==e)return e.exports;var n=b[t]={exports:{}};return x[t].call(n.exports,n,n.exports,S),n.exports}!function(){S.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return S.d(e,{a:e}),e}}(),function(){S.d=function(t,e){for(var n in e)S.o(e,n)&&!S.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){S.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){S.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){S.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){S.p=""}();var k={};if(S.r(k),S.d(k,{FDocxEditor:function(){return ar},default:function(){return cr}}),"undefined"!==typeof window){var C=window.document.currentScript,E=C&&C.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);E&&(S.p=E[1])}S(4423),S(4114),S(8111),S(2489),S(116),S(531),S(7588),S(1701),S(8237),S(3579),S(9112),S(3110),S(7642),S(8004),S(3853),S(5876),S(2475),S(5024),S(1698),S(4603),S(7566),S(8721);var N=S(154),A=S(8275),M=S(2337),T=S(1978),$=S.n(T),O=S(9150),R=S.n(O),I=S(2266),z=S.n(I),V=S(9083),j=S(7190),L=S(1128),B=S(8846),D=S.n(B),_=S(7193),F=S.n(_),J=S(5300),q=S.n(J);S(8454),S(9452);function P(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let t=0;o.text[t]==i.text[t];t++)n++;return n}if(o.content.size||i.content.size){let t=P(o.content,i.content,n+1);if(null!=t)return t}n+=o.nodeSize}else n+=o.nodeSize}}function H(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};let s=t.child(--o),a=e.child(--i),l=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){let t=0,e=Math.min(s.text.length,a.text.length);while(t<e&&s.text[s.text.length-t-1]==a.text[a.text.length-t-1])t++,n--,r--;return{a:n,b:r}}if(s.content.size||a.content.size){let t=H(s.content,a.content,n-1,r-1);if(t)return t}n-=l,r-=l}else n-=l,r-=l}}class W{constructor(t,e){if(this.content=t,this.size=e||0,null==e)for(let n=0;n<t.length;n++)this.size+=t[n].nodeSize}nodesBetween(t,e,n,r=0,o){for(let i=0,s=0;s<e;i++){let a=this.content[i],l=s+a.nodeSize;if(l>t&&!1!==n(a,r+s,o||null,i)&&a.content.size){let o=s+1;a.nodesBetween(Math.max(0,t-o),Math.min(a.content.size,e-o),n,r+o)}s=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,n,r){let o="",i=!0;return this.nodesBetween(t,e,(s,a)=>{let l=s.isText?s.text.slice(Math.max(t,a)-a,e-a):s.isLeaf?r?"function"===typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&n&&(i?i=!1:o+=n),o+=l},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,n=t.firstChild,r=this.content.slice(),o=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),o=1);o<t.content.length;o++)r.push(t.content[o]);return new W(r,this.size+t.size)}cut(t,e=this.size){if(0==t&&e==this.size)return this;let n=[],r=0;if(e>t)for(let o=0,i=0;i<e;o++){let s=this.content[o],a=i+s.nodeSize;a>t&&((i<t||a>e)&&(s=s.isText?s.cut(Math.max(0,t-i),Math.min(s.text.length,e-i)):s.cut(Math.max(0,t-i-1),Math.min(s.content.size,e-i-1))),n.push(s),r+=s.nodeSize),i=a}return new W(n,r)}cutByIndex(t,e){return t==e?W.empty:0==t&&e==this.content.length?this:new W(this.content.slice(t,e))}replaceChild(t,e){let n=this.content[t];if(n==e)return this;let r=this.content.slice(),o=this.size+e.nodeSize-n.nodeSize;return r[t]=e,new W(r,o)}addToStart(t){return new W([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new W(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let e=this.content[t];if(!e)throw new RangeError("Index "+t+" out of range for "+this);return e}maybeChild(t){return this.content[t]||null}forEach(t){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];t(r,n,e),n+=r.nodeSize}}findDiffStart(t,e=0){return P(this,t,e)}findDiffEnd(t,e=this.size,n=t.size){return H(this,t,e,n)}findIndex(t){if(0==t)return K(0,t);if(t==this.size)return K(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let e=0,n=0;;e++){let r=this.child(e),o=n+r.nodeSize;if(o>=t)return o==t?K(e+1,o):K(e,n);n=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return W.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return W.fromArray(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return W.empty;let e,n=0;for(let r=0;r<t.length;r++){let o=t[r];n+=o.nodeSize,r&&o.isText&&t[r-1].sameMarkup(o)?(e||(e=t.slice(0,r)),e[e.length-1]=o.withText(e[e.length-1].text+o.text)):e&&e.push(o)}return new W(e||t,n)}static from(t){if(!t)return W.empty;if(t instanceof W)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new W([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}W.empty=new W([],0);const U={index:0,offset:0};function K(t,e){return U.index=t,U.offset=e,U}function G(t,e){if(t===e)return!0;if(!t||"object"!=typeof t||!e||"object"!=typeof e)return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!G(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!G(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}class X{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,n=!1;for(let r=0;r<t.length;r++){let o=t[r];if(this.eq(o))return t;if(this.type.excludes(o.type))e||(e=t.slice(0,r));else{if(o.type.excludes(this.type))return t;!n&&o.type.rank>this.type.rank&&(e||(e=t.slice(0,r)),e.push(this),n=!0),e&&e.push(o)}}return e||(e=t.slice()),n||e.push(this),e}removeFromSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return!0;return!1}eq(t){return this==t||this.type==t.type&&G(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let n=t.marks[e.type];if(!n)throw new RangeError(`There is no mark type ${e.type} in this schema`);let r=n.create(e.attrs);return n.checkAttrs(r.attrs),r}static sameSet(t,e){if(t==e)return!0;if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].eq(e[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&0==t.length)return X.none;if(t instanceof X)return[t];let e=t.slice();return e.sort((t,e)=>t.type.rank-e.type.rank),e}}X.none=[];class Y extends Error{}class Z{constructor(t,e,n){this.content=t,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let n=tt(this.content,t+this.openStart,e,this.openStart+1,this.openEnd+1);return n&&new Z(n,this.openStart,this.openEnd)}removeBetween(t,e){return new Z(Q(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return Z.empty;let n=e.openStart||0,r=e.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new Z(W.fromJSON(t,e.content),n,r)}static maxOpen(t,e=!0){let n=0,r=0;for(let o=t.firstChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.firstChild)n++;for(let o=t.lastChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.lastChild)r++;return new Z(t,n,r)}}function Q(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:a}=t.findIndex(n);if(o==e||i.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(Q(i.content,e-o-1,n-o-1)))}function tt(t,e,n,r,o,i){let{index:s,offset:a}=t.findIndex(e),l=t.maybeChild(s);if(a==e||l.isText)return i&&r<=0&&o<=0&&!i.canReplace(s,s,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=tt(l.content,e-a-1,n,0==s?r-1:0,s==t.childCount-1?o-1:0,l);return c&&t.replaceChild(s,l.copy(c))}function et(t,e,n){if(n.openStart>t.depth)throw new Y("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Y("Inconsistent open depths");return nt(t,e,n,0)}function nt(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=nt(t,e,n,r+1);return i.copy(i.content.replaceChild(o,s))}if(n.content.size){if(n.openStart||n.openEnd||t.depth!=r||e.depth!=r){let{start:o,end:s}=ut(n,t);return at(i,lt(t,o,s,e,r))}{let r=t.parent,o=r.content;return at(r,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}}return at(i,ct(t,e,r))}function rt(t,e){if(!e.type.compatibleContent(t.type))throw new Y("Cannot join "+e.type.name+" onto "+t.type.name)}function ot(t,e,n){let r=t.node(n);return rt(r,e.node(n)),r}function it(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function st(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(it(t.nodeAfter,r),i++));for(let a=i;a<s;a++)it(o.child(a),r);e&&e.depth==n&&e.textOffset&&it(e.nodeBefore,r)}function at(t,e){return t.type.checkContent(e),t.copy(e)}function lt(t,e,n,r,o){let i=t.depth>o&&ot(t,e,o+1),s=r.depth>o&&ot(n,r,o+1),a=[];return st(null,t,o,a),i&&s&&e.index(o)==n.index(o)?(rt(i,s),it(at(i,lt(t,e,n,r,o+1)),a)):(i&&it(at(i,ct(t,e,o+1)),a),st(e,n,o,a),s&&it(at(s,ct(n,r,o+1)),a)),st(r,null,o,a),new W(a)}function ct(t,e,n){let r=[];if(st(null,t,n,r),t.depth>n){let o=ot(t,e,n+1);it(at(o,ct(t,e,n+1)),r)}return st(e,null,n,r),new W(r)}function ut(t,e){let n=e.depth-t.openStart,r=e.node(n),o=r.copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(W.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}Z.empty=new Z(W.empty,0,0);class ht{constructor(t,e,n){this.pos=t,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return t=this.resolveDepth(t),0==t?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=t.child(e);return n?t.child(e).cut(n):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let n=this.path[3*e],r=0==e?0:this.path[3*e-1]+1;for(let o=0;o<t;o++)r+=n.child(o).nodeSize;return r}marks(){let t=this.parent,e=this.index();if(0==t.content.size)return X.none;if(this.textOffset)return t.child(e).marks;let n=t.maybeChild(e-1),r=t.maybeChild(e);if(!n){let t=n;n=r,r=t}let o=n.marks;for(var i=0;i<o.length;i++)!1!==o[i].type.spec.inclusive||r&&o[i].isInSet(r.marks)||(o=o[i--].removeFromSet(o));return o}marksAcross(t){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=t.parent.maybeChild(t.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(t){for(let e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);n>=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new mt(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}static resolve(t,e){if(!(e>=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let n=[],r=0,o=e;for(let i=t;;){let{index:t,offset:e}=i.content.findIndex(o),s=o-e;if(n.push(i,t,r+e),!s)break;if(i=i.child(t),i.isText)break;o=s-1,r+=e+1}return new ht(e,n,o)}static resolveCached(t,e){let n=dt.get(t);if(n)for(let o=0;o<n.elts.length;o++){let t=n.elts[o];if(t.pos==e)return t}else dt.set(t,n=new pt);let r=n.elts[n.i]=ht.resolve(t,e);return n.i=(n.i+1)%ft,r}}class pt{constructor(){this.elts=[],this.i=0}}const ft=12,dt=new WeakMap;class mt{constructor(t,e,n){this.$from=t,this.$to=e,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const gt=Object.create(null);class vt{constructor(t,e,n,r=X.none){this.type=t,this.attrs=e,this.marks=r,this.content=n||W.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,e,n,r=0){this.content.nodesBetween(t,e,n,r,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,e,n,r){return this.content.textBetween(t,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,e,n){return this.type==t&&G(this.attrs,e||t.defaultAttrs||gt)&&X.sameSet(this.marks,n||X.none)}copy(t=null){return t==this.content?this:new vt(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new vt(this.type,this.attrs,this.content,t)}cut(t,e=this.content.size){return 0==t&&e==this.content.size?this:this.copy(this.content.cut(t,e))}slice(t,e=this.content.size,n=!1){if(t==e)return Z.empty;let r=this.resolve(t),o=this.resolve(e),i=n?0:r.sharedDepth(e),s=r.start(i),a=r.node(i),l=a.content.cut(r.pos-s,o.pos-s);return new Z(l,r.depth-i,o.depth-i)}replace(t,e,n){return et(this.resolve(t),this.resolve(e),n)}nodeAt(t){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(t);if(e=e.maybeChild(n),!e)return null;if(r==t||e.isText)return e;t-=r+1}}childAfter(t){let{index:e,offset:n}=this.content.findIndex(t);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(t){if(0==t)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(t);if(n<t)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(t){return ht.resolveCached(this,t)}resolveNoCache(t){return ht.resolve(this,t)}rangeHasMark(t,e,n){let r=!1;return e>t&&this.nodesBetween(t,e,t=>(n.isInSet(t.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),wt(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,n=W.empty,r=0,o=n.childCount){let i=this.contentMatchAt(t).matchFragment(n,r,o),s=i&&i.matchFragment(this.content,e);if(!s||!s.validEnd)return!1;for(let a=r;a<o;a++)if(!this.type.allowsMarks(n.child(a).marks))return!1;return!0}canReplaceWith(t,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(t).matchType(n),i=o&&o.matchFragment(this.content,e);return!!i&&i.validEnd}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=X.none;for(let e=0;e<this.marks.length;e++){let n=this.marks[e];n.type.checkAttrs(n.attrs),t=n.addToSet(t)}if(!X.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(t=>t.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,n)}let r=W.fromJSON(t,e.content),o=t.nodeType(e.type).create(e.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}vt.prototype.text=void 0;function wt(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class yt{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let n=new xt(t,e);if(null==n.next)return yt.empty;let r=bt(n);n.next&&n.err("Unexpected trailing text");let o=Ot(Mt(r));return Rt(o,n),o}matchType(t){for(let e=0;e<this.next.length;e++)if(this.next[e].type==t)return this.next[e].next;return null}matchFragment(t,e=0,n=t.childCount){let r=this;for(let o=e;r&&o<n;o++)r=r.matchType(t.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:e}=this.next[t];if(!e.isText&&!e.hasRequiredAttrs())return e}return null}compatible(t){for(let e=0;e<this.next.length;e++)for(let n=0;n<t.next.length;n++)if(this.next[e].type==t.next[n].type)return!0;return!1}fillBefore(t,e=!1,n=0){let r=[this];function o(i,s){let a=i.matchFragment(t,n);if(a&&(!e||a.validEnd))return W.from(s.map(t=>t.createAndFill()));for(let t=0;t<i.next.length;t++){let{type:e,next:n}=i.next[t];if(!e.isText&&!e.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let t=o(n,s.concat(e));if(t)return t}}return null}return o(this,[])}findWrapping(t){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==t)return this.wrapCache[n+1];let e=this.computeWrapping(t);return this.wrapCache.push(t,e),e}computeWrapping(t){let e=Object.create(null),n=[{match:this,type:null,via:null}];while(n.length){let r=n.shift(),o=r.match;if(o.matchType(t)){let t=[];for(let e=r;e.type;e=e.via)t.push(e.type);return t.reverse()}for(let t=0;t<o.next.length;t++){let{type:i,next:s}=o.next[t];i.isLeaf||i.hasRequiredAttrs()||i.name in e||r.type&&!s.validEnd||(n.push({match:i.contentMatch,type:i,via:r}),e[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function e(n){t.push(n);for(let r=0;r<n.next.length;r++)-1==t.indexOf(n.next[r].next)&&e(n.next[r].next)}return e(this),t.map((e,n)=>{let r=n+(e.validEnd?"*":" ")+" ";for(let o=0;o<e.next.length;o++)r+=(o?", ":"")+e.next[o].type.name+"->"+t.indexOf(e.next[o].next);return r}).join("\n")}}yt.empty=new yt(!0);class xt{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function bt(t){let e=[];do{e.push(St(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function St(t){let e=[];do{e.push(kt(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function kt(t){let e=At(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else{if(!t.eat("{"))break;e=Et(t,e)}return e}function Ct(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Et(t,e){let n=Ct(t),r=n;return t.eat(",")&&(r="}"!=t.next?Ct(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function Nt(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let t=n[i];t.isInGroup(e)&&o.push(t)}return 0==o.length&&t.err("No node type or group '"+e+"' found"),o}function At(t){if(t.eat("(")){let e=bt(t);return t.eat(")")||t.err("Missing closing paren"),e}if(!/\W/.test(t.next)){let e=Nt(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}t.err("Unexpected token '"+t.next+"'")}function Mt(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(t,n,r){let o={term:r,to:n};return e[t].push(o),o}function o(t,e){t.forEach(t=>t.to=e)}function i(t,e){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(i(n,e)),[]);if("seq"!=t.type){if("star"==t.type){let s=n();return r(e,s),o(i(t.expr,s),s),[r(s)]}if("plus"==t.type){let s=n();return o(i(t.expr,e),s),o(i(t.expr,s),s),[r(s)]}if("opt"==t.type)return[r(e)].concat(i(t.expr,e));if("range"==t.type){let s=e;for(let e=0;e<t.min;e++){let e=n();o(i(t.expr,s),e),s=e}if(-1==t.max)o(i(t.expr,s),s);else for(let e=t.min;e<t.max;e++){let e=n();r(s,e),o(i(t.expr,s),e),s=e}return[r(s)]}if("name"==t.type)return[r(e,void 0,t.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let s=i(t.exprs[r],e);if(r==t.exprs.length-1)return s;o(s,e=n())}}}function Tt(t,e){return e-t}function $t(t,e){let n=[];return r(e),n.sort(Tt);function r(e){let o=t[e];if(1==o.length&&!o[0].term)return r(o[0].to);n.push(e);for(let t=0;t<o.length;t++){let{term:e,to:i}=o[t];e||-1!=n.indexOf(i)||r(i)}}}function Ot(t){let e=Object.create(null);return n($t(t,0));function n(r){let o=[];r.forEach(e=>{t[e].forEach(({term:e,to:n})=>{if(!e)return;let r;for(let t=0;t<o.length;t++)o[t][0]==e&&(r=o[t][1]);$t(t,n).forEach(t=>{r||o.push([e,r=[]]),-1==r.indexOf(t)&&r.push(t)})})});let i=e[r.join(",")]=new yt(r.indexOf(t.length-1)>-1);for(let t=0;t<o.length;t++){let r=o[t][1].sort(Tt);i.next.push({type:o[t][0],next:e[r.join(",")]||n(r)})}return i}}function Rt(t,e){for(let n=0,r=[t];n<r.length;n++){let t=r[n],o=!t.validEnd,i=[];for(let e=0;e<t.next.length;e++){let{type:n,next:s}=t.next[e];i.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(s)&&r.push(s)}o&&e.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}new WeakMap;const It=65535,zt=Math.pow(2,16);function Vt(t,e){return t+e*zt}function jt(t){return t&It}function Lt(t){return(t-(t&It))/zt}const Bt=1,Dt=2,_t=4,Ft=8;class Jt{constructor(t,e,n){this.pos=t,this.delInfo=e,this.recover=n}get deleted(){return(this.delInfo&Ft)>0}get deletedBefore(){return(this.delInfo&(Bt|_t))>0}get deletedAfter(){return(this.delInfo&(Dt|_t))>0}get deletedAcross(){return(this.delInfo&_t)>0}}class qt{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&qt.empty)return qt.empty}recover(t){let e=0,n=jt(t);if(!this.inverted)for(let r=0;r<n;r++)e+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+e+Lt(t)}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,n){let r=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let a=this.ranges[s]-(this.inverted?r:0);if(a>t)break;let l=this.ranges[s+o],c=this.ranges[s+i],u=a+l;if(t<=u){let o=l?t==a?-1:t==u?1:e:e,i=a+r+(o<0?0:c);if(n)return i;let h=t==(e<0?a:u)?null:Vt(s/3,t-a),p=t==a?Dt:t==u?Bt:_t;return(e<0?t!=a:t!=u)&&(p|=Ft),new Jt(i,p,h)}r+=c-l}return n?t+r:new Jt(t+r,0,null)}touches(t,e){let n=0,r=jt(e),o=this.inverted?2:1,i=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let e=this.ranges[s]-(this.inverted?n:0);if(e>t)break;let a=this.ranges[s+o],l=e+a;if(t<=l&&s==3*r)return!0;n+=this.ranges[s+i]-a}return!1}forEach(t){let e=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],s=i-(this.inverted?o:0),a=i+(this.inverted?0:o),l=this.ranges[r+e],c=this.ranges[r+n];t(s,s+l,a,a+c),o+=c-l}}invert(){return new qt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return 0==t?qt.empty:new qt(t<0?[0,-t,0]:[0,0,t])}}qt.empty=new qt([]);const Pt=Object.create(null);class Ht{getMap(){return qt.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=Pt[e.stepType];if(!n)throw new RangeError(`No step type ${e.stepType} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in Pt)throw new RangeError("Duplicate use of step JSON ID "+t);return Pt[t]=e,e.prototype.jsonID=t,e}}class Wt{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new Wt(t,null)}static fail(t){return new Wt(null,t)}static fromReplace(t,e,n,r){try{return Wt.ok(t.replace(e,n,r))}catch(o){if(o instanceof Y)return Wt.fail(o.message);throw o}}}function Ut(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(Ut(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return W.fromArray(r)}class Kt extends Ht{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=t.resolve(this.from),r=n.node(n.sharedDepth(this.to)),o=new Z(Ut(e.content,(t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t,r),e.openStart,e.openEnd);return Wt.fromReplace(t,this.from,this.to,o)}invert(){return new Gt(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new Kt(e.pos,n.pos,this.mark)}merge(t){return t instanceof Kt&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Kt(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Kt(e.from,e.to,t.markFromJSON(e.mark))}}Ht.jsonID("addMark",Kt);class Gt extends Ht{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=new Z(Ut(e.content,t=>t.mark(this.mark.removeFromSet(t.marks)),t),e.openStart,e.openEnd);return Wt.fromReplace(t,this.from,this.to,n)}invert(){return new Kt(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new Gt(e.pos,n.pos,this.mark)}merge(t){return t instanceof Gt&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Gt(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Gt(e.from,e.to,t.markFromJSON(e.mark))}}Ht.jsonID("removeMark",Gt);class Xt extends Ht{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return Wt.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return Wt.fromReplace(t,this.pos,this.pos+1,new Z(W.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let n=0;n<e.marks.length;n++)if(!e.marks[n].isInSet(t))return new Xt(this.pos,e.marks[n]);return new Xt(this.pos,this.mark)}}return new Yt(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Xt(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Xt(e.pos,t.markFromJSON(e.mark))}}Ht.jsonID("addNodeMark",Xt);class Yt extends Ht{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return Wt.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return Wt.fromReplace(t,this.pos,this.pos+1,new Z(W.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new Xt(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Yt(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Yt(e.pos,t.markFromJSON(e.mark))}}Ht.jsonID("removeNodeMark",Yt);class Zt extends Ht{constructor(t,e,n,r=!1){super(),this.from=t,this.to=e,this.slice=n,this.structure=r}apply(t){return this.structure&&te(t,this.from,this.to)?Wt.fail("Structure replace would overwrite content"):Wt.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new qt([this.from,this.to-this.from,this.slice.size])}invert(t){return new Zt(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.to,-1),n=this.from==this.to&&Zt.MAP_BIAS<0?e:t.mapResult(this.from,1);return n.deletedAcross&&e.deletedAcross?null:new Zt(n.pos,Math.max(n.pos,e.pos),this.slice,this.structure)}merge(t){if(!(t instanceof Zt)||t.structure||this.structure)return null;if(this.from+this.slice.size!=t.from||this.slice.openEnd||t.slice.openStart){if(t.to!=this.from||this.slice.openStart||t.slice.openEnd)return null;{let e=this.slice.size+t.slice.size==0?Z.empty:new Z(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new Zt(t.from,this.to,e,this.structure)}}{let e=this.slice.size+t.slice.size==0?Z.empty:new Z(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new Zt(this.from,this.to+(t.to-t.from),e,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Zt(e.from,e.to,Z.fromJSON(t,e.slice),!!e.structure)}}Zt.MAP_BIAS=1,Ht.jsonID("replace",Zt);class Qt extends Ht{constructor(t,e,n,r,o,i,s=!1){super(),this.from=t,this.to=e,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=s}apply(t){if(this.structure&&(te(t,this.from,this.gapFrom)||te(t,this.gapTo,this.to)))return Wt.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return Wt.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,e.content);return n?Wt.fromReplace(t,this.from,this.to,n):Wt.fail("Content does not fit in gap")}getMap(){return new qt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new Qt(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1),r=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:t.map(this.gapTo,1);return e.deletedAcross&&n.deletedAcross||r<e.pos||o>n.pos?null:new Qt(e.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Qt(e.from,e.to,e.gapFrom,e.gapTo,Z.fromJSON(t,e.slice),e.insert,!!e.structure)}}function te(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;while(o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount)i--,o--;if(o>0){let t=r.node(i).maybeChild(r.indexAfter(i));while(o>0){if(!t||t.isLeaf)return!0;t=t.firstChild,o--}}return!1}Ht.jsonID("replaceAround",Qt);class ee extends Ht{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return Wt.fail("No node at attribute step's position");let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let r=e.type.create(n,null,e.marks);return Wt.fromReplace(t,this.pos,this.pos+1,new Z(W.from(r),0,e.isLeaf?0:1))}getMap(){return qt.empty}invert(t){return new ee(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new ee(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new ee(e.pos,e.attr,e.value)}}Ht.jsonID("attr",ee);class ne extends Ht{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let r in t.attrs)e[r]=t.attrs[r];e[this.attr]=this.value;let n=t.type.create(e,t.content,t.marks);return Wt.ok(n)}getMap(){return qt.empty}invert(t){return new ne(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new ne(e.attr,e.value)}}Ht.jsonID("docAttr",ne);let re=class extends Error{};re=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},re.prototype=Object.create(Error.prototype),re.prototype.constructor=re,re.prototype.name="TransformError";const oe=Object.create(null);class ie{constructor(t,e,n){this.$anchor=t,this.$head=e,this.ranges=n||[new se(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,e=Z.empty){let n=e.content.lastChild,r=null;for(let s=0;s<e.openEnd;s++)r=n,n=n.lastChild;let o=t.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){let{$from:a,$to:l}=i[s],c=t.mapping.slice(o);t.replaceRange(c.map(a.pos),c.map(l.pos),s?Z.empty:e),0==s&&ge(t,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(t,e){let n=t.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:s}=r[o],a=t.mapping.slice(n),l=a.map(i.pos),c=a.map(s.pos);o?t.deleteRange(l,c):(t.replaceRangeWith(l,c,e),ge(t,n,e.isInline?-1:1))}}static findFrom(t,e,n=!1){let r=t.parent.inlineContent?new ce(t):me(t.node(0),t.parent,t.pos,t.index(),e,n);if(r)return r;for(let o=t.depth-1;o>=0;o--){let r=e<0?me(t.node(0),t.node(o),t.before(o+1),t.index(o),e,n):me(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,e,n);if(r)return r}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new fe(t.node(0))}static atStart(t){return me(t,t,0,0,1)||new fe(t)}static atEnd(t){return me(t,t,t.content.size,t.childCount,-1)||new fe(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=oe[e.type];if(!n)throw new RangeError(`No selection type ${e.type} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in oe)throw new RangeError("Duplicate use of selection JSON ID "+t);return oe[t]=e,e.prototype.jsonID=t,e}getBookmark(){return ce.between(this.$anchor,this.$head).getBookmark()}}ie.prototype.visible=!0;class se{constructor(t,e){this.$from=t,this.$to=e}}let ae=!1;function le(t){ae||t.parent.inlineContent||(ae=!0,console["warn"]("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class ce extends ie{constructor(t,e=t){le(t),le(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let n=t.resolve(e.map(this.head));if(!n.parent.inlineContent)return ie.near(n);let r=t.resolve(e.map(this.anchor));return new ce(r.parent.inlineContent?r:n,n)}replace(t,e=Z.empty){if(super.replace(t,e),e==Z.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof ce&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new ue(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new ce(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){let r=t.resolve(e);return new this(r,n==e?r:t.resolve(n))}static between(t,e,n){let r=t.pos-e.pos;if(n&&!r||(n=r>=0?1:-1),!e.parent.inlineContent){let t=ie.findFrom(e,n,!0)||ie.findFrom(e,-n,!0);if(!t)return ie.near(e,n);e=t.$head}return t.parent.inlineContent||(0==r?t=e:(t=(ie.findFrom(t,-n,!0)||ie.findFrom(t,n,!0)).$anchor,t.pos<e.pos!=r<0&&(t=e))),new ce(t,e)}}ie.jsonID("text",ce);class ue{constructor(t,e){this.anchor=t,this.head=e}map(t){return new ue(t.map(this.anchor),t.map(this.head))}resolve(t){return ce.between(t.resolve(this.anchor),t.resolve(this.head))}}class he extends ie{constructor(t){let e=t.nodeAfter,n=t.node(0).resolve(t.pos+e.nodeSize);super(t,n),this.node=e}map(t,e){let{deleted:n,pos:r}=e.mapResult(this.anchor),o=t.resolve(r);return n?ie.near(o):new he(o)}content(){return new Z(W.from(this.node),0,0)}eq(t){return t instanceof he&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new pe(this.anchor)}static fromJSON(t,e){if("number"!=typeof e.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new he(t.resolve(e.anchor))}static create(t,e){return new he(t.resolve(e))}static isSelectable(t){return!t.isText&&!1!==t.type.spec.selectable}}he.prototype.visible=!1,ie.jsonID("node",he);class pe{constructor(t){this.anchor=t}map(t){let{deleted:e,pos:n}=t.mapResult(this.anchor);return e?new ue(n,n):new pe(n)}resolve(t){let e=t.resolve(this.anchor),n=e.nodeAfter;return n&&he.isSelectable(n)?new he(e):ie.near(e)}}class fe extends ie{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,e=Z.empty){if(e==Z.empty){t.delete(0,t.doc.content.size);let e=ie.atStart(t.doc);e.eq(t.selection)||t.setSelection(e)}else super.replace(t,e)}toJSON(){return{type:"all"}}static fromJSON(t){return new fe(t)}map(t){return new fe(t)}eq(t){return t instanceof fe}getBookmark(){return de}}ie.jsonID("all",fe);const de={map(){return this},resolve(t){return new fe(t)}};function me(t,e,n,r,o,i=!1){if(e.inlineContent)return ce.create(t,n);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let r=e.child(s);if(r.isAtom){if(!i&&he.isSelectable(r))return he.create(t,n-(o<0?r.nodeSize:0))}else{let e=me(t,r,n+o,o<0?r.childCount:0,o,i);if(e)return e}n+=r.nodeSize*o}return null}function ge(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof Zt||o instanceof Qt))return;let i,s=t.mapping.maps[r];s.forEach((t,e,n,r)=>{null==i&&(i=r)}),t.setSelection(ie.near(t.doc.resolve(i),n))}function ve(t,e){return e&&t?t.bind(e):t}class we{constructor(t,e,n){this.name=t,this.init=ve(e.init,n),this.apply=ve(e.apply,n)}}new we("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new we("selection",{init(t,e){return t.selection||ie.atStart(e.doc)},apply(t){return t.selection}}),new we("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new we("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}});const ye=Object.create(null);function xe(t){return t in ye?t+"$"+ ++ye[t]:(ye[t]=0,t+"$")}class be{constructor(t="key"){this.key=xe(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}for(var Se={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ke={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Ce="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Ee="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ne=0;Ne<10;Ne++)Se[48+Ne]=Se[96+Ne]=String(Ne);for(Ne=1;Ne<=24;Ne++)Se[Ne+111]="F"+Ne;for(Ne=65;Ne<=90;Ne++)Se[Ne]=String.fromCharCode(Ne+32),ke[Ne]=String.fromCharCode(Ne);for(var Ae in Se)ke.hasOwnProperty(Ae)||(ke[Ae]=Se[Ae]);function Me(t){var e=Ce&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Ee&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key,n=!e&&t.key||(t.shiftKey?ke:Se)[t.keyCode]||t.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}const Te="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),$e="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function Oe(t){let e,n,r,o,i=t.split(/-(?!$)/),s=i[i.length-1];"Space"==s&&(s=" ");for(let a=0;a<i.length-1;a++){let t=i[a];if(/^(cmd|meta|m)$/i.test(t))o=!0;else if(/^a(lt)?$/i.test(t))e=!0;else if(/^(c|ctrl|control)$/i.test(t))n=!0;else if(/^s(hift)?$/i.test(t))r=!0;else{if(!/^mod$/i.test(t))throw new Error("Unrecognized modifier name: "+t);Te?o=!0:n=!0}}return e&&(s="Alt-"+s),n&&(s="Ctrl-"+s),o&&(s="Meta-"+s),r&&(s="Shift-"+s),s}function Re(t){let e=Object.create(null);for(let n in t)e[Oe(n)]=t[n];return e}function Ie(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function ze(t){let e=Re(t);return function(t,n){let r,o=Me(n),i=e[Ie(o,n)];if(i&&i(t.state,t.dispatch,t))return!0;if(1==o.length&&" "!=o){if(n.shiftKey){let r=e[Ie(o,n,!1)];if(r&&r(t.state,t.dispatch,t))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!($e&&n.ctrlKey&&n.altKey)&&(r=Se[n.keyCode])&&r!=o){let o=e[Ie(r,n)];if(o&&o(t.state,t.dispatch,t))return!0}}return!1}}let Ve,je;if("undefined"!=typeof WeakMap){let t=new WeakMap;Ve=e=>t.get(e),je=(e,n)=>(t.set(e,n),n)}else{const t=[],e=10;let n=0;Ve=e=>{for(let n=0;n<t.length;n+=2)if(t[n]==e)return t[n+1]},je=(r,o)=>(n==e&&(n=0),t[n++]=r,t[n++]=o)}var Le=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e<this.map.length;e++){const n=this.map[e];if(n!=t)continue;const r=e%this.width,o=e/this.width|0;let i=r+1,s=o+1;for(let t=1;i<this.width&&this.map[e+t]==n;t++)i++;for(let t=1;s<this.height&&this.map[e+this.width*t]==n;t++)s++;return{left:r,top:o,right:i,bottom:s}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,n){const{left:r,right:o,top:i,bottom:s}=this.findCell(t);return"horiz"==e?(n<0?0==r:o==this.width)?null:this.map[i*this.width+(n<0?r-1:o)]:(n<0?0==i:s==this.height)?null:this.map[r+this.width*(n<0?i-1:s)]}rectBetween(t,e){const{left:n,right:r,top:o,bottom:i}=this.findCell(t),{left:s,right:a,top:l,bottom:c}=this.findCell(e);return{left:Math.min(n,s),top:Math.min(o,l),right:Math.max(r,a),bottom:Math.max(i,c)}}cellsInRect(t){const e=[],n={};for(let r=t.top;r<t.bottom;r++)for(let o=t.left;o<t.right;o++){const i=r*this.width+o,s=this.map[i];n[s]||(n[s]=!0,o==t.left&&o&&this.map[i-1]==s||r==t.top&&r&&this.map[i-this.width]==s||e.push(s))}return e}positionAt(t,e,n){for(let r=0,o=0;;r++){const i=o+n.child(r).nodeSize;if(r==t){let n=e+t*this.width;const r=(t+1)*this.width;while(n<r&&this.map[n]<o)n++;return n==r?i-1:this.map[n]}o=i}}static get(t){return Ve(t)||je(t,Be(t))}};function Be(t){if("table"!=t.type.spec.tableRole)throw new RangeError("Not a table node: "+t.type.name);const e=De(t),n=t.childCount,r=[];let o=0,i=null;const s=[];for(let c=0,u=e*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){const a=t.child(c);u++;for(let t=0;;t++){while(o<r.length&&0!=r[o])o++;if(t==a.childCount)break;const l=a.child(t),{colspan:h,rowspan:p,colwidth:f}=l.attrs;for(let t=0;t<p;t++){if(t+c>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:u,n:p-t});break}const a=o+t*e;for(let t=0;t<h;t++){0==r[a+t]?r[a+t]=u:(i||(i=[])).push({type:"collision",row:c,pos:u,n:h-t});const n=f&&f[t];if(n){const r=(a+t)%e*2,o=s[r];null==o||o!=n&&1==s[r+1]?(s[r]=n,s[r+1]=1):o==n&&s[r+1]++}}}o+=h,u+=l.nodeSize}const l=(c+1)*e;let h=0;while(o<l)0==r[o++]&&h++;h&&(i||(i=[])).push({type:"missing",row:c,n:h}),u++}0!==e&&0!==n||(i||(i=[])).push({type:"zero_sized"});const a=new Le(e,n,r,i);let l=!1;for(let c=0;!l&&c<s.length;c+=2)null!=s[c]&&s[c+1]<n&&(l=!0);return l&&_e(a,s,t),a}function De(t){let e=-1,n=!1;for(let r=0;r<t.childCount;r++){const o=t.child(r);let i=0;if(n)for(let e=0;e<r;e++){const n=t.child(e);for(let t=0;t<n.childCount;t++){const o=n.child(t);e+o.attrs.rowspan>r&&(i+=o.attrs.colspan)}}for(let t=0;t<o.childCount;t++){const e=o.child(t);i+=e.attrs.colspan,e.attrs.rowspan>1&&(n=!0)}-1==e?e=i:e!=i&&(e=Math.max(e,i))}return e}function _e(t,e,n){t.problems||(t.problems=[]);const r={};for(let o=0;o<t.map.length;o++){const i=t.map[o];if(r[i])continue;r[i]=!0;const s=n.nodeAt(i);if(!s)throw new RangeError(`No cell with offset ${i} found`);let a=null;const l=s.attrs;for(let n=0;n<l.colspan;n++){const r=e[(o+n)%t.width*2];null==r||l.colwidth&&l.colwidth[n]==r||((a||(a=Fe(l)))[n]=r)}a&&t.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:a})}}function Fe(t){if(t.colwidth)return t.colwidth.slice();const e=[];for(let n=0;n<t.colspan;n++)e.push(0);return e}function Je(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(const n in t.nodes){const r=t.nodes[n],o=r.spec.tableRole;o&&(e[o]=r)}}return e}new be("selectingCells");function qe(t){for(let e=t.depth-1;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return t.node(0).resolve(t.before(e+1));return null}function Pe(t){const e=t.selection.$head;for(let n=e.depth;n>0;n--)if("row"==e.node(n).type.spec.tableRole)return!0;return!1}function He(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&"cell"==e.node.type.spec.tableRole)return e.$anchor;const n=qe(e.$head)||We(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function We(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const r=e.type.spec.tableRole;if("cell"==r||"header_cell"==r)return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const r=e.type.spec.tableRole;if("cell"==r||"header_cell"==r)return t.doc.resolve(n-e.nodeSize)}}function Ue(t){return"row"==t.parent.type.spec.tableRole&&!!t.nodeAfter}function Ke(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function Ge(t,e,n){const r=t.node(-1),o=Le.get(r),i=t.start(-1),s=o.nextCell(t.pos-i,e,n);return null==s?null:t.node(0).resolve(i+s)}function Xe(t,e,n=1){const r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(t=>t>0)||(r.colwidth=null)),r}var Ye=class t extends ie{constructor(t,e=t){const n=t.node(-1),r=Le.get(n),o=t.start(-1),i=r.rectBetween(t.pos-o,e.pos-o),s=t.node(0),a=r.cellsInRect(i).filter(t=>t!=e.pos-o);a.unshift(e.pos-o);const l=a.map(t=>{const e=n.nodeAt(t);if(!e)throw new RangeError(`No cell with offset ${t} found`);const r=o+t+1;return new se(s.resolve(r),s.resolve(r+e.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=t,this.$headCell=e}map(e,n){const r=e.resolve(n.map(this.$anchorCell.pos)),o=e.resolve(n.map(this.$headCell.pos));if(Ue(r)&&Ue(o)&&Ke(r,o)){const e=this.$anchorCell.node(-1)!=r.node(-1);return e&&this.isRowSelection()?t.rowSelection(r,o):e&&this.isColSelection()?t.colSelection(r,o):new t(r,o)}return ce.between(r,o)}content(){const t=this.$anchorCell.node(-1),e=Le.get(t),n=this.$anchorCell.start(-1),r=e.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},i=[];for(let a=r.top;a<r.bottom;a++){const n=[];for(let i=a*e.width+r.left,s=r.left;s<r.right;s++,i++){const s=e.map[i];if(o[s])continue;o[s]=!0;const a=e.findCell(s);let l=t.nodeAt(s);if(!l)throw new RangeError(`No cell with offset ${s} found`);const c=r.left-a.left,u=a.right-r.right;if(c>0||u>0){let t=l.attrs;if(c>0&&(t=Xe(t,0,c)),u>0&&(t=Xe(t,t.colspan-u,u)),a.left<r.left){if(l=l.type.createAndFill(t),!l)throw new RangeError(`Could not create cell with attrs ${JSON.stringify(t)}`)}else l=l.type.create(t,l.content)}if(a.top<r.top||a.bottom>r.bottom){const t={...l.attrs,rowspan:Math.min(a.bottom,r.bottom)-Math.max(a.top,r.top)};l=a.top<r.top?l.type.createAndFill(t):l.type.create(t,l.content)}n.push(l)}i.push(t.child(a).copy(W.from(n)))}const s=this.isColSelection()&&this.isRowSelection()?t:i;return new Z(W.from(s),1,1)}replace(t,e=Z.empty){const n=t.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){const{$from:o,$to:s}=r[i],a=t.mapping.slice(n);t.replace(a.map(o.pos),a.map(s.pos),i?Z.empty:e)}const o=ie.findFrom(t.doc.resolve(t.mapping.slice(n).map(this.to)),-1);o&&t.setSelection(o)}replaceWith(t,e){this.replace(t,new Z(W.from(e),0,0))}forEachCell(t){const e=this.$anchorCell.node(-1),n=Le.get(e),r=this.$anchorCell.start(-1),o=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let i=0;i<o.length;i++)t(e.nodeAt(o[i]),r+o[i])}isColSelection(){const t=this.$anchorCell.index(-1),e=this.$headCell.index(-1);if(Math.min(t,e)>0)return!1;const n=t+this.$anchorCell.nodeAfter.attrs.rowspan,r=e+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){const r=e.node(-1),o=Le.get(r),i=e.start(-1),s=o.findCell(e.pos-i),a=o.findCell(n.pos-i),l=e.node(0);return s.top<=a.top?(s.top>0&&(e=l.resolve(i+o.map[s.left])),a.bottom<o.height&&(n=l.resolve(i+o.map[o.width*(o.height-1)+a.right-1]))):(a.top>0&&(n=l.resolve(i+o.map[a.left])),s.bottom<o.height&&(e=l.resolve(i+o.map[o.width*(o.height-1)+s.right-1]))),new t(e,n)}isRowSelection(){const t=this.$anchorCell.node(-1),e=Le.get(t),n=this.$anchorCell.start(-1),r=e.colCount(this.$anchorCell.pos-n),o=e.colCount(this.$headCell.pos-n);if(Math.min(r,o)>0)return!1;const i=r+this.$anchorCell.nodeAfter.attrs.colspan,s=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,s)==e.width}eq(e){return e instanceof t&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){const r=e.node(-1),o=Le.get(r),i=e.start(-1),s=o.findCell(e.pos-i),a=o.findCell(n.pos-i),l=e.node(0);return s.left<=a.left?(s.left>0&&(e=l.resolve(i+o.map[s.top*o.width])),a.right<o.width&&(n=l.resolve(i+o.map[o.width*(a.top+1)-1]))):(a.left>0&&(n=l.resolve(i+o.map[a.top*o.width])),s.right<o.width&&(e=l.resolve(i+o.map[o.width*(s.top+1)-1]))),new t(e,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,n){return new t(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){return new t(e.resolve(n),e.resolve(r))}getBookmark(){return new Ze(this.$anchorCell.pos,this.$headCell.pos)}};Ye.prototype.visible=!1,ie.jsonID("cell",Ye);var Ze=class t{constructor(t,e){this.anchor=t,this.head=e}map(e){return new t(e.map(this.anchor),e.map(this.head))}resolve(t){const e=t.resolve(this.anchor),n=t.resolve(this.head);return"row"==e.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&e.index()<e.parent.childCount&&n.index()<n.parent.childCount&&Ke(e,n)?new Ye(e,n):ie.near(n,1)}};new be("fix-tables");function Qe(t){const e=t.selection,n=He(t),r=n.node(-1),o=n.start(-1),i=Le.get(r);return{...e instanceof Ye?i.rectBetween(e.$anchorCell.pos-o,e.$headCell.pos-o):i.findCell(n.pos-o),tableStart:o,map:i,table:r}}function tn(t){return function(e,n){if(!Pe(e))return!1;if(n){const r=Je(e.schema),o=Qe(e),i=e.tr,s=o.map.cellsInRect("column"==t?{left:o.left,top:0,right:o.right,bottom:o.map.height}:"row"==t?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),a=s.map(t=>o.table.nodeAt(t));for(let t=0;t<s.length;t++)a[t].type==r.header_cell&&i.setNodeMarkup(o.tableStart+s[t],r.cell,a[t].attrs);if(0===i.steps.length)for(let t=0;t<s.length;t++)i.setNodeMarkup(o.tableStart+s[t],r.header_cell,a[t].attrs);n(i)}return!0}}function en(t,e,n){const r=e.map.cellsInRect({left:0,top:0,right:"row"==t?e.map.width:1,bottom:"column"==t?e.map.height:1});for(let o=0;o<r.length;o++){const t=e.table.nodeAt(r[o]);if(t&&t.type!==n.header_cell)return!1}return!0}function nn(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?tn(t):function(e,n){if(!Pe(e))return!1;if(n){const r=Je(e.schema),o=Qe(e),i=e.tr,s=en("row",o,r),a=en("column",o,r),l=("column"===t?s:"row"===t&&a)?1:0,c="column"==t?{left:0,top:l,right:1,bottom:o.map.height}:"row"==t?{left:l,top:0,right:o.map.width,bottom:1}:o,u="column"==t?a?r.cell:r.header_cell:"row"==t?s?r.cell:r.header_cell:r.cell;o.map.cellsInRect(c).forEach(t=>{const e=t+o.tableStart,n=i.doc.nodeAt(e);n&&i.setNodeMarkup(e,u,n.attrs)}),n(i)}return!0}}nn("row",{useDeprecatedLogic:!0}),nn("column",{useDeprecatedLogic:!0}),nn("cell",{useDeprecatedLogic:!0});function rn(t,e){const n=t.selection;if(!(n instanceof Ye))return!1;if(e){const r=t.tr,o=Je(t.schema).cell.createAndFill().content;n.forEachCell((t,e)=>{t.content.eq(o)||r.replace(r.mapping.map(e+1),r.mapping.map(e+t.nodeSize-1),new Z(o,0,0))}),r.docChanged&&e(r)}return!0}ze({ArrowLeft:sn("horiz",-1),ArrowRight:sn("horiz",1),ArrowUp:sn("vert",-1),ArrowDown:sn("vert",1),"Shift-ArrowLeft":an("horiz",-1),"Shift-ArrowRight":an("horiz",1),"Shift-ArrowUp":an("vert",-1),"Shift-ArrowDown":an("vert",1),Backspace:rn,"Mod-Backspace":rn,Delete:rn,"Mod-Delete":rn});function on(t,e,n){return!n.eq(t.selection)&&(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function sn(t,e){return(n,r,o)=>{if(!o)return!1;const i=n.selection;if(i instanceof Ye)return on(n,r,ie.near(i.$headCell,e));if("horiz"!=t&&!i.empty)return!1;const s=ln(o,t,e);if(null==s)return!1;if("horiz"==t)return on(n,r,ie.near(n.doc.resolve(i.head+e),e));{const o=n.doc.resolve(s),i=Ge(o,t,e);let a;return a=i?ie.near(i,1):e<0?ie.near(n.doc.resolve(o.before(-1)),-1):ie.near(n.doc.resolve(o.after(-1)),1),on(n,r,a)}}}function an(t,e){return(n,r,o)=>{if(!o)return!1;const i=n.selection;let s;if(i instanceof Ye)s=i;else{const r=ln(o,t,e);if(null==r)return!1;s=new Ye(n.doc.resolve(r))}const a=Ge(s.$headCell,t,e);return!!a&&on(n,r,new Ye(s.$anchorCell,a))}}function ln(t,e,n){if(!(t.state.selection instanceof ce))return null;const{$head:r}=t.state.selection;for(let o=r.depth-1;o>=0;o--){const i=r.node(o);if((n<0?r.index(o):r.indexAfter(o))!=(n<0?0:i.childCount))return null;if("cell"==i.type.spec.tableRole||"header_cell"==i.type.spec.tableRole){const i=r.before(o),s="vert"==e?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(s)?i:null}}return null}new be("tableColumnResizing");var cn=S(8521),un=S(9272),hn=S.n(un),pn=S(3305),fn=S.n(pn),dn=S(8804),mn=S.n(dn),gn=S(2748),vn=S.n(gn),wn=S(4932),yn=S(4339),xn=S.n(yn),bn=S(5733);const Sn={key:0,class:"document-outline"},kn=["onClick"],Cn={class:"outline-text"},En={key:0,class:"status-box"},Nn={key:1,class:"status-box is-error"},An={class:"edit-dialog"},Mn={class:"edit-dialog-tip"},Tn={key:0,class:"edit-dialog-path"},$n={class:"editor-toolbar"},On=["onClick"],Rn={class:"toolbar-svg heading-svg",viewBox:"0 0 28 28","aria-hidden":"true"},In={x:"18",y:"24",class:"svg-heading-level"},zn={class:"table-picker"},Vn={class:"table-picker-grid"},jn=["onMouseenter","onClick"],Ln={class:"table-picker-tip"},Bn={class:"toolbar-tip-wrap"},Dn=["disabled"],_n={class:"toolbar-tip-wrap"},Fn=["disabled"],Jn={class:"toolbar-tip-wrap"},qn=["disabled"],Pn={class:"toolbar-tip-wrap"},Hn=["disabled"],Wn={class:"toolbar-tip-wrap"},Un=["disabled"],Kn={class:"toolbar-svg color-svg",viewBox:"0 0 28 28","aria-hidden":"true"},Gn=["value"],Xn={class:"toolbar-svg color-svg",viewBox:"0 0 28 28","aria-hidden":"true"},Yn=["value"],Zn={class:"toolbar-tip-wrap"},Qn=["disabled"],tr={class:"toolbar-tip-wrap"},er=["disabled"],nr={class:"dialog-footer"},rr={name:"DocxEditor"};var or=Object.assign(rr,{props:{renderData:{type:Object,default:()=>({})},renderType:{type:String,default:"view"},templateUrl:{type:String,default:""},templateFileName:{type:String,default:"运营报告.docx"},exportFileName:{type:String,default:""}},emits:["content-change","render-data-change","save-payload-change","update:editorHtml","update:editorJson"],setup(t,{expose:e,emit:n}){(0,N.useCssVars)(t=>({v56d61c5d:S,v4964abeb:C,v60c2ad56:k}));const r="运营报告.docx",o="application/vnd.openxmlformats-officedocument.wordprocessingml.document",i="#2b3345",s="#e8f3ff",a="[EDITOR_START]",l="[EDITOR_END]",c="【",u="】",h=["cpuWaterLevelChart","memoryWaterLevelChart","diskWaterLevelChart"],p=720,f=360,d=554,m=277,g={top:88,left:48,right:36,bottom:42},v=8306,w=5e3,y="方正仿宋_GB2312",x="28",b="22",S="'方正仿宋_GB2312', '仿宋_GB2312', FangSong, STFangsong, SimSun, '宋体', serif",k="14pt",C="11pt",E=8,T=10,O="__DOCX_RICH_TEXT_FIELD__",I="请输入内容...",B="请输入内容,支持 Ctrl/Command + A/C/Z/Y 等常用快捷键...",_=2,J=6,P=t,H=n,W=(0,N.ref)(null),U=(0,N.ref)(null),K=(0,N.ref)(!1),G=(0,N.ref)(""),X=(0,N.ref)(!1),Y=(0,N.ref)(null),Z=(0,N.ref)(null),Q=(0,N.ref)(null),tt=(0,N.ref)(i),et=(0,N.ref)(s),nt=(0,N.ref)(null),rt=(0,N.ref)(null),ot=(0,N.ref)(!1),it=(0,N.ref)({rows:3,cols:3}),st=(0,N.ref)(!1),at=(0,N.ref)({x:0,y:0}),lt=(0,N.ref)([]),ct=(0,N.ref)(""),ut=(0,N.ref)([]),ht=(0,N.ref)([]),pt=(0,N.ref)({}),ft=(0,N.reactive)({}),dt=(0,N.reactive)({}),mt=(0,N.ref)({}),gt=(0,N.ref)([]),vt=(0,N.ref)({headingStyleIds:{},bodyStyleId:"",editableHeadingCounters:{}}),wt=[{label:"H1",level:1},{label:"H2",level:2},{label:"H3",level:3}],yt=Array.from({length:E*T},(t,e)=>({key:e,row:Math.floor(e/T)+1,col:e%T+1}));let xt=0,bt=[],St=0;const kt=(0,N.ref)(jt(P.renderData)),Ct=3,Et=1;function Nt(t){const e=t.isActive("heading")?t.getAttributes("heading"):t.getAttributes("paragraph");return Number(e.textIndentLevel||0)}function At(t,e){if(!t||t.isActive("table"))return!1;const n=t.isActive("heading")?"heading":"paragraph",r=Math.min(J,Math.max(0,Nt(t)+e));return t.chain().focus().updateAttributes(n,{textIndentLevel:r}).run()}const Mt=L.Extension.create({name:"editorIndent",addGlobalAttributes(){return[{types:["paragraph","heading"],attributes:{textIndentLevel:{default:0,parseHTML:t=>{const e=t.style?.textIndent||"",n=e.match(/^([\d.]+)em$/);return n?Math.min(J,Math.max(0,Math.round(Number(n[1])/_))):0},renderHTML:t=>{const e=Number(t.textIndentLevel||0);return e?{style:`text-indent: ${e*_}em;`}:{}}}}}]},addKeyboardShortcuts(){return{Tab:()=>At(this.editor,1),"Shift-Tab":()=>At(this.editor,-1),"Mod-y":()=>this.editor.commands.redo(),"Mod-Shift-z":()=>this.editor.commands.redo(),"Mod-z":()=>this.editor.commands.undo()}}}),Tt=(0,bn.useEditor)({content:"<p></p>",extensions:[xn().configure({bulletList:!1,orderedList:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1}),cn.Table.configure({resizable:!0}),mn(),fn(),hn(),wn.TextStyle,D().configure({types:["textStyle"]}),F().configure({multicolor:!0}),vn().configure({types:["heading","paragraph"]}),Mt,q().configure({placeholder:B,showOnlyWhenEditable:!0,includeChildren:!0})],onSelectionUpdate({editor:t}){tt.value=t.getAttributes("textStyle").color||i,et.value=t.getAttributes("highlight").color||s},onUpdate({editor:t}){H("content-change",{html:t.getHTML(),json:t.getJSON()}),H("update:editorHtml",t.getHTML()),H("update:editorJson",t.getJSON())}}),$t=(0,N.computed)(()=>Tt.value?.isActive("bold")),Ot=(0,N.computed)(()=>Tt.value?.isActive("table")),Rt=(0,N.computed)(()=>Tt.value?.isActive("paragraph")),It=(0,N.computed)(()=>Tt.value?.can().chain().focus().undo().run()),zt=(0,N.computed)(()=>Tt.value?.can().chain().focus().redo().run());function Vt(t){return JSON.parse(JSON.stringify(t||{}))}function jt(t){const e=Vt(t);return e.__editableRichTextMap||(e.__editableRichTextMap={}),e}function Lt(){return h.reduce((t,e)=>(t[e]=re(kt.value,`overallData.${e}`)||kt.value[e]||{},t),{})}function Bt(){return h.reduce((t,e)=>(t[`{%${e}}`]=!0,t[e]=!0,t),{})}function Dt(){if(P.exportFileName)return P.exportFileName;const t=kt.value?.startTime||"",e=kt.value?.endTime||"";return t&&e?`云平台运维周报_${t}_${e}.docx`:"云平台运维周报.docx"}function _t(){Ft(),lt.value=[],ct.value="",Object.keys(dt).forEach(t=>{delete dt[t]}),W.value&&(W.value.innerHTML="")}function Ft(){bt.forEach(t=>t()),bt=[]}function Jt(t){return Array.isArray(t)?t.map(t=>t&&"object"===typeof t?qt(t):t??""):t&&"object"===typeof t?qt(t):t??""}function qt(t={}){return Object.keys(t).reduce((e,n)=>(e[n]=Jt(t[n]),e),{})}function Pt(t={}){const e=qt(t),n=e.overallData||{},r=e.operationsData||{},o=e.maintenanceData||{},i=e.workThisWeek||{},s=e.workNextWeek||{};return{...e,...n,...r,...o,...i,...s,intranet_resource_list:n.intranet_resource_list||[]}}function Ht(t){return`${O}${t}__`}function Wt(t){return Boolean(t?.html||t?.json||t?.blocks?.length)}function Ut(t){return kt.value.__editableRichTextMap?.[t]||null}function Kt(t={}){const{useRichTextTokens:e=!0,useRichTextPlainText:n=!0}=t,r=Vt(kt.value),o=r.__editableRichTextMap||{};return ut.value.forEach(t=>{""===re(r,t)&&ne(r,t,"")}),Object.keys(o).forEach(t=>{const i=o[t];if(i?.path){const o=e&&Wt(i),s=n&&i.plainText||"";ne(r,i.path,o?Ht(t):s)}}),{...Pt(r),...Lt()}}function Gt(t){return[...t.matchAll(/<w:t[^>]*>([\s\S]*?)<\/w:t>/g)].map(t=>Qt(t[1]))}function Xt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yt(){return new RegExp(`(?:${Xt(c)}\\s*)?${Xt(a)}\\s*(\\{([^#/{][^}]*)\\})[\\s\\S]*?${Xt(l)}(?:\\s*${Xt(u)})?`,"g")}function Zt(){return new RegExp(`(?:${Xt(c)}\\s*)?${Xt(a)}\\s*([\\s\\S]*?)\\s*${Xt(l)}(?:\\s*${Xt(u)})?`,"g")}function Qt(t){return t.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'")}function te(t){const e=Gt(t).join(""),n=Yt();return[...e.matchAll(Zt())].map(t=>{const e=t[0]||"",r=n.exec(e);return n.lastIndex=0,{markerText:e,fieldKey:r?.[2]||"",isValid:Boolean(r?.[2])}})}function ee(t,e="",n={}){return t&&"object"===typeof t?(Object.keys(t).forEach(r=>{if(r.startsWith("__"))return;const o=t[r],i=e?`${e}.${r}`:r;Array.isArray(o)||(o&&"object"===typeof o?ee(o,i,n):n[r]||(n[r]=i))}),n):n}function ne(t,e,n){if(!e)return;const r=e.split(".");let o=t;for(let i=0;i<r.length-1;i+=1){const t=r[i];o[t]&&"object"===typeof o[t]||(o[t]={}),o=o[t]}o[r[r.length-1]]=n}function re(t,e){return e?e.split(".").reduce((t,e)=>null==t?"":t[e],t):""}function oe(t){const e=document.createElement("div");function n(t){if(!t)return"";if(t.nodeType===Ct)return t.textContent||"";if(t.nodeType!==Et)return"";const e=t.tagName?.toLowerCase?.()||"";if("br"===e)return"\n";const r=Array.from(t.childNodes).map(t=>n(t)).join("");return["p","div","h1","h2","h3","li"].includes(e)||"tr"===e?`${r}\n`:"td"===e||"th"===e?`${r}\t`:r}return e.innerHTML=t,Array.from(e.childNodes).map(t=>n(t)).join("").replace(/\t+$/gm,"").replace(/\n{3,}/g,"\n\n").trim()}function ie(t=""){if(!t)return!1;const e=document.createElement("div");return e.innerHTML=t,!!e.querySelector("table, img, svg, canvas")||Boolean((e.textContent||"").replace(/\u00a0/g," ").trim())}function se(t,e=""){const n=Ut(t);return void 0!==n?.html?ie(n.html):void 0!==n?.plainText?Boolean(String(n.plainText||"").trim()):dt[t]?ie(dt[t]):Boolean(String(e||"").trim())}function ae(t,e=""){const n=Ut(t);return n?.html?ce(n.html):dt[t]?ce(dt[t]):`<p>${Se(String(e||""))}</p>`}function le(t,e=""){const n=Ut(t);return n?.html?ce(n.html):dt[t]?ce(dt[t]):`<p>${Se(String(e||""))}</p>`}function ce(t=""){if(!t)return"";const e=document.createElement("div");return e.innerHTML=t,e.querySelectorAll(".tableWrapper").forEach(t=>{t.style.width="100%",t.style.maxWidth="100%"}),e.querySelectorAll("table").forEach(t=>{t.removeAttribute("width"),t.style.width="100%",t.style.minWidth="100%",t.style.maxWidth="100%",t.style.tableLayout="fixed"}),e.querySelectorAll("col").forEach(t=>{t.removeAttribute("width"),t.style.width=""}),e.querySelectorAll("td, th").forEach(t=>{t.style.textAlign=t.style.textAlign||"center",t.style.verticalAlign="middle"}),e.innerHTML}function ue(t,e=""){if(!t)return[{type:"text",text:String(e||"")}];const n=document.createElement("div");n.innerHTML=t;const r=[];function o(t){if(!t)return;if(t.nodeType===Ct){const e=t.textContent||"";return void(e&&r.push({type:"text",text:e}))}if(t.nodeType!==Et)return;const e=t.tagName?.toLowerCase?.()||"";"br"!==e?(Array.from(t.childNodes).forEach(t=>o(t)),["p","div","h1","h2","h3","li"].includes(e)&&r.push({type:"break"})):r.push({type:"break"})}Array.from(n.childNodes).forEach(t=>o(t));while(r.length&&"break"===r[r.length-1].type)r.pop();return r.length?r:[{type:"text",text:String(e||"")}]}function he(t){if(!t)return null;const e=t.nodeType===Et?t:t.parentElement;return e?.closest?.("p")||null}function pe(t=""){return t.replace(/(\s|\u00a0|\u200b|\u200c|\u200d|\ufeff)/g,"")}function fe(t,e,n,r){const o=document.createRange();return o.setStart(t,e),o.setEnd(n,r),o.toString()}function de(t,e,n,r){const o=document.createRange();return o.setStart(t,e),o.setEnd(n,r),o.cloneContents()}function me(t=""){return!t||["\n","\r","\f"].includes(t)}function ge(t="",e=0,n=0){return me(t[e-1])&&me(t[n])}function ve(t){if(!t||t.nodeType!==Et)return!1;const e=t.tagName?.toLowerCase?.()||"";if("br"===e)return!0;const n=t.getAttribute("style")||"";return/(?:page-)?break-(?:before|after)\s*:\s*(?:page|always)/i.test(n)}function we(t){const e=[];function n(t){t&&(t.nodeType!==Ct?t.nodeType===Et&&(ve(t)?e.push("\n"):Array.from(t.childNodes).forEach(t=>n(t))):e.push(t.textContent||""))}return Array.from(t.childNodes).forEach(t=>n(t)),e.join("")}function ye(t,e){const n=we(t);if(!pe(n))return!0;const r=n.split(/[\n\r\f]/);return"before"===e?!pe(r[r.length-1]||""):!pe(r[0]||"")}function xe(t,e,n="",r="",o=0,i=0){const{node:s,offset:a}=t,{node:l,offset:c}=e,u=he(s),h=he(l);if(!u||!h)return ge(r,o,i);if(u!==h)return!0;const p=fe(u,0,s,a),f=u.childNodes.length,d=fe(l,c,u,f),m=de(u,0,s,a),g=de(l,c,u,f),v=pe(n),w=pe(u.textContent||""),y=!pe(p)&&!pe(d),x=ye(m,"before")&&ye(g,"after");return y||x||w===v}function be(t,e){if(!e)return;const n=window.getComputedStyle(e),r=["textAlign","marginTop","marginBottom","paddingTop","paddingBottom","textIndent","lineHeight"];r.forEach(e=>{t.style[e]=n[e]})}function Se(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function ke(t=""){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function Ce(t=""){const e=String(t||"").trim();if(/^#[0-9a-f]{6}$/i.test(e))return e.slice(1).toUpperCase();const n=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);return n?[n[1],n[2],n[3]].map(t=>Number(t).toString(16).padStart(2,"0")).join("").toUpperCase():""}function Ee(t=""){return t.replace(/<w:b\b[^>]*\/>/g,"").replace(/<w:b\b[\s\S]*?<\/w:b>/g,"").replace(/<w:color\b[^>]*\/>/g,"").replace(/<w:color\b[\s\S]*?<\/w:color>/g,"").replace(/<w:highlight\b[^>]*\/>/g,"").replace(/<w:highlight\b[\s\S]*?<\/w:highlight>/g,"").replace(/<w:shd\b[^>]*\/>/g,"").replace(/<w:shd\b[\s\S]*?<\/w:shd>/g,"")}function Ne(t=""){return t.replace(/<w:rFonts\b[^>]*\/>/g,"").replace(/<w:rFonts\b[\s\S]*?<\/w:rFonts>/g,"")}function Ae(t=""){return t.replace(/<w:sz\b[^>]*\/>/g,"").replace(/<w:sz\b[\s\S]*?<\/w:sz>/g,"").replace(/<w:szCs\b[^>]*\/>/g,"").replace(/<w:szCs\b[\s\S]*?<\/w:szCs>/g,"")}function Me(t=y){const e=ke(t);return`<w:rFonts w:hint="eastAsia" w:ascii="${e}" w:hAnsi="${e}" w:eastAsia="${e}" w:cs="${e}"/>`}function Te(t=b){return`<w:sz w:val="${t}"/><w:szCs w:val="${t}"/>`}function $e(t="",e=!1){const n=Ae(Ne(t)),r=e?x:b;return`${n}${Me()}${Te(r)}`}function Oe(t="",e={}){const n=[Ee(t)],r=Ce(e.color),o=Ce(e.backgroundColor);e.bold&&n.push("<w:b/>"),r&&n.push(`<w:color w:val="${r}"/>`),o&&n.push(`<w:shd w:val="clear" w:color="auto" w:fill="${o}"/>`);const i=n.join("");return i?`<w:rPr>${i}</w:rPr>`:""}function Re(t="",e={},n=""){const r=String(t).split("\n"),o=Oe(n,e),i=[];return r.forEach((t,e)=>{e>0&&i.push("<w:r><w:br/></w:r>"),t&&i.push(`<w:r>${o}<w:t xml:space="preserve">${ke(t)}</w:t></w:r>`)}),i.join("")}function Ie(t=""){return`<w:r>${Oe(t,{})}<w:t xml:space="preserve"></w:t></w:r>`}function ze(t=""){return t.replace(/<w:jc\b[^>]*\/>/g,"").replace(/<w:jc\b[\s\S]*?<\/w:jc>/g,"")}function Ve(t=""){return t.replace(/<w:ind\b[^>]*\/>/g,"").replace(/<w:ind\b[\s\S]*?<\/w:ind>/g,"")}function je(t=""){return t.replace(/<w:pStyle\b[^>]*\/>/g,"").replace(/<w:pStyle\b[\s\S]*?<\/w:pStyle>/g,"")}function Le(t=""){const e={left:"left",center:"center",right:"right"};return e[t]||"left"}function Be(t="",e="left",n=0,r=""){const o=je(Ve(ze(t))),i=Math.max(0,Number(n||0)),s=i?`<w:ind w:firstLine="${Math.round(420*i)}"/>`:"",a=r?`<w:pStyle w:val="${ke(r)}"/>`:"";return`<w:pPr>${a}${o}<w:jc w:val="${Le(e)}"/>${s}</w:pPr>`}function De(t=""){return[...t.matchAll(/<w:t\b[^>]*>([\s\S]*?)<\/w:t>/g)].map(t=>Qt(t[1])).join("")}function _e(t=""){return t.match(/<w:pPr>([\s\S]*?)<\/w:pPr>/)?.[1]||""}function Fe(t=""){return t.match(/<w:rPr>([\s\S]*?)<\/w:rPr>/)?.[1]||""}function Je(t="",e="left",n="",r=0,o=""){return`<w:p>${Be(n,e,r,o)}${t||'<w:r><w:t xml:space="preserve"></w:t></w:r>'}</w:p>`}function qe(t={}){return Math.max(1,...(t.rows||[]).map(t=>(t.cells||[]).reduce((t,e)=>t+Number(e.colSpan||1),0)))}function Pe(t={}){const e=qe(t),n=[];return(t.rows||[]).map(t=>{const r=[];let o=0;function i(){const t=n[o];return!!t?.remaining&&(r.push({vMerge:"continue",colSpan:t.colSpan||1,blocks:[]}),t.remaining-=1,o+=t.colSpan||1,!0)}const s=t.cells||[];s.forEach(t=>{while(i());const e=Number(t.colSpan||1),s=Number(t.rowSpan||1);r.push({...t,colSpan:e,rowSpan:s,vMerge:s>1?"restart":""}),s>1&&(n[o]={remaining:s-1,colSpan:e}),o+=e});while(o<e)i()||(r.push({colSpan:1,blocks:[]}),o+=1);return{cells:r}})}function He(t={},e=0,n="",r=""){const o=$e(r,t.header),i=(t.blocks||[]).filter(t=>"paragraph"===t.type||"heading"===t.type),s=i.length?i.map(e=>{const r=(e.runs||[]).map(e=>Re(e.text||"",t.header?{...e.marks||{},bold:!0}:e.marks||{},o)).join("");return Je(r,e.align||"center",n)}).join(""):Je(Ie(o),"center",n),a=Number(t.colSpan||1)>1?`<w:gridSpan w:val="${Number(t.colSpan||1)}"/>`:"",l=t.header?'<w:shd w:val="clear" w:color="auto" w:fill="BFBFBF"/>':"",c=t.vMerge?`<w:vMerge${"restart"===t.vMerge?' w:val="restart"':""}/>`:"";return`<w:tc><w:tcPr><w:tcW w:w="${e*Number(t.colSpan||1)}" w:type="pct"/>${a}${c}${l}<w:vAlign w:val="center"/><w:tcMar><w:top w:w="80" w:type="dxa"/><w:left w:w="80" w:type="dxa"/><w:bottom w:w="80" w:type="dxa"/><w:right w:w="80" w:type="dxa"/></w:tcMar></w:tcPr>${s}</w:tc>`}function We(t={},e="",n=""){const r=qe(t),o=Math.max(1,Math.floor(v/r)),i=Math.max(1,Math.floor(w/r)),s=Array.from({length:r},()=>`<w:gridCol w:w="${o}"/>`).join(""),a=Pe(t).map(t=>{const r=(t.cells||[]).map(t=>He(t,i,e,n)).join("");return`<w:tr>${r}</w:tr>`}).join("");return`<w:tbl><w:tblPr><w:tblW w:w="${w}" w:type="pct"/><w:jc w:val="center"/><w:tblLayout w:type="fixed"/><w:tblBorders><w:top w:val="single" w:sz="8" w:space="0" w:color="000000"/><w:left w:val="single" w:sz="8" w:space="0" w:color="000000"/><w:bottom w:val="single" w:sz="8" w:space="0" w:color="000000"/><w:right w:val="single" w:sz="8" w:space="0" w:color="000000"/><w:insideH w:val="single" w:sz="8" w:space="0" w:color="000000"/><w:insideV w:val="single" w:sz="8" w:space="0" w:color="000000"/></w:tblBorders></w:tblPr><w:tblGrid>${s}</w:tblGrid>${a}</w:tbl>`}function Ue(t=[]){return t.reduce((t,e)=>("bold"===e.type&&(t.bold=!0),"textStyle"===e.type&&e.attrs?.color&&(t.color=e.attrs.color),"highlight"===e.type&&e.attrs?.color&&(t.backgroundColor=e.attrs.color),t),{})}function Ke(t){return Xe(t)}function Ge(t){if(!t||t.nodeType!==Et)return 0;const e=t.style?.textIndent||"",n=e.match(/^([\d.]+)em$/);return n?Math.min(J,Math.max(0,Math.round(Number(n[1])/_))):0}function Xe(t,e="left"){if(!t||t.nodeType!==Et)return e;const n=t.style?.textAlign||"";if(["left","center","right"].includes(n))return n;const r=t.getAttribute?.("align")||"";return["left","center","right"].includes(r)?r:e}function Ze(t,e={}){if(!t||t.nodeType!==Et)return e;const n=t.tagName?.toLowerCase?.()||"",r={...e};"strong"!==n&&"b"!==n||(r.bold=!0);const o=t.style?.color?Ce(t.style.color):"",i=t.style?.backgroundColor?Ce(t.style.backgroundColor):"";return o&&(r.color=`#${o}`),i&&(r.backgroundColor=`#${i}`),r}function Qe(t,e={}){if(!t)return[];if(t.nodeType===Ct)return t.textContent?[{text:t.textContent,marks:e}]:[];if(t.nodeType!==Et)return[];const n=t.tagName?.toLowerCase?.()||"",r=Ze(t,e);return"br"===n?[{text:"\n",marks:r}]:Array.from(t.childNodes).flatMap(t=>Qe(t,r))}function tn(t=[]){return t.reduce((t,e)=>{if(!e?.text)return t;const n=t[t.length-1],r=JSON.stringify(e.marks||{}),o=JSON.stringify(n?.marks||{});return n&&r===o?(n.text+=e.text,t):(t.push({text:e.text,marks:e.marks||{}}),t)},[])}function en(t=""){if(!t)return[];const e=document.createElement("div");function n(t){const e=t.tagName?.toLowerCase?.()||"";return"table"===e?{type:"table",rows:Array.from(t.rows||[]).map(t=>({cells:Array.from(t.cells||[]).map(t=>{const e=Array.from(t.childNodes).flatMap(e=>{if(e.nodeType===Ct){const n=e.textContent?.trim?.()||"";return n?[{type:"paragraph",align:Xe(t,"center"),textIndentLevel:0,runs:[{text:n,marks:{}}]}]:[]}if(e.nodeType!==Et)return[];const r=e.tagName?.toLowerCase?.()||"";if(["p","div","h1","h2","h3"].includes(r)){const r=n(e);return!r||e.style?.textAlign||e.getAttribute?.("align")||(r.align=Xe(t,"center")),r?[r]:[]}return[]});return{header:"th"===t.tagName?.toLowerCase?.(),colSpan:Number(t.colSpan||1),rowSpan:Number(t.rowSpan||1),blocks:e.length?e:[{type:"paragraph",align:Xe(t,"center"),textIndentLevel:0,runs:[]}]}})}))}:["p","div","h1","h2","h3"].includes(e)?{type:e.startsWith("h")?"heading":"paragraph",level:e.startsWith("h")?Number(e.slice(1)):null,align:Ke(t),textIndentLevel:Ge(t),runs:tn(Qe(t))}:null}e.innerHTML=t;const r=Array.from(e.childNodes).flatMap(t=>{if(t.nodeType===Ct){const e=t.textContent?.trim?.()||"";return e?[{type:"paragraph",align:"left",textIndentLevel:0,runs:[{text:e,marks:{}}]}]:[]}if(t.nodeType!==Et)return[];const e=t.tagName?.toLowerCase?.()||"";if(!["p","div","h1","h2","h3","table"].includes(e))return[];const r=n(t);return r?[r]:[]});return r.filter(t=>"table"===t.type?t.rows?.length:t.runs?.some(t=>t.text))}function nn(t=[]){return t.reduce((t,e)=>e?"text"===e.type?(t.push({text:e.text||"",marks:Ue(e.marks)}),t):(Array.isArray(e.content)&&t.push(...nn(e.content)),t):t,[])}function rn(t){return t?"paragraph"===t.type||"heading"===t.type?{type:t.type,level:t.attrs?.level||null,align:t.attrs?.textAlign||"left",textIndentLevel:Number(t.attrs?.textIndentLevel||0),runs:nn(t.content||[])}:{type:t.type,runs:nn(t.content||[])}:null}function on(t,e,n,r,o){const i=ce(n),s=en(i),a=(r?.content||[]).map(t=>rn(t)).filter(Boolean);return{version:"1.0",fieldKey:t,path:e,docxRenderText:o,plainText:o,html:i,json:r,blocks:s.length?s:a,updatedAt:(new Date).toISOString()}}function sn(t={}){return t?Array.isArray(t.blocks)&&t.blocks.length?t.blocks:(t.json?.content||[]).map(t=>rn(t)).filter(Boolean):[]}function an(t={},e=""){const n=t||{},r=sn(t).filter(t=>"table"!==t.type);return!r.length&&n.plainText?Re(n.plainText,{},e):r.map((t,n)=>{const r=(t.runs||[]).map(t=>Re(t.text||"",t.marks||{},e)).join("");return`${n>0?"<w:r><w:br/></w:r>":""}${r}`}).join("")}function ln(t,e){if(1===t){const t=["一","二","三","四","五","六","七","八","九","十"];return`${t[e[0]-1]||e[0]}、`}if(2===t){const t=["一","二","三","四","五","六","七","八","九","十"];return`(${t[e[1]-1]||e[1]})`}return`(${e[2]})`}function un(t=""){return String(t||"").replace(/^([一二三四五六七八九十]+、|([一二三四五六七八九十\d]+)|\(\d+\)|\d+[.、])\s*/,"")}function pn(t,e){if("heading"!==t.type||!t.level||t.__numberApplied)return t;const n=Math.min(3,Math.max(1,Number(t.level||1)));e[n-1]+=1;for(let s=n;s<e.length;s+=1)e[s]=0;const r=t.runs||[],o=r.find(t=>t.text),i=ln(n,e);return o?o.text=`${i}${un(o.text)}`:r.unshift({text:i,marks:{}}),t.runs=r,t.__numberApplied=!0,t}function dn(t,e={}){return"heading"===t.type?e.headingStyleIds?.[t.level]||"":e.bodyStyleId||""}function gn(t={},e="",n="",r="",o="",i={}){const s=t||{},a=sn(t),l=a.length?a:[{type:"paragraph",align:"left",textIndentLevel:0,runs:[{text:s.plainText||"",marks:{}}]}],c=Vt(l),u=[...i.headingCounters||[0,0,0]];if(r&&("paragraph"===c[0]?.type||"heading"===c[0]?.type?c[0].runs=[{text:r,marks:{}},...c[0].runs||[]]:c.unshift({type:"paragraph",align:"left",textIndentLevel:0,runs:[{text:r,marks:{}}]})),o){const t=c[c.length-1];"paragraph"===t?.type||"heading"===t?.type?t.runs=[...t.runs||[],{text:o,marks:{}}]:c.push({type:"paragraph",align:"left",textIndentLevel:0,runs:[{text:o,marks:{}}]})}return c.map(t=>{const r=pn(t,u);if("table"===r.type)return We(r,e,n);const o=(r.runs||[]).map(t=>Re(t.text||"",t.marks||{},n)).join("");return Je(o,r.align||"left",e,r.textIndentLevel||0,dn(r,i))}).join("")}function yn(t={}){return sn(t).some(t=>"table"===t.type)}function rr(t={}){if(!t?.html)return"";const e=document.createElement("div");e.innerHTML=t.html;const n=e.querySelector("table");return n?.outerHTML||""}function or(t="",e="",n={},r={}){const o=Xt(e),i=new RegExp(`<w:p\\b(?:(?!<w:p\\b)[\\s\\S])*?${o}(?:(?!<w:p\\b)[\\s\\S])*?<\\/w:p>\\s*<w:tbl\\b[\\s\\S]*?<\\/w:tbl>`,"g");return t.replace(i,t=>{const e=_e(t),o=Fe(t);return gn(n,e,o,"","",r)})}function ir(t,e={}){const n=e.wordStyleContext||{};return{headingStyleIds:n.headingStyleIds||{},bodyStyleId:n.bodyStyleId||"",headingCounters:n.editableHeadingCounters?.[t]||[0,0,0]}}function sr(t="",e={},n={}){return Object.keys(e).reduce((t,r)=>{const o=e[r],i=ir(r,n);if(!Wt(o))return t;const s=Ht(r);if(!t.includes(s))return t;if(yn(o)){if(t=or(t,s,o,i),!t.includes(s))return t;t=t.replace(/<w:tbl\b[\s\S]*?<\/w:tbl>/g,t=>t.includes(s)?gn(o,_e(t),Fe(t),"","",i):t)}if(!t.includes(s))return t;const a=t.replace(/<w:p\b[^>]*>[\s\S]*?<\/w:p>/g,t=>{if(!t.includes(s))return t;const e=De(t);if(!e.includes(s))return t;const[n,r]=e.split(s),a=sn(o),l=!pe(n)&&!pe(r),c=a.some(t=>["center","right"].includes(t.align));return!l&&!c&&a.length<=1?t:gn(o,_e(t),Fe(t),n,r,i)});return a.includes(s)?a.replace(/<w:r\b[\s\S]*?<\/w:r>/g,t=>{if(!t.includes(s))return t;const e=t.match(/<w:rPr>([\s\S]*?)<\/w:rPr>/)?.[1]||"",n=[...t.matchAll(/<w:t\b[^>]*>([\s\S]*?)<\/w:t>/g)],r=n.map(t=>Qt(t[1])).join("");if(!r.includes(s))return t;const[i,a]=r.split(s),l=Re(i,{},e),c=an(o,e),u=Re(a,{},e);return`${l}${c}${u}`}):a},t)}function ar(t,e={},n={}){const r=t.file("word/document.xml");if(!r)return;const o=r.asText(),i=sr(o,e,n);i!==o&&t.file("word/document.xml",i)}function lr(){const t=kt.value.__editableRichTextMap||{};return{renderData:Vt(kt.value),richTextFields:Vt(t),editableFields:ut.value.map(e=>({fieldKey:e,path:pt.value[e]||"",hasRichText:Boolean(t[e])}))}}function cr(t,e=""){const n=kt.value.__editableRichTextMap||{},r=n[t];return ue(r?.html,e)}function ur(){if(!W.value)return;const t=yr(W.value);t.forEach(t=>{const e=t.textContent||"";if(!e)return;const n=e.replaceAll(`${c}${a}`,"").replaceAll(`${l}${u}`,"").replaceAll(`${c} ${a}`,"").replaceAll(`${l} ${u}`,"").replaceAll(a,"").replaceAll(l,"").replaceAll(c,"").replaceAll(u,"");n!==e&&(t.textContent=n)})}function hr(t={}){const e=t.xAxisData||t.xAxis||t.categories||[],n=t.yAxisData||t.yAxis||t.values||[],r=Number(t.upperLimit??t.reasonableUpperLimit??t.maxReasonableValue??80),o=Number(t.lowerLimit??t.reasonableLowerLimit??t.minReasonableValue??30),i=t.regionList||t.regions||t.areas||[];return{title:t.title||"",xAxisData:e,yAxisData:n,upperLimit:r,lowerLimit:o,regionList:i}}function pr(t={},e=""){const n=hr(t,e),r=n.xAxisData.length||1,o=p-g.left-g.right,i=f-g.bottom,s=[];let a=0;return n.regionList.forEach((t,e)=>{const l=Number(t.count||t.length||0);if(!l)return;const c=a/r,u=(a+l)/r,h=(c+u)/2,p=g.left+o*h,f=g.left+o*u;s.push({type:"group",left:p-32,top:18,children:[{type:"rect",shape:{x:0,y:0,width:64,height:18},style:{fill:"#efefef",stroke:"#999",lineWidth:1}},{type:"text",style:{x:32,y:9,text:t.name||`区域${e+1}`,fill:"#333",fontSize:12,fontFamily:"Microsoft YaHei",textAlign:"center",textVerticalAlign:"middle"}}]}),e<n.regionList.length-1&&s.push({type:"line",shape:{x1:f,y1:38,x2:f,y2:i},style:{stroke:"#777",lineWidth:1}}),a+=l}),{animation:!1,backgroundColor:"#fff",title:{text:n.title,left:"center",top:0,textStyle:{color:"#333",fontSize:14,fontWeight:400}},legend:{top:58,right:18,itemWidth:18,itemHeight:2,textStyle:{color:"#666",fontSize:11},data:["合理区间上限","合理区间下限"]},grid:{...g},tooltip:{trigger:"axis"},xAxis:{type:"category",data:n.xAxisData,axisTick:{show:!1},axisLine:{lineStyle:{color:"#888"}},axisLabel:{interval:0,rotate:90,color:"#333",fontSize:11}},yAxis:{type:"value",min:0,max:100,axisLine:{show:!0},splitLine:{lineStyle:{color:"#e8e8e8"}}},series:[{name:"水位值",type:"bar",barWidth:26,data:n.yAxisData.map(t=>{const e=Number(t);let r="#86c5e3";return e>=n.upperLimit?r="#ff2a23":e>=.85*n.upperLimit&&(r="#ffef1f"),{value:e,itemStyle:{color:r}}}),label:{show:!0,position:"top",color:"#333",fontSize:11,formatter:({value:t})=>Number(t).toFixed(2)},markLine:{silent:!0,symbol:"none",lineStyle:{width:1},data:[{name:"合理区间上限",yAxis:n.upperLimit,lineStyle:{color:"#ff6b6b",type:"dashed"}},{name:"合理区间下限",yAxis:n.lowerLimit,lineStyle:{color:"#77c48b",type:"dashed"}}]}}],graphic:s}}async function fr(t={},e=""){const n=document.createElement("div");n.style.cssText=`position:fixed;left:-10000px;top:-10000px;width:${p}px;height:${f}px;background:#fff;`,document.body.appendChild(n);try{const r=j.init(n,null,{renderer:"canvas",width:p,height:f});r.setOption(pr(t,e));const o=r.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"});r.dispose();const i=await fetch(o);return i.arrayBuffer()}finally{n.remove()}}async function dr(){const t=P.templateUrl||`/${encodeURIComponent(P.templateFileName||r)}`,e=await fetch(t);if(!e.ok)throw new Error(`模板加载失败: ${e.status}`);return e.arrayBuffer()}function mr(t=""){return t.replaceAll(a,"").replaceAll(l,"")}function gr(t,e={}){const{stripEditorMarkers:n=!1}=e,r=new(z())(t),o=r.file("word/document.xml")?.asText?.()||"";let i=h.reduce((t,e)=>t.replaceAll(`{${e}}`,`{%${e}}`),o);return n&&(i=mr(i)),i!==o&&r.file("word/document.xml",i),{zip:r,documentXml:i}}async function vr(t={}){const{stripEditorMarkers:e=!0,applyRichText:n=!0}=t,r=await dr(),{zip:i,documentXml:s}=gr(r,{stripEditorMarkers:!1}),{zip:a}=gr(r,{stripEditorMarkers:e}),l=Rr(i,s),c=new(R())({centered:!0,fileType:"docx",getImage(t,e){return Bt()[e]?fr(t,e):t},getSize(t,e,n){return Bt()[n]?[d,m]:[120,120]}}),u=new($())(a,{modules:[c],paragraphLoop:!0,linebreaks:!0}),h=Kt({useRichTextTokens:n,useRichTextPlainText:n});return"function"===typeof u.resolveData?await u.resolveData(h):"function"===typeof u.setData&&u.setData(h),u.render(),n&&ar(u.getZip(),kt.value.__editableRichTextMap||{},{wordStyleContext:l}),u.getZip().generate({type:"blob",mimeType:o})}function wr(t,e){const n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}function yr(t){const e=document.createTreeWalker(t,NodeFilter.SHOW_TEXT),n=[];while(e.nextNode()){const t=e.currentNode;n.push(t)}return n}function xr(t,e,n="end"){let r=0;for(const i of t){const t=(i.textContent||"").length,o=r+t,s="start"===n?e<o:e<=o;if(s)return{node:i,offset:Math.max(0,e-r)};r=o}const o=t[t.length-1];return{node:o,offset:(o?.textContent||"").length}}function br(t,e){const n=()=>Gr(e);t.addEventListener("click",n),bt.push(()=>{t.removeEventListener("click",n)})}function Sr(t,e=""){const n=document.createElement("span");n.className="editable-field-anchor",n.dataset.fieldKey=t;const r=se(t,e);if(!r)return n.classList.add("is-placeholder"),n.textContent=I,br(n,t),n;const o=cr(t,e);return o.forEach(t=>{"break"!==t.type?n.appendChild(document.createTextNode(t.text||"")):n.appendChild(document.createElement("br"))}),br(n,t),n}function kr(t,e="",n=null){const r=document.createElement("div");r.className="editable-field-block",r.dataset.fieldKey=t;const o=se(t,e);return o?r.innerHTML=le(t,e):(r.classList.add("is-placeholder"),r.textContent=I),r.querySelector("table")&&r.classList.add("is-table-field"),be(r,n),br(r,t),r}function Cr(t){t&&yr(t).forEach(t=>{const e=t.textContent||"",n=e.replaceAll(`${c}${a}`,"").replaceAll(`${l}${u}`,"").replaceAll(`${c} ${a}`,"").replaceAll(`${l} ${u}`,"").replaceAll(a,"").replaceAll(l,"").replaceAll(c,"").replaceAll(u,"");n!==e&&(t.textContent=n)})}function Er(t){if(!t)return"";const e=t.cloneNode(!0);return Cr(e),e.outerHTML||""}function Nr(t,e){const n=t?.nodeType===Et?t:t?.parentElement,r=e?.nodeType===Et?e:e?.parentElement,o=n?.closest?.("table")||null,i=r?.closest?.("table")||null;return o&&o===i?o:null}function Ar(t,e){if(!t.node||!e.node)return"";const n=document.createRange();n.setStart(t.node,t.offset),n.setEnd(e.node,e.offset);const r=n.cloneContents(),o=r.querySelector?.("table");return o?Er(o):""}function Mr(t,e,n){const r=he(t),o=he(e);if(!r||!o)return!1;if(r===o)return r.replaceWith(n),!0;const i=document.createRange();return i.setStartBefore(r),i.setEndAfter(o),i.deleteContents(),i.insertNode(n),!0}function Tr(t=""){return`docx_${String(t||"").replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()}`}function $r(t){const e=t.file("word/styles.xml")?.asText?.()||"",n={};for(const r of e.matchAll(/<w:style\b[\s\S]*?<\/w:style>/g)){const t=r[0],e=t.match(/w:type="([^"]+)"/)?.[1]||"";if("paragraph"!==e)continue;const o=t.match(/w:styleId="([^"]+)"/)?.[1]||"",i=t.match(/<w:outlineLvl w:val="([^"]+)"/)?.[1];if(!o||void 0===i)continue;const s=Number(i)+1;s>=1&&s<=3&&(n[Tr(o)]=s)}return n}function Or(t){const e=t.file("word/styles.xml")?.asText?.()||"",n={};for(const r of e.matchAll(/<w:style\b[\s\S]*?<\/w:style>/g)){const t=r[0],e=t.match(/w:type="([^"]+)"/)?.[1]||"";if("paragraph"!==e)continue;const o=t.match(/w:styleId="([^"]+)"/)?.[1]||"",i=t.match(/<w:outlineLvl w:val="([^"]+)"/)?.[1];if(!o||void 0===i)continue;const s=Number(i)+1;s>=1&&s<=3&&(n[o]=s)}return n}function Rr(t,e=""){const n=t.file("word/styles.xml")?.asText?.()||"",r={};let o="";for(const a of n.matchAll(/<w:style\b[\s\S]*?<\/w:style>/g)){const t=a[0],e=t.match(/w:type="([^"]+)"/)?.[1]||"";if("paragraph"!==e)continue;const n=t.match(/w:styleId="([^"]+)"/)?.[1]||"",i=t.match(/<w:name w:val="([^"]+)"/)?.[1]||"",s=t.match(/<w:outlineLvl w:val="([^"]+)"/)?.[1];if(n&&void 0!==s){const t=Number(s)+1;t>=1&&t<=3&&(r[t]=n)}!o&&/^normal$/i.test(i)&&(o=n)}const i=Or(t),s={},l=[0,0,0];for(const c of e.matchAll(/<w:p\b[\s\S]*?<\/w:p>/g)){const t=c[0],e=t.match(/<w:pStyle w:val="([^"]+)"/)?.[1]||"",n=i[e],r=zr(t);if(r.includes(a)){const e=te(t);e.forEach(t=>{t.isValid&&t.fieldKey&&!s[t.fieldKey]&&(s[t.fieldKey]=[...l])})}if(n>=1&&n<=3){l[n-1]+=1;for(let t=n;t<l.length;t+=1)l[t]=0}}return{headingStyleIds:r,bodyStyleId:o,editableHeadingCounters:s}}function Ir(t=""){return String(t||"").replace(/\s+/g,"")}function zr(t=""){return[...t.matchAll(/<w:t[^>]*>([\s\S]*?)<\/w:t>/g)].map(t=>Qt(t[1])).join("").trim().replace(/\s+/g," ")}function Vr(t,e=""){const n=Or(t),r=[];for(const o of e.matchAll(/<w:p\b[\s\S]*?<\/w:p>/g)){const t=o[0],e=t.match(/<w:pStyle w:val="([^"]+)"/)?.[1]||"",i=n[e];if(!i)continue;const s=zr(t);!s||s.includes(a)||s.includes(l)||r.push({level:i,text:s,normalizedText:Ir(s)})}return r}function jr(t){if(!t)return 0;for(const n of Array.from(t.classList||[])){const t=mt.value[n];if(t>=1&&t<=3)return t}const e=t.tagName?.toLowerCase?.()||"";return/^h[1-3]$/.test(e)?Number(e.slice(1)):0}function Lr(t){const e=window.getComputedStyle(t),n=t.getBoundingClientRect();return"none"!==e.display&&"hidden"!==e.visibility&&n.width>0&&n.height>0}function Br(t){return Ir(t?.textContent||"")}function Dr(t,e,n=0){const r=t.normalizedText;if(!r)return{element:null,index:n};const o=e.findIndex((t,e)=>e>=n&&Br(t)===r);if(o>=0)return{element:e[o],index:o};const i=e.map((t,e)=>({element:t,index:e,text:Br(t)})).filter(t=>t.index>=n&&t.text.includes(r)&&t.text.length<=r.length+12).sort((t,e)=>t.text.length-e.text.length||t.index-e.index);if(i.length)return{element:i[0].element,index:i[0].index};const s=e.map((t,e)=>({element:t,index:e,text:Br(t)})).filter(t=>t.index>=n&&t.text.includes(r)).sort((t,e)=>t.text.length-e.text.length||t.index-e.index);return s.length?{element:s[0].element,index:s[0].index}:{element:null,index:n}}function _r(){const t=W.value?.querySelector(".docx")||W.value;if(!t)return[];const e=Array.from(t.querySelectorAll("h1, h2, h3, p, div, span")).filter(e=>{if(e===t||e.closest("table")||!Lr(e))return!1;const n=Br(e);return n.length>0&&n.length<=120});return e.filter(t=>{const n=Br(t),r=Array.from(t.children||[]).some(t=>e.includes(t)&&Br(t)===n);return!r})}function Fr(){if(!W.value)return void(lt.value=[]);const t=_r(),e=new Set,n=[],r=gt.value||[];if(r.length){let o=0;return r.forEach(r=>{const i=`${r.level}-${r.normalizedText}`;if(e.has(i))return;const{element:s,index:a}=Dr(r,t,o);s&&(o=a+1),e.add(i);const l=`docx-outline-${n.length+1}`;s&&(s.dataset.outlineId=l),n.push({id:l,level:r.level,text:r.text,element:s})}),lt.value=n,ct.value=n[0]?.id||"",void Wr()}t.forEach(t=>{const r=(t.textContent||"").trim().replace(/\s+/g," ");if(!r||r.length>80||r.includes(a)||r.includes(l))return;const o=jr(t);if(!o)return;const i=`${o}-${r}`;if(e.has(i))return;e.add(i);const s=`docx-outline-${n.length+1}`;t.dataset.outlineId=s,n.push({id:s,level:o,text:r,element:t})}),lt.value=n,ct.value=n[0]?.id||"",Wr()}function Jr(){return U.value||W.value?.parentElement||null}function qr(t){if(!t||!W.value)return null;if(t.element?.isConnected)return t.element;const e=W.value.querySelector(`[data-outline-id="${t.id}"]`);if(e)return t.element=e,e;const n=_r(),r=Dr({normalizedText:Ir(t.text)},n,0).element;return r&&(r.dataset.outlineId=t.id,t.element=r),r}function Pr(t,e){const n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top+e.scrollTop}function Hr(t){const e=Jr(),n=qr(t);n&&e&&(ct.value=t.id,e.scrollTo({top:Math.max(Pr(n,e)-24,0),behavior:"smooth"}))}function Wr(){const t=Jr();if(!t||!lt.value.length)return;const e=t.getBoundingClientRect(),n=e.top+96;let r=null,o=null;lt.value.forEach(t=>{const e=qr(t);if(!e)return;const i=e.getBoundingClientRect();i.top<=n?r=t:o||(o=t)});const i=r?.id||o?.id||lt.value[0]?.id||"";i&&ct.value!==i&&(ct.value=i)}function Ur(){St&&cancelAnimationFrame(St),St=requestAnimationFrame(()=>{St=0,Wr()})}function Kr(){if("edit"!==P.renderType||!W.value||!ht.value.length)return;Ft();const t=yr(W.value),e=t.map(t=>t.textContent||"").join(""),n=[...e.matchAll(Zt())].map((t,e)=>({match:t,descriptor:ht.value[e]})).filter(t=>t.descriptor?.isValid&&t.descriptor?.fieldKey),r=new WeakSet;for(let o=n.length-1;o>=0;o-=1){const{match:i,descriptor:s}=n[o],a=i[0]||"",l=s.fieldKey;if(!l)continue;const c=i.index||0,u=c+a.length,h=(i[1]||"").trim(),p=xr(t,c,"start"),f=xr(t,u,"end");if(!p.node||!f.node)continue;if(!p.node.isConnected||!f.node.isConnected)continue;const d=Ut(l),m=yn(d)?rr(d):"";if(m){dt[l]=m;const t=document.createRange();t.setStart(p.node,p.offset),t.setEnd(f.node,f.offset),t.deleteContents(),t.insertNode(kr(l,h,he(p.node)));continue}const g=Ar(p,f);if(g){dt[l]=g;const t=document.createRange();t.setStart(p.node,p.offset),t.setEnd(f.node,f.offset),t.deleteContents(),t.insertNode(kr(l,h,he(p.node)));continue}const v=Nr(p.node,f.node);if(v&&!r.has(v)){dt[l]=Er(v),v.replaceWith(kr(l,h,he(p.node))),r.add(v);continue}const w=document.createRange(),y=xe(p,f,a,e,c,u);if(y){const t=he(p.node);Mr(p.node,f.node,kr(l,h,t));continue}w.setStart(p.node,p.offset),w.setEnd(f.node,f.offset),w.deleteContents(),w.insertNode(Sr(l,h))}}function Gr(t){const e=pt.value[t]||"",n=re(kt.value,e)??"";Y.value={key:t,path:e},Tt.value?.commands.setContent(ae(t,n),!1),X.value=!0}function Xr(){if(!Y.value||!Tt.value)return;const t=Y.value.key,e=ce(Tt.value.getHTML()),n=Tt.value.getJSON(),r=oe(e),o=Y.value.path;kt.value.__editableRichTextMap[t]=on(t,o,e,n,r),ne(kt.value,o,r),ft[t]=e,H("render-data-change",Vt(kt.value)),H("save-payload-change",lr()),X.value=!1,Zr()}function Yr(){Y.value=null}async function Zr(){const t=++xt;K.value=!0,G.value="";try{const e=await dr(),{zip:n,documentXml:r}=gr(e,{stripEditorMarkers:"edit"!==P.renderType});mt.value=$r(n),gt.value=Vr(n,r),vt.value=Rr(n,r),ht.value=te(r),ut.value=ht.value.filter(t=>t.isValid).map(t=>t.fieldKey),pt.value=ee(kt.value),ut.value.forEach(t=>{pt.value[t]||(pt.value[t]=t)});const o=await vr({stripEditorMarkers:"edit"!==P.renderType,applyRichText:"edit"!==P.renderType});if(await(0,N.nextTick)(),!W.value||t!==xt)return;_t(),await V.renderAsync(o,W.value,W.value,{className:"docx-preview",inWrapper:!0,breakPages:!0,ignoreWidth:!1,ignoreHeight:!1,ignoreLastRenderedPageBreak:!1,renderHeaders:!0,renderFooters:!0,useBase64URL:!0}),await(0,N.nextTick)(),"edit"===P.renderType?Kr():ur(),Fr()}catch(e){if(t!==xt)return;console.error("Docx preview render failed:",e),G.value="文档预览生成失败,请检查模板变量或模板文件。",A.ElMessage.error(G.value)}finally{t===xt&&(K.value=!1)}}async function Qr(){try{const t=await vr({stripEditorMarkers:!0});return wr(t,Dt()),{success:!0,fileName:Dt()}}catch(t){return console.error("Docx export failed:",t),A.ElMessage.error("导出失败,请检查模板变量或模板文件。"),{success:!1,error:t}}}function to(t){return!!Tt.value?.isActive("heading",{level:t})}function eo(t){return!!Tt.value?.isActive({textAlign:t})}function no(t){Tt.value?.chain().focus().toggleHeading({level:t}).run()}function ro(){Tt.value?.chain().focus().setParagraph().updateAttributes("paragraph",{textIndentLevel:0}).setTextAlign("left").run()}function oo(){Tt.value?.chain().focus().toggleBold().run()}function io(){if(!Tt.value)return null;const t=wt.find(t=>Tt.value.isActive("heading",{level:t.level}))?.level||0;return{headingLevel:t,bold:Boolean(Tt.value.isActive("bold")),textColor:Tt.value.getAttributes("textStyle").color||"",backgroundColor:Tt.value.getAttributes("highlight").color||"",align:["center","right"].find(t=>Tt.value.isActive({textAlign:t}))||"left",textIndentLevel:Nt(Tt.value)}}function so(t){if(!Tt.value||!t)return;let e=Tt.value.chain().focus().unsetAllMarks();e=t.headingLevel?e.setHeading({level:t.headingLevel}):e.setParagraph(),e=e.setTextAlign(t.align||"left").updateAttributes(t.headingLevel?"heading":"paragraph",{textIndentLevel:Number(t.textIndentLevel||0)}),t.bold&&(e=e.toggleBold()),t.textColor&&(e=e.setColor(t.textColor)),t.backgroundColor&&(e=e.setHighlight({color:t.backgroundColor})),e.run()}function ao(){if(!rt.value)return rt.value=io(),void A.ElMessage.success("已复制当前格式,请选中目标内容后再次点击格式刷应用。");so(rt.value),rt.value=null}function lo(){Tt.value&&Tt.value.chain().focus().unsetAllMarks().setParagraph().setTextAlign("left").updateAttributes("paragraph",{textIndentLevel:0}).run()}function co(t,e){it.value={rows:t,cols:e}}function uo(t,e){Tt.value?.chain().focus().insertTable({rows:t,cols:e,withHeaderRow:!0}).run(),ot.value=!1}function ho(){Tt.value?.chain().focus().addRowAfter().run()}function po(){Tt.value?.chain().focus().deleteRow().run()}function fo(){Tt.value?.chain().focus().addColumnAfter().run()}function mo(){Tt.value?.chain().focus().deleteColumn().run()}function go(){Tt.value?.chain().focus().deleteTable().run()}function vo(){st.value=!1}function wo(t){return t instanceof Ye}function yo(t){const e=Tt.value?.state.selection;return wo(e)&&t.classList.contains("selectedCell")}function xo(t){const e=Tt.value?.view,n=e?.posAtCoords({left:t.clientX,top:t.clientY});n?.pos?Tt.value.chain().focus().setTextSelection(n.pos).run():Tt.value?.commands.focus()}function bo(t){if(2!==t.button)return;const e=t.target?.closest?.("td, th");e&&yo(e)&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation?.())}function So(t){const e=t.target?.closest?.("td, th");if(!e||!Tt.value)return void vo();t.preventDefault(),yo(e)||xo(t);const n=t.currentTarget.closest(".edit-dialog")?.getBoundingClientRect()||t.currentTarget.getBoundingClientRect();at.value={x:t.clientX-n.left,y:t.clientY-n.top},st.value=!0}function ko(t){return"mergeCells"===t?"请先拖选两个或多个连续单元格,再执行合并。":"splitCell"===t?"当前单元格没有可拆分的合并行或合并列。":""}function Co(t){const e=Tt.value;if(!e)return;const n={mergeCells:()=>e.chain().focus().mergeCells().run(),splitCell:()=>e.chain().focus().splitCell().run(),addRowBefore:()=>e.chain().focus().addRowBefore().run(),addRowAfter:()=>e.chain().focus().addRowAfter().run(),deleteRow:()=>e.chain().focus().deleteRow().run(),addColumnBefore:()=>e.chain().focus().addColumnBefore().run(),addColumnAfter:()=>e.chain().focus().addColumnAfter().run(),deleteColumn:()=>e.chain().focus().deleteColumn().run(),toggleHeaderRow:()=>e.chain().focus().toggleHeaderRow().run(),toggleHeaderColumn:()=>e.chain().focus().toggleHeaderColumn().run(),deleteTable:()=>e.chain().focus().deleteTable().run()},r=e.can()?.[t]?.();if(!1===r){const e=ko(t);return e&&A.ElMessage.warning(e),void vo()}const o=n[t]?.();if(!1===o){const e=ko(t);e&&A.ElMessage.warning(e)}vo()}function Eo(t){Tt.value?.chain().focus().setTextAlign(t).run()}function No(){const t=Tt.value?.state.selection;t&&(nt.value={from:t.from,to:t.to})}function Ao(){const t=Tt.value?.chain().focus();return t?nt.value?t.setTextSelection(nt.value):t:null}function Mo(){No(),Z.value?.click()}function To(){No(),Q.value?.click()}function $o(t){const e=t.target.value||i;tt.value=e,Ao()?.setColor(e).run(),nt.value=null}function Oo(t){const e=t.target.value||s;et.value=e,Ao()?.setHighlight({color:e}).run(),nt.value=null}function Ro(){No(),Ao()?.unsetHighlight().run(),et.value=s,nt.value=null}function Io(){Tt.value?.chain().focus().undo().run()}function zo(){Tt.value?.chain().focus().redo().run()}return(0,N.watch)(()=>P.renderData,t=>{kt.value=jt(t),Zr()},{deep:!0,immediate:!0}),(0,N.watch)(()=>P.renderType,()=>{Zr()}),e({exportDocx:Qr,getRenderData:()=>Vt(kt.value),getSavePayload:()=>lr(),getEditorHtml:()=>Tt.value?.getHTML()||"",getEditorJson:()=>Tt.value?.getJSON()||null}),(0,N.onBeforeUnmount)(()=>{xt+=1,St&&(cancelAnimationFrame(St),St=0),_t(),Tt.value?.destroy()}),(e,n)=>{const r=(0,N.resolveComponent)("el-tooltip"),o=(0,N.resolveComponent)("el-popover"),i=(0,N.resolveComponent)("el-button"),s=(0,N.resolveComponent)("el-dialog");return(0,N.openBlock)(),(0,N.createElementBlock)("div",{class:(0,N.normalizeClass)(["view-page",{"has-outline":lt.value.length}])},[lt.value.length?((0,N.openBlock)(),(0,N.createElementBlock)("aside",Sn,[n[37]||(n[37]=(0,N.createElementVNode)("div",{class:"outline-title"},"文档目录",-1)),((0,N.openBlock)(!0),(0,N.createElementBlock)(N.Fragment,null,(0,N.renderList)(lt.value,t=>((0,N.openBlock)(),(0,N.createElementBlock)("button",{key:t.id,type:"button",class:(0,N.normalizeClass)(["outline-item",[`level-${t.level}`,{"is-active":ct.value===t.id}]]),onClick:e=>Hr(t)},[(0,N.createElementVNode)("span",Cn,(0,N.toDisplayString)(t.text),1)],10,kn))),128))])):(0,N.createCommentVNode)("",!0),(0,N.createElementVNode)("div",{ref_key:"docxScrollRef",ref:U,class:(0,N.normalizeClass)("view"===t.renderType?"view-box":"edit-box"),onScroll:Ur},[K.value?((0,N.openBlock)(),(0,N.createElementBlock)("div",En,"正在生成文档预览...")):G.value?((0,N.openBlock)(),(0,N.createElementBlock)("div",Nn,(0,N.toDisplayString)(G.value),1)):(0,N.createCommentVNode)("",!0),(0,N.withDirectives)((0,N.createElementVNode)("div",{ref_key:"previewRef",ref:W,class:"docx-preview-container"},null,512),[[N.vShow,!K.value&&!G.value]])],34),(0,N.createVNode)(s,{modelValue:X.value,"onUpdate:modelValue":n[36]||(n[36]=t=>X.value=t),title:"编辑变量内容",width:"70%",class:"editDialog-dialog","destroy-on-close":"",onClosed:Yr},{footer:(0,N.withCtx)(()=>[(0,N.createElementVNode)("div",nr,[(0,N.createVNode)(i,{onClick:n[35]||(n[35]=t=>X.value=!1)},{default:(0,N.withCtx)(()=>[...n[64]||(n[64]=[(0,N.createTextVNode)("取消",-1)])]),_:1}),(0,N.createVNode)(i,{type:"primary",onClick:Xr},{default:(0,N.withCtx)(()=>[...n[65]||(n[65]=[(0,N.createTextVNode)("保存当前内容",-1)])]),_:1})])]),default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("div",An,[(0,N.createElementVNode)("div",Mn,[(0,N.createTextVNode)(" 当前变量:"+(0,N.toDisplayString)(Y.value?.key||"--")+" ",1),Y.value?.path?((0,N.openBlock)(),(0,N.createElementBlock)("span",Tn,(0,N.toDisplayString)(Y.value.path),1)):(0,N.createCommentVNode)("",!0)]),(0,N.createElementVNode)("div",$n,[((0,N.openBlock)(),(0,N.createElementBlock)(N.Fragment,null,(0,N.renderList)(wt,t=>(0,N.createVNode)(r,{key:t.level,content:`标题 ${t.level}`,placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:(0,N.normalizeClass)(["toolbar-btn",{"is-active":to(t.level)}]),onMousedown:n[0]||(n[0]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:e=>no(t.level)},[((0,N.openBlock)(),(0,N.createElementBlock)("svg",Rn,[n[38]||(n[38]=(0,N.createElementVNode)("text",{x:"5",y:"19",class:"svg-heading-main"},"H",-1)),(0,N.createElementVNode)("text",In,(0,N.toDisplayString)(t.level),1)]))],42,On)]),_:2},1032,["content"])),64)),(0,N.createVNode)(r,{content:"正文",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:(0,N.normalizeClass)(["toolbar-btn",{"is-active":Rt.value}]),onMousedown:n[1]||(n[1]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:ro},[...n[39]||(n[39]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("path",{d:"M6 7h16M6 12h16M6 17h13M6 22h10",class:"svg-stroke round"})],-1)])],34)]),_:1}),n[57]||(n[57]=(0,N.createElementVNode)("div",{class:"toolbar-divider"},null,-1)),(0,N.createVNode)(r,{content:"加粗",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:(0,N.normalizeClass)(["toolbar-btn",{"is-active":$t.value}]),onMousedown:n[2]||(n[2]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:oo},[...n[40]||(n[40]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("text",{x:"8",y:"20",class:"svg-bold"},"B")],-1)])],34)]),_:1}),(0,N.createVNode)(o,{visible:ot.value,"onUpdate:visible":n[4]||(n[4]=t=>ot.value=t),placement:"bottom-start",trigger:"click",width:340,"popper-class":"table-picker-popper"},{reference:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:(0,N.normalizeClass)(["toolbar-btn table-trigger-btn",{"is-active":Ot.value}]),title:"插入表格",onMousedown:n[3]||(n[3]=(0,N.withModifiers)(()=>{},["prevent"]))},[...n[41]||(n[41]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("rect",{x:"5",y:"5",width:"18",height:"18",rx:"2",class:"svg-stroke"}),(0,N.createElementVNode)("path",{d:"M5 11.5h18M5 17.5h18M11.5 5v18M17.5 5v18",class:"svg-stroke thin"}),(0,N.createElementVNode)("rect",{x:"6.5",y:"6.5",width:"15",height:"4",class:"svg-soft-fill"})],-1)])],34)]),default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("div",zn,[n[42]||(n[42]=(0,N.createElementVNode)("div",{class:"table-picker-title"},"插入表格",-1)),(0,N.createElementVNode)("div",Vn,[((0,N.openBlock)(!0),(0,N.createElementBlock)(N.Fragment,null,(0,N.renderList)((0,N.unref)(yt),t=>((0,N.openBlock)(),(0,N.createElementBlock)("button",{key:t.key,type:"button",class:(0,N.normalizeClass)(["table-picker-cell",{"is-active":t.row<=it.value.rows&&t.col<=it.value.cols}]),onMouseenter:e=>co(t.row,t.col),onClick:e=>uo(t.row,t.col)},null,42,jn))),128))]),(0,N.createElementVNode)("div",Ln,(0,N.toDisplayString)(it.value.rows)+" x "+(0,N.toDisplayString)(it.value.cols),1)])]),_:1},8,["visible"]),(0,N.createVNode)(r,{content:"左对齐",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:(0,N.normalizeClass)(["toolbar-btn",{"is-active":eo("left")}]),onMousedown:n[5]||(n[5]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:n[6]||(n[6]=t=>Eo("left"))},[...n[43]||(n[43]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("path",{d:"M6 7h16M6 12h11M6 17h16M6 22h9",class:"svg-stroke round"})],-1)])],34)]),_:1}),(0,N.createVNode)(r,{content:"居中对齐",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:(0,N.normalizeClass)(["toolbar-btn",{"is-active":eo("center")}]),onMousedown:n[7]||(n[7]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:n[8]||(n[8]=t=>Eo("center"))},[...n[44]||(n[44]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("path",{d:"M6 7h16M9 12h10M6 17h16M10 22h8",class:"svg-stroke round"})],-1)])],34)]),_:1}),(0,N.createVNode)(r,{content:"右对齐",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:(0,N.normalizeClass)(["toolbar-btn",{"is-active":eo("right")}]),onMousedown:n[9]||(n[9]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:n[10]||(n[10]=t=>Eo("right"))},[...n[45]||(n[45]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("path",{d:"M6 7h16M11 12h11M6 17h16M13 22h9",class:"svg-stroke round"})],-1)])],34)]),_:1}),n[58]||(n[58]=(0,N.createElementVNode)("div",{class:"toolbar-divider"},null,-1)),(0,N.createVNode)(r,{content:"下方插入行",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("span",Bn,[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn table-op-btn",disabled:!Ot.value,onMousedown:n[11]||(n[11]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:ho},[...n[46]||(n[46]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("rect",{x:"5",y:"4",width:"18",height:"16",rx:"1.5",class:"svg-stroke muted"}),(0,N.createElementVNode)("path",{d:"M5 9.5h18M5 14.5h18M11 4v16M17 4v16",class:"svg-stroke thin muted"}),(0,N.createElementVNode)("path",{d:"M14 23v4M12 25h4",class:"svg-stroke accent round"})],-1)])],40,Dn)])]),_:1}),(0,N.createVNode)(r,{content:"删除当前行",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("span",_n,[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn table-op-btn",disabled:!Ot.value,onMousedown:n[12]||(n[12]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:po},[...n[47]||(n[47]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("rect",{x:"5",y:"4",width:"18",height:"16",rx:"1.5",class:"svg-stroke muted"}),(0,N.createElementVNode)("path",{d:"M5 9.5h18M5 14.5h18M11 4v16M17 4v16",class:"svg-stroke thin muted"}),(0,N.createElementVNode)("path",{d:"M11.5 25h5",class:"svg-stroke danger round"})],-1)])],40,Fn)])]),_:1}),(0,N.createVNode)(r,{content:"右侧插入列",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("span",Jn,[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn table-op-btn",disabled:!Ot.value,onMousedown:n[13]||(n[13]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:fo},[...n[48]||(n[48]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("rect",{x:"4",y:"5",width:"16",height:"18",rx:"1.5",class:"svg-stroke muted"}),(0,N.createElementVNode)("path",{d:"M4 11h16M4 17h16M9.5 5v18M15 5v18",class:"svg-stroke thin muted"}),(0,N.createElementVNode)("path",{d:"M24 12v4M22 14h4",class:"svg-stroke accent round"})],-1)])],40,qn)])]),_:1}),(0,N.createVNode)(r,{content:"删除当前列",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("span",Pn,[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn table-op-btn",disabled:!Ot.value,onMousedown:n[14]||(n[14]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:mo},[...n[49]||(n[49]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("rect",{x:"4",y:"5",width:"16",height:"18",rx:"1.5",class:"svg-stroke muted"}),(0,N.createElementVNode)("path",{d:"M4 11h16M4 17h16M9.5 5v18M15 5v18",class:"svg-stroke thin muted"}),(0,N.createElementVNode)("path",{d:"M22 14h5",class:"svg-stroke danger round"})],-1)])],40,Hn)])]),_:1}),(0,N.createVNode)(r,{content:"删除表格",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("span",Wn,[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn table-op-btn",disabled:!Ot.value,onMousedown:n[15]||(n[15]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:go},[...n[50]||(n[50]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("rect",{x:"6",y:"6",width:"16",height:"16",rx:"2",class:"svg-stroke muted"}),(0,N.createElementVNode)("path",{d:"M11 11l6 6M17 11l-6 6",class:"svg-stroke danger round"})],-1)])],40,Un)])]),_:1}),n[59]||(n[59]=(0,N.createElementVNode)("div",{class:"toolbar-divider"},null,-1)),(0,N.createVNode)(r,{content:"字体颜色",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn color-btn",onMousedown:n[16]||(n[16]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:Mo},[((0,N.openBlock)(),(0,N.createElementBlock)("svg",Kn,[n[51]||(n[51]=(0,N.createElementVNode)("path",{d:"M8 19l6-14 6 14M10.5 14.5h7",class:"svg-stroke round"},null,-1)),(0,N.createElementVNode)("path",{d:"M6 23h16",class:"svg-stroke color-preview-stroke round",style:(0,N.normalizeStyle)({color:tt.value})},null,4)]))],32)]),_:1}),(0,N.createElementVNode)("input",{ref_key:"textColorInputRef",ref:Z,class:"hidden-color-input",type:"color",value:tt.value,onInput:$o},null,40,Gn),(0,N.createVNode)(r,{content:"背景色",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn color-btn",onMousedown:n[17]||(n[17]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:To},[((0,N.openBlock)(),(0,N.createElementBlock)("svg",Xn,[n[52]||(n[52]=(0,N.createElementVNode)("path",{d:"M8 16.5l7.5-7.5 3.5 3.5-7.5 7.5H8v-3.5z",class:"svg-stroke round"},null,-1)),n[53]||(n[53]=(0,N.createElementVNode)("path",{d:"M17 7l4 4",class:"svg-stroke thin round"},null,-1)),(0,N.createElementVNode)("rect",{x:"6",y:"22",width:"16",height:"3",rx:"1.5",class:"svg-color-fill",style:(0,N.normalizeStyle)({color:et.value})},null,4)]))],32)]),_:1}),(0,N.createVNode)(r,{content:"清除背景色",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn clear-highlight-btn",onMousedown:n[18]||(n[18]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:Ro},[...n[54]||(n[54]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("path",{d:"M8 16.5l7.5-7.5 3.5 3.5-7.5 7.5H8v-3.5z",class:"svg-stroke muted round"}),(0,N.createElementVNode)("path",{d:"M17 7l4 4",class:"svg-stroke thin muted round"}),(0,N.createElementVNode)("path",{d:"M7 23h14",class:"svg-stroke danger round"}),(0,N.createElementVNode)("path",{d:"M21 6L6 21",class:"svg-stroke danger round"})],-1)])],32)]),_:1}),(0,N.createVNode)(r,{content:"格式刷",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:(0,N.normalizeClass)(["toolbar-btn",{"is-active":Boolean(rt.value)}]),onMousedown:n[19]||(n[19]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:ao},[...n[55]||(n[55]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("path",{d:"M8 5h12v6H8zM10 11v4h8v-4M13 15h2v7",class:"svg-stroke round"})],-1)])],34)]),_:1}),(0,N.createVNode)(r,{content:"清除格式",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn",onMousedown:n[20]||(n[20]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:lo},[...n[56]||(n[56]=[(0,N.createElementVNode)("svg",{class:"toolbar-svg",viewBox:"0 0 28 28","aria-hidden":"true"},[(0,N.createElementVNode)("path",{d:"M7 20l5-12h4l5 12M9 16h10",class:"svg-stroke round"}),(0,N.createElementVNode)("path",{d:"M21 6L6 21",class:"svg-stroke danger round"})],-1)])],32)]),_:1}),(0,N.createElementVNode)("input",{ref_key:"highlightColorInputRef",ref:Q,class:"hidden-color-input",type:"color",value:et.value,onInput:Oo},null,40,Yn),n[60]||(n[60]=(0,N.createElementVNode)("div",{class:"toolbar-divider"},null,-1)),(0,N.createVNode)(r,{content:"撤销",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("span",Zn,[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn",disabled:!It.value,onMousedown:n[21]||(n[21]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:Io},[(0,N.createVNode)((0,N.unref)(M.RefreshLeft))],40,Qn)])]),_:1}),(0,N.createVNode)(r,{content:"恢复",placement:"top"},{default:(0,N.withCtx)(()=>[(0,N.createElementVNode)("span",tr,[(0,N.createElementVNode)("button",{type:"button",class:"toolbar-btn",disabled:!zt.value,onMousedown:n[22]||(n[22]=(0,N.withModifiers)(()=>{},["prevent"])),onClick:zo},[(0,N.createVNode)((0,N.unref)(M.RefreshRight))],40,er)])]),_:1})]),(0,N.createElementVNode)("div",{class:"editor-content-shell",onClick:vo,onMousedownCapture:bo,onContextmenu:So},[(0,N.unref)(Tt)?((0,N.openBlock)(),(0,N.createBlock)((0,N.unref)(bn.EditorContent),{key:0,editor:(0,N.unref)(Tt),class:"editor-content"},null,8,["editor"])):(0,N.createCommentVNode)("",!0)],32),st.value?((0,N.openBlock)(),(0,N.createElementBlock)("div",{key:0,class:"table-context-menu",style:(0,N.normalizeStyle)({left:`${at.value.x}px`,top:`${at.value.y}px`}),onMousedown:n[34]||(n[34]=(0,N.withModifiers)(()=>{},["prevent"]))},[(0,N.createElementVNode)("button",{type:"button",onClick:n[23]||(n[23]=t=>Co("mergeCells"))},"合并单元格"),(0,N.createElementVNode)("button",{type:"button",onClick:n[24]||(n[24]=t=>Co("splitCell"))},"拆分单元格"),n[61]||(n[61]=(0,N.createElementVNode)("div",{class:"table-context-divider"},null,-1)),(0,N.createElementVNode)("button",{type:"button",onClick:n[25]||(n[25]=t=>Co("addRowBefore"))},"上方插入行"),(0,N.createElementVNode)("button",{type:"button",onClick:n[26]||(n[26]=t=>Co("addRowAfter"))},"下方插入行"),(0,N.createElementVNode)("button",{type:"button",onClick:n[27]||(n[27]=t=>Co("deleteRow"))},"删除当前行"),n[62]||(n[62]=(0,N.createElementVNode)("div",{class:"table-context-divider"},null,-1)),(0,N.createElementVNode)("button",{type:"button",onClick:n[28]||(n[28]=t=>Co("addColumnBefore"))},"左侧插入列"),(0,N.createElementVNode)("button",{type:"button",onClick:n[29]||(n[29]=t=>Co("addColumnAfter"))},"右侧插入列"),(0,N.createElementVNode)("button",{type:"button",onClick:n[30]||(n[30]=t=>Co("deleteColumn"))},"删除当前列"),n[63]||(n[63]=(0,N.createElementVNode)("div",{class:"table-context-divider"},null,-1)),(0,N.createElementVNode)("button",{type:"button",onClick:n[31]||(n[31]=t=>Co("toggleHeaderRow"))},"切换表头行"),(0,N.createElementVNode)("button",{type:"button",onClick:n[32]||(n[32]=t=>Co("toggleHeaderColumn"))},"切换表头列"),(0,N.createElementVNode)("button",{type:"button",class:"is-danger",onClick:n[33]||(n[33]=t=>Co("deleteTable"))},"删除表格")],36)):(0,N.createCommentVNode)("",!0)])]),_:1},8,["modelValue"])],2)}}}),ir=S(8868);const sr=(0,ir.A)(or,[["__scopeId","data-v-1c085df3"]]);var ar=sr;ar.install=t=>{t.component(ar.name||"FDocxEditor",ar)};var lr=ar,cr=lr;return k}()});
package/package.json CHANGED
@@ -1,99 +1,52 @@
1
- {
2
- "name": "f-docx-editor",
3
- "version": "0.1.3",
4
- "description": "Vue 3 Word docx preview, editable rich-text regions and docx export component.",
5
- "keywords": [
6
- "vue3",
7
- "docx",
8
- "docxtemplater",
9
- "docx-preview",
10
- "tiptap",
11
- "word"
12
- ],
13
- "license": "MIT",
14
- "main": "./dist/FDocxEditor.common.js",
15
- "unpkg": "./dist/FDocxEditor.umd.min.js",
16
- "jsdelivr": "./dist/FDocxEditor.umd.min.js",
17
- "files": [
18
- "dist"
19
- ],
20
- "scripts": {
21
- "dev": "vue-cli-service serve",
22
- "build": "vue-cli-service build",
23
- "build:lib": "vue-cli-service build --target lib --name FDocxEditor --dest dist src/index.js && node scripts/prepare-package.mjs",
24
- "lint": "vue-cli-service lint",
25
- "prepublishOnly": "npm run build:lib"
26
- },
27
- "peerDependencies": {
28
- "vue": "^3.2.13",
29
- "element-plus": "^2.6.2"
30
- },
31
- "dependencies": {
32
- "@element-plus/icons-vue": "^2.3.1",
33
- "@tiptap/core": "3.23.5",
34
- "@tiptap/extension-color": "3.23.5",
35
- "@tiptap/extension-highlight": "3.23.5",
36
- "@tiptap/extension-placeholder": "3.23.5",
37
- "@tiptap/extension-table": "3.23.5",
38
- "@tiptap/extension-table-cell": "3.23.5",
39
- "@tiptap/extension-table-header": "3.23.5",
40
- "@tiptap/extension-table-row": "3.23.5",
41
- "@tiptap/extension-text-align": "3.23.5",
42
- "@tiptap/extension-text-style": "3.23.5",
43
- "@tiptap/pm": "3.23.5",
44
- "@tiptap/starter-kit": "3.23.5",
45
- "@tiptap/vue-3": "3.23.5",
46
- "docx-preview": "^0.3.7",
47
- "docxtemplater": "^3.68.7",
48
- "docxtemplater-image-module-free": "^1.1.1",
49
- "echarts": "^5.5.0",
50
- "pizzip": "^3.2.0"
51
- },
52
- "devDependencies": {
53
- "@babel/core": "^7.12.16",
54
- "@babel/eslint-parser": "^7.12.16",
55
- "@vue/cli-plugin-babel": "~5.0.0",
56
- "@vue/cli-plugin-eslint": "~5.0.0",
57
- "@vue/cli-service": "~5.0.0",
58
- "core-js": "^3.8.3",
59
- "element-plus": "^2.6.2",
60
- "eslint": "^7.32.0",
61
- "eslint-plugin-vue": "^8.0.3",
62
- "less": "^4.0.0",
63
- "less-loader": "^8.0.0",
64
- "vue": "^3.2.13"
65
- },
66
- "eslintConfig": {
67
- "root": true,
68
- "env": {
69
- "node": true,
70
- "browser": true
71
- },
72
- "extends": [
73
- "plugin:vue/vue3-essential",
74
- "eslint:recommended"
75
- ],
76
- "parserOptions": {
77
- "parser": "@babel/eslint-parser",
78
- "ecmaVersion": 2020,
79
- "sourceType": "module"
80
- },
81
- "globals": {
82
- "defineProps": "readonly",
83
- "defineEmits": "readonly",
84
- "defineExpose": "readonly"
85
- },
86
- "rules": {
87
- "no-unused-vars": "error"
88
- }
89
- },
90
- "browserslist": [
91
- "> 1%",
92
- "last 2 versions",
93
- "not dead",
94
- "not ie 11"
95
- ],
96
- "sideEffects": [
97
- "*.css"
98
- ]
99
- }
1
+ {
2
+ "name": "f-docx-editor",
3
+ "version": "0.1.4",
4
+ "description": "Vue 3 Word docx preview, editable rich-text regions and docx export component.",
5
+ "keywords": [
6
+ "vue3",
7
+ "docx",
8
+ "docxtemplater",
9
+ "docx-preview",
10
+ "tiptap",
11
+ "word"
12
+ ],
13
+ "license": "MIT",
14
+ "main": "./FDocxEditor.common.js",
15
+ "module": "./FDocxEditor.common.js",
16
+ "style": "./FDocxEditor.css",
17
+ "unpkg": "./FDocxEditor.umd.min.js",
18
+ "jsdelivr": "./FDocxEditor.umd.min.js",
19
+ "files": [
20
+ "FDocxEditor.common.js",
21
+ "FDocxEditor.umd.js",
22
+ "FDocxEditor.umd.min.js",
23
+ "FDocxEditor.css",
24
+ "README.md"
25
+ ],
26
+ "peerDependencies": {
27
+ "vue": "^3.2.13",
28
+ "element-plus": "^2.6.2",
29
+ "@element-plus/icons-vue": "^2.3.1",
30
+ "@tiptap/core": "3.23.5",
31
+ "@tiptap/extension-color": "3.23.5",
32
+ "@tiptap/extension-highlight": "3.23.5",
33
+ "@tiptap/extension-placeholder": "3.23.5",
34
+ "@tiptap/extension-table": "3.23.5",
35
+ "@tiptap/extension-table-cell": "3.23.5",
36
+ "@tiptap/extension-table-header": "3.23.5",
37
+ "@tiptap/extension-table-row": "3.23.5",
38
+ "@tiptap/extension-text-align": "3.23.5",
39
+ "@tiptap/extension-text-style": "3.23.5",
40
+ "@tiptap/pm": "3.23.5",
41
+ "@tiptap/starter-kit": "3.23.5",
42
+ "@tiptap/vue-3": "3.23.5",
43
+ "docx-preview": "^0.3.7",
44
+ "docxtemplater": "^3.68.7",
45
+ "docxtemplater-image-module-free": "^1.1.1",
46
+ "echarts": "^5.5.0",
47
+ "pizzip": "^3.2.0"
48
+ },
49
+ "sideEffects": [
50
+ "*.css"
51
+ ]
52
+ }