@newview/file-ui 1.1.55 → 1.1.56

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.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@newview/base-vue"),require("vue"),require("@newview/infrastructure"),require("@newview/fileservice-api"),require("@newview/basics-api"),require("@newview/tools"),require("@newview/permission-ui")):"function"==typeof define&&define.amd?define(["exports","@newview/base-vue","vue","@newview/infrastructure","@newview/fileservice-api","@newview/basics-api","@newview/tools","@newview/permission-ui"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).fileui={},e.baseVue,e.Vue,e.infrastructure,e.fileserviceApi,e.basicsApi,e.tools,e.permissionUi)}(this,(function(e,t,n,r,o,i,l,a){"use strict";var s=Object.defineProperty,u=(e,t,n)=>(((e,t,n)=>{t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const c={modelValue:{type:Boolean,default:!1},fileInfo:{type:Object,default:()=>{}},previewList:{type:Array,default:()=>[]},previewIndex:{type:Number,default:0}},f=n.defineComponent({name:"FilePreview",components:{},emits:["update:modelValue"],props:c,setup:(e,t)=>new p(e,t)});class p extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"ossFileApi",new o.OSSFileApi),u(this,"fileApi",new o.FileApi),u(this,"previewImage",n.ref(!1)),u(this,"previewIfr",n.ref(!1)),u(this,"ifrUrl",n.ref("")),u(this,"doClose",(e=>{e||this.ctx.emit("update:modelValue",!1)})),this.props=e,this.ctx=t,this.useFilePreview()}useFilePreview(){n.watch((()=>this.props.modelValue),(()=>{this.props.modelValue&&this.doView(this.props.fileInfo)})),this.props.modelValue&&this.doView(this.props.fileInfo)}async doView(e){const t=await this.ossFileApi.getSignatureUrlByFileInfo(e);if(this.isImage(e))this.previewImage.value=!0;else if(this.isOffice(e))this.ifrUrl.value=`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(t)}`,this.previewIfr.value=!0;else if(this.isVedio(e))this.ifrUrl.value=`${t}`,this.previewIfr.value=!0;else if(this.isPDF(e))this.ifrUrl.value=`/static/pdfjs-dist/web/viewer.html?file=${encodeURIComponent(t)}`,this.previewIfr.value=!0;else{const t=this.fileApi.getFileUrl(e.Token,e.Id);window.open(t)}}isOffice(e){const t=e.FileExt;return"doc"==t||"docx"==t||"ppt"==t||"pptx"==t||"xls"==t||"xlsx"==t}isVedio(e){const t=e.FileExt;return"mov"==t||"mp3"==t||"mp4"==t}isPDF(e){return"pdf"==e.FileExt}isImage(e){const t=e.FileExt;return"jpg"==t||"png"==t||"jpeg"==t||"gif"==t||"svg"==t}}const h=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},d={class:"ifr-container"},y=["src","title"];const v=h(f,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("ImagePreview"),s=n.resolveComponent("Modal");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(a,{transfer:"",modelValue:e.previewImage,"onUpdate:modelValue":t[0]||(t[0]=t=>e.previewImage=t),"preview-list":e.previewList,"initial-index":e.previewIndex,onOnClose:e.doClose},null,8,["modelValue","preview-list","initial-index","onOnClose"]),n.createVNode(s,{modelValue:e.previewIfr,"onUpdate:modelValue":t[1]||(t[1]=t=>e.previewIfr=t),fullscreen:"",mask:!0,"mask-closable":!1,width:1e3,"footer-hide":"",title:"文件预览 - "+e.fileInfo.FileName,onOnVisibleChange:e.doClose},{default:n.withCtx((()=>[n.createElementVNode("div",d,[n.createElementVNode("iframe",{src:e.ifrUrl,class:"ifr-content",title:e.fileInfo.fileInfo}," ",8,y)])])),_:1},8,["modelValue","title","onOnVisibleChange"])],64)}],["__scopeId","data-v-e7f81a3b"]]),g={linkParam:{type:String,default:""},operates:{type:String,default:"-"},token:{type:String,default:""},catalog:{type:String,default:"root"},groups:{type:Array,default:()=>["默认"]},extraInfo:{type:String,default:""},isCompress:{type:Boolean,default:!1},format:{type:Array,default:()=>[]},maxSize:{type:Number,default:0},multiple:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},single:{type:Boolean,default:!1},nullMsg:{type:String,default:"暂无附件"},uploadQuantity:{type:Number,default:0},isShowFileName:{type:Boolean,default:!0}},m=n.defineComponent({name:"UploadFile",components:{filePreview:v},emits:["success","returnFileList"],props:g,setup:(e,t)=>new b(e,t)});let b=class extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"uploadApi",new o.UploadApi),u(this,"fileInfoApi",new o.FileInfoApi),u(this,"fileApi",new o.FileApi),u(this,"currentToken",""),u(this,"fileList",n.ref([])),u(this,"uploading",n.ref(!0)),u(this,"uploadingPercent",n.ref(0)),u(this,"uploadFilePos",n.reactive({})),u(this,"action",n.ref("/FileServiceApi/Upload/file")),u(this,"headers",n.ref({Authorization:""})),u(this,"doSuccess",((e,t,n)=>{const r=this.utilities.parseApiResult(e);if(this.uploading.value=!1,"0"!=r.Code)return this.message.error(r.Msg),void(this.uploadingPercent.value=100);this.uploadingPercent.value=100,this.message.success("上传成功"),this.ctx.emit("success",{token:r.Token,fileId:r.FileId}),this.loadFileList(!0)})),u(this,"doFormatError",(()=>{this.message.warning("当前上传的文件格式不正确,请重新上传"),this.uploading.value=!1})),u(this,"doMaxSize",(()=>{this.props.maxSize/1024>=1?this.message.warning("文件太大超出上传限制,文件大小不得大于"+(this.props.maxSize/1024).toFixed(1)+"M"):this.message.warning("文件太大超出上传限制,文件大小不得大于"+this.props.maxSize+"KB"),this.uploading.value=!1})),u(this,"activeGroupName",n.ref("")),u(this,"doBeforeUpload",(e=>new Promise((async(t,n)=>{let o=!0;const i=e.name,l=i.split("."),a=l[l.length-1].toLowerCase();if(["doc","docx","ppt","pptx","xls","xlsx"].includes(a)){if(i.slice(0,-(a.length+1)).length>100)return this.message.warning("文件名长度不能超过100个字符"),o=!1,n()}if(this.props.uploadQuantity>0){let e=await this.fileInfoApi.getEntities(r.QueryWrapper.create().eq("Token",this.currentToken));const t=this.utilities.parseApiResult(e);t&&t.length>=this.props.uploadQuantity&&(this.message.warning(`仅能上传${this.props.uploadQuantity}个附件`),o=!1)}o?(this.message.info("文件上传中,请稍等"),this.multipartUpload(e),t(!0)):n()})))),u(this,"multipartUpload",(async e=>{let t=this,n=e.name,r=n.split("."),i=r[r.length-1],l=this.getOssContentType(n),a=this.utilities.getCurrentDate("YYYYMMDDHHmmss")+"_"+e.name,s=await new o.OSSFileApi;const u=this.storageInfo.getUser(),c=this.storageInfo.getCurrentBusiness(),f=this.storageInfo.getCurrentModule(),p=this.storageInfo.getCurrentPlatform();let h=(c?null==c?void 0:c.ModuleAlias:"非业务")+"/"+(f?null==f?void 0:f.ModuleAlias:"非业务"),d=(null==p?void 0:p.OssRootPath)+"/"+h+"/",y=`${d}${this.props.catalog}/${this.currentToken}/${a}`;if(200===(await s.multipartUpload(y,e,{async progress(e){t.uploadingPercent.value=(100*e).toFixed(0)},mime:l})).res.statusCode){let t={FileCabinetId:(null==f?void 0:f.Id)?null==f?void 0:f.Id:0,FileCabinePath:d,Catalog:this.props.catalog,Token:this.currentToken,GroupName:this.activeGroupName.value,FileMark:a,FileName:n,FileExt:i,FileSize:e.size,ExtraInfo:this.props.extraInfo,CreateUserId:null==u?void 0:u.Id,CreateUserName:null==u?void 0:u.UserName,CreateTime:this.utilities.getCurrentDate(),Id:0},r=this.utilities.parseApiResult(await this.fileInfoApi.save(t));r?(this.message.success("上传成功!"),this.ctx.emit("success",{token:this.currentToken,fileId:r}),this.loadFileList(!0),this.uploadingPercent.value=100):(this.message.error("网络出现异常,再次上传"),this.uploadingPercent.value=0)}else this.message.error("网络出现异常,再次上传"),this.uploadingPercent.value=0})),u(this,"doRemove",(e=>{this.modal.confirm({title:"提示",content:`数据删除后不可恢复,<br/>确定要删除 ${e.FileName} 文件吗?`,onOk:async()=>{this.uploading.value=!0;const t=await this.fileApi.deleteFile(e.Token,e.Id);this.utilities.parseApiResult(t)<=0?(this.message.warning("删除失败,请稍后重试!"),this.uploading.value=!1):(this.loadFileList(!0),this.message.success("删除成功"),this.uploading.value=!1)}})})),u(this,"doDwonload",(e=>{const t=this.fileApi.getFileUrl(e.Token,e.Id);window.open(t)})),u(this,"getGroupFiles",(e=>"默认"==e?this.fileList.value:this.fileList.value.filter((t=>t.GroupName==e)))),u(this,"getSingle",(e=>{const t=this.getGroupFiles(e);return this.props.single&&t.length>0})),u(this,"getFirstFile",(e=>{const t=this.getGroupFiles(e);return 0==t.length?void 0:t[0]})),u(this,"previewVisible",n.ref(!1)),u(this,"previewList",n.ref([])),u(this,"previewIndexData",{}),u(this,"previewIndex",n.ref(0)),u(this,"previewFileInfo",n.ref({})),u(this,"isImage",(e=>{const t=e.FileExt;return"jpg"==t||"png"==t||"jpeg"==t||"gif"==t||"svg"==t})),u(this,"getImgUrl",(e=>this.fileApi.getFileUrl(e.Token,e.Id))),u(this,"getThumbnailUrl",(e=>this.isImage(e)?this.getImgUrl(e):this.getFileIcon(e.FileExt))),u(this,"getFileIcon",(e=>{const t={img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YW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iaYUAdHR3xnp6eK7IsK7UMJxgMjm/cuPHLGS2/gDdQvdfd3b129erVi0VRFNhyPcp1C5TJZLJDQ0ORLVu2HB8YGOgiLK4WA2glGe2g7CVLBpQl4ywZB4p6Rdd1aT3yPWQ4ZwtmFOsyGYHrGSk/IEs36j8BBgDY8UuJC+tONQAAAABJRU5ErkJggg=="};let p="";switch(e){case"rar":case"zip":p=l.img;break;case"doc":case"docx":p=t.img;break;case"xls":case"xlsx":p=n.img;break;case"pdf":p=o.img;break;case"ppt":case"pptx":p=r.img;break;case"png":case"jpg":p=i.img;break;case"mov":p=a.img;break;case"mp3":p=s.img;break;case"mp4":p=u.img;break;case"html":case"htm":p=c.img;break;default:p=f.img}return p})),u(this,"doView",(async(e,t=0)=>{const n=this.fileList.value;this.previewFileInfo=n[t],this.previewVisible.value=!0,this.previewIndex.value=this.previewIndexData[e.Id]})),this.props=e,this.ctx=t,this.useUploadFile()}async useUploadFile(){n.watch((()=>this.props.token),((e,t)=>{this.setCurrentToken(),this.setUploadFilePos()})),this.setCurrentToken(),this.setUploadFilePos(),this.headers.value.Authorization=`Bearer ${this.storageInfo.getToken()}`}setCurrentToken(){this.currentToken=this.utilities.getValueNotNull(this.props.token,this.utilities.getUniqueCode().replaceAll("-","")),this.loadFileList()}setUploadFilePos(){for(const e of this.props.groups){const t=this.getUploadFilePo(e);this.uploadFilePos[e]=t}}getUploadFilePo(e){return this.uploadApi.getBaseFilePo(this.currentToken,this.props.catalog,e,this.props.extraInfo,this.props.isCompress)}async loadFileList(e=!1){this.uploading.value=!0;const t=await this.fileInfoApi.getEntities(r.QueryWrapper.create().eq("Token",this.currentToken).orderBy(["CreateTime"],!0));this.fileList.value=this.utilities.parseApiResult(t),this.uploading.value=!1,e&&this.ctx.emit("returnFileList",{token:this.currentToken,list:this.fileList.value}),this.setPreviewList()}getOssContentType(e){return e.indexOf(".bmp")>-1?"image/bmp":e.indexOf(".gif")>-1?"image/gif":e.indexOf(".jpeg")>-1||e.indexOf(".jpg")>-1||e.indexOf(".png")>-1?"image/jpg":e.indexOf(".html")>-1?"text/html":e.indexOf(".txt")>-1?"text/plain":e.indexOf(".vsd")>-1?"application/vnd.visio":e.indexOf(".pptx")>-1||e.indexOf(".ppt")>-1?"application/vnd.ms-powerpoint":e.indexOf(".docx")>-1||e.indexOf(".doc")>-1?"application/msword":e.indexOf(".xls")>-1||e.indexOf(".xlsx")>-1||e.indexOf(".xla")>-1?"application/vnd.ms-excel":e.indexOf(".xml")>-1?"text/xml":e.indexOf(".pdf")>-1?"application/pdf":e.indexOf(".zip")>-1?"application/zip":e.indexOf(".tar")>-1?"application/x-tar":e.indexOf(".avi")>-1?"video/avi":e.indexOf(".mp4")>-1?"video/mp4":e.indexOf(".mp3")>-1?"audio/mp3":"application/octet-stream"}setPreviewList(){let e=0;this.previewList.value=[];for(const t of this.fileList.value)this.isImage(t)&&(t.PreviewIndex=e,this.previewIndexData[t.Id]=e,this.previewList.value.push(this.getImgUrl(t)),e++)}};const A=e=>(n.pushScopeId("data-v-6ac1e6fe"),e=e(),n.popScopeId(),e),k={class:"uploadFile uploadPage"},w=["title"],N=["onClick"],E={class:"file-upload-list-cover"},O={key:0,class:"file-upload-list-name nv-text-nowrap"},I={class:"file-upload-loading"},x=A((()=>n.createElementVNode("div",null,"上传进度",-1))),T=["onClick"],S={key:2,class:"nv-flex",style:{color:"#949494",border:"1px dashed #dcdee2",height:"60px",padding:"0 20px","font-size":"16px","justify-content":"center"}},C={class:"nv-flex",style:{width:"40px","margin-right":"6px"}},B={t:"1706683071705",class:"icon",viewBox:"0 0 1566 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4559",style:{fill:"currentColor"}},R=[A((()=>n.createElementVNode("path",{d:"M156.661991 699.757959h21.096999a10.443999 10.443999 0 0 1 10.235999 10.443999c0 5.765-4.491 10.443999-10.235999 10.444h-21.096999v21.097999a10.443999 10.443999 0 0 1-10.444 10.234999 10.276999 10.276999 0 0 1-10.443999-10.234999v-21.097999h-21.096999a10.443999 10.443999 0 0 1-10.234999-10.444c0-5.765 4.49-10.443999 10.234999-10.443999h21.096999v-21.096999a10.443999 10.443999 0 0 1 10.443999-10.234999c5.765 0 10.443999 4.49 10.444 10.234999v21.096999z m1378.627919-83.552995v-21.096999a10.276999 10.276999 0 0 0-10.443999-10.234999 10.443999 10.443999 0 0 0-10.444 10.234999v21.096999h-21.096998a10.276999 10.276999 0 0 0-10.235 10.443999c0 5.598 4.595 10.443999 10.235 10.444h21.096998v21.096998c0 5.745 4.679 10.235999 10.444 10.236a10.443999 10.443999 0 0 0 10.443999-10.236v-21.096998h21.097999c5.744 0 10.234999-4.679 10.234999-10.444a10.443999 10.443999 0 0 0-10.234999-10.443999h-21.097999zM776.459955 960.861944H250.596985a20.804999 20.804999 0 0 1-20.825998-20.887999c0-11.529999 9.462999-20.888999 20.825998-20.888999h94.727995a83.009995 83.009995 0 0 1-11.112-41.671997v-605.969965a83.489995 83.489995 0 0 1 83.636996-83.447995h62.580996v-20.992999a83.489995 83.489995 0 0 1 83.636995-83.448995h501.151971a83.448995 83.448995 0 0 1 83.636995 83.448995v605.969965c0 15.184999-4.053 29.409998-11.134 41.671997h115.553994c11.551999 0 20.909999 9.273999 20.909998 20.887999 0 11.529999-9.295999 20.887999-20.888998 20.887999h-250.659986v20.992999c0 15.185999-4.052 29.409998-11.132999 41.671997h11.195999c11.488999 0 20.825999 9.274999 20.825999 20.888999 0 11.529999-9.462999 20.887999-20.825999 20.887999H892.807948a41.657998 41.657998 0 0 1-6.413 50.862997 41.671998 41.671998 0 0 1-59.071996 0l-50.862997-50.862997z m76.367995-41.776998h66.423996c22.977999 0 41.609998-18.589999 41.609998-41.879997V270.460984c0-22.559999-18.047999-40.689998-40.313998-40.689997H416.303976c-22.266999 0-40.314998 18.213999-40.314998 40.689997v606.741965c0 23.123999 18.799999 41.880998 41.589998 41.880997h317.083981l-10.736999-10.756999a41.692998 41.692998 0 0 1-10.862-40.376998l-19.718999-19.739999a146.259991 146.259991 0 0 1-190.980988-220.516987 146.217991 146.217991 0 0 1 220.517987 190.980989l19.738998 19.739999a41.629998 41.629998 0 0 1 40.376998 10.839999l69.829996 69.829996z m149.809991-104.440994h62.852997a41.796998 41.796998 0 0 0 41.589997-41.776997v-605.759965c0-23.144999-18.632999-41.776998-41.589997-41.776997H563.774967a41.796998 41.796998 0 0 0-41.566998 41.775997v20.888999h396.793977a83.448995 83.448995 0 0 1 83.636995 83.448995v543.199968zM266.326984 46.998997h31.122999c8.773999 0 15.875999 6.955 15.875999 15.665999 0 8.647999-7.102 15.665999-15.875999 15.665999h-31.122999v31.123999c0 8.772999-6.956 15.874999-15.665999 15.874999a15.769999 15.769999 0 0 1-15.666999-15.874999V78.329995H203.869988a15.728999 15.728999 0 0 1-15.874999-15.665999c0-8.647999 7.102-15.665999 15.874999-15.665999h31.122998V15.874999C234.992986 7.102 241.949986 0 250.659985 0c8.646999 0 15.665999 7.102 15.665999 15.874999V46.999997zM20.887999 939.973945c0-11.529999 9.462999-20.888999 20.825999-20.888999h125.454992c11.488999 0 20.825999 9.274999 20.825999 20.888999 0 11.529999-9.462999 20.887999-20.825999 20.887999H41.713998a20.804999 20.804999 0 0 1-20.825999-20.887999z m658.733961-135.021992A104.441994 104.441994 0 1 0 531.899969 657.229961a104.441994 104.441994 0 0 0 147.721991 147.721992z m-220.079987-491.626971a20.887999 20.887999 0 0 1 20.867999-20.888999h229.791986a20.887999 20.887999 0 1 1 0 41.776997H480.430972a20.825999 20.825999 0 0 1-20.887999-20.887998z m0 104.440994c0-11.529999 9.295999-20.887999 20.742999-20.887999H814.789952c11.446999 0 20.741999 9.273999 20.741999 20.887999 0 11.529999-9.294999 20.887999-20.741999 20.887998H480.284972a20.762999 20.762999 0 0 1-20.741999-20.887998z m0 104.441993c0-11.529999 9.316999-20.888999 20.846999-20.888998h146.301991c11.509999 0 20.845999 9.274999 20.845999 20.888998 0 11.529999-9.315999 20.887999-20.845999 20.887999H480.388972a20.804999 20.804999 0 0 1-20.845999-20.887999zM62.665996 396.877977a62.664996 62.664996 0 1 1 0-125.329993 62.664996 62.664996 0 0 1 0 125.329993z m0-31.332998a31.331998 31.331998 0 1 0 0-62.664997 31.331998 31.331998 0 0 0 0 62.664997z m1295.074924-93.996995a62.664996 62.664996 0 1 1 0-125.329993 62.664996 62.664996 0 0 1 0 125.329993z m0-31.332998a31.331998 31.331998 0 1 0 0-62.663996 31.331998 31.331998 0 0 0 0 62.663996z","p-id":"4560"},null,-1)))],j={class:"file-upload-list-cover"},M={class:"file-upload-loading"},D=A((()=>n.createElementVNode("div",null,"上传进度",-1)));const P=h(m,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Image"),s=n.resolveComponent("Icon"),u=n.resolveComponent("Space"),c=n.resolveComponent("Circle"),f=n.resolveComponent("Upload"),p=n.resolveComponent("Card"),h=n.resolveComponent("Spin"),d=n.resolveComponent("filePreview");return n.openBlock(),n.createElementBlock("div",k,[e.single?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.getFirstFile(e.groups[0])?(n.openBlock(),n.createElementBlock("div",{key:0,class:"file-upload-list-content",onClick:t[2]||(t[2]=t=>e.doView(e.getFirstFile(e.groups[0]))),style:{width:"100%",height:"100%"}},[n.createVNode(a,{src:e.getThumbnailUrl(e.getFirstFile(e.groups[0])),fit:"fill",width:"100%",height:"100%"},null,8,["src"]),n.createElementVNode("div",j,[n.createVNode(u,null,{default:n.withCtx((()=>[n.createVNode(s,{type:"md-download",onClick:t[0]||(t[0]=n.withModifiers((t=>e.doDwonload(e.getFirstFile(e.groups[0]))),["stop"])),title:"下载"}),e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(s,{key:0,type:"md-trash",onClick:t[1]||(t[1]=n.withModifiers((t=>e.doRemove(e.getFirstFile(e.groups[0]))),["stop"])),title:"删除"}))])),_:1})])])):n.createCommentVNode("",!0),e.readonly||e.getSingle(e.groups[0])?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(p,{key:1,"dis-hover":"",style:{"margin-bottom":"8px"}},{default:n.withCtx((()=>[e.uploadingPercent>0&&e.uploadingPercent<100?(n.openBlock(),n.createBlock(c,{key:0,size:"78",percent:e.uploadingPercent,"stroke-color":["#108ee9","#87d068"]},{default:n.withCtx((()=>[n.createElementVNode("div",M,[n.createElementVNode("div",null,n.toDisplayString(e.uploadingPercent)+"%",1),D])])),_:1},8,["percent"])):(n.openBlock(),n.createBlock(f,{key:1,ref:"uploadRef",type:"drag",name:"FormFile",multiple:e.multiple,"show-upload-list":!1,format:e.format,"max-size":e.maxSize,action:e.action,headers:e.headers,data:e.uploadFilePos[e.groups[0]],"on-success":e.doSuccess,"on-format-error":e.doFormatError,"on-exceeded-size":e.doMaxSize,"before-upload":e.doBeforeUpload,style:{display:"inline-block",width:"78px"}},{default:n.withCtx((()=>[n.createElementVNode("div",{class:"file-upload-btn",onClick:t[3]||(t[3]=t=>e.activeGroupName=e.groups[0])},[n.createVNode(s,{type:"ios-camera",size:"20"})])])),_:1},8,["multiple","format","max-size","action","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"]))])),_:1}))],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.groups,(t=>(n.openBlock(),n.createBlock(p,{"dis-hover":"",style:{"margin-bottom":"8px"}},n.createSlots({default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.getGroupFiles(t),((t,r)=>(n.openBlock(),n.createElementBlock("div",{class:"file-upload-list",title:t.FileName},[n.createElementVNode("div",{class:n.normalizeClass(["file-upload-list-content",{"file-upload-list-bs":e.isImage(t)}]),onClick:n=>e.doView(t,r)},[n.createVNode(a,{src:e.getThumbnailUrl(t),fit:"cover",transfer:"",width:"100%",height:"100%"},null,8,["src"]),n.createElementVNode("div",E,[n.createVNode(u,null,{default:n.withCtx((()=>[n.createVNode(s,{type:"md-download",onClick:n.withModifiers((n=>e.doDwonload(t)),["stop"]),title:"下载"},null,8,["onClick"]),e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(s,{key:0,type:"md-trash",onClick:n.withModifiers((n=>e.doRemove(t)),["stop"]),title:"删除"},null,8,["onClick"]))])),_:2},1024)])],10,N),e.isShowFileName?(n.openBlock(),n.createElementBlock("div",O,n.toDisplayString(t.FileName),1)):n.createCommentVNode("",!0)],8,w)))),256)),e.uploadingPercent>0&&e.uploadingPercent<100?(n.openBlock(),n.createBlock(c,{key:0,size:"78",percent:e.uploadingPercent,"stroke-color":["#108ee9","#87d068"]},{default:n.withCtx((()=>[n.createElementVNode("div",I,[n.createElementVNode("div",null,n.toDisplayString(e.uploadingPercent)+"%",1),x])])),_:1},8,["percent"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(f,{key:0,ref_for:!0,ref:"uploadRef",type:"drag",name:"FormFile",multiple:e.multiple,"show-upload-list":!1,format:e.format,"max-size":e.maxSize,headers:e.headers,data:e.uploadFilePos[t],"on-success":e.doSuccess,"on-format-error":e.doFormatError,"on-exceeded-size":e.doMaxSize,"before-upload":e.doBeforeUpload,style:{display:"inline-block",width:"78px"}},{default:n.withCtx((()=>[n.createElementVNode("div",{class:"file-upload-btn",onClick:n=>e.activeGroupName=t},[n.createVNode(s,{type:"ios-camera",size:"20"})],8,T)])),_:2},1032,["multiple","format","max-size","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"]))],64)),e.readonly&&0==e.fileList.length?(n.openBlock(),n.createElementBlock("div",S,[n.createElementVNode("i",C,[(n.openBlock(),n.createElementBlock("svg",B,R))]),n.createElementVNode("div",null,n.toDisplayString(e.nullMsg),1)])):n.createCommentVNode("",!0)])),_:2},["默认"!=t?{name:"title",fn:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(t),1)])),key:"0"}:void 0]),1024)))),256)),e.uploading?(n.openBlock(),n.createBlock(h,{key:2,fix:"",size:"large"})):n.createCommentVNode("",!0),n.createVNode(d,{modelValue:e.previewVisible,"onUpdate:modelValue":t[4]||(t[4]=t=>e.previewVisible=t),"preview-list":e.previewList,"preview-index":e.previewIndex,"file-info":e.previewFileInfo},null,8,["modelValue","preview-list","preview-index","file-info"])])}],["__scopeId","data-v-6ac1e6fe"]]);var L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V,U={exports:{}};"undefined"!=typeof self&&self,V=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(45),a=n(46),s=n(47),u=n(48),c=n(49),f=n(12),p=n(32),h=n(33),d=n(31),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:p.default,Style:h.default,Store:d.default}};t.default=v},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=i;var l,a,s={},u={},c={},f={};function p(e,t){var n;if(void 0===t&&(t=l.ANY),"string"==typeof e)n=f[e]||s[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=f.text;else if("number"==typeof e)e&l.LEVEL&l.BLOCK?n=f.block:e&l.LEVEL&l.INLINE&&(n=f.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=u[r[o]])break;n=n||c[e.tagName]}return null==n?null:t&l.LEVEL&n.scope&&t&l.TYPE&n.scope?n:null}t.DATA_KEY="__blot",(a=l=t.Scope||(t.Scope={}))[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY",t.create=function(e,t){var n=p(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=p,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return f[r.blotName||r.attrName]=r,"string"==typeof r.keyName?s[r.keyName]=r:(null!=r.className&&(u[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(e){null!=c[e]&&null!=r.className||(c[e]=r)})))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),l=n(20),a=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+l.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+l.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=l.length(i)}return new s(n)},s.prototype.compose=function(e){var t=l.iterator(this.ops),n=l.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var a=i.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),r.push(t.next());i.retain-a>0&&n.next(i.retain-a)}for(var u=new s(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),p=n.next(c);if("number"==typeof p.retain){var h={};"number"==typeof f.retain?h.retain=c:h.insert=f.insert;var d=l.attributes.compose(f.attributes,p.attributes,"number"==typeof f.retain);if(d&&(h.attributes=d),u.push(h),!n.hasNext()&&o(u.ops[u.ops.length-1],h)){var y=new s(t.rest());return u.concat(y).chop()}}else"number"==typeof p.delete&&"number"==typeof f.retain&&u.push(p)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=r(n[0],n[1],t),c=l.iterator(this.ops),f=l.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),i.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var a=c.next(n),s=f.next(n);o(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=l.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&e(r,{},o)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=l.iterator(this.ops),r=l.iterator(e.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),u=r.next(i);if(a.delete)continue;u.delete?o.push(u):o.retain(i,l.attributes.transform(a.attributes,u.attributes,t))}else o.retain(l.length(n.next()));return o.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=s},function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},s=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,c,f=arguments[0],p=1,h=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=u(f,n),f!==(o=u(t,n))&&(d&&o&&(a(o)||(i=l(o)))?(i?(i=!1,c=r&&l(r)?r:[]):c=r&&a(r)?r:{},s(f,{name:n,newValue:e(d,c,o)})):void 0!==o&&s(f,{name:n,newValue:o}));return f}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=f(n(3)),l=f(n(2)),a=f(n(0)),s=f(n(16)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=a.default.create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(a.default.Embed);y.scope=a.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){p(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return d(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))}),new l.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(a.default.query(r,a.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),l=i.shift();l.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),l):this.children.tail.insertAt(this.children.tail.length(),l),this.cache={});var a=this;i.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+l.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof s.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(a.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,a.default.Embed,c.default],t.bubbleFormats=g,t.BlockEmbed=y,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var l=v(n(2)),a=v(n(14)),s=v(n(8)),u=v(n(9)),c=v(n(0)),f=n(15),p=v(f),h=v(n(3)),d=v(n(10)),y=v(n(34));function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=(0,d.default)("quill"),b=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=A(t,r),this.container=this.options.container,null==this.container)return m.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;k.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),d.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&m.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||m.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=w(e,t,n),l=o(i,4);return e=l[0],t=l[1],n=l[3],k.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return k.call(this,(function(){var r=n.getSelection(!0),o=new l.default;if(null==r)return o;if(c.default.query(e,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,g({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,g({},e,t))}return n.setSelection(r,s.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var l,a=this,s=w(e,t,n,r,i),u=o(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],k.call(this,(function(){return a.editor.formatLine(e,t,l)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var l,a=this,s=w(e,t,n,r,i),u=o(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],k.call(this,(function(){return a.editor.formatText(e,t,l)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=w(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=w(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return k.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var l,a=this,s=w(e,0,n,r,i),u=o(s,4);return e=u[0],l=u[2],i=u[3],k.call(this,(function(){return a.editor.insertText(e,t,l)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=w(e,t,n),l=o(i,4);return e=l[0],t=l[1],n=l[3],k.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return k.call(this,(function(){e=new l.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=w(t,n,r),l=o(i,4);t=l[0],n=l[1],r=l[3],this.selection.setRange(new f.Range(t,n),r),r!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new l.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return k.call(this,(function(){return e=new l.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function A(e,t){if((t=(0,h.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==b.DEFAULTS.theme){if(t.theme=b.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=y.default;var n=(0,h.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=b.import("modules/"+t);return null==n?m.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,h.default)(!0,{},b.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function k(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new l.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=N(o,a,t):0!==r&&(o=N(o,n,r,t)),this.setSelection(o,s.default.sources.SILENT)),a.length()>0){var u,c,f=[s.default.events.TEXT_CHANGE,a,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(f)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return a}function w(e,t,n,o,i){var l={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(l=n,i=o):"string"==typeof n&&(null!=o?l[n]=o:i=n),[e,t,l,i=i||s.default.sources.API]}function N(e,t,n,r){if(null==e)return null;var i=void 0,a=void 0;if(t instanceof l.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==s.default.sources.USER)})),c=o(u,2);i=c[0],a=c[1]}else{var p=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),h=o(p,2);i=h[0],a=h[1]}return new f.Range(i,a-i)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=s.default.events,b.sources=s.default.sources,b.version="1.3.7",b.imports={delta:l.default,parchment:c.default,"core/module":u.default,"core/theme":y.default},t.expandConfig=A,t.overload=w,t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=a(n(7)),l=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var a=this.isolate(e,n);i&&a.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(l.default.Inline);s.allowedChildren=[s,l.default.Embed,i.default],s.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default.Text);t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=l(n(54));function l(e){return e&&e.__esModule?e:{default:e}}var a=(0,l(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",a.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){a.log.apply(a,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);s.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},s.sources={API:"api",SILENT:"silent",USER:"user"},t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];(t=console)[e].apply(t,i)}}function l(e){return r.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=l.level=function(e){o=e},t.default=l},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),l=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,c;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),l(e,t,n));if(s(e)){if(!s(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var f=o(e),p=o(t)}catch(h){return!1}if(f.length!=p.length)return!1;for(f.sort(),p.sort(),u=f.length-1;u>=0;u--)if(f[u]!=p[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!l(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function a(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=f(n(2)),a=f(n(0)),s=f(n(4)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),t}(u.default);y.blotName="code",y.tagName="CODE";var v=function(e){function t(){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new l.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(c.default,this.length()-1),l=r(o,1)[0];null!=l&&l.deleteAt(l.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=a.default.query(r,a.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var l=this.newlineIndex(e,!0)+1,s=i-l+1,u=this.isolate(l,s),c=u.next;u.format(r,o),c instanceof t&&c.formatAt(0,e-l+n-s,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(c.default,e),i=r(o,2),l=i[0],a=i[1];l.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=y,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=g(n(2)),a=g(n(20)),s=g(n(0)),u=g(n(13)),c=g(n(24)),f=n(4),p=g(f),h=g(n(16)),d=g(n(21)),y=g(n(11)),v=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var m=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,d.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,d.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new l.default)}(e)).reduce((function(e,l){var u=l.retain||l.delete||l.insert.length||1,c=l.attributes||{};if(null!=l.insert){if("string"==typeof l.insert){var h=l.insert;h.endsWith("\n")&&n&&(n=!1,h=h.slice(0,-1)),e>=i&&!h.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,h);var d=t.scroll.line(e),y=o(d,2),g=y[0],m=y[1],b=(0,v.default)({},(0,f.bubbleFormats)(g));if(g instanceof p.default){var A=g.descendant(s.default.Leaf,m),k=o(A,1)[0];b=(0,v.default)(b,(0,f.bubbleFormats)(k))}c=a.default.attributes.diff(b,c)||{}}else if("object"===r(l.insert)){var w=Object.keys(l.insert)[0];if(null==w)return e;t.scroll.insertAt(e,w,l.insert[w])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new l.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),l=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var a=e-t.offset(n.scroll),s=t.newlineIndex(a+l)-a+1;t.formatAt(a,s,o,r[o])}else t.format(o,r[o]);l-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(e).retain(t,(0,d.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new l.default).retain(e).retain(t,(0,d.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new l.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof p.default?n.push(t):t instanceof s.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=A((0,f.bubbleFormats)(n),t)}return t}));return v.default.apply(v.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new l.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new l.default).retain(e).insert(t,(0,d.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===p.default.blotName&&!(e.children.length>1)&&e.children.head instanceof h.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),a=i[0],s=i[1],c=0,f=new l.default;null!=a&&(c=a instanceof u.default?a.newlineIndex(s)-s+1:a.length()-s,f=a.delta().slice(s,s+c-1).insert("\n"));var p=this.getContents(e,t+c).diff((new l.default).insert(n).concat(f)),h=(new l.default).retain(e).concat(p);return this.applyDelta(h)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(m)&&s.default.find(t[0].target)){var o=s.default.find(t[0].target),i=(0,f.bubbleFormats)(o),a=o.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),p=(new l.default).insert(u),h=(new l.default).insert(o.value());e=(new l.default).retain(a).concat(p.diff(h,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new l.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,y.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function A(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(0)),l=u(n(21)),a=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=(0,u(n(10)).default)("quill:selection"),h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},d=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new h(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&r.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}})),this.update(s.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),l=r(i,2),a=l[0],s=l[1];if(null==a)return null;var u=a.position(s,!0),c=r(u,2);o=c[0],s=c[1];var f=document.createRange();if(t>0){f.setStart(o,s);var p=this.scroll.leaf(e+t),h=r(p,2);if(a=h[0],s=h[1],null==a)return null;var d=a.position(s,!0),y=r(d,2);return o=y[0],s=y[1],f.setEnd(o,s),f.getBoundingClientRect()}var v="left",g=void 0;return o instanceof Text?(s<o.data.length?(f.setStart(o,s),f.setEnd(o,s+1)):(f.setStart(o,s-1),f.setEnd(o,s),v="right"),g=f.getBoundingClientRect()):(g=a.domNode.getBoundingClientRect(),s>0&&(v="right")),{bottom:g.top+g.height,height:g.height,left:g[v],right:g[v],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],l=n[1],a=i.default.find(o,!0),s=a.offset(t.scroll);return 0===l?s:a instanceof i.default.Container?s+a.length():s+a.index(o,l)})),l=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),a=Math.min.apply(Math,[l].concat(c(o)));return new h(a,l-a)}},{key:"normalizeNative",value:function(e){if(!y(this.root,e.startContainer)||!e.collapsed&&!y(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var l,a=t.scroll.leaf(e),s=r(a,2),u=s[0],c=s[1],f=u.position(c,0!==n),p=r(f,2);l=p[0],c=p[1],o.push(l,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),l=r(i,1)[0],a=l;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,o));a=r(s,1)[0]}if(null!=l&&null!=a){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||e!==l.startContainer||t!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),p.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],u=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var f,p=[s.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(p)),e!==s.default.sources.SILENT&&(f=this.emitter).emit.apply(f,p)}}}]),e}();function y(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=h,t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default.Embed);a.blotName="break",a.tagName="BR",t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),l=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,l){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=l})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var l=null==n?a.create("text",t):a.create(t,n);this.appendChild(l)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],l=[[this,e]];return o instanceof t?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=u(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(l.default);function u(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),l=n(31),a=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new l.default(n.domNode),n}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(a.default);t.default=u},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new l(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function l(e){this.ops=e,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(a){t=function(){}}try{n=Set}catch(a){n=function(){}}try{r=Promise}catch(a){r=function(){}}function o(i,a,s,u,c){"object"==typeof a&&(s=a.depth,u=a.prototype,c=a.includeNonEnumerable,a=a.circular);var f=[],p=[],h="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===s&&(s=1/0),function i(s,d){if(null===s)return null;if(0===d)return s;var y,v;if("object"!=typeof s)return s;if(e(s,t))y=new t;else if(e(s,n))y=new n;else if(e(s,r))y=new r((function(e,t){s.then((function(t){e(i(t,d-1))}),(function(e){t(i(e,d-1))}))}));else if(o.__isArray(s))y=[];else if(o.__isRegExp(s))y=new RegExp(s.source,l(s)),s.lastIndex&&(y.lastIndex=s.lastIndex);else if(o.__isDate(s))y=new Date(s.getTime());else{if(h&&Buffer.isBuffer(s))return y=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(y),y;e(s,Error)?y=Object.create(s):void 0===u?(v=Object.getPrototypeOf(s),y=Object.create(v)):(y=Object.create(u),v=u)}if(a){var g=f.indexOf(s);if(-1!=g)return p[g];f.push(s),p.push(y)}for(var m in e(s,t)&&s.forEach((function(e,t){var n=i(t,d-1),r=i(e,d-1);y.set(n,r)})),e(s,n)&&s.forEach((function(e){var t=i(e,d-1);y.add(t)})),s){var b;v&&(b=Object.getOwnPropertyDescriptor(v,m)),b&&null==b.set||(y[m]=i(s[m],d-1))}if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(s);for(m=0;m<A.length;m++){var k=A[m];(!(N=Object.getOwnPropertyDescriptor(s,k))||N.enumerable||c)&&(y[k]=i(s[k],d-1),N.enumerable||Object.defineProperty(y,k,{enumerable:!1}))}}if(c){var w=Object.getOwnPropertyNames(s);for(m=0;m<w.length;m++){var N,E=w[m];(N=Object.getOwnPropertyDescriptor(s,E))&&N.enumerable||(y[E]=i(s[E],d-1),Object.defineProperty(y,E,{enumerable:!1}))}}return y}(i,s)}function i(e){return Object.prototype.toString.call(e)}function l(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=i,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},o.__getRegExpFlags=l,o}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=h(n(0)),a=h(n(8)),s=n(4),u=h(s),c=h(n(16)),f=h(n(13)),p=h(n(25));function h(e){return e&&e.__esModule?e:{default:e}}function d(e){return e instanceof u.default||e instanceof s.BlockEmbed}var y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),l=r(o,2),a=l[0],u=l[1],p=this.line(e+n),h=r(p,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=h&&a!==h&&u>0){if(a instanceof s.BlockEmbed||h instanceof s.BlockEmbed)return void this.optimize();if(a instanceof f.default){var d=a.newlineIndex(a.length(),!0);if(d>-1&&(a=a.split(d+1))===h)return void this.optimize()}else if(h instanceof f.default){var y=h.newlineIndex(0);y>-1&&h.split(y+1)}var v=h.children.head instanceof c.default?null:h.children.head;a.moveChildren(h,v),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==l.default.query(n,l.default.Scope.BLOCK)){var o=l.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var a=l.default.create(n,r);this.appendChild(a)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===l.default.Scope.INLINE_BLOT){var r=l.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(d,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){d(t)?o.push(t):t instanceof l.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,e)}}}]),t}(l.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[u.default,s.BlockEmbed,p.default],t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=y(n(21)),a=y(n(11)),s=y(n(3)),u=y(n(2)),c=y(n(20)),f=y(n(0)),p=y(n(5)),h=y(n(10)),d=y(n(9));function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,h.default)("quill:keyboard"),m=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},E),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},k),r.addBinding({key:t.keys.DELETE},{collapsed:!0},w)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},k),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},w)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},N),r.addBinding({key:t.keys.DELETE},{collapsed:!1},N),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},k),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=x(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=x(e);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,s.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,l=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==l.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=o(u,2),p=c[0],h=c[1],d=e.quill.getLeaf(s.index),y=o(d,2),v=y[0],g=y[1],m=0===s.length?[v,g]:e.quill.getLeaf(s.index+s.length),b=o(m,2),A=b[0],k=b[1],w=v instanceof f.default.Text?v.value().slice(0,g):"",N=A instanceof f.default.Text?A.value().slice(k):"",E={collapsed:0===s.length,empty:0===s.length&&p.length()<=1,format:e.quill.getFormat(s),offset:h,prefix:w,suffix:N};l.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed)return!1;if(null!=t.empty&&t.empty!==E.empty)return!1;if(null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,a.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix)||null!=t.suffix&&!t.suffix.test(E.suffix)||!0===t.handler.call(e,s,E))}))&&n.preventDefault()}}}}))}}]),t}(d.default);function A(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return v(n={key:e,shiftKey:t,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),1))})),n}function k(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var l=this.quill.getLine(e.index-1),a=o(l,1)[0];if(null!=a&&a.length()>1){var s=r.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,p.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-f,f,i,p.default.sources.USER),this.quill.focus()}}function w(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,l=this.quill.getLine(e.index),a=o(l,1)[0];if(t.offset>=a.length()-1){var s=this.quill.getLine(e.index+1),u=o(s,1)[0];if(u){var f=a.formats(),h=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(f,h)||{},i=u.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,p.default.sources.USER)}}function N(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function E(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))}))}function O(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),r=t.index,i=t.length,l=this.quill.scroll.descendant(n,r),a=o(l,2),s=a[0],u=a[1];if(null!=s){var c=this.quill.getIndex(s),h=s.newlineIndex(u,!0)+1,d=s.newlineIndex(c+u+i),y=s.domNode.textContent.slice(h,d).split("\n");u=0,y.forEach((function(t,o){e?(s.insertAt(h+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(h+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(p.default.sources.USER),this.quill.setSelection(r,i,p.default.sources.SILENT)}}}}function I(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function x(e){if("string"==typeof e||"number"==typeof e)return x({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,l.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[m]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:I("bold"),italic:I("italic"),underline:I("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":O(!0),"outdent code-block":O(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],l=(0,s.default)({},r.formats(),{list:"checked"}),a=(new u.default).retain(e.index).insert("\n",l).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],l=r[1],a=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-l-1).retain(1,{header:null});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),l=i[0],a=i[1];if(a>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-a).delete(n+1).retain(l.length()-2-a).retain(1,{list:s});this.quill.updateContents(c,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],l=(new u.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,p.default.sources.USER)}},"embed left":A(b.keys.LEFT,!1),"embed left shift":A(b.keys.LEFT,!0),"embed right":A(b.keys.RIGHT,!1),"embed right shift":A(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=s(n(0)),a=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==l.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];o=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,s].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),p=r(f,2);return i=p[0],s=p[1],{startNode:o,startOffset:i,endNode:o,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(l.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\ufeff",t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),o=n(4),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);a.allowedChildren=[i.default,o.BlockEmbed,a],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(a.default.Attributor.Style),u=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),c=new s("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=s,t.ColorClass=u,t.ColorStyle=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return s(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);function s(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=a,t.sanitize=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(23)),l=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}var s=0;function u(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),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",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=l.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+s,s+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(0)),o=g(n(5)),i=n(4),l=g(i),a=g(n(16)),s=g(n(25)),u=g(n(24)),c=g(n(35)),f=g(n(6)),p=g(n(22)),h=g(n(7)),d=g(n(55)),y=g(n(42)),v=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":l.default,"blots/block/embed":i.BlockEmbed,"blots/break":a.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":p.default,"blots/text":h.default,"modules/clipboard":d.default,"modules/history":y.default,"modules/keyboard":v.default}),r.default.register(l.default,a.default,u.default,f.default,p.default,h.default),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),l=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=l.query(t,l.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=a(n(0)),l=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var s="\ufeff",u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(s),n.rightGuard=document.createTextNode(s),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(s).join("");if(e===this.leftGuard)if(this.prev instanceof l.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=s,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(i.default.Embed);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new i.default.Attributor.Attribute("align","align",l),s=new i.default.Attributor.Class("align","ql-align",l),u=new i.default.Attributor.Style("align","text-align",l);t.AlignAttribute=a,t.AlignClass=s,t.AlignStyle=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l=n(26),a=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),s=new l.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},a=new i.default.Attributor.Attribute("direction","dir",l),s=new i.default.Attributor.Class("direction","ql-direction",l),u=new i.default.Attributor.Style("direction","direction",l);t.DirectionAttribute=a,t.DirectionClass=s,t.DirectionStyle=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},s={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new a.default.Attributor.Class("font","ql-font",s),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),f=new c("font","font-family",s);t.FontStyle=f,t.FontClass=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=l,t.SizeStyle=a},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(0)),i=l(n(5));function l(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,o){e!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=s(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(l(n(9)).default);function s(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=a,t.getLastChangeIndex=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=d(n(3)),l=d(n(2)),a=d(n(8)),s=d(n(23)),u=d(n(34)),c=d(n(59)),f=d(n(60)),p=d(n(28)),h=d(n(61));function d(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[!1,"center","right","justify"],b=["#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"],A=[!1,"serif","monospace"],k=["1","2","3",!1],w=["small",!1,"large","huge"],N=function(e){function t(e,n){y(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),r}return g(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&O(e,m),new f.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&O(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?O(e,A):e.classList.contains("ql-header")?O(e,k):e.classList.contains("ql-size")&&O(e,w)),new p.default(e)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(u.default);N.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(r.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){y(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",a.default.sources.USER),this.quill.setSelection(i+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(h.default);function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=E,t.default=N},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],l=e-o[1],a=this.iterator(i);(r=a())&&l<e+t;){var s=r.length();e>l?n(r,e-l,Math.min(t,l+s-e)):n(r,0,Math.min(s,e+t-l)),l+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),l=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[l.DATA_KEY].mutations&&(e.domNode[l.DATA_KEY].mutations=[]),t&&a(e.parent))},s=function(e){null!=e.domNode[l.DATA_KEY]&&null!=e.domNode[l.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(s),e.optimize(n))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(e){var t=l.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(l.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=l.find(e,!1);a(t,!1),t instanceof i.default&&t.children.forEach((function(e){a(e,!1)}))}))):"attributes"===e.type&&a(t.prev)),a(t))})),this.children.forEach(s),o=(u=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=l.find(e.target,!0);return null==t?null:null==t.domNode[l.DATA_KEY].mutations?(t.domNode[l.DATA_KEY].mutations=[e],t):(t.domNode[l.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[l.DATA_KEY]&&e.update(e.domNode[l.DATA_KEY].mutations||[],n)})),null!=this.domNode[l.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=s},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=l.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=l.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=l.query(n,l.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=l.query(r,l.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=l.query(n,l.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=l.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),l=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=l.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,r=1,o=0;function i(e,t,c){if(e==t)return e?[[o,e]]:[];(c<0||e.length<c)&&(c=null);var p=a(e,t),h=e.substring(0,p);p=s(e=e.substring(p),t=t.substring(p));var d=e.substring(e.length-p),y=function(e,t){var u;if(!e)return[[r,t]];if(!t)return[[n,e]];var c=e.length>t.length?e:t,f=e.length>t.length?t:e,p=c.indexOf(f);if(-1!=p)return u=[[r,c.substring(0,p)],[o,f],[r,c.substring(p+f.length)]],e.length>t.length&&(u[0][0]=u[2][0]=n),u;if(1==f.length)return[[n,e],[r,t]];var h=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,i,l,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,f="";-1!=(c=t.indexOf(u,c+1));){var p=a(e.substring(n),t.substring(c)),h=s(e.substring(0,n),t.substring(0,c));f.length<h+p&&(f=t.substring(c-h,c)+t.substring(c,c+p),r=e.substring(0,n-h),o=e.substring(n+p),i=t.substring(0,c-h),l=t.substring(c+p))}return 2*f.length>=e.length?[r,o,i,l,f]:null}var i,l,u,c,f,p=o(n,r,Math.ceil(n.length/4)),h=o(n,r,Math.ceil(n.length/2));if(!p&&!h)return null;i=h?p&&p[4].length>h[4].length?p:h:p,e.length>t.length?(l=i[0],u=i[1],c=i[2],f=i[3]):(c=i[0],f=i[1],l=i[2],u=i[3]);var d=i[4];return[l,u,c,f,d]}(e,t);if(h){var d=h[0],y=h[1],v=h[2],g=h[3],m=h[4],b=i(d,v),A=i(y,g);return b.concat([[o,m]],A)}return function(e,t){for(var o=e.length,i=t.length,a=Math.ceil((o+i)/2),s=a,u=2*a,c=new Array(u),f=new Array(u),p=0;p<u;p++)c[p]=-1,f[p]=-1;c[s+1]=0,f[s+1]=0;for(var h=o-i,d=h%2!=0,y=0,v=0,g=0,m=0,b=0;b<a;b++){for(var A=-b+y;A<=b-v;A+=2){for(var k=s+A,w=(x=A==-b||A!=b&&c[k-1]<c[k+1]?c[k+1]:c[k-1]+1)-A;x<o&&w<i&&e.charAt(x)==t.charAt(w);)x++,w++;if(c[k]=x,x>o)v+=2;else if(w>i)y+=2;else if(d&&(O=s+h-A)>=0&&O<u&&-1!=f[O]&&x>=(E=o-f[O]))return l(e,t,x,w)}for(var N=-b+g;N<=b-m;N+=2){for(var E,O=s+N,I=(E=N==-b||N!=b&&f[O-1]<f[O+1]?f[O+1]:f[O-1]+1)-N;E<o&&I<i&&e.charAt(o-E-1)==t.charAt(i-I-1);)E++,I++;if(f[O]=E,E>o)m+=2;else if(I>i)g+=2;else if(!d){var x;if((k=s+h-N)>=0&&k<u&&-1!=c[k]&&(w=s+(x=c[k])-k,x>=(E=o-E)))return l(e,t,x,w)}}}return[[n,e],[r,t]]}(e,t)}(e=e.substring(0,e.length-p),t=t.substring(0,t.length-p));return h&&y.unshift([o,h]),d&&y.push([o,d]),u(y),null!=c&&(y=function(e,t){var r=function(e,t){if(0===t)return[o,e];for(var r=0,i=0;i<e.length;i++){var l=e[i];if(l[0]===n||l[0]===o){var a=r+l[1].length;if(t===a)return[i+1,e];if(t<a){e=e.slice();var s=t-r,u=[l[0],l[1].slice(0,s)],c=[l[0],l[1].slice(s)];return e.splice(i,1,u,c),[i+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),i=r[1],l=r[0],a=i[l],s=i[l+1];if(null==a)return e;if(a[0]!==o)return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return i.splice(l,2,s,a),f(i,l,2);if(null!=s&&0===s[1].indexOf(a[1])){i.splice(l,2,[s[0],a[1]],[0,a[1]]);var u=s[1].slice(a[1].length);return u.length>0&&i.splice(l+2,0,[s[0],u]),f(i,l,3)}return e}(y,c)),y=function(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},l=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},a=2;a<e.length;a+=1)e[a-2][0]===o&&l(e[a-2][1])&&e[a-1][0]===n&&i(e[a-1][1])&&e[a][0]===r&&i(e[a][1])&&(t=!0,e[a-1][1]=e[a-2][1].slice(-1)+e[a-1][1],e[a][1]=e[a-2][1].slice(-1)+e[a][1],e[a-2][1]=e[a-2][1].slice(0,-1));if(!t)return e;var s=[];for(a=0;a<e.length;a+=1)e[a][1].length>0&&s.push(e[a]);return s}(y)}function l(e,t,n,r){var o=e.substring(0,n),l=t.substring(0,r),a=e.substring(n),s=t.substring(r),u=i(o,l),c=i(a,s);return u.concat(c)}function a(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function s(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function u(e){e.push([o,""]);for(var t,i=0,l=0,c=0,f="",p="";i<e.length;)switch(e[i][0]){case r:c++,p+=e[i][1],i++;break;case n:l++,f+=e[i][1],i++;break;case o:l+c>1?(0!==l&&0!==c&&(0!==(t=a(p,f))&&(i-l-c>0&&e[i-l-c-1][0]==o?e[i-l-c-1][1]+=p.substring(0,t):(e.splice(0,0,[o,p.substring(0,t)]),i++),p=p.substring(t),f=f.substring(t)),0!==(t=s(p,f))&&(e[i][1]=p.substring(p.length-t)+e[i][1],p=p.substring(0,p.length-t),f=f.substring(0,f.length-t))),0===l?e.splice(i-c,l+c,[r,p]):0===c?e.splice(i-l,l+c,[n,f]):e.splice(i-l-c,l+c,[n,f],[r,p]),i=i-l-c+(l?1:0)+(c?1:0)+1):0!==i&&e[i-1][0]==o?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,c=0,l=0,f="",p=""}""===e[e.length-1][1]&&e.pop();var h=!1;for(i=1;i<e.length-1;)e[i-1][0]==o&&e[i+1][0]==o&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),h=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),h=!0)),i++;h&&u(e)}var c=i;function f(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}c.INSERT=r,c.DELETE=n,c.EQUAL=o,e.exports=c},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,l=o.length,a=new Array(l);i<l;i++)a[i]=o[i].fn;return a},l.prototype.emit=function(e,t,n,o,i,l){var a=r?r+e:e;if(!this._events[a])return!1;var s,u,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,i),!0;case 6:return c.fn.call(c.context,t,n,o,i,l),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var p,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,o);break;default:if(!s)for(p=1,s=new Array(f-1);p<f;p++)s[p-1]=arguments[p];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(e,t,n){var o=new i(t,n||this),l=r?r+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],o]:this._events[l].push(o):(this._events[l]=o,this._eventsCount++),this},l.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),l=r?r+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],o]:this._events[l].push(o):(this._events[l]=o,this._eventsCount++),this},l.prototype.removeListener=function(e,t,n,i){var l=r?r+e:e;if(!this._events[l])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[l],this;var a=this._events[l];if(a.fn)a.fn!==t||i&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[l]);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==t||i&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[l]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new o:delete this._events[l]}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=r,l.EventEmitter=l,void 0!==e&&(e.exports=l)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=b(n(3)),a=b(n(2)),s=b(n(0)),u=b(n(5)),c=b(n(10)),f=b(n(9)),p=n(36),h=n(37),d=b(n(13)),y=n(26),v=n(38),g=n(39),m=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=(0,c.default)("quill:clipboard"),w="__ql-matcher",N=[[Node.TEXT_NODE,L],[Node.TEXT_NODE,D],["br",function(e,t){return S(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===T(e).fontStyle&&(n.italic=!0),r.fontWeight&&(T(e).fontWeight.startsWith("bold")||parseInt(T(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=x(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!S(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(s.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",R.bind(R,"bold")],["i",R.bind(R,"italic")],["style",function(){return new a.default}]],E=[p.AlignAttribute,v.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=[p.AlignStyle,h.BackgroundStyle,y.ColorStyle,v.DirectionStyle,g.FontStyle,m.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),I=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],N.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],l=t[1];(n.matchVisual||l!==P)&&r.addMatcher(i,l)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[d.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,A({},d.default.blotName,t[d.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),l=i[0],s=i[1],u=B(this.container,l,s);return S(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new a.default).retain(u.length()-1).delete(1))),k.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new a.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,u.default.sources.USER),t.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),l=i[0],a=i[1];switch(l){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(l),(function(e){e[w]=e[w]||[],e[w].push(a)}))}})),[t,n]}}]),t}(f.default);function x(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return x(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,l.default)({},A({},t,n),r.attributes))}),new a.default)}function T(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function S(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function C(e){if(0===e.childNodes.length)return!1;var t=T(e);return["block","list-item"].indexOf(t.display)>-1}function B(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=B(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[w]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new a.default):new a.default}function R(e,t,n){return x(n,e,!0)}function j(e,t){var n=s.default.Attributor.Attribute.keys(e),r=s.default.Attributor.Class.keys(e),o=s.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=O[t])||n.attrName!==t&&n.keyName!==t||(n=O[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=x(t,i)),t}function M(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new a.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=x(t,n.blotName,n.formats(e)));return t}function D(e,t){return S(t,"\n")||(C(e)||t.length()>0&&e.nextSibling&&C(e.nextSibling))&&t.insert("\n"),t}function P(e,t){if(C(e)&&null!=e.nextElementSibling&&!S(t,"\n\n")){var n=e.offsetHeight+parseFloat(T(e).marginTop)+parseFloat(T(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function L(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!T(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&C(e.parentNode)||null!=e.previousSibling&&C(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&C(e.parentNode)||null!=e.nextSibling&&C(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}I.DEFAULTS={matchers:[],matchVisual:!0},t.default=I,t.matchAttributor=j,t.matchBlot=M,t.matchNewline=D,t.matchSpacing=P,t.matchText=L},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);a.blotName="bold",a.tagName=["STRONG","B"],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(2)),l=c(n(0)),a=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=(0,s.default)("quill:toolbar"),h=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var l=document.createElement("div");y(l,i.options.container),e.container.parentNode.insertBefore(l,e.container),i.container=l}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)})),i):(o=p.error("Container required for toolbar",i.options),f(i,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void p.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void p.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=r(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(l.default.query(n).prototype instanceof l.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,s)),a.default.sources.USER)}else t.quill.format(n,s,a.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=r(n,2),i=o[0],l=o[1];if("SELECT"===l.tagName){var a=void 0;if(null==e)a=null;else if(null==t[i])a=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=l.querySelector('option[value="'+s+'"]')}null==a?(l.value="",l.selectedIndex=-1):a.selected=!0}else if(null==e)l.classList.remove("ql-active");else if(l.hasAttribute("value")){var u=t[i]===l.getAttribute("value")||null!=t[i]&&t[i].toString()===l.getAttribute("value")||null==t[i]&&!l.getAttribute("value");l.classList.toggle("ql-active",u)}else l.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function d(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function y(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)d(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):d(n,t,r)}})),e.appendChild(n)}))}h.DEFAULTS={},h.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=h,t.addControls=y},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var l=o.bottom-o.top,a=e.bottom-e.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=h(n(3)),a=h(n(8)),s=n(43),u=h(s),c=h(n(27)),f=n(15),p=h(n(41));function h(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],m=function(e){function t(e,n){d(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return v(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),p.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);m.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){d(this,t);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return v(t,e),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,n,o){if(null!=t){if(0===t.length&&o===a.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),l=r(i,2),s=l[0],u=l[1];if(null!=s){e.linkRange=new f.Range(t.index-u,s.length());var p=c.default.formats(s.domNode);return e.preview.textContent=p,e.preview.setAttribute("href",p),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);b.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(""),t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=D(n(29)),o=n(36),i=n(38),l=n(64),a=D(n(65)),s=D(n(66)),u=n(67),c=D(u),f=n(37),p=n(26),h=n(39),d=n(40),y=D(n(56)),v=D(n(68)),g=D(n(27)),m=D(n(69)),b=D(n(70)),A=D(n(71)),k=D(n(72)),w=D(n(73)),N=n(13),E=D(N),O=D(n(74)),I=D(n(75)),x=D(n(57)),T=D(n(41)),S=D(n(28)),C=D(n(59)),B=D(n(60)),R=D(n(61)),j=D(n(108)),M=D(n(62));function D(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":h.FontClass,"attributors/class/size":d.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":h.FontStyle,"attributors/style/size":d.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":l.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":h.FontClass,"formats/size":d.SizeClass,"formats/blockquote":a.default,"formats/code-block":E.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":y.default,"formats/code":N.Code,"formats/italic":v.default,"formats/link":g.default,"formats/script":m.default,"formats/strike":b.default,"formats/underline":A.default,"formats/image":k.default,"formats/video":w.default,"formats/list/item":u.ListItem,"modules/formula":O.default,"modules/syntax":I.default,"modules/toolbar":x.default,"themes/bubble":j.default,"themes/snow":M.default,"ui/icons":T.default,"ui/picker":S.default,"ui/icon-picker":B.default,"ui/color-picker":C.default,"ui/tooltip":R.default},!0),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),u=new s("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="blockquote",i.tagName="blockquote",t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=s(n(0)),l=s(n(4)),a=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){e!==h.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);p.blotName="list-item",p.tagName="LI";var h=function(e){function t(e){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return f(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof p)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(a.default);h.blotName="list",h.scope=i.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[p],t.ListItem=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);a.blotName="script",a.tagName=["SUB","SUP"],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="strike",i.tagName="S",t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="underline",i.tagName="U",t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},s=n(27),u=["alt","height","width"],c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){u.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return u.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);c.blotName="image",c.tagName="IMG",t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(4),a=n(27),s=(r=a)&&r.__esModule?r:{default:r},u=["height","width"],c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){u.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return u.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=s(n(35)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);p.blotName="formula",p.className="ql-formula",p.tagName="SPAN";var h=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return f(t,e),r(t,null,[{key:"register",value:function(){l.default.register(p,!0)}}]),t}(a.default);t.FormulaBlot=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=s(n(0)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);p.className="ql-syntax";var h=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),d=function(e){function t(e,n){u(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){l.default.register(h,!0),l.default.register(p,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(a.default);d.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=h,t.default=d},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<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"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <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"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<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> <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></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<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></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <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></path> </svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <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> <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></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <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> <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> <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></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <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> <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></path> </svg>'},function(e,t){e.exports='<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></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n(3)),l=f(n(8)),a=n(43),s=f(a),u=n(15),c=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return d(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);v.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(e){function t(e,n){p(this,t);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,o){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var a=i[i.length-1],s=r.quill.getIndex(a),c=Math.min(a.length()-1,t.index+t.length-s),f=r.quill.getBounds(new u.Range(s,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return d(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(a.BaseTooltip);g.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(""),t.BubbleTooltip=g,t.default=v},function(e,t,n){e.exports=n(63)}]).default},U.exports=V();const G=F(U.exports);var Z=-1,Q=1,z=0;function Y(e,t,n,r){if(e===t)return e?[[z,e]]:[];if(null!=n){var o=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,o="number"==typeof n?null:n.newRange,i=e.length,l=t.length;if(0===r.length&&(null===o||0===o.length)){var a=r.index,s=e.slice(0,a),u=e.slice(a),c=o?o.index:null,f=a+l-i;if((null===c||c===f)&&!(f<0||f>l)){var p=t.slice(0,f);if((y=t.slice(f))===u){var h=Math.min(a,f);if((g=s.slice(0,h))===(b=p.slice(0,h)))return ee(g,s.slice(h),p.slice(h),u)}}if(null===c||c===a){var d=a,y=(p=t.slice(0,d),t.slice(d));if(p===s){var v=Math.min(i-d,l-d);if((m=u.slice(u.length-v))===(A=y.slice(y.length-v)))return ee(s,u.slice(0,u.length-v),y.slice(0,y.length-v),m)}}}if(r.length>0&&o&&0===o.length){var g=e.slice(0,r.index),m=e.slice(r.index+r.length);if(!(l<(h=g.length)+(v=m.length))){var b=t.slice(0,h),A=t.slice(l-v);if(g===b&&m===A)return ee(g,e.slice(h,i-v),t.slice(h,l-v),m)}}return null}(e,t,n);if(o)return o}var i=q(e,t),l=e.substring(0,i);i=_(e=e.substring(i),t=t.substring(i));var a=e.substring(e.length-i),s=function(e,t){var n;if(!e)return[[Q,t]];if(!t)return[[Z,e]];var r=e.length>t.length?e:t,o=e.length>t.length?t:e,i=r.indexOf(o);if(-1!==i)return n=[[Q,r.substring(0,i)],[z,o],[Q,r.substring(i+o.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Z),n;if(1===o.length)return[[Z,e],[Q,t]];var l=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,i,l,a=e.substring(n,n+Math.floor(e.length/4)),s=-1,u="";-1!==(s=t.indexOf(a,s+1));){var c=q(e.substring(n),t.substring(s)),f=_(e.substring(0,n),t.substring(0,s));u.length<f+c&&(u=t.substring(s-f,s)+t.substring(s,s+c),r=e.substring(0,n-f),o=e.substring(n+c),i=t.substring(0,s-f),l=t.substring(s+c))}return 2*u.length>=e.length?[r,o,i,l,u]:null}var i,l,a,s,u,c=o(n,r,Math.ceil(n.length/4)),f=o(n,r,Math.ceil(n.length/2));if(!c&&!f)return null;i=f?c&&c[4].length>f[4].length?c:f:c;e.length>t.length?(l=i[0],a=i[1],s=i[2],u=i[3]):(s=i[0],u=i[1],l=i[2],a=i[3]);var p=i[4];return[l,a,s,u,p]}(e,t);if(l){var a=l[0],s=l[1],u=l[2],c=l[3],f=l[4],p=Y(a,u),h=Y(s,c);return p.concat([[z,f]],h)}return function(e,t){for(var n=e.length,r=t.length,o=Math.ceil((n+r)/2),i=o,l=2*o,a=new Array(l),s=new Array(l),u=0;u<l;u++)a[u]=-1,s[u]=-1;a[i+1]=0,s[i+1]=0;for(var c=n-r,f=c%2!=0,p=0,h=0,d=0,y=0,v=0;v<o;v++){for(var g=-v+p;g<=v-h;g+=2){for(var m=i+g,b=(E=g===-v||g!==v&&a[m-1]<a[m+1]?a[m+1]:a[m-1]+1)-g;E<n&&b<r&&e.charAt(E)===t.charAt(b);)E++,b++;if(a[m]=E,E>n)h+=2;else if(b>r)p+=2;else if(f){if((w=i+c-g)>=0&&w<l&&-1!==s[w])if(E>=(k=n-s[w]))return W(e,t,E,b)}}for(var A=-v+d;A<=v-y;A+=2){for(var k,w=i+A,N=(k=A===-v||A!==v&&s[w-1]<s[w+1]?s[w+1]:s[w-1]+1)-A;k<n&&N<r&&e.charAt(n-k-1)===t.charAt(r-N-1);)k++,N++;if(s[w]=k,k>n)y+=2;else if(N>r)d+=2;else if(!f){if((m=i+c-A)>=0&&m<l&&-1!==a[m]){var E;b=i+(E=a[m])-m;if(E>=(k=n-k))return W(e,t,E,b)}}}}return[[Z,e],[Q,t]]}(e,t)}(e=e.substring(0,e.length-i),t=t.substring(0,t.length-i));return l&&s.unshift([z,l]),a&&s.push([z,a]),H(s,r),s}function W(e,t,n,r){var o=e.substring(0,n),i=t.substring(0,r),l=e.substring(n),a=t.substring(r),s=Y(o,i),u=Y(l,a);return s.concat(u)}function q(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return J(e.charCodeAt(o-1))&&o--,o}function _(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return X(e.charCodeAt(e.length-o))&&o--,o}function H(e,t){e.push([z,""]);for(var n,r=0,o=0,i=0,l="",a="";r<e.length;)if(r<e.length-1&&!e[r][1])e.splice(r,1);else switch(e[r][0]){case Q:i++,a+=e[r][1],r++;break;case Z:o++,l+=e[r][1],r++;break;case z:var s=r-i-o-1;if(t){if(s>=0&&$(e[s][1])){var u=e[s][1].slice(-1);if(e[s][1]=e[s][1].slice(0,-1),l=u+l,a=u+a,!e[s][1]){e.splice(s,1),r--;var c=s-1;e[c]&&e[c][0]===Q&&(i++,a=e[c][1]+a,c--),e[c]&&e[c][0]===Z&&(o++,l=e[c][1]+l,c--),s=c}}if(K(e[r][1])){u=e[r][1].charAt(0);e[r][1]=e[r][1].slice(1),l+=u,a+=u}}if(r<e.length-1&&!e[r][1]){e.splice(r,1);break}if(l.length>0||a.length>0){l.length>0&&a.length>0&&(0!==(n=q(a,l))&&(s>=0?e[s][1]+=a.substring(0,n):(e.splice(0,0,[z,a.substring(0,n)]),r++),a=a.substring(n),l=l.substring(n)),0!==(n=_(a,l))&&(e[r][1]=a.substring(a.length-n)+e[r][1],a=a.substring(0,a.length-n),l=l.substring(0,l.length-n)));var f=i+o;0===l.length&&0===a.length?(e.splice(r-f,f),r-=f):0===l.length?(e.splice(r-f,f,[Q,a]),r=r-f+1):0===a.length?(e.splice(r-f,f,[Z,l]),r=r-f+1):(e.splice(r-f,f,[Z,l],[Q,a]),r=r-f+2)}0!==r&&e[r-1][0]===z?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,o=0,l="",a=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(r=1;r<e.length-1;)e[r-1][0]===z&&e[r+1][0]===z&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)===e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),p=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),p=!0)),r++;p&&H(e,t)}function J(e){return e>=55296&&e<=56319}function X(e){return e>=56320&&e<=57343}function K(e){return X(e.charCodeAt(0))}function $(e){return J(e.charCodeAt(e.length-1))}function ee(e,t,n,r){return $(e)||K(r)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[z,e],[Z,t],[Q,n],[z,r]])}function te(e,t,n){return Y(e,t,n,!0)}te.INSERT=Q,te.DELETE=Z,te.EQUAL=z;var ne=te,re={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",l="[object Date]",a="[object Function]",s="[object GeneratorFunction]",u="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",h="[object RegExp]",d="[object Set]",y="[object String]",v="[object Symbol]",g="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",A="[object Float32Array]",k="[object Float64Array]",w="[object Int8Array]",N="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",I="[object Uint8ClampedArray]",x="[object Uint16Array]",T="[object Uint32Array]",S=/\w*$/,C=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,R={};R[o]=R["[object Array]"]=R[m]=R[b]=R[i]=R[l]=R[A]=R[k]=R[w]=R[N]=R[E]=R[u]=R[c]=R[f]=R[h]=R[d]=R[y]=R[v]=R[O]=R[I]=R[x]=R[T]=!0,R["[object Error]"]=R[a]=R[g]=!1;var j="object"==typeof L&&L&&L.Object===Object&&L,M="object"==typeof self&&self&&self.Object===Object&&self,D=j||M||Function("return this")(),P=t&&!t.nodeType&&t,F=P&&e&&!e.nodeType&&e,V=F&&F.exports===P;function U(e,t){return e.set(t[0],t[1]),e}function G(e,t){return e.add(t),e}function Z(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Q(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Y(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q,_=Array.prototype,H=Function.prototype,J=Object.prototype,X=D["__core-js_shared__"],K=(q=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",$=H.toString,ee=J.hasOwnProperty,te=J.toString,ne=RegExp("^"+$.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=V?D.Buffer:void 0,oe=D.Symbol,ie=D.Uint8Array,le=Y(Object.getPrototypeOf,Object),ae=Object.create,se=J.propertyIsEnumerable,ue=_.splice,ce=Object.getOwnPropertySymbols,fe=re?re.isBuffer:void 0,pe=Y(Object.keys,Object),he=Fe(D,"DataView"),de=Fe(D,"Map"),ye=Fe(D,"Promise"),ve=Fe(D,"Set"),ge=Fe(D,"WeakMap"),me=Fe(Object,"create"),be=Qe(he),Ae=Qe(de),ke=Qe(ye),we=Qe(ve),Ne=Qe(ge),Ee=oe?oe.prototype:void 0,Oe=Ee?Ee.valueOf:void 0;function Ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){this.__data__=new xe(e)}function Ce(e,t){var n=Ye(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&ee.call(e,"callee")&&(!se.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var l in e)!t&&!ee.call(e,l)||i&&("length"==l||Ge(l,r))||n.push(l);return n}function Be(e,t,n){var r=e[t];ee.call(e,t)&&ze(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Re(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function je(e,t,n,r,p,g,C){var B;if(r&&(B=g?r(e,p,g,C):r(e)),void 0!==B)return B;if(!He(e))return e;var j=Ye(e);if(j){if(B=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,B)}else{var M=Ue(e),D=M==a||M==s;if(qe(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(M==f||M==o||D&&!g){if(Q(e))return g?e:{};if(B=function(e){return"function"!=typeof e.constructor||Ze(e)?{}:(t=le(e),He(t)?ae(t):{});var t}(D?{}:e),!t)return function(e,t){return Pe(e,Ve(e),t)}(e,function(e,t){return e&&Pe(t,Je(t),e)}(B,e))}else{if(!R[M])return g?e:{};B=function(e,t,n,r){var o=e.constructor;switch(t){case m:return De(e);case i:case l:return new o(+e);case b:return function(e,t){var n=t?De(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case A:case k:case w:case N:case E:case O:case I:case x:case T:return function(e,t){var n=t?De(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){var r=t?n(z(e),!0):z(e);return Z(r,U,new e.constructor)}(e,r,n);case c:case y:return new o(e);case h:return function(e){var t=new e.constructor(e.source,S.exec(e));return t.lastIndex=e.lastIndex,t}(e);case d:return function(e,t,n){var r=t?n(W(e),!0):W(e);return Z(r,G,new e.constructor)}(e,r,n);case v:return a=e,Oe?Object(Oe.call(a)):{}}var a}(e,M,je,t)}}C||(C=new Se);var P=C.get(e);if(P)return P;if(C.set(e,B),!j)var L=n?function(e){return function(e,t,n){var r=t(e);return Ye(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Je,Ve)}(e):Je(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(L||e,(function(o,i){L&&(o=e[i=o]),Be(B,i,je(o,t,n,r,i,e,C))})),B}function Me(e){return!(!He(e)||(t=e,K&&K in t))&&(_e(e)||Q(e)?ne:C).test(Qe(e));var t}function De(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Pe(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var l=t[o],a=r?r(n[l],e[l],l,n,e):void 0;Be(n,l,void 0===a?e[l]:a)}return n}function Le(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Fe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(n)?n:void 0}Ie.prototype.clear=function(){this.__data__=me?me(null):{}},Ie.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ie.prototype.get=function(e){var t=this.__data__;if(me){var r=t[e];return r===n?void 0:r}return ee.call(t,e)?t[e]:void 0},Ie.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:ee.call(t,e)},Ie.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?n:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,n=Re(t,e);return!(n<0)&&(n==t.length-1?t.pop():ue.call(t,n,1),!0)},xe.prototype.get=function(e){var t=this.__data__,n=Re(t,e);return n<0?void 0:t[n][1]},xe.prototype.has=function(e){return Re(this.__data__,e)>-1},xe.prototype.set=function(e,t){var n=this.__data__,r=Re(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new Ie,map:new(de||xe),string:new Ie}},Te.prototype.delete=function(e){return Le(this,e).delete(e)},Te.prototype.get=function(e){return Le(this,e).get(e)},Te.prototype.has=function(e){return Le(this,e).has(e)},Te.prototype.set=function(e,t){return Le(this,e).set(e,t),this},Se.prototype.clear=function(){this.__data__=new xe},Se.prototype.delete=function(e){return this.__data__.delete(e)},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xe){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this;n=this.__data__=new Te(r)}return n.set(e,t),this};var Ve=ce?Y(ce,Object):function(){return[]},Ue=function(e){return te.call(e)};function Ge(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||B.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||J)}function Qe(e){if(null!=e){try{return $.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(he&&Ue(new he(new ArrayBuffer(1)))!=b||de&&Ue(new de)!=u||ye&&Ue(ye.resolve())!=p||ve&&Ue(new ve)!=d||ge&&Ue(new ge)!=g)&&(Ue=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,r=n?Qe(n):void 0;if(r)switch(r){case be:return b;case Ae:return u;case ke:return p;case we:return d;case Ne:return g}return t});var Ye=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!_e(e)}var qe=fe||function(){return!1};function _e(e){var t=He(e)?te.call(e):"";return t==a||t==s}function He(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Je(e){return We(e)?Ce(e):function(e){if(!Ze(e))return pe(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return je(e,!0,!0)}}(re,re.exports);var oe=re.exports,ie={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=1,o=2,i=9007199254740991,l="[object Arguments]",a="[object Array]",s="[object AsyncFunction]",u="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",h="[object GeneratorFunction]",d="[object Map]",y="[object Number]",v="[object Null]",g="[object Object]",m="[object Promise]",b="[object Proxy]",A="[object RegExp]",k="[object Set]",w="[object String]",N="[object Symbol]",E="[object Undefined]",O="[object WeakMap]",I="[object ArrayBuffer]",x="[object DataView]",T=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[l]=C[a]=C[I]=C[u]=C[x]=C[c]=C[f]=C[p]=C[d]=C[y]=C[g]=C[A]=C[k]=C[w]=C[O]=!1;var B="object"==typeof L&&L&&L.Object===Object&&L,R="object"==typeof self&&self&&self.Object===Object&&self,j=B||R||Function("return this")(),M=t&&!t.nodeType&&t,D=M&&e&&!e.nodeType&&e,P=D&&D.exports===M,F=P&&B.process,V=function(){try{return F&&F.binding&&F.binding("util")}catch(e){}}(),U=V&&V.isTypedArray;function G(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var z,Y,W,q=Array.prototype,_=Function.prototype,H=Object.prototype,J=j["__core-js_shared__"],X=_.toString,K=H.hasOwnProperty,$=(z=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",ee=H.toString,te=RegExp("^"+X.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=P?j.Buffer:void 0,re=j.Symbol,oe=j.Uint8Array,ie=H.propertyIsEnumerable,le=q.splice,ae=re?re.toStringTag:void 0,se=Object.getOwnPropertySymbols,ue=ne?ne.isBuffer:void 0,ce=(Y=Object.keys,W=Object,function(e){return Y(W(e))}),fe=Ve(j,"DataView"),pe=Ve(j,"Map"),he=Ve(j,"Promise"),de=Ve(j,"Set"),ye=Ve(j,"WeakMap"),ve=Ve(Object,"create"),ge=Qe(fe),me=Qe(pe),be=Qe(he),Ae=Qe(de),ke=Qe(ye),we=re?re.prototype:void 0,Ne=we?we.valueOf:void 0;function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ie;++t<n;)this.add(e[t])}function Te(e){var t=this.__data__=new Oe(e);this.size=t.size}function Se(e,t){var n=We(e),r=!n&&Ye(e),o=!n&&!r&&qe(e),i=!n&&!r&&!o&&Ke(e),l=n||r||o||i,a=l?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=a.length;for(var u in e)!t&&!K.call(e,u)||l&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ze(u,s))||a.push(u);return a}function Ce(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function Be(e){return null==e?void 0===e?E:v:ae&&ae in Object(e)?function(e){var t=K.call(e,ae),n=e[ae];try{e[ae]=void 0;var r=!0}catch(i){}var o=ee.call(e);r&&(t?e[ae]=n:delete e[ae]);return o}(e):function(e){return ee.call(e)}(e)}function Re(e){return Xe(e)&&Be(e)==l}function je(e,t,n,i,s){return e===t||(null==e||null==t||!Xe(e)&&!Xe(t)?e!=e&&t!=t:function(e,t,n,i,s,p){var h=We(e),v=We(t),m=h?a:Ge(e),b=v?a:Ge(t),E=(m=m==l?g:m)==g,O=(b=b==l?g:b)==g,T=m==b;if(T&&qe(e)){if(!qe(t))return!1;h=!0,E=!1}if(T&&!E)return p||(p=new Te),h||Ke(e)?Pe(e,t,n,i,s,p):function(e,t,n,i,l,a,s){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!a(new oe(e),new oe(t)));case u:case c:case y:return ze(+e,+t);case f:return e.name==t.name&&e.message==t.message;case A:case w:return e==t+"";case d:var p=Z;case k:var h=i&r;if(p||(p=Q),e.size!=t.size&&!h)return!1;var v=s.get(e);if(v)return v==t;i|=o,s.set(e,t);var g=Pe(p(e),p(t),i,l,a,s);return s.delete(e),g;case N:if(Ne)return Ne.call(e)==Ne.call(t)}return!1}(e,t,m,n,i,s,p);if(!(n&r)){var S=E&&K.call(e,"__wrapped__"),C=O&&K.call(t,"__wrapped__");if(S||C){var B=S?e.value():e,R=C?t.value():t;return p||(p=new Te),s(B,R,n,i,p)}}if(!T)return!1;return p||(p=new Te),function(e,t,n,o,i,l){var a=n&r,s=Le(e),u=s.length,c=Le(t),f=c.length;if(u!=f&&!a)return!1;var p=u;for(;p--;){var h=s[p];if(!(a?h in t:K.call(t,h)))return!1}var d=l.get(e);if(d&&l.get(t))return d==t;var y=!0;l.set(e,t),l.set(t,e);var v=a;for(;++p<u;){var g=e[h=s[p]],m=t[h];if(o)var b=a?o(m,g,h,t,e,l):o(g,m,h,e,t,l);if(!(void 0===b?g===m||i(g,m,n,o,l):b)){y=!1;break}v||(v="constructor"==h)}if(y&&!v){var A=e.constructor,k=t.constructor;A==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof k&&k instanceof k||(y=!1)}return l.delete(e),l.delete(t),y}(e,t,n,i,s,p)}(e,t,n,i,je,s))}function Me(e){return!(!Je(e)||function(e){return!!$&&$ in e}(e))&&(_e(e)?te:T).test(Qe(e))}function De(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||H,t!==r)return ce(e);var t,n,r,o=[];for(var i in Object(e))K.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Pe(e,t,n,i,l,a){var s=n&r,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var f=a.get(e);if(f&&a.get(t))return f==t;var p=-1,h=!0,d=n&o?new xe:void 0;for(a.set(e,t),a.set(t,e);++p<u;){var y=e[p],v=t[p];if(i)var g=s?i(v,y,p,t,e,a):i(y,v,p,e,t,a);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!G(t,(function(e,t){if(r=t,!d.has(r)&&(y===e||l(y,e,n,i,a)))return d.push(t);var r}))){h=!1;break}}else if(y!==v&&!l(y,v,n,i,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Le(e){return function(e,t,n){var r=t(e);return We(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,$e,Ue)}function Fe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(n)?n:void 0}Ee.prototype.clear=function(){this.__data__=ve?ve(null):{},this.size=0},Ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ee.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return K.call(t,e)?t[e]:void 0},Ee.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:K.call(t,e)},Ee.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ve&&void 0===t?n:t,this},Oe.prototype.clear=function(){this.__data__=[],this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,n=Ce(t,e);return!(n<0)&&(n==t.length-1?t.pop():le.call(t,n,1),--this.size,!0)},Oe.prototype.get=function(e){var t=this.__data__,n=Ce(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Ce(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Ce(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ie.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(pe||Oe),string:new Ee}},Ie.prototype.delete=function(e){var t=Fe(this,e).delete(e);return this.size-=t?1:0,t},Ie.prototype.get=function(e){return Fe(this,e).get(e)},Ie.prototype.has=function(e){return Fe(this,e).has(e)},Ie.prototype.set=function(e,t){var n=Fe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xe.prototype.add=xe.prototype.push=function(e){return this.__data__.set(e,n),this},xe.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new Oe,this.size=0},Te.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ie(r)}return n.set(e,t),this.size=n.size,this};var Ue=se?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var l=e[n];t(l,n,e)&&(i[o++]=l)}return i}(se(e),(function(t){return ie.call(e,t)})))}:function(){return[]},Ge=Be;function Ze(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function Qe(e){if(null!=e){try{return X.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(fe&&Ge(new fe(new ArrayBuffer(1)))!=x||pe&&Ge(new pe)!=d||he&&Ge(he.resolve())!=m||de&&Ge(new de)!=k||ye&&Ge(new ye)!=O)&&(Ge=function(e){var t=Be(e),n=t==g?e.constructor:void 0,r=n?Qe(n):"";if(r)switch(r){case ge:return x;case me:return d;case be:return m;case Ae:return k;case ke:return O}return t});var Ye=Re(function(){return arguments}())?Re:function(e){return Xe(e)&&K.call(e,"callee")&&!ie.call(e,"callee")},We=Array.isArray;var qe=ue||function(){return!1};function _e(e){if(!Je(e))return!1;var t=Be(e);return t==p||t==h||t==s||t==b}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xe(e){return null!=e&&"object"==typeof e}var Ke=U?function(e){return function(t){return e(t)}}(U):function(e){return Xe(e)&&He(e.length)&&!!C[Be(e)]};function $e(e){return null!=(t=e)&&He(t.length)&&!_e(t)?Se(e):De(e);var t}e.exports=function(e,t){return je(e,t)}}(ie,ie.exports);var le=ie.exports,ae={},se=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ae,"__esModule",{value:!0});var ue,ce,fe=se(oe),pe=se(le);(ce=ue||(ue={})).compose=function(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=fe.default(t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},ce.diff=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return pe.default(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},ce.invert=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),e=e||{};var n=Object.keys(t).reduce((function(n,r){return t[r]!==e[r]&&void 0!==e[r]&&(n[r]=t[r]),n}),{});return Object.keys(e).reduce((function(n,r){return e[r]!==t[r]&&void 0===t[r]&&(n[r]=null),n}),n)},ce.transform=function(e,t,n){if(void 0===n&&(n=!1),"object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}},ae.default=ue;var he,de,ye={},ve={};function ge(){if(de)return ye;de=1;var e=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ye,"__esModule",{value:!0});var t,n,r=e(function(){if(he)return ve;he=1;var e=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ve,"__esModule",{value:!0});var t=e(ge()),n=function(){function e(e){this.ops=e,this.index=0,this.offset=0}return e.prototype.hasNext=function(){return this.peekLength()<1/0},e.prototype.next=function(e){e||(e=1/0);var n=this.ops[this.index];if(n){var r=this.offset,o=t.default.length(n);if(e>=o-r?(e=o-r,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof n.delete)return{delete:e};var i={};return n.attributes&&(i.attributes=n.attributes),"number"==typeof n.retain?i.retain=e:"string"==typeof n.insert?i.insert=n.insert.substr(r,e):i.insert=n.insert,i}return{retain:1/0}},e.prototype.peek=function(){return this.ops[this.index]},e.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},e.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e}();return ve.default=n,ve}());return(n=t||(t={})).iterator=function(e){return new r.default(e)},n.length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1},ye.default=t,ye}var me=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},be=me(ne),Ae=me(oe),ke=me(le),we=me(ae),Ne=me(ge()),Ee=String.fromCharCode(0);const Oe=F(function(){function e(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}return e.prototype.insert=function(e,t){var n={};return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},e.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},e.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},e.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=Ae.default(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(ke.default(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},e.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},e.prototype.filter=function(e){return this.ops.filter(e)},e.prototype.forEach=function(e){this.ops.forEach(e)},e.prototype.map=function(e){return this.ops.map(e)},e.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},e.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},e.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+Ne.default.length(t):t.delete?e-t.delete:e}),0)},e.prototype.length=function(){return this.reduce((function(e,t){return e+Ne.default.length(t)}),0)},e.prototype.slice=function(t,n){void 0===t&&(t=0),void 0===n&&(n=1/0);for(var r=[],o=Ne.default.iterator(this.ops),i=0;i<n&&o.hasNext();){var l=void 0;i<t?l=o.next(t-i):(l=o.next(n-i),r.push(l)),i+=Ne.default.length(l)}return new e(r)},e.prototype.compose=function(t){var n=Ne.default.iterator(this.ops),r=Ne.default.iterator(t.ops),o=[],i=r.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===n.peekType()&&n.peekLength()<=l;)l-=n.peekLength(),o.push(n.next());i.retain-l>0&&r.next(i.retain-l)}for(var a=new e(o);n.hasNext()||r.hasNext();)if("insert"===r.peekType())a.push(r.next());else if("delete"===n.peekType())a.push(n.next());else{var s=Math.min(n.peekLength(),r.peekLength()),u=n.next(s),c=r.next(s);if("number"==typeof c.retain){var f={};"number"==typeof u.retain?f.retain=s:f.insert=u.insert;var p=we.default.compose(u.attributes,c.attributes,"number"==typeof u.retain);if(p&&(f.attributes=p),a.push(f),!r.hasNext()&&ke.default(a.ops[a.ops.length-1],f)){var h=new e(n.rest());return a.concat(h).chop()}}else"number"==typeof c.delete&&"number"==typeof u.retain&&a.push(c)}return a.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var r=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:Ee;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new e,i=be.default(r[0],r[1],n),l=Ne.default.iterator(this.ops),a=Ne.default.iterator(t.ops);return i.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case be.default.INSERT:n=Math.min(a.peekLength(),t),o.push(a.next(n));break;case be.default.DELETE:n=Math.min(t,l.peekLength()),l.next(n),o.delete(n);break;case be.default.EQUAL:n=Math.min(l.peekLength(),a.peekLength(),t);var r=l.next(n),i=a.next(n);ke.default(r.insert,i.insert)?o.retain(n,we.default.diff(r.attributes,i.attributes)):o.push(i).delete(n)}t-=n}})),o.chop()},e.prototype.eachLine=function(t,n){void 0===n&&(n="\n");for(var r=Ne.default.iterator(this.ops),o=new e,i=0;r.hasNext();){if("insert"!==r.peekType())return;var l=r.peek(),a=Ne.default.length(l)-r.peekLength(),s="string"==typeof l.insert?l.insert.indexOf(n,a)-a:-1;if(s<0)o.push(r.next());else if(s>0)o.push(r.next(s));else{if(!1===t(o,r.next(1).attributes||{},i))return;i+=1,o=new e}}o.length()>0&&t(o,{},i)},e.prototype.invert=function(t){var n=new e;return this.reduce((function(e,r){if(r.insert)n.delete(Ne.default.length(r));else{if(r.retain&&null==r.attributes)return n.retain(r.retain),e+r.retain;if(r.delete||r.retain&&r.attributes){var o=r.delete||r.retain;return t.slice(e,e+o).forEach((function(e){r.delete?n.push(e):r.retain&&r.attributes&&n.retain(Ne.default.length(e),we.default.invert(r.attributes,e.attributes))})),e+o}}return e}),0),n.chop()},e.prototype.transform=function(t,n){if(void 0===n&&(n=!1),n=!!n,"number"==typeof t)return this.transformPosition(t,n);for(var r=t,o=Ne.default.iterator(this.ops),i=Ne.default.iterator(r.ops),l=new e;o.hasNext()||i.hasNext();)if("insert"!==o.peekType()||!n&&"insert"===i.peekType())if("insert"===i.peekType())l.push(i.next());else{var a=Math.min(o.peekLength(),i.peekLength()),s=o.next(a),u=i.next(a);if(s.delete)continue;u.delete?l.push(u):l.retain(a,we.default.transform(s.attributes,u.attributes,n))}else l.retain(Ne.default.length(o.next()));return l.chop()},e.prototype.transformPosition=function(e,t){void 0===t&&(t=!1),t=!!t;for(var n=Ne.default.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.Op=Ne.default,e.AttributeMap=we.default,e}()),Ie={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},xe=n.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:e=>["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>"string"!=typeof e||""===e||("#"===e.charAt(0)||-1!==Object.keys(Ie).indexOf(e))},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(e,t)=>{let r,o;n.onMounted((()=>{l()})),n.onBeforeUnmount((()=>{r=null}));const i=n.ref(),l=()=>{var n;if(i.value){if(o=a(),e.modules)if(Array.isArray(e.modules))for(const t of e.modules)G.register(`modules/${t.name}`,t.module);else G.register(`modules/${e.modules.name}`,e.modules.module);r=new G(i.value,o),v(e.content),r.on("text-change",f),r.on("selection-change",h),r.on("editor-change",d),"bubble"!==e.theme&&i.value.classList.remove("ql-bubble"),"snow"!==e.theme&&i.value.classList.remove("ql-snow"),null===(n=r.getModule("toolbar"))||void 0===n||n.container.addEventListener("mousedown",(e=>{e.preventDefault()})),t.emit("ready",r)}},a=()=>{const t={};if(""!==e.theme&&(t.theme=e.theme),e.readOnly&&(t.readOnly=e.readOnly),e.placeholder&&(t.placeholder=e.placeholder),e.toolbar&&""!==e.toolbar&&(t.modules={toolbar:(()=>{if("object"==typeof e.toolbar)return e.toolbar;if("string"==typeof e.toolbar){return"#"===e.toolbar.charAt(0)?e.toolbar:Ie[e.toolbar]}})()}),e.modules){const n=(()=>{var t,n;const r={};if(Array.isArray(e.modules))for(const o of e.modules)r[o.name]=null!==(t=o.options)&&void 0!==t?t:{};else r[e.modules.name]=null!==(n=e.modules.options)&&void 0!==n?n:{};return r})();t.modules=Object.assign({},t.modules,n)}return Object.assign({},e.globalOptions,e.options,t)},s=e=>"object"==typeof e&&e?e.slice():e;let u;const c=e=>{if(typeof u==typeof e){if(e===u)return!0;if("object"==typeof e&&e&&"object"==typeof u&&u)return t=u.diff(e),!Object.values(t.ops).some((e=>!e.retain||1!==Object.keys(e).length))}var t;return!1},f=(n,r,o)=>{u=s(y()),c(e.content)||t.emit("update:content",u),t.emit("textChange",{delta:n,oldContents:r,source:o})},p=n.ref(),h=(e,n,o)=>{p.value=!!(null==r?void 0:r.hasFocus()),t.emit("selectionChange",{range:e,oldRange:n,source:o})};n.watch(p,(e=>{e?t.emit("focus",i):t.emit("blur",i)}));const d=(...e)=>{"text-change"===e[0]&&t.emit("editorChange",{name:e[0],delta:e[1],oldContents:e[2],source:e[3]}),"selection-change"===e[0]&&t.emit("editorChange",{name:e[0],range:e[1],oldRange:e[2],source:e[3]})},y=(t,n)=>"html"===e.contentType?b():"text"===e.contentType?g(t,n):null==r?void 0:r.getContents(t,n),v=(t,n="api")=>{const o=t||("delta"===e.contentType?new Oe:"");"html"===e.contentType?A(o):"text"===e.contentType?m(o,n):null==r||r.setContents(o,n),u=s(o)},g=(e,t)=>{var n;return null!==(n=null==r?void 0:r.getText(e,t))&&void 0!==n?n:""},m=(e,t="api")=>{null==r||r.setText(e,t)},b=()=>{var e;return null!==(e=null==r?void 0:r.root.innerHTML)&&void 0!==e?e:""},A=e=>{r&&(r.root.innerHTML=e)};return n.watch((()=>e.content),(e=>{if(!r||!e||c(e))return;const t=r.getSelection();t&&n.nextTick((()=>null==r?void 0:r.setSelection(t))),v(e)}),{deep:!0}),n.watch((()=>e.enable),(e=>{r&&r.enable(e)})),{editor:i,getEditor:()=>i.value,getToolbar:()=>{var e;return null===(e=null==r?void 0:r.getModule("toolbar"))||void 0===e?void 0:e.container},getQuill:()=>{if(r)return r;throw'The quill editor hasn\'t been instantiated yet,\n make sure to call this method when the editor ready\n or use v-on:ready="onReady(quill)" event instead.'},getContents:y,setContents:v,getHTML:b,setHTML:A,pasteHTML:(e,t="api")=>{const n=null==r?void 0:r.clipboard.convert(e);n&&(null==r||r.setContents(n,t))},focus:()=>{null==r||r.focus()},getText:g,setText:m,reinit:()=>{n.nextTick((()=>{var e;!t.slots.toolbar&&r&&(null===(e=r.getModule("toolbar"))||void 0===e||e.container.remove()),l()}))}}},render(){var e,t;return[null===(t=(e=this.$slots).toolbar)||void 0===t?void 0:t.call(e),n.h("div",{ref:"editor",...this.$attrs})]}}),Te={modelValue:{default:"",type:String},token:{default:"",type:String},readonly:{type:Boolean,default:!1},border:{type:Boolean,default:!0}},Se=n.defineComponent({name:"TextEditor",components:{QuillEditor:xe},emits:["update:modelValue","textChange"],props:Te,setup:(e,t)=>new Ce(e,t)});let Ce=class extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"fileApi",new o.FileApi),u(this,"uploadApi",new o.UploadApi),u(this,"business",this.storageInfo.getCurrentInsTree()),u(this,"componentShow",n.ref(!1)),u(this,"content",n.ref("")),u(this,"theme",n.ref("snow")),u(this,"QuillEditorRef",n.ref()),u(this,"options",n.reactive({modules:{toolbar:{container:[["bold","italic","underline","strike"],["blockquote","code-block"],[{size:["small",!1,"large","huge"]}],[{font:[]}],[{align:[]}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{header:1},{header:2}],["image"],[{color:[]}],[{background:[]}]]}}})),u(this,"textChange",(()=>{this.ctx.emit("update:modelValue",this.content.value),this.ctx.emit("textChange",this.content.value)})),u(this,"getText",(()=>this.QuillEditorRef.value.getHTML())),u(this,"saveTextData",(async()=>{let e=JSON.stringify(this.content.value);const t=this.uploadApi.getBaseFilePo(this.props.token,"content","默认");await this.uploadApi.writeFile(this.props.token+"","json",e,t)})),u(this,"deleteTextData",(async()=>{await this.fileApi.deleteByToken(this.props.token)})),u(this,"deleteTextDataByToken",(async e=>{await this.fileApi.deleteByToken(e)})),u(this,"clearTextData",(async()=>{this.content.value="",this.QuillEditorRef.value.setHTML("")})),this.props=e,this.ctx=t,this.init()}init(){n.onMounted((()=>{this.loadTextData(),n.watchEffect((()=>{this.componentShow.value=!1,this.props.readonly?this.theme.value="bubble":this.theme.value="snow",n.nextTick((()=>{this.componentShow.value=!0}))}))}))}async loadTextData(){if(!this.utilities.isNull(this.props.token)){const e=this.utilities.parseApiResult(await this.fileApi.readText(this.props.token));e&&(this.content.value=JSON.parse(e))}}};const Be=h(Se,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("QuillEditor");return n.openBlock(),n.createElementBlock("div",{style:{height:"100%"},class:n.normalizeClass({"text-edit-border":e.border&&e.readonly})},[e.componentShow?(n.openBlock(),n.createBlock(a,{key:0,content:e.content,"onUpdate:content":t[0]||(t[0]=t=>e.content=t),readOnly:e.readonly,theme:e.theme,onTextChange:e.textChange,contentType:"html",ref:"QuillEditorRef",options:e.options},null,8,["content","readOnly","theme","onTextChange","options"])):n.createCommentVNode("",!0)],2)}],["__scopeId","data-v-5812cc0f"]]),Re=new i.DictionaryDetailApi,je=async(e,t,n,o)=>{t||(t=[]),l.utilities.isNull(o)&&(o=r.storageInfo.getCurrentPlatform().Id);const i=l.utilities.parseApiResult(await Re.getOptions(o,e));return n?(t.splice(0,0,...l.utilities.arrayHelper.parseIViewOptions(i,"DetailInfor","DetailValue")),t):i},Me={code:{type:String,default:""},platformId:{type:Number,default:null},value:{type:String,default:""},readonly:{type:Boolean,default:!1}},De=n.defineComponent({name:"NvDicSelect",components:{},emits:["input","change"],props:Me,setup:(e,t)=>new Pe(e,t)});class Pe extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"DicValue",n.ref("")),u(this,"dicOptions",n.ref([])),u(this,"DicSelectChange",(()=>{this.ctx.emit("input",this.DicValue.value),this.ctx.emit("change",this.DicValue.value)})),this.props=e,this.ctx=t,this.loadDicData()}async loadDicData(){this.dicOptions.value=await je(this.props.code,[],!0,this.props.platformId)}}const Le=h(De,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Option"),s=n.resolveComponent("Select");return n.openBlock(),n.createBlock(s,{disabled:e.readonly,modelValue:e.DicValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.DicValue=t),transfer:"",onOnChange:e.DicSelectChange},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dicOptions,(e=>(n.openBlock(),n.createBlock(a,{value:e.value,key:e.value},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e.text),1)])),_:2},1032,["value"])))),128))])),_:1},8,["disabled","modelValue","onOnChange"])}]]);var Fe={Identity:function(e){return e},True:function(){return!0},Blank:function(){}},Ve="boolean",Ue="number",Ge="string",Ze="undefined",Qe="function",ze={"":Fe.Identity},Ye=function(e){if(null==e)return Fe.Identity;if(typeof e===Ge){let t=ze[e];if(null!=t)return t;if(-1===e.indexOf("=>")){const n=new RegExp("[$]+","g");let r,o=0;for(;null!=(r=n.exec(e));)r[0].length>o&&(o=r[0].length);const i=[];for(let e=1;e<=o;e++){let t="";for(let n=0;n<e;n++)t+="$";i.push(t)}const l=i.join(",");return t=new Function(l,"return "+e),ze[e]=t,t}{const n=e.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/);return t=new Function(n[1],n[2].match(/\breturn\b/)?n[2]:"return "+n[2]),ze[e]=t,t}}return e},We=function(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},qe=function(e,t){return e===t?0:e>t?1:-1},_e=function(e){null!=e&&e.dispose()},He=function(){return"undefined"!=typeof Symbol&&void 0!==Symbol.iterator},Je=0,Xe=1,Ke=2,$e=function(e,t,n){var r=new et,o=Je;this.current=r.current,this.moveNext=function(){try{switch(o){case Je:o=Xe,e();case Xe:return!!t.apply(r)||(this.dispose(),!1);case Ke:return!1}}catch(n){throw this.dispose(),n}},this.dispose=function(){if(o==Xe)try{n()}finally{o=Ke}}},et=function(){var e=null;this.current=function(){return e},this.yieldReturn=function(t){return e=t,!0},this.yieldBreak=function(){return!1}},tt=function(e){this.getEnumerator=e};(tt.Utils={}).createLambda=function(e){return Ye(e)},tt.Utils.createEnumerable=function(e){return new tt(e)},tt.Utils.createEnumerator=function(e,t,n){return new $e(e,t,n)},tt.Utils.extendTo=function(e){var t,n=e.prototype;e===Array?(t=it.prototype,We(n,"getSource",(function(){return this}))):(t=tt.prototype,We(n,"getEnumerator",(function(){return tt.from(this).getEnumerator()})));for(let r in t){const e=t[r];n[r]!=e&&(null!=n[r]&&(r+="ByLinq",n[r]==e)||e instanceof Function&&We(n,r,e))}},tt.Utils.recallFrom=function(e){var t,n=e.prototype;e===Array?(t=it.prototype,delete n.getSource):(t=tt.prototype,delete n.getEnumerator);for(const r in t){const e=t[r];n[r+"ByLinq"]?delete n[r+"ByLinq"]:n[r]==e&&e instanceof Function&&delete n[r]}},tt.choice=function(){var e=arguments;return new tt((function(){return new $e((function(){e=e[0]instanceof Array?e[0]:null!=e[0].getEnumerator?e[0].toArray():e}),(function(){return this.yieldReturn(e[Math.floor(Math.random()*e.length)])}),Fe.Blank)}))},tt.cycle=function(){var e=arguments;return new tt((function(){var t=0;return new $e((function(){e=e[0]instanceof Array?e[0]:null!=e[0].getEnumerator?e[0].toArray():e}),(function(){return t>=e.length&&(t=0),this.yieldReturn(e[t++])}),Fe.Blank)}))},tt.empty=function(){return new tt((function(){return new $e(Fe.Blank,(function(){return!1}),Fe.Blank)}))},tt.from=function(e){if(null==e)return tt.empty();if(e instanceof tt)return e;if(typeof e==Ue||typeof e==Ve)return tt.repeat(e,1);if(typeof e==Ge)return new tt((function(){var t=0;return new $e(Fe.Blank,(function(){return t<e.length&&this.yieldReturn(e.charAt(t++))}),Fe.Blank)}));if(typeof e!=Qe){if(typeof e.length==Ue)return new it(e);if("undefined"!=typeof Symbol&&void 0!==e[Symbol.iterator])return new tt((function(){return new $e(Fe.Blank,(function(){var t=e.next();return!t.done&&this.yieldReturn(t.value)}),Fe.Blank)}))}return new tt((function(){var t=[],n=0;return new $e((function(){for(const n in e){const r=e[n];r instanceof Function||!Object.prototype.hasOwnProperty.call(e,n)||t.push({key:n,value:r})}}),(function(){return n<t.length&&this.yieldReturn(t[n++])}),Fe.Blank)}))},tt.make=function(e){return tt.repeat(e,1)},tt.matches=function(e,t,n){return null==n&&(n=""),t instanceof RegExp&&(n+=t.ignoreCase?"i":"",n+=t.multiline?"m":"",t=t.source),-1===n.indexOf("g")&&(n+="g"),new tt((function(){var r;return new $e((function(){r=new RegExp(t,n)}),(function(){var t=r.exec(e);return!!t&&this.yieldReturn(t)}),Fe.Blank)}))},tt.range=function(e,t,n){return null==n&&(n=1),new tt((function(){var r,o=0;return new $e((function(){r=e-n}),(function(){return o++<t?this.yieldReturn(r+=n):this.yieldBreak()}),Fe.Blank)}))},tt.rangeDown=function(e,t,n){return null==n&&(n=1),new tt((function(){var r,o=0;return new $e((function(){r=e+n}),(function(){return o++<t?this.yieldReturn(r-=n):this.yieldBreak()}),Fe.Blank)}))},tt.rangeTo=function(e,t,n){return null==n&&(n=1),new tt(e<t?function(){var r;return new $e((function(){r=e-n}),(function(){var e=r+=n;return e<=t?this.yieldReturn(e):this.yieldBreak()}),Fe.Blank)}:function(){var r;return new $e((function(){r=e+n}),(function(){var e=r-=n;return e>=t?this.yieldReturn(e):this.yieldBreak()}),Fe.Blank)})},tt.repeat=function(e,t){return null!=t?tt.repeat(e).take(t):new tt((function(){return new $e(Fe.Blank,(function(){return this.yieldReturn(e)}),Fe.Blank)}))},tt.repeatWithFinalize=function(e,t){return e=Ye(e),t=Ye(t),new tt((function(){var n;return new $e((function(){n=e()}),(function(){return this.yieldReturn(n)}),(function(){null!=n&&(t(n),n=null)}))}))},tt.generate=function(e,t){return null!=t?tt.generate(e).take(t):(e=Ye(e),new tt((function(){return new $e(Fe.Blank,(function(){return this.yieldReturn(e())}),Fe.Blank)})))},tt.toInfinity=function(e,t){return null==e&&(e=0),null==t&&(t=1),new tt((function(){var n;return new $e((function(){n=e-t}),(function(){return this.yieldReturn(n+=t)}),Fe.Blank)}))},tt.toNegativeInfinity=function(e,t){return null==e&&(e=0),null==t&&(t=1),new tt((function(){var n;return new $e((function(){n=e+t}),(function(){return this.yieldReturn(n-=t)}),Fe.Blank)}))},tt.unfold=function(e,t){return t=Ye(t),new tt((function(){var n,r=!0;return new $e(Fe.Blank,(function(){return r?(r=!1,n=e,this.yieldReturn(n)):(n=t(n),this.yieldReturn(n))}),Fe.Blank)}))},tt.defer=function(e){return new tt((function(){var t;return new $e((function(){t=tt.from(e()).getEnumerator()}),(function(){return t.moveNext()?this.yieldReturn(t.current()):this.yieldBreak()}),(function(){_e(t)}))}))},tt.prototype.traverseBreadthFirst=function(e,t){var n=this;return e=Ye(e),t=Ye(t),new tt((function(){var r,o=0,i=[];return new $e((function(){r=n.getEnumerator()}),(function(){for(;;){if(r.moveNext())return i.push(r.current()),this.yieldReturn(t(r.current(),o));const n=tt.from(i).selectMany((function(t){return e(t)}));if(!n.any())return!1;o++,i=[],_e(r),r=n.getEnumerator()}}),(function(){_e(r)}))}))},tt.prototype.traverseDepthFirst=function(e,t){var n=this;return e=Ye(e),t=Ye(t),new tt((function(){var r,o=[];return new $e((function(){r=n.getEnumerator()}),(function(){for(;;){if(r.moveNext()){const n=t(r.current(),o.length);return o.push(r),r=tt.from(e(r.current())).getEnumerator(),this.yieldReturn(n)}if(o.length<=0)return!1;_e(r),r=o.pop()}}),(function(){try{_e(r)}finally{tt.from(o).forEach((function(e){e.dispose()}))}}))}))},tt.prototype.flatten=function(){var e=this;return new tt((function(){var t,n=null;return new $e((function(){t=e.getEnumerator()}),(function(){for(;;){if(null!=n){if(n.moveNext())return this.yieldReturn(n.current());n=null}if(t.moveNext()){if(t.current()instanceof Array){_e(n),n=tt.from(t.current()).selectMany(Fe.Identity).flatten().getEnumerator();continue}return this.yieldReturn(t.current())}return!1}}),(function(){try{_e(t)}finally{_e(n)}}))}))},tt.prototype.pairwise=function(e){var t=this;return e=Ye(e),new tt((function(){var n;return new $e((function(){(n=t.getEnumerator()).moveNext()}),(function(){var t=n.current();return!!n.moveNext()&&this.yieldReturn(e(t,n.current()))}),(function(){_e(n)}))}))},tt.prototype.scan=function(e,t){var n;null==t?(t=Ye(e),n=!1):(t=Ye(t),n=!0);var r=this;return new tt((function(){var o,i,l=!0;return new $e((function(){o=r.getEnumerator()}),(function(){if(l){if(l=!1,n)return this.yieldReturn(i=e);if(o.moveNext())return this.yieldReturn(i=o.current())}return!!o.moveNext()&&this.yieldReturn(i=t(i,o.current()))}),(function(){_e(o)}))}))},tt.prototype.select=function(e){if((e=Ye(e)).length<=1)return new at(this,null,e);var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(e(n.current(),r++))}),(function(){_e(n)}))}))},tt.prototype.selectMany=function(e,t){var n=this;return e=Ye(e),null==t&&(t=function(e,t){return t}),t=Ye(t),new tt((function(){var r,o=void 0,i=0;return new $e((function(){r=n.getEnumerator()}),(function(){if(void 0===o&&!r.moveNext())return!1;do{if(null==o){const t=e(r.current(),i++);o=tt.from(t).getEnumerator()}if(o.moveNext())return this.yieldReturn(t(r.current(),o.current()));_e(o),o=null}while(r.moveNext());return!1}),(function(){try{_e(r)}finally{_e(o)}}))}))},tt.prototype.where=function(e){if((e=Ye(e)).length<=1)return new lt(this,e);var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){for(;n.moveNext();)if(e(n.current(),r++))return this.yieldReturn(n.current());return!1}),(function(){_e(n)}))}))},tt.prototype.choose=function(e){e=Ye(e);var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){for(;n.moveNext();){const t=e(n.current(),r++);if(null!=t)return this.yieldReturn(t)}return this.yieldBreak()}),(function(){_e(n)}))}))},tt.prototype.ofType=function(e){var t;switch(e){case Number:t=Ue;break;case String:t=Ge;break;case Boolean:t=Ve;break;case Function:t=Qe;break;default:t=null}return null===t?this.where((function(t){return t instanceof e})):this.where((function(e){return typeof e===t}))},tt.prototype.zip=function(){var e=arguments,t=Ye(arguments[arguments.length-1]),n=this;if(2==arguments.length){const e=arguments[0];return new tt((function(){var r,o,i=0;return new $e((function(){r=n.getEnumerator(),o=tt.from(e).getEnumerator()}),(function(){return!(!r.moveNext()||!o.moveNext())&&this.yieldReturn(t(r.current(),o.current(),i++))}),(function(){try{_e(r)}finally{_e(o)}}))}))}return new tt((function(){var r,o=0;return new $e((function(){var t=tt.make(n).concat(tt.from(e).takeExceptLast().select(tt.from)).select((function(e){return e.getEnumerator()})).toArray();r=tt.from(t)}),(function(){if(r.all((function(e){return e.moveNext()}))){const e=r.select((function(e){return e.current()})).toArray();return e.push(o++),this.yieldReturn(t.apply(null,e))}return this.yieldBreak()}),(function(){tt.from(r).forEach(_e)}))}))},tt.prototype.merge=function(){var e=arguments,t=this;return new tt((function(){var n,r=-1;return new $e((function(){n=tt.make(t).concat(tt.from(e).select(tt.from)).select((function(e){return e.getEnumerator()})).toArray()}),(function(){for(;n.length>0;){r=r>=n.length-1?0:r+1;const e=n[r];if(e.moveNext())return this.yieldReturn(e.current());e.dispose(),n.splice(r--,1)}return this.yieldBreak()}),(function(){tt.from(n).forEach(_e)}))}))},tt.prototype.join=function(e,t,n,r,o){t=Ye(t),n=Ye(n),r=Ye(r),o=Ye(o);var i=this;return new tt((function(){var l,a,s=null,u=0;return new $e((function(){l=i.getEnumerator(),a=tt.from(e).toLookup(n,Fe.Identity,o)}),(function(){for(;;){if(null!=s){let e=s[u++];if(void 0!==e)return this.yieldReturn(r(l.current(),e));e=null,u=0}if(!l.moveNext())return!1;{const e=t(l.current());s=a.get(e).toArray()}}}),(function(){_e(l)}))}))},tt.prototype.leftJoin=function(e,t,n,r,o){t=Ye(t),n=Ye(n),r=Ye(r),o=Ye(o);var i=this;return new tt((function(){var l,a,s=null,u=0;return new $e((function(){l=i.getEnumerator(),a=tt.from(e).toLookup(n,Fe.Identity,o)}),(function(){for(;;){if(null!=s){let e=s[u++];if(void 0!==e)return this.yieldReturn(r(l.current(),e));e=null,u=0}if(!l.moveNext())return!1;{const e=t(l.current());if(null==(s=a.get(e).toArray())||0==s.length)return this.yieldReturn(r(l.current(),null))}}}),(function(){_e(l)}))}))},tt.prototype.groupJoin=function(e,t,n,r,o){t=Ye(t),n=Ye(n),r=Ye(r),o=Ye(o);var i=this;return new tt((function(){var l=i.getEnumerator(),a=null;return new $e((function(){l=i.getEnumerator(),a=tt.from(e).toLookup(n,Fe.Identity,o)}),(function(){if(l.moveNext()){const e=a.get(t(l.current()));return this.yieldReturn(r(l.current(),e))}return!1}),(function(){_e(l)}))}))},tt.prototype.all=function(e){e=Ye(e);var t=!0;return this.forEach((function(n){if(!e(n))return t=!1,!1})),t},tt.prototype.any=function(e){e=Ye(e);var t=this.getEnumerator();try{if(0==arguments.length)return t.moveNext();for(;t.moveNext();)if(e(t.current()))return!0;return!1}finally{_e(t)}},tt.prototype.isEmpty=function(){return!this.any()},tt.prototype.concat=function(){var e=this;if(1==arguments.length){const t=arguments[0];return new tt((function(){var n,r;return new $e((function(){n=e.getEnumerator()}),(function(){if(null==r){if(n.moveNext())return this.yieldReturn(n.current());r=tt.from(t).getEnumerator()}return!!r.moveNext()&&this.yieldReturn(r.current())}),(function(){try{_e(n)}finally{_e(r)}}))}))}{const t=arguments;return new tt((function(){var n;return new $e((function(){n=tt.make(e).concat(tt.from(t).select(tt.from)).select((function(e){return e.getEnumerator()})).toArray()}),(function(){for(;n.length>0;){const e=n[0];if(e.moveNext())return this.yieldReturn(e.current());e.dispose(),n.splice(0,1)}return this.yieldBreak()}),(function(){tt.from(n).forEach(_e)}))}))}},tt.prototype.insert=function(e,t){var n=this;return new tt((function(){var r,o,i=0,l=!1;return new $e((function(){r=n.getEnumerator(),o=tt.from(t).getEnumerator()}),(function(){return i==e&&o.moveNext()?(l=!0,this.yieldReturn(o.current())):r.moveNext()?(i++,this.yieldReturn(r.current())):!(l||!o.moveNext())&&this.yieldReturn(o.current())}),(function(){try{_e(r)}finally{_e(o)}}))}))},tt.prototype.alternate=function(e){var t=this;return new tt((function(){var n,r,o,i;return new $e((function(){o=e instanceof Array||null!=e.getEnumerator?tt.from(tt.from(e).toArray()):tt.make(e),(r=t.getEnumerator()).moveNext()&&(n=r.current())}),(function(){for(;;){if(null!=i){if(i.moveNext())return this.yieldReturn(i.current());i=null}if(null!=n||!r.moveNext()){if(null!=n){const e=n;return n=null,this.yieldReturn(e)}return this.yieldBreak()}n=r.current(),i=o.getEnumerator()}}),(function(){try{_e(r)}finally{_e(i)}}))}))},tt.prototype.contains=function(e,t){t=Ye(t);var n=this.getEnumerator();try{for(;n.moveNext();)if(t(n.current())===e)return!0;return!1}finally{_e(n)}},tt.prototype.defaultIfEmpty=function(e){var t=this;return void 0===e&&(e=null),new tt((function(){var n,r=!0;return new $e((function(){n=t.getEnumerator()}),(function(){return n.moveNext()?(r=!1,this.yieldReturn(n.current())):!!r&&(r=!1,this.yieldReturn(e))}),(function(){_e(n)}))}))},tt.prototype.distinct=function(e){return this.except(tt.empty(),e)},tt.prototype.distinctUntilChanged=function(e){e=Ye(e);var t=this;return new tt((function(){var n,r;return new $e((function(){n=t.getEnumerator()}),(function(){for(;n.moveNext();){const t=e(n.current());if(r!==t)return r=t,this.yieldReturn(n.current())}return this.yieldBreak()}),(function(){_e(n)}))}))},tt.prototype.except=function(e,t){t=Ye(t);var n=this;return new tt((function(){var r,o;return new $e((function(){r=n.getEnumerator(),o=new st(t),tt.from(e).forEach((function(e){o.add(e)}))}),(function(){for(;r.moveNext();){const e=r.current();if(!o.contains(e))return o.add(e),this.yieldReturn(e)}return!1}),(function(){_e(r)}))}))},tt.prototype.intersect=function(e,t){t=Ye(t);var n=this;return new tt((function(){var r,o,i;return new $e((function(){r=n.getEnumerator(),o=new st(t),tt.from(e).forEach((function(e){o.add(e)})),i=new st(t)}),(function(){for(;r.moveNext();){const e=r.current();if(!i.contains(e)&&o.contains(e))return i.add(e),this.yieldReturn(e)}return!1}),(function(){_e(r)}))}))},tt.prototype.sequenceEqual=function(e,t){t=Ye(t);var n=this.getEnumerator();try{const r=tt.from(e).getEnumerator();try{for(;n.moveNext();)if(!r.moveNext()||t(n.current())!==t(r.current()))return!1;return!r.moveNext()}finally{_e(r)}}finally{_e(n)}},tt.prototype.union=function(e,t){t=Ye(t);var n=this;return new tt((function(){var r,o,i;return new $e((function(){r=n.getEnumerator(),i=new st(t)}),(function(){var t;if(void 0===o){for(;r.moveNext();)if(t=r.current(),!i.contains(t))return i.add(t),this.yieldReturn(t);o=tt.from(e).getEnumerator()}for(;o.moveNext();)if(t=o.current(),!i.contains(t))return i.add(t),this.yieldReturn(t);return!1}),(function(){try{_e(r)}finally{_e(o)}}))}))},tt.prototype.orderBy=function(e,t){return new nt(this,e,t,!1)},tt.prototype.orderByDescending=function(e,t){return new nt(this,e,t,!0)},tt.prototype.reverse=function(){var e=this;return new tt((function(){var t,n;return new $e((function(){t=e.toArray(),n=t.length}),(function(){return n>0&&this.yieldReturn(t[--n])}),Fe.Blank)}))},tt.prototype.shuffle=function(){var e=this;return new tt((function(){var t;return new $e((function(){t=e.toArray()}),(function(){if(t.length>0){const e=Math.floor(Math.random()*t.length);return this.yieldReturn(t.splice(e,1)[0])}return!1}),Fe.Blank)}))},tt.prototype.weightedSample=function(e){e=Ye(e);var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.choose((function(t){var n=e(t);return n<=0?null:{value:t,bound:r+=n}})).toArray()}),(function(){if(n.length>0){const e=Math.floor(Math.random()*r)+1;let t=-1,o=n.length;for(;o-t>1;){const r=Math.floor((t+o)/2);n[r].bound>=e?o=r:t=r}return this.yieldReturn(n[o].value)}return this.yieldBreak()}),Fe.Blank)}))},tt.prototype.groupBy=function(e,t,n,r){var o=this;return e=Ye(e),t=Ye(t),null!=n&&(n=Ye(n)),r=Ye(r),new tt((function(){var i;return new $e((function(){i=o.toLookup(e,t,r).toEnumerable().getEnumerator()}),(function(){for(;i.moveNext();)return null==n?this.yieldReturn(i.current()):this.yieldReturn(n(i.current().key(),i.current()));return!1}),(function(){_e(i)}))}))},tt.prototype.partitionBy=function(e,t,n,r){var o,i=this;return e=Ye(e),t=Ye(t),r=Ye(r),null==n?(o=!1,n=function(e,t){return new ct(e,t)}):(o=!0,n=Ye(n)),new tt((function(){var l,a,s,u=[];return new $e((function(){(l=i.getEnumerator()).moveNext()&&(a=e(l.current()),s=r(a),u.push(t(l.current())))}),(function(){for(var i;1==(i=l.moveNext())&&s===r(e(l.current()));)u.push(t(l.current()));if(u.length>0){const c=n(a,o?tt.from(u):u);return i?(a=e(l.current()),s=r(a),u=[t(l.current())]):u=[],this.yieldReturn(c)}return!1}),(function(){_e(l)}))}))},tt.prototype.buffer=function(e){var t=this;return new tt((function(){var n;return new $e((function(){n=t.getEnumerator()}),(function(){for(var t=[],r=0;n.moveNext();)if(t.push(n.current()),++r>=e)return this.yieldReturn(t);return t.length>0&&this.yieldReturn(t)}),(function(){_e(n)}))}))},tt.prototype.aggregate=function(e,t,n){return(n=Ye(n))(this.scan(e,t,n).last())},tt.prototype.average=function(e){e=Ye(e);var t=0,n=0;return this.forEach((function(r){t+=e(r),++n})),t/n},tt.prototype.count=function(e){e=null==e?Fe.True:Ye(e);var t=0;return this.forEach((function(n,r){e(n,r)&&++t})),t},tt.prototype.max=function(e){return null==e&&(e=Fe.Identity),this.select(e).aggregate((function(e,t){return e>t?e:t}))},tt.prototype.min=function(e){return null==e&&(e=Fe.Identity),this.select(e).aggregate((function(e,t){return e<t?e:t}))},tt.prototype.maxBy=function(e){return e=Ye(e),this.aggregate((function(t,n){return e(t)>e(n)?t:n}))},tt.prototype.minBy=function(e){return e=Ye(e),this.aggregate((function(t,n){return e(t)<e(n)?t:n}))},tt.prototype.sum=function(e){return null==e&&(e=Fe.Identity),this.select(e).aggregate(0,(function(e,t){return e+t}))},tt.prototype.elementAt=function(e){var t,n=!1;if(this.forEach((function(r,o){if(o==e)return t=r,n=!0,!1})),!n)throw new Error("index is less than 0 or greater than or equal to the number of elements in source.");return t},tt.prototype.elementAtOrDefault=function(e,t){var n;void 0===t&&(t=null);var r=!1;return this.forEach((function(t,o){if(o==e)return n=t,r=!0,!1})),r?n:t},tt.prototype.first=function(e){if(null!=e)return this.where(e).first();var t,n=!1;if(this.forEach((function(e){return t=e,n=!0,!1})),!n)throw new Error("first:No element satisfies the condition.");return t},tt.prototype.firstOrDefault=function(e,t){if(void 0!==e){if(typeof e===Qe||typeof Ye(e)===Qe)return this.where(e).firstOrDefault(void 0,t);t=e}var n,r=!1;return this.forEach((function(e){return n=e,r=!0,!1})),r?n:t},tt.prototype.last=function(e){if(null!=e)return this.where(e).last();var t,n=!1;if(this.forEach((function(e){n=!0,t=e})),!n)throw new Error("last:No element satisfies the condition.");return t},tt.prototype.lastOrDefault=function(e,t){if(void 0!==e){if(typeof e===Qe||typeof Ye(e)===Qe)return this.where(e).lastOrDefault(void 0,t);t=e}var n,r=!1;return this.forEach((function(e){r=!0,n=e})),r?n:t},tt.prototype.single=function(e){if(null!=e)return this.where(e).single();var t,n=!1;if(this.forEach((function(e){if(n)throw new Error("single:sequence contains more than one element.");n=!0,t=e})),!n)throw new Error("single:No element satisfies the condition.");return t},tt.prototype.singleOrDefault=function(e,t){if(void 0===t&&(t=null),null!=e)return this.where(e).singleOrDefault(null,t);var n,r=!1;return this.forEach((function(e){if(r)throw new Error("single:sequence contains more than one element.");r=!0,n=e})),r?n:t},tt.prototype.skip=function(e){var t=this;return new tt((function(){var n,r=0;return new $e((function(){for(n=t.getEnumerator();r++<e&&n.moveNext(););}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){_e(n)}))}))},tt.prototype.skipWhile=function(e){e=Ye(e);var t=this;return new tt((function(){var n,r=0,o=!1;return new $e((function(){n=t.getEnumerator()}),(function(){for(;!o;){if(!n.moveNext())return!1;if(!e(n.current(),r++))return o=!0,this.yieldReturn(n.current())}return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){_e(n)}))}))},tt.prototype.take=function(e){var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){return!!(r++<e&&n.moveNext())&&this.yieldReturn(n.current())}),(function(){_e(n)}))}))},tt.prototype.takeWhile=function(e){e=Ye(e);var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){return!(!n.moveNext()||!e(n.current(),r++))&&this.yieldReturn(n.current())}),(function(){_e(n)}))}))},tt.prototype.takeExceptLast=function(e){null==e&&(e=1);var t=this;return new tt((function(){if(e<=0)return t.getEnumerator();var n,r=[];return new $e((function(){n=t.getEnumerator()}),(function(){for(;n.moveNext();){if(r.length==e)return r.push(n.current()),this.yieldReturn(r.shift());r.push(n.current())}return!1}),(function(){_e(n)}))}))},tt.prototype.takeFromLast=function(e){if(e<=0||null==e)return tt.empty();var t=this;return new tt((function(){var n,r,o=[];return new $e((function(){n=t.getEnumerator()}),(function(){for(;n.moveNext();)o.length==e&&o.shift(),o.push(n.current());return null==r&&(r=tt.from(o).getEnumerator()),!!r.moveNext()&&this.yieldReturn(r.current())}),(function(){_e(r)}))}))},tt.prototype.indexOf=function(e){var t=null;return typeof e===Qe?this.forEach((function(n,r){if(e(n,r))return t=r,!1})):this.forEach((function(n,r){if(n===e)return t=r,!1})),null!==t?t:-1},tt.prototype.lastIndexOf=function(e){var t=-1;return typeof e===Qe?this.forEach((function(n,r){e(n,r)&&(t=r)})):this.forEach((function(n,r){n===e&&(t=r)})),t},tt.prototype.cast=function(){return this},tt.prototype.asEnumerable=function(){return tt.from(this)},tt.prototype.toArray=function(){var e=[];return this.forEach((function(t){e.push(t)})),e},tt.prototype.toLookup=function(e,t,n){e=Ye(e),t=Ye(t),n=Ye(n);var r=new st(n);return this.forEach((function(n){var o=e(n),i=t(n),l=r.get(o);void 0!==l?l.push(i):r.add(o,[i])})),new ut(r)},tt.prototype.toObject=function(e,t){e=Ye(e),t=Ye(t);var n={};return this.forEach((function(r){n[e(r)]=t(r)})),n},tt.prototype.toDictionary=function(e,t,n){e=Ye(e),t=Ye(t),n=Ye(n);var r=new st(n);return this.forEach((function(n){r.add(e(n),t(n))})),r},tt.prototype.toJSONString=function(e,t){if(typeof JSON===Ze||null==JSON.stringify)throw new Error("toJSONString can't find JSON.stringify. This works native JSON support Browser or include json2.js");return JSON.stringify(this.toArray(),e,t)},tt.prototype.toJoinedString=function(e,t){return null==e&&(e=""),null==t&&(t=Fe.Identity),this.select(t).toArray().join(e)},tt.prototype.doAction=function(e){var t=this;return e=Ye(e),new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){return!!n.moveNext()&&(e(n.current(),r++),this.yieldReturn(n.current()))}),(function(){_e(n)}))}))},tt.prototype.forEach=function(e){e=Ye(e);var t=0,n=this.getEnumerator();try{for(;n.moveNext()&&!1!==e(n.current(),t++););}finally{_e(n)}},tt.prototype.force=function(){var e=this.getEnumerator();try{for(;e.moveNext(););}finally{_e(e)}},tt.prototype.letBind=function(e){e=Ye(e);var t=this;return new tt((function(){var n;return new $e((function(){n=tt.from(e(t)).getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){_e(n)}))}))},tt.prototype.share=function(){var e,t=this,n=!1;return new ot((function(){return new $e((function(){null==e&&(e=t.getEnumerator())}),(function(){if(n)throw new Error("enumerator is disposed");return!!e.moveNext()&&this.yieldReturn(e.current())}),Fe.Blank)}),(function(){n=!0,_e(e)}))},tt.prototype.memoize=function(){var e,t,n=this,r=!1;return new ot((function(){var o=-1;return new $e((function(){null==t&&(t=n.getEnumerator(),e=[])}),(function(){if(r)throw new Error("enumerator is disposed");return o++,e.length<=o?!!t.moveNext()&&this.yieldReturn(e[o]=t.current()):this.yieldReturn(e[o])}),Fe.Blank)}),(function(){r=!0,_e(t),e=null}))},He()&&(tt.prototype[Symbol.iterator]=function(){return{enumerator:this.getEnumerator(),next:function(){return this.enumerator.moveNext()?{done:!1,value:this.enumerator.current()}:{done:!0}}}}),tt.prototype.catchError=function(e){e=Ye(e);var t=this;return new tt((function(){var n;return new $e((function(){n=t.getEnumerator()}),(function(){try{return!!n.moveNext()&&this.yieldReturn(n.current())}catch(t){return e(t),!1}}),(function(){_e(n)}))}))},tt.prototype.finallyAction=function(e){e=Ye(e);var t=this;return new tt((function(){var n;return new $e((function(){n=t.getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){try{_e(n)}finally{e()}}))}))},tt.prototype.log=function(e){return e=Ye(e),this.doAction((function(e){}))},tt.prototype.trace=function(e,t){return null==e&&(e="Trace"),t=Ye(t),this.doAction((function(e){}))};var nt=function(e,t,n,r,o){this.source=e,this.keySelector=Ye(t),this.descending=r,this.parent=o,n&&(this.comparer=Ye(n))};nt.prototype=new tt,nt.prototype.createOrderedEnumerable=function(e,t,n){return new nt(this.source,e,t,n,this)},nt.prototype.thenBy=function(e,t){return this.createOrderedEnumerable(e,t,!1)},nt.prototype.thenByDescending=function(e,t){return this.createOrderedEnumerable(e,t,!0)},nt.prototype.getEnumerator=function(){var e,t,n=this,r=0;return new $e((function(){e=[],t=[],n.source.forEach((function(n,r){e.push(n),t.push(r)}));var r=rt.create(n,null);r.GenerateKeys(e),t.sort((function(e,t){return r.compare(e,t)}))}),(function(){return r<t.length&&this.yieldReturn(e[t[r++]])}),Fe.Blank)};var rt=function(e,t,n,r){this.keySelector=e,this.descending=n,this.child=r,this.comparer=t,this.keys=null};rt.create=function(e,t){var n=new rt(e.keySelector,e.comparer,e.descending,t);return null!=e.parent?rt.create(e.parent,n):n},rt.prototype.GenerateKeys=function(e){var t=e.length,n=this.keySelector,r=new Array(t);for(let o=0;o<t;o++)r[o]=n(e[o]);this.keys=r,null!=this.child&&this.child.GenerateKeys(e)},rt.prototype.compare=function(e,t){var n=this.comparer?this.comparer(this.keys[e],this.keys[t]):qe(this.keys[e],this.keys[t]);return 0==n?null!=this.child?this.child.compare(e,t):qe(e,t):this.descending?-n:n};var ot=function(e,t){this.dispose=t,tt.call(this,e)};ot.prototype=new tt;var it=function(e){this.getSource=function(){return e}};it.prototype=new tt,it.prototype.any=function(e){return null==e?this.getSource().length>0:tt.prototype.any.apply(this,arguments)},it.prototype.count=function(e){return null==e?this.getSource().length:tt.prototype.count.apply(this,arguments)},it.prototype.elementAt=function(e){var t=this.getSource();return 0<=e&&e<t.length?t[e]:tt.prototype.elementAt.apply(this,arguments)},it.prototype.elementAtOrDefault=function(e,t){void 0===t&&(t=null);var n=this.getSource();return 0<=e&&e<n.length?n[e]:t},it.prototype.first=function(e){var t=this.getSource();return null==e&&t.length>0?t[0]:tt.prototype.first.apply(this,arguments)},it.prototype.firstOrDefault=function(e,t){if(void 0!==e)return tt.prototype.firstOrDefault.apply(this,arguments);t=e;var n=this.getSource();return n.length>0?n[0]:t},it.prototype.last=function(e){var t=this.getSource();return null==e&&t.length>0?t[t.length-1]:tt.prototype.last.apply(this,arguments)},it.prototype.lastOrDefault=function(e,t){if(void 0!==e)return tt.prototype.lastOrDefault.apply(this,arguments);t=e;var n=this.getSource();return n.length>0?n[n.length-1]:t},it.prototype.skip=function(e){var t=this.getSource();return new tt((function(){var n;return new $e((function(){n=e<0?0:e}),(function(){return n<t.length&&this.yieldReturn(t[n++])}),Fe.Blank)}))},it.prototype.takeExceptLast=function(e){return null==e&&(e=1),this.take(this.getSource().length-e)},it.prototype.takeFromLast=function(e){return this.skip(this.getSource().length-e)},it.prototype.reverse=function(){var e=this.getSource();return new tt((function(){var t;return new $e((function(){t=e.length}),(function(){return t>0&&this.yieldReturn(e[--t])}),Fe.Blank)}))},it.prototype.sequenceEqual=function(e,t){return(!(e instanceof it||e instanceof Array)||null!=t||tt.from(e).count()==this.count())&&tt.prototype.sequenceEqual.apply(this,arguments)},it.prototype.toJoinedString=function(e,t){var n=this.getSource();return null==t&&n instanceof Array?(null==e&&(e=""),n.join(e)):tt.prototype.toJoinedString.apply(this,arguments)},it.prototype.getEnumerator=function(){var e=this.getSource(),t=-1;return{current:function(){return e[t]},moveNext:function(){return++t<e.length},dispose:Fe.Blank}};var lt=function(e,t){this.prevSource=e,this.prevPredicate=t};lt.prototype=new tt,lt.prototype.where=function(e){if((e=Ye(e)).length<=1){const t=this.prevPredicate,n=function(n){return t(n)&&e(n)};return new lt(this.prevSource,n)}return tt.prototype.where.call(this,e)},lt.prototype.select=function(e){return(e=Ye(e)).length<=1?new at(this.prevSource,this.prevPredicate,e):tt.prototype.select.call(this,e)},lt.prototype.getEnumerator=function(){var e,t=this.prevPredicate,n=this.prevSource;return new $e((function(){e=n.getEnumerator()}),(function(){for(;e.moveNext();)if(t(e.current()))return this.yieldReturn(e.current());return!1}),(function(){_e(e)}))};var at=function(e,t,n){this.prevSource=e,this.prevPredicate=t,this.prevSelector=n};at.prototype=new tt,at.prototype.where=function(e){return(e=Ye(e)).length<=1?new lt(this,e):tt.prototype.where.call(this,e)},at.prototype.select=function(e){if((e=Ye(e)).length<=1){const t=this.prevSelector,n=function(n){return e(t(n))};return new at(this.prevSource,this.prevPredicate,n)}return tt.prototype.select.call(this,e)},at.prototype.getEnumerator=function(){var e,t=this.prevPredicate,n=this.prevSelector,r=this.prevSource;return new $e((function(){e=r.getEnumerator()}),(function(){for(;e.moveNext();)if(null==t||t(e.current()))return this.yieldReturn(n(e.current()));return!1}),(function(){_e(e)}))};var st=function(){var e=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t=function(e){return null===e?"null":void 0===e?"undefined":typeof e.toString===Qe?e.toString():Object.prototype.toString.call(e)},n=function(e,t){this.key=e,this.value=t,this.prev=null,this.next=null},r=function(){this.first=null,this.last=null};r.prototype={addLast:function(e){null!=this.last?(this.last.next=e,e.prev=this.last,this.last=e):this.first=this.last=e},replace:function(e,t){null!=e.prev?(e.prev.next=t,t.prev=e.prev):this.first=t,null!=e.next?(e.next.prev=t,t.next=e.next):this.last=t},remove:function(e){null!=e.prev?e.prev.next=e.next:this.first=e.next,null!=e.next?e.next.prev=e.prev:this.last=e.prev}};var o=function(e){this.countField=0,this.entryList=new r,this.buckets={},this.compareSelector=null==e?Fe.Identity:e};return o.prototype={add:function(r,o){var i=this.compareSelector(r),l=t(i),a=new n(r,o);if(e(this.buckets,l)){const e=this.buckets[l];for(let t=0;t<e.length;t++)if(this.compareSelector(e[t].key)===i)return this.entryList.replace(e[t],a),void(e[t]=a);e.push(a)}else this.buckets[l]=[a];this.countField++,this.entryList.addLast(a)},get:function(n){var r=this.compareSelector(n),o=t(r);if(e(this.buckets,o)){var i=this.buckets[o];for(let e=0;e<i.length;e++){const t=i[e];if(this.compareSelector(t.key)===r)return t.value}}},set:function(r,o){var i=this.compareSelector(r),l=t(i);if(e(this.buckets,l)){const e=this.buckets[l];for(let t=0;t<e.length;t++)if(this.compareSelector(e[t].key)===i){const i=new n(r,o);return this.entryList.replace(e[t],i),e[t]=i,!0}}return!1},contains:function(n){var r=this.compareSelector(n),o=t(r);if(!e(this.buckets,o))return!1;var i=this.buckets[o];for(let e=0;e<i.length;e++)if(this.compareSelector(i[e].key)===r)return!0;return!1},clear:function(){this.countField=0,this.buckets={},this.entryList=new r},remove:function(n){var r=this.compareSelector(n),o=t(r);if(e(this.buckets,o)){var i=this.buckets[o];for(let e=0;e<i.length;e++)if(this.compareSelector(i[e].key)===r)return this.entryList.remove(i[e]),i.splice(e,1),0==i.length&&delete this.buckets[o],void this.countField--}},count:function(){return this.countField},toEnumerable:function(){var e=this;return new tt((function(){var t;return new $e((function(){t=e.entryList.first}),(function(){if(null!=t){const e={key:t.key,value:t.value};return t=t.next,this.yieldReturn(e)}return!1}),Fe.Blank)}))}},o}(),ut=function(e){this.count=function(){return e.count()},this.get=function(t){return tt.from(e.get(t))},this.contains=function(t){return e.contains(t)},this.toEnumerable=function(){return e.toEnumerable().select((function(e){return new ct(e.key,e.value)}))}},ct=function(e,t){this.key=function(){return e},it.call(this,t)};ct.prototype=new it;const ft={readonly:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},dataValue:{type:Array||Number,default:!0}},pt=n.defineComponent({name:"NvStructureTypeSelect",components:{},emits:["update","on-change"],props:ft,setup:(e,t)=>new ht(e,t)});class ht extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"selWidth",n.ref(100)),u(this,"StructureTypeSel",n.ref()),u(this,"TypeValue",n.ref([])),u(this,"StructureTypeDataAll",[]),u(this,"StructureTypeData",n.ref([])),u(this,"StructureTypeCheckData",n.ref([])),u(this,"searchView",n.ref(!1)),u(this,"searchValue",n.ref("")),u(this,"dataStructureApi",new i.DataStructureApi),u(this,"structrueTypeLevGroup",n.ref([])),u(this,"activeTypeItem",n.ref({})),u(this,"TypeTextValue",n.ref("")),u(this,"typeItemClick",((e,t)=>{if(e.level=t,1==t&&(this.activeTypeItem.value=e),this.structrueTypeLevGroup.value.find((e=>e.level==t))){let n=tt.from(this.structrueTypeLevGroup.value).indexOf((e=>e.level==t));this.structrueTypeLevGroup.value[n]=e,this.structrueTypeLevGroup.value.splice(n+1,this.structrueTypeLevGroup.value.length)}else this.structrueTypeLevGroup.value.push(e);n.nextTick((()=>{if(this.StructureTypeSel.value){let e=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(e)}})),this.TypeValue.value=[this.activeTypeItem.value.value].concat(this.structrueTypeLevGroup.value.map((e=>e.value))),this.props.multiple||(this.StructureTypeCheckData.value=[e],this.doSelectedAfterFun())})),u(this,"typeCheckFun",((e,t)=>{if(t)this.StructureTypeCheckData.value.push(e);else{let t=tt.from(this.StructureTypeCheckData.value).indexOf((t=>t.value==e.value));this.StructureTypeCheckData.value.splice(t,1)}this.doSelectedAfterFun()})),u(this,"removeStructureType",(e=>{this.changeTreeItem(this.StructureTypeData.value,e.value,"checked",!1);let t=tt.from(this.StructureTypeCheckData.value).indexOf((t=>t.value==e.value));this.StructureTypeCheckData.value.splice(t,1)})),u(this,"poptipVisChange",(()=>{n.nextTick((()=>{if(this.StructureTypeSel.value){let e=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(e)}}))})),u(this,"poptipHideFun",(()=>{this.searchValue.value&&0==this.searchTypeList.value.length&&(this.searchView.value=!1,this.searchValue.value="")})),u(this,"searchTypeList",n.ref([])),u(this,"searchTypeFun",(()=>{let e=this.StructureTypeDataAll.filter((e=>e.NodeName.indexOf(this.searchValue.value)>=0));this.searchTypeList.value=e.map((e=>(e.checked=!!this.StructureTypeCheckData.value.find((t=>t.value==e.Id)),e))),n.nextTick((()=>{if(this.StructureTypeSel.value){let e=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(e)+16}}))})),u(this,"toSelectSearchType",(e=>{this.TypeValue.value=e.parentPath.concat([e.Id]),this.StructureTypeCheckData.value=[{value:e.Id,label:e.NodeName,parentPath:e.parentPath}],this.doSelectedAfterFun(),this.structrueTypeLevGroup.value=[],this.loadTypeLevGroupData(this.StructureTypeData.value),this.poptipVisChange(),this.searchValue.value="",this.searchView.value=!1,this.searchTypeList.value=[]})),u(this,"toCheckSearchType",((e,t)=>{let n=tt.from(this.StructureTypeCheckData.value).indexOf((t=>t.value==e.value));t||n>=0?(this.StructureTypeCheckData.value.push({value:e.Id,label:e.NodeName,parentPath:e.parentPath}),this.changeTreeItem(this.StructureTypeData.value,e.Id,"checked",!0)):(this.StructureTypeCheckData.value.splice(n,1),this.changeTreeItem(this.StructureTypeData.value,e.Id,"checked",!1))})),u(this,"confirmSearchTypeData",(()=>{this.doSelectedAfterFun(),this.searchValue.value="",this.searchView.value=!1,this.structrueTypeLevGroup.value=[],this.searchTypeList.value=[],this.poptipVisChange()})),this.props=e,this.ctx=t,this.loadSelectData()}async loadSelectData(){let e=window.G_StructureTypeData;e&&0!=e.length||(e=this.utilities.parseApiResult(await this.dataStructureApi.getEntities((new r.QueryWrapper).select(["Id","PId","NodeName"]).orderBy(["OrderNo"]))),window.G_StructureTypeData=e),this.StructureTypeDataAll=e,this.StructureTypeData.value=this.formatToIViewCascaderData(e,0,"Id","NodeName"),this.props.multiple||this.loadTypeLevGroupData(this.StructureTypeData.value),n.watch((()=>this.props.dataValue),((e,t)=>{this.setStructureTypeCheckData(this.StructureTypeData.value),this.props.multiple||(this.structrueTypeLevGroup.value=[],this.loadTypeLevGroupData(this.StructureTypeData.value))}),{immediate:!0})}loadTypeLevGroupData(e){e.map((e=>{if(this.StructureTypeCheckData.value[0]){this.StructureTypeCheckData.value[0].parentPath.includes(e.value)&&this.structrueTypeLevGroup.value.push(e),e.children&&e.children.length>0&&this.loadTypeLevGroupData(e.children)}}))}doSelectedAfterFun(){this.props.multiple?this.ctx.emit("on-change",this.StructureTypeCheckData.value.map((e=>e.value))):this.ctx.emit("on-change",this.StructureTypeCheckData.value[0].value)}formatToIViewCascaderData(e,t=0,n,r,o=[]){let i=e.filter((e=>e.PId==t)),l=JSON.parse(JSON.stringify(o));return t>0&&l.push(t),i=i.map((t=>{let o={};o.value=t[n],o.label=t[r],o.parentPath=JSON.parse(JSON.stringify(l));let i=tt.from(this.StructureTypeDataAll).indexOf((e=>e.Id==o.value));return this.StructureTypeDataAll[i].parentPath=o.parentPath,o.level=o.parentPath.length+1,this.props.multiple?(o.checked=!!this.props.dataValue.find((e=>e==o.value)),o.checked&&this.StructureTypeCheckData.value.push(o)):this.props.dataValue==o.value&&(this.TypeValue.value=JSON.parse(JSON.stringify(l)).concat([o.value]),this.StructureTypeCheckData.value=[o]),e.filter((e=>e.PId==t.Id)).length>0?o.children=this.formatToIViewCascaderData(e,t.Id,n,r,l):o.children=[],o})),i}setStructureTypeCheckData(e){e.map((e=>{this.props.multiple?(e.checked=!!this.props.dataValue.find((t=>t==e.value)),e.checked&&this.StructureTypeCheckData.value.push(e)):this.props.dataValue==e.value&&(this.TypeValue.value=JSON.parse(JSON.stringify(e.parentPath)).concat([e.value]),this.StructureTypeCheckData.value=[e]),e.children&&e.children.length>0&&this.setStructureTypeCheckData(e.children)}))}changeTreeItem(e,t,n,r){e.map((e=>{e.value!=t?e.children&&e.children.length>0&&this.changeTreeItem(e.children,t,n,r):e[n]=r}))}}const dt={key:0},yt={key:0,ref:"StructureTypeSel",style:{height:"220px",display:"inline-block"}},vt={class:"nv-cascader-box nv-overflow-auto"},gt=["onClick"],mt={key:0,class:"nv-cascader-box nv-overflow-auto"},bt=["onClick"],At={key:1,ref:"StructureTypeSel",style:{display:"inline-block"}},kt={key:0,style:{padding:"5px 10px",color:"#c5c8ce","text-align":"center",width:"150px"}},wt={key:1},Nt={class:"nv-overflow-auto",style:{"max-height":"220px"}},Et=["onClick"],Ot={key:0,class:"nv-text-r",style:{"padding-right":"10px"}};const It=h(pt,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Tag"),s=n.resolveComponent("Checkbox"),u=n.resolveComponent("Icon"),c=n.resolveComponent("Button"),f=n.resolveComponent("Poptip");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(f,{placement:"bottom-start","transfer-class-name":"nvstructuretype-sel-box",width:e.selWidth,transfer:"",disabled:e.readonly,onOnPopperShow:t[6]||(t[6]=t=>e.poptipVisChange()),onOnPopperHide:e.poptipHideFun},{content:n.withCtx((()=>[e.searchValue?(n.openBlock(),n.createElementBlock("div",At,[0==e.searchTypeList.length?(n.openBlock(),n.createElementBlock("div",kt,"无匹配数据")):(n.openBlock(),n.createElementBlock("div",wt,[n.createElementVNode("div",Nt,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.searchTypeList,((r,o)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-cascader-item nv-c-p",onClick:t=>e.multiple?null:e.toSelectSearchType(r)},[e.multiple?(n.openBlock(),n.createBlock(s,{key:0,modelValue:r.checked,"onUpdate:modelValue":e=>r.checked=e,onClick:t[5]||(t[5]=n.withModifiers((()=>{}),["stop"])),onOnChange:t=>e.toCheckSearchType(r,t)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.NodeName),1)],8,Et)))),256))]),e.multiple?(n.openBlock(),n.createElementBlock("div",Ot,[n.createVNode(c,{type:"primary",size:"small",onClick:e.confirmSearchTypeData},{default:n.withCtx((()=>[n.createTextVNode("确认")])),_:1},8,["onClick"])])):n.createCommentVNode("",!0)]))],512)):(n.openBlock(),n.createElementBlock("div",yt,[n.createElementVNode("div",vt,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.StructureTypeData,(r=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["nv-c-p nv-cascader-item",{active:e.TypeValue.includes(r.value)}]),key:r.value,onClick:t=>e.typeItemClick(r,1)},[e.multiple?(n.openBlock(),n.createBlock(s,{key:0,modelValue:r.checked,"onUpdate:modelValue":e=>r.checked=e,onClick:t[3]||(t[3]=n.withModifiers((()=>{}),["stop"])),onOnChange:t=>e.typeCheckFun(r,t)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.label)+" ",1),r.children&&r.children.length>0?(n.openBlock(),n.createBlock(u,{key:1,class:"arrow-right",type:"ios-arrow-forward"})):n.createCommentVNode("",!0)],10,gt)))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.structrueTypeLevGroup,(r=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[r&&r.children&&r.children.length>0?(n.openBlock(),n.createElementBlock("div",mt,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.children,(o=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["nv-c-p nv-cascader-item",{active:e.TypeValue.includes(o.value)}]),key:o.value,onClick:t=>e.typeItemClick(o,r.level+1)},[e.multiple?(n.openBlock(),n.createBlock(s,{key:0,modelValue:o.checked,"onUpdate:modelValue":e=>o.checked=e,onClick:t[4]||(t[4]=n.withModifiers((()=>{}),["stop"])),onOnChange:t=>e.typeCheckFun(o,t)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(o.label)+" ",1),o.children&&o.children.length>0?(n.openBlock(),n.createBlock(u,{key:1,class:"arrow-right",type:"ios-arrow-forward"})):n.createCommentVNode("",!0)],10,bt)))),128))])):n.createCommentVNode("",!0)],64)))),256))],512))])),default:n.withCtx((()=>[n.createElementVNode("div",{class:"nv-c-p structuretype-sel-box",onClick:t[2]||(t[2]=t=>e.readonly?null:e.searchView=!0)},[0!=e.StructureTypeCheckData.length||e.searchValue?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.multiple?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.StructureTypeCheckData,((t,r)=>n.withDirectives((n.openBlock(),n.createBlock(a,{style:{position:"relative","z-index":"5"},closable:!e.readonly,key:r,onOnClose:n=>e.removeStructureType(t)},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(t.label),1)])),_:2},1032,["closable","onOnClose"])),[[n.vShow,!e.searchValue]]))),128)):(n.openBlock(),n.createElementBlock("div",{key:1,style:n.normalizeStyle({visibility:e.searchValue?"hidden":"visible"}),class:"nv-text-nowrap"},n.toDisplayString(e.StructureTypeCheckData[0]?e.StructureTypeCheckData[0].label:""),5))],64)):(n.openBlock(),n.createElementBlock("div",dt,"选择构件类别")),e.searchView?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:2,class:"nv-pos-a searchinput",style:{top:"0",left:"0",width:"100%"},"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchValue=t),onInput:t[1]||(t[1]=(...t)=>e.searchTypeFun&&e.searchTypeFun(...t))},null,544)),[[n.vModelText,e.searchValue]]):n.createCommentVNode("",!0)])])),_:1},8,["width","disabled","onOnPopperHide"])])}],["__scopeId","data-v-ef373745"]]),xt={readonly:{type:Boolean,default:!1},selType:{type:Number,default:1},multiple:{type:Boolean,default:!0},businessId:{type:Array||Number,default:0},dataValue:{type:Array||Number,default:!0}},Tt=n.defineComponent({name:"NvStructureSelect",components:{},emits:["update","on-change"],props:xt,setup:(e,t)=>new St(e,t)});class St extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"TypeValue",n.ref([])),u(this,"StructureTypeData",n.ref([])),u(this,"dataStructureApi",new i.DataStructureApi),u(this,"structureInstanceApi",new i.StructureInstanceApi),u(this,"UnitValue",n.ref()),u(this,"TypeGroupData",n.ref([])),u(this,"activeNodeType",n.ref("")),u(this,"originalTypeGroupData",n.ref([])),u(this,"searchTxt",n.ref("")),u(this,"searchInputRef",n.ref(null)),u(this,"poptipVisible",n.ref(!1)),u(this,"unitSelectChange",(()=>{this.doSelectedAfterFun()})),u(this,"doSearch",(()=>{var e,t,n,r,o;const i=null==(e=this.searchTxt.value)?void 0:e.trim();if(!i)return this.TypeGroupData.value=JSON.parse(JSON.stringify(this.originalTypeGroupData.value)),this.activeNodeType.value=null==(t=this.TypeGroupData.value[0])?void 0:t.NodeTypeName,this.unitData.value=(null==(n=this.TypeGroupData.value[0])?void 0:n.UnitData)||[],void this.NodeTypeSelect();this.TypeGroupData.value=this.originalTypeGroupData.value.map((e=>{const t=e.UnitData.filter((e=>{var t;return null==(t=e.NodeName)?void 0:t.includes(i)}));return{...e,UnitData:t}})).filter((e=>e.UnitData.length>0)),this.activeNodeType.value=null==(r=this.TypeGroupData.value[0])?void 0:r.NodeTypeName,this.unitData.value=(null==(o=this.TypeGroupData.value[0])?void 0:o.UnitData)||[],this.NodeTypeSelect()})),u(this,"openStructureInstanceInput",(async()=>{this.StructureInstanceCheckData.value=[],this.poptipVisible.value=!0,await n.nextTick(),await n.nextTick();const e=this.searchInputRef.value;if(e)if("function"==typeof e.focus)e.focus();else if(e.$el){const t=e.$el.querySelector("input");t&&t.focus()}})),u(this,"activeUnit",n.ref(0)),u(this,"activeUnitName",""),u(this,"unitData",n.ref([])),u(this,"NodeTypeSelect",(()=>{if(3==this.props.selType&&0==this.TypeGroupData.value.length)return this.unitData.value=[],this.TypeGroupData.value=[],void(this.StructureInstanceData.value=[]);this.unitData.value=this.TypeGroupData.value.find((e=>e.NodeTypeName==this.activeNodeType.value)).UnitData,1==this.props.selType&&this.props.multiple||this.unitData.value[0]&&(this.activeUnit.value=this.unitData.value[0].Id,this.activeUnitName=this.unitData.value[0].NodeName,this.unitSelected(this.activeUnit.value))})),u(this,"StructureInstanceLoading",n.ref(!1)),u(this,"StructureInstanceData",n.ref([])),u(this,"unitSelected",(async e=>{this.activeUnitName=this.unitData.value.find((t=>t.Id==e)).NodeName,this.StructureInstanceLoading.value=!0,this.StructureInstanceData.value=[];let t=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","PlatformId","CreateUnitId"]).eq("PId",e)));this.StructureInstanceData.value=t.map((e=>(e.title=e.NodeName,e.UnitName=this.activeUnitName,e.loading=!1,e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children=[],e))),this.StructureInstanceLoading.value=!1})),u(this,"loadStructureInstance",(async(e,t)=>{let n=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","PlatformId","CreateUnitId"]).eq("PId",e.Id)));if(0==n.length)return e.children=void 0,void t([]);n=n.map((e=>(e.UnitName=this.activeUnitName,e.title=e.NodeName,e.loading=!1,e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children=[],e))),t(n)})),u(this,"StructureInstanceCheckData",n.ref([])),u(this,"StructureInstanceCheckFun",((e,t)=>{t.checked?this.StructureInstanceCheckData.value.push(t):this.removeStructureInstance(t),this.doSelectedAfterFun()})),u(this,"StructureInstanceSelectFun",((e,t)=>{this.props.multiple||(this.StructureInstanceCheckData.value=[t],this.doSelectedAfterFun())})),u(this,"removeStructureInstance",(e=>{e.checked=!1;let t=tt.from(this.StructureInstanceCheckData.value).indexOf((t=>t.Id==e.Id));this.StructureInstanceCheckData.value.splice(t,1),this.treeChStateChange(this.StructureInstanceData.value),this.doSelectedAfterFun()})),this.props=e,this.ctx=t,this.loadNodeTypeAndUnitData()}async loadNodeTypeAndUnitData(){var e;let t=(new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","RootId","PlatformId","CreateUnitId"]).eq("PId",0).eq("PlatformId",930003);this.props.businessId&&("number"==typeof this.props.businessId?t.eq("CreateUnitId",this.props.businessId):Array.isArray(this.props.businessId)&&t.in("CreateUnitId",this.props.businessId));let n=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(t));if(this.TypeGroupData.value=tt.from(n).groupBy((e=>e.NodeTypeName)).select((e=>({NodeTypeName:e.key(),UnitData:e.getSource()}))).toArray(),1!=this.props.selType){if(3==this.props.selType&&(this.originalTypeGroupData.value=JSON.parse(JSON.stringify(this.TypeGroupData.value))),this.TypeGroupData.value[0]&&(this.activeNodeType.value=this.TypeGroupData.value[0].NodeTypeName,this.NodeTypeSelect(),this.props.dataValue)){let t="object"==typeof this.props.dataValue?this.props.dataValue:[this.props.dataValue];this.StructureInstanceCheckData.value=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","RootId","PlatformId"]).in("Id",t).eq("PlatformId",null==(e=this.storageInfo.getCurrentPlatform())?void 0:e.Id))),this.StructureInstanceCheckData.value=this.StructureInstanceCheckData.value.map((e=>{let t=this.unitData.value.find((t=>t.Id==e.RootId));return e.UnitName=t?t.NodeName:"",e}))}}else this.UnitValue.value=this.props.dataValue}treeChStateChange(e){e.map((e=>{e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children&&e.children.length>0&&this.treeChStateChange(e.children)}))}doSelectedAfterFun(){if(1==this.props.selType)try{let e=[];this.TypeGroupData.value.map((t=>{t.UnitData.map((t=>{Array.isArray(this.UnitValue.value)?this.UnitValue.value.includes(t.Id)&&e.push(t):this.UnitValue.value==t.Id&&(e=[t])}))})),this.ctx.emit("on-change",{Ids:this.UnitValue.value,data:e})}catch(e){this.ctx.emit("on-change",{Ids:this.UnitValue.value,data:[]})}else this.ctx.emit("on-change",{Ids:this.StructureInstanceCheckData.value.map((e=>e.Id)),data:this.StructureInstanceCheckData.value})}}const Ct=e=>(n.pushScopeId("data-v-32a696a6"),e=e(),n.popScopeId(),e),Bt={key:1},Rt={class:"nv-pos-r"},jt={class:"nv-c-p structure-sel-box"},Mt={key:0},Dt={key:1},Pt={style:{"margin-bottom":"10px"}},Lt={class:"nv-flex",style:{height:"280px"}},Ft={class:"nv-flex-1 nv-flex-col nv-full-h"},Vt=Ct((()=>n.createElementVNode("div",null,"单位工程:",-1))),Ut={class:"nv-flex-1 nv-overflow-auto"},Gt={key:0,class:"nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"},Zt={key:0},Qt={class:"nv-flex-1 nv-text-nowrap",style:{"margin-left":"7px"}},zt={key:0},Yt={key:1},Wt={key:2},qt={class:"nv-pos-r"},_t={class:"nv-c-p structure-sel-box"},Ht={key:0},Jt={key:0,class:"nv-text-nowrap"},Xt={key:1},Kt={key:0},$t={key:1},en={key:0,style:{"margin-bottom":"10px"}},tn={class:"nv-flex",style:{height:"280px"}},nn={class:"nv-flex-1 nv-flex-col nv-full-h"},rn=Ct((()=>n.createElementVNode("div",null,"单位工程:",-1))),on={class:"nv-flex-1 nv-overflow-auto"},ln={key:0,class:"nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"},an={key:0},sn={class:"nv-flex-1 nv-text-nowrap",style:{"margin-left":"7px"}},un={key:0},cn={key:1};const fn=h(Tt,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Option"),s=n.resolveComponent("OptionGroup"),u=n.resolveComponent("Select"),c=n.resolveComponent("Input"),f=n.resolveComponent("Radio"),p=n.resolveComponent("RadioGroup"),h=n.resolveComponent("nvLoading"),d=n.resolveComponent("Tree"),y=n.resolveComponent("Poptip"),v=n.resolveComponent("Icon");return 1==e.selType?(n.openBlock(),n.createBlock(u,{key:0,modelValue:e.UnitValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.UnitValue=t),multiple:e.multiple,transfer:"",filterable:"",clearable:"",onOnChange:e.unitSelectChange,disabled:e.readonly},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.TypeGroupData,((e,t)=>(n.openBlock(),n.createBlock(s,{label:e.NodeTypeName},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.UnitData,(e=>(n.openBlock(),n.createBlock(a,{value:e.Id,key:e.Id},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e.NodeName),1)])),_:2},1032,["value"])))),128))])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","multiple","onOnChange","disabled"])):3==e.selType?(n.openBlock(),n.createElementBlock("div",Bt,[n.createVNode(y,{modelValue:e.poptipVisible,"onUpdate:modelValue":t[6]||(t[6]=t=>e.poptipVisible=t),placement:"bottom-start",width:700,transfer:"",disabled:e.readonly},{content:n.withCtx((()=>[n.createElementVNode("div",Pt,[n.createVNode(p,{modelValue:e.activeNodeType,"onUpdate:modelValue":t[4]||(t[4]=t=>e.activeNodeType=t),type:"button",size:"small","button-style":"solid",onOnChange:e.NodeTypeSelect},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.TypeGroupData,((e,t)=>(n.openBlock(),n.createBlock(f,{key:t,label:e.NodeTypeName},null,8,["label"])))),128))])),_:1},8,["modelValue","onOnChange"])]),n.createElementVNode("div",Lt,[n.createElementVNode("div",Ft,[Vt,n.createElementVNode("div",Ut,[n.createVNode(p,{modelValue:e.activeUnit,"onUpdate:modelValue":t[5]||(t[5]=t=>e.activeUnit=t),vertical:"",onOnChange:e.unitSelected},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unitData,((e,t)=>(n.openBlock(),n.createBlock(f,{label:e.Id},{default:n.withCtx((()=>[n.createElementVNode("span",null,n.toDisplayString(e.NodeName),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","onOnChange"])])]),3==e.selType?(n.openBlock(),n.createElementBlock("div",Gt,[e.StructureInstanceLoading?(n.openBlock(),n.createBlock(h,{key:0})):(n.openBlock(),n.createBlock(d,{key:1,style:{width:"calc(100% - 30px)"},data:e.StructureInstanceData,"load-data":e.loadStructureInstance,"check-strictly":!0,"show-checkbox":e.multiple,onOnCheckChange:e.StructureInstanceCheckFun,onOnSelectChange:e.StructureInstanceSelectFun},null,8,["data","load-data","show-checkbox","onOnCheckChange","onOnSelectChange"]))])):n.createCommentVNode("",!0)])])),default:n.withCtx((()=>[n.createElementVNode("div",Rt,[n.createElementVNode("div",jt,[0==e.StructureInstanceCheckData.length?(n.openBlock(),n.createBlock(c,{key:0,ref:"searchInputRef",class:"nv-full poptipInp",search:"",modelValue:e.searchTxt,"onUpdate:modelValue":t[1]||(t[1]=t=>e.searchTxt=t),clearable:"",placeholder:"点击选择构件",onOnChange:e.doSearch},null,8,["modelValue","onOnChange"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.multiple?(n.openBlock(),n.createElementBlock("div",{key:0,class:"nv-text-nowrap",onClick:t[2]||(t[2]=n.withModifiers(((...t)=>e.openStructureInstanceInput&&e.openStructureInstanceInput(...t)),["stop"]))}," 已选择"+n.toDisplayString(e.StructureInstanceCheckData.length)+"个构件("+n.toDisplayString(e.StructureInstanceCheckData.map((e=>e.NodeName)).toString())+") ",1)):(n.openBlock(),n.createElementBlock("div",{key:1,onClick:t[3]||(t[3]=n.withModifiers(((...t)=>e.openStructureInstanceInput&&e.openStructureInstanceInput(...t)),["stop"]))},[n.createTextVNode(n.toDisplayString(e.StructureInstanceCheckData[0].NodeName)+" ",1),e.StructureInstanceCheckData[0].NodeTypeName?(n.openBlock(),n.createElementBlock("span",Mt,"["+n.toDisplayString(e.StructureInstanceCheckData[0].NodeTypeName)+"]",1)):n.createCommentVNode("",!0),e.StructureInstanceCheckData[0].UnitName?(n.openBlock(),n.createElementBlock("span",Dt,"["+n.toDisplayString(e.StructureInstanceCheckData[0].UnitName)+"]",1)):n.createCommentVNode("",!0)]))],64))])])])),_:1},8,["modelValue","disabled"]),e.multiple?(n.openBlock(),n.createElementBlock("div",Zt,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.StructureInstanceCheckData,((t,r)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-flex",key:r},[e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(v,{key:0,class:"nv-c-p",type:"md-trash",onClick:n.withModifiers((n=>e.removeStructureInstance(t)),["stop"]),size:20,color:"#ae5d55"},null,8,["onClick"])),n.createElementVNode("div",Qt,[n.createTextVNode(n.toDisplayString(t.NodeName)+" ",1),t.NodeTypeName?(n.openBlock(),n.createElementBlock("span",zt,"["+n.toDisplayString(t.NodeTypeName)+"]",1)):n.createCommentVNode("",!0),t.UnitName?(n.openBlock(),n.createElementBlock("span",Yt,"["+n.toDisplayString(t.UnitName)+"]",1)):n.createCommentVNode("",!0)])])))),128))])):n.createCommentVNode("",!0)])):(n.openBlock(),n.createElementBlock("div",Wt,[n.createVNode(y,{placement:"bottom-start",width:700,transfer:"",disabled:e.readonly},{content:n.withCtx((()=>[e.TypeGroupData.length>1?(n.openBlock(),n.createElementBlock("div",en,[n.createVNode(p,{modelValue:e.activeNodeType,"onUpdate:modelValue":t[7]||(t[7]=t=>e.activeNodeType=t),type:"button",size:"small","button-style":"solid",onOnChange:e.NodeTypeSelect},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.TypeGroupData,((e,t)=>(n.openBlock(),n.createBlock(f,{key:t,label:e.NodeTypeName},null,8,["label"])))),128))])),_:1},8,["modelValue","onOnChange"])])):n.createCommentVNode("",!0),n.createElementVNode("div",tn,[n.createElementVNode("div",nn,[rn,n.createElementVNode("div",on,[n.createVNode(p,{modelValue:e.activeUnit,"onUpdate:modelValue":t[8]||(t[8]=t=>e.activeUnit=t),vertical:"",onOnChange:e.unitSelected},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unitData,((e,t)=>(n.openBlock(),n.createBlock(f,{label:e.Id},{default:n.withCtx((()=>[n.createElementVNode("span",null,n.toDisplayString(e.NodeName),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","onOnChange"])])]),2==e.selType?(n.openBlock(),n.createElementBlock("div",ln,[e.StructureInstanceLoading?(n.openBlock(),n.createBlock(h,{key:0})):(n.openBlock(),n.createBlock(d,{key:1,style:{width:"calc(100% - 30px)"},data:e.StructureInstanceData,"load-data":e.loadStructureInstance,"check-strictly":!0,"show-checkbox":e.multiple,onOnCheckChange:e.StructureInstanceCheckFun,onOnSelectChange:e.StructureInstanceSelectFun},null,8,["data","load-data","show-checkbox","onOnCheckChange","onOnSelectChange"]))])):n.createCommentVNode("",!0)])])),default:n.withCtx((()=>[n.createElementVNode("div",qt,[n.createElementVNode("div",_t,[0==e.StructureInstanceCheckData.length?(n.openBlock(),n.createElementBlock("div",Ht,"点击选择构件")):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.multiple?(n.openBlock(),n.createElementBlock("div",Jt," 已选择"+n.toDisplayString(e.StructureInstanceCheckData.length)+"个构件("+n.toDisplayString(e.StructureInstanceCheckData.map((e=>e.NodeName)).toString())+") ",1)):(n.openBlock(),n.createElementBlock("div",Xt,[n.createTextVNode(n.toDisplayString(e.StructureInstanceCheckData[0].NodeName)+" ",1),e.StructureInstanceCheckData[0].NodeTypeName?(n.openBlock(),n.createElementBlock("span",Kt,"["+n.toDisplayString(e.StructureInstanceCheckData[0].NodeTypeName)+"]",1)):n.createCommentVNode("",!0),e.StructureInstanceCheckData[0].UnitName?(n.openBlock(),n.createElementBlock("span",$t,"["+n.toDisplayString(e.StructureInstanceCheckData[0].UnitName)+"]",1)):n.createCommentVNode("",!0)]))],64))])])])),_:1},8,["disabled"]),e.multiple?(n.openBlock(),n.createElementBlock("div",an,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.StructureInstanceCheckData,((t,r)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-flex",key:r},[e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(v,{key:0,class:"nv-c-p",type:"md-trash",onClick:n.withModifiers((n=>e.removeStructureInstance(t)),["stop"]),size:20,color:"#ae5d55"},null,8,["onClick"])),n.createElementVNode("div",sn,[n.createTextVNode(n.toDisplayString(t.NodeName)+" ",1),t.NodeTypeName?(n.openBlock(),n.createElementBlock("span",un,"["+n.toDisplayString(t.NodeTypeName)+"]",1)):n.createCommentVNode("",!0),t.UnitName?(n.openBlock(),n.createElementBlock("span",cn,"["+n.toDisplayString(t.UnitName)+"]",1)):n.createCommentVNode("",!0)])])))),128))])):n.createCommentVNode("",!0)]))}],["__scopeId","data-v-32a696a6"]]),pn={readonly:{type:Boolean,default:!1},selType:{type:Number,default:1},multiple:{type:Boolean,default:!0},businessId:{type:Array||Number,default:0},dataValue:{type:Array||Number,default:!0}},hn=n.defineComponent({name:"NvStructureSelect_HC",components:{},emits:["update","on-change"],props:pn,setup:(e,t)=>new dn(e,t)});class dn extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"TypeValue",n.ref([])),u(this,"StructureTypeData",n.ref([])),u(this,"dataStructureApi",new i.DataStructureApi),u(this,"structureInstanceApi",new i.StructureInstance_HCApi),u(this,"UnitValue",n.ref()),u(this,"TypeGroupData",n.ref([])),u(this,"activeNodeType",n.ref("")),u(this,"unitSelectChange",(()=>{this.doSelectedAfterFun()})),u(this,"activeUnit",n.ref(0)),u(this,"activeUnitName",""),u(this,"unitData",n.ref([])),u(this,"NodeTypeSelect",(()=>{this.unitData.value=this.TypeGroupData.value.find((e=>e.NodeTypeName==this.activeNodeType.value)).UnitData,1==this.props.selType&&this.props.multiple||this.unitData.value[0]&&(this.activeUnit.value=this.unitData.value[0].Id,this.activeUnitName=this.unitData.value[0].NodeName,this.unitSelected(this.activeUnit.value))})),u(this,"StructureInstanceLoading",n.ref(!1)),u(this,"StructureInstanceData",n.ref([])),u(this,"unitSelected",(async e=>{this.activeUnitName=this.unitData.value.find((t=>t.Id==e)).NodeName,this.StructureInstanceLoading.value=!0,this.StructureInstanceData.value=[];let t=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","PlatformId","CreateUnitId"]).eq("PId",e)));this.StructureInstanceData.value=t.map((e=>(e.title=e.NodeName,e.UnitName=this.activeUnitName,e.loading=!1,e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children=[],e))),this.StructureInstanceLoading.value=!1})),u(this,"loadStructureInstance",(async(e,t)=>{let n=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","PlatformId","CreateUnitId"]).eq("PId",e.Id)));if(0==n.length)return e.children=void 0,void t([]);n=n.map((e=>(e.title=e.NodeName,e.loading=!1,e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children=[],e))),t(n)})),u(this,"StructureInstanceCheckData",n.ref([])),u(this,"StructureInstanceCheckFun",((e,t)=>{t.checked?this.StructureInstanceCheckData.value.push(t):this.removeStructureInstance(t),this.doSelectedAfterFun()})),u(this,"StructureInstanceSelectFun",((e,t)=>{this.props.multiple||(this.StructureInstanceCheckData.value=[t],this.doSelectedAfterFun())})),u(this,"removeStructureInstance",(e=>{e.checked=!1;let t=tt.from(this.StructureInstanceCheckData.value).indexOf((t=>t.Id==e.Id));this.StructureInstanceCheckData.value.splice(t,1),this.treeChStateChange(this.StructureInstanceData.value),this.doSelectedAfterFun()})),this.props=e,this.ctx=t,this.loadNodeTypeAndUnitData()}async loadNodeTypeAndUnitData(){var e,t;let n=(new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","RootId","PlatformId","CreateUnitId"]).eq("PId",0).eq("PlatformId",null==(e=this.storageInfo.getCurrentPlatform())?void 0:e.Id);this.props.businessId&&("number"==typeof this.props.businessId?n.eq("CreateUnitId",this.props.businessId):Array.isArray(this.props.businessId)&&n.in("CreateUnitId",this.props.businessId));let o=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(n));if(this.TypeGroupData.value=tt.from(o).groupBy((e=>e.NodeTypeName)).select((e=>({NodeTypeName:e.key(),UnitData:e.getSource()}))).toArray(),1!=this.props.selType){if(this.TypeGroupData.value[0]&&(this.activeNodeType.value=this.TypeGroupData.value[0].NodeTypeName,this.NodeTypeSelect(),this.props.dataValue)){let e="object"==typeof this.props.dataValue?this.props.dataValue:[this.props.dataValue];this.StructureInstanceCheckData.value=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","RootId","PlatformId"]).in("Id",e).eq("PlatformId",null==(t=this.storageInfo.getCurrentPlatform())?void 0:t.Id))),this.StructureInstanceCheckData.value=this.StructureInstanceCheckData.value.map((e=>{let t=this.unitData.value.find((t=>t.Id==e.RootId));return e.UnitName=t?t.NodeName:"",e}))}}else this.UnitValue.value=this.props.dataValue}treeChStateChange(e){e.map((e=>{e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children&&e.children.length>0&&this.treeChStateChange(e.children)}))}doSelectedAfterFun(){if(1==this.props.selType)try{let e=[];this.TypeGroupData.value.map((t=>{t.UnitData.map((t=>{Array.isArray(this.UnitValue.value)?this.UnitValue.value.includes(t.Id)&&e.push(t):this.UnitValue.value==t.Id&&(e=[t])}))})),this.ctx.emit("on-change",{Ids:this.UnitValue.value,data:e})}catch(e){this.ctx.emit("on-change",{Ids:this.UnitValue.value,data:[]})}else this.ctx.emit("on-change",{Ids:this.StructureInstanceCheckData.value.map((e=>e.Id)),data:this.StructureInstanceCheckData.value})}}const yn={key:1},vn={class:"nv-pos-r"},gn={class:"nv-c-p structure-sel-box"},mn={key:0},bn={key:0,class:"nv-text-nowrap"},An={key:1},kn={key:0},wn={key:1},Nn={key:0,style:{"margin-bottom":"10px"}},En={class:"nv-flex",style:{height:"280px"}},On={class:"nv-flex-1 nv-flex-col nv-full-h"},In=(e=>(n.pushScopeId("data-v-ca628399"),e=e(),n.popScopeId(),e))((()=>n.createElementVNode("div",null,"单位工程:",-1))),xn={class:"nv-flex-1 nv-overflow-auto"},Tn={key:0,class:"nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"},Sn={key:0},Cn={class:"nv-flex-1 nv-text-nowrap",style:{"margin-left":"7px"}},Bn={key:0},Rn={key:1};const jn=h(hn,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Option"),s=n.resolveComponent("OptionGroup"),u=n.resolveComponent("Select"),c=n.resolveComponent("Radio"),f=n.resolveComponent("RadioGroup"),p=n.resolveComponent("nvLoading"),h=n.resolveComponent("Tree"),d=n.resolveComponent("Poptip"),y=n.resolveComponent("Icon");return 1==e.selType?(n.openBlock(),n.createBlock(u,{key:0,modelValue:e.UnitValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.UnitValue=t),multiple:e.multiple,transfer:"",filterable:"",clearable:"",onOnChange:e.unitSelectChange,disabled:e.readonly},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.TypeGroupData,((e,t)=>(n.openBlock(),n.createBlock(s,{label:e.NodeTypeName},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.UnitData,(e=>(n.openBlock(),n.createBlock(a,{value:e.Id,key:e.Id},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e.NodeName),1)])),_:2},1032,["value"])))),128))])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","multiple","onOnChange","disabled"])):(n.openBlock(),n.createElementBlock("div",yn,[n.createVNode(d,{placement:"bottom-start",width:700,transfer:"",disabled:e.readonly},{content:n.withCtx((()=>[e.TypeGroupData.length>1?(n.openBlock(),n.createElementBlock("div",Nn,[n.createVNode(f,{modelValue:e.activeNodeType,"onUpdate:modelValue":t[1]||(t[1]=t=>e.activeNodeType=t),type:"button",size:"small","button-style":"solid",onOnChange:e.NodeTypeSelect},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.TypeGroupData,((e,t)=>(n.openBlock(),n.createBlock(c,{key:t,label:e.NodeTypeName},null,8,["label"])))),128))])),_:1},8,["modelValue","onOnChange"])])):n.createCommentVNode("",!0),n.createElementVNode("div",En,[n.createElementVNode("div",On,[In,n.createElementVNode("div",xn,[n.createVNode(f,{modelValue:e.activeUnit,"onUpdate:modelValue":t[2]||(t[2]=t=>e.activeUnit=t),vertical:"",onOnChange:e.unitSelected},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unitData,((e,t)=>(n.openBlock(),n.createBlock(c,{label:e.Id},{default:n.withCtx((()=>[n.createElementVNode("span",null,n.toDisplayString(e.NodeName),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","onOnChange"])])]),2==e.selType?(n.openBlock(),n.createElementBlock("div",Tn,[e.StructureInstanceLoading?(n.openBlock(),n.createBlock(p,{key:0})):(n.openBlock(),n.createBlock(h,{key:1,style:{width:"calc(100% - 30px)"},data:e.StructureInstanceData,"load-data":e.loadStructureInstance,"check-strictly":!0,"show-checkbox":e.multiple,onOnCheckChange:e.StructureInstanceCheckFun,onOnSelectChange:e.StructureInstanceSelectFun},null,8,["data","load-data","show-checkbox","onOnCheckChange","onOnSelectChange"]))])):n.createCommentVNode("",!0)])])),default:n.withCtx((()=>[n.createElementVNode("div",vn,[n.createElementVNode("div",gn,[0==e.StructureInstanceCheckData.length?(n.openBlock(),n.createElementBlock("div",mn,"点击选择构件")):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.multiple?(n.openBlock(),n.createElementBlock("div",bn," 已选择"+n.toDisplayString(e.StructureInstanceCheckData.length)+"个构件("+n.toDisplayString(e.StructureInstanceCheckData.map((e=>e.NodeName)).toString())+") ",1)):(n.openBlock(),n.createElementBlock("div",An,[n.createTextVNode(n.toDisplayString(e.StructureInstanceCheckData[0].NodeName)+" ",1),e.StructureInstanceCheckData[0].NodeTypeName?(n.openBlock(),n.createElementBlock("span",kn,"["+n.toDisplayString(e.StructureInstanceCheckData[0].NodeTypeName)+"]",1)):n.createCommentVNode("",!0),e.StructureInstanceCheckData[0].UnitName?(n.openBlock(),n.createElementBlock("span",wn,"["+n.toDisplayString(e.StructureInstanceCheckData[0].UnitName)+"]",1)):n.createCommentVNode("",!0)]))],64))])])])),_:1},8,["disabled"]),e.multiple?(n.openBlock(),n.createElementBlock("div",Sn,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.StructureInstanceCheckData,((t,r)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-flex",key:r},[e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(y,{key:0,class:"nv-c-p",type:"md-trash",onClick:n.withModifiers((n=>e.removeStructureInstance(t)),["stop"]),size:20,color:"#ae5d55"},null,8,["onClick"])),n.createElementVNode("div",Cn,[n.createTextVNode(n.toDisplayString(t.NodeName)+" ",1),t.NodeTypeName?(n.openBlock(),n.createElementBlock("span",Bn,"["+n.toDisplayString(t.NodeTypeName)+"]",1)):n.createCommentVNode("",!0),t.UnitName?(n.openBlock(),n.createElementBlock("span",Rn,"["+n.toDisplayString(t.UnitName)+"]",1)):n.createCommentVNode("",!0)])])))),128))])):n.createCommentVNode("",!0)]))}],["__scopeId","data-v-ca628399"]]),Mn={linkParam:{type:String,default:""},operates:{type:String,default:"-"},token:{type:String,default:""},catalog:{type:String,default:"root"},groups:{type:Array,default:()=>["默认"]},extraInfo:{type:String,default:""},isCompress:{type:Boolean,default:!1},format:{type:Array,default:()=>[]},maxSize:{type:Number,default:0},multiple:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},single:{type:Boolean,default:!1},nullMsg:{type:String,default:"暂无附件"},paginationSet:{type:Object,default:{isPagination:!1,pageSize:10}}},Dn=n.defineComponent({name:"UploadFileList",components:{filePreview:v},emits:["success","returnFileList"],props:Mn,setup:(e,t)=>new Pn(e,t)});class Pn extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"uploadApi",new o.UploadApi),u(this,"fileInfoApi",new o.FileInfoApi),u(this,"fileApi",new o.FileApi),u(this,"isOpenPagination",n.ref(!1)),u(this,"gridPageSize",n.ref(10)),u(this,"isShowEye",n.ref(!0)),u(this,"isShowtrash",n.ref(!0)),u(this,"isShowUpBtn",n.ref(!0)),u(this,"mainGridApi",""),u(this,"uploadListGridRef",n.ref([])),u(this,"uploadListGridOption",n.reactive({api:this.mainGridApi,setting:{searchConfig:{btnSpan:6,labelWidth:120,defaultShowSearch:!1},isPagination:this.isOpenPagination.value,pageSize:this.gridPageSize.value,toolbarConfig:{isButtonGroup:!1},editConfig:{trigger:"click",mode:"row",showStatus:!0,beforeEditMethod:({row:e})=>!this.props.readonly},rowConfig:{isCurrent:!0,isHover:!0}},searchOptions:[],toolbars:[],rightToolbars:[{name:"refresh",isShow:()=>!1}],columns:[{colType:"seq"},{colType:"ed",title:"文件名称",field:"FileName",align:"left",minWidth:100},{colType:"ro",title:"创建日期",field:"CreateTime",align:"center",format:(e,t)=>e("span",{},t.row.CreateTime?t.row.CreateTime.slice(0,10):"")},{title:"操作",width:this.isShowtrash.value?160:120,rowButtons:[{name:"edit_",text:"预览",type:"primary",onclick:e=>{this.doView(e)},isShow:e=>this.isShowEye.value},{name:"view_",text:"下载",onclick:e=>{this.doDwonload(e)},isShow:e=>!0},{name:"delete_",text:"删除",type:"error",onclick:e=>{this.doRemove(e)},isShow:e=>!this.isShowtrash.value}]}],event:{}})),u(this,"getuploadListGridRef",((e,t)=>{e&&(this.uploadListGridRef.value[t]=e)})),u(this,"loadUploadListData",(()=>{let e=this.getGroupFiles("默认"),t=this.arrayGroup(e,this.gridPageSize.value);this.uploadListGridRef.value[0].loadData((async n=>{if(this.isOpenPagination.value){let r={Datas:t[n.page-1],TotalItemCount:e.length,CurrentPageIndex:n.page,TotalPageCount:this.gridPageSize.value};n.success(r)}else n.success(e)}))})),u(this,"uploadGridSave",(async()=>{let e=this.uploadListGridRef.value[0].getSaveDatas();if((null==e?void 0:e.length)<=0)return this.message.warning("没有需要保存的数据");this.uploading.value=!0,this.utilities.parseApiResult(await this.fileInfoApi.saves(e))>0?(this.loadFileList(!0),this.message.success("附件信息修改成功!"),this.uploading.value=!1):(this.message.error("附件信息修改失败"),this.uploading.value=!1)})),u(this,"currentToken",""),u(this,"fileList",n.ref([])),u(this,"uploading",n.ref(!1)),u(this,"uploadFilePos",n.reactive({})),u(this,"action",n.ref("/FileServiceApi/Upload/file")),u(this,"headers",n.ref({Authorization:""})),u(this,"doSuccess",((e,t,n)=>{const r=this.utilities.parseApiResult(e);this.uploading.value=!1,"0"==r.Code?(this.message.success("上传成功"),this.ctx.emit("success",{token:r.Token,fileId:r.FileId}),this.loadFileList(!0)):this.message.error(r.Msg)})),u(this,"doFormatError",(()=>{this.message.warning("当前上传的文件格式不正确,请重新上传"),this.uploading.value=!1})),u(this,"doMaxSize",(()=>{this.props.maxSize/1024>=1?this.message.warning("文件太大超出上传限制,文件大小不得大于"+(this.props.maxSize/1024).toFixed(1)+"M"):this.message.warning("文件太大超出上传限制,文件大小不得大于"+this.props.maxSize+"KB"),this.uploading.value=!1})),u(this,"doBeforeUpload",(()=>{this.message.info("文件上传中,请稍等"),this.uploading.value=!0})),u(this,"doRemove",(e=>{this.modal.confirm({title:"提示",content:`数据删除后不可恢复,<br/>确定要删除 ${e.FileName} 文件吗?`,onOk:async()=>{this.uploading.value=!0;const t=await this.fileApi.deleteFile(e.Token,e.Id);this.utilities.parseApiResult(t)<=0?(this.message.warning("删除失败,请稍后重试!"),this.uploading.value=!1):(this.loadFileList(!0),this.message.success("删除成功"),this.uploading.value=!1)}})})),u(this,"doDwonload",(e=>{const t=this.fileApi.getFileUrl(e.Token,e.Id);window.open(t)})),u(this,"getGroupFiles",(e=>"默认"==e?this.fileList.value:this.fileList.value.filter((t=>t.GroupName==e)))),u(this,"getSingle",(e=>{const t=this.getGroupFiles(e);return this.props.single&&t.length>0})),u(this,"getFirstFile",(e=>{const t=this.getGroupFiles(e);return 0==t.length?void 0:t[0]})),u(this,"previewVisible",n.ref(!1)),u(this,"previewList",n.ref([])),u(this,"previewIndex",n.ref(0)),u(this,"previewFileInfo",n.ref({})),u(this,"isImage",(e=>{const t=e.FileExt;return"jpg"==t||"png"==t||"jpeg"==t||"gif"==t||"svg"==t})),u(this,"getImgUrl",(e=>this.fileApi.getFileUrl(e.Token,e.Id))),u(this,"getThumbnailUrl",(e=>this.isImage(e)?this.getImgUrl(e):this.getFileIcon(e.FileExt))),u(this,"getFileIcon",(e=>{const t={img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5h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R35uHel/S0b7lYjjLhE7h0ZDGS/XvBORaCYUUL0ExKB79AMvgNPK1vgXcvt1xsxpox2Y9o3zuWBVW7LEAWIAsQvUE6nuKQyhi7B5IEDI1qPykw+kNHhjS3CpwiJYDkbAxOQYHLIVe22IzZ4KXBxWwIgmMr/9ICl5imJAYxQk2E1bIBUhz33hI8KbmBDkD2Re8jna3sL8oVlYHc+AYdgARHI6J1HyAjVQaSojAISc/A2/IcPWne17oB4eBKxAK74GKvkKAtlQEMi6TchPScnZi35Fn6mlWvfwXgP6I/yFCOV/HwDAM7U74X0uQDpGpiGPNXoB2CYar6zTqK4Rh0+vTpy9FoNHE7tBShUOiaYUAdHR3xnp6eK7IsK7UMJxgMjm/cuPHLGS2/gDdQvdfd3b129erVi0VRFNhyPcp1C5TJZLJDQ0ORLVu2HB8YGOgiLK4WA2glGe2g7CVLBpQl4ywZB4p6Rdd1aT3yPWQ4ZwtmFOsyGYHrGSk/IEs36j8BBgDY8UuJC+tONQAAAABJRU5ErkJggg=="};let p="";switch(e){case"rar":case"zip":p=l.img;break;case"doc":case"docx":p=t.img;break;case"xls":case"xlsx":p=n.img;break;case"pdf":p=o.img;break;case"ppt":case"pptx":p=r.img;break;case"png":case"jpg":p=i.img;break;case"mov":p=a.img;break;case"mp3":p=s.img;break;case"mp4":p=u.img;break;case"html":case"htm":p=c.img;break;default:p=f.img}return p})),u(this,"doView",(e=>{this.previewFileInfo.value=e,this.previewVisible.value=!0,this.previewIndex.value=e.PreviewIndex})),this.props=e,this.ctx=t,this.useUploadFile()}arrayGroup(e,t){let n=[];for(let r=0,o=e.length;r<o;r+=t)n.push(e.slice(r,r+t));return n}async useUploadFile(){n.watch((()=>this.props.token),((e,t)=>{this.setCurrentToken(),this.setUploadFilePos()})),n.watchEffect((()=>{this.isShowtrash.value=this.props.readonly})),n.watchEffect((()=>{this.isOpenPagination.value=this.props.paginationSet.isPagination,this.gridPageSize.value=this.props.paginationSet.pageSize,this.uploadListGridOption.setting.isPagination=this.isOpenPagination.value,this.uploadListGridOption.setting.pageSize=this.gridPageSize.value})),this.setCurrentToken(),this.setUploadFilePos(),this.headers.value.Authorization=`Bearer ${this.storageInfo.getToken()}`}setCurrentToken(){this.currentToken=this.utilities.getValueNotNull(this.props.token,this.utilities.getUniqueCode().replaceAll("-","")),this.loadFileList()}setUploadFilePos(){for(const e of this.props.groups){const t=this.getUploadFilePo(e);this.uploadFilePos[e]=t}}getUploadFilePo(e){return this.uploadApi.getBaseFilePo(this.currentToken,this.props.catalog,e,this.props.extraInfo,this.props.isCompress)}async loadFileList(e=!1){this.uploading.value=!0;let t=this.currentToken.split(",");const n=await this.fileInfoApi.getEntities(r.QueryWrapper.create().in("Token",t));this.fileList.value=this.utilities.parseApiResult(n),this.uploading.value=!1,e&&this.ctx.emit("returnFileList",{token:this.currentToken,list:this.fileList.value}),this.loadUploadListData(),this.setPreviewList()}setPreviewList(){let e=0;this.previewList.value=[];for(const t of this.fileList.value)this.isImage(t)&&(t.PreviewIndex=e,this.previewList.value.push(this.getImgUrl(t)),e++)}}const Ln={class:"uploadFileList"},Fn={class:"up-btn-box"},Vn={class:"nv-flex-1"};const Un=h(Dn,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Spin"),s=n.resolveComponent("Button"),u=n.resolveComponent("Upload"),c=n.resolveComponent("NvGrid"),f=n.resolveComponent("Card"),p=n.resolveComponent("filePreview");return n.openBlock(),n.createElementBlock("div",Ln,[e.uploading?(n.openBlock(),n.createBlock(a,{key:0,fix:"",size:"large"})):n.createCommentVNode("",!0),e.single?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode("附件列表暂不支持分组")],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(e.groups,((t,r)=>(n.openBlock(),n.createBlock(f,{"dis-hover":"",key:r,style:{"margin-bottom":"8px",height:"100%"}},{default:n.withCtx((()=>[n.createElementVNode("div",Fn,[e.isShowtrash?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(u,{key:0,ref_for:!0,ref:"uploadRef",type:"drag",name:"FormFile",multiple:e.multiple,"show-upload-list":!1,format:e.format,"max-size":e.maxSize,action:e.action,headers:e.headers,data:e.uploadFilePos[t],"on-success":e.doSuccess,"on-format-error":e.doFormatError,"on-exceeded-size":e.doMaxSize,"before-upload":e.doBeforeUpload},{default:n.withCtx((()=>[e.isShowUpBtn?(n.openBlock(),n.createBlock(s,{key:0,type:"primary"},{default:n.withCtx((()=>[n.createTextVNode("上传")])),_:1})):n.createCommentVNode("",!0)])),_:2},1032,["multiple","format","max-size","action","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"])),e.isShowtrash?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(s,{key:1,style:{"margin-left":"8px"},type:"primary",onClick:e.uploadGridSave},{default:n.withCtx((()=>[n.createTextVNode("保存")])),_:1},8,["onClick"]))]),n.createElementVNode("div",Vn,[n.createVNode(c,{ref_for:!0,ref:t=>e.getuploadListGridRef(t,r),option:e.uploadListGridOption},null,8,["option"])])])),_:2},1024)))),128)),n.createVNode(p,{modelValue:e.previewVisible,"onUpdate:modelValue":t[0]||(t[0]=t=>e.previewVisible=t),"preview-list":e.previewList,"preview-index":e.previewIndex,"file-info":e.previewFileInfo},null,8,["modelValue","preview-list","preview-index","file-info"])])}],["__scopeId","data-v-788854bb"]]),Gn={onlyView:{type:Boolean,default:!1},formItems:{type:Array,default:()=>[]},formModel:{type:Object,default:()=>{}}},Zn=n.defineComponent({name:"NvComFormUp",components:{UploadFile:P,TextEditor:Be,NvDicSelect:Le,NvStructureTypeSelect:It,NvStructureSelect:fn,UploadFileList:Un,CASign:a.CASign,NvStructureSelect_HC:jn},emits:["textChange","TokenChange"],props:Gn,setup:(e,t)=>new Qn(e,t)});class Qn extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"textEditorRef",n.ref()),u(this,"saveTextData",(async()=>{this.textEditorRef.value.saveTextData()})),u(this,"clearTextData",(async()=>{this.textEditorRef.value.clearTextData()})),u(this,"deleteTextData",(async()=>{this.textEditorRef.value.deleteTextData()})),u(this,"deleteTextDataByToken",(async e=>{this.textEditorRef.value.deleteTextDataByToken(e)})),u(this,"getText",(()=>this.textEditorRef.value.getText())),u(this,"tokenList",((e,t)=>{this.ctx.emit("TokenChange",e),e.list.length>0?this.props.formModel[t.model]=e.token:this.props.formModel[t.model]=""})),u(this,"textChange",((e,t)=>{var n;null==(n=e.textEditorProp)||n.onChange(t)})),u(this,"StructureOnChange",((e,{Ids:t,data:n})=>{var r;this.props.formModel[e.model]=t,null==(r=e.structureProp)||r.onChange(t,n)})),u(this,"getPropValue",((e,t,n)=>this.utilities.isNull(e)?n:e[t])),u(this,"getPaginationSet",(e=>this.utilities.isNull(e.uploadFileListProp)?null:{isPagination:e.uploadFileListProp.isOpenPagination,pageSize:e.uploadFileListProp.pageSize??10})),u(this,"uploadFileListStyle",(e=>{var t;return this.utilities.isNull(e.uploadFileListProp)?{height:"200px"}:{height:(null==(t=e.uploadFileListProp)?void 0:t.isOpenPagination)?"300px":"200px"}})),u(this,"signOnSuccess",((e,{result:t,img:n})=>{this.props.formModel[e.model]=t,e.signProp&&e.signProp.onSignSuccess&&e.signProp.onSignSuccess({result:t,img:n})})),this.props=e,this.ctx=t}}const zn=h(Zn,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("UploadFile"),s=n.resolveComponent("TextEditor"),u=n.resolveComponent("NvDicSelect"),c=n.resolveComponent("NvStructureTypeSelect"),f=n.resolveComponent("NvStructureSelect"),p=n.resolveComponent("NvStructureSelect_HC"),h=n.resolveComponent("UploadFileList"),d=n.resolveComponent("CASign"),y=n.resolveComponent("NvComForm");return n.openBlock(),n.createBlock(y,{onlyView:e.onlyView,formItems:e.formItems,formModel:e.formModel},{extend:n.withCtx((({item:t})=>["UploadFile"===t.type?(n.openBlock(),n.createBlock(a,{key:0,readonly:e.getPropValue(t.uploadFileProp,"readonly")||e.onlyView,token:e.formModel[t.model],multiple:e.getPropValue(t.uploadFileProp,"multiple"),isShowFileName:e.getPropValue(t.uploadFileProp,"isShowFileName"),uploadQuantity:e.getPropValue(t.uploadFileProp,"uploadQuantity",0),onReturnFileList:n=>e.tokenList(n,t)},null,8,["readonly","token","multiple","isShowFileName","uploadQuantity","onReturnFileList"])):n.createCommentVNode("",!0),"TextEditor"===t.type?(n.openBlock(),n.createBlock(s,{key:1,ref:"textEditorRef",readonly:e.getPropValue(t.textEditorProp,"readonly")||e.onlyView,style:n.normalizeStyle({height:`${t.textEditorProp&&t.textEditorProp.textHeight?t.textEditorProp.textHeight:"300"}px`}),token:e.formModel[t.model],border:e.getPropValue(t.textEditorProp,"textBorder"),onTextChange:n=>e.textChange(t,n)},null,8,["readonly","style","token","border","onTextChange"])):n.createCommentVNode("",!0),"DicSelect"===t.type?(n.openBlock(),n.createBlock(u,{key:2,readonly:e.getPropValue(t.dicSelProp,"readonly")||e.onlyView,code:e.getPropValue(t.dicSelProp,"code"),platformId:e.getPropValue(t.dicSelProp,"platformId"),modelValue:e.formModel[t.model],"onUpdate:modelValue":n=>e.formModel[t.model]=n},null,8,["readonly","code","platformId","modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0),"StructureType"===t.type?(n.openBlock(),n.createBlock(c,{key:3,readonly:e.getPropValue(t.structureTypeProp,"readonly")||e.onlyView,dataValue:e.formModel[t.model],multiple:e.getPropValue(t.structureTypeProp,"multiple"),onOnChange:n=>e.StructureOnChange(t,n)},null,8,["readonly","dataValue","multiple","onOnChange"])):n.createCommentVNode("",!0),"Structure"===t.type?(n.openBlock(),n.createBlock(f,{key:4,readonly:e.getPropValue(t.structureProp,"readonly")||e.onlyView,dataValue:e.formModel[t.model],multiple:e.getPropValue(t.structureProp,"multiple"),selType:e.getPropValue(t.structureProp,"selType"),businessId:e.getPropValue(t.structureProp,"businessId"),onOnChange:n=>e.StructureOnChange(t,n)},null,8,["readonly","dataValue","multiple","selType","businessId","onOnChange"])):n.createCommentVNode("",!0),"Structure_HC"===t.type?(n.openBlock(),n.createBlock(p,{key:5,readonly:e.getPropValue(t.structureProp,"readonly")||e.onlyView,dataValue:e.formModel[t.model],multiple:e.getPropValue(t.structureProp,"multiple"),selType:e.getPropValue(t.structureProp,"selType"),businessId:e.getPropValue(t.structureProp,"businessId"),onOnChange:n=>e.StructureOnChange(t,n)},null,8,["readonly","dataValue","multiple","selType","businessId","onOnChange"])):n.createCommentVNode("",!0),"UploadFileList"===t.type?(n.openBlock(),n.createBlock(h,{key:6,style:n.normalizeStyle(e.uploadFileListStyle(t)),readonly:e.getPropValue(t.uploadFileListProp,"readonly")||e.onlyView,token:e.formModel[t.model],paginationSet:e.getPaginationSet(t),onReturnFileList:n=>e.tokenList(n,t)},null,8,["style","readonly","token","paginationSet","onReturnFileList"])):n.createCommentVNode("",!0),"CASign"===t.type?(n.openBlock(),n.createBlock(d,{key:7,signContent:e.getPropValue(t.signProp,"signContent"),signType:e.getPropValue(t.signProp,"signType"),isFakeVerifySign:e.getPropValue(t.signProp,"isFakeVerifySign"),signResult:e.formModel[t.model],isInstitutionSign:e.getPropValue(t.signProp,"isInstitutionSign"),disabled:e.getPropValue(t.signProp,"readonly")||e.onlyView,onSignSuccess:n=>e.signOnSuccess(t,n)},null,8,["signContent","signType","isFakeVerifySign","signResult","isInstitutionSign","disabled","onSignSuccess"])):n.createCommentVNode("",!0)])),_:1},8,["onlyView","formItems","formModel"])}]]);e.FilePreview=v,e.NvComFormUp=zn,e.NvDicSelect=Le,e.NvStructureSelect=fn,e.NvStructureSelect_HC=jn,e.NvStructureTypeSelect=It,e.TextEditor=Be,e.UploadFile=P,e.UploadFileList=Un,e.loadDictionaryData=je,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@newview/base-vue"),require("vue"),require("@newview/infrastructure"),require("@newview/fileservice-api"),require("@newview/basics-api"),require("@newview/tools"),require("@newview/permission-ui")):"function"==typeof define&&define.amd?define(["exports","@newview/base-vue","vue","@newview/infrastructure","@newview/fileservice-api","@newview/basics-api","@newview/tools","@newview/permission-ui"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).fileui={},e.baseVue,e.Vue,e.infrastructure,e.fileserviceApi,e.basicsApi,e.tools,e.permissionUi)}(this,(function(e,t,n,r,o,i,l,a){"use strict";var s=Object.defineProperty,u=(e,t,n)=>(((e,t,n)=>{t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const c={modelValue:{type:Boolean,default:!1},fileInfo:{type:Object,default:()=>{}},previewList:{type:Array,default:()=>[]},previewIndex:{type:Number,default:0}},f=n.defineComponent({name:"FilePreview",components:{},emits:["update:modelValue"],props:c,setup:(e,t)=>new p(e,t)});class p extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"ossFileApi",new o.OSSFileApi),u(this,"fileApi",new o.FileApi),u(this,"previewImage",n.ref(!1)),u(this,"previewIfr",n.ref(!1)),u(this,"ifrUrl",n.ref("")),u(this,"doClose",(e=>{e||this.ctx.emit("update:modelValue",!1)})),this.props=e,this.ctx=t,this.useFilePreview()}useFilePreview(){n.watch((()=>this.props.modelValue),(()=>{this.props.modelValue&&this.doView(this.props.fileInfo)})),this.props.modelValue&&this.doView(this.props.fileInfo)}async doView(e){const t=await this.ossFileApi.getSignatureUrlByFileInfo(e);if(this.isImage(e))this.previewImage.value=!0;else if(this.isOffice(e))this.ifrUrl.value=`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(t)}`,this.previewIfr.value=!0;else if(this.isVedio(e))this.ifrUrl.value=`${t}`,this.previewIfr.value=!0;else if(this.isPDF(e))this.ifrUrl.value=`/static/pdfjs-dist/web/viewer.html?file=${encodeURIComponent(t)}`,this.previewIfr.value=!0;else{const t=this.fileApi.getFileUrl(e.Token,e.Id);window.open(t)}}isOffice(e){const t=e.FileExt;return"doc"==t||"docx"==t||"ppt"==t||"pptx"==t||"xls"==t||"xlsx"==t}isVedio(e){const t=e.FileExt;return"mov"==t||"mp3"==t||"mp4"==t}isPDF(e){return"pdf"==e.FileExt}isImage(e){const t=e.FileExt;return"jpg"==t||"png"==t||"jpeg"==t||"gif"==t||"svg"==t}}const h=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},d={class:"ifr-container"},y=["src","title"];const v=h(f,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("ImagePreview"),s=n.resolveComponent("Modal");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(a,{transfer:"",modelValue:e.previewImage,"onUpdate:modelValue":t[0]||(t[0]=t=>e.previewImage=t),"preview-list":e.previewList,"initial-index":e.previewIndex,onOnClose:e.doClose},null,8,["modelValue","preview-list","initial-index","onOnClose"]),n.createVNode(s,{modelValue:e.previewIfr,"onUpdate:modelValue":t[1]||(t[1]=t=>e.previewIfr=t),fullscreen:"",mask:!0,"mask-closable":!1,width:1e3,"footer-hide":"",title:"文件预览 - "+e.fileInfo.FileName,onOnVisibleChange:e.doClose},{default:n.withCtx((()=>[n.createElementVNode("div",d,[n.createElementVNode("iframe",{src:e.ifrUrl,class:"ifr-content",title:e.fileInfo.fileInfo}," ",8,y)])])),_:1},8,["modelValue","title","onOnVisibleChange"])],64)}],["__scopeId","data-v-e7f81a3b"]]),g={linkParam:{type:String,default:""},operates:{type:String,default:"-"},token:{type:String,default:""},catalog:{type:String,default:"root"},groups:{type:Array,default:()=>["默认"]},extraInfo:{type:String,default:""},isCompress:{type:Boolean,default:!1},format:{type:Array,default:()=>[]},maxSize:{type:Number,default:0},multiple:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},single:{type:Boolean,default:!1},nullMsg:{type:String,default:"暂无附件"},uploadQuantity:{type:Number,default:0},isShowFileName:{type:Boolean,default:!0}},m=n.defineComponent({name:"UploadFile",components:{filePreview:v},emits:["success","returnFileList"],props:g,setup:(e,t)=>new b(e,t)});let b=class extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"uploadApi",new o.UploadApi),u(this,"fileInfoApi",new o.FileInfoApi),u(this,"fileApi",new o.FileApi),u(this,"currentToken",""),u(this,"fileList",n.ref([])),u(this,"uploading",n.ref(!0)),u(this,"uploadingPercent",n.ref(0)),u(this,"uploadFilePos",n.reactive({})),u(this,"action",n.ref("/FileServiceApi/Upload/file")),u(this,"headers",n.ref({Authorization:""})),u(this,"doSuccess",((e,t,n)=>{const r=this.utilities.parseApiResult(e);if(this.uploading.value=!1,"0"!=r.Code)return this.message.error(r.Msg),void(this.uploadingPercent.value=100);this.uploadingPercent.value=100,this.message.success("上传成功"),this.ctx.emit("success",{token:r.Token,fileId:r.FileId}),this.loadFileList(!0)})),u(this,"doFormatError",(()=>{this.message.warning("当前上传的文件格式不正确,请重新上传"),this.uploading.value=!1})),u(this,"doMaxSize",(()=>{this.props.maxSize/1024>=1?this.message.warning("文件太大超出上传限制,文件大小不得大于"+(this.props.maxSize/1024).toFixed(1)+"M"):this.message.warning("文件太大超出上传限制,文件大小不得大于"+this.props.maxSize+"KB"),this.uploading.value=!1})),u(this,"activeGroupName",n.ref("")),u(this,"doBeforeUpload",(e=>new Promise((async(t,n)=>{let o=!0;const i=e.name,l=i.split("."),a=l[l.length-1].toLowerCase();if(["doc","docx","ppt","pptx","xls","xlsx"].includes(a)){if(i.slice(0,-(a.length+1)).length>100)return this.message.warning("文件名长度不能超过100个字符"),o=!1,n()}if(this.props.uploadQuantity>0){let e=await this.fileInfoApi.getEntities(r.QueryWrapper.create().eq("Token",this.currentToken));const t=this.utilities.parseApiResult(e);t&&t.length>=this.props.uploadQuantity&&(this.message.warning(`仅能上传${this.props.uploadQuantity}个附件`),o=!1)}o?(this.message.info("文件上传中,请稍等"),this.multipartUpload(e),t(!0)):n()})))),u(this,"multipartUpload",(async e=>{let t=this,n=e.name,r=n.split("."),i=r[r.length-1],l=this.getOssContentType(n),a=this.utilities.getCurrentDate("YYYYMMDDHHmmss")+"_"+e.name,s=await new o.OSSFileApi;const u=this.storageInfo.getUser(),c=this.storageInfo.getCurrentBusiness(),f=this.storageInfo.getCurrentModule(),p=this.storageInfo.getCurrentPlatform();let h=(c?null==c?void 0:c.ModuleAlias:"非业务")+"/"+(f?null==f?void 0:f.ModuleAlias:"非业务"),d=(null==p?void 0:p.OssRootPath)+"/"+h+"/",y=`${d}${this.props.catalog}/${this.currentToken}/${a}`;if(200===(await s.multipartUpload(y,e,{async progress(e){t.uploadingPercent.value=(100*e).toFixed(0)},mime:l})).res.statusCode){let t={FileCabinetId:(null==f?void 0:f.Id)?null==f?void 0:f.Id:0,FileCabinePath:d,Catalog:this.props.catalog,Token:this.currentToken,GroupName:this.activeGroupName.value,FileMark:a,FileName:n,FileExt:i,FileSize:e.size,ExtraInfo:this.props.extraInfo,CreateUserId:null==u?void 0:u.Id,CreateUserName:null==u?void 0:u.UserName,CreateTime:this.utilities.getCurrentDate(),Id:0},r=this.utilities.parseApiResult(await this.fileInfoApi.save(t));r?(this.message.success("上传成功!"),this.ctx.emit("success",{token:this.currentToken,fileId:r}),this.loadFileList(!0),this.uploadingPercent.value=100):(this.message.error("网络出现异常,再次上传"),this.uploadingPercent.value=0)}else this.message.error("网络出现异常,再次上传"),this.uploadingPercent.value=0})),u(this,"doRemove",(e=>{this.modal.confirm({title:"提示",content:`数据删除后不可恢复,<br/>确定要删除 ${e.FileName} 文件吗?`,onOk:async()=>{this.uploading.value=!0;const t=await this.fileApi.deleteFile(e.Token,e.Id);this.utilities.parseApiResult(t)<=0?(this.message.warning("删除失败,请稍后重试!"),this.uploading.value=!1):(this.loadFileList(!0),this.message.success("删除成功"),this.uploading.value=!1)}})})),u(this,"doDwonload",(e=>{const t=this.fileApi.getFileUrl(e.Token,e.Id);window.open(t)})),u(this,"getGroupFiles",(e=>"默认"==e?this.fileList.value:this.fileList.value.filter((t=>t.GroupName==e)))),u(this,"getSingle",(e=>{const t=this.getGroupFiles(e);return this.props.single&&t.length>0})),u(this,"getFirstFile",(e=>{const t=this.getGroupFiles(e);return 0==t.length?void 0:t[0]})),u(this,"previewVisible",n.ref(!1)),u(this,"previewList",n.ref([])),u(this,"previewIndexData",{}),u(this,"previewIndex",n.ref(0)),u(this,"previewFileInfo",n.ref({})),u(this,"isImage",(e=>{const t=e.FileExt;return"jpg"==t||"png"==t||"jpeg"==t||"gif"==t||"svg"==t})),u(this,"getImgUrl",(e=>this.fileApi.getFileUrl(e.Token,e.Id))),u(this,"getThumbnailUrl",(e=>this.isImage(e)?this.getImgUrl(e):this.getFileIcon(e.FileExt))),u(this,"getFileIcon",(e=>{const t={img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wI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img;break;case"pdf":p=o.img;break;case"ppt":case"pptx":p=r.img;break;case"png":case"jpg":p=i.img;break;case"mov":p=a.img;break;case"mp3":p=s.img;break;case"mp4":p=u.img;break;case"html":case"htm":p=c.img;break;default:p=f.img}return p})),u(this,"doView",(async(e,t=0)=>{const n=this.fileList.value;this.previewFileInfo=n[t],this.previewVisible.value=!0,this.previewIndex.value=this.previewIndexData[e.Id]})),this.props=e,this.ctx=t,this.useUploadFile()}async useUploadFile(){n.watch((()=>this.props.token),((e,t)=>{this.setCurrentToken(),this.setUploadFilePos()})),this.setCurrentToken(),this.setUploadFilePos(),this.headers.value.Authorization=`Bearer ${this.storageInfo.getToken()}`}setCurrentToken(){this.currentToken=this.utilities.getValueNotNull(this.props.token,this.utilities.getUniqueCode().replaceAll("-","")),this.loadFileList()}setUploadFilePos(){for(const e of this.props.groups){const t=this.getUploadFilePo(e);this.uploadFilePos[e]=t}}getUploadFilePo(e){return this.uploadApi.getBaseFilePo(this.currentToken,this.props.catalog,e,this.props.extraInfo,this.props.isCompress)}async loadFileList(e=!1){this.uploading.value=!0;const t=await this.fileInfoApi.getEntities(r.QueryWrapper.create().eq("Token",this.currentToken).orderBy(["CreateTime"],!0));this.fileList.value=this.utilities.parseApiResult(t),this.uploading.value=!1,e&&this.ctx.emit("returnFileList",{token:this.currentToken,list:this.fileList.value}),this.setPreviewList()}getOssContentType(e){return e.indexOf(".bmp")>-1?"image/bmp":e.indexOf(".gif")>-1?"image/gif":e.indexOf(".jpeg")>-1||e.indexOf(".jpg")>-1||e.indexOf(".png")>-1?"image/jpg":e.indexOf(".html")>-1?"text/html":e.indexOf(".txt")>-1?"text/plain":e.indexOf(".vsd")>-1?"application/vnd.visio":e.indexOf(".pptx")>-1||e.indexOf(".ppt")>-1?"application/vnd.ms-powerpoint":e.indexOf(".docx")>-1||e.indexOf(".doc")>-1?"application/msword":e.indexOf(".xls")>-1||e.indexOf(".xlsx")>-1||e.indexOf(".xla")>-1?"application/vnd.ms-excel":e.indexOf(".xml")>-1?"text/xml":e.indexOf(".pdf")>-1?"application/pdf":e.indexOf(".zip")>-1?"application/zip":e.indexOf(".tar")>-1?"application/x-tar":e.indexOf(".avi")>-1?"video/avi":e.indexOf(".mp4")>-1?"video/mp4":e.indexOf(".mp3")>-1?"audio/mp3":"application/octet-stream"}setPreviewList(){let e=0;this.previewList.value=[];for(const t of this.fileList.value)this.isImage(t)&&(t.PreviewIndex=e,this.previewIndexData[t.Id]=e,this.previewList.value.push(this.getImgUrl(t)),e++)}};const A=e=>(n.pushScopeId("data-v-6ac1e6fe"),e=e(),n.popScopeId(),e),k={class:"uploadFile uploadPage"},w=["title"],N=["onClick"],E={class:"file-upload-list-cover"},O={key:0,class:"file-upload-list-name nv-text-nowrap"},I={class:"file-upload-loading"},x=A((()=>n.createElementVNode("div",null,"上传进度",-1))),T=["onClick"],S={key:2,class:"nv-flex",style:{color:"#949494",border:"1px dashed #dcdee2",height:"60px",padding:"0 20px","font-size":"16px","justify-content":"center"}},C={class:"nv-flex",style:{width:"40px","margin-right":"6px"}},B={t:"1706683071705",class:"icon",viewBox:"0 0 1566 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4559",style:{fill:"currentColor"}},R=[A((()=>n.createElementVNode("path",{d:"M156.661991 699.757959h21.096999a10.443999 10.443999 0 0 1 10.235999 10.443999c0 5.765-4.491 10.443999-10.235999 10.444h-21.096999v21.097999a10.443999 10.443999 0 0 1-10.444 10.234999 10.276999 10.276999 0 0 1-10.443999-10.234999v-21.097999h-21.096999a10.443999 10.443999 0 0 1-10.234999-10.444c0-5.765 4.49-10.443999 10.234999-10.443999h21.096999v-21.096999a10.443999 10.443999 0 0 1 10.443999-10.234999c5.765 0 10.443999 4.49 10.444 10.234999v21.096999z m1378.627919-83.552995v-21.096999a10.276999 10.276999 0 0 0-10.443999-10.234999 10.443999 10.443999 0 0 0-10.444 10.234999v21.096999h-21.096998a10.276999 10.276999 0 0 0-10.235 10.443999c0 5.598 4.595 10.443999 10.235 10.444h21.096998v21.096998c0 5.745 4.679 10.235999 10.444 10.236a10.443999 10.443999 0 0 0 10.443999-10.236v-21.096998h21.097999c5.744 0 10.234999-4.679 10.234999-10.444a10.443999 10.443999 0 0 0-10.234999-10.443999h-21.097999zM776.459955 960.861944H250.596985a20.804999 20.804999 0 0 1-20.825998-20.887999c0-11.529999 9.462999-20.888999 20.825998-20.888999h94.727995a83.009995 83.009995 0 0 1-11.112-41.671997v-605.969965a83.489995 83.489995 0 0 1 83.636996-83.447995h62.580996v-20.992999a83.489995 83.489995 0 0 1 83.636995-83.448995h501.151971a83.448995 83.448995 0 0 1 83.636995 83.448995v605.969965c0 15.184999-4.053 29.409998-11.134 41.671997h115.553994c11.551999 0 20.909999 9.273999 20.909998 20.887999 0 11.529999-9.295999 20.887999-20.888998 20.887999h-250.659986v20.992999c0 15.185999-4.052 29.409998-11.132999 41.671997h11.195999c11.488999 0 20.825999 9.274999 20.825999 20.888999 0 11.529999-9.462999 20.887999-20.825999 20.887999H892.807948a41.657998 41.657998 0 0 1-6.413 50.862997 41.671998 41.671998 0 0 1-59.071996 0l-50.862997-50.862997z m76.367995-41.776998h66.423996c22.977999 0 41.609998-18.589999 41.609998-41.879997V270.460984c0-22.559999-18.047999-40.689998-40.313998-40.689997H416.303976c-22.266999 0-40.314998 18.213999-40.314998 40.689997v606.741965c0 23.123999 18.799999 41.880998 41.589998 41.880997h317.083981l-10.736999-10.756999a41.692998 41.692998 0 0 1-10.862-40.376998l-19.718999-19.739999a146.259991 146.259991 0 0 1-190.980988-220.516987 146.217991 146.217991 0 0 1 220.517987 190.980989l19.738998 19.739999a41.629998 41.629998 0 0 1 40.376998 10.839999l69.829996 69.829996z m149.809991-104.440994h62.852997a41.796998 41.796998 0 0 0 41.589997-41.776997v-605.759965c0-23.144999-18.632999-41.776998-41.589997-41.776997H563.774967a41.796998 41.796998 0 0 0-41.566998 41.775997v20.888999h396.793977a83.448995 83.448995 0 0 1 83.636995 83.448995v543.199968zM266.326984 46.998997h31.122999c8.773999 0 15.875999 6.955 15.875999 15.665999 0 8.647999-7.102 15.665999-15.875999 15.665999h-31.122999v31.123999c0 8.772999-6.956 15.874999-15.665999 15.874999a15.769999 15.769999 0 0 1-15.666999-15.874999V78.329995H203.869988a15.728999 15.728999 0 0 1-15.874999-15.665999c0-8.647999 7.102-15.665999 15.874999-15.665999h31.122998V15.874999C234.992986 7.102 241.949986 0 250.659985 0c8.646999 0 15.665999 7.102 15.665999 15.874999V46.999997zM20.887999 939.973945c0-11.529999 9.462999-20.888999 20.825999-20.888999h125.454992c11.488999 0 20.825999 9.274999 20.825999 20.888999 0 11.529999-9.462999 20.887999-20.825999 20.887999H41.713998a20.804999 20.804999 0 0 1-20.825999-20.887999z m658.733961-135.021992A104.441994 104.441994 0 1 0 531.899969 657.229961a104.441994 104.441994 0 0 0 147.721991 147.721992z m-220.079987-491.626971a20.887999 20.887999 0 0 1 20.867999-20.888999h229.791986a20.887999 20.887999 0 1 1 0 41.776997H480.430972a20.825999 20.825999 0 0 1-20.887999-20.887998z m0 104.440994c0-11.529999 9.295999-20.887999 20.742999-20.887999H814.789952c11.446999 0 20.741999 9.273999 20.741999 20.887999 0 11.529999-9.294999 20.887999-20.741999 20.887998H480.284972a20.762999 20.762999 0 0 1-20.741999-20.887998z m0 104.441993c0-11.529999 9.316999-20.888999 20.846999-20.888998h146.301991c11.509999 0 20.845999 9.274999 20.845999 20.888998 0 11.529999-9.315999 20.887999-20.845999 20.887999H480.388972a20.804999 20.804999 0 0 1-20.845999-20.887999zM62.665996 396.877977a62.664996 62.664996 0 1 1 0-125.329993 62.664996 62.664996 0 0 1 0 125.329993z m0-31.332998a31.331998 31.331998 0 1 0 0-62.664997 31.331998 31.331998 0 0 0 0 62.664997z m1295.074924-93.996995a62.664996 62.664996 0 1 1 0-125.329993 62.664996 62.664996 0 0 1 0 125.329993z m0-31.332998a31.331998 31.331998 0 1 0 0-62.663996 31.331998 31.331998 0 0 0 0 62.663996z","p-id":"4560"},null,-1)))],j={class:"file-upload-list-cover"},M={class:"file-upload-loading"},D=A((()=>n.createElementVNode("div",null,"上传进度",-1)));const P=h(m,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Image"),s=n.resolveComponent("Icon"),u=n.resolveComponent("Space"),c=n.resolveComponent("Circle"),f=n.resolveComponent("Upload"),p=n.resolveComponent("Card"),h=n.resolveComponent("Spin"),d=n.resolveComponent("filePreview");return n.openBlock(),n.createElementBlock("div",k,[e.single?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.getFirstFile(e.groups[0])?(n.openBlock(),n.createElementBlock("div",{key:0,class:"file-upload-list-content",onClick:t[2]||(t[2]=t=>e.doView(e.getFirstFile(e.groups[0]))),style:{width:"100%",height:"100%"}},[n.createVNode(a,{src:e.getThumbnailUrl(e.getFirstFile(e.groups[0])),fit:"fill",width:"100%",height:"100%"},null,8,["src"]),n.createElementVNode("div",j,[n.createVNode(u,null,{default:n.withCtx((()=>[n.createVNode(s,{type:"md-download",onClick:t[0]||(t[0]=n.withModifiers((t=>e.doDwonload(e.getFirstFile(e.groups[0]))),["stop"])),title:"下载"}),e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(s,{key:0,type:"md-trash",onClick:t[1]||(t[1]=n.withModifiers((t=>e.doRemove(e.getFirstFile(e.groups[0]))),["stop"])),title:"删除"}))])),_:1})])])):n.createCommentVNode("",!0),e.readonly||e.getSingle(e.groups[0])?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(p,{key:1,"dis-hover":"",style:{"margin-bottom":"8px"}},{default:n.withCtx((()=>[e.uploadingPercent>0&&e.uploadingPercent<100?(n.openBlock(),n.createBlock(c,{key:0,size:"78",percent:e.uploadingPercent,"stroke-color":["#108ee9","#87d068"]},{default:n.withCtx((()=>[n.createElementVNode("div",M,[n.createElementVNode("div",null,n.toDisplayString(e.uploadingPercent)+"%",1),D])])),_:1},8,["percent"])):(n.openBlock(),n.createBlock(f,{key:1,ref:"uploadRef",type:"drag",name:"FormFile",multiple:e.multiple,"show-upload-list":!1,format:e.format,"max-size":e.maxSize,action:e.action,headers:e.headers,data:e.uploadFilePos[e.groups[0]],"on-success":e.doSuccess,"on-format-error":e.doFormatError,"on-exceeded-size":e.doMaxSize,"before-upload":e.doBeforeUpload,style:{display:"inline-block",width:"78px"}},{default:n.withCtx((()=>[n.createElementVNode("div",{class:"file-upload-btn",onClick:t[3]||(t[3]=t=>e.activeGroupName=e.groups[0])},[n.createVNode(s,{type:"ios-camera",size:"20"})])])),_:1},8,["multiple","format","max-size","action","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"]))])),_:1}))],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.groups,(t=>(n.openBlock(),n.createBlock(p,{"dis-hover":"",style:{"margin-bottom":"8px"}},n.createSlots({default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.getGroupFiles(t),((t,r)=>(n.openBlock(),n.createElementBlock("div",{class:"file-upload-list",title:t.FileName},[n.createElementVNode("div",{class:n.normalizeClass(["file-upload-list-content",{"file-upload-list-bs":e.isImage(t)}]),onClick:n=>e.doView(t,r)},[n.createVNode(a,{src:e.getThumbnailUrl(t),fit:"cover",transfer:"",width:"100%",height:"100%"},null,8,["src"]),n.createElementVNode("div",E,[n.createVNode(u,null,{default:n.withCtx((()=>[n.createVNode(s,{type:"md-download",onClick:n.withModifiers((n=>e.doDwonload(t)),["stop"]),title:"下载"},null,8,["onClick"]),e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(s,{key:0,type:"md-trash",onClick:n.withModifiers((n=>e.doRemove(t)),["stop"]),title:"删除"},null,8,["onClick"]))])),_:2},1024)])],10,N),e.isShowFileName?(n.openBlock(),n.createElementBlock("div",O,n.toDisplayString(t.FileName),1)):n.createCommentVNode("",!0)],8,w)))),256)),e.uploadingPercent>0&&e.uploadingPercent<100?(n.openBlock(),n.createBlock(c,{key:0,size:"78",percent:e.uploadingPercent,"stroke-color":["#108ee9","#87d068"]},{default:n.withCtx((()=>[n.createElementVNode("div",I,[n.createElementVNode("div",null,n.toDisplayString(e.uploadingPercent)+"%",1),x])])),_:1},8,["percent"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(f,{key:0,ref_for:!0,ref:"uploadRef",type:"drag",name:"FormFile",multiple:e.multiple,"show-upload-list":!1,format:e.format,"max-size":e.maxSize,headers:e.headers,data:e.uploadFilePos[t],"on-success":e.doSuccess,"on-format-error":e.doFormatError,"on-exceeded-size":e.doMaxSize,"before-upload":e.doBeforeUpload,style:{display:"inline-block",width:"78px"}},{default:n.withCtx((()=>[n.createElementVNode("div",{class:"file-upload-btn",onClick:n=>e.activeGroupName=t},[n.createVNode(s,{type:"ios-camera",size:"20"})],8,T)])),_:2},1032,["multiple","format","max-size","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"]))],64)),e.readonly&&0==e.fileList.length?(n.openBlock(),n.createElementBlock("div",S,[n.createElementVNode("i",C,[(n.openBlock(),n.createElementBlock("svg",B,R))]),n.createElementVNode("div",null,n.toDisplayString(e.nullMsg),1)])):n.createCommentVNode("",!0)])),_:2},["默认"!=t?{name:"title",fn:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(t),1)])),key:"0"}:void 0]),1024)))),256)),e.uploading?(n.openBlock(),n.createBlock(h,{key:2,fix:"",size:"large"})):n.createCommentVNode("",!0),n.createVNode(d,{modelValue:e.previewVisible,"onUpdate:modelValue":t[4]||(t[4]=t=>e.previewVisible=t),"preview-list":e.previewList,"preview-index":e.previewIndex,"file-info":e.previewFileInfo},null,8,["modelValue","preview-list","preview-index","file-info"])])}],["__scopeId","data-v-6ac1e6fe"]]);var L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function F(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V,U={exports:{}};"undefined"!=typeof self&&self,V=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(45),a=n(46),s=n(47),u=n(48),c=n(49),f=n(12),p=n(32),h=n(33),d=n(31),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:p.default,Style:h.default,Store:d.default}};t.default=v},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=i;var l,a,s={},u={},c={},f={};function p(e,t){var n;if(void 0===t&&(t=l.ANY),"string"==typeof e)n=f[e]||s[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=f.text;else if("number"==typeof e)e&l.LEVEL&l.BLOCK?n=f.block:e&l.LEVEL&l.INLINE&&(n=f.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=u[r[o]])break;n=n||c[e.tagName]}return null==n?null:t&l.LEVEL&n.scope&&t&l.TYPE&n.scope?n:null}t.DATA_KEY="__blot",(a=l=t.Scope||(t.Scope={}))[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY",t.create=function(e,t){var n=p(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=p,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return f[r.blotName||r.attrName]=r,"string"==typeof r.keyName?s[r.keyName]=r:(null!=r.className&&(u[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(e){null!=c[e]&&null!=r.className||(c[e]=r)})))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),l=n(20),a=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+l.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+l.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=l.length(i)}return new s(n)},s.prototype.compose=function(e){var t=l.iterator(this.ops),n=l.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var a=i.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),r.push(t.next());i.retain-a>0&&n.next(i.retain-a)}for(var u=new s(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),p=n.next(c);if("number"==typeof p.retain){var h={};"number"==typeof f.retain?h.retain=c:h.insert=f.insert;var d=l.attributes.compose(f.attributes,p.attributes,"number"==typeof f.retain);if(d&&(h.attributes=d),u.push(h),!n.hasNext()&&o(u.ops[u.ops.length-1],h)){var y=new s(t.rest());return u.concat(y).chop()}}else"number"==typeof p.delete&&"number"==typeof f.retain&&u.push(p)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=r(n[0],n[1],t),c=l.iterator(this.ops),f=l.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),i.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var a=c.next(n),s=f.next(n);o(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=l.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&e(r,{},o)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=l.iterator(this.ops),r=l.iterator(e.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),u=r.next(i);if(a.delete)continue;u.delete?o.push(u):o.retain(i,l.attributes.transform(a.attributes,u.attributes,t))}else o.retain(l.length(n.next()));return o.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=s},function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},s=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,c,f=arguments[0],p=1,h=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=u(f,n),f!==(o=u(t,n))&&(d&&o&&(a(o)||(i=l(o)))?(i?(i=!1,c=r&&l(r)?r:[]):c=r&&a(r)?r:{},s(f,{name:n,newValue:e(d,c,o)})):void 0!==o&&s(f,{name:n,newValue:o}));return f}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=f(n(3)),l=f(n(2)),a=f(n(0)),s=f(n(16)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=a.default.create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(a.default.Embed);y.scope=a.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){p(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return d(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))}),new l.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(a.default.query(r,a.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),l=i.shift();l.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),l):this.children.tail.insertAt(this.children.tail.length(),l),this.cache={});var a=this;i.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+l.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof s.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(a.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,a.default.Embed,c.default],t.bubbleFormats=g,t.BlockEmbed=y,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var l=v(n(2)),a=v(n(14)),s=v(n(8)),u=v(n(9)),c=v(n(0)),f=n(15),p=v(f),h=v(n(3)),d=v(n(10)),y=v(n(34));function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=(0,d.default)("quill"),b=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=A(t,r),this.container=this.options.container,null==this.container)return m.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;k.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),d.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&m.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||m.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=w(e,t,n),l=o(i,4);return e=l[0],t=l[1],n=l[3],k.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return k.call(this,(function(){var r=n.getSelection(!0),o=new l.default;if(null==r)return o;if(c.default.query(e,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,g({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,g({},e,t))}return n.setSelection(r,s.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var l,a=this,s=w(e,t,n,r,i),u=o(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],k.call(this,(function(){return a.editor.formatLine(e,t,l)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var l,a=this,s=w(e,t,n,r,i),u=o(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],k.call(this,(function(){return a.editor.formatText(e,t,l)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=w(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=w(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return k.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var l,a=this,s=w(e,0,n,r,i),u=o(s,4);return e=u[0],l=u[2],i=u[3],k.call(this,(function(){return a.editor.insertText(e,t,l)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=w(e,t,n),l=o(i,4);return e=l[0],t=l[1],n=l[3],k.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return k.call(this,(function(){e=new l.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=w(t,n,r),l=o(i,4);t=l[0],n=l[1],r=l[3],this.selection.setRange(new f.Range(t,n),r),r!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new l.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return k.call(this,(function(){return e=new l.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function A(e,t){if((t=(0,h.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==b.DEFAULTS.theme){if(t.theme=b.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=y.default;var n=(0,h.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=b.import("modules/"+t);return null==n?m.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,h.default)(!0,{},b.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function k(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new l.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=N(o,a,t):0!==r&&(o=N(o,n,r,t)),this.setSelection(o,s.default.sources.SILENT)),a.length()>0){var u,c,f=[s.default.events.TEXT_CHANGE,a,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(f)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return a}function w(e,t,n,o,i){var l={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(l=n,i=o):"string"==typeof n&&(null!=o?l[n]=o:i=n),[e,t,l,i=i||s.default.sources.API]}function N(e,t,n,r){if(null==e)return null;var i=void 0,a=void 0;if(t instanceof l.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==s.default.sources.USER)})),c=o(u,2);i=c[0],a=c[1]}else{var p=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),h=o(p,2);i=h[0],a=h[1]}return new f.Range(i,a-i)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=s.default.events,b.sources=s.default.sources,b.version="1.3.7",b.imports={delta:l.default,parchment:c.default,"core/module":u.default,"core/theme":y.default},t.expandConfig=A,t.overload=w,t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=a(n(7)),l=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var a=this.isolate(e,n);i&&a.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(l.default.Inline);s.allowedChildren=[s,l.default.Embed,i.default],s.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default.Text);t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=l(n(54));function l(e){return e&&e.__esModule?e:{default:e}}var a=(0,l(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",a.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){a.log.apply(a,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);s.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},s.sources={API:"api",SILENT:"silent",USER:"user"},t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];(t=console)[e].apply(t,i)}}function l(e){return r.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=l.level=function(e){o=e},t.default=l},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),l=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,c;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),l(e,t,n));if(s(e)){if(!s(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var f=o(e),p=o(t)}catch(h){return!1}if(f.length!=p.length)return!1;for(f.sort(),p.sort(),u=f.length-1;u>=0;u--)if(f[u]!=p[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!l(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function a(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=f(n(2)),a=f(n(0)),s=f(n(4)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),t}(u.default);y.blotName="code",y.tagName="CODE";var v=function(e){function t(){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new l.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(c.default,this.length()-1),l=r(o,1)[0];null!=l&&l.deleteAt(l.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=a.default.query(r,a.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var l=this.newlineIndex(e,!0)+1,s=i-l+1,u=this.isolate(l,s),c=u.next;u.format(r,o),c instanceof t&&c.formatAt(0,e-l+n-s,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(c.default,e),i=r(o,2),l=i[0],a=i[1];l.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=y,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=g(n(2)),a=g(n(20)),s=g(n(0)),u=g(n(13)),c=g(n(24)),f=n(4),p=g(f),h=g(n(16)),d=g(n(21)),y=g(n(11)),v=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var m=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,d.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,d.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new l.default)}(e)).reduce((function(e,l){var u=l.retain||l.delete||l.insert.length||1,c=l.attributes||{};if(null!=l.insert){if("string"==typeof l.insert){var h=l.insert;h.endsWith("\n")&&n&&(n=!1,h=h.slice(0,-1)),e>=i&&!h.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,h);var d=t.scroll.line(e),y=o(d,2),g=y[0],m=y[1],b=(0,v.default)({},(0,f.bubbleFormats)(g));if(g instanceof p.default){var A=g.descendant(s.default.Leaf,m),k=o(A,1)[0];b=(0,v.default)(b,(0,f.bubbleFormats)(k))}c=a.default.attributes.diff(b,c)||{}}else if("object"===r(l.insert)){var w=Object.keys(l.insert)[0];if(null==w)return e;t.scroll.insertAt(e,w,l.insert[w])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new l.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),l=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var a=e-t.offset(n.scroll),s=t.newlineIndex(a+l)-a+1;t.formatAt(a,s,o,r[o])}else t.format(o,r[o]);l-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(e).retain(t,(0,d.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new l.default).retain(e).retain(t,(0,d.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new l.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof p.default?n.push(t):t instanceof s.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=A((0,f.bubbleFormats)(n),t)}return t}));return v.default.apply(v.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new l.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new l.default).retain(e).insert(t,(0,d.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===p.default.blotName&&!(e.children.length>1)&&e.children.head instanceof h.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),a=i[0],s=i[1],c=0,f=new l.default;null!=a&&(c=a instanceof u.default?a.newlineIndex(s)-s+1:a.length()-s,f=a.delta().slice(s,s+c-1).insert("\n"));var p=this.getContents(e,t+c).diff((new l.default).insert(n).concat(f)),h=(new l.default).retain(e).concat(p);return this.applyDelta(h)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(m)&&s.default.find(t[0].target)){var o=s.default.find(t[0].target),i=(0,f.bubbleFormats)(o),a=o.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),p=(new l.default).insert(u),h=(new l.default).insert(o.value());e=(new l.default).retain(a).concat(p.diff(h,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new l.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,y.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function A(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(0)),l=u(n(21)),a=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=(0,u(n(10)).default)("quill:selection"),h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},d=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new h(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&r.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}})),this.update(s.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),l=r(i,2),a=l[0],s=l[1];if(null==a)return null;var u=a.position(s,!0),c=r(u,2);o=c[0],s=c[1];var f=document.createRange();if(t>0){f.setStart(o,s);var p=this.scroll.leaf(e+t),h=r(p,2);if(a=h[0],s=h[1],null==a)return null;var d=a.position(s,!0),y=r(d,2);return o=y[0],s=y[1],f.setEnd(o,s),f.getBoundingClientRect()}var v="left",g=void 0;return o instanceof Text?(s<o.data.length?(f.setStart(o,s),f.setEnd(o,s+1)):(f.setStart(o,s-1),f.setEnd(o,s),v="right"),g=f.getBoundingClientRect()):(g=a.domNode.getBoundingClientRect(),s>0&&(v="right")),{bottom:g.top+g.height,height:g.height,left:g[v],right:g[v],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],l=n[1],a=i.default.find(o,!0),s=a.offset(t.scroll);return 0===l?s:a instanceof i.default.Container?s+a.length():s+a.index(o,l)})),l=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),a=Math.min.apply(Math,[l].concat(c(o)));return new h(a,l-a)}},{key:"normalizeNative",value:function(e){if(!y(this.root,e.startContainer)||!e.collapsed&&!y(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var l,a=t.scroll.leaf(e),s=r(a,2),u=s[0],c=s[1],f=u.position(c,0!==n),p=r(f,2);l=p[0],c=p[1],o.push(l,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),l=r(i,1)[0],a=l;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,o));a=r(s,1)[0]}if(null!=l&&null!=a){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||e!==l.startContainer||t!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),p.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],u=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var f,p=[s.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(p)),e!==s.default.sources.SILENT&&(f=this.emitter).emit.apply(f,p)}}}]),e}();function y(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=h,t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default.Embed);a.blotName="break",a.tagName="BR",t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),l=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,l){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=l})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var l=null==n?a.create("text",t):a.create(t,n);this.appendChild(l)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],l=[[this,e]];return o instanceof t?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=u(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(l.default);function u(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),l=n(31),a=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new l.default(n.domNode),n}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(a.default);t.default=u},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new l(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function l(e){this.ops=e,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(a){t=function(){}}try{n=Set}catch(a){n=function(){}}try{r=Promise}catch(a){r=function(){}}function o(i,a,s,u,c){"object"==typeof a&&(s=a.depth,u=a.prototype,c=a.includeNonEnumerable,a=a.circular);var f=[],p=[],h="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===s&&(s=1/0),function i(s,d){if(null===s)return null;if(0===d)return s;var y,v;if("object"!=typeof s)return s;if(e(s,t))y=new t;else if(e(s,n))y=new n;else if(e(s,r))y=new r((function(e,t){s.then((function(t){e(i(t,d-1))}),(function(e){t(i(e,d-1))}))}));else if(o.__isArray(s))y=[];else if(o.__isRegExp(s))y=new RegExp(s.source,l(s)),s.lastIndex&&(y.lastIndex=s.lastIndex);else if(o.__isDate(s))y=new Date(s.getTime());else{if(h&&Buffer.isBuffer(s))return y=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(y),y;e(s,Error)?y=Object.create(s):void 0===u?(v=Object.getPrototypeOf(s),y=Object.create(v)):(y=Object.create(u),v=u)}if(a){var g=f.indexOf(s);if(-1!=g)return p[g];f.push(s),p.push(y)}for(var m in e(s,t)&&s.forEach((function(e,t){var n=i(t,d-1),r=i(e,d-1);y.set(n,r)})),e(s,n)&&s.forEach((function(e){var t=i(e,d-1);y.add(t)})),s){var b;v&&(b=Object.getOwnPropertyDescriptor(v,m)),b&&null==b.set||(y[m]=i(s[m],d-1))}if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(s);for(m=0;m<A.length;m++){var k=A[m];(!(N=Object.getOwnPropertyDescriptor(s,k))||N.enumerable||c)&&(y[k]=i(s[k],d-1),N.enumerable||Object.defineProperty(y,k,{enumerable:!1}))}}if(c){var w=Object.getOwnPropertyNames(s);for(m=0;m<w.length;m++){var N,E=w[m];(N=Object.getOwnPropertyDescriptor(s,E))&&N.enumerable||(y[E]=i(s[E],d-1),Object.defineProperty(y,E,{enumerable:!1}))}}return y}(i,s)}function i(e){return Object.prototype.toString.call(e)}function l(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=i,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},o.__getRegExpFlags=l,o}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=h(n(0)),a=h(n(8)),s=n(4),u=h(s),c=h(n(16)),f=h(n(13)),p=h(n(25));function h(e){return e&&e.__esModule?e:{default:e}}function d(e){return e instanceof u.default||e instanceof s.BlockEmbed}var y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),l=r(o,2),a=l[0],u=l[1],p=this.line(e+n),h=r(p,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=h&&a!==h&&u>0){if(a instanceof s.BlockEmbed||h instanceof s.BlockEmbed)return void this.optimize();if(a instanceof f.default){var d=a.newlineIndex(a.length(),!0);if(d>-1&&(a=a.split(d+1))===h)return void this.optimize()}else if(h instanceof f.default){var y=h.newlineIndex(0);y>-1&&h.split(y+1)}var v=h.children.head instanceof c.default?null:h.children.head;a.moveChildren(h,v),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==l.default.query(n,l.default.Scope.BLOCK)){var o=l.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var a=l.default.create(n,r);this.appendChild(a)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===l.default.Scope.INLINE_BLOT){var r=l.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(d,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){d(t)?o.push(t):t instanceof l.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,e)}}}]),t}(l.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[u.default,s.BlockEmbed,p.default],t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=y(n(21)),a=y(n(11)),s=y(n(3)),u=y(n(2)),c=y(n(20)),f=y(n(0)),p=y(n(5)),h=y(n(10)),d=y(n(9));function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,h.default)("quill:keyboard"),m=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},E),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},k),r.addBinding({key:t.keys.DELETE},{collapsed:!0},w)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},k),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},w)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},N),r.addBinding({key:t.keys.DELETE},{collapsed:!1},N),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},k),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=x(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=x(e);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,s.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,l=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==l.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=o(u,2),p=c[0],h=c[1],d=e.quill.getLeaf(s.index),y=o(d,2),v=y[0],g=y[1],m=0===s.length?[v,g]:e.quill.getLeaf(s.index+s.length),b=o(m,2),A=b[0],k=b[1],w=v instanceof f.default.Text?v.value().slice(0,g):"",N=A instanceof f.default.Text?A.value().slice(k):"",E={collapsed:0===s.length,empty:0===s.length&&p.length()<=1,format:e.quill.getFormat(s),offset:h,prefix:w,suffix:N};l.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed)return!1;if(null!=t.empty&&t.empty!==E.empty)return!1;if(null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,a.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix)||null!=t.suffix&&!t.suffix.test(E.suffix)||!0===t.handler.call(e,s,E))}))&&n.preventDefault()}}}}))}}]),t}(d.default);function A(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return v(n={key:e,shiftKey:t,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),1))})),n}function k(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var l=this.quill.getLine(e.index-1),a=o(l,1)[0];if(null!=a&&a.length()>1){var s=r.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,p.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-f,f,i,p.default.sources.USER),this.quill.focus()}}function w(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,l=this.quill.getLine(e.index),a=o(l,1)[0];if(t.offset>=a.length()-1){var s=this.quill.getLine(e.index+1),u=o(s,1)[0];if(u){var f=a.formats(),h=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(f,h)||{},i=u.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,p.default.sources.USER)}}function N(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function E(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))}))}function O(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),r=t.index,i=t.length,l=this.quill.scroll.descendant(n,r),a=o(l,2),s=a[0],u=a[1];if(null!=s){var c=this.quill.getIndex(s),h=s.newlineIndex(u,!0)+1,d=s.newlineIndex(c+u+i),y=s.domNode.textContent.slice(h,d).split("\n");u=0,y.forEach((function(t,o){e?(s.insertAt(h+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(h+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(p.default.sources.USER),this.quill.setSelection(r,i,p.default.sources.SILENT)}}}}function I(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function x(e){if("string"==typeof e||"number"==typeof e)return x({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,l.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[m]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:I("bold"),italic:I("italic"),underline:I("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":O(!0),"outdent code-block":O(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],l=(0,s.default)({},r.formats(),{list:"checked"}),a=(new u.default).retain(e.index).insert("\n",l).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],l=r[1],a=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-l-1).retain(1,{header:null});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),l=i[0],a=i[1];if(a>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-a).delete(n+1).retain(l.length()-2-a).retain(1,{list:s});this.quill.updateContents(c,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],l=(new u.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,p.default.sources.USER)}},"embed left":A(b.keys.LEFT,!1),"embed left shift":A(b.keys.LEFT,!0),"embed right":A(b.keys.RIGHT,!1),"embed right shift":A(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=s(n(0)),a=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==l.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];o=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,s].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),p=r(f,2);return i=p[0],s=p[1],{startNode:o,startOffset:i,endNode:o,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(l.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\ufeff",t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),o=n(4),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);a.allowedChildren=[i.default,o.BlockEmbed,a],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(a.default.Attributor.Style),u=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),c=new s("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=s,t.ColorClass=u,t.ColorStyle=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return s(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);function s(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=a,t.sanitize=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(23)),l=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}var s=0;function u(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),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",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=l.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+s,s+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(0)),o=g(n(5)),i=n(4),l=g(i),a=g(n(16)),s=g(n(25)),u=g(n(24)),c=g(n(35)),f=g(n(6)),p=g(n(22)),h=g(n(7)),d=g(n(55)),y=g(n(42)),v=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":l.default,"blots/block/embed":i.BlockEmbed,"blots/break":a.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":p.default,"blots/text":h.default,"modules/clipboard":d.default,"modules/history":y.default,"modules/keyboard":v.default}),r.default.register(l.default,a.default,u.default,f.default,p.default,h.default),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),l=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=l.query(t,l.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=a(n(0)),l=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var s="\ufeff",u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(s),n.rightGuard=document.createTextNode(s),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(s).join("");if(e===this.leftGuard)if(this.prev instanceof l.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=s,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(i.default.Embed);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new i.default.Attributor.Attribute("align","align",l),s=new i.default.Attributor.Class("align","ql-align",l),u=new i.default.Attributor.Style("align","text-align",l);t.AlignAttribute=a,t.AlignClass=s,t.AlignStyle=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l=n(26),a=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),s=new l.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},a=new i.default.Attributor.Attribute("direction","dir",l),s=new i.default.Attributor.Class("direction","ql-direction",l),u=new i.default.Attributor.Style("direction","direction",l);t.DirectionAttribute=a,t.DirectionClass=s,t.DirectionStyle=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},s={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new a.default.Attributor.Class("font","ql-font",s),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),f=new c("font","font-family",s);t.FontStyle=f,t.FontClass=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},l=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=l,t.SizeStyle=a},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(0)),i=l(n(5));function l(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,o){e!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=s(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(l(n(9)).default);function s(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=a,t.getLastChangeIndex=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=d(n(3)),l=d(n(2)),a=d(n(8)),s=d(n(23)),u=d(n(34)),c=d(n(59)),f=d(n(60)),p=d(n(28)),h=d(n(61));function d(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[!1,"center","right","justify"],b=["#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"],A=[!1,"serif","monospace"],k=["1","2","3",!1],w=["small",!1,"large","huge"],N=function(e){function t(e,n){y(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),r}return g(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&O(e,m),new f.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&O(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?O(e,A):e.classList.contains("ql-header")?O(e,k):e.classList.contains("ql-size")&&O(e,w)),new p.default(e)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(u.default);N.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(r.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){y(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",a.default.sources.USER),this.quill.setSelection(i+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(h.default);function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=E,t.default=N},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],l=e-o[1],a=this.iterator(i);(r=a())&&l<e+t;){var s=r.length();e>l?n(r,e-l,Math.min(t,l+s-e)):n(r,0,Math.min(s,e+t-l)),l+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),l=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[l.DATA_KEY].mutations&&(e.domNode[l.DATA_KEY].mutations=[]),t&&a(e.parent))},s=function(e){null!=e.domNode[l.DATA_KEY]&&null!=e.domNode[l.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(s),e.optimize(n))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(e){var t=l.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(l.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=l.find(e,!1);a(t,!1),t instanceof i.default&&t.children.forEach((function(e){a(e,!1)}))}))):"attributes"===e.type&&a(t.prev)),a(t))})),this.children.forEach(s),o=(u=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=l.find(e.target,!0);return null==t?null:null==t.domNode[l.DATA_KEY].mutations?(t.domNode[l.DATA_KEY].mutations=[e],t):(t.domNode[l.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[l.DATA_KEY]&&e.update(e.domNode[l.DATA_KEY].mutations||[],n)})),null!=this.domNode[l.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=s},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=l.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=l.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=l.query(n,l.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=l.query(r,l.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=l.query(n,l.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=l.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),l=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=l.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,r=1,o=0;function i(e,t,c){if(e==t)return e?[[o,e]]:[];(c<0||e.length<c)&&(c=null);var p=a(e,t),h=e.substring(0,p);p=s(e=e.substring(p),t=t.substring(p));var d=e.substring(e.length-p),y=function(e,t){var u;if(!e)return[[r,t]];if(!t)return[[n,e]];var c=e.length>t.length?e:t,f=e.length>t.length?t:e,p=c.indexOf(f);if(-1!=p)return u=[[r,c.substring(0,p)],[o,f],[r,c.substring(p+f.length)]],e.length>t.length&&(u[0][0]=u[2][0]=n),u;if(1==f.length)return[[n,e],[r,t]];var h=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,i,l,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,f="";-1!=(c=t.indexOf(u,c+1));){var p=a(e.substring(n),t.substring(c)),h=s(e.substring(0,n),t.substring(0,c));f.length<h+p&&(f=t.substring(c-h,c)+t.substring(c,c+p),r=e.substring(0,n-h),o=e.substring(n+p),i=t.substring(0,c-h),l=t.substring(c+p))}return 2*f.length>=e.length?[r,o,i,l,f]:null}var i,l,u,c,f,p=o(n,r,Math.ceil(n.length/4)),h=o(n,r,Math.ceil(n.length/2));if(!p&&!h)return null;i=h?p&&p[4].length>h[4].length?p:h:p,e.length>t.length?(l=i[0],u=i[1],c=i[2],f=i[3]):(c=i[0],f=i[1],l=i[2],u=i[3]);var d=i[4];return[l,u,c,f,d]}(e,t);if(h){var d=h[0],y=h[1],v=h[2],g=h[3],m=h[4],b=i(d,v),A=i(y,g);return b.concat([[o,m]],A)}return function(e,t){for(var o=e.length,i=t.length,a=Math.ceil((o+i)/2),s=a,u=2*a,c=new Array(u),f=new Array(u),p=0;p<u;p++)c[p]=-1,f[p]=-1;c[s+1]=0,f[s+1]=0;for(var h=o-i,d=h%2!=0,y=0,v=0,g=0,m=0,b=0;b<a;b++){for(var A=-b+y;A<=b-v;A+=2){for(var k=s+A,w=(x=A==-b||A!=b&&c[k-1]<c[k+1]?c[k+1]:c[k-1]+1)-A;x<o&&w<i&&e.charAt(x)==t.charAt(w);)x++,w++;if(c[k]=x,x>o)v+=2;else if(w>i)y+=2;else if(d&&(O=s+h-A)>=0&&O<u&&-1!=f[O]&&x>=(E=o-f[O]))return l(e,t,x,w)}for(var N=-b+g;N<=b-m;N+=2){for(var E,O=s+N,I=(E=N==-b||N!=b&&f[O-1]<f[O+1]?f[O+1]:f[O-1]+1)-N;E<o&&I<i&&e.charAt(o-E-1)==t.charAt(i-I-1);)E++,I++;if(f[O]=E,E>o)m+=2;else if(I>i)g+=2;else if(!d){var x;if((k=s+h-N)>=0&&k<u&&-1!=c[k]&&(w=s+(x=c[k])-k,x>=(E=o-E)))return l(e,t,x,w)}}}return[[n,e],[r,t]]}(e,t)}(e=e.substring(0,e.length-p),t=t.substring(0,t.length-p));return h&&y.unshift([o,h]),d&&y.push([o,d]),u(y),null!=c&&(y=function(e,t){var r=function(e,t){if(0===t)return[o,e];for(var r=0,i=0;i<e.length;i++){var l=e[i];if(l[0]===n||l[0]===o){var a=r+l[1].length;if(t===a)return[i+1,e];if(t<a){e=e.slice();var s=t-r,u=[l[0],l[1].slice(0,s)],c=[l[0],l[1].slice(s)];return e.splice(i,1,u,c),[i+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),i=r[1],l=r[0],a=i[l],s=i[l+1];if(null==a)return e;if(a[0]!==o)return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return i.splice(l,2,s,a),f(i,l,2);if(null!=s&&0===s[1].indexOf(a[1])){i.splice(l,2,[s[0],a[1]],[0,a[1]]);var u=s[1].slice(a[1].length);return u.length>0&&i.splice(l+2,0,[s[0],u]),f(i,l,3)}return e}(y,c)),y=function(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},l=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},a=2;a<e.length;a+=1)e[a-2][0]===o&&l(e[a-2][1])&&e[a-1][0]===n&&i(e[a-1][1])&&e[a][0]===r&&i(e[a][1])&&(t=!0,e[a-1][1]=e[a-2][1].slice(-1)+e[a-1][1],e[a][1]=e[a-2][1].slice(-1)+e[a][1],e[a-2][1]=e[a-2][1].slice(0,-1));if(!t)return e;var s=[];for(a=0;a<e.length;a+=1)e[a][1].length>0&&s.push(e[a]);return s}(y)}function l(e,t,n,r){var o=e.substring(0,n),l=t.substring(0,r),a=e.substring(n),s=t.substring(r),u=i(o,l),c=i(a,s);return u.concat(c)}function a(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function s(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function u(e){e.push([o,""]);for(var t,i=0,l=0,c=0,f="",p="";i<e.length;)switch(e[i][0]){case r:c++,p+=e[i][1],i++;break;case n:l++,f+=e[i][1],i++;break;case o:l+c>1?(0!==l&&0!==c&&(0!==(t=a(p,f))&&(i-l-c>0&&e[i-l-c-1][0]==o?e[i-l-c-1][1]+=p.substring(0,t):(e.splice(0,0,[o,p.substring(0,t)]),i++),p=p.substring(t),f=f.substring(t)),0!==(t=s(p,f))&&(e[i][1]=p.substring(p.length-t)+e[i][1],p=p.substring(0,p.length-t),f=f.substring(0,f.length-t))),0===l?e.splice(i-c,l+c,[r,p]):0===c?e.splice(i-l,l+c,[n,f]):e.splice(i-l-c,l+c,[n,f],[r,p]),i=i-l-c+(l?1:0)+(c?1:0)+1):0!==i&&e[i-1][0]==o?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,c=0,l=0,f="",p=""}""===e[e.length-1][1]&&e.pop();var h=!1;for(i=1;i<e.length-1;)e[i-1][0]==o&&e[i+1][0]==o&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),h=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),h=!0)),i++;h&&u(e)}var c=i;function f(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}c.INSERT=r,c.DELETE=n,c.EQUAL=o,e.exports=c},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,l=o.length,a=new Array(l);i<l;i++)a[i]=o[i].fn;return a},l.prototype.emit=function(e,t,n,o,i,l){var a=r?r+e:e;if(!this._events[a])return!1;var s,u,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,i),!0;case 6:return c.fn.call(c.context,t,n,o,i,l),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var p,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,o);break;default:if(!s)for(p=1,s=new Array(f-1);p<f;p++)s[p-1]=arguments[p];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(e,t,n){var o=new i(t,n||this),l=r?r+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],o]:this._events[l].push(o):(this._events[l]=o,this._eventsCount++),this},l.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),l=r?r+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],o]:this._events[l].push(o):(this._events[l]=o,this._eventsCount++),this},l.prototype.removeListener=function(e,t,n,i){var l=r?r+e:e;if(!this._events[l])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[l],this;var a=this._events[l];if(a.fn)a.fn!==t||i&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[l]);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==t||i&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[l]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new o:delete this._events[l]}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=r,l.EventEmitter=l,void 0!==e&&(e.exports=l)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=b(n(3)),a=b(n(2)),s=b(n(0)),u=b(n(5)),c=b(n(10)),f=b(n(9)),p=n(36),h=n(37),d=b(n(13)),y=n(26),v=n(38),g=n(39),m=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=(0,c.default)("quill:clipboard"),w="__ql-matcher",N=[[Node.TEXT_NODE,L],[Node.TEXT_NODE,D],["br",function(e,t){return S(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===T(e).fontStyle&&(n.italic=!0),r.fontWeight&&(T(e).fontWeight.startsWith("bold")||parseInt(T(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=x(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!S(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(s.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",R.bind(R,"bold")],["i",R.bind(R,"italic")],["style",function(){return new a.default}]],E=[p.AlignAttribute,v.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=[p.AlignStyle,h.BackgroundStyle,y.ColorStyle,v.DirectionStyle,g.FontStyle,m.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),I=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],N.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],l=t[1];(n.matchVisual||l!==P)&&r.addMatcher(i,l)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[d.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,A({},d.default.blotName,t[d.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),l=i[0],s=i[1],u=B(this.container,l,s);return S(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new a.default).retain(u.length()-1).delete(1))),k.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new a.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,u.default.sources.USER),t.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),l=i[0],a=i[1];switch(l){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(l),(function(e){e[w]=e[w]||[],e[w].push(a)}))}})),[t,n]}}]),t}(f.default);function x(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return x(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,l.default)({},A({},t,n),r.attributes))}),new a.default)}function T(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function S(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function C(e){if(0===e.childNodes.length)return!1;var t=T(e);return["block","list-item"].indexOf(t.display)>-1}function B(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=B(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[w]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new a.default):new a.default}function R(e,t,n){return x(n,e,!0)}function j(e,t){var n=s.default.Attributor.Attribute.keys(e),r=s.default.Attributor.Class.keys(e),o=s.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=O[t])||n.attrName!==t&&n.keyName!==t||(n=O[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=x(t,i)),t}function M(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new a.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=x(t,n.blotName,n.formats(e)));return t}function D(e,t){return S(t,"\n")||(C(e)||t.length()>0&&e.nextSibling&&C(e.nextSibling))&&t.insert("\n"),t}function P(e,t){if(C(e)&&null!=e.nextElementSibling&&!S(t,"\n\n")){var n=e.offsetHeight+parseFloat(T(e).marginTop)+parseFloat(T(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function L(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!T(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&C(e.parentNode)||null!=e.previousSibling&&C(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&C(e.parentNode)||null!=e.nextSibling&&C(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}I.DEFAULTS={matchers:[],matchVisual:!0},t.default=I,t.matchAttributor=j,t.matchBlot=M,t.matchNewline=D,t.matchSpacing=P,t.matchText=L},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);a.blotName="bold",a.tagName=["STRONG","B"],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(2)),l=c(n(0)),a=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=(0,s.default)("quill:toolbar"),h=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var l=document.createElement("div");y(l,i.options.container),e.container.parentNode.insertBefore(l,e.container),i.container=l}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)})),i):(o=p.error("Container required for toolbar",i.options),f(i,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void p.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void p.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=r(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(l.default.query(n).prototype instanceof l.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,s)),a.default.sources.USER)}else t.quill.format(n,s,a.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=r(n,2),i=o[0],l=o[1];if("SELECT"===l.tagName){var a=void 0;if(null==e)a=null;else if(null==t[i])a=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=l.querySelector('option[value="'+s+'"]')}null==a?(l.value="",l.selectedIndex=-1):a.selected=!0}else if(null==e)l.classList.remove("ql-active");else if(l.hasAttribute("value")){var u=t[i]===l.getAttribute("value")||null!=t[i]&&t[i].toString()===l.getAttribute("value")||null==t[i]&&!l.getAttribute("value");l.classList.toggle("ql-active",u)}else l.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function d(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function y(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)d(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):d(n,t,r)}})),e.appendChild(n)}))}h.DEFAULTS={},h.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=h,t.addControls=y},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var l=o.bottom-o.top,a=e.bottom-e.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=h(n(3)),a=h(n(8)),s=n(43),u=h(s),c=h(n(27)),f=n(15),p=h(n(41));function h(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],m=function(e){function t(e,n){d(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return v(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),p.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);m.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){d(this,t);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return v(t,e),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,n,o){if(null!=t){if(0===t.length&&o===a.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),l=r(i,2),s=l[0],u=l[1];if(null!=s){e.linkRange=new f.Range(t.index-u,s.length());var p=c.default.formats(s.domNode);return e.preview.textContent=p,e.preview.setAttribute("href",p),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);b.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(""),t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=D(n(29)),o=n(36),i=n(38),l=n(64),a=D(n(65)),s=D(n(66)),u=n(67),c=D(u),f=n(37),p=n(26),h=n(39),d=n(40),y=D(n(56)),v=D(n(68)),g=D(n(27)),m=D(n(69)),b=D(n(70)),A=D(n(71)),k=D(n(72)),w=D(n(73)),N=n(13),E=D(N),O=D(n(74)),I=D(n(75)),x=D(n(57)),T=D(n(41)),S=D(n(28)),C=D(n(59)),B=D(n(60)),R=D(n(61)),j=D(n(108)),M=D(n(62));function D(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":h.FontClass,"attributors/class/size":d.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":h.FontStyle,"attributors/style/size":d.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":l.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":h.FontClass,"formats/size":d.SizeClass,"formats/blockquote":a.default,"formats/code-block":E.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":y.default,"formats/code":N.Code,"formats/italic":v.default,"formats/link":g.default,"formats/script":m.default,"formats/strike":b.default,"formats/underline":A.default,"formats/image":k.default,"formats/video":w.default,"formats/list/item":u.ListItem,"modules/formula":O.default,"modules/syntax":I.default,"modules/toolbar":x.default,"themes/bubble":j.default,"themes/snow":M.default,"ui/icons":T.default,"ui/picker":S.default,"ui/icon-picker":B.default,"ui/color-picker":C.default,"ui/tooltip":R.default},!0),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),u=new s("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="blockquote",i.tagName="blockquote",t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=s(n(0)),l=s(n(4)),a=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){e!==h.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);p.blotName="list-item",p.tagName="LI";var h=function(e){function t(e){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return f(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof p)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(a.default);h.blotName="list",h.scope=i.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[p],t.ListItem=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=l)&&r.__esModule?r:{default:r}).default);a.blotName="script",a.tagName=["SUB","SUP"],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="strike",i.tagName="S",t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="underline",i.tagName="U",t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(0),a=(r=l)&&r.__esModule?r:{default:r},s=n(27),u=["alt","height","width"],c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){u.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return u.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);c.blotName="image",c.tagName="IMG",t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},l=n(4),a=n(27),s=(r=a)&&r.__esModule?r:{default:r},u=["height","width"],c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){u.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return u.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=s(n(35)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);p.blotName="formula",p.className="ql-formula",p.tagName="SPAN";var h=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return f(t,e),r(t,null,[{key:"register",value:function(){l.default.register(p,!0)}}]),t}(a.default);t.FormulaBlot=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},i=s(n(0)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);p.className="ql-syntax";var h=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),d=function(e){function t(e,n){u(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){l.default.register(h,!0),l.default.register(p,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(a.default);d.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=h,t.default=d},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<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"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <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"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<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> <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></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<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></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <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></path> </svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <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> <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></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <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> <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> <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></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <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> <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></path> </svg>'},function(e,t){e.exports='<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></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var l=o.get;return void 0!==l?l.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n(3)),l=f(n(8)),a=n(43),s=f(a),u=n(15),c=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return d(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);v.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(e){function t(e,n){p(this,t);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,o){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var a=i[i.length-1],s=r.quill.getIndex(a),c=Math.min(a.length()-1,t.index+t.length-s),f=r.quill.getBounds(new u.Range(s,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return d(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(a.BaseTooltip);g.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(""),t.BubbleTooltip=g,t.default=v},function(e,t,n){e.exports=n(63)}]).default},U.exports=V();const G=F(U.exports);var Z=-1,Q=1,z=0;function Y(e,t,n,r){if(e===t)return e?[[z,e]]:[];if(null!=n){var o=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,o="number"==typeof n?null:n.newRange,i=e.length,l=t.length;if(0===r.length&&(null===o||0===o.length)){var a=r.index,s=e.slice(0,a),u=e.slice(a),c=o?o.index:null,f=a+l-i;if((null===c||c===f)&&!(f<0||f>l)){var p=t.slice(0,f);if((y=t.slice(f))===u){var h=Math.min(a,f);if((g=s.slice(0,h))===(b=p.slice(0,h)))return ee(g,s.slice(h),p.slice(h),u)}}if(null===c||c===a){var d=a,y=(p=t.slice(0,d),t.slice(d));if(p===s){var v=Math.min(i-d,l-d);if((m=u.slice(u.length-v))===(A=y.slice(y.length-v)))return ee(s,u.slice(0,u.length-v),y.slice(0,y.length-v),m)}}}if(r.length>0&&o&&0===o.length){var g=e.slice(0,r.index),m=e.slice(r.index+r.length);if(!(l<(h=g.length)+(v=m.length))){var b=t.slice(0,h),A=t.slice(l-v);if(g===b&&m===A)return ee(g,e.slice(h,i-v),t.slice(h,l-v),m)}}return null}(e,t,n);if(o)return o}var i=q(e,t),l=e.substring(0,i);i=_(e=e.substring(i),t=t.substring(i));var a=e.substring(e.length-i),s=function(e,t){var n;if(!e)return[[Q,t]];if(!t)return[[Z,e]];var r=e.length>t.length?e:t,o=e.length>t.length?t:e,i=r.indexOf(o);if(-1!==i)return n=[[Q,r.substring(0,i)],[z,o],[Q,r.substring(i+o.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Z),n;if(1===o.length)return[[Z,e],[Q,t]];var l=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,i,l,a=e.substring(n,n+Math.floor(e.length/4)),s=-1,u="";-1!==(s=t.indexOf(a,s+1));){var c=q(e.substring(n),t.substring(s)),f=_(e.substring(0,n),t.substring(0,s));u.length<f+c&&(u=t.substring(s-f,s)+t.substring(s,s+c),r=e.substring(0,n-f),o=e.substring(n+c),i=t.substring(0,s-f),l=t.substring(s+c))}return 2*u.length>=e.length?[r,o,i,l,u]:null}var i,l,a,s,u,c=o(n,r,Math.ceil(n.length/4)),f=o(n,r,Math.ceil(n.length/2));if(!c&&!f)return null;i=f?c&&c[4].length>f[4].length?c:f:c;e.length>t.length?(l=i[0],a=i[1],s=i[2],u=i[3]):(s=i[0],u=i[1],l=i[2],a=i[3]);var p=i[4];return[l,a,s,u,p]}(e,t);if(l){var a=l[0],s=l[1],u=l[2],c=l[3],f=l[4],p=Y(a,u),h=Y(s,c);return p.concat([[z,f]],h)}return function(e,t){for(var n=e.length,r=t.length,o=Math.ceil((n+r)/2),i=o,l=2*o,a=new Array(l),s=new Array(l),u=0;u<l;u++)a[u]=-1,s[u]=-1;a[i+1]=0,s[i+1]=0;for(var c=n-r,f=c%2!=0,p=0,h=0,d=0,y=0,v=0;v<o;v++){for(var g=-v+p;g<=v-h;g+=2){for(var m=i+g,b=(E=g===-v||g!==v&&a[m-1]<a[m+1]?a[m+1]:a[m-1]+1)-g;E<n&&b<r&&e.charAt(E)===t.charAt(b);)E++,b++;if(a[m]=E,E>n)h+=2;else if(b>r)p+=2;else if(f){if((w=i+c-g)>=0&&w<l&&-1!==s[w])if(E>=(k=n-s[w]))return W(e,t,E,b)}}for(var A=-v+d;A<=v-y;A+=2){for(var k,w=i+A,N=(k=A===-v||A!==v&&s[w-1]<s[w+1]?s[w+1]:s[w-1]+1)-A;k<n&&N<r&&e.charAt(n-k-1)===t.charAt(r-N-1);)k++,N++;if(s[w]=k,k>n)y+=2;else if(N>r)d+=2;else if(!f){if((m=i+c-A)>=0&&m<l&&-1!==a[m]){var E;b=i+(E=a[m])-m;if(E>=(k=n-k))return W(e,t,E,b)}}}}return[[Z,e],[Q,t]]}(e,t)}(e=e.substring(0,e.length-i),t=t.substring(0,t.length-i));return l&&s.unshift([z,l]),a&&s.push([z,a]),H(s,r),s}function W(e,t,n,r){var o=e.substring(0,n),i=t.substring(0,r),l=e.substring(n),a=t.substring(r),s=Y(o,i),u=Y(l,a);return s.concat(u)}function q(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return J(e.charCodeAt(o-1))&&o--,o}function _(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return X(e.charCodeAt(e.length-o))&&o--,o}function H(e,t){e.push([z,""]);for(var n,r=0,o=0,i=0,l="",a="";r<e.length;)if(r<e.length-1&&!e[r][1])e.splice(r,1);else switch(e[r][0]){case Q:i++,a+=e[r][1],r++;break;case Z:o++,l+=e[r][1],r++;break;case z:var s=r-i-o-1;if(t){if(s>=0&&$(e[s][1])){var u=e[s][1].slice(-1);if(e[s][1]=e[s][1].slice(0,-1),l=u+l,a=u+a,!e[s][1]){e.splice(s,1),r--;var c=s-1;e[c]&&e[c][0]===Q&&(i++,a=e[c][1]+a,c--),e[c]&&e[c][0]===Z&&(o++,l=e[c][1]+l,c--),s=c}}if(K(e[r][1])){u=e[r][1].charAt(0);e[r][1]=e[r][1].slice(1),l+=u,a+=u}}if(r<e.length-1&&!e[r][1]){e.splice(r,1);break}if(l.length>0||a.length>0){l.length>0&&a.length>0&&(0!==(n=q(a,l))&&(s>=0?e[s][1]+=a.substring(0,n):(e.splice(0,0,[z,a.substring(0,n)]),r++),a=a.substring(n),l=l.substring(n)),0!==(n=_(a,l))&&(e[r][1]=a.substring(a.length-n)+e[r][1],a=a.substring(0,a.length-n),l=l.substring(0,l.length-n)));var f=i+o;0===l.length&&0===a.length?(e.splice(r-f,f),r-=f):0===l.length?(e.splice(r-f,f,[Q,a]),r=r-f+1):0===a.length?(e.splice(r-f,f,[Z,l]),r=r-f+1):(e.splice(r-f,f,[Z,l],[Q,a]),r=r-f+2)}0!==r&&e[r-1][0]===z?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,o=0,l="",a=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(r=1;r<e.length-1;)e[r-1][0]===z&&e[r+1][0]===z&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)===e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),p=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),p=!0)),r++;p&&H(e,t)}function J(e){return e>=55296&&e<=56319}function X(e){return e>=56320&&e<=57343}function K(e){return X(e.charCodeAt(0))}function $(e){return J(e.charCodeAt(e.length-1))}function ee(e,t,n,r){return $(e)||K(r)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[z,e],[Z,t],[Q,n],[z,r]])}function te(e,t,n){return Y(e,t,n,!0)}te.INSERT=Q,te.DELETE=Z,te.EQUAL=z;var ne=te,re={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",l="[object Date]",a="[object Function]",s="[object GeneratorFunction]",u="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",h="[object RegExp]",d="[object Set]",y="[object String]",v="[object Symbol]",g="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",A="[object Float32Array]",k="[object Float64Array]",w="[object Int8Array]",N="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",I="[object Uint8ClampedArray]",x="[object Uint16Array]",T="[object Uint32Array]",S=/\w*$/,C=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,R={};R[o]=R["[object Array]"]=R[m]=R[b]=R[i]=R[l]=R[A]=R[k]=R[w]=R[N]=R[E]=R[u]=R[c]=R[f]=R[h]=R[d]=R[y]=R[v]=R[O]=R[I]=R[x]=R[T]=!0,R["[object Error]"]=R[a]=R[g]=!1;var j="object"==typeof L&&L&&L.Object===Object&&L,M="object"==typeof self&&self&&self.Object===Object&&self,D=j||M||Function("return this")(),P=t&&!t.nodeType&&t,F=P&&e&&!e.nodeType&&e,V=F&&F.exports===P;function U(e,t){return e.set(t[0],t[1]),e}function G(e,t){return e.add(t),e}function Z(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Q(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Y(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q,_=Array.prototype,H=Function.prototype,J=Object.prototype,X=D["__core-js_shared__"],K=(q=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",$=H.toString,ee=J.hasOwnProperty,te=J.toString,ne=RegExp("^"+$.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=V?D.Buffer:void 0,oe=D.Symbol,ie=D.Uint8Array,le=Y(Object.getPrototypeOf,Object),ae=Object.create,se=J.propertyIsEnumerable,ue=_.splice,ce=Object.getOwnPropertySymbols,fe=re?re.isBuffer:void 0,pe=Y(Object.keys,Object),he=Fe(D,"DataView"),de=Fe(D,"Map"),ye=Fe(D,"Promise"),ve=Fe(D,"Set"),ge=Fe(D,"WeakMap"),me=Fe(Object,"create"),be=Qe(he),Ae=Qe(de),ke=Qe(ye),we=Qe(ve),Ne=Qe(ge),Ee=oe?oe.prototype:void 0,Oe=Ee?Ee.valueOf:void 0;function Ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){this.__data__=new xe(e)}function Ce(e,t){var n=Ye(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&ee.call(e,"callee")&&(!se.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var l in e)!t&&!ee.call(e,l)||i&&("length"==l||Ge(l,r))||n.push(l);return n}function Be(e,t,n){var r=e[t];ee.call(e,t)&&ze(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Re(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function je(e,t,n,r,p,g,C){var B;if(r&&(B=g?r(e,p,g,C):r(e)),void 0!==B)return B;if(!He(e))return e;var j=Ye(e);if(j){if(B=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,B)}else{var M=Ue(e),D=M==a||M==s;if(qe(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(M==f||M==o||D&&!g){if(Q(e))return g?e:{};if(B=function(e){return"function"!=typeof e.constructor||Ze(e)?{}:(t=le(e),He(t)?ae(t):{});var t}(D?{}:e),!t)return function(e,t){return Pe(e,Ve(e),t)}(e,function(e,t){return e&&Pe(t,Je(t),e)}(B,e))}else{if(!R[M])return g?e:{};B=function(e,t,n,r){var o=e.constructor;switch(t){case m:return De(e);case i:case l:return new o(+e);case b:return function(e,t){var n=t?De(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case A:case k:case w:case N:case E:case O:case I:case x:case T:return function(e,t){var n=t?De(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){var r=t?n(z(e),!0):z(e);return Z(r,U,new e.constructor)}(e,r,n);case c:case y:return new o(e);case h:return function(e){var t=new e.constructor(e.source,S.exec(e));return t.lastIndex=e.lastIndex,t}(e);case d:return function(e,t,n){var r=t?n(W(e),!0):W(e);return Z(r,G,new e.constructor)}(e,r,n);case v:return a=e,Oe?Object(Oe.call(a)):{}}var a}(e,M,je,t)}}C||(C=new Se);var P=C.get(e);if(P)return P;if(C.set(e,B),!j)var L=n?function(e){return function(e,t,n){var r=t(e);return Ye(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Je,Ve)}(e):Je(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(L||e,(function(o,i){L&&(o=e[i=o]),Be(B,i,je(o,t,n,r,i,e,C))})),B}function Me(e){return!(!He(e)||(t=e,K&&K in t))&&(_e(e)||Q(e)?ne:C).test(Qe(e));var t}function De(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Pe(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var l=t[o],a=r?r(n[l],e[l],l,n,e):void 0;Be(n,l,void 0===a?e[l]:a)}return n}function Le(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Fe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(n)?n:void 0}Ie.prototype.clear=function(){this.__data__=me?me(null):{}},Ie.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ie.prototype.get=function(e){var t=this.__data__;if(me){var r=t[e];return r===n?void 0:r}return ee.call(t,e)?t[e]:void 0},Ie.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:ee.call(t,e)},Ie.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?n:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,n=Re(t,e);return!(n<0)&&(n==t.length-1?t.pop():ue.call(t,n,1),!0)},xe.prototype.get=function(e){var t=this.__data__,n=Re(t,e);return n<0?void 0:t[n][1]},xe.prototype.has=function(e){return Re(this.__data__,e)>-1},xe.prototype.set=function(e,t){var n=this.__data__,r=Re(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new Ie,map:new(de||xe),string:new Ie}},Te.prototype.delete=function(e){return Le(this,e).delete(e)},Te.prototype.get=function(e){return Le(this,e).get(e)},Te.prototype.has=function(e){return Le(this,e).has(e)},Te.prototype.set=function(e,t){return Le(this,e).set(e,t),this},Se.prototype.clear=function(){this.__data__=new xe},Se.prototype.delete=function(e){return this.__data__.delete(e)},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xe){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this;n=this.__data__=new Te(r)}return n.set(e,t),this};var Ve=ce?Y(ce,Object):function(){return[]},Ue=function(e){return te.call(e)};function Ge(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||B.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||J)}function Qe(e){if(null!=e){try{return $.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(he&&Ue(new he(new ArrayBuffer(1)))!=b||de&&Ue(new de)!=u||ye&&Ue(ye.resolve())!=p||ve&&Ue(new ve)!=d||ge&&Ue(new ge)!=g)&&(Ue=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,r=n?Qe(n):void 0;if(r)switch(r){case be:return b;case Ae:return u;case ke:return p;case we:return d;case Ne:return g}return t});var Ye=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!_e(e)}var qe=fe||function(){return!1};function _e(e){var t=He(e)?te.call(e):"";return t==a||t==s}function He(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Je(e){return We(e)?Ce(e):function(e){if(!Ze(e))return pe(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return je(e,!0,!0)}}(re,re.exports);var oe=re.exports,ie={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=1,o=2,i=9007199254740991,l="[object Arguments]",a="[object Array]",s="[object AsyncFunction]",u="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",h="[object GeneratorFunction]",d="[object Map]",y="[object Number]",v="[object Null]",g="[object Object]",m="[object Promise]",b="[object Proxy]",A="[object RegExp]",k="[object Set]",w="[object String]",N="[object Symbol]",E="[object Undefined]",O="[object WeakMap]",I="[object ArrayBuffer]",x="[object DataView]",T=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[l]=C[a]=C[I]=C[u]=C[x]=C[c]=C[f]=C[p]=C[d]=C[y]=C[g]=C[A]=C[k]=C[w]=C[O]=!1;var B="object"==typeof L&&L&&L.Object===Object&&L,R="object"==typeof self&&self&&self.Object===Object&&self,j=B||R||Function("return this")(),M=t&&!t.nodeType&&t,D=M&&e&&!e.nodeType&&e,P=D&&D.exports===M,F=P&&B.process,V=function(){try{return F&&F.binding&&F.binding("util")}catch(e){}}(),U=V&&V.isTypedArray;function G(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var z,Y,W,q=Array.prototype,_=Function.prototype,H=Object.prototype,J=j["__core-js_shared__"],X=_.toString,K=H.hasOwnProperty,$=(z=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",ee=H.toString,te=RegExp("^"+X.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=P?j.Buffer:void 0,re=j.Symbol,oe=j.Uint8Array,ie=H.propertyIsEnumerable,le=q.splice,ae=re?re.toStringTag:void 0,se=Object.getOwnPropertySymbols,ue=ne?ne.isBuffer:void 0,ce=(Y=Object.keys,W=Object,function(e){return Y(W(e))}),fe=Ve(j,"DataView"),pe=Ve(j,"Map"),he=Ve(j,"Promise"),de=Ve(j,"Set"),ye=Ve(j,"WeakMap"),ve=Ve(Object,"create"),ge=Qe(fe),me=Qe(pe),be=Qe(he),Ae=Qe(de),ke=Qe(ye),we=re?re.prototype:void 0,Ne=we?we.valueOf:void 0;function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ie;++t<n;)this.add(e[t])}function Te(e){var t=this.__data__=new Oe(e);this.size=t.size}function Se(e,t){var n=We(e),r=!n&&Ye(e),o=!n&&!r&&qe(e),i=!n&&!r&&!o&&Ke(e),l=n||r||o||i,a=l?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=a.length;for(var u in e)!t&&!K.call(e,u)||l&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ze(u,s))||a.push(u);return a}function Ce(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function Be(e){return null==e?void 0===e?E:v:ae&&ae in Object(e)?function(e){var t=K.call(e,ae),n=e[ae];try{e[ae]=void 0;var r=!0}catch(i){}var o=ee.call(e);r&&(t?e[ae]=n:delete e[ae]);return o}(e):function(e){return ee.call(e)}(e)}function Re(e){return Xe(e)&&Be(e)==l}function je(e,t,n,i,s){return e===t||(null==e||null==t||!Xe(e)&&!Xe(t)?e!=e&&t!=t:function(e,t,n,i,s,p){var h=We(e),v=We(t),m=h?a:Ge(e),b=v?a:Ge(t),E=(m=m==l?g:m)==g,O=(b=b==l?g:b)==g,T=m==b;if(T&&qe(e)){if(!qe(t))return!1;h=!0,E=!1}if(T&&!E)return p||(p=new Te),h||Ke(e)?Pe(e,t,n,i,s,p):function(e,t,n,i,l,a,s){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!a(new oe(e),new oe(t)));case u:case c:case y:return ze(+e,+t);case f:return e.name==t.name&&e.message==t.message;case A:case w:return e==t+"";case d:var p=Z;case k:var h=i&r;if(p||(p=Q),e.size!=t.size&&!h)return!1;var v=s.get(e);if(v)return v==t;i|=o,s.set(e,t);var g=Pe(p(e),p(t),i,l,a,s);return s.delete(e),g;case N:if(Ne)return Ne.call(e)==Ne.call(t)}return!1}(e,t,m,n,i,s,p);if(!(n&r)){var S=E&&K.call(e,"__wrapped__"),C=O&&K.call(t,"__wrapped__");if(S||C){var B=S?e.value():e,R=C?t.value():t;return p||(p=new Te),s(B,R,n,i,p)}}if(!T)return!1;return p||(p=new Te),function(e,t,n,o,i,l){var a=n&r,s=Le(e),u=s.length,c=Le(t),f=c.length;if(u!=f&&!a)return!1;var p=u;for(;p--;){var h=s[p];if(!(a?h in t:K.call(t,h)))return!1}var d=l.get(e);if(d&&l.get(t))return d==t;var y=!0;l.set(e,t),l.set(t,e);var v=a;for(;++p<u;){var g=e[h=s[p]],m=t[h];if(o)var b=a?o(m,g,h,t,e,l):o(g,m,h,e,t,l);if(!(void 0===b?g===m||i(g,m,n,o,l):b)){y=!1;break}v||(v="constructor"==h)}if(y&&!v){var A=e.constructor,k=t.constructor;A==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof k&&k instanceof k||(y=!1)}return l.delete(e),l.delete(t),y}(e,t,n,i,s,p)}(e,t,n,i,je,s))}function Me(e){return!(!Je(e)||function(e){return!!$&&$ in e}(e))&&(_e(e)?te:T).test(Qe(e))}function De(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||H,t!==r)return ce(e);var t,n,r,o=[];for(var i in Object(e))K.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Pe(e,t,n,i,l,a){var s=n&r,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var f=a.get(e);if(f&&a.get(t))return f==t;var p=-1,h=!0,d=n&o?new xe:void 0;for(a.set(e,t),a.set(t,e);++p<u;){var y=e[p],v=t[p];if(i)var g=s?i(v,y,p,t,e,a):i(y,v,p,e,t,a);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!G(t,(function(e,t){if(r=t,!d.has(r)&&(y===e||l(y,e,n,i,a)))return d.push(t);var r}))){h=!1;break}}else if(y!==v&&!l(y,v,n,i,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Le(e){return function(e,t,n){var r=t(e);return We(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,$e,Ue)}function Fe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(n)?n:void 0}Ee.prototype.clear=function(){this.__data__=ve?ve(null):{},this.size=0},Ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ee.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return K.call(t,e)?t[e]:void 0},Ee.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:K.call(t,e)},Ee.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ve&&void 0===t?n:t,this},Oe.prototype.clear=function(){this.__data__=[],this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,n=Ce(t,e);return!(n<0)&&(n==t.length-1?t.pop():le.call(t,n,1),--this.size,!0)},Oe.prototype.get=function(e){var t=this.__data__,n=Ce(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Ce(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Ce(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ie.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(pe||Oe),string:new Ee}},Ie.prototype.delete=function(e){var t=Fe(this,e).delete(e);return this.size-=t?1:0,t},Ie.prototype.get=function(e){return Fe(this,e).get(e)},Ie.prototype.has=function(e){return Fe(this,e).has(e)},Ie.prototype.set=function(e,t){var n=Fe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xe.prototype.add=xe.prototype.push=function(e){return this.__data__.set(e,n),this},xe.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new Oe,this.size=0},Te.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ie(r)}return n.set(e,t),this.size=n.size,this};var Ue=se?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var l=e[n];t(l,n,e)&&(i[o++]=l)}return i}(se(e),(function(t){return ie.call(e,t)})))}:function(){return[]},Ge=Be;function Ze(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function Qe(e){if(null!=e){try{return X.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(fe&&Ge(new fe(new ArrayBuffer(1)))!=x||pe&&Ge(new pe)!=d||he&&Ge(he.resolve())!=m||de&&Ge(new de)!=k||ye&&Ge(new ye)!=O)&&(Ge=function(e){var t=Be(e),n=t==g?e.constructor:void 0,r=n?Qe(n):"";if(r)switch(r){case ge:return x;case me:return d;case be:return m;case Ae:return k;case ke:return O}return t});var Ye=Re(function(){return arguments}())?Re:function(e){return Xe(e)&&K.call(e,"callee")&&!ie.call(e,"callee")},We=Array.isArray;var qe=ue||function(){return!1};function _e(e){if(!Je(e))return!1;var t=Be(e);return t==p||t==h||t==s||t==b}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xe(e){return null!=e&&"object"==typeof e}var Ke=U?function(e){return function(t){return e(t)}}(U):function(e){return Xe(e)&&He(e.length)&&!!C[Be(e)]};function $e(e){return null!=(t=e)&&He(t.length)&&!_e(t)?Se(e):De(e);var t}e.exports=function(e,t){return je(e,t)}}(ie,ie.exports);var le=ie.exports,ae={},se=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ae,"__esModule",{value:!0});var ue,ce,fe=se(oe),pe=se(le);(ce=ue||(ue={})).compose=function(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=fe.default(t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},ce.diff=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return pe.default(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},ce.invert=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),e=e||{};var n=Object.keys(t).reduce((function(n,r){return t[r]!==e[r]&&void 0!==e[r]&&(n[r]=t[r]),n}),{});return Object.keys(e).reduce((function(n,r){return e[r]!==t[r]&&void 0===t[r]&&(n[r]=null),n}),n)},ce.transform=function(e,t,n){if(void 0===n&&(n=!1),"object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}},ae.default=ue;var he,de,ye={},ve={};function ge(){if(de)return ye;de=1;var e=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ye,"__esModule",{value:!0});var t,n,r=e(function(){if(he)return ve;he=1;var e=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ve,"__esModule",{value:!0});var t=e(ge()),n=function(){function e(e){this.ops=e,this.index=0,this.offset=0}return e.prototype.hasNext=function(){return this.peekLength()<1/0},e.prototype.next=function(e){e||(e=1/0);var n=this.ops[this.index];if(n){var r=this.offset,o=t.default.length(n);if(e>=o-r?(e=o-r,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof n.delete)return{delete:e};var i={};return n.attributes&&(i.attributes=n.attributes),"number"==typeof n.retain?i.retain=e:"string"==typeof n.insert?i.insert=n.insert.substr(r,e):i.insert=n.insert,i}return{retain:1/0}},e.prototype.peek=function(){return this.ops[this.index]},e.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},e.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e}();return ve.default=n,ve}());return(n=t||(t={})).iterator=function(e){return new r.default(e)},n.length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1},ye.default=t,ye}var me=L&&L.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},be=me(ne),Ae=me(oe),ke=me(le),we=me(ae),Ne=me(ge()),Ee=String.fromCharCode(0);const Oe=F(function(){function e(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}return e.prototype.insert=function(e,t){var n={};return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},e.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},e.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},e.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=Ae.default(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(ke.default(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},e.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},e.prototype.filter=function(e){return this.ops.filter(e)},e.prototype.forEach=function(e){this.ops.forEach(e)},e.prototype.map=function(e){return this.ops.map(e)},e.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},e.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},e.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+Ne.default.length(t):t.delete?e-t.delete:e}),0)},e.prototype.length=function(){return this.reduce((function(e,t){return e+Ne.default.length(t)}),0)},e.prototype.slice=function(t,n){void 0===t&&(t=0),void 0===n&&(n=1/0);for(var r=[],o=Ne.default.iterator(this.ops),i=0;i<n&&o.hasNext();){var l=void 0;i<t?l=o.next(t-i):(l=o.next(n-i),r.push(l)),i+=Ne.default.length(l)}return new e(r)},e.prototype.compose=function(t){var n=Ne.default.iterator(this.ops),r=Ne.default.iterator(t.ops),o=[],i=r.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===n.peekType()&&n.peekLength()<=l;)l-=n.peekLength(),o.push(n.next());i.retain-l>0&&r.next(i.retain-l)}for(var a=new e(o);n.hasNext()||r.hasNext();)if("insert"===r.peekType())a.push(r.next());else if("delete"===n.peekType())a.push(n.next());else{var s=Math.min(n.peekLength(),r.peekLength()),u=n.next(s),c=r.next(s);if("number"==typeof c.retain){var f={};"number"==typeof u.retain?f.retain=s:f.insert=u.insert;var p=we.default.compose(u.attributes,c.attributes,"number"==typeof u.retain);if(p&&(f.attributes=p),a.push(f),!r.hasNext()&&ke.default(a.ops[a.ops.length-1],f)){var h=new e(n.rest());return a.concat(h).chop()}}else"number"==typeof c.delete&&"number"==typeof u.retain&&a.push(c)}return a.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var r=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:Ee;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new e,i=be.default(r[0],r[1],n),l=Ne.default.iterator(this.ops),a=Ne.default.iterator(t.ops);return i.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case be.default.INSERT:n=Math.min(a.peekLength(),t),o.push(a.next(n));break;case be.default.DELETE:n=Math.min(t,l.peekLength()),l.next(n),o.delete(n);break;case be.default.EQUAL:n=Math.min(l.peekLength(),a.peekLength(),t);var r=l.next(n),i=a.next(n);ke.default(r.insert,i.insert)?o.retain(n,we.default.diff(r.attributes,i.attributes)):o.push(i).delete(n)}t-=n}})),o.chop()},e.prototype.eachLine=function(t,n){void 0===n&&(n="\n");for(var r=Ne.default.iterator(this.ops),o=new e,i=0;r.hasNext();){if("insert"!==r.peekType())return;var l=r.peek(),a=Ne.default.length(l)-r.peekLength(),s="string"==typeof l.insert?l.insert.indexOf(n,a)-a:-1;if(s<0)o.push(r.next());else if(s>0)o.push(r.next(s));else{if(!1===t(o,r.next(1).attributes||{},i))return;i+=1,o=new e}}o.length()>0&&t(o,{},i)},e.prototype.invert=function(t){var n=new e;return this.reduce((function(e,r){if(r.insert)n.delete(Ne.default.length(r));else{if(r.retain&&null==r.attributes)return n.retain(r.retain),e+r.retain;if(r.delete||r.retain&&r.attributes){var o=r.delete||r.retain;return t.slice(e,e+o).forEach((function(e){r.delete?n.push(e):r.retain&&r.attributes&&n.retain(Ne.default.length(e),we.default.invert(r.attributes,e.attributes))})),e+o}}return e}),0),n.chop()},e.prototype.transform=function(t,n){if(void 0===n&&(n=!1),n=!!n,"number"==typeof t)return this.transformPosition(t,n);for(var r=t,o=Ne.default.iterator(this.ops),i=Ne.default.iterator(r.ops),l=new e;o.hasNext()||i.hasNext();)if("insert"!==o.peekType()||!n&&"insert"===i.peekType())if("insert"===i.peekType())l.push(i.next());else{var a=Math.min(o.peekLength(),i.peekLength()),s=o.next(a),u=i.next(a);if(s.delete)continue;u.delete?l.push(u):l.retain(a,we.default.transform(s.attributes,u.attributes,n))}else l.retain(Ne.default.length(o.next()));return l.chop()},e.prototype.transformPosition=function(e,t){void 0===t&&(t=!1),t=!!t;for(var n=Ne.default.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.Op=Ne.default,e.AttributeMap=we.default,e}()),Ie={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},xe=n.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:e=>["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>"string"!=typeof e||""===e||("#"===e.charAt(0)||-1!==Object.keys(Ie).indexOf(e))},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(e,t)=>{let r,o;n.onMounted((()=>{l()})),n.onBeforeUnmount((()=>{r=null}));const i=n.ref(),l=()=>{var n;if(i.value){if(o=a(),e.modules)if(Array.isArray(e.modules))for(const t of e.modules)G.register(`modules/${t.name}`,t.module);else G.register(`modules/${e.modules.name}`,e.modules.module);r=new G(i.value,o),v(e.content),r.on("text-change",f),r.on("selection-change",h),r.on("editor-change",d),"bubble"!==e.theme&&i.value.classList.remove("ql-bubble"),"snow"!==e.theme&&i.value.classList.remove("ql-snow"),null===(n=r.getModule("toolbar"))||void 0===n||n.container.addEventListener("mousedown",(e=>{e.preventDefault()})),t.emit("ready",r)}},a=()=>{const t={};if(""!==e.theme&&(t.theme=e.theme),e.readOnly&&(t.readOnly=e.readOnly),e.placeholder&&(t.placeholder=e.placeholder),e.toolbar&&""!==e.toolbar&&(t.modules={toolbar:(()=>{if("object"==typeof e.toolbar)return e.toolbar;if("string"==typeof e.toolbar){return"#"===e.toolbar.charAt(0)?e.toolbar:Ie[e.toolbar]}})()}),e.modules){const n=(()=>{var t,n;const r={};if(Array.isArray(e.modules))for(const o of e.modules)r[o.name]=null!==(t=o.options)&&void 0!==t?t:{};else r[e.modules.name]=null!==(n=e.modules.options)&&void 0!==n?n:{};return r})();t.modules=Object.assign({},t.modules,n)}return Object.assign({},e.globalOptions,e.options,t)},s=e=>"object"==typeof e&&e?e.slice():e;let u;const c=e=>{if(typeof u==typeof e){if(e===u)return!0;if("object"==typeof e&&e&&"object"==typeof u&&u)return t=u.diff(e),!Object.values(t.ops).some((e=>!e.retain||1!==Object.keys(e).length))}var t;return!1},f=(n,r,o)=>{u=s(y()),c(e.content)||t.emit("update:content",u),t.emit("textChange",{delta:n,oldContents:r,source:o})},p=n.ref(),h=(e,n,o)=>{p.value=!!(null==r?void 0:r.hasFocus()),t.emit("selectionChange",{range:e,oldRange:n,source:o})};n.watch(p,(e=>{e?t.emit("focus",i):t.emit("blur",i)}));const d=(...e)=>{"text-change"===e[0]&&t.emit("editorChange",{name:e[0],delta:e[1],oldContents:e[2],source:e[3]}),"selection-change"===e[0]&&t.emit("editorChange",{name:e[0],range:e[1],oldRange:e[2],source:e[3]})},y=(t,n)=>"html"===e.contentType?b():"text"===e.contentType?g(t,n):null==r?void 0:r.getContents(t,n),v=(t,n="api")=>{const o=t||("delta"===e.contentType?new Oe:"");"html"===e.contentType?A(o):"text"===e.contentType?m(o,n):null==r||r.setContents(o,n),u=s(o)},g=(e,t)=>{var n;return null!==(n=null==r?void 0:r.getText(e,t))&&void 0!==n?n:""},m=(e,t="api")=>{null==r||r.setText(e,t)},b=()=>{var e;return null!==(e=null==r?void 0:r.root.innerHTML)&&void 0!==e?e:""},A=e=>{r&&(r.root.innerHTML=e)};return n.watch((()=>e.content),(e=>{if(!r||!e||c(e))return;const t=r.getSelection();t&&n.nextTick((()=>null==r?void 0:r.setSelection(t))),v(e)}),{deep:!0}),n.watch((()=>e.enable),(e=>{r&&r.enable(e)})),{editor:i,getEditor:()=>i.value,getToolbar:()=>{var e;return null===(e=null==r?void 0:r.getModule("toolbar"))||void 0===e?void 0:e.container},getQuill:()=>{if(r)return r;throw'The quill editor hasn\'t been instantiated yet,\n make sure to call this method when the editor ready\n or use v-on:ready="onReady(quill)" event instead.'},getContents:y,setContents:v,getHTML:b,setHTML:A,pasteHTML:(e,t="api")=>{const n=null==r?void 0:r.clipboard.convert(e);n&&(null==r||r.setContents(n,t))},focus:()=>{null==r||r.focus()},getText:g,setText:m,reinit:()=>{n.nextTick((()=>{var e;!t.slots.toolbar&&r&&(null===(e=r.getModule("toolbar"))||void 0===e||e.container.remove()),l()}))}}},render(){var e,t;return[null===(t=(e=this.$slots).toolbar)||void 0===t?void 0:t.call(e),n.h("div",{ref:"editor",...this.$attrs})]}}),Te={modelValue:{default:"",type:String},token:{default:"",type:String},readonly:{type:Boolean,default:!1},border:{type:Boolean,default:!0}},Se=n.defineComponent({name:"TextEditor",components:{QuillEditor:xe},emits:["update:modelValue","textChange"],props:Te,setup:(e,t)=>new Ce(e,t)});let Ce=class extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"fileApi",new o.FileApi),u(this,"uploadApi",new o.UploadApi),u(this,"business",this.storageInfo.getCurrentInsTree()),u(this,"componentShow",n.ref(!1)),u(this,"content",n.ref("")),u(this,"theme",n.ref("snow")),u(this,"QuillEditorRef",n.ref()),u(this,"options",n.reactive({modules:{toolbar:{container:[["bold","italic","underline","strike"],["blockquote","code-block"],[{size:["small",!1,"large","huge"]}],[{font:[]}],[{align:[]}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{header:1},{header:2}],["image"],[{color:[]}],[{background:[]}]]}}})),u(this,"textChange",(()=>{this.ctx.emit("update:modelValue",this.content.value),this.ctx.emit("textChange",this.content.value)})),u(this,"getText",(()=>this.QuillEditorRef.value.getHTML())),u(this,"saveTextData",(async()=>{let e=JSON.stringify(this.content.value);const t=this.uploadApi.getBaseFilePo(this.props.token,"content","默认");await this.uploadApi.writeFile(this.props.token+"","json",e,t)})),u(this,"deleteTextData",(async()=>{await this.fileApi.deleteByToken(this.props.token)})),u(this,"deleteTextDataByToken",(async e=>{await this.fileApi.deleteByToken(e)})),u(this,"clearTextData",(async()=>{this.content.value="",this.QuillEditorRef.value.setHTML("")})),this.props=e,this.ctx=t,this.init()}init(){n.onMounted((()=>{this.loadTextData(),n.watchEffect((()=>{this.componentShow.value=!1,this.props.readonly?this.theme.value="bubble":this.theme.value="snow",n.nextTick((()=>{this.componentShow.value=!0}))}))}))}async loadTextData(){if(!this.utilities.isNull(this.props.token)){const e=this.utilities.parseApiResult(await this.fileApi.readText(this.props.token));e&&(this.content.value=JSON.parse(e))}}};const Be=h(Se,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("QuillEditor");return n.openBlock(),n.createElementBlock("div",{style:{height:"100%"},class:n.normalizeClass({"text-edit-border":e.border&&e.readonly})},[e.componentShow?(n.openBlock(),n.createBlock(a,{key:0,content:e.content,"onUpdate:content":t[0]||(t[0]=t=>e.content=t),readOnly:e.readonly,theme:e.theme,onTextChange:e.textChange,contentType:"html",ref:"QuillEditorRef",options:e.options},null,8,["content","readOnly","theme","onTextChange","options"])):n.createCommentVNode("",!0)],2)}],["__scopeId","data-v-5812cc0f"]]),Re=new i.DictionaryDetailApi,je=async(e,t,n,o)=>{t||(t=[]),l.utilities.isNull(o)&&(o=r.storageInfo.getCurrentPlatform().Id);const i=l.utilities.parseApiResult(await Re.getOptions(o,e));return n?(t.splice(0,0,...l.utilities.arrayHelper.parseIViewOptions(i,"DetailInfor","DetailValue")),t):i},Me={code:{type:String,default:""},platformId:{type:Number,default:null},value:{type:String,default:""},readonly:{type:Boolean,default:!1}},De=n.defineComponent({name:"NvDicSelect",components:{},emits:["input","change"],props:Me,setup:(e,t)=>new Pe(e,t)});class Pe extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"DicValue",n.ref("")),u(this,"dicOptions",n.ref([])),u(this,"DicSelectChange",(()=>{this.ctx.emit("input",this.DicValue.value),this.ctx.emit("change",this.DicValue.value)})),this.props=e,this.ctx=t,this.loadDicData()}async loadDicData(){this.dicOptions.value=await je(this.props.code,[],!0,this.props.platformId)}}const Le=h(De,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Option"),s=n.resolveComponent("Select");return n.openBlock(),n.createBlock(s,{disabled:e.readonly,modelValue:e.DicValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.DicValue=t),transfer:"",onOnChange:e.DicSelectChange},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dicOptions,(e=>(n.openBlock(),n.createBlock(a,{value:e.value,key:e.value},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e.text),1)])),_:2},1032,["value"])))),128))])),_:1},8,["disabled","modelValue","onOnChange"])}]]);var Fe={Identity:function(e){return e},True:function(){return!0},Blank:function(){}},Ve="boolean",Ue="number",Ge="string",Ze="undefined",Qe="function",ze={"":Fe.Identity},Ye=function(e){if(null==e)return Fe.Identity;if(typeof e===Ge){let t=ze[e];if(null!=t)return t;if(-1===e.indexOf("=>")){const n=new RegExp("[$]+","g");let r,o=0;for(;null!=(r=n.exec(e));)r[0].length>o&&(o=r[0].length);const i=[];for(let e=1;e<=o;e++){let t="";for(let n=0;n<e;n++)t+="$";i.push(t)}const l=i.join(",");return t=new Function(l,"return "+e),ze[e]=t,t}{const n=e.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/);return t=new Function(n[1],n[2].match(/\breturn\b/)?n[2]:"return "+n[2]),ze[e]=t,t}}return e},We=function(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},qe=function(e,t){return e===t?0:e>t?1:-1},_e=function(e){null!=e&&e.dispose()},He=function(){return"undefined"!=typeof Symbol&&void 0!==Symbol.iterator},Je=0,Xe=1,Ke=2,$e=function(e,t,n){var r=new et,o=Je;this.current=r.current,this.moveNext=function(){try{switch(o){case Je:o=Xe,e();case Xe:return!!t.apply(r)||(this.dispose(),!1);case Ke:return!1}}catch(n){throw this.dispose(),n}},this.dispose=function(){if(o==Xe)try{n()}finally{o=Ke}}},et=function(){var e=null;this.current=function(){return e},this.yieldReturn=function(t){return e=t,!0},this.yieldBreak=function(){return!1}},tt=function(e){this.getEnumerator=e};(tt.Utils={}).createLambda=function(e){return Ye(e)},tt.Utils.createEnumerable=function(e){return new tt(e)},tt.Utils.createEnumerator=function(e,t,n){return new $e(e,t,n)},tt.Utils.extendTo=function(e){var t,n=e.prototype;e===Array?(t=it.prototype,We(n,"getSource",(function(){return this}))):(t=tt.prototype,We(n,"getEnumerator",(function(){return tt.from(this).getEnumerator()})));for(let r in t){const e=t[r];n[r]!=e&&(null!=n[r]&&(r+="ByLinq",n[r]==e)||e instanceof Function&&We(n,r,e))}},tt.Utils.recallFrom=function(e){var t,n=e.prototype;e===Array?(t=it.prototype,delete n.getSource):(t=tt.prototype,delete n.getEnumerator);for(const r in t){const e=t[r];n[r+"ByLinq"]?delete n[r+"ByLinq"]:n[r]==e&&e instanceof Function&&delete n[r]}},tt.choice=function(){var e=arguments;return new tt((function(){return new $e((function(){e=e[0]instanceof Array?e[0]:null!=e[0].getEnumerator?e[0].toArray():e}),(function(){return this.yieldReturn(e[Math.floor(Math.random()*e.length)])}),Fe.Blank)}))},tt.cycle=function(){var e=arguments;return new tt((function(){var t=0;return new $e((function(){e=e[0]instanceof Array?e[0]:null!=e[0].getEnumerator?e[0].toArray():e}),(function(){return t>=e.length&&(t=0),this.yieldReturn(e[t++])}),Fe.Blank)}))},tt.empty=function(){return new tt((function(){return new $e(Fe.Blank,(function(){return!1}),Fe.Blank)}))},tt.from=function(e){if(null==e)return tt.empty();if(e instanceof tt)return e;if(typeof e==Ue||typeof e==Ve)return tt.repeat(e,1);if(typeof e==Ge)return new tt((function(){var t=0;return new $e(Fe.Blank,(function(){return t<e.length&&this.yieldReturn(e.charAt(t++))}),Fe.Blank)}));if(typeof e!=Qe){if(typeof e.length==Ue)return new it(e);if("undefined"!=typeof Symbol&&void 0!==e[Symbol.iterator])return new tt((function(){return new $e(Fe.Blank,(function(){var t=e.next();return!t.done&&this.yieldReturn(t.value)}),Fe.Blank)}))}return new tt((function(){var t=[],n=0;return new $e((function(){for(const n in e){const r=e[n];r instanceof Function||!Object.prototype.hasOwnProperty.call(e,n)||t.push({key:n,value:r})}}),(function(){return n<t.length&&this.yieldReturn(t[n++])}),Fe.Blank)}))},tt.make=function(e){return tt.repeat(e,1)},tt.matches=function(e,t,n){return null==n&&(n=""),t instanceof RegExp&&(n+=t.ignoreCase?"i":"",n+=t.multiline?"m":"",t=t.source),-1===n.indexOf("g")&&(n+="g"),new tt((function(){var r;return new $e((function(){r=new RegExp(t,n)}),(function(){var t=r.exec(e);return!!t&&this.yieldReturn(t)}),Fe.Blank)}))},tt.range=function(e,t,n){return null==n&&(n=1),new tt((function(){var r,o=0;return new $e((function(){r=e-n}),(function(){return o++<t?this.yieldReturn(r+=n):this.yieldBreak()}),Fe.Blank)}))},tt.rangeDown=function(e,t,n){return null==n&&(n=1),new tt((function(){var r,o=0;return new $e((function(){r=e+n}),(function(){return o++<t?this.yieldReturn(r-=n):this.yieldBreak()}),Fe.Blank)}))},tt.rangeTo=function(e,t,n){return null==n&&(n=1),new tt(e<t?function(){var r;return new $e((function(){r=e-n}),(function(){var e=r+=n;return e<=t?this.yieldReturn(e):this.yieldBreak()}),Fe.Blank)}:function(){var r;return new $e((function(){r=e+n}),(function(){var e=r-=n;return e>=t?this.yieldReturn(e):this.yieldBreak()}),Fe.Blank)})},tt.repeat=function(e,t){return null!=t?tt.repeat(e).take(t):new tt((function(){return new $e(Fe.Blank,(function(){return this.yieldReturn(e)}),Fe.Blank)}))},tt.repeatWithFinalize=function(e,t){return e=Ye(e),t=Ye(t),new tt((function(){var n;return new $e((function(){n=e()}),(function(){return this.yieldReturn(n)}),(function(){null!=n&&(t(n),n=null)}))}))},tt.generate=function(e,t){return null!=t?tt.generate(e).take(t):(e=Ye(e),new tt((function(){return new $e(Fe.Blank,(function(){return this.yieldReturn(e())}),Fe.Blank)})))},tt.toInfinity=function(e,t){return null==e&&(e=0),null==t&&(t=1),new tt((function(){var n;return new $e((function(){n=e-t}),(function(){return this.yieldReturn(n+=t)}),Fe.Blank)}))},tt.toNegativeInfinity=function(e,t){return null==e&&(e=0),null==t&&(t=1),new tt((function(){var n;return new $e((function(){n=e+t}),(function(){return this.yieldReturn(n-=t)}),Fe.Blank)}))},tt.unfold=function(e,t){return t=Ye(t),new tt((function(){var n,r=!0;return new $e(Fe.Blank,(function(){return r?(r=!1,n=e,this.yieldReturn(n)):(n=t(n),this.yieldReturn(n))}),Fe.Blank)}))},tt.defer=function(e){return new tt((function(){var t;return new $e((function(){t=tt.from(e()).getEnumerator()}),(function(){return t.moveNext()?this.yieldReturn(t.current()):this.yieldBreak()}),(function(){_e(t)}))}))},tt.prototype.traverseBreadthFirst=function(e,t){var n=this;return e=Ye(e),t=Ye(t),new tt((function(){var r,o=0,i=[];return new $e((function(){r=n.getEnumerator()}),(function(){for(;;){if(r.moveNext())return i.push(r.current()),this.yieldReturn(t(r.current(),o));const n=tt.from(i).selectMany((function(t){return e(t)}));if(!n.any())return!1;o++,i=[],_e(r),r=n.getEnumerator()}}),(function(){_e(r)}))}))},tt.prototype.traverseDepthFirst=function(e,t){var n=this;return e=Ye(e),t=Ye(t),new tt((function(){var r,o=[];return new $e((function(){r=n.getEnumerator()}),(function(){for(;;){if(r.moveNext()){const n=t(r.current(),o.length);return o.push(r),r=tt.from(e(r.current())).getEnumerator(),this.yieldReturn(n)}if(o.length<=0)return!1;_e(r),r=o.pop()}}),(function(){try{_e(r)}finally{tt.from(o).forEach((function(e){e.dispose()}))}}))}))},tt.prototype.flatten=function(){var e=this;return new tt((function(){var t,n=null;return new $e((function(){t=e.getEnumerator()}),(function(){for(;;){if(null!=n){if(n.moveNext())return this.yieldReturn(n.current());n=null}if(t.moveNext()){if(t.current()instanceof Array){_e(n),n=tt.from(t.current()).selectMany(Fe.Identity).flatten().getEnumerator();continue}return this.yieldReturn(t.current())}return!1}}),(function(){try{_e(t)}finally{_e(n)}}))}))},tt.prototype.pairwise=function(e){var t=this;return e=Ye(e),new tt((function(){var n;return new $e((function(){(n=t.getEnumerator()).moveNext()}),(function(){var t=n.current();return!!n.moveNext()&&this.yieldReturn(e(t,n.current()))}),(function(){_e(n)}))}))},tt.prototype.scan=function(e,t){var n;null==t?(t=Ye(e),n=!1):(t=Ye(t),n=!0);var r=this;return new tt((function(){var o,i,l=!0;return new $e((function(){o=r.getEnumerator()}),(function(){if(l){if(l=!1,n)return this.yieldReturn(i=e);if(o.moveNext())return this.yieldReturn(i=o.current())}return!!o.moveNext()&&this.yieldReturn(i=t(i,o.current()))}),(function(){_e(o)}))}))},tt.prototype.select=function(e){if((e=Ye(e)).length<=1)return new at(this,null,e);var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(e(n.current(),r++))}),(function(){_e(n)}))}))},tt.prototype.selectMany=function(e,t){var n=this;return e=Ye(e),null==t&&(t=function(e,t){return t}),t=Ye(t),new tt((function(){var r,o=void 0,i=0;return new $e((function(){r=n.getEnumerator()}),(function(){if(void 0===o&&!r.moveNext())return!1;do{if(null==o){const t=e(r.current(),i++);o=tt.from(t).getEnumerator()}if(o.moveNext())return this.yieldReturn(t(r.current(),o.current()));_e(o),o=null}while(r.moveNext());return!1}),(function(){try{_e(r)}finally{_e(o)}}))}))},tt.prototype.where=function(e){if((e=Ye(e)).length<=1)return new lt(this,e);var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){for(;n.moveNext();)if(e(n.current(),r++))return this.yieldReturn(n.current());return!1}),(function(){_e(n)}))}))},tt.prototype.choose=function(e){e=Ye(e);var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){for(;n.moveNext();){const t=e(n.current(),r++);if(null!=t)return this.yieldReturn(t)}return this.yieldBreak()}),(function(){_e(n)}))}))},tt.prototype.ofType=function(e){var t;switch(e){case Number:t=Ue;break;case String:t=Ge;break;case Boolean:t=Ve;break;case Function:t=Qe;break;default:t=null}return null===t?this.where((function(t){return t instanceof e})):this.where((function(e){return typeof e===t}))},tt.prototype.zip=function(){var e=arguments,t=Ye(arguments[arguments.length-1]),n=this;if(2==arguments.length){const e=arguments[0];return new tt((function(){var r,o,i=0;return new $e((function(){r=n.getEnumerator(),o=tt.from(e).getEnumerator()}),(function(){return!(!r.moveNext()||!o.moveNext())&&this.yieldReturn(t(r.current(),o.current(),i++))}),(function(){try{_e(r)}finally{_e(o)}}))}))}return new tt((function(){var r,o=0;return new $e((function(){var t=tt.make(n).concat(tt.from(e).takeExceptLast().select(tt.from)).select((function(e){return e.getEnumerator()})).toArray();r=tt.from(t)}),(function(){if(r.all((function(e){return e.moveNext()}))){const e=r.select((function(e){return e.current()})).toArray();return e.push(o++),this.yieldReturn(t.apply(null,e))}return this.yieldBreak()}),(function(){tt.from(r).forEach(_e)}))}))},tt.prototype.merge=function(){var e=arguments,t=this;return new tt((function(){var n,r=-1;return new $e((function(){n=tt.make(t).concat(tt.from(e).select(tt.from)).select((function(e){return e.getEnumerator()})).toArray()}),(function(){for(;n.length>0;){r=r>=n.length-1?0:r+1;const e=n[r];if(e.moveNext())return this.yieldReturn(e.current());e.dispose(),n.splice(r--,1)}return this.yieldBreak()}),(function(){tt.from(n).forEach(_e)}))}))},tt.prototype.join=function(e,t,n,r,o){t=Ye(t),n=Ye(n),r=Ye(r),o=Ye(o);var i=this;return new tt((function(){var l,a,s=null,u=0;return new $e((function(){l=i.getEnumerator(),a=tt.from(e).toLookup(n,Fe.Identity,o)}),(function(){for(;;){if(null!=s){let e=s[u++];if(void 0!==e)return this.yieldReturn(r(l.current(),e));e=null,u=0}if(!l.moveNext())return!1;{const e=t(l.current());s=a.get(e).toArray()}}}),(function(){_e(l)}))}))},tt.prototype.leftJoin=function(e,t,n,r,o){t=Ye(t),n=Ye(n),r=Ye(r),o=Ye(o);var i=this;return new tt((function(){var l,a,s=null,u=0;return new $e((function(){l=i.getEnumerator(),a=tt.from(e).toLookup(n,Fe.Identity,o)}),(function(){for(;;){if(null!=s){let e=s[u++];if(void 0!==e)return this.yieldReturn(r(l.current(),e));e=null,u=0}if(!l.moveNext())return!1;{const e=t(l.current());if(null==(s=a.get(e).toArray())||0==s.length)return this.yieldReturn(r(l.current(),null))}}}),(function(){_e(l)}))}))},tt.prototype.groupJoin=function(e,t,n,r,o){t=Ye(t),n=Ye(n),r=Ye(r),o=Ye(o);var i=this;return new tt((function(){var l=i.getEnumerator(),a=null;return new $e((function(){l=i.getEnumerator(),a=tt.from(e).toLookup(n,Fe.Identity,o)}),(function(){if(l.moveNext()){const e=a.get(t(l.current()));return this.yieldReturn(r(l.current(),e))}return!1}),(function(){_e(l)}))}))},tt.prototype.all=function(e){e=Ye(e);var t=!0;return this.forEach((function(n){if(!e(n))return t=!1,!1})),t},tt.prototype.any=function(e){e=Ye(e);var t=this.getEnumerator();try{if(0==arguments.length)return t.moveNext();for(;t.moveNext();)if(e(t.current()))return!0;return!1}finally{_e(t)}},tt.prototype.isEmpty=function(){return!this.any()},tt.prototype.concat=function(){var e=this;if(1==arguments.length){const t=arguments[0];return new tt((function(){var n,r;return new $e((function(){n=e.getEnumerator()}),(function(){if(null==r){if(n.moveNext())return this.yieldReturn(n.current());r=tt.from(t).getEnumerator()}return!!r.moveNext()&&this.yieldReturn(r.current())}),(function(){try{_e(n)}finally{_e(r)}}))}))}{const t=arguments;return new tt((function(){var n;return new $e((function(){n=tt.make(e).concat(tt.from(t).select(tt.from)).select((function(e){return e.getEnumerator()})).toArray()}),(function(){for(;n.length>0;){const e=n[0];if(e.moveNext())return this.yieldReturn(e.current());e.dispose(),n.splice(0,1)}return this.yieldBreak()}),(function(){tt.from(n).forEach(_e)}))}))}},tt.prototype.insert=function(e,t){var n=this;return new tt((function(){var r,o,i=0,l=!1;return new $e((function(){r=n.getEnumerator(),o=tt.from(t).getEnumerator()}),(function(){return i==e&&o.moveNext()?(l=!0,this.yieldReturn(o.current())):r.moveNext()?(i++,this.yieldReturn(r.current())):!(l||!o.moveNext())&&this.yieldReturn(o.current())}),(function(){try{_e(r)}finally{_e(o)}}))}))},tt.prototype.alternate=function(e){var t=this;return new tt((function(){var n,r,o,i;return new $e((function(){o=e instanceof Array||null!=e.getEnumerator?tt.from(tt.from(e).toArray()):tt.make(e),(r=t.getEnumerator()).moveNext()&&(n=r.current())}),(function(){for(;;){if(null!=i){if(i.moveNext())return this.yieldReturn(i.current());i=null}if(null!=n||!r.moveNext()){if(null!=n){const e=n;return n=null,this.yieldReturn(e)}return this.yieldBreak()}n=r.current(),i=o.getEnumerator()}}),(function(){try{_e(r)}finally{_e(i)}}))}))},tt.prototype.contains=function(e,t){t=Ye(t);var n=this.getEnumerator();try{for(;n.moveNext();)if(t(n.current())===e)return!0;return!1}finally{_e(n)}},tt.prototype.defaultIfEmpty=function(e){var t=this;return void 0===e&&(e=null),new tt((function(){var n,r=!0;return new $e((function(){n=t.getEnumerator()}),(function(){return n.moveNext()?(r=!1,this.yieldReturn(n.current())):!!r&&(r=!1,this.yieldReturn(e))}),(function(){_e(n)}))}))},tt.prototype.distinct=function(e){return this.except(tt.empty(),e)},tt.prototype.distinctUntilChanged=function(e){e=Ye(e);var t=this;return new tt((function(){var n,r;return new $e((function(){n=t.getEnumerator()}),(function(){for(;n.moveNext();){const t=e(n.current());if(r!==t)return r=t,this.yieldReturn(n.current())}return this.yieldBreak()}),(function(){_e(n)}))}))},tt.prototype.except=function(e,t){t=Ye(t);var n=this;return new tt((function(){var r,o;return new $e((function(){r=n.getEnumerator(),o=new st(t),tt.from(e).forEach((function(e){o.add(e)}))}),(function(){for(;r.moveNext();){const e=r.current();if(!o.contains(e))return o.add(e),this.yieldReturn(e)}return!1}),(function(){_e(r)}))}))},tt.prototype.intersect=function(e,t){t=Ye(t);var n=this;return new tt((function(){var r,o,i;return new $e((function(){r=n.getEnumerator(),o=new st(t),tt.from(e).forEach((function(e){o.add(e)})),i=new st(t)}),(function(){for(;r.moveNext();){const e=r.current();if(!i.contains(e)&&o.contains(e))return i.add(e),this.yieldReturn(e)}return!1}),(function(){_e(r)}))}))},tt.prototype.sequenceEqual=function(e,t){t=Ye(t);var n=this.getEnumerator();try{const r=tt.from(e).getEnumerator();try{for(;n.moveNext();)if(!r.moveNext()||t(n.current())!==t(r.current()))return!1;return!r.moveNext()}finally{_e(r)}}finally{_e(n)}},tt.prototype.union=function(e,t){t=Ye(t);var n=this;return new tt((function(){var r,o,i;return new $e((function(){r=n.getEnumerator(),i=new st(t)}),(function(){var t;if(void 0===o){for(;r.moveNext();)if(t=r.current(),!i.contains(t))return i.add(t),this.yieldReturn(t);o=tt.from(e).getEnumerator()}for(;o.moveNext();)if(t=o.current(),!i.contains(t))return i.add(t),this.yieldReturn(t);return!1}),(function(){try{_e(r)}finally{_e(o)}}))}))},tt.prototype.orderBy=function(e,t){return new nt(this,e,t,!1)},tt.prototype.orderByDescending=function(e,t){return new nt(this,e,t,!0)},tt.prototype.reverse=function(){var e=this;return new tt((function(){var t,n;return new $e((function(){t=e.toArray(),n=t.length}),(function(){return n>0&&this.yieldReturn(t[--n])}),Fe.Blank)}))},tt.prototype.shuffle=function(){var e=this;return new tt((function(){var t;return new $e((function(){t=e.toArray()}),(function(){if(t.length>0){const e=Math.floor(Math.random()*t.length);return this.yieldReturn(t.splice(e,1)[0])}return!1}),Fe.Blank)}))},tt.prototype.weightedSample=function(e){e=Ye(e);var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.choose((function(t){var n=e(t);return n<=0?null:{value:t,bound:r+=n}})).toArray()}),(function(){if(n.length>0){const e=Math.floor(Math.random()*r)+1;let t=-1,o=n.length;for(;o-t>1;){const r=Math.floor((t+o)/2);n[r].bound>=e?o=r:t=r}return this.yieldReturn(n[o].value)}return this.yieldBreak()}),Fe.Blank)}))},tt.prototype.groupBy=function(e,t,n,r){var o=this;return e=Ye(e),t=Ye(t),null!=n&&(n=Ye(n)),r=Ye(r),new tt((function(){var i;return new $e((function(){i=o.toLookup(e,t,r).toEnumerable().getEnumerator()}),(function(){for(;i.moveNext();)return null==n?this.yieldReturn(i.current()):this.yieldReturn(n(i.current().key(),i.current()));return!1}),(function(){_e(i)}))}))},tt.prototype.partitionBy=function(e,t,n,r){var o,i=this;return e=Ye(e),t=Ye(t),r=Ye(r),null==n?(o=!1,n=function(e,t){return new ct(e,t)}):(o=!0,n=Ye(n)),new tt((function(){var l,a,s,u=[];return new $e((function(){(l=i.getEnumerator()).moveNext()&&(a=e(l.current()),s=r(a),u.push(t(l.current())))}),(function(){for(var i;1==(i=l.moveNext())&&s===r(e(l.current()));)u.push(t(l.current()));if(u.length>0){const c=n(a,o?tt.from(u):u);return i?(a=e(l.current()),s=r(a),u=[t(l.current())]):u=[],this.yieldReturn(c)}return!1}),(function(){_e(l)}))}))},tt.prototype.buffer=function(e){var t=this;return new tt((function(){var n;return new $e((function(){n=t.getEnumerator()}),(function(){for(var t=[],r=0;n.moveNext();)if(t.push(n.current()),++r>=e)return this.yieldReturn(t);return t.length>0&&this.yieldReturn(t)}),(function(){_e(n)}))}))},tt.prototype.aggregate=function(e,t,n){return(n=Ye(n))(this.scan(e,t,n).last())},tt.prototype.average=function(e){e=Ye(e);var t=0,n=0;return this.forEach((function(r){t+=e(r),++n})),t/n},tt.prototype.count=function(e){e=null==e?Fe.True:Ye(e);var t=0;return this.forEach((function(n,r){e(n,r)&&++t})),t},tt.prototype.max=function(e){return null==e&&(e=Fe.Identity),this.select(e).aggregate((function(e,t){return e>t?e:t}))},tt.prototype.min=function(e){return null==e&&(e=Fe.Identity),this.select(e).aggregate((function(e,t){return e<t?e:t}))},tt.prototype.maxBy=function(e){return e=Ye(e),this.aggregate((function(t,n){return e(t)>e(n)?t:n}))},tt.prototype.minBy=function(e){return e=Ye(e),this.aggregate((function(t,n){return e(t)<e(n)?t:n}))},tt.prototype.sum=function(e){return null==e&&(e=Fe.Identity),this.select(e).aggregate(0,(function(e,t){return e+t}))},tt.prototype.elementAt=function(e){var t,n=!1;if(this.forEach((function(r,o){if(o==e)return t=r,n=!0,!1})),!n)throw new Error("index is less than 0 or greater than or equal to the number of elements in source.");return t},tt.prototype.elementAtOrDefault=function(e,t){var n;void 0===t&&(t=null);var r=!1;return this.forEach((function(t,o){if(o==e)return n=t,r=!0,!1})),r?n:t},tt.prototype.first=function(e){if(null!=e)return this.where(e).first();var t,n=!1;if(this.forEach((function(e){return t=e,n=!0,!1})),!n)throw new Error("first:No element satisfies the condition.");return t},tt.prototype.firstOrDefault=function(e,t){if(void 0!==e){if(typeof e===Qe||typeof Ye(e)===Qe)return this.where(e).firstOrDefault(void 0,t);t=e}var n,r=!1;return this.forEach((function(e){return n=e,r=!0,!1})),r?n:t},tt.prototype.last=function(e){if(null!=e)return this.where(e).last();var t,n=!1;if(this.forEach((function(e){n=!0,t=e})),!n)throw new Error("last:No element satisfies the condition.");return t},tt.prototype.lastOrDefault=function(e,t){if(void 0!==e){if(typeof e===Qe||typeof Ye(e)===Qe)return this.where(e).lastOrDefault(void 0,t);t=e}var n,r=!1;return this.forEach((function(e){r=!0,n=e})),r?n:t},tt.prototype.single=function(e){if(null!=e)return this.where(e).single();var t,n=!1;if(this.forEach((function(e){if(n)throw new Error("single:sequence contains more than one element.");n=!0,t=e})),!n)throw new Error("single:No element satisfies the condition.");return t},tt.prototype.singleOrDefault=function(e,t){if(void 0===t&&(t=null),null!=e)return this.where(e).singleOrDefault(null,t);var n,r=!1;return this.forEach((function(e){if(r)throw new Error("single:sequence contains more than one element.");r=!0,n=e})),r?n:t},tt.prototype.skip=function(e){var t=this;return new tt((function(){var n,r=0;return new $e((function(){for(n=t.getEnumerator();r++<e&&n.moveNext(););}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){_e(n)}))}))},tt.prototype.skipWhile=function(e){e=Ye(e);var t=this;return new tt((function(){var n,r=0,o=!1;return new $e((function(){n=t.getEnumerator()}),(function(){for(;!o;){if(!n.moveNext())return!1;if(!e(n.current(),r++))return o=!0,this.yieldReturn(n.current())}return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){_e(n)}))}))},tt.prototype.take=function(e){var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){return!!(r++<e&&n.moveNext())&&this.yieldReturn(n.current())}),(function(){_e(n)}))}))},tt.prototype.takeWhile=function(e){e=Ye(e);var t=this;return new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){return!(!n.moveNext()||!e(n.current(),r++))&&this.yieldReturn(n.current())}),(function(){_e(n)}))}))},tt.prototype.takeExceptLast=function(e){null==e&&(e=1);var t=this;return new tt((function(){if(e<=0)return t.getEnumerator();var n,r=[];return new $e((function(){n=t.getEnumerator()}),(function(){for(;n.moveNext();){if(r.length==e)return r.push(n.current()),this.yieldReturn(r.shift());r.push(n.current())}return!1}),(function(){_e(n)}))}))},tt.prototype.takeFromLast=function(e){if(e<=0||null==e)return tt.empty();var t=this;return new tt((function(){var n,r,o=[];return new $e((function(){n=t.getEnumerator()}),(function(){for(;n.moveNext();)o.length==e&&o.shift(),o.push(n.current());return null==r&&(r=tt.from(o).getEnumerator()),!!r.moveNext()&&this.yieldReturn(r.current())}),(function(){_e(r)}))}))},tt.prototype.indexOf=function(e){var t=null;return typeof e===Qe?this.forEach((function(n,r){if(e(n,r))return t=r,!1})):this.forEach((function(n,r){if(n===e)return t=r,!1})),null!==t?t:-1},tt.prototype.lastIndexOf=function(e){var t=-1;return typeof e===Qe?this.forEach((function(n,r){e(n,r)&&(t=r)})):this.forEach((function(n,r){n===e&&(t=r)})),t},tt.prototype.cast=function(){return this},tt.prototype.asEnumerable=function(){return tt.from(this)},tt.prototype.toArray=function(){var e=[];return this.forEach((function(t){e.push(t)})),e},tt.prototype.toLookup=function(e,t,n){e=Ye(e),t=Ye(t),n=Ye(n);var r=new st(n);return this.forEach((function(n){var o=e(n),i=t(n),l=r.get(o);void 0!==l?l.push(i):r.add(o,[i])})),new ut(r)},tt.prototype.toObject=function(e,t){e=Ye(e),t=Ye(t);var n={};return this.forEach((function(r){n[e(r)]=t(r)})),n},tt.prototype.toDictionary=function(e,t,n){e=Ye(e),t=Ye(t),n=Ye(n);var r=new st(n);return this.forEach((function(n){r.add(e(n),t(n))})),r},tt.prototype.toJSONString=function(e,t){if(typeof JSON===Ze||null==JSON.stringify)throw new Error("toJSONString can't find JSON.stringify. This works native JSON support Browser or include json2.js");return JSON.stringify(this.toArray(),e,t)},tt.prototype.toJoinedString=function(e,t){return null==e&&(e=""),null==t&&(t=Fe.Identity),this.select(t).toArray().join(e)},tt.prototype.doAction=function(e){var t=this;return e=Ye(e),new tt((function(){var n,r=0;return new $e((function(){n=t.getEnumerator()}),(function(){return!!n.moveNext()&&(e(n.current(),r++),this.yieldReturn(n.current()))}),(function(){_e(n)}))}))},tt.prototype.forEach=function(e){e=Ye(e);var t=0,n=this.getEnumerator();try{for(;n.moveNext()&&!1!==e(n.current(),t++););}finally{_e(n)}},tt.prototype.force=function(){var e=this.getEnumerator();try{for(;e.moveNext(););}finally{_e(e)}},tt.prototype.letBind=function(e){e=Ye(e);var t=this;return new tt((function(){var n;return new $e((function(){n=tt.from(e(t)).getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){_e(n)}))}))},tt.prototype.share=function(){var e,t=this,n=!1;return new ot((function(){return new $e((function(){null==e&&(e=t.getEnumerator())}),(function(){if(n)throw new Error("enumerator is disposed");return!!e.moveNext()&&this.yieldReturn(e.current())}),Fe.Blank)}),(function(){n=!0,_e(e)}))},tt.prototype.memoize=function(){var e,t,n=this,r=!1;return new ot((function(){var o=-1;return new $e((function(){null==t&&(t=n.getEnumerator(),e=[])}),(function(){if(r)throw new Error("enumerator is disposed");return o++,e.length<=o?!!t.moveNext()&&this.yieldReturn(e[o]=t.current()):this.yieldReturn(e[o])}),Fe.Blank)}),(function(){r=!0,_e(t),e=null}))},He()&&(tt.prototype[Symbol.iterator]=function(){return{enumerator:this.getEnumerator(),next:function(){return this.enumerator.moveNext()?{done:!1,value:this.enumerator.current()}:{done:!0}}}}),tt.prototype.catchError=function(e){e=Ye(e);var t=this;return new tt((function(){var n;return new $e((function(){n=t.getEnumerator()}),(function(){try{return!!n.moveNext()&&this.yieldReturn(n.current())}catch(t){return e(t),!1}}),(function(){_e(n)}))}))},tt.prototype.finallyAction=function(e){e=Ye(e);var t=this;return new tt((function(){var n;return new $e((function(){n=t.getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){try{_e(n)}finally{e()}}))}))},tt.prototype.log=function(e){return e=Ye(e),this.doAction((function(e){}))},tt.prototype.trace=function(e,t){return null==e&&(e="Trace"),t=Ye(t),this.doAction((function(e){}))};var nt=function(e,t,n,r,o){this.source=e,this.keySelector=Ye(t),this.descending=r,this.parent=o,n&&(this.comparer=Ye(n))};nt.prototype=new tt,nt.prototype.createOrderedEnumerable=function(e,t,n){return new nt(this.source,e,t,n,this)},nt.prototype.thenBy=function(e,t){return this.createOrderedEnumerable(e,t,!1)},nt.prototype.thenByDescending=function(e,t){return this.createOrderedEnumerable(e,t,!0)},nt.prototype.getEnumerator=function(){var e,t,n=this,r=0;return new $e((function(){e=[],t=[],n.source.forEach((function(n,r){e.push(n),t.push(r)}));var r=rt.create(n,null);r.GenerateKeys(e),t.sort((function(e,t){return r.compare(e,t)}))}),(function(){return r<t.length&&this.yieldReturn(e[t[r++]])}),Fe.Blank)};var rt=function(e,t,n,r){this.keySelector=e,this.descending=n,this.child=r,this.comparer=t,this.keys=null};rt.create=function(e,t){var n=new rt(e.keySelector,e.comparer,e.descending,t);return null!=e.parent?rt.create(e.parent,n):n},rt.prototype.GenerateKeys=function(e){var t=e.length,n=this.keySelector,r=new Array(t);for(let o=0;o<t;o++)r[o]=n(e[o]);this.keys=r,null!=this.child&&this.child.GenerateKeys(e)},rt.prototype.compare=function(e,t){var n=this.comparer?this.comparer(this.keys[e],this.keys[t]):qe(this.keys[e],this.keys[t]);return 0==n?null!=this.child?this.child.compare(e,t):qe(e,t):this.descending?-n:n};var ot=function(e,t){this.dispose=t,tt.call(this,e)};ot.prototype=new tt;var it=function(e){this.getSource=function(){return e}};it.prototype=new tt,it.prototype.any=function(e){return null==e?this.getSource().length>0:tt.prototype.any.apply(this,arguments)},it.prototype.count=function(e){return null==e?this.getSource().length:tt.prototype.count.apply(this,arguments)},it.prototype.elementAt=function(e){var t=this.getSource();return 0<=e&&e<t.length?t[e]:tt.prototype.elementAt.apply(this,arguments)},it.prototype.elementAtOrDefault=function(e,t){void 0===t&&(t=null);var n=this.getSource();return 0<=e&&e<n.length?n[e]:t},it.prototype.first=function(e){var t=this.getSource();return null==e&&t.length>0?t[0]:tt.prototype.first.apply(this,arguments)},it.prototype.firstOrDefault=function(e,t){if(void 0!==e)return tt.prototype.firstOrDefault.apply(this,arguments);t=e;var n=this.getSource();return n.length>0?n[0]:t},it.prototype.last=function(e){var t=this.getSource();return null==e&&t.length>0?t[t.length-1]:tt.prototype.last.apply(this,arguments)},it.prototype.lastOrDefault=function(e,t){if(void 0!==e)return tt.prototype.lastOrDefault.apply(this,arguments);t=e;var n=this.getSource();return n.length>0?n[n.length-1]:t},it.prototype.skip=function(e){var t=this.getSource();return new tt((function(){var n;return new $e((function(){n=e<0?0:e}),(function(){return n<t.length&&this.yieldReturn(t[n++])}),Fe.Blank)}))},it.prototype.takeExceptLast=function(e){return null==e&&(e=1),this.take(this.getSource().length-e)},it.prototype.takeFromLast=function(e){return this.skip(this.getSource().length-e)},it.prototype.reverse=function(){var e=this.getSource();return new tt((function(){var t;return new $e((function(){t=e.length}),(function(){return t>0&&this.yieldReturn(e[--t])}),Fe.Blank)}))},it.prototype.sequenceEqual=function(e,t){return(!(e instanceof it||e instanceof Array)||null!=t||tt.from(e).count()==this.count())&&tt.prototype.sequenceEqual.apply(this,arguments)},it.prototype.toJoinedString=function(e,t){var n=this.getSource();return null==t&&n instanceof Array?(null==e&&(e=""),n.join(e)):tt.prototype.toJoinedString.apply(this,arguments)},it.prototype.getEnumerator=function(){var e=this.getSource(),t=-1;return{current:function(){return e[t]},moveNext:function(){return++t<e.length},dispose:Fe.Blank}};var lt=function(e,t){this.prevSource=e,this.prevPredicate=t};lt.prototype=new tt,lt.prototype.where=function(e){if((e=Ye(e)).length<=1){const t=this.prevPredicate,n=function(n){return t(n)&&e(n)};return new lt(this.prevSource,n)}return tt.prototype.where.call(this,e)},lt.prototype.select=function(e){return(e=Ye(e)).length<=1?new at(this.prevSource,this.prevPredicate,e):tt.prototype.select.call(this,e)},lt.prototype.getEnumerator=function(){var e,t=this.prevPredicate,n=this.prevSource;return new $e((function(){e=n.getEnumerator()}),(function(){for(;e.moveNext();)if(t(e.current()))return this.yieldReturn(e.current());return!1}),(function(){_e(e)}))};var at=function(e,t,n){this.prevSource=e,this.prevPredicate=t,this.prevSelector=n};at.prototype=new tt,at.prototype.where=function(e){return(e=Ye(e)).length<=1?new lt(this,e):tt.prototype.where.call(this,e)},at.prototype.select=function(e){if((e=Ye(e)).length<=1){const t=this.prevSelector,n=function(n){return e(t(n))};return new at(this.prevSource,this.prevPredicate,n)}return tt.prototype.select.call(this,e)},at.prototype.getEnumerator=function(){var e,t=this.prevPredicate,n=this.prevSelector,r=this.prevSource;return new $e((function(){e=r.getEnumerator()}),(function(){for(;e.moveNext();)if(null==t||t(e.current()))return this.yieldReturn(n(e.current()));return!1}),(function(){_e(e)}))};var st=function(){var e=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t=function(e){return null===e?"null":void 0===e?"undefined":typeof e.toString===Qe?e.toString():Object.prototype.toString.call(e)},n=function(e,t){this.key=e,this.value=t,this.prev=null,this.next=null},r=function(){this.first=null,this.last=null};r.prototype={addLast:function(e){null!=this.last?(this.last.next=e,e.prev=this.last,this.last=e):this.first=this.last=e},replace:function(e,t){null!=e.prev?(e.prev.next=t,t.prev=e.prev):this.first=t,null!=e.next?(e.next.prev=t,t.next=e.next):this.last=t},remove:function(e){null!=e.prev?e.prev.next=e.next:this.first=e.next,null!=e.next?e.next.prev=e.prev:this.last=e.prev}};var o=function(e){this.countField=0,this.entryList=new r,this.buckets={},this.compareSelector=null==e?Fe.Identity:e};return o.prototype={add:function(r,o){var i=this.compareSelector(r),l=t(i),a=new n(r,o);if(e(this.buckets,l)){const e=this.buckets[l];for(let t=0;t<e.length;t++)if(this.compareSelector(e[t].key)===i)return this.entryList.replace(e[t],a),void(e[t]=a);e.push(a)}else this.buckets[l]=[a];this.countField++,this.entryList.addLast(a)},get:function(n){var r=this.compareSelector(n),o=t(r);if(e(this.buckets,o)){var i=this.buckets[o];for(let e=0;e<i.length;e++){const t=i[e];if(this.compareSelector(t.key)===r)return t.value}}},set:function(r,o){var i=this.compareSelector(r),l=t(i);if(e(this.buckets,l)){const e=this.buckets[l];for(let t=0;t<e.length;t++)if(this.compareSelector(e[t].key)===i){const i=new n(r,o);return this.entryList.replace(e[t],i),e[t]=i,!0}}return!1},contains:function(n){var r=this.compareSelector(n),o=t(r);if(!e(this.buckets,o))return!1;var i=this.buckets[o];for(let e=0;e<i.length;e++)if(this.compareSelector(i[e].key)===r)return!0;return!1},clear:function(){this.countField=0,this.buckets={},this.entryList=new r},remove:function(n){var r=this.compareSelector(n),o=t(r);if(e(this.buckets,o)){var i=this.buckets[o];for(let e=0;e<i.length;e++)if(this.compareSelector(i[e].key)===r)return this.entryList.remove(i[e]),i.splice(e,1),0==i.length&&delete this.buckets[o],void this.countField--}},count:function(){return this.countField},toEnumerable:function(){var e=this;return new tt((function(){var t;return new $e((function(){t=e.entryList.first}),(function(){if(null!=t){const e={key:t.key,value:t.value};return t=t.next,this.yieldReturn(e)}return!1}),Fe.Blank)}))}},o}(),ut=function(e){this.count=function(){return e.count()},this.get=function(t){return tt.from(e.get(t))},this.contains=function(t){return e.contains(t)},this.toEnumerable=function(){return e.toEnumerable().select((function(e){return new ct(e.key,e.value)}))}},ct=function(e,t){this.key=function(){return e},it.call(this,t)};ct.prototype=new it;const ft={readonly:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},dataValue:{type:Array||Number,default:!0}},pt=n.defineComponent({name:"NvStructureTypeSelect",components:{},emits:["update","on-change"],props:ft,setup:(e,t)=>new ht(e,t)});class ht extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"selWidth",n.ref(100)),u(this,"StructureTypeSel",n.ref()),u(this,"TypeValue",n.ref([])),u(this,"StructureTypeDataAll",[]),u(this,"StructureTypeData",n.ref([])),u(this,"StructureTypeCheckData",n.ref([])),u(this,"searchView",n.ref(!1)),u(this,"searchValue",n.ref("")),u(this,"dataStructureApi",new i.DataStructureApi),u(this,"structrueTypeLevGroup",n.ref([])),u(this,"activeTypeItem",n.ref({})),u(this,"TypeTextValue",n.ref("")),u(this,"typeItemClick",((e,t)=>{if(e.level=t,1==t&&(this.activeTypeItem.value=e),this.structrueTypeLevGroup.value.find((e=>e.level==t))){let n=tt.from(this.structrueTypeLevGroup.value).indexOf((e=>e.level==t));this.structrueTypeLevGroup.value[n]=e,this.structrueTypeLevGroup.value.splice(n+1,this.structrueTypeLevGroup.value.length)}else this.structrueTypeLevGroup.value.push(e);n.nextTick((()=>{if(this.StructureTypeSel.value){let e=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(e)}})),this.TypeValue.value=[this.activeTypeItem.value.value].concat(this.structrueTypeLevGroup.value.map((e=>e.value))),this.props.multiple||(this.StructureTypeCheckData.value=[e],this.doSelectedAfterFun())})),u(this,"typeCheckFun",((e,t)=>{if(t)this.StructureTypeCheckData.value.push(e);else{let t=tt.from(this.StructureTypeCheckData.value).indexOf((t=>t.value==e.value));this.StructureTypeCheckData.value.splice(t,1)}this.doSelectedAfterFun()})),u(this,"removeStructureType",(e=>{this.changeTreeItem(this.StructureTypeData.value,e.value,"checked",!1);let t=tt.from(this.StructureTypeCheckData.value).indexOf((t=>t.value==e.value));this.StructureTypeCheckData.value.splice(t,1)})),u(this,"poptipVisChange",(()=>{n.nextTick((()=>{if(this.StructureTypeSel.value){let e=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(e)}}))})),u(this,"poptipHideFun",(()=>{this.searchValue.value&&0==this.searchTypeList.value.length&&(this.searchView.value=!1,this.searchValue.value="")})),u(this,"searchTypeList",n.ref([])),u(this,"searchTypeFun",(()=>{let e=this.StructureTypeDataAll.filter((e=>e.NodeName.indexOf(this.searchValue.value)>=0));this.searchTypeList.value=e.map((e=>(e.checked=!!this.StructureTypeCheckData.value.find((t=>t.value==e.Id)),e))),n.nextTick((()=>{if(this.StructureTypeSel.value){let e=this.StructureTypeSel.value.clientWidth;this.selWidth.value=parseFloat(e)+16}}))})),u(this,"toSelectSearchType",(e=>{this.TypeValue.value=e.parentPath.concat([e.Id]),this.StructureTypeCheckData.value=[{value:e.Id,label:e.NodeName,parentPath:e.parentPath}],this.doSelectedAfterFun(),this.structrueTypeLevGroup.value=[],this.loadTypeLevGroupData(this.StructureTypeData.value),this.poptipVisChange(),this.searchValue.value="",this.searchView.value=!1,this.searchTypeList.value=[]})),u(this,"toCheckSearchType",((e,t)=>{let n=tt.from(this.StructureTypeCheckData.value).indexOf((t=>t.value==e.value));t||n>=0?(this.StructureTypeCheckData.value.push({value:e.Id,label:e.NodeName,parentPath:e.parentPath}),this.changeTreeItem(this.StructureTypeData.value,e.Id,"checked",!0)):(this.StructureTypeCheckData.value.splice(n,1),this.changeTreeItem(this.StructureTypeData.value,e.Id,"checked",!1))})),u(this,"confirmSearchTypeData",(()=>{this.doSelectedAfterFun(),this.searchValue.value="",this.searchView.value=!1,this.structrueTypeLevGroup.value=[],this.searchTypeList.value=[],this.poptipVisChange()})),this.props=e,this.ctx=t,this.loadSelectData()}async loadSelectData(){let e=window.G_StructureTypeData;e&&0!=e.length||(e=this.utilities.parseApiResult(await this.dataStructureApi.getEntities((new r.QueryWrapper).select(["Id","PId","NodeName"]).orderBy(["OrderNo"]))),window.G_StructureTypeData=e),this.StructureTypeDataAll=e,this.StructureTypeData.value=this.formatToIViewCascaderData(e,0,"Id","NodeName"),this.props.multiple||this.loadTypeLevGroupData(this.StructureTypeData.value),n.watch((()=>this.props.dataValue),((e,t)=>{this.setStructureTypeCheckData(this.StructureTypeData.value),this.props.multiple||(this.structrueTypeLevGroup.value=[],this.loadTypeLevGroupData(this.StructureTypeData.value))}),{immediate:!0})}loadTypeLevGroupData(e){e.map((e=>{if(this.StructureTypeCheckData.value[0]){this.StructureTypeCheckData.value[0].parentPath.includes(e.value)&&this.structrueTypeLevGroup.value.push(e),e.children&&e.children.length>0&&this.loadTypeLevGroupData(e.children)}}))}doSelectedAfterFun(){this.props.multiple?this.ctx.emit("on-change",this.StructureTypeCheckData.value.map((e=>e.value))):this.ctx.emit("on-change",this.StructureTypeCheckData.value[0].value)}formatToIViewCascaderData(e,t=0,n,r,o=[]){let i=e.filter((e=>e.PId==t)),l=JSON.parse(JSON.stringify(o));return t>0&&l.push(t),i=i.map((t=>{let o={};o.value=t[n],o.label=t[r],o.parentPath=JSON.parse(JSON.stringify(l));let i=tt.from(this.StructureTypeDataAll).indexOf((e=>e.Id==o.value));return this.StructureTypeDataAll[i].parentPath=o.parentPath,o.level=o.parentPath.length+1,this.props.multiple?(o.checked=!!this.props.dataValue.find((e=>e==o.value)),o.checked&&this.StructureTypeCheckData.value.push(o)):this.props.dataValue==o.value&&(this.TypeValue.value=JSON.parse(JSON.stringify(l)).concat([o.value]),this.StructureTypeCheckData.value=[o]),e.filter((e=>e.PId==t.Id)).length>0?o.children=this.formatToIViewCascaderData(e,t.Id,n,r,l):o.children=[],o})),i}setStructureTypeCheckData(e){e.map((e=>{this.props.multiple?(e.checked=!!this.props.dataValue.find((t=>t==e.value)),e.checked&&this.StructureTypeCheckData.value.push(e)):this.props.dataValue==e.value&&(this.TypeValue.value=JSON.parse(JSON.stringify(e.parentPath)).concat([e.value]),this.StructureTypeCheckData.value=[e]),e.children&&e.children.length>0&&this.setStructureTypeCheckData(e.children)}))}changeTreeItem(e,t,n,r){e.map((e=>{e.value!=t?e.children&&e.children.length>0&&this.changeTreeItem(e.children,t,n,r):e[n]=r}))}}const dt={key:0},yt={key:0,ref:"StructureTypeSel",style:{height:"220px",display:"inline-block"}},vt={class:"nv-cascader-box nv-overflow-auto"},gt=["onClick"],mt={key:0,class:"nv-cascader-box nv-overflow-auto"},bt=["onClick"],At={key:1,ref:"StructureTypeSel",style:{display:"inline-block"}},kt={key:0,style:{padding:"5px 10px",color:"#c5c8ce","text-align":"center",width:"150px"}},wt={key:1},Nt={class:"nv-overflow-auto",style:{"max-height":"220px"}},Et=["onClick"],Ot={key:0,class:"nv-text-r",style:{"padding-right":"10px"}};const It=h(pt,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Tag"),s=n.resolveComponent("Checkbox"),u=n.resolveComponent("Icon"),c=n.resolveComponent("Button"),f=n.resolveComponent("Poptip");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(f,{placement:"bottom-start","transfer-class-name":"nvstructuretype-sel-box",width:e.selWidth,transfer:"",disabled:e.readonly,onOnPopperShow:t[6]||(t[6]=t=>e.poptipVisChange()),onOnPopperHide:e.poptipHideFun},{content:n.withCtx((()=>[e.searchValue?(n.openBlock(),n.createElementBlock("div",At,[0==e.searchTypeList.length?(n.openBlock(),n.createElementBlock("div",kt,"无匹配数据")):(n.openBlock(),n.createElementBlock("div",wt,[n.createElementVNode("div",Nt,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.searchTypeList,((r,o)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-cascader-item nv-c-p",onClick:t=>e.multiple?null:e.toSelectSearchType(r)},[e.multiple?(n.openBlock(),n.createBlock(s,{key:0,modelValue:r.checked,"onUpdate:modelValue":e=>r.checked=e,onClick:t[5]||(t[5]=n.withModifiers((()=>{}),["stop"])),onOnChange:t=>e.toCheckSearchType(r,t)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.NodeName),1)],8,Et)))),256))]),e.multiple?(n.openBlock(),n.createElementBlock("div",Ot,[n.createVNode(c,{type:"primary",size:"small",onClick:e.confirmSearchTypeData},{default:n.withCtx((()=>[n.createTextVNode("确认")])),_:1},8,["onClick"])])):n.createCommentVNode("",!0)]))],512)):(n.openBlock(),n.createElementBlock("div",yt,[n.createElementVNode("div",vt,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.StructureTypeData,(r=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["nv-c-p nv-cascader-item",{active:e.TypeValue.includes(r.value)}]),key:r.value,onClick:t=>e.typeItemClick(r,1)},[e.multiple?(n.openBlock(),n.createBlock(s,{key:0,modelValue:r.checked,"onUpdate:modelValue":e=>r.checked=e,onClick:t[3]||(t[3]=n.withModifiers((()=>{}),["stop"])),onOnChange:t=>e.typeCheckFun(r,t)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.label)+" ",1),r.children&&r.children.length>0?(n.openBlock(),n.createBlock(u,{key:1,class:"arrow-right",type:"ios-arrow-forward"})):n.createCommentVNode("",!0)],10,gt)))),128))]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.structrueTypeLevGroup,(r=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[r&&r.children&&r.children.length>0?(n.openBlock(),n.createElementBlock("div",mt,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.children,(o=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["nv-c-p nv-cascader-item",{active:e.TypeValue.includes(o.value)}]),key:o.value,onClick:t=>e.typeItemClick(o,r.level+1)},[e.multiple?(n.openBlock(),n.createBlock(s,{key:0,modelValue:o.checked,"onUpdate:modelValue":e=>o.checked=e,onClick:t[4]||(t[4]=n.withModifiers((()=>{}),["stop"])),onOnChange:t=>e.typeCheckFun(o,t)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(o.label)+" ",1),o.children&&o.children.length>0?(n.openBlock(),n.createBlock(u,{key:1,class:"arrow-right",type:"ios-arrow-forward"})):n.createCommentVNode("",!0)],10,bt)))),128))])):n.createCommentVNode("",!0)],64)))),256))],512))])),default:n.withCtx((()=>[n.createElementVNode("div",{class:"nv-c-p structuretype-sel-box",onClick:t[2]||(t[2]=t=>e.readonly?null:e.searchView=!0)},[0!=e.StructureTypeCheckData.length||e.searchValue?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.multiple?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.StructureTypeCheckData,((t,r)=>n.withDirectives((n.openBlock(),n.createBlock(a,{style:{position:"relative","z-index":"5"},closable:!e.readonly,key:r,onOnClose:n=>e.removeStructureType(t)},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(t.label),1)])),_:2},1032,["closable","onOnClose"])),[[n.vShow,!e.searchValue]]))),128)):(n.openBlock(),n.createElementBlock("div",{key:1,style:n.normalizeStyle({visibility:e.searchValue?"hidden":"visible"}),class:"nv-text-nowrap"},n.toDisplayString(e.StructureTypeCheckData[0]?e.StructureTypeCheckData[0].label:""),5))],64)):(n.openBlock(),n.createElementBlock("div",dt,"选择构件类别")),e.searchView?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:2,class:"nv-pos-a searchinput",style:{top:"0",left:"0",width:"100%"},"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchValue=t),onInput:t[1]||(t[1]=(...t)=>e.searchTypeFun&&e.searchTypeFun(...t))},null,544)),[[n.vModelText,e.searchValue]]):n.createCommentVNode("",!0)])])),_:1},8,["width","disabled","onOnPopperHide"])])}],["__scopeId","data-v-ef373745"]]),xt={readonly:{type:Boolean,default:!1},selType:{type:Number,default:1},multiple:{type:Boolean,default:!0},businessId:{type:Array||Number,default:0},dataValue:{type:Array||Number,default:!0}},Tt=n.defineComponent({name:"NvStructureSelect",components:{},emits:["update","on-change"],props:xt,setup:(e,t)=>new St(e,t)});class St extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"TypeValue",n.ref([])),u(this,"StructureTypeData",n.ref([])),u(this,"dataStructureApi",new i.DataStructureApi),u(this,"structureInstanceApi",new i.StructureInstanceApi),u(this,"UnitValue",n.ref()),u(this,"TypeGroupData",n.ref([])),u(this,"activeNodeType",n.ref("")),u(this,"originalTypeGroupData",n.ref([])),u(this,"searchInfo",n.ref("")),u(this,"searchInputRef",n.ref(null)),u(this,"poptipVisible",n.ref(!1)),u(this,"unitSelectChange",(()=>{this.doSelectedAfterFun()})),u(this,"doSearch",(()=>{var e,t,n,r,o;const i=null==(e=this.searchInfo.value)?void 0:e.trim();if(!i)return this.TypeGroupData.value=JSON.parse(JSON.stringify(this.originalTypeGroupData.value)),this.activeNodeType.value=null==(t=this.TypeGroupData.value[0])?void 0:t.NodeTypeName,this.unitData.value=(null==(n=this.TypeGroupData.value[0])?void 0:n.UnitData)||[],void this.NodeTypeSelect();this.TypeGroupData.value=this.originalTypeGroupData.value.map((e=>{const t=e.UnitData.filter((e=>{var t;return null==(t=e.NodeName)?void 0:t.includes(i)}));return{...e,UnitData:t}})).filter((e=>e.UnitData.length>0)),this.activeNodeType.value=null==(r=this.TypeGroupData.value[0])?void 0:r.NodeTypeName,this.unitData.value=(null==(o=this.TypeGroupData.value[0])?void 0:o.UnitData)||[],this.NodeTypeSelect()})),u(this,"clearSearchInfo",(async()=>{this.searchInfo.value="",this.doSearch()})),u(this,"activeUnit",n.ref(0)),u(this,"activeUnitName",""),u(this,"unitData",n.ref([])),u(this,"NodeTypeSelect",(()=>{if(3==this.props.selType&&0==this.TypeGroupData.value.length)return this.unitData.value=[],this.TypeGroupData.value=[],void(this.StructureInstanceData.value=[]);this.unitData.value=this.TypeGroupData.value.find((e=>e.NodeTypeName==this.activeNodeType.value)).UnitData,1==this.props.selType&&this.props.multiple||this.unitData.value[0]&&(this.activeUnit.value=this.unitData.value[0].Id,this.activeUnitName=this.unitData.value[0].NodeName,this.unitSelected(this.activeUnit.value))})),u(this,"StructureInstanceLoading",n.ref(!1)),u(this,"StructureInstanceData",n.ref([])),u(this,"unitSelected",(async e=>{this.activeUnitName=this.unitData.value.find((t=>t.Id==e)).NodeName,this.StructureInstanceLoading.value=!0,this.StructureInstanceData.value=[];let t=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","PlatformId","CreateUnitId"]).eq("PId",e)));this.StructureInstanceData.value=t.map((e=>(e.title=e.NodeName,e.UnitName=this.activeUnitName,e.loading=!1,e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children=[],e))),this.StructureInstanceLoading.value=!1})),u(this,"loadStructureInstance",(async(e,t)=>{let n=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","PlatformId","CreateUnitId"]).eq("PId",e.Id)));if(0==n.length)return e.children=void 0,void t([]);n=n.map((e=>(e.UnitName=this.activeUnitName,e.title=e.NodeName,e.loading=!1,e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children=[],e))),t(n)})),u(this,"StructureInstanceCheckData",n.ref([])),u(this,"StructureInstanceCheckFun",((e,t)=>{t.checked?this.StructureInstanceCheckData.value.push(t):this.removeStructureInstance(t),this.doSelectedAfterFun()})),u(this,"StructureInstanceSelectFun",((e,t)=>{this.props.multiple||(this.StructureInstanceCheckData.value=[t],this.doSelectedAfterFun())})),u(this,"removeStructureInstance",(e=>{e.checked=!1;let t=tt.from(this.StructureInstanceCheckData.value).indexOf((t=>t.Id==e.Id));this.StructureInstanceCheckData.value.splice(t,1),this.treeChStateChange(this.StructureInstanceData.value),this.doSelectedAfterFun()})),this.props=e,this.ctx=t,this.loadNodeTypeAndUnitData()}async loadNodeTypeAndUnitData(){var e;let t=(new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","RootId","PlatformId","CreateUnitId"]).eq("PId",0).eq("PlatformId",930003);this.props.businessId&&("number"==typeof this.props.businessId?t.eq("CreateUnitId",this.props.businessId):Array.isArray(this.props.businessId)&&t.in("CreateUnitId",this.props.businessId));let n=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(t));if(this.TypeGroupData.value=tt.from(n).groupBy((e=>e.NodeTypeName)).select((e=>({NodeTypeName:e.key(),UnitData:e.getSource()}))).toArray(),1!=this.props.selType){if(3==this.props.selType&&(this.originalTypeGroupData.value=JSON.parse(JSON.stringify(this.TypeGroupData.value))),this.TypeGroupData.value[0]&&(this.activeNodeType.value=this.TypeGroupData.value[0].NodeTypeName,this.NodeTypeSelect(),this.props.dataValue)){let t="object"==typeof this.props.dataValue?this.props.dataValue:[this.props.dataValue];this.StructureInstanceCheckData.value=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","RootId","PlatformId"]).in("Id",t).eq("PlatformId",null==(e=this.storageInfo.getCurrentPlatform())?void 0:e.Id))),this.StructureInstanceCheckData.value=this.StructureInstanceCheckData.value.map((e=>{let t=this.unitData.value.find((t=>t.Id==e.RootId));return e.UnitName=t?t.NodeName:"",e}))}}else this.UnitValue.value=this.props.dataValue}treeChStateChange(e){e.map((e=>{e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children&&e.children.length>0&&this.treeChStateChange(e.children)}))}doSelectedAfterFun(){if(1==this.props.selType)try{let e=[];this.TypeGroupData.value.map((t=>{t.UnitData.map((t=>{Array.isArray(this.UnitValue.value)?this.UnitValue.value.includes(t.Id)&&e.push(t):this.UnitValue.value==t.Id&&(e=[t])}))})),this.ctx.emit("on-change",{Ids:this.UnitValue.value,data:e})}catch(e){this.ctx.emit("on-change",{Ids:this.UnitValue.value,data:[]})}else this.ctx.emit("on-change",{Ids:this.StructureInstanceCheckData.value.map((e=>e.Id)),data:this.StructureInstanceCheckData.value})}}const Ct={key:1},Bt={class:"nv-pos-r"},Rt={class:"nv-c-p structure-sel-box"},jt={key:0},Mt={key:0},Dt={key:1},Pt={style:{"margin-bottom":"10px"}},Lt={class:"nv-flex",style:{height:"280px"}},Ft={class:"nv-flex-1 nv-flex-col nv-full-h"},Vt={class:"nv-flex-1 nv-overflow-auto"},Ut={key:0,class:"nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"},Gt={key:0},Zt={class:"nv-flex-1 nv-text-nowrap",style:{"margin-left":"7px"}},Qt={key:0},zt={key:1},Yt={key:2},Wt={class:"nv-pos-r"},qt={class:"nv-c-p structure-sel-box"},_t={key:0},Ht={key:0,class:"nv-text-nowrap"},Jt={key:1},Xt={key:0},Kt={key:1},$t={key:0,style:{"margin-bottom":"10px"}},en={class:"nv-flex",style:{height:"280px"}},tn={class:"nv-flex-1 nv-flex-col nv-full-h"},nn=(e=>(n.pushScopeId("data-v-079c1ad0"),e=e(),n.popScopeId(),e))((()=>n.createElementVNode("div",null,"单位工程:",-1))),rn={class:"nv-flex-1 nv-overflow-auto"},on={key:0,class:"nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"},ln={key:0},an={class:"nv-flex-1 nv-text-nowrap",style:{"margin-left":"7px"}},sn={key:0},un={key:1};const cn=h(Tt,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Option"),s=n.resolveComponent("OptionGroup"),u=n.resolveComponent("Select"),c=n.resolveComponent("Radio"),f=n.resolveComponent("RadioGroup"),p=n.resolveComponent("Input"),h=n.resolveComponent("nvLoading"),d=n.resolveComponent("Tree"),y=n.resolveComponent("Poptip"),v=n.resolveComponent("Icon");return 1==e.selType?(n.openBlock(),n.createBlock(u,{key:0,modelValue:e.UnitValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.UnitValue=t),multiple:e.multiple,transfer:"",filterable:"",clearable:"",onOnChange:e.unitSelectChange,disabled:e.readonly},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.TypeGroupData,((e,t)=>(n.openBlock(),n.createBlock(s,{label:e.NodeTypeName},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.UnitData,(e=>(n.openBlock(),n.createBlock(a,{value:e.Id,key:e.Id},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e.NodeName),1)])),_:2},1032,["value"])))),128))])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","multiple","onOnChange","disabled"])):3==e.selType?(n.openBlock(),n.createElementBlock("div",Ct,[n.createVNode(y,{modelValue:e.poptipVisible,"onUpdate:modelValue":t[6]||(t[6]=t=>e.poptipVisible=t),placement:"bottom-start",width:700,transfer:"",disabled:e.readonly},{content:n.withCtx((()=>[n.createElementVNode("div",Pt,[n.createVNode(f,{modelValue:e.activeNodeType,"onUpdate:modelValue":t[3]||(t[3]=t=>e.activeNodeType=t),type:"button",size:"small","button-style":"solid",onOnChange:e.NodeTypeSelect},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.TypeGroupData,((e,t)=>(n.openBlock(),n.createBlock(c,{key:t,label:e.NodeTypeName},null,8,["label"])))),128))])),_:1},8,["modelValue","onOnChange"])]),n.createElementVNode("div",Lt,[n.createElementVNode("div",Ft,[n.createElementVNode("div",null,[n.createTextVNode("单位工程: "),n.createVNode(p,{ref:"searchInputRef",size:"small",class:"nv-full poptipInp",search:"",modelValue:e.searchInfo,"onUpdate:modelValue":t[4]||(t[4]=t=>e.searchInfo=t),clearable:"",placeholder:"点击选择构件",onOnChange:e.doSearch},null,8,["modelValue","onOnChange"])]),n.createElementVNode("div",Vt,[n.createVNode(f,{modelValue:e.activeUnit,"onUpdate:modelValue":t[5]||(t[5]=t=>e.activeUnit=t),vertical:"",onOnChange:e.unitSelected},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unitData,((e,t)=>(n.openBlock(),n.createBlock(c,{label:e.Id},{default:n.withCtx((()=>[n.createElementVNode("span",null,n.toDisplayString(e.NodeName),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","onOnChange"])])]),3==e.selType?(n.openBlock(),n.createElementBlock("div",Ut,[e.StructureInstanceLoading?(n.openBlock(),n.createBlock(h,{key:0})):(n.openBlock(),n.createBlock(d,{key:1,style:{width:"calc(100% - 30px)"},data:e.StructureInstanceData,"load-data":e.loadStructureInstance,"check-strictly":!0,"show-checkbox":e.multiple,onOnCheckChange:e.StructureInstanceCheckFun,onOnSelectChange:e.StructureInstanceSelectFun},null,8,["data","load-data","show-checkbox","onOnCheckChange","onOnSelectChange"]))])):n.createCommentVNode("",!0)])])),default:n.withCtx((()=>[n.createElementVNode("div",Bt,[n.createElementVNode("div",Rt,[0==e.StructureInstanceCheckData.length?(n.openBlock(),n.createElementBlock("div",jt,"点击选择构件")):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.multiple?(n.openBlock(),n.createElementBlock("div",{key:0,class:"nv-text-nowrap",onClick:t[1]||(t[1]=(...t)=>e.clearSearchInfo&&e.clearSearchInfo(...t))}," 已选择"+n.toDisplayString(e.StructureInstanceCheckData.length)+"个构件("+n.toDisplayString(e.StructureInstanceCheckData.map((e=>e.NodeName)).toString())+") ",1)):(n.openBlock(),n.createElementBlock("div",{key:1,onClick:t[2]||(t[2]=(...t)=>e.clearSearchInfo&&e.clearSearchInfo(...t))},[n.createTextVNode(n.toDisplayString(e.StructureInstanceCheckData[0].NodeName)+" ",1),e.StructureInstanceCheckData[0].NodeTypeName?(n.openBlock(),n.createElementBlock("span",Mt,"["+n.toDisplayString(e.StructureInstanceCheckData[0].NodeTypeName)+"]",1)):n.createCommentVNode("",!0),e.StructureInstanceCheckData[0].UnitName?(n.openBlock(),n.createElementBlock("span",Dt,"["+n.toDisplayString(e.StructureInstanceCheckData[0].UnitName)+"]",1)):n.createCommentVNode("",!0)]))],64))])])])),_:1},8,["modelValue","disabled"]),e.multiple?(n.openBlock(),n.createElementBlock("div",Gt,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.StructureInstanceCheckData,((t,r)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-flex",key:r},[e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(v,{key:0,class:"nv-c-p",type:"md-trash",onClick:n.withModifiers((n=>e.removeStructureInstance(t)),["stop"]),size:20,color:"#ae5d55"},null,8,["onClick"])),n.createElementVNode("div",Zt,[n.createTextVNode(n.toDisplayString(t.NodeName)+" ",1),t.NodeTypeName?(n.openBlock(),n.createElementBlock("span",Qt,"["+n.toDisplayString(t.NodeTypeName)+"]",1)):n.createCommentVNode("",!0),t.UnitName?(n.openBlock(),n.createElementBlock("span",zt,"["+n.toDisplayString(t.UnitName)+"]",1)):n.createCommentVNode("",!0)])])))),128))])):n.createCommentVNode("",!0)])):(n.openBlock(),n.createElementBlock("div",Yt,[n.createVNode(y,{placement:"bottom-start",width:700,transfer:"",disabled:e.readonly},{content:n.withCtx((()=>[e.TypeGroupData.length>1?(n.openBlock(),n.createElementBlock("div",$t,[n.createVNode(f,{modelValue:e.activeNodeType,"onUpdate:modelValue":t[7]||(t[7]=t=>e.activeNodeType=t),type:"button",size:"small","button-style":"solid",onOnChange:e.NodeTypeSelect},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.TypeGroupData,((e,t)=>(n.openBlock(),n.createBlock(c,{key:t,label:e.NodeTypeName},null,8,["label"])))),128))])),_:1},8,["modelValue","onOnChange"])])):n.createCommentVNode("",!0),n.createElementVNode("div",en,[n.createElementVNode("div",tn,[nn,n.createElementVNode("div",rn,[n.createVNode(f,{modelValue:e.activeUnit,"onUpdate:modelValue":t[8]||(t[8]=t=>e.activeUnit=t),vertical:"",onOnChange:e.unitSelected},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unitData,((e,t)=>(n.openBlock(),n.createBlock(c,{label:e.Id},{default:n.withCtx((()=>[n.createElementVNode("span",null,n.toDisplayString(e.NodeName),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","onOnChange"])])]),2==e.selType?(n.openBlock(),n.createElementBlock("div",on,[e.StructureInstanceLoading?(n.openBlock(),n.createBlock(h,{key:0})):(n.openBlock(),n.createBlock(d,{key:1,style:{width:"calc(100% - 30px)"},data:e.StructureInstanceData,"load-data":e.loadStructureInstance,"check-strictly":!0,"show-checkbox":e.multiple,onOnCheckChange:e.StructureInstanceCheckFun,onOnSelectChange:e.StructureInstanceSelectFun},null,8,["data","load-data","show-checkbox","onOnCheckChange","onOnSelectChange"]))])):n.createCommentVNode("",!0)])])),default:n.withCtx((()=>[n.createElementVNode("div",Wt,[n.createElementVNode("div",qt,[0==e.StructureInstanceCheckData.length?(n.openBlock(),n.createElementBlock("div",_t,"点击选择构件")):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.multiple?(n.openBlock(),n.createElementBlock("div",Ht," 已选择"+n.toDisplayString(e.StructureInstanceCheckData.length)+"个构件("+n.toDisplayString(e.StructureInstanceCheckData.map((e=>e.NodeName)).toString())+") ",1)):(n.openBlock(),n.createElementBlock("div",Jt,[n.createTextVNode(n.toDisplayString(e.StructureInstanceCheckData[0].NodeName)+" ",1),e.StructureInstanceCheckData[0].NodeTypeName?(n.openBlock(),n.createElementBlock("span",Xt,"["+n.toDisplayString(e.StructureInstanceCheckData[0].NodeTypeName)+"]",1)):n.createCommentVNode("",!0),e.StructureInstanceCheckData[0].UnitName?(n.openBlock(),n.createElementBlock("span",Kt,"["+n.toDisplayString(e.StructureInstanceCheckData[0].UnitName)+"]",1)):n.createCommentVNode("",!0)]))],64))])])])),_:1},8,["disabled"]),e.multiple?(n.openBlock(),n.createElementBlock("div",ln,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.StructureInstanceCheckData,((t,r)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-flex",key:r},[e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(v,{key:0,class:"nv-c-p",type:"md-trash",onClick:n.withModifiers((n=>e.removeStructureInstance(t)),["stop"]),size:20,color:"#ae5d55"},null,8,["onClick"])),n.createElementVNode("div",an,[n.createTextVNode(n.toDisplayString(t.NodeName)+" ",1),t.NodeTypeName?(n.openBlock(),n.createElementBlock("span",sn,"["+n.toDisplayString(t.NodeTypeName)+"]",1)):n.createCommentVNode("",!0),t.UnitName?(n.openBlock(),n.createElementBlock("span",un,"["+n.toDisplayString(t.UnitName)+"]",1)):n.createCommentVNode("",!0)])])))),128))])):n.createCommentVNode("",!0)]))}],["__scopeId","data-v-079c1ad0"]]),fn={readonly:{type:Boolean,default:!1},selType:{type:Number,default:1},multiple:{type:Boolean,default:!0},businessId:{type:Array||Number,default:0},dataValue:{type:Array||Number,default:!0}},pn=n.defineComponent({name:"NvStructureSelect_HC",components:{},emits:["update","on-change"],props:fn,setup:(e,t)=>new hn(e,t)});class hn extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"TypeValue",n.ref([])),u(this,"StructureTypeData",n.ref([])),u(this,"dataStructureApi",new i.DataStructureApi),u(this,"structureInstanceApi",new i.StructureInstance_HCApi),u(this,"UnitValue",n.ref()),u(this,"TypeGroupData",n.ref([])),u(this,"activeNodeType",n.ref("")),u(this,"unitSelectChange",(()=>{this.doSelectedAfterFun()})),u(this,"activeUnit",n.ref(0)),u(this,"activeUnitName",""),u(this,"unitData",n.ref([])),u(this,"NodeTypeSelect",(()=>{this.unitData.value=this.TypeGroupData.value.find((e=>e.NodeTypeName==this.activeNodeType.value)).UnitData,1==this.props.selType&&this.props.multiple||this.unitData.value[0]&&(this.activeUnit.value=this.unitData.value[0].Id,this.activeUnitName=this.unitData.value[0].NodeName,this.unitSelected(this.activeUnit.value))})),u(this,"StructureInstanceLoading",n.ref(!1)),u(this,"StructureInstanceData",n.ref([])),u(this,"unitSelected",(async e=>{this.activeUnitName=this.unitData.value.find((t=>t.Id==e)).NodeName,this.StructureInstanceLoading.value=!0,this.StructureInstanceData.value=[];let t=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","PlatformId","CreateUnitId"]).eq("PId",e)));this.StructureInstanceData.value=t.map((e=>(e.title=e.NodeName,e.UnitName=this.activeUnitName,e.loading=!1,e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children=[],e))),this.StructureInstanceLoading.value=!1})),u(this,"loadStructureInstance",(async(e,t)=>{let n=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","PlatformId","CreateUnitId"]).eq("PId",e.Id)));if(0==n.length)return e.children=void 0,void t([]);n=n.map((e=>(e.title=e.NodeName,e.loading=!1,e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children=[],e))),t(n)})),u(this,"StructureInstanceCheckData",n.ref([])),u(this,"StructureInstanceCheckFun",((e,t)=>{t.checked?this.StructureInstanceCheckData.value.push(t):this.removeStructureInstance(t),this.doSelectedAfterFun()})),u(this,"StructureInstanceSelectFun",((e,t)=>{this.props.multiple||(this.StructureInstanceCheckData.value=[t],this.doSelectedAfterFun())})),u(this,"removeStructureInstance",(e=>{e.checked=!1;let t=tt.from(this.StructureInstanceCheckData.value).indexOf((t=>t.Id==e.Id));this.StructureInstanceCheckData.value.splice(t,1),this.treeChStateChange(this.StructureInstanceData.value),this.doSelectedAfterFun()})),this.props=e,this.ctx=t,this.loadNodeTypeAndUnitData()}async loadNodeTypeAndUnitData(){var e,t;let n=(new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","RootId","PlatformId","CreateUnitId"]).eq("PId",0).eq("PlatformId",null==(e=this.storageInfo.getCurrentPlatform())?void 0:e.Id);this.props.businessId&&("number"==typeof this.props.businessId?n.eq("CreateUnitId",this.props.businessId):Array.isArray(this.props.businessId)&&n.in("CreateUnitId",this.props.businessId));let o=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(n));if(this.TypeGroupData.value=tt.from(o).groupBy((e=>e.NodeTypeName)).select((e=>({NodeTypeName:e.key(),UnitData:e.getSource()}))).toArray(),1!=this.props.selType){if(this.TypeGroupData.value[0]&&(this.activeNodeType.value=this.TypeGroupData.value[0].NodeTypeName,this.NodeTypeSelect(),this.props.dataValue)){let e="object"==typeof this.props.dataValue?this.props.dataValue:[this.props.dataValue];this.StructureInstanceCheckData.value=this.utilities.parseApiResult(await this.structureInstanceApi.getEntities((new r.QueryWrapper).select(["Id","NodeTypeName","NodeType","NodeName","RootId","PlatformId"]).in("Id",e).eq("PlatformId",null==(t=this.storageInfo.getCurrentPlatform())?void 0:t.Id))),this.StructureInstanceCheckData.value=this.StructureInstanceCheckData.value.map((e=>{let t=this.unitData.value.find((t=>t.Id==e.RootId));return e.UnitName=t?t.NodeName:"",e}))}}else this.UnitValue.value=this.props.dataValue}treeChStateChange(e){e.map((e=>{e.checked=!!this.StructureInstanceCheckData.value.find((t=>t.Id==e.Id)),e.children&&e.children.length>0&&this.treeChStateChange(e.children)}))}doSelectedAfterFun(){if(1==this.props.selType)try{let e=[];this.TypeGroupData.value.map((t=>{t.UnitData.map((t=>{Array.isArray(this.UnitValue.value)?this.UnitValue.value.includes(t.Id)&&e.push(t):this.UnitValue.value==t.Id&&(e=[t])}))})),this.ctx.emit("on-change",{Ids:this.UnitValue.value,data:e})}catch(e){this.ctx.emit("on-change",{Ids:this.UnitValue.value,data:[]})}else this.ctx.emit("on-change",{Ids:this.StructureInstanceCheckData.value.map((e=>e.Id)),data:this.StructureInstanceCheckData.value})}}const dn={key:1},yn={class:"nv-pos-r"},vn={class:"nv-c-p structure-sel-box"},gn={key:0},mn={key:0,class:"nv-text-nowrap"},bn={key:1},An={key:0},kn={key:1},wn={key:0,style:{"margin-bottom":"10px"}},Nn={class:"nv-flex",style:{height:"280px"}},En={class:"nv-flex-1 nv-flex-col nv-full-h"},On=(e=>(n.pushScopeId("data-v-ca628399"),e=e(),n.popScopeId(),e))((()=>n.createElementVNode("div",null,"单位工程:",-1))),In={class:"nv-flex-1 nv-overflow-auto"},xn={key:0,class:"nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"},Tn={key:0},Sn={class:"nv-flex-1 nv-text-nowrap",style:{"margin-left":"7px"}},Cn={key:0},Bn={key:1};const Rn=h(pn,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Option"),s=n.resolveComponent("OptionGroup"),u=n.resolveComponent("Select"),c=n.resolveComponent("Radio"),f=n.resolveComponent("RadioGroup"),p=n.resolveComponent("nvLoading"),h=n.resolveComponent("Tree"),d=n.resolveComponent("Poptip"),y=n.resolveComponent("Icon");return 1==e.selType?(n.openBlock(),n.createBlock(u,{key:0,modelValue:e.UnitValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.UnitValue=t),multiple:e.multiple,transfer:"",filterable:"",clearable:"",onOnChange:e.unitSelectChange,disabled:e.readonly},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.TypeGroupData,((e,t)=>(n.openBlock(),n.createBlock(s,{label:e.NodeTypeName},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.UnitData,(e=>(n.openBlock(),n.createBlock(a,{value:e.Id,key:e.Id},{default:n.withCtx((()=>[n.createTextVNode(n.toDisplayString(e.NodeName),1)])),_:2},1032,["value"])))),128))])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","multiple","onOnChange","disabled"])):(n.openBlock(),n.createElementBlock("div",dn,[n.createVNode(d,{placement:"bottom-start",width:700,transfer:"",disabled:e.readonly},{content:n.withCtx((()=>[e.TypeGroupData.length>1?(n.openBlock(),n.createElementBlock("div",wn,[n.createVNode(f,{modelValue:e.activeNodeType,"onUpdate:modelValue":t[1]||(t[1]=t=>e.activeNodeType=t),type:"button",size:"small","button-style":"solid",onOnChange:e.NodeTypeSelect},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.TypeGroupData,((e,t)=>(n.openBlock(),n.createBlock(c,{key:t,label:e.NodeTypeName},null,8,["label"])))),128))])),_:1},8,["modelValue","onOnChange"])])):n.createCommentVNode("",!0),n.createElementVNode("div",Nn,[n.createElementVNode("div",En,[On,n.createElementVNode("div",In,[n.createVNode(f,{modelValue:e.activeUnit,"onUpdate:modelValue":t[2]||(t[2]=t=>e.activeUnit=t),vertical:"",onOnChange:e.unitSelected},{default:n.withCtx((()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unitData,((e,t)=>(n.openBlock(),n.createBlock(c,{label:e.Id},{default:n.withCtx((()=>[n.createElementVNode("span",null,n.toDisplayString(e.NodeName),1)])),_:2},1032,["label"])))),256))])),_:1},8,["modelValue","onOnChange"])])]),2==e.selType?(n.openBlock(),n.createElementBlock("div",xn,[e.StructureInstanceLoading?(n.openBlock(),n.createBlock(p,{key:0})):(n.openBlock(),n.createBlock(h,{key:1,style:{width:"calc(100% - 30px)"},data:e.StructureInstanceData,"load-data":e.loadStructureInstance,"check-strictly":!0,"show-checkbox":e.multiple,onOnCheckChange:e.StructureInstanceCheckFun,onOnSelectChange:e.StructureInstanceSelectFun},null,8,["data","load-data","show-checkbox","onOnCheckChange","onOnSelectChange"]))])):n.createCommentVNode("",!0)])])),default:n.withCtx((()=>[n.createElementVNode("div",yn,[n.createElementVNode("div",vn,[0==e.StructureInstanceCheckData.length?(n.openBlock(),n.createElementBlock("div",gn,"点击选择构件")):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.multiple?(n.openBlock(),n.createElementBlock("div",mn," 已选择"+n.toDisplayString(e.StructureInstanceCheckData.length)+"个构件("+n.toDisplayString(e.StructureInstanceCheckData.map((e=>e.NodeName)).toString())+") ",1)):(n.openBlock(),n.createElementBlock("div",bn,[n.createTextVNode(n.toDisplayString(e.StructureInstanceCheckData[0].NodeName)+" ",1),e.StructureInstanceCheckData[0].NodeTypeName?(n.openBlock(),n.createElementBlock("span",An,"["+n.toDisplayString(e.StructureInstanceCheckData[0].NodeTypeName)+"]",1)):n.createCommentVNode("",!0),e.StructureInstanceCheckData[0].UnitName?(n.openBlock(),n.createElementBlock("span",kn,"["+n.toDisplayString(e.StructureInstanceCheckData[0].UnitName)+"]",1)):n.createCommentVNode("",!0)]))],64))])])])),_:1},8,["disabled"]),e.multiple?(n.openBlock(),n.createElementBlock("div",Tn,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.StructureInstanceCheckData,((t,r)=>(n.openBlock(),n.createElementBlock("div",{class:"nv-flex",key:r},[e.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(y,{key:0,class:"nv-c-p",type:"md-trash",onClick:n.withModifiers((n=>e.removeStructureInstance(t)),["stop"]),size:20,color:"#ae5d55"},null,8,["onClick"])),n.createElementVNode("div",Sn,[n.createTextVNode(n.toDisplayString(t.NodeName)+" ",1),t.NodeTypeName?(n.openBlock(),n.createElementBlock("span",Cn,"["+n.toDisplayString(t.NodeTypeName)+"]",1)):n.createCommentVNode("",!0),t.UnitName?(n.openBlock(),n.createElementBlock("span",Bn,"["+n.toDisplayString(t.UnitName)+"]",1)):n.createCommentVNode("",!0)])])))),128))])):n.createCommentVNode("",!0)]))}],["__scopeId","data-v-ca628399"]]),jn={linkParam:{type:String,default:""},operates:{type:String,default:"-"},token:{type:String,default:""},catalog:{type:String,default:"root"},groups:{type:Array,default:()=>["默认"]},extraInfo:{type:String,default:""},isCompress:{type:Boolean,default:!1},format:{type:Array,default:()=>[]},maxSize:{type:Number,default:0},multiple:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},single:{type:Boolean,default:!1},nullMsg:{type:String,default:"暂无附件"},paginationSet:{type:Object,default:{isPagination:!1,pageSize:10}}},Mn=n.defineComponent({name:"UploadFileList",components:{filePreview:v},emits:["success","returnFileList"],props:jn,setup:(e,t)=>new Dn(e,t)});class Dn extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"uploadApi",new o.UploadApi),u(this,"fileInfoApi",new o.FileInfoApi),u(this,"fileApi",new o.FileApi),u(this,"isOpenPagination",n.ref(!1)),u(this,"gridPageSize",n.ref(10)),u(this,"isShowEye",n.ref(!0)),u(this,"isShowtrash",n.ref(!0)),u(this,"isShowUpBtn",n.ref(!0)),u(this,"mainGridApi",""),u(this,"uploadListGridRef",n.ref([])),u(this,"uploadListGridOption",n.reactive({api:this.mainGridApi,setting:{searchConfig:{btnSpan:6,labelWidth:120,defaultShowSearch:!1},isPagination:this.isOpenPagination.value,pageSize:this.gridPageSize.value,toolbarConfig:{isButtonGroup:!1},editConfig:{trigger:"click",mode:"row",showStatus:!0,beforeEditMethod:({row:e})=>!this.props.readonly},rowConfig:{isCurrent:!0,isHover:!0}},searchOptions:[],toolbars:[],rightToolbars:[{name:"refresh",isShow:()=>!1}],columns:[{colType:"seq"},{colType:"ed",title:"文件名称",field:"FileName",align:"left",minWidth:100},{colType:"ro",title:"创建日期",field:"CreateTime",align:"center",format:(e,t)=>e("span",{},t.row.CreateTime?t.row.CreateTime.slice(0,10):"")},{title:"操作",width:this.isShowtrash.value?160:120,rowButtons:[{name:"edit_",text:"预览",type:"primary",onclick:e=>{this.doView(e)},isShow:e=>this.isShowEye.value},{name:"view_",text:"下载",onclick:e=>{this.doDwonload(e)},isShow:e=>!0},{name:"delete_",text:"删除",type:"error",onclick:e=>{this.doRemove(e)},isShow:e=>!this.isShowtrash.value}]}],event:{}})),u(this,"getuploadListGridRef",((e,t)=>{e&&(this.uploadListGridRef.value[t]=e)})),u(this,"loadUploadListData",(()=>{let e=this.getGroupFiles("默认"),t=this.arrayGroup(e,this.gridPageSize.value);this.uploadListGridRef.value[0].loadData((async n=>{if(this.isOpenPagination.value){let r={Datas:t[n.page-1],TotalItemCount:e.length,CurrentPageIndex:n.page,TotalPageCount:this.gridPageSize.value};n.success(r)}else n.success(e)}))})),u(this,"uploadGridSave",(async()=>{let e=this.uploadListGridRef.value[0].getSaveDatas();if((null==e?void 0:e.length)<=0)return this.message.warning("没有需要保存的数据");this.uploading.value=!0,this.utilities.parseApiResult(await this.fileInfoApi.saves(e))>0?(this.loadFileList(!0),this.message.success("附件信息修改成功!"),this.uploading.value=!1):(this.message.error("附件信息修改失败"),this.uploading.value=!1)})),u(this,"currentToken",""),u(this,"fileList",n.ref([])),u(this,"uploading",n.ref(!1)),u(this,"uploadFilePos",n.reactive({})),u(this,"action",n.ref("/FileServiceApi/Upload/file")),u(this,"headers",n.ref({Authorization:""})),u(this,"doSuccess",((e,t,n)=>{const r=this.utilities.parseApiResult(e);this.uploading.value=!1,"0"==r.Code?(this.message.success("上传成功"),this.ctx.emit("success",{token:r.Token,fileId:r.FileId}),this.loadFileList(!0)):this.message.error(r.Msg)})),u(this,"doFormatError",(()=>{this.message.warning("当前上传的文件格式不正确,请重新上传"),this.uploading.value=!1})),u(this,"doMaxSize",(()=>{this.props.maxSize/1024>=1?this.message.warning("文件太大超出上传限制,文件大小不得大于"+(this.props.maxSize/1024).toFixed(1)+"M"):this.message.warning("文件太大超出上传限制,文件大小不得大于"+this.props.maxSize+"KB"),this.uploading.value=!1})),u(this,"doBeforeUpload",(()=>{this.message.info("文件上传中,请稍等"),this.uploading.value=!0})),u(this,"doRemove",(e=>{this.modal.confirm({title:"提示",content:`数据删除后不可恢复,<br/>确定要删除 ${e.FileName} 文件吗?`,onOk:async()=>{this.uploading.value=!0;const t=await this.fileApi.deleteFile(e.Token,e.Id);this.utilities.parseApiResult(t)<=0?(this.message.warning("删除失败,请稍后重试!"),this.uploading.value=!1):(this.loadFileList(!0),this.message.success("删除成功"),this.uploading.value=!1)}})})),u(this,"doDwonload",(e=>{const t=this.fileApi.getFileUrl(e.Token,e.Id);window.open(t)})),u(this,"getGroupFiles",(e=>"默认"==e?this.fileList.value:this.fileList.value.filter((t=>t.GroupName==e)))),u(this,"getSingle",(e=>{const t=this.getGroupFiles(e);return this.props.single&&t.length>0})),u(this,"getFirstFile",(e=>{const t=this.getGroupFiles(e);return 0==t.length?void 0:t[0]})),u(this,"previewVisible",n.ref(!1)),u(this,"previewList",n.ref([])),u(this,"previewIndex",n.ref(0)),u(this,"previewFileInfo",n.ref({})),u(this,"isImage",(e=>{const t=e.FileExt;return"jpg"==t||"png"==t||"jpeg"==t||"gif"==t||"svg"==t})),u(this,"getImgUrl",(e=>this.fileApi.getFileUrl(e.Token,e.Id))),u(this,"getThumbnailUrl",(e=>this.isImage(e)?this.getImgUrl(e):this.getFileIcon(e.FileExt))),u(this,"getFileIcon",(e=>{const t={img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wP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gMjm/cuPHLGS2/gDdQvdfd3b129erVi0VRFNhyPcp1C5TJZLJDQ0ORLVu2HB8YGOgiLK4WA2glGe2g7CVLBpQl4ywZB4p6Rdd1aT3yPWQ4ZwtmFOsyGYHrGSk/IEs36j8BBgDY8UuJC+tONQAAAABJRU5ErkJggg=="};let p="";switch(e){case"rar":case"zip":p=l.img;break;case"doc":case"docx":p=t.img;break;case"xls":case"xlsx":p=n.img;break;case"pdf":p=o.img;break;case"ppt":case"pptx":p=r.img;break;case"png":case"jpg":p=i.img;break;case"mov":p=a.img;break;case"mp3":p=s.img;break;case"mp4":p=u.img;break;case"html":case"htm":p=c.img;break;default:p=f.img}return p})),u(this,"doView",(e=>{this.previewFileInfo.value=e,this.previewVisible.value=!0,this.previewIndex.value=e.PreviewIndex})),this.props=e,this.ctx=t,this.useUploadFile()}arrayGroup(e,t){let n=[];for(let r=0,o=e.length;r<o;r+=t)n.push(e.slice(r,r+t));return n}async useUploadFile(){n.watch((()=>this.props.token),((e,t)=>{this.setCurrentToken(),this.setUploadFilePos()})),n.watchEffect((()=>{this.isShowtrash.value=this.props.readonly})),n.watchEffect((()=>{this.isOpenPagination.value=this.props.paginationSet.isPagination,this.gridPageSize.value=this.props.paginationSet.pageSize,this.uploadListGridOption.setting.isPagination=this.isOpenPagination.value,this.uploadListGridOption.setting.pageSize=this.gridPageSize.value})),this.setCurrentToken(),this.setUploadFilePos(),this.headers.value.Authorization=`Bearer ${this.storageInfo.getToken()}`}setCurrentToken(){this.currentToken=this.utilities.getValueNotNull(this.props.token,this.utilities.getUniqueCode().replaceAll("-","")),this.loadFileList()}setUploadFilePos(){for(const e of this.props.groups){const t=this.getUploadFilePo(e);this.uploadFilePos[e]=t}}getUploadFilePo(e){return this.uploadApi.getBaseFilePo(this.currentToken,this.props.catalog,e,this.props.extraInfo,this.props.isCompress)}async loadFileList(e=!1){this.uploading.value=!0;let t=this.currentToken.split(",");const n=await this.fileInfoApi.getEntities(r.QueryWrapper.create().in("Token",t));this.fileList.value=this.utilities.parseApiResult(n),this.uploading.value=!1,e&&this.ctx.emit("returnFileList",{token:this.currentToken,list:this.fileList.value}),this.loadUploadListData(),this.setPreviewList()}setPreviewList(){let e=0;this.previewList.value=[];for(const t of this.fileList.value)this.isImage(t)&&(t.PreviewIndex=e,this.previewList.value.push(this.getImgUrl(t)),e++)}}const Pn={class:"uploadFileList"},Ln={class:"up-btn-box"},Fn={class:"nv-flex-1"};const Vn=h(Mn,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("Spin"),s=n.resolveComponent("Button"),u=n.resolveComponent("Upload"),c=n.resolveComponent("NvGrid"),f=n.resolveComponent("Card"),p=n.resolveComponent("filePreview");return n.openBlock(),n.createElementBlock("div",Pn,[e.uploading?(n.openBlock(),n.createBlock(a,{key:0,fix:"",size:"large"})):n.createCommentVNode("",!0),e.single?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode("附件列表暂不支持分组")],64)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(e.groups,((t,r)=>(n.openBlock(),n.createBlock(f,{"dis-hover":"",key:r,style:{"margin-bottom":"8px",height:"100%"}},{default:n.withCtx((()=>[n.createElementVNode("div",Ln,[e.isShowtrash?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(u,{key:0,ref_for:!0,ref:"uploadRef",type:"drag",name:"FormFile",multiple:e.multiple,"show-upload-list":!1,format:e.format,"max-size":e.maxSize,action:e.action,headers:e.headers,data:e.uploadFilePos[t],"on-success":e.doSuccess,"on-format-error":e.doFormatError,"on-exceeded-size":e.doMaxSize,"before-upload":e.doBeforeUpload},{default:n.withCtx((()=>[e.isShowUpBtn?(n.openBlock(),n.createBlock(s,{key:0,type:"primary"},{default:n.withCtx((()=>[n.createTextVNode("上传")])),_:1})):n.createCommentVNode("",!0)])),_:2},1032,["multiple","format","max-size","action","headers","data","on-success","on-format-error","on-exceeded-size","before-upload"])),e.isShowtrash?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(s,{key:1,style:{"margin-left":"8px"},type:"primary",onClick:e.uploadGridSave},{default:n.withCtx((()=>[n.createTextVNode("保存")])),_:1},8,["onClick"]))]),n.createElementVNode("div",Fn,[n.createVNode(c,{ref_for:!0,ref:t=>e.getuploadListGridRef(t,r),option:e.uploadListGridOption},null,8,["option"])])])),_:2},1024)))),128)),n.createVNode(p,{modelValue:e.previewVisible,"onUpdate:modelValue":t[0]||(t[0]=t=>e.previewVisible=t),"preview-list":e.previewList,"preview-index":e.previewIndex,"file-info":e.previewFileInfo},null,8,["modelValue","preview-list","preview-index","file-info"])])}],["__scopeId","data-v-788854bb"]]),Un={onlyView:{type:Boolean,default:!1},formItems:{type:Array,default:()=>[]},formModel:{type:Object,default:()=>{}}},Gn=n.defineComponent({name:"NvComFormUp",components:{UploadFile:P,TextEditor:Be,NvDicSelect:Le,NvStructureTypeSelect:It,NvStructureSelect:cn,UploadFileList:Vn,CASign:a.CASign,NvStructureSelect_HC:Rn},emits:["textChange","TokenChange"],props:Un,setup:(e,t)=>new Zn(e,t)});class Zn extends t.BaseInstance{constructor(e,t){super(),u(this,"props"),u(this,"ctx"),u(this,"textEditorRef",n.ref()),u(this,"saveTextData",(async()=>{this.textEditorRef.value.saveTextData()})),u(this,"clearTextData",(async()=>{this.textEditorRef.value.clearTextData()})),u(this,"deleteTextData",(async()=>{this.textEditorRef.value.deleteTextData()})),u(this,"deleteTextDataByToken",(async e=>{this.textEditorRef.value.deleteTextDataByToken(e)})),u(this,"getText",(()=>this.textEditorRef.value.getText())),u(this,"tokenList",((e,t)=>{this.ctx.emit("TokenChange",e),e.list.length>0?this.props.formModel[t.model]=e.token:this.props.formModel[t.model]=""})),u(this,"textChange",((e,t)=>{var n;null==(n=e.textEditorProp)||n.onChange(t)})),u(this,"StructureOnChange",((e,{Ids:t,data:n})=>{var r;this.props.formModel[e.model]=t,null==(r=e.structureProp)||r.onChange(t,n)})),u(this,"getPropValue",((e,t,n)=>this.utilities.isNull(e)?n:e[t])),u(this,"getPaginationSet",(e=>this.utilities.isNull(e.uploadFileListProp)?null:{isPagination:e.uploadFileListProp.isOpenPagination,pageSize:e.uploadFileListProp.pageSize??10})),u(this,"uploadFileListStyle",(e=>{var t;return this.utilities.isNull(e.uploadFileListProp)?{height:"200px"}:{height:(null==(t=e.uploadFileListProp)?void 0:t.isOpenPagination)?"300px":"200px"}})),u(this,"signOnSuccess",((e,{result:t,img:n})=>{this.props.formModel[e.model]=t,e.signProp&&e.signProp.onSignSuccess&&e.signProp.onSignSuccess({result:t,img:n})})),this.props=e,this.ctx=t}}const Qn=h(Gn,[["render",function(e,t,r,o,i,l){const a=n.resolveComponent("UploadFile"),s=n.resolveComponent("TextEditor"),u=n.resolveComponent("NvDicSelect"),c=n.resolveComponent("NvStructureTypeSelect"),f=n.resolveComponent("NvStructureSelect"),p=n.resolveComponent("NvStructureSelect_HC"),h=n.resolveComponent("UploadFileList"),d=n.resolveComponent("CASign"),y=n.resolveComponent("NvComForm");return n.openBlock(),n.createBlock(y,{onlyView:e.onlyView,formItems:e.formItems,formModel:e.formModel},{extend:n.withCtx((({item:t})=>["UploadFile"===t.type?(n.openBlock(),n.createBlock(a,{key:0,readonly:e.getPropValue(t.uploadFileProp,"readonly")||e.onlyView,token:e.formModel[t.model],multiple:e.getPropValue(t.uploadFileProp,"multiple"),isShowFileName:e.getPropValue(t.uploadFileProp,"isShowFileName"),uploadQuantity:e.getPropValue(t.uploadFileProp,"uploadQuantity",0),onReturnFileList:n=>e.tokenList(n,t)},null,8,["readonly","token","multiple","isShowFileName","uploadQuantity","onReturnFileList"])):n.createCommentVNode("",!0),"TextEditor"===t.type?(n.openBlock(),n.createBlock(s,{key:1,ref:"textEditorRef",readonly:e.getPropValue(t.textEditorProp,"readonly")||e.onlyView,style:n.normalizeStyle({height:`${t.textEditorProp&&t.textEditorProp.textHeight?t.textEditorProp.textHeight:"300"}px`}),token:e.formModel[t.model],border:e.getPropValue(t.textEditorProp,"textBorder"),onTextChange:n=>e.textChange(t,n)},null,8,["readonly","style","token","border","onTextChange"])):n.createCommentVNode("",!0),"DicSelect"===t.type?(n.openBlock(),n.createBlock(u,{key:2,readonly:e.getPropValue(t.dicSelProp,"readonly")||e.onlyView,code:e.getPropValue(t.dicSelProp,"code"),platformId:e.getPropValue(t.dicSelProp,"platformId"),modelValue:e.formModel[t.model],"onUpdate:modelValue":n=>e.formModel[t.model]=n},null,8,["readonly","code","platformId","modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0),"StructureType"===t.type?(n.openBlock(),n.createBlock(c,{key:3,readonly:e.getPropValue(t.structureTypeProp,"readonly")||e.onlyView,dataValue:e.formModel[t.model],multiple:e.getPropValue(t.structureTypeProp,"multiple"),onOnChange:n=>e.StructureOnChange(t,n)},null,8,["readonly","dataValue","multiple","onOnChange"])):n.createCommentVNode("",!0),"Structure"===t.type?(n.openBlock(),n.createBlock(f,{key:4,readonly:e.getPropValue(t.structureProp,"readonly")||e.onlyView,dataValue:e.formModel[t.model],multiple:e.getPropValue(t.structureProp,"multiple"),selType:e.getPropValue(t.structureProp,"selType"),businessId:e.getPropValue(t.structureProp,"businessId"),onOnChange:n=>e.StructureOnChange(t,n)},null,8,["readonly","dataValue","multiple","selType","businessId","onOnChange"])):n.createCommentVNode("",!0),"Structure_HC"===t.type?(n.openBlock(),n.createBlock(p,{key:5,readonly:e.getPropValue(t.structureProp,"readonly")||e.onlyView,dataValue:e.formModel[t.model],multiple:e.getPropValue(t.structureProp,"multiple"),selType:e.getPropValue(t.structureProp,"selType"),businessId:e.getPropValue(t.structureProp,"businessId"),onOnChange:n=>e.StructureOnChange(t,n)},null,8,["readonly","dataValue","multiple","selType","businessId","onOnChange"])):n.createCommentVNode("",!0),"UploadFileList"===t.type?(n.openBlock(),n.createBlock(h,{key:6,style:n.normalizeStyle(e.uploadFileListStyle(t)),readonly:e.getPropValue(t.uploadFileListProp,"readonly")||e.onlyView,token:e.formModel[t.model],paginationSet:e.getPaginationSet(t),onReturnFileList:n=>e.tokenList(n,t)},null,8,["style","readonly","token","paginationSet","onReturnFileList"])):n.createCommentVNode("",!0),"CASign"===t.type?(n.openBlock(),n.createBlock(d,{key:7,signContent:e.getPropValue(t.signProp,"signContent"),signType:e.getPropValue(t.signProp,"signType"),isFakeVerifySign:e.getPropValue(t.signProp,"isFakeVerifySign"),signResult:e.formModel[t.model],isInstitutionSign:e.getPropValue(t.signProp,"isInstitutionSign"),disabled:e.getPropValue(t.signProp,"readonly")||e.onlyView,onSignSuccess:n=>e.signOnSuccess(t,n)},null,8,["signContent","signType","isFakeVerifySign","signResult","isInstitutionSign","disabled","onSignSuccess"])):n.createCommentVNode("",!0)])),_:1},8,["onlyView","formItems","formModel"])}]]);e.FilePreview=v,e.NvComFormUp=Qn,e.NvDicSelect=Le,e.NvStructureSelect=cn,e.NvStructureSelect_HC=Rn,e.NvStructureTypeSelect=It,e.TextEditor=Be,e.UploadFile=P,e.UploadFileList=Vn,e.loadDictionaryData=je,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));