@ibiz-template/mob-vue3-components 0.7.41-alpha.13 → 0.7.41-alpha.16
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.
- package/dist/{index-OsiEgFnw.js → index-5DjmQP8W.js} +2 -2
- package/dist/index-5DjmQP8W.js.map +1 -0
- package/dist/index-fAu1z4L0.js +2 -0
- package/dist/index-fAu1z4L0.js.map +1 -0
- package/dist/index-yjjy8EQH.js +76 -0
- package/dist/index-yjjy8EQH.js.map +1 -0
- package/dist/index.min.css +4 -4
- package/dist/index.system.min.js +1 -1
- package/dist/{quill-editor-VqApoQJq.js → quill-editor-6a0LLTGQ.js} +2 -2
- package/dist/{quill-editor-VqApoQJq.js.map → quill-editor-6a0LLTGQ.js.map} +1 -1
- package/dist/{quill-editor-preview-G0MpMJzC.js → quill-editor-preview-PFiM-IPE.js} +2 -2
- package/dist/{quill-editor-preview-G0MpMJzC.js.map → quill-editor-preview-PFiM-IPE.js.map} +1 -1
- package/dist/{quill-wfN-3C_3.js → quill-n54HJUg2.js} +2 -2
- package/dist/{quill-wfN-3C_3.js.map → quill-n54HJUg2.js.map} +1 -1
- package/dist/tree-4CqtwsXL.js +2 -0
- package/dist/tree-4CqtwsXL.js.map +1 -0
- package/es/common/action-group/action-group.css +1 -0
- package/es/common/action-group/action-group.d.ts +55 -0
- package/es/common/action-group/action-group.mjs +174 -0
- package/es/common/action-toolbar/action-toolbar.d.ts +1 -0
- package/es/common/action-toolbar/action-toolbar.mjs +20 -8
- package/es/common/button-list/button-list.css +1 -1
- package/es/common/button-list/button-list.d.ts +3 -2
- package/es/common/button-list/button-list.mjs +83 -63
- package/es/common/index.mjs +2 -0
- package/es/common/rawitem/rawitem.mjs +2 -2
- package/es/control/list/md-ctrl/md-ctrl.mjs +13 -15
- package/es/control/tab-exp-panel/index.d.ts +1 -0
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -0
- package/es/control/tab-exp-panel/tab-exp-panel.d.ts +2 -0
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +28 -1
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +15 -0
- package/es/control/tree/tree.mjs +14 -2
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +5 -7
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +18 -0
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +2 -1
- package/es/editor/rate/ibiz-rate/ibiz-rate.mjs +3 -0
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +2 -2
- package/es/editor/span/span/span.d.ts +5 -3
- package/es/editor/span/span/span.mjs +5 -5
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +4 -3
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +9 -0
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +2 -1
- package/es/editor/text-box/input/input.d.ts +2 -0
- package/es/editor/upload/upload-editor.controller.d.ts +23 -2
- package/es/editor/upload/upload-editor.controller.mjs +46 -15
- package/es/editor/upload/use/use-van-upload.mjs +35 -3
- package/es/locale/en/index.d.ts +2 -0
- package/es/locale/en/index.mjs +2 -1
- package/es/locale/zh-CN/index.d.ts +2 -0
- package/es/locale/zh-CN/index.mjs +2 -1
- package/es/panel-component/panel-button-list/panel-button-list.controller.d.ts +1 -1
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +19 -18
- package/es/util/store/view-stack/view-stack.mjs +11 -1
- package/lib/common/action-group/action-group.cjs +176 -0
- package/lib/common/action-group/action-group.css +1 -0
- package/lib/common/action-toolbar/action-toolbar.cjs +20 -8
- package/lib/common/button-list/button-list.cjs +82 -62
- package/lib/common/button-list/button-list.css +1 -1
- package/lib/common/index.cjs +2 -0
- package/lib/common/rawitem/rawitem.cjs +2 -2
- package/lib/control/list/md-ctrl/md-ctrl.cjs +12 -14
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +27 -0
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -0
- package/lib/control/tree/tree.cjs +14 -2
- package/lib/control/tree/tree.css +1 -1
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +18 -0
- package/lib/editor/rate/ibiz-rate/ibiz-rate.cjs +3 -0
- package/lib/editor/span/span/span.cjs +5 -5
- package/lib/editor/stepper/ibiz-stepper/ibiz-stepper.cjs +9 -0
- package/lib/editor/upload/upload-editor.controller.cjs +46 -15
- package/lib/editor/upload/use/use-van-upload.cjs +35 -3
- package/lib/locale/en/index.cjs +2 -1
- package/lib/locale/zh-CN/index.cjs +2 -1
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +18 -17
- package/lib/util/store/view-stack/view-stack.cjs +11 -1
- package/package.json +6 -6
- package/dist/index-JSf84k9b.js +0 -2
- package/dist/index-JSf84k9b.js.map +0 -1
- package/dist/index-OsiEgFnw.js.map +0 -1
- package/dist/index-TTGYeV0q.js +0 -76
- package/dist/index-TTGYeV0q.js.map +0 -1
- package/dist/tree-nburezSg.js +0 -2
- package/dist/tree-nburezSg.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["lodash-es","./index-TTGYeV0q.js"],function(ji){"use strict";var ts,$t,Lt,qt,Gs;return{setters:[function(T){ts=T.isEqual,$t=T.cloneDeep,Lt=T.merge},function(T){qt=T.c,Gs=T.g}],execute:function(){var T=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(T||{});class Et{constructor(t,e,s={}){this.attrName=t,this.keyName=e;const n=T.TYPE&T.ATTRIBUTE;this.scope=s.scope!=null?s.scope&T.LEVEL|n:T.ATTRIBUTE,s.whitelist!=null&&(this.whitelist=s.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class re extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const qr=class Tr{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let s=null;try{s=t.parentNode}catch{return null}return this.find(s,e)}return null}create(t,e,s){const n=this.query(e);if(n==null)throw new re(`Unable to create ${e} blot`);const i=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(s),a=new i(t,o,s);return Tr.blots.set(a.domNode,a),a}find(t,e=!1){return Tr.find(t,e)}query(t,e=T.ANY){let s;return typeof t=="string"?s=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?s=this.types.text:typeof t=="number"?t&T.LEVEL&T.BLOCK?s=this.types.block:t&T.LEVEL&T.INLINE&&(s=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(n=>(s=this.classes[n],!!s)),s=s||this.tags[t.tagName]),s==null?null:"scope"in s&&e&T.LEVEL&s.scope&&e&T.TYPE&s.scope?s:null}register(...t){return t.map(e=>{const s="blotName"in e,n="attrName"in e;if(!s&&!n)throw new re("Invalid definition");if(s&&e.blotName==="abstract")throw new re("Cannot register abstract class");const i=s?e.blotName:n?e.attrName:void 0;return this.types[i]=e,n?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):s&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(o=>o.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(o=>{(this.tags[o]==null||e.className==null)&&(this.tags[o]=e)}))),e})}};qr.blots=new WeakMap;let ie=qr;function Sr(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class Hi extends Et{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){Sr(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(Sr(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const ct=Hi;function Zs(r){const t=r.split("-"),e=t.slice(1).map(s=>s[0].toUpperCase()+s.slice(1)).join("");return t[0]+e}class Fi extends Et{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[Zs(this.keyName)]=e,!0):!1}remove(t){t.style[Zs(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Zs(this.keyName)];return this.canAdd(t,e)?e:""}}const Mt=Fi;class $i{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=ie.find(this.domNode);if(t==null)return;const e=Et.keys(this.domNode),s=ct.keys(this.domNode),n=Mt.keys(this.domNode);e.concat(s).concat(n).forEach(i=>{const o=t.scroll.query(i,T.ATTRIBUTE);o instanceof Et&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(e=>{const s=this.attributes[e].value(this.domNode);t.format(e,s)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const es=$i,kr=class{constructor(t,e){this.scroll=t,this.domNode=e,ie.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new re("Blot definition missing tagName");let e,s;return Array.isArray(this.tagName)?(typeof t=="string"?(s=t.toUpperCase(),parseInt(s,10).toString()===s&&(s=parseInt(s,10))):typeof t=="number"&&(s=t),typeof s=="number"?e=document.createElement(this.tagName[s-1]):s&&this.tagName.indexOf(s)>-1?e=document.createElement(s):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),ie.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,s,n){const i=this.isolate(t,e);if(this.scroll.query(s,T.BLOT)!=null&&n)i.wrap(s,n);else if(this.scroll.query(s,T.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(s,n)}}insertAt(t,e,s){const n=s==null?this.scroll.create("text",e):this.scroll.create(e,s),i=this.split(t);this.parent.insertBefore(n,i||void 0)}isolate(t,e){const s=this.split(t);if(s==null)throw new Error("Attempt to isolate at end");return s.split(e),s}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(s,this.next||void 0),this.remove()),s}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(s,this.next||void 0),typeof s.appendChild!="function")throw new re(`Cannot wrap ${t}`);return s.appendChild(this),s}};kr.blotName="abstract";let Cr=kr;const Or=class extends Cr{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let s=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(s+=1),[this.parent.domNode,s]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Or.scope=T.INLINE_BLOT;const K=Or;class zi{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let s=e();for(;s&&t>0;)t-=1,s=e();return s}contains(t){const e=this.iterator();let s=e();for(;s;){if(s===t)return!0;s=e()}return!1}indexOf(t){const e=this.iterator();let s=e(),n=0;for(;s;){if(s===t)return n;n+=1,s=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,s=this.head;for(;s!=null;){if(s===t)return e;e+=s.length(),s=s.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const s=this.iterator();let n=s();for(;n;){const i=n.length();if(t<i||e&&t===i&&(n.next==null||n.next.length()!==0))return[n,t];t-=i,n=s()}return[null,0]}forEach(t){const e=this.iterator();let s=e();for(;s;)t(s),s=e()}forEachAt(t,e,s){if(e<=0)return;const[n,i]=this.find(t);let o=t-i;const a=this.iterator(n);let u=a();for(;u&&o<t+e;){const h=u.length();t>o?s(u,t-o,Math.min(e,o+h-t)):s(u,0,Math.min(h,t+e-o)),o+=h,u=a()}}map(t){return this.reduce((e,s)=>(e.push(t(s)),e),[])}reduce(t,e){const s=this.iterator();let n=s();for(;n;)e=t(e,n),n=s();return e}}function Ir(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const s=t.create(T.INLINE);return Array.from(r.childNodes).forEach(n=>{s.domNode.appendChild(n)}),r.parentNode&&r.parentNode.replaceChild(s.domNode,r),s.attach(),s}}const _r=class Ft extends Cr{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,Ft.uiClass&&this.uiNode.classList.add(Ft.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new zi,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=Ir(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof re)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(s,n,i)=>{s.deleteAt(n,i)})}descendant(t,e=0){const[s,n]=this.children.find(e);return t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t?[s,n]:s instanceof Ft?s.descendant(t,n):[null,-1]}descendants(t,e=0,s=Number.MAX_VALUE){let n=[],i=s;return this.children.forEachAt(e,s,(o,a,u)=>{(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&n.push(o),o instanceof Ft&&(n=n.concat(o.descendants(t,a,i))),i-=u}),n}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(s=>e instanceof s)||(e.statics.scope===T.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof Ft?e.unwrap():e.remove())})}formatAt(t,e,s,n){this.children.forEachAt(t,e,(i,o,a)=>{i.formatAt(o,a,s,n)})}insertAt(t,e,s){const[n,i]=this.children.find(t);if(n)n.insertAt(i,e,s);else{const o=s==null?this.scroll.create("text",e):this.scroll.create(e,s);this.appendChild(o)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let s=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(s=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==s)&&this.domNode.insertBefore(t.domNode,s),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(s=>{t.insertBefore(s,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[s,n]=this.children.find(t,e),i=[[this,t]];return s instanceof Ft?i.concat(s.path(n,e)):(s!=null&&i.push([s,n]),i)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return s instanceof Ft&&this.moveChildren(s),super.replaceWith(s)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.clone();return this.parent&&this.parent.insertBefore(s,this.next||void 0),this.children.forEachAt(t,this.length(),(n,i,o)=>{const a=n.split(i,e);a!=null&&s.appendChild(a)}),s}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const s=[],n=[];t.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(s.push(...i.addedNodes),n.push(...i.removedNodes))}),n.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(i);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),s.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,o)=>i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let o=null;i.nextSibling!=null&&(o=this.scroll.find(i.nextSibling));const a=Ir(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};_r.uiClass="";const ut=_r;function Vi(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}const le=class we extends ut{static create(t){return super.create(t)}static formats(t,e){const s=e.query(we.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new es(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(s=>{s instanceof we||(s=s.wrap(we.blotName,!0)),this.attributes.copy(s)}),this.unwrap();else{const s=this.scroll.query(t,T.INLINE);if(s==null)return;s instanceof Et?this.attributes.attribute(s,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,n){this.formats()[s]!=null||this.scroll.query(s,T.ATTRIBUTE)?this.isolate(t,e).format(s,n):super.formatAt(t,e,s,n)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const s=this.next;s instanceof we&&s.prev===this&&Vi(e,s.formats())&&(s.moveChildren(this),s.remove())}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}wrap(t,e){const s=super.wrap(t,e);return s instanceof we&&this.attributes.move(s),s}};le.allowedChildren=[le,K],le.blotName="inline",le.scope=T.INLINE_BLOT,le.tagName="SPAN";const Ws=le,oe=class Lr extends ut{static create(t){return super.create(t)}static formats(t,e){const s=e.query(Lr.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new es(this.domNode)}format(t,e){const s=this.scroll.query(t,T.BLOCK);s!=null&&(s instanceof Et?this.attributes.attribute(s,e):t===this.statics.blotName&&!e?this.replaceWith(Lr.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,n){this.scroll.query(s,T.BLOCK)!=null?this.format(s,n):super.formatAt(t,e,s,n)}insertAt(t,e,s){if(s==null||this.scroll.query(e,T.INLINE)!=null)super.insertAt(t,e,s);else{const n=this.split(t);if(n!=null){const i=this.scroll.create(e,s);n.parent.insertBefore(i,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}};oe.blotName="block",oe.scope=T.BLOCK_BLOT,oe.tagName="P",oe.allowedChildren=[Ws,oe,K];const xe=oe,Xs=class extends ut{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,s,n){super.formatAt(t,e,s,n),this.enforceAllowedChildren()}insertAt(t,e,s){super.insertAt(t,e,s),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Xs.blotName="container",Xs.scope=T.BLOCK_BLOT;const ss=Xs;class Ki extends K{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,s,n){t===0&&e===this.length()?this.format(s,n):super.formatAt(t,e,s,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const st=Ki,Gi={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Zi=100,ae=class extends ut{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(s=>{this.update(s)}),this.observer.observe(this.domNode,Gi),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const s=this.registry.find(t,e);return s?s.scroll===this?s:e?this.find(s.scroll.domNode.parentNode,!0):null:null}query(t,e=T.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(s=>{s.remove()}):super.deleteAt(t,e)}formatAt(t,e,s,n){this.update(),super.formatAt(t,e,s,n)}insertAt(t,e,s){this.update(),super.insertAt(t,e,s)}optimize(t=[],e={}){super.optimize(e);const s=e.mutationsMap||new WeakMap;let n=Array.from(this.observer.takeRecords());for(;n.length>0;)t.push(n.pop());const i=(u,h=!0)=>{u==null||u===this||u.domNode.parentNode!=null&&(s.has(u.domNode)||s.set(u.domNode,[]),h&&i(u.parent))},o=u=>{s.has(u.domNode)&&(u instanceof ut&&u.children.forEach(o),s.delete(u.domNode),u.optimize(e))};let a=t;for(let u=0;a.length>0;u+=1){if(u>=Zi)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(h=>{const g=this.find(h.target,!0);g!=null&&(g.domNode===h.target&&(h.type==="childList"?(i(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(b=>{const d=this.find(b,!1);i(d,!1),d instanceof ut&&d.children.forEach(p=>{i(p,!1)})})):h.type==="attributes"&&i(g.prev)),i(g))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),n=a.slice();n.length>0;)t.push(n.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const s=new WeakMap;t.map(n=>{const i=this.find(n.target,!0);return i==null?null:s.has(i.domNode)?(s.get(i.domNode).push(n),null):(s.set(i.domNode,[n]),i)}).forEach(n=>{n!=null&&n!==this&&s.has(n.domNode)&&n.update(s.get(n.domNode)||[],e)}),e.mutationsMap=s,s.has(this.domNode)&&super.update(s.get(this.domNode),e),this.optimize(t,e)}};ae.blotName="scroll",ae.defaultChild=xe,ae.allowedChildren=[xe,ss],ae.scope=T.BLOCK_BLOT,ae.tagName="DIV";const Ys=ae,Qs=class Pi extends K{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,s){s==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,s)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Pi&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(s,this.next||void 0),this.text=this.statics.value(this.domNode),s}update(t,e){t.some(s=>s.type==="characterData"&&s.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Qs.blotName="text",Qs.scope=T.INLINE_BLOT;const ns=Qs;var Wi=Object.freeze({__proto__:null,Attributor:Et,AttributorStore:es,BlockBlot:xe,ClassAttributor:ct,ContainerBlot:ss,EmbedBlot:st,InlineBlot:Ws,LeafBlot:K,ParentBlot:ut,Registry:ie,Scope:T,ScrollBlot:Ys,StyleAttributor:Mt,TextBlot:ns}),Js={exports:{}},nt=-1,X=1,H=0;function Te(r,t,e,s,n){if(r===t)return r?[[H,r]]:[];if(e!=null){var i=rl(r,t,e);if(i)return i}var o=tn(r,t),a=r.substring(0,o);r=r.substring(o),t=t.substring(o),o=rs(r,t);var u=r.substring(r.length-o);r=r.substring(0,r.length-o),t=t.substring(0,t.length-o);var h=Xi(r,t);return a&&h.unshift([H,a]),u&&h.push([H,u]),en(h,n),s&&Ji(h),h}function Xi(r,t){var e;if(!r)return[[X,t]];if(!t)return[[nt,r]];var s=r.length>t.length?r:t,n=r.length>t.length?t:r,i=s.indexOf(n);if(i!==-1)return e=[[X,s.substring(0,i)],[H,n],[X,s.substring(i+n.length)]],r.length>t.length&&(e[0][0]=e[2][0]=nt),e;if(n.length===1)return[[nt,r],[X,t]];var o=Qi(r,t);if(o){var a=o[0],u=o[1],h=o[2],g=o[3],b=o[4],d=Te(a,h),p=Te(u,g);return d.concat([[H,b]],p)}return Yi(r,t)}function Yi(r,t){for(var e=r.length,s=t.length,n=Math.ceil((e+s)/2),i=n,o=2*n,a=new Array(o),u=new Array(o),h=0;h<o;h++)a[h]=-1,u[h]=-1;a[i+1]=0,u[i+1]=0;for(var g=e-s,b=g%2!==0,d=0,p=0,m=0,E=0,N=0;N<n;N++){for(var A=-N+d;A<=N-p;A+=2){var w=i+A,x;A===-N||A!==N&&a[w-1]<a[w+1]?x=a[w+1]:x=a[w-1]+1;for(var k=x-A;x<e&&k<s&&r.charAt(x)===t.charAt(k);)x++,k++;if(a[w]=x,x>e)p+=2;else if(k>s)d+=2;else if(b){var L=i+g-A;if(L>=0&&L<o&&u[L]!==-1){var O=e-u[L];if(x>=O)return Rr(r,t,x,k)}}}for(var R=-N+m;R<=N-E;R+=2){var L=i+R,O;R===-N||R!==N&&u[L-1]<u[L+1]?O=u[L+1]:O=u[L-1]+1;for(var P=O-R;O<e&&P<s&&r.charAt(e-O-1)===t.charAt(s-P-1);)O++,P++;if(u[L]=O,O>e)E+=2;else if(P>s)m+=2;else if(!b){var w=i+g-R;if(w>=0&&w<o&&a[w]!==-1){var x=a[w],k=i+x-w;if(O=e-O,x>=O)return Rr(r,t,x,k)}}}}return[[nt,r],[X,t]]}function Rr(r,t,e,s){var n=r.substring(0,e),i=t.substring(0,s),o=r.substring(e),a=t.substring(s),u=Te(n,i),h=Te(o,a);return u.concat(h)}function tn(r,t){if(!r||!t||r.charAt(0)!==t.charAt(0))return 0;for(var e=0,s=Math.min(r.length,t.length),n=s,i=0;e<n;)r.substring(i,n)==t.substring(i,n)?(e=n,i=e):s=n,n=Math.floor((s-e)/2+e);return Pr(r.charCodeAt(n-1))&&n--,n}function Br(r,t){var e=r.length,s=t.length;if(e==0||s==0)return 0;e>s?r=r.substring(e-s):e<s&&(t=t.substring(0,e));var n=Math.min(e,s);if(r==t)return n;for(var i=0,o=1;;){var a=r.substring(n-o),u=t.indexOf(a);if(u==-1)return i;o+=u,(u==0||r.substring(n-o)==t.substring(0,o))&&(i=o,o++)}}function rs(r,t){if(!r||!t||r.slice(-1)!==t.slice(-1))return 0;for(var e=0,s=Math.min(r.length,t.length),n=s,i=0;e<n;)r.substring(r.length-n,r.length-i)==t.substring(t.length-n,t.length-i)?(e=n,i=e):s=n,n=Math.floor((s-e)/2+e);return jr(r.charCodeAt(r.length-n))&&n--,n}function Qi(r,t){var e=r.length>t.length?r:t,s=r.length>t.length?t:r;if(e.length<4||s.length*2<e.length)return null;function n(p,m,E){for(var N=p.substring(E,E+Math.floor(p.length/4)),A=-1,w="",x,k,L,O;(A=m.indexOf(N,A+1))!==-1;){var R=tn(p.substring(E),m.substring(A)),P=rs(p.substring(0,E),m.substring(0,A));w.length<P+R&&(w=m.substring(A-P,A)+m.substring(A,A+R),x=p.substring(0,E-P),k=p.substring(E+R),L=m.substring(0,A-P),O=m.substring(A+R))}return w.length*2>=p.length?[x,k,L,O,w]:null}var i=n(e,s,Math.ceil(e.length/4)),o=n(e,s,Math.ceil(e.length/2)),a;if(!i&&!o)return null;o?i?a=i[4].length>o[4].length?i:o:a=o:a=i;var u,h,g,b;r.length>t.length?(u=a[0],h=a[1],g=a[2],b=a[3]):(g=a[0],b=a[1],u=a[2],h=a[3]);var d=a[4];return[u,h,g,b,d]}function Ji(r){for(var t=!1,e=[],s=0,n=null,i=0,o=0,a=0,u=0,h=0;i<r.length;)r[i][0]==H?(e[s++]=i,o=u,a=h,u=0,h=0,n=r[i][1]):(r[i][0]==X?u+=r[i][1].length:h+=r[i][1].length,n&&n.length<=Math.max(o,a)&&n.length<=Math.max(u,h)&&(r.splice(e[s-1],0,[nt,n]),r[e[s-1]+1][0]=X,s--,s--,i=s>0?e[s-1]:-1,o=0,a=0,u=0,h=0,n=null,t=!0)),i++;for(t&&en(r),sl(r),i=1;i<r.length;){if(r[i-1][0]==nt&&r[i][0]==X){var g=r[i-1][1],b=r[i][1],d=Br(g,b),p=Br(b,g);d>=p?(d>=g.length/2||d>=b.length/2)&&(r.splice(i,0,[H,b.substring(0,d)]),r[i-1][1]=g.substring(0,g.length-d),r[i+1][1]=b.substring(d),i++):(p>=g.length/2||p>=b.length/2)&&(r.splice(i,0,[H,g.substring(0,p)]),r[i-1][0]=X,r[i-1][1]=b.substring(0,b.length-p),r[i+1][0]=nt,r[i+1][1]=g.substring(p),i++),i++}i++}}var Mr=/[^a-zA-Z0-9]/,Dr=/\s/,Ur=/[\r\n]/,tl=/\n\r?\n$/,el=/^\r?\n\r?\n/;function sl(r){function t(p,m){if(!p||!m)return 6;var E=p.charAt(p.length-1),N=m.charAt(0),A=E.match(Mr),w=N.match(Mr),x=A&&E.match(Dr),k=w&&N.match(Dr),L=x&&E.match(Ur),O=k&&N.match(Ur),R=L&&p.match(tl),P=O&&m.match(el);return R||P?5:L||O?4:A&&!x&&k?3:x||k?2:A||w?1:0}for(var e=1;e<r.length-1;){if(r[e-1][0]==H&&r[e+1][0]==H){var s=r[e-1][1],n=r[e][1],i=r[e+1][1],o=rs(s,n);if(o){var a=n.substring(n.length-o);s=s.substring(0,s.length-o),n=a+n.substring(0,n.length-o),i=a+i}for(var u=s,h=n,g=i,b=t(s,n)+t(n,i);n.charAt(0)===i.charAt(0);){s+=n.charAt(0),n=n.substring(1)+i.charAt(0),i=i.substring(1);var d=t(s,n)+t(n,i);d>=b&&(b=d,u=s,h=n,g=i)}r[e-1][1]!=u&&(u?r[e-1][1]=u:(r.splice(e-1,1),e--),r[e][1]=h,g?r[e+1][1]=g:(r.splice(e+1,1),e--))}e++}}function en(r,t){r.push([H,""]);for(var e=0,s=0,n=0,i="",o="",a;e<r.length;){if(e<r.length-1&&!r[e][1]){r.splice(e,1);continue}switch(r[e][0]){case X:n++,o+=r[e][1],e++;break;case nt:s++,i+=r[e][1],e++;break;case H:var u=e-n-s-1;if(t){if(u>=0&&Fr(r[u][1])){var h=r[u][1].slice(-1);if(r[u][1]=r[u][1].slice(0,-1),i=h+i,o=h+o,!r[u][1]){r.splice(u,1),e--;var g=u-1;r[g]&&r[g][0]===X&&(n++,o=r[g][1]+o,g--),r[g]&&r[g][0]===nt&&(s++,i=r[g][1]+i,g--),u=g}}if(Hr(r[e][1])){var h=r[e][1].charAt(0);r[e][1]=r[e][1].slice(1),i+=h,o+=h}}if(e<r.length-1&&!r[e][1]){r.splice(e,1);break}if(i.length>0||o.length>0){i.length>0&&o.length>0&&(a=tn(o,i),a!==0&&(u>=0?r[u][1]+=o.substring(0,a):(r.splice(0,0,[H,o.substring(0,a)]),e++),o=o.substring(a),i=i.substring(a)),a=rs(o,i),a!==0&&(r[e][1]=o.substring(o.length-a)+r[e][1],o=o.substring(0,o.length-a),i=i.substring(0,i.length-a)));var b=n+s;i.length===0&&o.length===0?(r.splice(e-b,b),e=e-b):i.length===0?(r.splice(e-b,b,[X,o]),e=e-b+1):o.length===0?(r.splice(e-b,b,[nt,i]),e=e-b+1):(r.splice(e-b,b,[nt,i],[X,o]),e=e-b+2)}e!==0&&r[e-1][0]===H?(r[e-1][1]+=r[e][1],r.splice(e,1)):e++,n=0,s=0,i="",o="";break}}r[r.length-1][1]===""&&r.pop();var d=!1;for(e=1;e<r.length-1;)r[e-1][0]===H&&r[e+1][0]===H&&(r[e][1].substring(r[e][1].length-r[e-1][1].length)===r[e-1][1]?(r[e][1]=r[e-1][1]+r[e][1].substring(0,r[e][1].length-r[e-1][1].length),r[e+1][1]=r[e-1][1]+r[e+1][1],r.splice(e-1,1),d=!0):r[e][1].substring(0,r[e+1][1].length)==r[e+1][1]&&(r[e-1][1]+=r[e+1][1],r[e][1]=r[e][1].substring(r[e+1][1].length)+r[e+1][1],r.splice(e+1,1),d=!0)),e++;d&&en(r,t)}function Pr(r){return r>=55296&&r<=56319}function jr(r){return r>=56320&&r<=57343}function Hr(r){return jr(r.charCodeAt(0))}function Fr(r){return Pr(r.charCodeAt(r.length-1))}function nl(r){for(var t=[],e=0;e<r.length;e++)r[e][1].length>0&&t.push(r[e]);return t}function sn(r,t,e,s){return Fr(r)||Hr(s)?null:nl([[H,r],[nt,t],[X,e],[H,s]])}function rl(r,t,e){var s=typeof e=="number"?{index:e,length:0}:e.oldRange,n=typeof e=="number"?null:e.newRange,i=r.length,o=t.length;if(s.length===0&&(n===null||n.length===0)){var a=s.index,u=r.slice(0,a),h=r.slice(a),g=n?n.index:null;t:{var b=a+o-i;if(g!==null&&g!==b||b<0||b>o)break t;var d=t.slice(0,b),p=t.slice(b);if(p!==h)break t;var m=Math.min(a,b),E=u.slice(0,m),N=d.slice(0,m);if(E!==N)break t;var A=u.slice(m),w=d.slice(m);return sn(E,A,w,h)}t:{if(g!==null&&g!==a)break t;var x=a,d=t.slice(0,x),p=t.slice(x);if(d!==u)break t;var k=Math.min(i-x,o-x),L=h.slice(h.length-k),O=p.slice(p.length-k);if(L!==O)break t;var A=h.slice(0,h.length-k),w=p.slice(0,p.length-k);return sn(u,A,w,L)}}if(s.length>0&&n&&n.length===0)t:{var E=r.slice(0,s.index),L=r.slice(s.index+s.length),m=E.length,k=L.length;if(o<m+k)break t;var N=t.slice(0,m),O=t.slice(o-k);if(E!==N||L!==O)break t;var A=r.slice(m,i-k),w=t.slice(m,o-k);return sn(E,A,w,L)}return null}function is(r,t,e,s){return Te(r,t,e,s,!0)}is.INSERT=X,is.DELETE=nt,is.EQUAL=H;var il=is,ls={exports:{}};ls.exports,function(r,t){var e=200,s="__lodash_hash_undefined__",n=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",u="[object Date]",h="[object Error]",g="[object Function]",b="[object GeneratorFunction]",d="[object Map]",p="[object Number]",m="[object Object]",E="[object Promise]",N="[object RegExp]",A="[object Set]",w="[object String]",x="[object Symbol]",k="[object WeakMap]",L="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",P="[object Float64Array]",Ot="[object Int8Array]",Pt="[object Int16Array]",Wt="[object Int32Array]",Xt="[object Uint8Array]",vs="[object Uint8ClampedArray]",Es="[object Uint16Array]",Ns="[object Uint32Array]",On=/[\\^$.*+?()[\]{}|]/g,In=/\w*$/,_n=/^\[object .+?Constructor\]$/,Rn=/^(?:0|[1-9]\d*)$/,D={};D[i]=D[o]=D[L]=D[O]=D[a]=D[u]=D[R]=D[P]=D[Ot]=D[Pt]=D[Wt]=D[d]=D[p]=D[m]=D[N]=D[A]=D[w]=D[x]=D[Xt]=D[vs]=D[Es]=D[Ns]=!0,D[h]=D[g]=D[k]=!1;var Bn=typeof qt=="object"&&qt&&qt.Object===Object&&qt,Mn=typeof self=="object"&&self&&self.Object===Object&&self,mt=Bn||Mn||Function("return this")(),As=t&&!t.nodeType&&t,U=As&&!0&&r&&!r.nodeType&&r,ws=U&&U.exports===As;function Dn(l,c){return l.set(c[0],c[1]),l}function bt(l,c){return l.add(c),l}function xs(l,c){for(var f=-1,y=l?l.length:0;++f<y&&c(l[f],f,l)!==!1;);return l}function Ts(l,c){for(var f=-1,y=c.length,I=l.length;++f<y;)l[I+f]=c[f];return l}function Be(l,c,f,y){var I=-1,C=l?l.length:0;for(y&&C&&(f=l[++I]);++I<C;)f=c(f,l[I],I,l);return f}function Me(l,c){for(var f=-1,y=Array(l);++f<l;)y[f]=c(f);return y}function Ls(l,c){return l?.[c]}function De(l){var c=!1;if(l!=null&&typeof l.toString!="function")try{c=!!(l+"")}catch{}return c}function qs(l){var c=-1,f=Array(l.size);return l.forEach(function(y,I){f[++c]=[I,y]}),f}function Ue(l,c){return function(f){return l(c(f))}}function Ss(l){var c=-1,f=Array(l.size);return l.forEach(function(y){f[++c]=y}),f}var Un=Array.prototype,Pn=Function.prototype,fe=Object.prototype,Pe=mt["__core-js_shared__"],ks=function(){var l=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Cs=Pn.toString,At=fe.hasOwnProperty,de=fe.toString,jn=RegExp("^"+Cs.call(At).replace(On,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yt=ws?mt.Buffer:void 0,ge=mt.Symbol,je=mt.Uint8Array,at=Ue(Object.getPrototypeOf,Object),Os=Object.create,Is=fe.propertyIsEnumerable,Hn=Un.splice,He=Object.getOwnPropertySymbols,pe=Yt?Yt.isBuffer:void 0,_s=Ue(Object.keys,Object),me=vt(mt,"DataView"),Qt=vt(mt,"Map"),yt=vt(mt,"Promise"),be=vt(mt,"Set"),Fe=vt(mt,"WeakMap"),Jt=vt(Object,"create"),$e=J(me),te=J(Qt),ze=J(yt),Ve=J(be),Ke=J(Fe),jt=ge?ge.prototype:void 0,Rs=jt?jt.valueOf:void 0;function It(l){var c=-1,f=l?l.length:0;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function Fn(){this.__data__=Jt?Jt(null):{}}function $n(l){return this.has(l)&&delete this.__data__[l]}function zn(l){var c=this.__data__;if(Jt){var f=c[l];return f===s?void 0:f}return At.call(c,l)?c[l]:void 0}function Bs(l){var c=this.__data__;return Jt?c[l]!==void 0:At.call(c,l)}function Ge(l,c){var f=this.__data__;return f[l]=Jt&&c===void 0?s:c,this}It.prototype.clear=Fn,It.prototype.delete=$n,It.prototype.get=zn,It.prototype.has=Bs,It.prototype.set=Ge;function z(l){var c=-1,f=l?l.length:0;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function Vn(){this.__data__=[]}function Kn(l){var c=this.__data__,f=ve(c,l);if(f<0)return!1;var y=c.length-1;return f==y?c.pop():Hn.call(c,f,1),!0}function Gn(l){var c=this.__data__,f=ve(c,l);return f<0?void 0:c[f][1]}function Zn(l){return ve(this.__data__,l)>-1}function Wn(l,c){var f=this.__data__,y=ve(f,l);return y<0?f.push([l,c]):f[y][1]=c,this}z.prototype.clear=Vn,z.prototype.delete=Kn,z.prototype.get=Gn,z.prototype.has=Zn,z.prototype.set=Wn;function G(l){var c=-1,f=l?l.length:0;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function Xn(){this.__data__={hash:new It,map:new(Qt||z),string:new It}}function Yn(l){return se(this,l).delete(l)}function Qn(l){return se(this,l).get(l)}function Jn(l){return se(this,l).has(l)}function tr(l,c){return se(this,l).set(l,c),this}G.prototype.clear=Xn,G.prototype.delete=Yn,G.prototype.get=Qn,G.prototype.has=Jn,G.prototype.set=tr;function tt(l){this.__data__=new z(l)}function er(){this.__data__=new z}function sr(l){return this.__data__.delete(l)}function nr(l){return this.__data__.get(l)}function rr(l){return this.__data__.has(l)}function ir(l,c){var f=this.__data__;if(f instanceof z){var y=f.__data__;if(!Qt||y.length<e-1)return y.push([l,c]),this;f=this.__data__=new G(y)}return f.set(l,c),this}tt.prototype.clear=er,tt.prototype.delete=sr,tt.prototype.get=nr,tt.prototype.has=rr,tt.prototype.set=ir;function ye(l,c){var f=Ye(l)||Ne(l)?Me(l.length,String):[],y=f.length,I=!!y;for(var C in l)(c||At.call(l,C))&&!(I&&(C=="length"||vr(C,y)))&&f.push(C);return f}function Ms(l,c,f){var y=l[c];(!(At.call(l,c)&&Hs(y,f))||f===void 0&&!(c in l))&&(l[c]=f)}function ve(l,c){for(var f=l.length;f--;)if(Hs(l[f][0],c))return f;return-1}function wt(l,c){return l&&Xe(c,Je(c),l)}function Ze(l,c,f,y,I,C,_){var B;if(y&&(B=C?y(l,I,C,_):y(l)),B!==void 0)return B;if(!Tt(l))return l;var j=Ye(l);if(j){if(B=br(l),!c)return gr(l,B)}else{var M=Rt(l),Z=M==g||M==b;if(Fs(l))return Ee(l,c);if(M==m||M==i||Z&&!C){if(De(l))return C?l:{};if(B=xt(Z?{}:l),!c)return pr(l,wt(B,l))}else{if(!D[M])return C?l:{};B=yr(l,M,Ze,c)}}_||(_=new tt);var et=_.get(l);if(et)return et;if(_.set(l,B),!j)var F=f?mr(l):Je(l);return xs(F||l,function(W,V){F&&(V=W,W=l[V]),Ms(B,V,Ze(W,c,f,y,V,l,_))}),B}function lr(l){return Tt(l)?Os(l):{}}function or(l,c,f){var y=c(l);return Ye(l)?y:Ts(y,f(l))}function ar(l){return de.call(l)}function cr(l){if(!Tt(l)||Nr(l))return!1;var c=Qe(l)||De(l)?jn:_n;return c.test(J(l))}function ur(l){if(!Ps(l))return _s(l);var c=[];for(var f in Object(l))At.call(l,f)&&f!="constructor"&&c.push(f);return c}function Ee(l,c){if(c)return l.slice();var f=new l.constructor(l.length);return l.copy(f),f}function We(l){var c=new l.constructor(l.byteLength);return new je(c).set(new je(l)),c}function ee(l,c){var f=c?We(l.buffer):l.buffer;return new l.constructor(f,l.byteOffset,l.byteLength)}function Ds(l,c,f){var y=c?f(qs(l),!0):qs(l);return Be(y,Dn,new l.constructor)}function Us(l){var c=new l.constructor(l.source,In.exec(l));return c.lastIndex=l.lastIndex,c}function hr(l,c,f){var y=c?f(Ss(l),!0):Ss(l);return Be(y,bt,new l.constructor)}function fr(l){return Rs?Object(Rs.call(l)):{}}function dr(l,c){var f=c?We(l.buffer):l.buffer;return new l.constructor(f,l.byteOffset,l.length)}function gr(l,c){var f=-1,y=l.length;for(c||(c=Array(y));++f<y;)c[f]=l[f];return c}function Xe(l,c,f,y){f||(f={});for(var I=-1,C=c.length;++I<C;){var _=c[I],B=y?y(f[_],l[_],_,f,l):void 0;Ms(f,_,B===void 0?l[_]:B)}return f}function pr(l,c){return Xe(l,_t(l),c)}function mr(l){return or(l,Je,_t)}function se(l,c){var f=l.__data__;return Er(c)?f[typeof c=="string"?"string":"hash"]:f.map}function vt(l,c){var f=Ls(l,c);return cr(f)?f:void 0}var _t=He?Ue(He,Object):wr,Rt=ar;(me&&Rt(new me(new ArrayBuffer(1)))!=O||Qt&&Rt(new Qt)!=d||yt&&Rt(yt.resolve())!=E||be&&Rt(new be)!=A||Fe&&Rt(new Fe)!=k)&&(Rt=function(l){var c=de.call(l),f=c==m?l.constructor:void 0,y=f?J(f):void 0;if(y)switch(y){case $e:return O;case te:return d;case ze:return E;case Ve:return A;case Ke:return k}return c});function br(l){var c=l.length,f=l.constructor(c);return c&&typeof l[0]=="string"&&At.call(l,"index")&&(f.index=l.index,f.input=l.input),f}function xt(l){return typeof l.constructor=="function"&&!Ps(l)?lr(at(l)):{}}function yr(l,c,f,y){var I=l.constructor;switch(c){case L:return We(l);case a:case u:return new I(+l);case O:return ee(l,y);case R:case P:case Ot:case Pt:case Wt:case Xt:case vs:case Es:case Ns:return dr(l,y);case d:return Ds(l,y,f);case p:case w:return new I(l);case N:return Us(l);case A:return hr(l,y,f);case x:return fr(l)}}function vr(l,c){return c=c??n,!!c&&(typeof l=="number"||Rn.test(l))&&l>-1&&l%1==0&&l<c}function Er(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Nr(l){return!!ks&&ks in l}function Ps(l){var c=l&&l.constructor,f=typeof c=="function"&&c.prototype||fe;return l===f}function J(l){if(l!=null){try{return Cs.call(l)}catch{}try{return l+""}catch{}}return""}function js(l){return Ze(l,!0,!0)}function Hs(l,c){return l===c||l!==l&&c!==c}function Ne(l){return Ar(l)&&At.call(l,"callee")&&(!Is.call(l,"callee")||de.call(l)==i)}var Ye=Array.isArray;function Ae(l){return l!=null&&$s(l.length)&&!Qe(l)}function Ar(l){return zs(l)&&Ae(l)}var Fs=pe||xr;function Qe(l){var c=Tt(l)?de.call(l):"";return c==g||c==b}function $s(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=n}function Tt(l){var c=typeof l;return!!l&&(c=="object"||c=="function")}function zs(l){return!!l&&typeof l=="object"}function Je(l){return Ae(l)?ye(l):ur(l)}function wr(){return[]}function xr(){return!1}r.exports=js}(ls,ls.exports);var $r=ls.exports,os={exports:{}};os.exports,function(r,t){var e=200,s="__lodash_hash_undefined__",n=1,i=2,o=9007199254740991,a="[object Arguments]",u="[object Array]",h="[object AsyncFunction]",g="[object Boolean]",b="[object Date]",d="[object Error]",p="[object Function]",m="[object GeneratorFunction]",E="[object Map]",N="[object Number]",A="[object Null]",w="[object Object]",x="[object Promise]",k="[object Proxy]",L="[object RegExp]",O="[object Set]",R="[object String]",P="[object Symbol]",Ot="[object Undefined]",Pt="[object WeakMap]",Wt="[object ArrayBuffer]",Xt="[object DataView]",vs="[object Float32Array]",Es="[object Float64Array]",Ns="[object Int8Array]",On="[object Int16Array]",In="[object Int32Array]",_n="[object Uint8Array]",Rn="[object Uint8ClampedArray]",D="[object Uint16Array]",Bn="[object Uint32Array]",Mn=/[\\^$.*+?()[\]{}|]/g,mt=/^\[object .+?Constructor\]$/,As=/^(?:0|[1-9]\d*)$/,U={};U[vs]=U[Es]=U[Ns]=U[On]=U[In]=U[_n]=U[Rn]=U[D]=U[Bn]=!0,U[a]=U[u]=U[Wt]=U[g]=U[Xt]=U[b]=U[d]=U[p]=U[E]=U[N]=U[w]=U[L]=U[O]=U[R]=U[Pt]=!1;var ws=typeof qt=="object"&&qt&&qt.Object===Object&&qt,Dn=typeof self=="object"&&self&&self.Object===Object&&self,bt=ws||Dn||Function("return this")(),xs=t&&!t.nodeType&&t,Ts=xs&&!0&&r&&!r.nodeType&&r,Be=Ts&&Ts.exports===xs,Me=Be&&ws.process,Ls=function(){try{return Me&&Me.binding&&Me.binding("util")}catch{}}(),De=Ls&&Ls.isTypedArray;function qs(l,c){for(var f=-1,y=l==null?0:l.length,I=0,C=[];++f<y;){var _=l[f];c(_,f,l)&&(C[I++]=_)}return C}function Ue(l,c){for(var f=-1,y=c.length,I=l.length;++f<y;)l[I+f]=c[f];return l}function Ss(l,c){for(var f=-1,y=l==null?0:l.length;++f<y;)if(c(l[f],f,l))return!0;return!1}function Un(l,c){for(var f=-1,y=Array(l);++f<l;)y[f]=c(f);return y}function Pn(l){return function(c){return l(c)}}function fe(l,c){return l.has(c)}function Pe(l,c){return l?.[c]}function ks(l){var c=-1,f=Array(l.size);return l.forEach(function(y,I){f[++c]=[I,y]}),f}function Cs(l,c){return function(f){return l(c(f))}}function At(l){var c=-1,f=Array(l.size);return l.forEach(function(y){f[++c]=y}),f}var de=Array.prototype,jn=Function.prototype,Yt=Object.prototype,ge=bt["__core-js_shared__"],je=jn.toString,at=Yt.hasOwnProperty,Os=function(){var l=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Is=Yt.toString,Hn=RegExp("^"+je.call(at).replace(Mn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=Be?bt.Buffer:void 0,pe=bt.Symbol,_s=bt.Uint8Array,me=Yt.propertyIsEnumerable,Qt=de.splice,yt=pe?pe.toStringTag:void 0,be=Object.getOwnPropertySymbols,Fe=He?He.isBuffer:void 0,Jt=Cs(Object.keys,Object),$e=_t(bt,"DataView"),te=_t(bt,"Map"),ze=_t(bt,"Promise"),Ve=_t(bt,"Set"),Ke=_t(bt,"WeakMap"),jt=_t(Object,"create"),Rs=J($e),It=J(te),Fn=J(ze),$n=J(Ve),zn=J(Ke),Bs=pe?pe.prototype:void 0,Ge=Bs?Bs.valueOf:void 0;function z(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function Vn(){this.__data__=jt?jt(null):{},this.size=0}function Kn(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function Gn(l){var c=this.__data__;if(jt){var f=c[l];return f===s?void 0:f}return at.call(c,l)?c[l]:void 0}function Zn(l){var c=this.__data__;return jt?c[l]!==void 0:at.call(c,l)}function Wn(l,c){var f=this.__data__;return this.size+=this.has(l)?0:1,f[l]=jt&&c===void 0?s:c,this}z.prototype.clear=Vn,z.prototype.delete=Kn,z.prototype.get=Gn,z.prototype.has=Zn,z.prototype.set=Wn;function G(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function Xn(){this.__data__=[],this.size=0}function Yn(l){var c=this.__data__,f=Ee(c,l);if(f<0)return!1;var y=c.length-1;return f==y?c.pop():Qt.call(c,f,1),--this.size,!0}function Qn(l){var c=this.__data__,f=Ee(c,l);return f<0?void 0:c[f][1]}function Jn(l){return Ee(this.__data__,l)>-1}function tr(l,c){var f=this.__data__,y=Ee(f,l);return y<0?(++this.size,f.push([l,c])):f[y][1]=c,this}G.prototype.clear=Xn,G.prototype.delete=Yn,G.prototype.get=Qn,G.prototype.has=Jn,G.prototype.set=tr;function tt(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function er(){this.size=0,this.__data__={hash:new z,map:new(te||G),string:new z}}function sr(l){var c=vt(this,l).delete(l);return this.size-=c?1:0,c}function nr(l){return vt(this,l).get(l)}function rr(l){return vt(this,l).has(l)}function ir(l,c){var f=vt(this,l),y=f.size;return f.set(l,c),this.size+=f.size==y?0:1,this}tt.prototype.clear=er,tt.prototype.delete=sr,tt.prototype.get=nr,tt.prototype.has=rr,tt.prototype.set=ir;function ye(l){var c=-1,f=l==null?0:l.length;for(this.__data__=new tt;++c<f;)this.add(l[c])}function Ms(l){return this.__data__.set(l,s),this}function ve(l){return this.__data__.has(l)}ye.prototype.add=ye.prototype.push=Ms,ye.prototype.has=ve;function wt(l){var c=this.__data__=new G(l);this.size=c.size}function Ze(){this.__data__=new G,this.size=0}function lr(l){var c=this.__data__,f=c.delete(l);return this.size=c.size,f}function or(l){return this.__data__.get(l)}function ar(l){return this.__data__.has(l)}function cr(l,c){var f=this.__data__;if(f instanceof G){var y=f.__data__;if(!te||y.length<e-1)return y.push([l,c]),this.size=++f.size,this;f=this.__data__=new tt(y)}return f.set(l,c),this.size=f.size,this}wt.prototype.clear=Ze,wt.prototype.delete=lr,wt.prototype.get=or,wt.prototype.has=ar,wt.prototype.set=cr;function ur(l,c){var f=Ne(l),y=!f&&Hs(l),I=!f&&!y&&Ae(l),C=!f&&!y&&!I&&zs(l),_=f||y||I||C,B=_?Un(l.length,String):[],j=B.length;for(var M in l)(c||at.call(l,M))&&!(_&&(M=="length"||I&&(M=="offset"||M=="parent")||C&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||yr(M,j)))&&B.push(M);return B}function Ee(l,c){for(var f=l.length;f--;)if(js(l[f][0],c))return f;return-1}function We(l,c,f){var y=c(l);return Ne(l)?y:Ue(y,f(l))}function ee(l){return l==null?l===void 0?Ot:A:yt&&yt in Object(l)?Rt(l):Ps(l)}function Ds(l){return Tt(l)&&ee(l)==a}function Us(l,c,f,y,I){return l===c?!0:l==null||c==null||!Tt(l)&&!Tt(c)?l!==l&&c!==c:hr(l,c,f,y,Us,I)}function hr(l,c,f,y,I,C){var _=Ne(l),B=Ne(c),j=_?u:xt(l),M=B?u:xt(c);j=j==a?w:j,M=M==a?w:M;var Z=j==w,et=M==w,F=j==M;if(F&&Ae(l)){if(!Ae(c))return!1;_=!0,Z=!1}if(F&&!Z)return C||(C=new wt),_||zs(l)?Xe(l,c,f,y,I,C):pr(l,c,j,f,y,I,C);if(!(f&n)){var W=Z&&at.call(l,"__wrapped__"),V=et&&at.call(c,"__wrapped__");if(W||V){var Ht=W?l.value():l,Bt=V?c.value():c;return C||(C=new wt),I(Ht,Bt,f,y,C)}}return F?(C||(C=new wt),mr(l,c,f,y,I,C)):!1}function fr(l){if(!$s(l)||Er(l))return!1;var c=Fs(l)?Hn:mt;return c.test(J(l))}function dr(l){return Tt(l)&&Qe(l.length)&&!!U[ee(l)]}function gr(l){if(!Nr(l))return Jt(l);var c=[];for(var f in Object(l))at.call(l,f)&&f!="constructor"&&c.push(f);return c}function Xe(l,c,f,y,I,C){var _=f&n,B=l.length,j=c.length;if(B!=j&&!(_&&j>B))return!1;var M=C.get(l);if(M&&C.get(c))return M==c;var Z=-1,et=!0,F=f&i?new ye:void 0;for(C.set(l,c),C.set(c,l);++Z<B;){var W=l[Z],V=c[Z];if(y)var Ht=_?y(V,W,Z,c,l,C):y(W,V,Z,l,c,C);if(Ht!==void 0){if(Ht)continue;et=!1;break}if(F){if(!Ss(c,function(Bt,ne){if(!fe(F,ne)&&(W===Bt||I(W,Bt,f,y,C)))return F.push(ne)})){et=!1;break}}else if(!(W===V||I(W,V,f,y,C))){et=!1;break}}return C.delete(l),C.delete(c),et}function pr(l,c,f,y,I,C,_){switch(f){case Xt:if(l.byteLength!=c.byteLength||l.byteOffset!=c.byteOffset)return!1;l=l.buffer,c=c.buffer;case Wt:return!(l.byteLength!=c.byteLength||!C(new _s(l),new _s(c)));case g:case b:case N:return js(+l,+c);case d:return l.name==c.name&&l.message==c.message;case L:case R:return l==c+"";case E:var B=ks;case O:var j=y&n;if(B||(B=At),l.size!=c.size&&!j)return!1;var M=_.get(l);if(M)return M==c;y|=i,_.set(l,c);var Z=Xe(B(l),B(c),y,I,C,_);return _.delete(l),Z;case P:if(Ge)return Ge.call(l)==Ge.call(c)}return!1}function mr(l,c,f,y,I,C){var _=f&n,B=se(l),j=B.length,M=se(c),Z=M.length;if(j!=Z&&!_)return!1;for(var et=j;et--;){var F=B[et];if(!(_?F in c:at.call(c,F)))return!1}var W=C.get(l);if(W&&C.get(c))return W==c;var V=!0;C.set(l,c),C.set(c,l);for(var Ht=_;++et<j;){F=B[et];var Bt=l[F],ne=c[F];if(y)var Ui=_?y(ne,Bt,F,c,l,C):y(Bt,ne,F,l,c,C);if(!(Ui===void 0?Bt===ne||I(Bt,ne,f,y,C):Ui)){V=!1;break}Ht||(Ht=F=="constructor")}if(V&&!Ht){var Vs=l.constructor,Ks=c.constructor;Vs!=Ks&&"constructor"in l&&"constructor"in c&&!(typeof Vs=="function"&&Vs instanceof Vs&&typeof Ks=="function"&&Ks instanceof Ks)&&(V=!1)}return C.delete(l),C.delete(c),V}function se(l){return We(l,Je,br)}function vt(l,c){var f=l.__data__;return vr(c)?f[typeof c=="string"?"string":"hash"]:f.map}function _t(l,c){var f=Pe(l,c);return fr(f)?f:void 0}function Rt(l){var c=at.call(l,yt),f=l[yt];try{l[yt]=void 0;var y=!0}catch{}var I=Is.call(l);return y&&(c?l[yt]=f:delete l[yt]),I}var br=be?function(l){return l==null?[]:(l=Object(l),qs(be(l),function(c){return me.call(l,c)}))}:wr,xt=ee;($e&&xt(new $e(new ArrayBuffer(1)))!=Xt||te&&xt(new te)!=E||ze&&xt(ze.resolve())!=x||Ve&&xt(new Ve)!=O||Ke&&xt(new Ke)!=Pt)&&(xt=function(l){var c=ee(l),f=c==w?l.constructor:void 0,y=f?J(f):"";if(y)switch(y){case Rs:return Xt;case It:return E;case Fn:return x;case $n:return O;case zn:return Pt}return c});function yr(l,c){return c=c??o,!!c&&(typeof l=="number"||As.test(l))&&l>-1&&l%1==0&&l<c}function vr(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Er(l){return!!Os&&Os in l}function Nr(l){var c=l&&l.constructor,f=typeof c=="function"&&c.prototype||Yt;return l===f}function Ps(l){return Is.call(l)}function J(l){if(l!=null){try{return je.call(l)}catch{}try{return l+""}catch{}}return""}function js(l,c){return l===c||l!==l&&c!==c}var Hs=Ds(function(){return arguments}())?Ds:function(l){return Tt(l)&&at.call(l,"callee")&&!me.call(l,"callee")},Ne=Array.isArray;function Ye(l){return l!=null&&Qe(l.length)&&!Fs(l)}var Ae=Fe||xr;function Ar(l,c){return Us(l,c)}function Fs(l){if(!$s(l))return!1;var c=ee(l);return c==p||c==m||c==h||c==k}function Qe(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=o}function $s(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function Tt(l){return l!=null&&typeof l=="object"}var zs=De?Pn(De):dr;function Je(l){return Ye(l)?ur(l):gr(l)}function wr(){return[]}function xr(){return!1}r.exports=Ar}(os,os.exports);var zr=os.exports,nn={};Object.defineProperty(nn,"__esModule",{value:!0});const ll=$r,ol=zr;var rn;(function(r){function t(i={},o={},a=!1){typeof i!="object"&&(i={}),typeof o!="object"&&(o={});let u=ll(o);a||(u=Object.keys(u).reduce((h,g)=>(u[g]!=null&&(h[g]=u[g]),h),{}));for(const h in i)i[h]!==void 0&&o[h]===void 0&&(u[h]=i[h]);return Object.keys(u).length>0?u:void 0}r.compose=t;function e(i={},o={}){typeof i!="object"&&(i={}),typeof o!="object"&&(o={});const a=Object.keys(i).concat(Object.keys(o)).reduce((u,h)=>(ol(i[h],o[h])||(u[h]=o[h]===void 0?null:o[h]),u),{});return Object.keys(a).length>0?a:void 0}r.diff=e;function s(i={},o={}){i=i||{};const a=Object.keys(o).reduce((u,h)=>(o[h]!==i[h]&&i[h]!==void 0&&(u[h]=o[h]),u),{});return Object.keys(i).reduce((u,h)=>(i[h]!==o[h]&&o[h]===void 0&&(u[h]=null),u),a)}r.invert=s;function n(i,o,a=!1){if(typeof i!="object")return o;if(typeof o!="object")return;if(!a)return o;const u=Object.keys(o).reduce((h,g)=>(i[g]===void 0&&(h[g]=o[g]),h),{});return Object.keys(u).length>0?u:void 0}r.transform=n})(rn||(rn={})),nn.default=rn;var as={};Object.defineProperty(as,"__esModule",{value:!0});var ln;(function(r){function t(e){return typeof e.delete=="number"?e.delete:typeof e.retain=="number"?e.retain:typeof e.retain=="object"&&e.retain!==null?1:typeof e.insert=="string"?e.insert.length:1}r.length=t})(ln||(ln={})),as.default=ln;var on={};Object.defineProperty(on,"__esModule",{value:!0});const Vr=as;class al{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);const e=this.ops[this.index];if(e){const s=this.offset,n=Vr.default.length(e);if(t>=n-s?(t=n-s,this.index+=1,this.offset=0):this.offset+=t,typeof e.delete=="number")return{delete:t};{const i={};return e.attributes&&(i.attributes=e.attributes),typeof e.retain=="number"?i.retain=t:typeof e.retain=="object"&&e.retain!==null?i.retain=e.retain:typeof e.insert=="string"?i.insert=e.insert.substr(s,t):i.insert=e.insert,i}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?Vr.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const t=this.offset,e=this.index,s=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[s].concat(n)}}else return[]}}on.default=al,function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=il,s=$r,n=zr,i=nn;t.AttributeMap=i.default;const o=as;t.Op=o.default;const a=on;t.OpIterator=a.default;const u="\0",h=(b,d)=>{if(typeof b!="object"||b===null)throw new Error(`cannot retain a ${typeof b}`);if(typeof d!="object"||d===null)throw new Error(`cannot retain a ${typeof d}`);const p=Object.keys(b)[0];if(!p||p!==Object.keys(d)[0])throw new Error(`embed types not matched: ${p} != ${Object.keys(d)[0]}`);return[p,b[p],d[p]]};class g{constructor(d){Array.isArray(d)?this.ops=d:d!=null&&Array.isArray(d.ops)?this.ops=d.ops:this.ops=[]}static registerEmbed(d,p){this.handlers[d]=p}static unregisterEmbed(d){delete this.handlers[d]}static getHandler(d){const p=this.handlers[d];if(!p)throw new Error(`no handlers for embed type "${d}"`);return p}insert(d,p){const m={};return typeof d=="string"&&d.length===0?this:(m.insert=d,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(m.attributes=p),this.push(m))}delete(d){return d<=0?this:this.push({delete:d})}retain(d,p){if(typeof d=="number"&&d<=0)return this;const m={retain:d};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(m.attributes=p),this.push(m)}push(d){let p=this.ops.length,m=this.ops[p-1];if(d=s(d),typeof m=="object"){if(typeof d.delete=="number"&&typeof m.delete=="number")return this.ops[p-1]={delete:m.delete+d.delete},this;if(typeof m.delete=="number"&&d.insert!=null&&(p-=1,m=this.ops[p-1],typeof m!="object"))return this.ops.unshift(d),this;if(n(d.attributes,m.attributes)){if(typeof d.insert=="string"&&typeof m.insert=="string")return this.ops[p-1]={insert:m.insert+d.insert},typeof d.attributes=="object"&&(this.ops[p-1].attributes=d.attributes),this;if(typeof d.retain=="number"&&typeof m.retain=="number")return this.ops[p-1]={retain:m.retain+d.retain},typeof d.attributes=="object"&&(this.ops[p-1].attributes=d.attributes),this}}return p===this.ops.length?this.ops.push(d):this.ops.splice(p,0,d),this}chop(){const d=this.ops[this.ops.length-1];return d&&typeof d.retain=="number"&&!d.attributes&&this.ops.pop(),this}filter(d){return this.ops.filter(d)}forEach(d){this.ops.forEach(d)}map(d){return this.ops.map(d)}partition(d){const p=[],m=[];return this.forEach(E=>{(d(E)?p:m).push(E)}),[p,m]}reduce(d,p){return this.ops.reduce(d,p)}changeLength(){return this.reduce((d,p)=>p.insert?d+o.default.length(p):p.delete?d-p.delete:d,0)}length(){return this.reduce((d,p)=>d+o.default.length(p),0)}slice(d=0,p=1/0){const m=[],E=new a.default(this.ops);let N=0;for(;N<p&&E.hasNext();){let A;N<d?A=E.next(d-N):(A=E.next(p-N),m.push(A)),N+=o.default.length(A)}return new g(m)}compose(d){const p=new a.default(this.ops),m=new a.default(d.ops),E=[],N=m.peek();if(N!=null&&typeof N.retain=="number"&&N.attributes==null){let w=N.retain;for(;p.peekType()==="insert"&&p.peekLength()<=w;)w-=p.peekLength(),E.push(p.next());N.retain-w>0&&m.next(N.retain-w)}const A=new g(E);for(;p.hasNext()||m.hasNext();)if(m.peekType()==="insert")A.push(m.next());else if(p.peekType()==="delete")A.push(p.next());else{const w=Math.min(p.peekLength(),m.peekLength()),x=p.next(w),k=m.next(w);if(k.retain){const L={};if(typeof x.retain=="number")L.retain=typeof k.retain=="number"?w:k.retain;else if(typeof k.retain=="number")x.retain==null?L.insert=x.insert:L.retain=x.retain;else{const R=x.retain==null?"insert":"retain",[P,Ot,Pt]=h(x[R],k.retain),Wt=g.getHandler(P);L[R]={[P]:Wt.compose(Ot,Pt,R==="retain")}}const O=i.default.compose(x.attributes,k.attributes,typeof x.retain=="number");if(O&&(L.attributes=O),A.push(L),!m.hasNext()&&n(A.ops[A.ops.length-1],L)){const R=new g(p.rest());return A.concat(R).chop()}}else typeof k.delete=="number"&&(typeof x.retain=="number"||typeof x.retain=="object"&&x.retain!==null)&&A.push(k)}return A.chop()}concat(d){const p=new g(this.ops.slice());return d.ops.length>0&&(p.push(d.ops[0]),p.ops=p.ops.concat(d.ops.slice(1))),p}diff(d,p){if(this.ops===d.ops)return new g;const m=[this,d].map(x=>x.map(k=>{if(k.insert!=null)return typeof k.insert=="string"?k.insert:u;const L=x===d?"on":"with";throw new Error("diff() called "+L+" non-document")}).join("")),E=new g,N=e(m[0],m[1],p,!0),A=new a.default(this.ops),w=new a.default(d.ops);return N.forEach(x=>{let k=x[1].length;for(;k>0;){let L=0;switch(x[0]){case e.INSERT:L=Math.min(w.peekLength(),k),E.push(w.next(L));break;case e.DELETE:L=Math.min(k,A.peekLength()),A.next(L),E.delete(L);break;case e.EQUAL:L=Math.min(A.peekLength(),w.peekLength(),k);const O=A.next(L),R=w.next(L);n(O.insert,R.insert)?E.retain(L,i.default.diff(O.attributes,R.attributes)):E.push(R).delete(L);break}k-=L}}),E.chop()}eachLine(d,p=`
|
|
1
|
+
System.register(["lodash-es","./index-yjjy8EQH.js"],function(ji){"use strict";var ts,$t,Lt,qt,Gs;return{setters:[function(T){ts=T.isEqual,$t=T.cloneDeep,Lt=T.merge},function(T){qt=T.c,Gs=T.g}],execute:function(){var T=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(T||{});class Et{constructor(t,e,s={}){this.attrName=t,this.keyName=e;const n=T.TYPE&T.ATTRIBUTE;this.scope=s.scope!=null?s.scope&T.LEVEL|n:T.ATTRIBUTE,s.whitelist!=null&&(this.whitelist=s.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class re extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const qr=class Tr{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let s=null;try{s=t.parentNode}catch{return null}return this.find(s,e)}return null}create(t,e,s){const n=this.query(e);if(n==null)throw new re(`Unable to create ${e} blot`);const i=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(s),a=new i(t,o,s);return Tr.blots.set(a.domNode,a),a}find(t,e=!1){return Tr.find(t,e)}query(t,e=T.ANY){let s;return typeof t=="string"?s=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?s=this.types.text:typeof t=="number"?t&T.LEVEL&T.BLOCK?s=this.types.block:t&T.LEVEL&T.INLINE&&(s=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(n=>(s=this.classes[n],!!s)),s=s||this.tags[t.tagName]),s==null?null:"scope"in s&&e&T.LEVEL&s.scope&&e&T.TYPE&s.scope?s:null}register(...t){return t.map(e=>{const s="blotName"in e,n="attrName"in e;if(!s&&!n)throw new re("Invalid definition");if(s&&e.blotName==="abstract")throw new re("Cannot register abstract class");const i=s?e.blotName:n?e.attrName:void 0;return this.types[i]=e,n?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):s&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(o=>o.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(o=>{(this.tags[o]==null||e.className==null)&&(this.tags[o]=e)}))),e})}};qr.blots=new WeakMap;let ie=qr;function Sr(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class Hi extends Et{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){Sr(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(Sr(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const ct=Hi;function Zs(r){const t=r.split("-"),e=t.slice(1).map(s=>s[0].toUpperCase()+s.slice(1)).join("");return t[0]+e}class Fi extends Et{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[Zs(this.keyName)]=e,!0):!1}remove(t){t.style[Zs(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Zs(this.keyName)];return this.canAdd(t,e)?e:""}}const Mt=Fi;class $i{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=ie.find(this.domNode);if(t==null)return;const e=Et.keys(this.domNode),s=ct.keys(this.domNode),n=Mt.keys(this.domNode);e.concat(s).concat(n).forEach(i=>{const o=t.scroll.query(i,T.ATTRIBUTE);o instanceof Et&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(e=>{const s=this.attributes[e].value(this.domNode);t.format(e,s)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const es=$i,kr=class{constructor(t,e){this.scroll=t,this.domNode=e,ie.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new re("Blot definition missing tagName");let e,s;return Array.isArray(this.tagName)?(typeof t=="string"?(s=t.toUpperCase(),parseInt(s,10).toString()===s&&(s=parseInt(s,10))):typeof t=="number"&&(s=t),typeof s=="number"?e=document.createElement(this.tagName[s-1]):s&&this.tagName.indexOf(s)>-1?e=document.createElement(s):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),ie.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,s,n){const i=this.isolate(t,e);if(this.scroll.query(s,T.BLOT)!=null&&n)i.wrap(s,n);else if(this.scroll.query(s,T.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(s,n)}}insertAt(t,e,s){const n=s==null?this.scroll.create("text",e):this.scroll.create(e,s),i=this.split(t);this.parent.insertBefore(n,i||void 0)}isolate(t,e){const s=this.split(t);if(s==null)throw new Error("Attempt to isolate at end");return s.split(e),s}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(s,this.next||void 0),this.remove()),s}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(s,this.next||void 0),typeof s.appendChild!="function")throw new re(`Cannot wrap ${t}`);return s.appendChild(this),s}};kr.blotName="abstract";let Cr=kr;const Or=class extends Cr{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let s=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(s+=1),[this.parent.domNode,s]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Or.scope=T.INLINE_BLOT;const K=Or;class zi{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let s=e();for(;s&&t>0;)t-=1,s=e();return s}contains(t){const e=this.iterator();let s=e();for(;s;){if(s===t)return!0;s=e()}return!1}indexOf(t){const e=this.iterator();let s=e(),n=0;for(;s;){if(s===t)return n;n+=1,s=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,s=this.head;for(;s!=null;){if(s===t)return e;e+=s.length(),s=s.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const s=this.iterator();let n=s();for(;n;){const i=n.length();if(t<i||e&&t===i&&(n.next==null||n.next.length()!==0))return[n,t];t-=i,n=s()}return[null,0]}forEach(t){const e=this.iterator();let s=e();for(;s;)t(s),s=e()}forEachAt(t,e,s){if(e<=0)return;const[n,i]=this.find(t);let o=t-i;const a=this.iterator(n);let u=a();for(;u&&o<t+e;){const h=u.length();t>o?s(u,t-o,Math.min(e,o+h-t)):s(u,0,Math.min(h,t+e-o)),o+=h,u=a()}}map(t){return this.reduce((e,s)=>(e.push(t(s)),e),[])}reduce(t,e){const s=this.iterator();let n=s();for(;n;)e=t(e,n),n=s();return e}}function Ir(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const s=t.create(T.INLINE);return Array.from(r.childNodes).forEach(n=>{s.domNode.appendChild(n)}),r.parentNode&&r.parentNode.replaceChild(s.domNode,r),s.attach(),s}}const _r=class Ft extends Cr{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,Ft.uiClass&&this.uiNode.classList.add(Ft.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new zi,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=Ir(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof re)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(s,n,i)=>{s.deleteAt(n,i)})}descendant(t,e=0){const[s,n]=this.children.find(e);return t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t?[s,n]:s instanceof Ft?s.descendant(t,n):[null,-1]}descendants(t,e=0,s=Number.MAX_VALUE){let n=[],i=s;return this.children.forEachAt(e,s,(o,a,u)=>{(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&n.push(o),o instanceof Ft&&(n=n.concat(o.descendants(t,a,i))),i-=u}),n}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(s=>e instanceof s)||(e.statics.scope===T.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof Ft?e.unwrap():e.remove())})}formatAt(t,e,s,n){this.children.forEachAt(t,e,(i,o,a)=>{i.formatAt(o,a,s,n)})}insertAt(t,e,s){const[n,i]=this.children.find(t);if(n)n.insertAt(i,e,s);else{const o=s==null?this.scroll.create("text",e):this.scroll.create(e,s);this.appendChild(o)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let s=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(s=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==s)&&this.domNode.insertBefore(t.domNode,s),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(s=>{t.insertBefore(s,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[s,n]=this.children.find(t,e),i=[[this,t]];return s instanceof Ft?i.concat(s.path(n,e)):(s!=null&&i.push([s,n]),i)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return s instanceof Ft&&this.moveChildren(s),super.replaceWith(s)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.clone();return this.parent&&this.parent.insertBefore(s,this.next||void 0),this.children.forEachAt(t,this.length(),(n,i,o)=>{const a=n.split(i,e);a!=null&&s.appendChild(a)}),s}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const s=[],n=[];t.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(s.push(...i.addedNodes),n.push(...i.removedNodes))}),n.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(i);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),s.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,o)=>i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let o=null;i.nextSibling!=null&&(o=this.scroll.find(i.nextSibling));const a=Ir(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};_r.uiClass="";const ut=_r;function Vi(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}const le=class we extends ut{static create(t){return super.create(t)}static formats(t,e){const s=e.query(we.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new es(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(s=>{s instanceof we||(s=s.wrap(we.blotName,!0)),this.attributes.copy(s)}),this.unwrap();else{const s=this.scroll.query(t,T.INLINE);if(s==null)return;s instanceof Et?this.attributes.attribute(s,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,n){this.formats()[s]!=null||this.scroll.query(s,T.ATTRIBUTE)?this.isolate(t,e).format(s,n):super.formatAt(t,e,s,n)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const s=this.next;s instanceof we&&s.prev===this&&Vi(e,s.formats())&&(s.moveChildren(this),s.remove())}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}wrap(t,e){const s=super.wrap(t,e);return s instanceof we&&this.attributes.move(s),s}};le.allowedChildren=[le,K],le.blotName="inline",le.scope=T.INLINE_BLOT,le.tagName="SPAN";const Ws=le,oe=class Lr extends ut{static create(t){return super.create(t)}static formats(t,e){const s=e.query(Lr.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new es(this.domNode)}format(t,e){const s=this.scroll.query(t,T.BLOCK);s!=null&&(s instanceof Et?this.attributes.attribute(s,e):t===this.statics.blotName&&!e?this.replaceWith(Lr.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,n){this.scroll.query(s,T.BLOCK)!=null?this.format(s,n):super.formatAt(t,e,s,n)}insertAt(t,e,s){if(s==null||this.scroll.query(e,T.INLINE)!=null)super.insertAt(t,e,s);else{const n=this.split(t);if(n!=null){const i=this.scroll.create(e,s);n.parent.insertBefore(i,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}};oe.blotName="block",oe.scope=T.BLOCK_BLOT,oe.tagName="P",oe.allowedChildren=[Ws,oe,K];const xe=oe,Xs=class extends ut{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,s,n){super.formatAt(t,e,s,n),this.enforceAllowedChildren()}insertAt(t,e,s){super.insertAt(t,e,s),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Xs.blotName="container",Xs.scope=T.BLOCK_BLOT;const ss=Xs;class Ki extends K{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,s,n){t===0&&e===this.length()?this.format(s,n):super.formatAt(t,e,s,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const st=Ki,Gi={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Zi=100,ae=class extends ut{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(s=>{this.update(s)}),this.observer.observe(this.domNode,Gi),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const s=this.registry.find(t,e);return s?s.scroll===this?s:e?this.find(s.scroll.domNode.parentNode,!0):null:null}query(t,e=T.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(s=>{s.remove()}):super.deleteAt(t,e)}formatAt(t,e,s,n){this.update(),super.formatAt(t,e,s,n)}insertAt(t,e,s){this.update(),super.insertAt(t,e,s)}optimize(t=[],e={}){super.optimize(e);const s=e.mutationsMap||new WeakMap;let n=Array.from(this.observer.takeRecords());for(;n.length>0;)t.push(n.pop());const i=(u,h=!0)=>{u==null||u===this||u.domNode.parentNode!=null&&(s.has(u.domNode)||s.set(u.domNode,[]),h&&i(u.parent))},o=u=>{s.has(u.domNode)&&(u instanceof ut&&u.children.forEach(o),s.delete(u.domNode),u.optimize(e))};let a=t;for(let u=0;a.length>0;u+=1){if(u>=Zi)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(h=>{const g=this.find(h.target,!0);g!=null&&(g.domNode===h.target&&(h.type==="childList"?(i(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(b=>{const d=this.find(b,!1);i(d,!1),d instanceof ut&&d.children.forEach(p=>{i(p,!1)})})):h.type==="attributes"&&i(g.prev)),i(g))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),n=a.slice();n.length>0;)t.push(n.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const s=new WeakMap;t.map(n=>{const i=this.find(n.target,!0);return i==null?null:s.has(i.domNode)?(s.get(i.domNode).push(n),null):(s.set(i.domNode,[n]),i)}).forEach(n=>{n!=null&&n!==this&&s.has(n.domNode)&&n.update(s.get(n.domNode)||[],e)}),e.mutationsMap=s,s.has(this.domNode)&&super.update(s.get(this.domNode),e),this.optimize(t,e)}};ae.blotName="scroll",ae.defaultChild=xe,ae.allowedChildren=[xe,ss],ae.scope=T.BLOCK_BLOT,ae.tagName="DIV";const Ys=ae,Qs=class Pi extends K{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,s){s==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,s)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Pi&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(s,this.next||void 0),this.text=this.statics.value(this.domNode),s}update(t,e){t.some(s=>s.type==="characterData"&&s.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Qs.blotName="text",Qs.scope=T.INLINE_BLOT;const ns=Qs;var Wi=Object.freeze({__proto__:null,Attributor:Et,AttributorStore:es,BlockBlot:xe,ClassAttributor:ct,ContainerBlot:ss,EmbedBlot:st,InlineBlot:Ws,LeafBlot:K,ParentBlot:ut,Registry:ie,Scope:T,ScrollBlot:Ys,StyleAttributor:Mt,TextBlot:ns}),Js={exports:{}},nt=-1,X=1,H=0;function Te(r,t,e,s,n){if(r===t)return r?[[H,r]]:[];if(e!=null){var i=rl(r,t,e);if(i)return i}var o=tn(r,t),a=r.substring(0,o);r=r.substring(o),t=t.substring(o),o=rs(r,t);var u=r.substring(r.length-o);r=r.substring(0,r.length-o),t=t.substring(0,t.length-o);var h=Xi(r,t);return a&&h.unshift([H,a]),u&&h.push([H,u]),en(h,n),s&&Ji(h),h}function Xi(r,t){var e;if(!r)return[[X,t]];if(!t)return[[nt,r]];var s=r.length>t.length?r:t,n=r.length>t.length?t:r,i=s.indexOf(n);if(i!==-1)return e=[[X,s.substring(0,i)],[H,n],[X,s.substring(i+n.length)]],r.length>t.length&&(e[0][0]=e[2][0]=nt),e;if(n.length===1)return[[nt,r],[X,t]];var o=Qi(r,t);if(o){var a=o[0],u=o[1],h=o[2],g=o[3],b=o[4],d=Te(a,h),p=Te(u,g);return d.concat([[H,b]],p)}return Yi(r,t)}function Yi(r,t){for(var e=r.length,s=t.length,n=Math.ceil((e+s)/2),i=n,o=2*n,a=new Array(o),u=new Array(o),h=0;h<o;h++)a[h]=-1,u[h]=-1;a[i+1]=0,u[i+1]=0;for(var g=e-s,b=g%2!==0,d=0,p=0,m=0,E=0,N=0;N<n;N++){for(var A=-N+d;A<=N-p;A+=2){var w=i+A,x;A===-N||A!==N&&a[w-1]<a[w+1]?x=a[w+1]:x=a[w-1]+1;for(var k=x-A;x<e&&k<s&&r.charAt(x)===t.charAt(k);)x++,k++;if(a[w]=x,x>e)p+=2;else if(k>s)d+=2;else if(b){var L=i+g-A;if(L>=0&&L<o&&u[L]!==-1){var O=e-u[L];if(x>=O)return Rr(r,t,x,k)}}}for(var R=-N+m;R<=N-E;R+=2){var L=i+R,O;R===-N||R!==N&&u[L-1]<u[L+1]?O=u[L+1]:O=u[L-1]+1;for(var P=O-R;O<e&&P<s&&r.charAt(e-O-1)===t.charAt(s-P-1);)O++,P++;if(u[L]=O,O>e)E+=2;else if(P>s)m+=2;else if(!b){var w=i+g-R;if(w>=0&&w<o&&a[w]!==-1){var x=a[w],k=i+x-w;if(O=e-O,x>=O)return Rr(r,t,x,k)}}}}return[[nt,r],[X,t]]}function Rr(r,t,e,s){var n=r.substring(0,e),i=t.substring(0,s),o=r.substring(e),a=t.substring(s),u=Te(n,i),h=Te(o,a);return u.concat(h)}function tn(r,t){if(!r||!t||r.charAt(0)!==t.charAt(0))return 0;for(var e=0,s=Math.min(r.length,t.length),n=s,i=0;e<n;)r.substring(i,n)==t.substring(i,n)?(e=n,i=e):s=n,n=Math.floor((s-e)/2+e);return Pr(r.charCodeAt(n-1))&&n--,n}function Br(r,t){var e=r.length,s=t.length;if(e==0||s==0)return 0;e>s?r=r.substring(e-s):e<s&&(t=t.substring(0,e));var n=Math.min(e,s);if(r==t)return n;for(var i=0,o=1;;){var a=r.substring(n-o),u=t.indexOf(a);if(u==-1)return i;o+=u,(u==0||r.substring(n-o)==t.substring(0,o))&&(i=o,o++)}}function rs(r,t){if(!r||!t||r.slice(-1)!==t.slice(-1))return 0;for(var e=0,s=Math.min(r.length,t.length),n=s,i=0;e<n;)r.substring(r.length-n,r.length-i)==t.substring(t.length-n,t.length-i)?(e=n,i=e):s=n,n=Math.floor((s-e)/2+e);return jr(r.charCodeAt(r.length-n))&&n--,n}function Qi(r,t){var e=r.length>t.length?r:t,s=r.length>t.length?t:r;if(e.length<4||s.length*2<e.length)return null;function n(p,m,E){for(var N=p.substring(E,E+Math.floor(p.length/4)),A=-1,w="",x,k,L,O;(A=m.indexOf(N,A+1))!==-1;){var R=tn(p.substring(E),m.substring(A)),P=rs(p.substring(0,E),m.substring(0,A));w.length<P+R&&(w=m.substring(A-P,A)+m.substring(A,A+R),x=p.substring(0,E-P),k=p.substring(E+R),L=m.substring(0,A-P),O=m.substring(A+R))}return w.length*2>=p.length?[x,k,L,O,w]:null}var i=n(e,s,Math.ceil(e.length/4)),o=n(e,s,Math.ceil(e.length/2)),a;if(!i&&!o)return null;o?i?a=i[4].length>o[4].length?i:o:a=o:a=i;var u,h,g,b;r.length>t.length?(u=a[0],h=a[1],g=a[2],b=a[3]):(g=a[0],b=a[1],u=a[2],h=a[3]);var d=a[4];return[u,h,g,b,d]}function Ji(r){for(var t=!1,e=[],s=0,n=null,i=0,o=0,a=0,u=0,h=0;i<r.length;)r[i][0]==H?(e[s++]=i,o=u,a=h,u=0,h=0,n=r[i][1]):(r[i][0]==X?u+=r[i][1].length:h+=r[i][1].length,n&&n.length<=Math.max(o,a)&&n.length<=Math.max(u,h)&&(r.splice(e[s-1],0,[nt,n]),r[e[s-1]+1][0]=X,s--,s--,i=s>0?e[s-1]:-1,o=0,a=0,u=0,h=0,n=null,t=!0)),i++;for(t&&en(r),sl(r),i=1;i<r.length;){if(r[i-1][0]==nt&&r[i][0]==X){var g=r[i-1][1],b=r[i][1],d=Br(g,b),p=Br(b,g);d>=p?(d>=g.length/2||d>=b.length/2)&&(r.splice(i,0,[H,b.substring(0,d)]),r[i-1][1]=g.substring(0,g.length-d),r[i+1][1]=b.substring(d),i++):(p>=g.length/2||p>=b.length/2)&&(r.splice(i,0,[H,g.substring(0,p)]),r[i-1][0]=X,r[i-1][1]=b.substring(0,b.length-p),r[i+1][0]=nt,r[i+1][1]=g.substring(p),i++),i++}i++}}var Mr=/[^a-zA-Z0-9]/,Dr=/\s/,Ur=/[\r\n]/,tl=/\n\r?\n$/,el=/^\r?\n\r?\n/;function sl(r){function t(p,m){if(!p||!m)return 6;var E=p.charAt(p.length-1),N=m.charAt(0),A=E.match(Mr),w=N.match(Mr),x=A&&E.match(Dr),k=w&&N.match(Dr),L=x&&E.match(Ur),O=k&&N.match(Ur),R=L&&p.match(tl),P=O&&m.match(el);return R||P?5:L||O?4:A&&!x&&k?3:x||k?2:A||w?1:0}for(var e=1;e<r.length-1;){if(r[e-1][0]==H&&r[e+1][0]==H){var s=r[e-1][1],n=r[e][1],i=r[e+1][1],o=rs(s,n);if(o){var a=n.substring(n.length-o);s=s.substring(0,s.length-o),n=a+n.substring(0,n.length-o),i=a+i}for(var u=s,h=n,g=i,b=t(s,n)+t(n,i);n.charAt(0)===i.charAt(0);){s+=n.charAt(0),n=n.substring(1)+i.charAt(0),i=i.substring(1);var d=t(s,n)+t(n,i);d>=b&&(b=d,u=s,h=n,g=i)}r[e-1][1]!=u&&(u?r[e-1][1]=u:(r.splice(e-1,1),e--),r[e][1]=h,g?r[e+1][1]=g:(r.splice(e+1,1),e--))}e++}}function en(r,t){r.push([H,""]);for(var e=0,s=0,n=0,i="",o="",a;e<r.length;){if(e<r.length-1&&!r[e][1]){r.splice(e,1);continue}switch(r[e][0]){case X:n++,o+=r[e][1],e++;break;case nt:s++,i+=r[e][1],e++;break;case H:var u=e-n-s-1;if(t){if(u>=0&&Fr(r[u][1])){var h=r[u][1].slice(-1);if(r[u][1]=r[u][1].slice(0,-1),i=h+i,o=h+o,!r[u][1]){r.splice(u,1),e--;var g=u-1;r[g]&&r[g][0]===X&&(n++,o=r[g][1]+o,g--),r[g]&&r[g][0]===nt&&(s++,i=r[g][1]+i,g--),u=g}}if(Hr(r[e][1])){var h=r[e][1].charAt(0);r[e][1]=r[e][1].slice(1),i+=h,o+=h}}if(e<r.length-1&&!r[e][1]){r.splice(e,1);break}if(i.length>0||o.length>0){i.length>0&&o.length>0&&(a=tn(o,i),a!==0&&(u>=0?r[u][1]+=o.substring(0,a):(r.splice(0,0,[H,o.substring(0,a)]),e++),o=o.substring(a),i=i.substring(a)),a=rs(o,i),a!==0&&(r[e][1]=o.substring(o.length-a)+r[e][1],o=o.substring(0,o.length-a),i=i.substring(0,i.length-a)));var b=n+s;i.length===0&&o.length===0?(r.splice(e-b,b),e=e-b):i.length===0?(r.splice(e-b,b,[X,o]),e=e-b+1):o.length===0?(r.splice(e-b,b,[nt,i]),e=e-b+1):(r.splice(e-b,b,[nt,i],[X,o]),e=e-b+2)}e!==0&&r[e-1][0]===H?(r[e-1][1]+=r[e][1],r.splice(e,1)):e++,n=0,s=0,i="",o="";break}}r[r.length-1][1]===""&&r.pop();var d=!1;for(e=1;e<r.length-1;)r[e-1][0]===H&&r[e+1][0]===H&&(r[e][1].substring(r[e][1].length-r[e-1][1].length)===r[e-1][1]?(r[e][1]=r[e-1][1]+r[e][1].substring(0,r[e][1].length-r[e-1][1].length),r[e+1][1]=r[e-1][1]+r[e+1][1],r.splice(e-1,1),d=!0):r[e][1].substring(0,r[e+1][1].length)==r[e+1][1]&&(r[e-1][1]+=r[e+1][1],r[e][1]=r[e][1].substring(r[e+1][1].length)+r[e+1][1],r.splice(e+1,1),d=!0)),e++;d&&en(r,t)}function Pr(r){return r>=55296&&r<=56319}function jr(r){return r>=56320&&r<=57343}function Hr(r){return jr(r.charCodeAt(0))}function Fr(r){return Pr(r.charCodeAt(r.length-1))}function nl(r){for(var t=[],e=0;e<r.length;e++)r[e][1].length>0&&t.push(r[e]);return t}function sn(r,t,e,s){return Fr(r)||Hr(s)?null:nl([[H,r],[nt,t],[X,e],[H,s]])}function rl(r,t,e){var s=typeof e=="number"?{index:e,length:0}:e.oldRange,n=typeof e=="number"?null:e.newRange,i=r.length,o=t.length;if(s.length===0&&(n===null||n.length===0)){var a=s.index,u=r.slice(0,a),h=r.slice(a),g=n?n.index:null;t:{var b=a+o-i;if(g!==null&&g!==b||b<0||b>o)break t;var d=t.slice(0,b),p=t.slice(b);if(p!==h)break t;var m=Math.min(a,b),E=u.slice(0,m),N=d.slice(0,m);if(E!==N)break t;var A=u.slice(m),w=d.slice(m);return sn(E,A,w,h)}t:{if(g!==null&&g!==a)break t;var x=a,d=t.slice(0,x),p=t.slice(x);if(d!==u)break t;var k=Math.min(i-x,o-x),L=h.slice(h.length-k),O=p.slice(p.length-k);if(L!==O)break t;var A=h.slice(0,h.length-k),w=p.slice(0,p.length-k);return sn(u,A,w,L)}}if(s.length>0&&n&&n.length===0)t:{var E=r.slice(0,s.index),L=r.slice(s.index+s.length),m=E.length,k=L.length;if(o<m+k)break t;var N=t.slice(0,m),O=t.slice(o-k);if(E!==N||L!==O)break t;var A=r.slice(m,i-k),w=t.slice(m,o-k);return sn(E,A,w,L)}return null}function is(r,t,e,s){return Te(r,t,e,s,!0)}is.INSERT=X,is.DELETE=nt,is.EQUAL=H;var il=is,ls={exports:{}};ls.exports,function(r,t){var e=200,s="__lodash_hash_undefined__",n=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",u="[object Date]",h="[object Error]",g="[object Function]",b="[object GeneratorFunction]",d="[object Map]",p="[object Number]",m="[object Object]",E="[object Promise]",N="[object RegExp]",A="[object Set]",w="[object String]",x="[object Symbol]",k="[object WeakMap]",L="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",P="[object Float64Array]",Ot="[object Int8Array]",Pt="[object Int16Array]",Wt="[object Int32Array]",Xt="[object Uint8Array]",vs="[object Uint8ClampedArray]",Es="[object Uint16Array]",Ns="[object Uint32Array]",On=/[\\^$.*+?()[\]{}|]/g,In=/\w*$/,_n=/^\[object .+?Constructor\]$/,Rn=/^(?:0|[1-9]\d*)$/,D={};D[i]=D[o]=D[L]=D[O]=D[a]=D[u]=D[R]=D[P]=D[Ot]=D[Pt]=D[Wt]=D[d]=D[p]=D[m]=D[N]=D[A]=D[w]=D[x]=D[Xt]=D[vs]=D[Es]=D[Ns]=!0,D[h]=D[g]=D[k]=!1;var Bn=typeof qt=="object"&&qt&&qt.Object===Object&&qt,Mn=typeof self=="object"&&self&&self.Object===Object&&self,mt=Bn||Mn||Function("return this")(),As=t&&!t.nodeType&&t,U=As&&!0&&r&&!r.nodeType&&r,ws=U&&U.exports===As;function Dn(l,c){return l.set(c[0],c[1]),l}function bt(l,c){return l.add(c),l}function xs(l,c){for(var f=-1,y=l?l.length:0;++f<y&&c(l[f],f,l)!==!1;);return l}function Ts(l,c){for(var f=-1,y=c.length,I=l.length;++f<y;)l[I+f]=c[f];return l}function Be(l,c,f,y){var I=-1,C=l?l.length:0;for(y&&C&&(f=l[++I]);++I<C;)f=c(f,l[I],I,l);return f}function Me(l,c){for(var f=-1,y=Array(l);++f<l;)y[f]=c(f);return y}function Ls(l,c){return l?.[c]}function De(l){var c=!1;if(l!=null&&typeof l.toString!="function")try{c=!!(l+"")}catch{}return c}function qs(l){var c=-1,f=Array(l.size);return l.forEach(function(y,I){f[++c]=[I,y]}),f}function Ue(l,c){return function(f){return l(c(f))}}function Ss(l){var c=-1,f=Array(l.size);return l.forEach(function(y){f[++c]=y}),f}var Un=Array.prototype,Pn=Function.prototype,fe=Object.prototype,Pe=mt["__core-js_shared__"],ks=function(){var l=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Cs=Pn.toString,At=fe.hasOwnProperty,de=fe.toString,jn=RegExp("^"+Cs.call(At).replace(On,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yt=ws?mt.Buffer:void 0,ge=mt.Symbol,je=mt.Uint8Array,at=Ue(Object.getPrototypeOf,Object),Os=Object.create,Is=fe.propertyIsEnumerable,Hn=Un.splice,He=Object.getOwnPropertySymbols,pe=Yt?Yt.isBuffer:void 0,_s=Ue(Object.keys,Object),me=vt(mt,"DataView"),Qt=vt(mt,"Map"),yt=vt(mt,"Promise"),be=vt(mt,"Set"),Fe=vt(mt,"WeakMap"),Jt=vt(Object,"create"),$e=J(me),te=J(Qt),ze=J(yt),Ve=J(be),Ke=J(Fe),jt=ge?ge.prototype:void 0,Rs=jt?jt.valueOf:void 0;function It(l){var c=-1,f=l?l.length:0;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function Fn(){this.__data__=Jt?Jt(null):{}}function $n(l){return this.has(l)&&delete this.__data__[l]}function zn(l){var c=this.__data__;if(Jt){var f=c[l];return f===s?void 0:f}return At.call(c,l)?c[l]:void 0}function Bs(l){var c=this.__data__;return Jt?c[l]!==void 0:At.call(c,l)}function Ge(l,c){var f=this.__data__;return f[l]=Jt&&c===void 0?s:c,this}It.prototype.clear=Fn,It.prototype.delete=$n,It.prototype.get=zn,It.prototype.has=Bs,It.prototype.set=Ge;function z(l){var c=-1,f=l?l.length:0;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function Vn(){this.__data__=[]}function Kn(l){var c=this.__data__,f=ve(c,l);if(f<0)return!1;var y=c.length-1;return f==y?c.pop():Hn.call(c,f,1),!0}function Gn(l){var c=this.__data__,f=ve(c,l);return f<0?void 0:c[f][1]}function Zn(l){return ve(this.__data__,l)>-1}function Wn(l,c){var f=this.__data__,y=ve(f,l);return y<0?f.push([l,c]):f[y][1]=c,this}z.prototype.clear=Vn,z.prototype.delete=Kn,z.prototype.get=Gn,z.prototype.has=Zn,z.prototype.set=Wn;function G(l){var c=-1,f=l?l.length:0;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function Xn(){this.__data__={hash:new It,map:new(Qt||z),string:new It}}function Yn(l){return se(this,l).delete(l)}function Qn(l){return se(this,l).get(l)}function Jn(l){return se(this,l).has(l)}function tr(l,c){return se(this,l).set(l,c),this}G.prototype.clear=Xn,G.prototype.delete=Yn,G.prototype.get=Qn,G.prototype.has=Jn,G.prototype.set=tr;function tt(l){this.__data__=new z(l)}function er(){this.__data__=new z}function sr(l){return this.__data__.delete(l)}function nr(l){return this.__data__.get(l)}function rr(l){return this.__data__.has(l)}function ir(l,c){var f=this.__data__;if(f instanceof z){var y=f.__data__;if(!Qt||y.length<e-1)return y.push([l,c]),this;f=this.__data__=new G(y)}return f.set(l,c),this}tt.prototype.clear=er,tt.prototype.delete=sr,tt.prototype.get=nr,tt.prototype.has=rr,tt.prototype.set=ir;function ye(l,c){var f=Ye(l)||Ne(l)?Me(l.length,String):[],y=f.length,I=!!y;for(var C in l)(c||At.call(l,C))&&!(I&&(C=="length"||vr(C,y)))&&f.push(C);return f}function Ms(l,c,f){var y=l[c];(!(At.call(l,c)&&Hs(y,f))||f===void 0&&!(c in l))&&(l[c]=f)}function ve(l,c){for(var f=l.length;f--;)if(Hs(l[f][0],c))return f;return-1}function wt(l,c){return l&&Xe(c,Je(c),l)}function Ze(l,c,f,y,I,C,_){var B;if(y&&(B=C?y(l,I,C,_):y(l)),B!==void 0)return B;if(!Tt(l))return l;var j=Ye(l);if(j){if(B=br(l),!c)return gr(l,B)}else{var M=Rt(l),Z=M==g||M==b;if(Fs(l))return Ee(l,c);if(M==m||M==i||Z&&!C){if(De(l))return C?l:{};if(B=xt(Z?{}:l),!c)return pr(l,wt(B,l))}else{if(!D[M])return C?l:{};B=yr(l,M,Ze,c)}}_||(_=new tt);var et=_.get(l);if(et)return et;if(_.set(l,B),!j)var F=f?mr(l):Je(l);return xs(F||l,function(W,V){F&&(V=W,W=l[V]),Ms(B,V,Ze(W,c,f,y,V,l,_))}),B}function lr(l){return Tt(l)?Os(l):{}}function or(l,c,f){var y=c(l);return Ye(l)?y:Ts(y,f(l))}function ar(l){return de.call(l)}function cr(l){if(!Tt(l)||Nr(l))return!1;var c=Qe(l)||De(l)?jn:_n;return c.test(J(l))}function ur(l){if(!Ps(l))return _s(l);var c=[];for(var f in Object(l))At.call(l,f)&&f!="constructor"&&c.push(f);return c}function Ee(l,c){if(c)return l.slice();var f=new l.constructor(l.length);return l.copy(f),f}function We(l){var c=new l.constructor(l.byteLength);return new je(c).set(new je(l)),c}function ee(l,c){var f=c?We(l.buffer):l.buffer;return new l.constructor(f,l.byteOffset,l.byteLength)}function Ds(l,c,f){var y=c?f(qs(l),!0):qs(l);return Be(y,Dn,new l.constructor)}function Us(l){var c=new l.constructor(l.source,In.exec(l));return c.lastIndex=l.lastIndex,c}function hr(l,c,f){var y=c?f(Ss(l),!0):Ss(l);return Be(y,bt,new l.constructor)}function fr(l){return Rs?Object(Rs.call(l)):{}}function dr(l,c){var f=c?We(l.buffer):l.buffer;return new l.constructor(f,l.byteOffset,l.length)}function gr(l,c){var f=-1,y=l.length;for(c||(c=Array(y));++f<y;)c[f]=l[f];return c}function Xe(l,c,f,y){f||(f={});for(var I=-1,C=c.length;++I<C;){var _=c[I],B=y?y(f[_],l[_],_,f,l):void 0;Ms(f,_,B===void 0?l[_]:B)}return f}function pr(l,c){return Xe(l,_t(l),c)}function mr(l){return or(l,Je,_t)}function se(l,c){var f=l.__data__;return Er(c)?f[typeof c=="string"?"string":"hash"]:f.map}function vt(l,c){var f=Ls(l,c);return cr(f)?f:void 0}var _t=He?Ue(He,Object):wr,Rt=ar;(me&&Rt(new me(new ArrayBuffer(1)))!=O||Qt&&Rt(new Qt)!=d||yt&&Rt(yt.resolve())!=E||be&&Rt(new be)!=A||Fe&&Rt(new Fe)!=k)&&(Rt=function(l){var c=de.call(l),f=c==m?l.constructor:void 0,y=f?J(f):void 0;if(y)switch(y){case $e:return O;case te:return d;case ze:return E;case Ve:return A;case Ke:return k}return c});function br(l){var c=l.length,f=l.constructor(c);return c&&typeof l[0]=="string"&&At.call(l,"index")&&(f.index=l.index,f.input=l.input),f}function xt(l){return typeof l.constructor=="function"&&!Ps(l)?lr(at(l)):{}}function yr(l,c,f,y){var I=l.constructor;switch(c){case L:return We(l);case a:case u:return new I(+l);case O:return ee(l,y);case R:case P:case Ot:case Pt:case Wt:case Xt:case vs:case Es:case Ns:return dr(l,y);case d:return Ds(l,y,f);case p:case w:return new I(l);case N:return Us(l);case A:return hr(l,y,f);case x:return fr(l)}}function vr(l,c){return c=c??n,!!c&&(typeof l=="number"||Rn.test(l))&&l>-1&&l%1==0&&l<c}function Er(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Nr(l){return!!ks&&ks in l}function Ps(l){var c=l&&l.constructor,f=typeof c=="function"&&c.prototype||fe;return l===f}function J(l){if(l!=null){try{return Cs.call(l)}catch{}try{return l+""}catch{}}return""}function js(l){return Ze(l,!0,!0)}function Hs(l,c){return l===c||l!==l&&c!==c}function Ne(l){return Ar(l)&&At.call(l,"callee")&&(!Is.call(l,"callee")||de.call(l)==i)}var Ye=Array.isArray;function Ae(l){return l!=null&&$s(l.length)&&!Qe(l)}function Ar(l){return zs(l)&&Ae(l)}var Fs=pe||xr;function Qe(l){var c=Tt(l)?de.call(l):"";return c==g||c==b}function $s(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=n}function Tt(l){var c=typeof l;return!!l&&(c=="object"||c=="function")}function zs(l){return!!l&&typeof l=="object"}function Je(l){return Ae(l)?ye(l):ur(l)}function wr(){return[]}function xr(){return!1}r.exports=js}(ls,ls.exports);var $r=ls.exports,os={exports:{}};os.exports,function(r,t){var e=200,s="__lodash_hash_undefined__",n=1,i=2,o=9007199254740991,a="[object Arguments]",u="[object Array]",h="[object AsyncFunction]",g="[object Boolean]",b="[object Date]",d="[object Error]",p="[object Function]",m="[object GeneratorFunction]",E="[object Map]",N="[object Number]",A="[object Null]",w="[object Object]",x="[object Promise]",k="[object Proxy]",L="[object RegExp]",O="[object Set]",R="[object String]",P="[object Symbol]",Ot="[object Undefined]",Pt="[object WeakMap]",Wt="[object ArrayBuffer]",Xt="[object DataView]",vs="[object Float32Array]",Es="[object Float64Array]",Ns="[object Int8Array]",On="[object Int16Array]",In="[object Int32Array]",_n="[object Uint8Array]",Rn="[object Uint8ClampedArray]",D="[object Uint16Array]",Bn="[object Uint32Array]",Mn=/[\\^$.*+?()[\]{}|]/g,mt=/^\[object .+?Constructor\]$/,As=/^(?:0|[1-9]\d*)$/,U={};U[vs]=U[Es]=U[Ns]=U[On]=U[In]=U[_n]=U[Rn]=U[D]=U[Bn]=!0,U[a]=U[u]=U[Wt]=U[g]=U[Xt]=U[b]=U[d]=U[p]=U[E]=U[N]=U[w]=U[L]=U[O]=U[R]=U[Pt]=!1;var ws=typeof qt=="object"&&qt&&qt.Object===Object&&qt,Dn=typeof self=="object"&&self&&self.Object===Object&&self,bt=ws||Dn||Function("return this")(),xs=t&&!t.nodeType&&t,Ts=xs&&!0&&r&&!r.nodeType&&r,Be=Ts&&Ts.exports===xs,Me=Be&&ws.process,Ls=function(){try{return Me&&Me.binding&&Me.binding("util")}catch{}}(),De=Ls&&Ls.isTypedArray;function qs(l,c){for(var f=-1,y=l==null?0:l.length,I=0,C=[];++f<y;){var _=l[f];c(_,f,l)&&(C[I++]=_)}return C}function Ue(l,c){for(var f=-1,y=c.length,I=l.length;++f<y;)l[I+f]=c[f];return l}function Ss(l,c){for(var f=-1,y=l==null?0:l.length;++f<y;)if(c(l[f],f,l))return!0;return!1}function Un(l,c){for(var f=-1,y=Array(l);++f<l;)y[f]=c(f);return y}function Pn(l){return function(c){return l(c)}}function fe(l,c){return l.has(c)}function Pe(l,c){return l?.[c]}function ks(l){var c=-1,f=Array(l.size);return l.forEach(function(y,I){f[++c]=[I,y]}),f}function Cs(l,c){return function(f){return l(c(f))}}function At(l){var c=-1,f=Array(l.size);return l.forEach(function(y){f[++c]=y}),f}var de=Array.prototype,jn=Function.prototype,Yt=Object.prototype,ge=bt["__core-js_shared__"],je=jn.toString,at=Yt.hasOwnProperty,Os=function(){var l=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Is=Yt.toString,Hn=RegExp("^"+je.call(at).replace(Mn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=Be?bt.Buffer:void 0,pe=bt.Symbol,_s=bt.Uint8Array,me=Yt.propertyIsEnumerable,Qt=de.splice,yt=pe?pe.toStringTag:void 0,be=Object.getOwnPropertySymbols,Fe=He?He.isBuffer:void 0,Jt=Cs(Object.keys,Object),$e=_t(bt,"DataView"),te=_t(bt,"Map"),ze=_t(bt,"Promise"),Ve=_t(bt,"Set"),Ke=_t(bt,"WeakMap"),jt=_t(Object,"create"),Rs=J($e),It=J(te),Fn=J(ze),$n=J(Ve),zn=J(Ke),Bs=pe?pe.prototype:void 0,Ge=Bs?Bs.valueOf:void 0;function z(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function Vn(){this.__data__=jt?jt(null):{},this.size=0}function Kn(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function Gn(l){var c=this.__data__;if(jt){var f=c[l];return f===s?void 0:f}return at.call(c,l)?c[l]:void 0}function Zn(l){var c=this.__data__;return jt?c[l]!==void 0:at.call(c,l)}function Wn(l,c){var f=this.__data__;return this.size+=this.has(l)?0:1,f[l]=jt&&c===void 0?s:c,this}z.prototype.clear=Vn,z.prototype.delete=Kn,z.prototype.get=Gn,z.prototype.has=Zn,z.prototype.set=Wn;function G(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function Xn(){this.__data__=[],this.size=0}function Yn(l){var c=this.__data__,f=Ee(c,l);if(f<0)return!1;var y=c.length-1;return f==y?c.pop():Qt.call(c,f,1),--this.size,!0}function Qn(l){var c=this.__data__,f=Ee(c,l);return f<0?void 0:c[f][1]}function Jn(l){return Ee(this.__data__,l)>-1}function tr(l,c){var f=this.__data__,y=Ee(f,l);return y<0?(++this.size,f.push([l,c])):f[y][1]=c,this}G.prototype.clear=Xn,G.prototype.delete=Yn,G.prototype.get=Qn,G.prototype.has=Jn,G.prototype.set=tr;function tt(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var y=l[c];this.set(y[0],y[1])}}function er(){this.size=0,this.__data__={hash:new z,map:new(te||G),string:new z}}function sr(l){var c=vt(this,l).delete(l);return this.size-=c?1:0,c}function nr(l){return vt(this,l).get(l)}function rr(l){return vt(this,l).has(l)}function ir(l,c){var f=vt(this,l),y=f.size;return f.set(l,c),this.size+=f.size==y?0:1,this}tt.prototype.clear=er,tt.prototype.delete=sr,tt.prototype.get=nr,tt.prototype.has=rr,tt.prototype.set=ir;function ye(l){var c=-1,f=l==null?0:l.length;for(this.__data__=new tt;++c<f;)this.add(l[c])}function Ms(l){return this.__data__.set(l,s),this}function ve(l){return this.__data__.has(l)}ye.prototype.add=ye.prototype.push=Ms,ye.prototype.has=ve;function wt(l){var c=this.__data__=new G(l);this.size=c.size}function Ze(){this.__data__=new G,this.size=0}function lr(l){var c=this.__data__,f=c.delete(l);return this.size=c.size,f}function or(l){return this.__data__.get(l)}function ar(l){return this.__data__.has(l)}function cr(l,c){var f=this.__data__;if(f instanceof G){var y=f.__data__;if(!te||y.length<e-1)return y.push([l,c]),this.size=++f.size,this;f=this.__data__=new tt(y)}return f.set(l,c),this.size=f.size,this}wt.prototype.clear=Ze,wt.prototype.delete=lr,wt.prototype.get=or,wt.prototype.has=ar,wt.prototype.set=cr;function ur(l,c){var f=Ne(l),y=!f&&Hs(l),I=!f&&!y&&Ae(l),C=!f&&!y&&!I&&zs(l),_=f||y||I||C,B=_?Un(l.length,String):[],j=B.length;for(var M in l)(c||at.call(l,M))&&!(_&&(M=="length"||I&&(M=="offset"||M=="parent")||C&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||yr(M,j)))&&B.push(M);return B}function Ee(l,c){for(var f=l.length;f--;)if(js(l[f][0],c))return f;return-1}function We(l,c,f){var y=c(l);return Ne(l)?y:Ue(y,f(l))}function ee(l){return l==null?l===void 0?Ot:A:yt&&yt in Object(l)?Rt(l):Ps(l)}function Ds(l){return Tt(l)&&ee(l)==a}function Us(l,c,f,y,I){return l===c?!0:l==null||c==null||!Tt(l)&&!Tt(c)?l!==l&&c!==c:hr(l,c,f,y,Us,I)}function hr(l,c,f,y,I,C){var _=Ne(l),B=Ne(c),j=_?u:xt(l),M=B?u:xt(c);j=j==a?w:j,M=M==a?w:M;var Z=j==w,et=M==w,F=j==M;if(F&&Ae(l)){if(!Ae(c))return!1;_=!0,Z=!1}if(F&&!Z)return C||(C=new wt),_||zs(l)?Xe(l,c,f,y,I,C):pr(l,c,j,f,y,I,C);if(!(f&n)){var W=Z&&at.call(l,"__wrapped__"),V=et&&at.call(c,"__wrapped__");if(W||V){var Ht=W?l.value():l,Bt=V?c.value():c;return C||(C=new wt),I(Ht,Bt,f,y,C)}}return F?(C||(C=new wt),mr(l,c,f,y,I,C)):!1}function fr(l){if(!$s(l)||Er(l))return!1;var c=Fs(l)?Hn:mt;return c.test(J(l))}function dr(l){return Tt(l)&&Qe(l.length)&&!!U[ee(l)]}function gr(l){if(!Nr(l))return Jt(l);var c=[];for(var f in Object(l))at.call(l,f)&&f!="constructor"&&c.push(f);return c}function Xe(l,c,f,y,I,C){var _=f&n,B=l.length,j=c.length;if(B!=j&&!(_&&j>B))return!1;var M=C.get(l);if(M&&C.get(c))return M==c;var Z=-1,et=!0,F=f&i?new ye:void 0;for(C.set(l,c),C.set(c,l);++Z<B;){var W=l[Z],V=c[Z];if(y)var Ht=_?y(V,W,Z,c,l,C):y(W,V,Z,l,c,C);if(Ht!==void 0){if(Ht)continue;et=!1;break}if(F){if(!Ss(c,function(Bt,ne){if(!fe(F,ne)&&(W===Bt||I(W,Bt,f,y,C)))return F.push(ne)})){et=!1;break}}else if(!(W===V||I(W,V,f,y,C))){et=!1;break}}return C.delete(l),C.delete(c),et}function pr(l,c,f,y,I,C,_){switch(f){case Xt:if(l.byteLength!=c.byteLength||l.byteOffset!=c.byteOffset)return!1;l=l.buffer,c=c.buffer;case Wt:return!(l.byteLength!=c.byteLength||!C(new _s(l),new _s(c)));case g:case b:case N:return js(+l,+c);case d:return l.name==c.name&&l.message==c.message;case L:case R:return l==c+"";case E:var B=ks;case O:var j=y&n;if(B||(B=At),l.size!=c.size&&!j)return!1;var M=_.get(l);if(M)return M==c;y|=i,_.set(l,c);var Z=Xe(B(l),B(c),y,I,C,_);return _.delete(l),Z;case P:if(Ge)return Ge.call(l)==Ge.call(c)}return!1}function mr(l,c,f,y,I,C){var _=f&n,B=se(l),j=B.length,M=se(c),Z=M.length;if(j!=Z&&!_)return!1;for(var et=j;et--;){var F=B[et];if(!(_?F in c:at.call(c,F)))return!1}var W=C.get(l);if(W&&C.get(c))return W==c;var V=!0;C.set(l,c),C.set(c,l);for(var Ht=_;++et<j;){F=B[et];var Bt=l[F],ne=c[F];if(y)var Ui=_?y(ne,Bt,F,c,l,C):y(Bt,ne,F,l,c,C);if(!(Ui===void 0?Bt===ne||I(Bt,ne,f,y,C):Ui)){V=!1;break}Ht||(Ht=F=="constructor")}if(V&&!Ht){var Vs=l.constructor,Ks=c.constructor;Vs!=Ks&&"constructor"in l&&"constructor"in c&&!(typeof Vs=="function"&&Vs instanceof Vs&&typeof Ks=="function"&&Ks instanceof Ks)&&(V=!1)}return C.delete(l),C.delete(c),V}function se(l){return We(l,Je,br)}function vt(l,c){var f=l.__data__;return vr(c)?f[typeof c=="string"?"string":"hash"]:f.map}function _t(l,c){var f=Pe(l,c);return fr(f)?f:void 0}function Rt(l){var c=at.call(l,yt),f=l[yt];try{l[yt]=void 0;var y=!0}catch{}var I=Is.call(l);return y&&(c?l[yt]=f:delete l[yt]),I}var br=be?function(l){return l==null?[]:(l=Object(l),qs(be(l),function(c){return me.call(l,c)}))}:wr,xt=ee;($e&&xt(new $e(new ArrayBuffer(1)))!=Xt||te&&xt(new te)!=E||ze&&xt(ze.resolve())!=x||Ve&&xt(new Ve)!=O||Ke&&xt(new Ke)!=Pt)&&(xt=function(l){var c=ee(l),f=c==w?l.constructor:void 0,y=f?J(f):"";if(y)switch(y){case Rs:return Xt;case It:return E;case Fn:return x;case $n:return O;case zn:return Pt}return c});function yr(l,c){return c=c??o,!!c&&(typeof l=="number"||As.test(l))&&l>-1&&l%1==0&&l<c}function vr(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Er(l){return!!Os&&Os in l}function Nr(l){var c=l&&l.constructor,f=typeof c=="function"&&c.prototype||Yt;return l===f}function Ps(l){return Is.call(l)}function J(l){if(l!=null){try{return je.call(l)}catch{}try{return l+""}catch{}}return""}function js(l,c){return l===c||l!==l&&c!==c}var Hs=Ds(function(){return arguments}())?Ds:function(l){return Tt(l)&&at.call(l,"callee")&&!me.call(l,"callee")},Ne=Array.isArray;function Ye(l){return l!=null&&Qe(l.length)&&!Fs(l)}var Ae=Fe||xr;function Ar(l,c){return Us(l,c)}function Fs(l){if(!$s(l))return!1;var c=ee(l);return c==p||c==m||c==h||c==k}function Qe(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=o}function $s(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function Tt(l){return l!=null&&typeof l=="object"}var zs=De?Pn(De):dr;function Je(l){return Ye(l)?ur(l):gr(l)}function wr(){return[]}function xr(){return!1}r.exports=Ar}(os,os.exports);var zr=os.exports,nn={};Object.defineProperty(nn,"__esModule",{value:!0});const ll=$r,ol=zr;var rn;(function(r){function t(i={},o={},a=!1){typeof i!="object"&&(i={}),typeof o!="object"&&(o={});let u=ll(o);a||(u=Object.keys(u).reduce((h,g)=>(u[g]!=null&&(h[g]=u[g]),h),{}));for(const h in i)i[h]!==void 0&&o[h]===void 0&&(u[h]=i[h]);return Object.keys(u).length>0?u:void 0}r.compose=t;function e(i={},o={}){typeof i!="object"&&(i={}),typeof o!="object"&&(o={});const a=Object.keys(i).concat(Object.keys(o)).reduce((u,h)=>(ol(i[h],o[h])||(u[h]=o[h]===void 0?null:o[h]),u),{});return Object.keys(a).length>0?a:void 0}r.diff=e;function s(i={},o={}){i=i||{};const a=Object.keys(o).reduce((u,h)=>(o[h]!==i[h]&&i[h]!==void 0&&(u[h]=o[h]),u),{});return Object.keys(i).reduce((u,h)=>(i[h]!==o[h]&&o[h]===void 0&&(u[h]=null),u),a)}r.invert=s;function n(i,o,a=!1){if(typeof i!="object")return o;if(typeof o!="object")return;if(!a)return o;const u=Object.keys(o).reduce((h,g)=>(i[g]===void 0&&(h[g]=o[g]),h),{});return Object.keys(u).length>0?u:void 0}r.transform=n})(rn||(rn={})),nn.default=rn;var as={};Object.defineProperty(as,"__esModule",{value:!0});var ln;(function(r){function t(e){return typeof e.delete=="number"?e.delete:typeof e.retain=="number"?e.retain:typeof e.retain=="object"&&e.retain!==null?1:typeof e.insert=="string"?e.insert.length:1}r.length=t})(ln||(ln={})),as.default=ln;var on={};Object.defineProperty(on,"__esModule",{value:!0});const Vr=as;class al{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);const e=this.ops[this.index];if(e){const s=this.offset,n=Vr.default.length(e);if(t>=n-s?(t=n-s,this.index+=1,this.offset=0):this.offset+=t,typeof e.delete=="number")return{delete:t};{const i={};return e.attributes&&(i.attributes=e.attributes),typeof e.retain=="number"?i.retain=t:typeof e.retain=="object"&&e.retain!==null?i.retain=e.retain:typeof e.insert=="string"?i.insert=e.insert.substr(s,t):i.insert=e.insert,i}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?Vr.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const t=this.offset,e=this.index,s=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[s].concat(n)}}else return[]}}on.default=al,function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=il,s=$r,n=zr,i=nn;t.AttributeMap=i.default;const o=as;t.Op=o.default;const a=on;t.OpIterator=a.default;const u="\0",h=(b,d)=>{if(typeof b!="object"||b===null)throw new Error(`cannot retain a ${typeof b}`);if(typeof d!="object"||d===null)throw new Error(`cannot retain a ${typeof d}`);const p=Object.keys(b)[0];if(!p||p!==Object.keys(d)[0])throw new Error(`embed types not matched: ${p} != ${Object.keys(d)[0]}`);return[p,b[p],d[p]]};class g{constructor(d){Array.isArray(d)?this.ops=d:d!=null&&Array.isArray(d.ops)?this.ops=d.ops:this.ops=[]}static registerEmbed(d,p){this.handlers[d]=p}static unregisterEmbed(d){delete this.handlers[d]}static getHandler(d){const p=this.handlers[d];if(!p)throw new Error(`no handlers for embed type "${d}"`);return p}insert(d,p){const m={};return typeof d=="string"&&d.length===0?this:(m.insert=d,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(m.attributes=p),this.push(m))}delete(d){return d<=0?this:this.push({delete:d})}retain(d,p){if(typeof d=="number"&&d<=0)return this;const m={retain:d};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(m.attributes=p),this.push(m)}push(d){let p=this.ops.length,m=this.ops[p-1];if(d=s(d),typeof m=="object"){if(typeof d.delete=="number"&&typeof m.delete=="number")return this.ops[p-1]={delete:m.delete+d.delete},this;if(typeof m.delete=="number"&&d.insert!=null&&(p-=1,m=this.ops[p-1],typeof m!="object"))return this.ops.unshift(d),this;if(n(d.attributes,m.attributes)){if(typeof d.insert=="string"&&typeof m.insert=="string")return this.ops[p-1]={insert:m.insert+d.insert},typeof d.attributes=="object"&&(this.ops[p-1].attributes=d.attributes),this;if(typeof d.retain=="number"&&typeof m.retain=="number")return this.ops[p-1]={retain:m.retain+d.retain},typeof d.attributes=="object"&&(this.ops[p-1].attributes=d.attributes),this}}return p===this.ops.length?this.ops.push(d):this.ops.splice(p,0,d),this}chop(){const d=this.ops[this.ops.length-1];return d&&typeof d.retain=="number"&&!d.attributes&&this.ops.pop(),this}filter(d){return this.ops.filter(d)}forEach(d){this.ops.forEach(d)}map(d){return this.ops.map(d)}partition(d){const p=[],m=[];return this.forEach(E=>{(d(E)?p:m).push(E)}),[p,m]}reduce(d,p){return this.ops.reduce(d,p)}changeLength(){return this.reduce((d,p)=>p.insert?d+o.default.length(p):p.delete?d-p.delete:d,0)}length(){return this.reduce((d,p)=>d+o.default.length(p),0)}slice(d=0,p=1/0){const m=[],E=new a.default(this.ops);let N=0;for(;N<p&&E.hasNext();){let A;N<d?A=E.next(d-N):(A=E.next(p-N),m.push(A)),N+=o.default.length(A)}return new g(m)}compose(d){const p=new a.default(this.ops),m=new a.default(d.ops),E=[],N=m.peek();if(N!=null&&typeof N.retain=="number"&&N.attributes==null){let w=N.retain;for(;p.peekType()==="insert"&&p.peekLength()<=w;)w-=p.peekLength(),E.push(p.next());N.retain-w>0&&m.next(N.retain-w)}const A=new g(E);for(;p.hasNext()||m.hasNext();)if(m.peekType()==="insert")A.push(m.next());else if(p.peekType()==="delete")A.push(p.next());else{const w=Math.min(p.peekLength(),m.peekLength()),x=p.next(w),k=m.next(w);if(k.retain){const L={};if(typeof x.retain=="number")L.retain=typeof k.retain=="number"?w:k.retain;else if(typeof k.retain=="number")x.retain==null?L.insert=x.insert:L.retain=x.retain;else{const R=x.retain==null?"insert":"retain",[P,Ot,Pt]=h(x[R],k.retain),Wt=g.getHandler(P);L[R]={[P]:Wt.compose(Ot,Pt,R==="retain")}}const O=i.default.compose(x.attributes,k.attributes,typeof x.retain=="number");if(O&&(L.attributes=O),A.push(L),!m.hasNext()&&n(A.ops[A.ops.length-1],L)){const R=new g(p.rest());return A.concat(R).chop()}}else typeof k.delete=="number"&&(typeof x.retain=="number"||typeof x.retain=="object"&&x.retain!==null)&&A.push(k)}return A.chop()}concat(d){const p=new g(this.ops.slice());return d.ops.length>0&&(p.push(d.ops[0]),p.ops=p.ops.concat(d.ops.slice(1))),p}diff(d,p){if(this.ops===d.ops)return new g;const m=[this,d].map(x=>x.map(k=>{if(k.insert!=null)return typeof k.insert=="string"?k.insert:u;const L=x===d?"on":"with";throw new Error("diff() called "+L+" non-document")}).join("")),E=new g,N=e(m[0],m[1],p,!0),A=new a.default(this.ops),w=new a.default(d.ops);return N.forEach(x=>{let k=x[1].length;for(;k>0;){let L=0;switch(x[0]){case e.INSERT:L=Math.min(w.peekLength(),k),E.push(w.next(L));break;case e.DELETE:L=Math.min(k,A.peekLength()),A.next(L),E.delete(L);break;case e.EQUAL:L=Math.min(A.peekLength(),w.peekLength(),k);const O=A.next(L),R=w.next(L);n(O.insert,R.insert)?E.retain(L,i.default.diff(O.attributes,R.attributes)):E.push(R).delete(L);break}k-=L}}),E.chop()}eachLine(d,p=`
|
|
2
2
|
`){const m=new a.default(this.ops);let E=new g,N=0;for(;m.hasNext();){if(m.peekType()!=="insert")return;const A=m.peek(),w=o.default.length(A)-m.peekLength(),x=typeof A.insert=="string"?A.insert.indexOf(p,w)-w:-1;if(x<0)E.push(m.next());else if(x>0)E.push(m.next(x));else{if(d(E,m.next(1).attributes||{},N)===!1)return;N+=1,E=new g}}E.length()>0&&d(E,{},N)}invert(d){const p=new g;return this.reduce((m,E)=>{if(E.insert)p.delete(o.default.length(E));else{if(typeof E.retain=="number"&&E.attributes==null)return p.retain(E.retain),m+E.retain;if(E.delete||typeof E.retain=="number"){const N=E.delete||E.retain;return d.slice(m,m+N).forEach(w=>{E.delete?p.push(w):E.retain&&E.attributes&&p.retain(o.default.length(w),i.default.invert(E.attributes,w.attributes))}),m+N}else if(typeof E.retain=="object"&&E.retain!==null){const N=d.slice(m,m+1),A=new a.default(N.ops).next(),[w,x,k]=h(E.retain,A.insert),L=g.getHandler(w);return p.retain({[w]:L.invert(x,k)},i.default.invert(E.attributes,A.attributes)),m+1}}return m},0),p.chop()}transform(d,p=!1){if(p=!!p,typeof d=="number")return this.transformPosition(d,p);const m=d,E=new a.default(this.ops),N=new a.default(m.ops),A=new g;for(;E.hasNext()||N.hasNext();)if(E.peekType()==="insert"&&(p||N.peekType()!=="insert"))A.retain(o.default.length(E.next()));else if(N.peekType()==="insert")A.push(N.next());else{const w=Math.min(E.peekLength(),N.peekLength()),x=E.next(w),k=N.next(w);if(x.delete)continue;if(k.delete)A.push(k);else{const L=x.retain,O=k.retain;let R=typeof O=="object"&&O!==null?O:w;if(typeof L=="object"&&L!==null&&typeof O=="object"&&O!==null){const P=Object.keys(L)[0];if(P===Object.keys(O)[0]){const Ot=g.getHandler(P);Ot&&(R={[P]:Ot.transform(L[P],O[P],p)})}}A.retain(R,i.default.transform(x.attributes,k.attributes,p))}}return A.chop()}transformPosition(d,p=!1){p=!!p;const m=new a.default(this.ops);let E=0;for(;m.hasNext()&&E<=d;){const N=m.peekLength(),A=m.peekType();if(m.next(),A==="delete"){d-=Math.min(N,d-E);continue}else A==="insert"&&(E<d||!p)&&(d+=N);E+=N}return d}}g.Op=o.default,g.OpIterator=a.default,g.AttributeMap=i.default,g.handlers={},t.default=g,r.exports=g,r.exports.default=g}(Js,Js.exports);var rt=Js.exports,S=Gs(rt);class ht extends st{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}ht.blotName="break",ht.tagName="BR";let ft=class extends ns{};function cs(r){return r.replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t])}class Y extends Ws{static allowedChildren=[Y,ht,st,ft];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,e){const s=Y.order.indexOf(t),n=Y.order.indexOf(e);return s>=0||n>=0?s-n:t===e?0:t<e?-1:1}formatAt(t,e,s,n){if(Y.compare(this.statics.blotName,s)<0&&this.scroll.query(s,T.BLOT)){const i=this.isolate(t,e);n&&i.wrap(s,n)}else super.formatAt(t,e,s,n)}optimize(t){if(super.optimize(t),this.parent instanceof Y&&Y.compare(this.statics.blotName,this.parent.statics.blotName)>0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}}const Kr=1;class $ extends xe{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=Gr(this)),this.cache.delta}deleteAt(t,e){super.deleteAt(t,e),this.cache={}}formatAt(t,e,s,n){e<=0||(this.scroll.query(s,T.BLOCK)?t+e===this.length()&&this.format(s,n):super.formatAt(t,Math.min(e,this.length()-t-1),s,n),this.cache={})}insertAt(t,e,s){if(s!=null){super.insertAt(t,e,s),this.cache={};return}if(e.length===0)return;const n=e.split(`
|
|
3
3
|
`),i=n.shift();i.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});let o=this;n.reduce((a,u)=>(o=o.split(a,!0),o.insertAt(0,u),u.length),t+i.length)}insertBefore(t,e){const{head:s}=this.children;super.insertBefore(t,e),s instanceof ht&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+Kr),this.cache.length}moveChildren(t,e){super.moveChildren(t,e),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e&&(t===0||t>=this.length()-Kr)){const n=this.clone();return t===0?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}const s=super.split(t,e);return this.cache={},s}}$.blotName="block",$.tagName="P",$.defaultChild=ht,$.allowedChildren=[ht,Y,st,ft];class it extends st{attach(){super.attach(),this.attributes=new es(this.domNode)}delta(){return new S().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const s=this.scroll.query(t,T.BLOCK_ATTRIBUTE);s!=null&&this.attributes.attribute(s,e)}formatAt(t,e,s,n){this.format(s,n)}insertAt(t,e,s){if(s!=null){super.insertAt(t,e,s);return}const n=e.split(`
|
|
4
4
|
`),i=n.pop(),o=n.map(u=>{const h=this.scroll.create($.blotName);return h.insertAt(0,u),h}),a=this.split(t);o.forEach(u=>{this.parent.insertBefore(u,a)}),i&&this.parent.insertBefore(this.scroll.create("text",i),a)}}it.scope=T.BLOCK_BLOT;function Gr(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(K).reduce((e,s)=>s.length()===0?e:e.insert(s.value(),lt(s,{},t)),new S).insert(`
|
|
@@ -47,4 +47,4 @@ ${cs(this.code(t,e))}
|
|
|
47
47
|
`).reduce((o,a,u)=>(u!==0&&o.insert(`
|
|
48
48
|
`,{[Q.blotName]:e}),o.insert(a)),i)],new WeakMap)}}Li.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class pt extends ${static blotName="table";static tagName="TD";static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",kn()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===pt.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class Zt extends Vt{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),e=this.children.tail.formats(),s=this.next.children.head.formats(),n=this.next.children.tail.formats();return t.table===e.table&&t.table===s.table&&t.table===n.table}return!1}optimize(t){super.optimize(t),this.children.forEach(e=>{if(e.next==null)return;const s=e.formats(),n=e.next.formats();if(s.table!==n.table){const i=this.splitAfter(e);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class Ut extends Vt{static blotName="table-body";static tagName="TBODY"}class bs extends Vt{static blotName="table-container";static tagName="TABLE";balanceCells(){const t=this.descendants(Zt),e=t.reduce((s,n)=>Math.max(n.children.length,s),0);t.forEach(s=>{new Array(e-s.children.length).fill(0).forEach(()=>{let n;s.children.head!=null&&(n=pt.formats(s.children.head.domNode));const i=this.scroll.create(pt.blotName,n);s.appendChild(i),i.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(Ut);e==null||e.children.head==null||e.children.forEach(s=>{const n=s.children.at(t);n?.remove()})}insertColumn(t){const[e]=this.descendant(Ut);e==null||e.children.head==null||e.children.forEach(s=>{const n=s.children.at(t),i=pt.formats(s.children.head.domNode),o=this.scroll.create(pt.blotName,i);s.insertBefore(o,n)})}insertRow(t){const[e]=this.descendant(Ut);if(e==null||e.children.head==null)return;const s=kn(),n=this.scroll.create(Zt.blotName);e.children.head.children.forEach(()=>{const o=this.scroll.create(pt.blotName,s);n.appendChild(o)});const i=e.children.at(t);e.insertBefore(n,i)}rows(){const t=this.children.head;return t==null?[]:t.children.map(e=>e)}}bs.allowedChildren=[Ut],Ut.requiredContainer=bs,Ut.allowedChildren=[Zt],Zt.requiredContainer=Ut,Zt.allowedChildren=[pt],pt.requiredContainer=Zt;function kn(){return`row-${Math.random().toString(36).slice(2,6)}`}class Oo extends Nt{static register(){v.register(pt),v.register(Zt),v.register(Ut),v.register(bs)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(bs).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();e!=null&&(t.deleteColumn(e.cellOffset()),this.quill.update(v.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(v.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const e=t.offset();t.remove(),this.quill.update(v.sources.USER),this.quill.setSelection(e,v.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[e,s]=this.quill.getLine(t.index);if(e==null||e.statics.blotName!==pt.blotName)return[null,null,null,-1];const n=e.parent;return[n.parent.parent,n,e,s]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[s,n,i]=this.getTable(e);if(i==null)return;const o=i.cellOffset();s.insertColumn(o+t),this.quill.update(v.sources.USER);let a=n.rowOffset();t===0&&(a+=1),this.quill.setSelection(e.index+a,e.length,v.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[s,n,i]=this.getTable(e);if(i==null)return;const o=n.rowOffset();s.insertRow(o+t),this.quill.update(v.sources.USER),t>0?this.quill.setSelection(e,v.sources.SILENT):this.quill.setSelection(e.index+n.children.length,e.length,v.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const s=this.quill.getSelection();if(s==null)return;const n=new Array(t).fill(0).reduce(i=>{const o=new Array(e).fill(`
|
|
49
49
|
`).join("");return i.insert(o,{table:kn()})},new S().retain(s.index));this.quill.updateContents(n,v.sources.USER),this.quill.setSelection(s.index,v.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(v.events.SCROLL_OPTIMIZE,t=>{t.some(e=>["TD","TR","TBODY","TABLE"].includes(e.target.tagName)?(this.quill.once(v.events.TEXT_CHANGE,(s,n,i)=>{i===v.sources.USER&&this.balanceTables()}),!0):!1)})}}const qi=St("quill:toolbar");class Cn extends Nt{constructor(t,e){if(super(t,e),Array.isArray(this.options.container)){const s=document.createElement("div");s.setAttribute("role","toolbar"),Io(s,this.options.container),t.container?.parentNode?.insertBefore(s,t.container),this.container=s}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){qi.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(s=>{const n=this.options.handlers?.[s];n&&this.addHandler(s,n)}),Array.from(this.container.querySelectorAll("button, select")).forEach(s=>{this.attach(s)}),this.quill.on(v.events.EDITOR_CHANGE,()=>{const[s]=this.quill.selection.getRange();this.update(s)})}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(n=>n.indexOf("ql-")===0);if(!e)return;if(e=e.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[e]==null&&this.quill.scroll.query(e)==null){qi.warn("ignoring attaching to nonexistent format",e,t);return}const s=t.tagName==="SELECT"?"change":"click";t.addEventListener(s,n=>{let i;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const a=t.options[t.selectedIndex];a.hasAttribute("selected")?i=!1:i=a.value||!1}else t.classList.contains("ql-active")?i=!1:i=t.value||!t.hasAttribute("value"),n.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[e]!=null)this.handlers[e].call(this,i);else if(this.quill.scroll.query(e).prototype instanceof st){if(i=prompt(`Enter ${e}`),!i)return;this.quill.updateContents(new S().retain(o.index).delete(o.length).insert({[e]:i}),v.sources.USER)}else this.quill.format(e,i,v.sources.USER);this.update(o)}),this.controls.push([e,t])}update(t){const e=t==null?{}:this.quill.getFormat(t);this.controls.forEach(s=>{const[n,i]=s;if(i.tagName==="SELECT"){let o=null;if(t==null)o=null;else if(e[n]==null)o=i.querySelector("option[selected]");else if(!Array.isArray(e[n])){let a=e[n];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),o=i.querySelector(`option[value="${a}"]`)}o==null?(i.value="",i.selectedIndex=-1):o.selected=!0}else if(t==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const o=e[n],a=o===i.getAttribute("value")||o!=null&&o.toString()===i.getAttribute("value")||o==null&&!i.getAttribute("value");i.classList.toggle("ql-active",a),i.setAttribute("aria-pressed",a.toString())}else{const o=e[n]!=null;i.classList.toggle("ql-active",o),i.setAttribute("aria-pressed",o.toString())}})}}Cn.DEFAULTS={};function Si(r,t,e){const s=document.createElement("button");s.setAttribute("type","button"),s.classList.add(`ql-${t}`),s.setAttribute("aria-pressed","false"),e!=null?(s.value=e,s.setAttribute("aria-label",`${t}: ${e}`)):s.setAttribute("aria-label",t),r.appendChild(s)}function Io(r,t){Array.isArray(t[0])||(t=[t]),t.forEach(e=>{const s=document.createElement("span");s.classList.add("ql-formats"),e.forEach(n=>{if(typeof n=="string")Si(s,n);else{const i=Object.keys(n)[0],o=n[i];Array.isArray(o)?_o(s,i,o):Si(s,i,o)}}),r.appendChild(s)})}function _o(r,t,e){const s=document.createElement("select");s.classList.add(`ql-${t}`),e.forEach(n=>{const i=document.createElement("option");n!==!1?i.setAttribute("value",String(n)):i.setAttribute("selected","selected"),s.appendChild(i)}),r.appendChild(s)}Cn.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(e=>{this.quill.scroll.query(e,T.INLINE)!=null&&this.quill.format(e,!1,v.sources.USER)})}else this.quill.removeFormat(r.index,r.length,v.sources.USER)},direction(r){const{align:t}=this.quill.getFormat();r==="rtl"&&t==null?this.quill.format("align","right",v.sources.USER):!r&&t==="right"&&this.quill.format("align",!1,v.sources.USER),this.quill.format("direction",r,v.sources.USER)},indent(r){const t=this.quill.getSelection(),e=this.quill.getFormat(t),s=parseInt(e.indent||0,10);if(r==="+1"||r==="-1"){let n=r==="+1"?1:-1;e.direction==="rtl"&&(n*=-1),this.quill.format("indent",s+n,v.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,v.sources.USER)},list(r){const t=this.quill.getSelection(),e=this.quill.getFormat(t);r==="check"?e.list==="checked"||e.list==="unchecked"?this.quill.format("list",!1,v.sources.USER):this.quill.format("list","unchecked",v.sources.USER):this.quill.format("list",r,v.sources.USER)}}};const Ro='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Bo='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Mo='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Do='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',Uo='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Po='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',jo='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',Ho='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',ki='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>';var Ie={align:{"":Ro,center:Bo,right:Mo,justify:Do},background:Uo,blockquote:Po,bold:jo,clean:Ho,code:ki,"code-block":ki,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};const Fo='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let Ci=0;function Oi(r,t){r.setAttribute(t,`${r.getAttribute(t)!=="true"}`)}class ys{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Oi(this.label,"aria-expanded"),Oi(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item");const s=t.getAttribute("value");return s&&e.setAttribute("data-value",s),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",()=>{this.selectItem(e,!0)}),e.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.selectItem(e,!0),n.preventDefault();break;case"Escape":this.escape(),n.preventDefault();break}}),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=Fo,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${Ci}`,Ci+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{const s=this.buildItem(e);t.appendChild(s),e.selected===!0&&this.selectItem(s)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const s=this.container.querySelector(".ql-selected");t!==s&&(s?.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const s=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(s)}else this.selectItem(null);const e=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}class Ii extends ys{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(s=>{s.classList.add("ql-primary")})}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const s=this.label.querySelector(".ql-color-label"),n=t&&t.getAttribute("data-value")||"";s&&(s.tagName==="line"?s.style.stroke=n:s.style.fill=n)}}class _i extends ys{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(s=>{s.innerHTML=e[s.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const s=t||this.defaultItem;if(s!=null){if(this.label.innerHTML===s.innerHTML)return;this.label.innerHTML=s.innerHTML}}}const $o=r=>{const{overflowY:t}=getComputedStyle(r,null);return t!=="visible"&&t!=="clip"};class Ri{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,$o(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2,s=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${s}px`,this.root.classList.remove("ql-flip");const n=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let o=0;if(i.right>n.right&&(o=n.right-i.right,this.root.style.left=`${e+o}px`),i.left<n.left&&(o=n.left-i.left,this.root.style.left=`${e+o}px`),i.bottom>n.bottom){const a=i.bottom-i.top,u=t.bottom-t.top+a;this.root.style.top=`${s-u}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const zo=[!1,"center","right","justify"],Vo=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Ko=[!1,"serif","monospace"],Go=["1","2","3",!1],Zo=["small",!1,"large","huge"];class _e extends ue{constructor(t,e){super(t,e);const s=n=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",s);return}this.tooltip!=null&&!this.tooltip.root.contains(n.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(n.target)||i.close()})};t.emitter.listenDOM("click",document.body,s)}addModule(t){const e=super.addModule(t);return t==="toolbar"&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach(s=>{(s.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),e[i]!=null))if(i==="direction")s.innerHTML=e[i][""]+e[i].rtl;else if(typeof e[i]=="string")s.innerHTML=e[i];else{const o=s.value||"";o!=null&&e[i][o]&&(s.innerHTML=e[i][o])}})})}buildPickers(t,e){this.pickers=Array.from(t).map(n=>{if(n.classList.contains("ql-align")&&(n.querySelector("option")==null&&Re(n,zo),typeof e.align=="object"))return new _i(n,e.align);if(n.classList.contains("ql-background")||n.classList.contains("ql-color")){const i=n.classList.contains("ql-background")?"background":"color";return n.querySelector("option")==null&&Re(n,Vo,i==="background"?"#ffffff":"#000000"),new Ii(n,e[i])}return n.querySelector("option")==null&&(n.classList.contains("ql-font")?Re(n,Ko):n.classList.contains("ql-header")?Re(n,Go):n.classList.contains("ql-size")&&Re(n,Zo)),new ys(n)});const s=()=>{this.pickers.forEach(n=>{n.update()})};this.quill.on(q.events.EDITOR_CHANGE,s)}}_e.DEFAULTS=Lt({},ue.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Bi extends Ri{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;e!=null?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const s=this.quill.getBounds(this.quill.selection.savedRange);s!=null&&this.position(s),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,q.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,q.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=Wo(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(e!=null){const s=e.index+e.length;this.quill.insertEmbed(s,this.root.getAttribute("data-mode"),t,q.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(s+1," ",q.sources.USER),this.quill.setSelection(s+2,q.sources.USER)}break}}this.textbox.value="",this.hide()}}function Wo(r){let t=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:r}function Re(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(s=>{const n=document.createElement("option");s===e?n.setAttribute("selected","selected"):n.setAttribute("value",String(s)),r.appendChild(n)})}const Xo=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Yo extends Bi{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(t,e){super(t,e),this.quill.on(q.events.EDITOR_CHANGE,(s,n,i,o)=>{if(s===q.events.SELECTION_CHANGE)if(n!=null&&n.length>0&&o===q.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(n.index,n.length);if(a.length===1){const u=this.quill.getBounds(n);u!=null&&this.position(u)}else{const u=a[a.length-1],h=this.quill.getIndex(u),g=Math.min(u.length()-1,n.index+n.length-h),b=this.quill.getBounds(new zt(h,g));b!=null&&this.position(b)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(q.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const e=this.quill.getBounds(t);e!=null&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),s=this.root.querySelector(".ql-tooltip-arrow");return s.style.marginLeft="",e!==0&&(s.style.marginLeft=`${-1*e-s.offsetWidth/2}px`),e}}class Mi extends _e{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=Xo),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Yo(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),Ie),this.buildPickers(t.container.querySelectorAll("select"),Ie))}}Mi.DEFAULTS=Lt({},_e.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,v.sources.USER)}}}}});const Qo=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Jo extends Bi{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const e=this.linkRange;this.restoreFocus(),this.quill.formatText(e,"link",!1,q.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(q.events.SELECTION_CHANGE,(t,e,s)=>{if(t!=null){if(t.length===0&&s===q.sources.USER){const[n,i]=this.quill.scroll.descendant(ms,t.index);if(n!=null){this.linkRange=new zt(t.index-i,n.length());const o=ms.formats(n.domNode);this.preview.textContent=o,this.preview.setAttribute("href",o),this.show();const a=this.quill.getBounds(this.linkRange);a!=null&&this.position(a);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class Di extends _e{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=Qo),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),Ie),this.buildPickers(t.container.querySelectorAll("select"),Ie),this.tooltip=new Jo(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,s)=>{t.handlers.link.call(t,!s.format.link)}))}}Di.DEFAULTS=Lt({},_e.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const t=this.quill.getSelection();if(t==null||t.length===0)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&e.indexOf("mailto:")!==0&&(e=`mailto:${e}`);const{tooltip:s}=this.quill.theme;s.edit("link",e)}else this.quill.format("link",!1,v.sources.USER)}}}}}),v.register({"attributors/attribute/direction":oi,"attributors/class/align":ri,"attributors/class/background":ql,"attributors/class/color":Ll,"attributors/class/direction":ai,"attributors/class/font":hi,"attributors/class/size":di,"attributors/style/align":ii,"attributors/style/background":En,"attributors/style/color":vn,"attributors/style/direction":ci,"attributors/style/font":fi,"attributors/style/size":gi},!0),v.register({"formats/align":ri,"formats/direction":ai,"formats/indent":Eo,"formats/background":En,"formats/color":vn,"formats/font":hi,"formats/size":di,"formats/blockquote":No,"formats/code-block":Q,"formats/header":Ao,"formats/list":ke,"formats/bold":Sn,"formats/code":Nn,"formats/italic":wo,"formats/link":ms,"formats/script":xo,"formats/strike":To,"formats/underline":Lo,"formats/formula":qo,"formats/image":So,"formats/video":ko,"modules/syntax":Li,"modules/table":Oo,"modules/toolbar":Cn,"themes/bubble":Mi,"themes/snow":Di,"ui/icons":Ie,"ui/picker":ys,"ui/icon-picker":_i,"ui/color-picker":Ii,"ui/tooltip":Ri},!0)}}});
|
|
50
|
-
//# sourceMappingURL=quill-
|
|
50
|
+
//# sourceMappingURL=quill-n54HJUg2.js.map
|