(self["webpackChunk_object_Object_"]=self["webpackChunk_object_Object_"]||[]).push([[705],{50206:function(e,t,n){"use strict";var r=n(1702);e.exports=r([].slice)},89363:function(e){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},6833:function(e,t,n){"use strict";var r=n(88113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},35268:function(e,t,n){"use strict";var r=n(17854),i=n(84326);e.exports="process"===i(r.process)},22104:function(e,t,n){"use strict";var r=n(34374),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},49974:function(e,t,n){"use strict";var r=n(21470),i=n(19662),o=n(34374),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},21470:function(e,t,n){"use strict";var r=n(84326),i=n(1702);e.exports=function(e){if("Function"===r(e))return i(e)}},60490:function(e,t,n){"use strict";var r=n(35005);e.exports=r("document","documentElement")},67066:function(e,t,n){"use strict";var r=n(19670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},17152:function(e,t,n){"use strict";var r=n(17854),i=n(22104),o=n(60614),a=n(89363),s=n(88113),l=n(50206),c=n(48053),A=r.Function,u=/MSIE .\./.test(s)||a&&function(){var e=r.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}();e.exports=function(e,t){var n=t?2:1;return u?function(r,a){var s=c(arguments.length,1)>n,u=o(r)?r:A(r),d=s?l(arguments,n):[],h=s?function(){i(u,this,d)}:u;return t?e(h,a):e(h)}:e}},20261:function(e,t,n){"use strict";var r,i,o,a,s=n(17854),l=n(22104),c=n(49974),A=n(60614),u=n(92597),d=n(47293),h=n(60490),p=n(50206),f=n(80317),g=n(48053),m=n(6833),v=n(35268),b=s.setImmediate,y=s.clearImmediate,w=s.process,x=s.Dispatch,k=s.Function,C=s.MessageChannel,B=s.String,_=0,E={},S="onreadystatechange";d((function(){r=s.location}));var F=function(e){if(u(E,e)){var t=E[e];delete E[e],t()}},T=function(e){return function(){F(e)}},M=function(e){F(e.data)},I=function(e){s.postMessage(B(e),r.protocol+"//"+r.host)};b&&y||(b=function(e){g(arguments.length,1);var t=A(e)?e:k(e),n=p(arguments,1);return E[++_]=function(){l(t,void 0,n)},i(_),_},y=function(e){delete E[e]},v?i=function(e){w.nextTick(T(e))}:x&&x.now?i=function(e){x.now(T(e))}:C&&!m?(o=new C,a=o.port2,o.port1.onmessage=M,i=c(a.postMessage,a)):s.addEventListener&&A(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(I)?(i=I,s.addEventListener("message",M,!1)):i=S in f("script")?function(e){h.appendChild(f("script"))[S]=function(){h.removeChild(this),F(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:y}},92087:function(e,t,n){"use strict";var r=n(17854),i=n(19781),o=n(47045),a=n(67066),s=n(47293),l=r.RegExp,c=l.prototype,A=i&&s((function(){var e=!0;try{l(".","d")}catch(A){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);var s=Object.getOwnPropertyDescriptor(c,"flags").get.call(t);return s!==r||n!==r}));A&&o(c,"flags",{configurable:!0,get:a})},11091:function(e,t,n){"use strict";var r=n(82109),i=n(17854),o=n(20261).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},84633:function(e,t,n){"use strict";n(11091),n(12986)},12986:function(e,t,n){"use strict";var r=n(82109),i=n(17854),o=n(20261).set,a=n(17152),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},32515:function(){},657:function(e,t,n){"use strict";n.d(t,{_u:function(){return Wp},lA:function(){return Vp},GJ:function(){return Gp},Gr:function(){return Kp}});var r=n(13087),i=n(62833),o=n(93806),a=n(24343),s=n(43629),l=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"execute",value:function(){var e=this.editor;(0,s.iC)(e)&&(e.readonly||e.history.redo())}},{key:"queryState",value:function(){var e=this.editor;if((0,s.iC)(e)&&!e.readonly)return e.history.hasRedo()}},{key:"hotkey",value:function(){return this.options.hotkey||["mod+y","shift+mod+y"]}}],[{key:"pluginName",get:function(){return"redo"}}]),n}(s.Sy),c=l,A=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"execute",value:function(){var e=this.editor;(0,s.iC)(e)&&(e.readonly||e.history.undo())}},{key:"queryState",value:function(){var e=this.editor;if((0,s.iC)(e)&&!e.readonly)return e.history.hasUndo()}},{key:"hotkey",value:function(){return this.options.hotkey||["mod+z","shift+mod+z"]}}],[{key:"pluginName",get:function(){return"undo"}}]),n}(s.Sy),u=A,d=n(26334),h=n(62040),p="markdown-it",f=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a")),i=t["background"];return delete t["background"],t["background-color"]=i,r.css(t),Object.keys(n).forEach((function(e){r.attributes(e,n[e])})),r}}]}},{key:"isTrigger",value:function(e,t){return void 0===t||e!==t}},{key:"hotkey",value:function(){return this.options.hotkey||[]}}],[{key:"pluginName",get:function(){return"backcolor"}}]),n}(s.Rw),C=k,B=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:this.defaultSize;return e!==t}},{key:"hotkey",value:function(){return this.options.hotkey||[]}},{key:"convertToPX",value:function(e){var t=/([\d\.]+)(pt|px)$/i.exec(e);return t&&"pt"===t[2]?String(Math.round(96*parseInt(t[1],10)/72))+"px":e}},{key:"destroy",value:function(){var e=this.editor;(0,s.iC)(e)&&e.off(T,this.pasteEach)}}],[{key:"pluginName",get:function(){return"fontsize"}}]),n}(s.Rw),N=I,U="markdown-it",L=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"));return n["text-decoration"]=n["text-decoration"].split(/\s+/).filter((function(e){return"underline"!==e})).join(" ").trim(),i.css(n),i.attributes(r),i}}]}}],[{key:"pluginName",get:function(){return"underline"}}]),n}(s.Rw),H=D;n(57658);function O(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var z=".am-engine .card-hr,.am-engine-view .card-hr {\r\n border: 1px solid transparent;\r\n padding: 18px 0;\r\n border-radius: 2px 2px;\r\n}\r\n\r\n.am-engine .card-hr hr,.am-engine-view .card-hr hr {\r\n box-sizing: border-box;\r\n position: absolute;\r\n top: 50%;\r\n left: 0;\r\n margin-top: -1px;\r\n width: 100%;\r\n height: 2px;\r\n background-color: #e8e8e8;\r\n padding: 0;\r\n border: 1px solid transparent;\r\n}\r\n\r\n.am-engine .card-hr:hover , .am-engine .card-hr.hr-activated {\r\n background-color: #f4f4f4;\r\n}";O(z);var Z=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"toolbar",value:function(){var e,t=this.editor,n=function(){return!(0,s.iC)(t)||t.readonly?[]:[{key:"dnd",type:"dnd"},{key:"copy",type:"copy"},{key:"delete",type:"delete"}]},r=null===(e=t.plugin.findPlugin("hr"))||void 0===e?void 0:e.options;return(null===r||void 0===r?void 0:r.cardToolbars)?r.cardToolbars(n(),this.editor):n()}},{key:"onActivate",value:function(e){(0,d.Z)((0,h.Z)(n.prototype),"onActivate",this).call(this,e);var t="hr-activated",r=this.getCenter();e?r.addClass(t):r.removeClass(t)}},{key:"onSelectByOther",value:function(e,t){(0,d.Z)((0,h.Z)(n.prototype),"onSelectByOther",this).call(this,e,t),this.getCenter().find("hr").css("background-color",e?t.rgb:"")}},{key:"onActivateByOther",value:function(e,t){this.onSelectByOther(e,t)}},{key:"render",value:function(){return this.getCenter().addClass("card-hr"),"
"}}],[{key:"cardName",get:function(){return"hr"}},{key:"cardType",get:function(){return s.eT.BLOCK}},{key:"autoActivate",get:function(){return!1}},{key:"selectStyleType",get:function(){return s.dw.BACKGROUND}}]),n}(s.Zb),R="parse:html",P="paste:schema",q="paste:each",K="markdown-it",W=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a");if(o.css({"background-color":"#e8e8e8",border:"1px solid transparent",margin:"18px 0"}),n){var a=e.editor.card.find(i),l=(null===a||void 0===a?void 0:a.getValue())||(0,s.RW)(i.attributes(s.TM));o=n(o,l)}i.replaceWith(o),r.push(o)})),r},e}return(0,i.Z)(n,[{key:"init",value:function(){var e=this.editor;e.on(R,this.parseHtml),e.on(P,this.pasteSchema),e.on(q,this.pasteHtml),(0,s.iC)(e)&&e.on(K,this.markdownIt)}},{key:"execute",value:function(){var e=this.editor;if((0,s.iC)(e)){var t=e.card;t.insert(Z.cardName)}}},{key:"hotkey",value:function(){return this.options.hotkey||"mod+shift+e"}},{key:"destroy",value:function(){var e=this.editor;e.off(R,this.parseHtml),e.off(P,this.pasteSchema),e.off(q,this.pasteHtml),(0,s.iC)(e)&&e.off(K,this.markdownIt)}}],[{key:"pluginName",get:function(){return"hr"}}]),n}(s.Sy),j=W,V=n(54621),G=["[ ] ","[x] ","[X] "];function $(e,t){t||(t={checkStrings:G}),t.checkStrings=t.checkStrings||G,e.core.ruler.after("inline","task-list",(function(e){for(var n=e.tokens,r=2;r