155 lines
1.7 MiB
JavaScript
Raw Permalink Normal View History

2025-05-29 15:03:59 +08:00
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/401-B36A1Xhp.js","assets/401-DSTrQVat.css","assets/404-BrZahPkv.js","assets/404-WMRUUun1.css","assets/ChunkUpload-CFHQpAPu.js","assets/ChunkUpload-C-_o_mlt.css","assets/index-OfuubCir.js","assets/index-DIkBZuAX.js","assets/definition-CHRXcxuP.js","assets/form-BgAHKV8_.js","assets/index-CTXhDomq.js","assets/vue-treeselect-DSnm48_Q.js","assets/vue-treeselect-BKy4oKKG.css","assets/index-Du6rLO5c.css","assets/model-ODwtVrzi.js","assets/listener-CWhCQe_g.js","assets/StrUtil-DZsLURBF.js","assets/index-CSt_GYBb.js","assets/user-Bxl06CMk.js","assets/role-pNEACQin.js","assets/index-tn0RQdqM.css","assets/expression-CrMDRPjM.js","assets/model-ChD_qJ8o.css","assets/index-CbmkFBxs.js","assets/index-Bc57ylbl.js","assets/index-C5648dCT.js","assets/finished-5kawINlN.js","assets/index-LtoJdqrU.css","assets/index-BY-u25mc.js","assets/index-JtHU4LbG.js","assets/index-B2rux9_7.css","assets/index-BImayqTE.js","assets/index-CamRcWvV.css","assets/index-DoRQM6lT.js","assets/process-DnLyt1wg.js","assets/index-sg3dMtYm.js","assets/todo-DB3o-Pr4.js","assets/index-C84CbPzM.css","assets/index-CtPqYLhL.js","assets/index-BIZMALjE.css","assets/index-Dm7-6FXq.js","assets/index-kMOyXm5n.js","assets/data-BNqb1Obk.js","assets/index-BcFn57to.js","assets/template--CvDN_PQ.js","assets/index-C8_cLJhK.js","assets/index-BEQNQVff.css","assets/index-sgLlFqhl.js","assets/notice-Be3PUons.js","assets/index-5dP0dVIk.css","assets/login-B4TnkPct.js","assets/login-CEBX16Ui.css","assets/addMessage-B-BrN0M7.js","assets/messageSystem-ClP4fER0.js","assets/addMessage-vFpJuR1L.css","assets/index-Ckfp8eqj.js","assets/index-BFrbQKRm.css","assets/smallBell-C6IaCOvq.js","assets/smallBell-D4M69HF6.css","assets/index-DIqeeE1G.js","assets/variable-39NBTa2T.js","assets/index-BnUQlrbx.css","assets/index-DneMiZ3i.js","assets/index-BpiVxHYh.css","assets/index-BQyfft7m.js","assets/cache-D55uyaHR.js","assets/list-DLg3pUuV.js","assets/index-7O7hFmkI.js","assets/index--Vt87SrV.js","assets/index-kM-C8RTM.js","assets/job-Awv3zPuQ.js","assets/index-6kMldHVG.css","assets/log-IWra3Cuf.js","assets/index-D064Md_x.js","assets/mybatis-input-B14AdjwO.js","assets/mybatis-input-B4Y-eYmn.css","assets/online-preview-DxDab4TR.js","assets/online-preview-CtI7ialz.css","assets/register-DzWbLhxz.js","assets/register-uvYMiiHV.css","assets/data-DJh9Yvm4.js","assets/type-DhGCOOB_.js","assets/index-DeYP2Kyo.js","assets/index-HQKYQRlN.js","assets/menu-HdvGTzQ1.js","assets/index-D6OVl3qf.css","assets/index-CpTVRcrM.js","assets/authUser-Q93GWH33.js","assets/selectUser-BcVqyX25.js","assets/index-Cmud_SE2.js","assets/authRole-BEW7v-zu.js","assets/index-CQ3-cWSH.js","assets/index-SIBtZg8v.js","assets/userAvatar-DubUS381.js","assets/userAvatar-CVJxJ39R.css","assets/userInfo-Cy970K7M.js","assets/resetPwd-BGhdRguf.js","assets/resetEmail-CY_eX4lV.js","assets/resetPhone-dBDQ9q2V.js","assets/ModelPanel-C538tuyH.js","assets/director-B1COHWqv.js","assets/ModelPanel--OyxefvH.css","assets/OperatePanel-D4GkKx4G.js","assets/OperatePanel.vue_vue_type_script_setup_true_lang-CNqtAHKg.js","assets/Panel-BuNTrvgX.js","assets/Panel-BP7LyzEu.css","assets/SelectedPanel-9TD4BwnH.js","assets/SelectedPanel.vue_vue_type_script_setup_true_lang-BY970ryd.js","assets/ThreePanel-D93QBOi_.js","assets/ThreePanel-pdkIdO1x.css","assets/gltfmode-DcNPsWxD.js","assets/gltfmode-D8j33Pdn.css","assets/index-eyjniwmU.js","assets/index-DscB4ybq.css","assets/basicInfoForm-5fOuHO08.js","assets/gen-CZVJiz0W.js","assets/createTable-CjEjauE8.js","assets/createTable.vue_vue_type_script_setup_true_lang-BTKPotAL.js","assets/editTable-DjUuRXnG.js","assets/genInfoForm-qfkxhiUG.js","assets/importTable-g_LKvvAi.js","assets/index-CKxQrmhM.js","assets/index-Cpxn0UzG.js"])))=>i.map(i=>d[i]);
var cO=Object.defineProperty;var dO=(e,t,n)=>t in e?cO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Nt=(e,t,n)=>dO(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function mo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const mn={},Ql=[],rn=()=>{},Q_=()=>!1,uc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ih=e=>e.startsWith("onUpdate:"),An=Object.assign,uh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fO=Object.prototype.hasOwnProperty,Yt=(e,t)=>fO.call(e,t),Oe=Array.isArray,ei=e=>xi(e)==="[object Map]",xl=e=>xi(e)==="[object Set]",Rs=e=>xi(e)==="[object Date]",ew=e=>xi(e)==="[object RegExp]",tt=e=>typeof e=="function",Qe=e=>typeof e=="string",Ko=e=>typeof e=="symbol",At=e=>e!==null&&typeof e=="object",hi=e=>(At(e)||tt(e))&&tt(e.then)&&tt(e.catch),zm=Object.prototype.toString,xi=e=>zm.call(e),tw=e=>xi(e).slice(8,-1),ml=e=>xi(e)==="[object Object]",ch=e=>Qe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ti=mo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hO=mo("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),dh=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pO=/-(\w)/g,Zn=dh(e=>e.replace(pO,(t,n)=>n?n.toUpperCase():"")),vO=/\B([A-Z])/g,gr=dh(e=>e.replace(vO,"-$1").toLowerCase()),ki=dh(e=>e.charAt(0).toUpperCase()+e.slice(1)),ni=dh(e=>e?`on${ki(e)}`:""),xr=(e,t)=>!Object.is(e,t),ri=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Hm=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Od=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Nd=e=>{const t=Qe(e)?Number(e):NaN;return isNaN(t)?e:t};let w8;const yf=()=>w8||(w8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),mO=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function gO(e){return mO.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function yO(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const bO={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},_O={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},wO={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},CO={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},SO={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},EO="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",Fm=mo(EO),xO=Fm,C8=2;function kO(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const o=r.filter((l,i)=>i%2===1);r=r.filter((l,i)=>i%2===0);let a=0;const s=[];for(let l=0;l<r.length;l++)if(a+=r[l].length+(o[l]&&o[l].length||0),a>=t){for(let i=l-C8;i<=l+C8||n>a;i++){if(i<0||i>=r.length)continue;const u=i+1;s.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[i]}`);const c=r[i].length,d=o[i]&&o[i].length||0;if(i===l){const h=t-(a-(c+d)),p=Math.max(1,n>a?c-h:n-t);s.push(" | "+" ".repeat(h)+"^".repeat(p))}else if(i>l){if(n>a){const h=Math.max(Math.min(n-a,c),1);s.pu
`)}function Ge(e){if(Oe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Qe(r)?nw(r):Ge(r);if(o)for(const a in o)t[a]=o[a]}return t}else if(Qe(e)||At(e))return e}const TO=/;(?![^(]*\))/g,AO=/:([^]+)/,MO=/\/\*[^]*?\*\//g;function nw(e){const t={};return e.replace(MO,"").split(TO).forEach(n=>{if(n){const r=n.split(AO);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function OO(e){if(!e)return"";if(Qe(e))return e;let t="";for(const n in e){const r=e[n];if(Qe(r)||typeof r=="number"){const o=n.startsWith("--")?n:gr(n);t+=`${o}:${r};`}}return t}function B(e){let t="";if(Qe(e))t=e;else if(Oe(e))for(let n=0;n<e.length;n++){const r=B(e[n]);r&&(t+=r+" ")}else if(At(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Rr(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Qe(t)&&(e.class=B(t)),n&&(e.style=Ge(n)),e}const NO="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",RO="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",LO="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",IO="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",$O=mo(NO),PO=mo(RO),BO=mo(LO),VO=mo(IO),rw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ow=mo(rw),DO=mo(rw+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function qm(e){return!!e||e===""}const zO=/[>/="'\u0009\u000a\u000c\u0020]/,jp={};function HO(e){if(jp.hasOwnProperty(e))return jp[e];const t=zO.test(e);return t&&console.error(`unsafe attribute name: ${e}`),jp[e]=!t}const FO={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},qO=mo("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,transla
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ur;class jm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ur,!t&&Ur&&(this.index=(Ur.scopes||(Ur.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ur;try{return Ur=this,t()}finally{Ur=n}}}on(){Ur=this}off(){Ur=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function fh(e){return new jm(e)}function _f(){return Ur}function wf(e,t=!1){Ur&&Ur.cleanups.push(e)}let Ln;const Kp=new WeakSet;class Rd{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ur&&Ur.active&&Ur.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Kp.has(this)&&(Kp.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||uw(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,S8(this),cw(this);const t=Ln,n=va;Ln=this,va=!0;try{return this.fn()}finally{dw(this),Ln=t,va=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Wm(t);this.deps=this.depsTail=void 0,S8(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Kp.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Av(this)&&this.run()}get dirty(){return Av(this)}}let iw=0,ud,cd;function uw(e,t=!1){if(e.flags|=8,t){e.next=cd,cd=e;return}e.next=ud,ud=e}function Um(){iw++}function Km(){if(--iw>0)return;if(cd){let t=cd;for(cd=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ud;){let t=ud;for(ud=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function cw(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function dw(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Wm(r),QO(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Av(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fw(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fw(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ld))return;e.globalVersion=Ld;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Av(e)){e.flags&=-3;return}const n=Ln,r=va;Ln=e,va=!0;try{cw(e);const o=e.fn(e._value);(t.version===0||xr(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ln=n,va=r,dw(e),e.flags&=-3}}function Wm(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)Wm(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function QO(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function eN(e,t){e.effect instanceof Rd&&(e=e.effect.fn);const n=new Rd(e);t&&An(n,t);try{n.run()}catch(o){throw n.stop(),o}const r=n.run.bind(n);return r.effect=n,r}function tN(e){e.effect.stop()}let va=!0;const hw=[];function kl(){hw.push(va),va=!1}function Tl(){const e=hw.pop();va=e===void 0?!0:e}function S8(e){const{cleanup:t}=e;if(e
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const kw=[];function LN(e){kw.push(e)}function IN(){kw.pop()}function $N(e,t){}const PN={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},BN={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function cc(e,t,n,r){try{return r?e(...r):e()}catch(o){Ai(o,t,n)}}function Wo(e,t,n,r){if(tt(e)){const o=cc(e,t,n,r);return o&&hi(o)&&o.catch(a=>{Ai(a,t,n)}),o}if(Oe(e)){const o=[];for(let a=0;a<e.length;a++)o.push(Wo(e[a],t,n,r));return o}}function Ai(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||mn;if(t){let l=t.parent;const i=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,i,u)===!1)return}l=l.parent}if(a){kl(),cc(a,null,10,[e,i,u]),Tl();return}}VN(e,n,o,r,s)}function VN(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const Kr=[];let Pa=-1;const wu=[];let sl=null,tu=0;const Tw=Promise.resolve();let w2=null;function Ze(e){const t=w2||Tw;return e?t.then(this?e.bind(this):e):t}function DN(e){let t=Pa+1,n=Kr.length;for(;t<n;){const r=t+n>>>1,o=Kr[r],a=Pd(o);a<e||a===e&&o.flags&2?t=r+1:n=r}return t}function Xm(e){if(!(e.flags&1)){const t=Pd(e),n=Kr[Kr.length-1];!n||!(e.flags&2)&&t>=Pd(n)?Kr.push(e):Kr.splice(DN(t),0,e),e.flags|=1,Aw()}}function Aw(){w2||(w2=Tw.then(Mw))}function $d(e){Oe(e)?wu.push(...e):sl&&e.id===-1?sl.splice(tu+1,0,e):e.flags&1||(wu.push(e),e.flags|=1),Aw()}function x8(e,t,n=Pa+1){for(;n<Kr.length;n++){const r=Kr[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Kr.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function C2(e){if(wu.length){const t=[...new Set(wu)].sort((n,r)=>Pd(n)-Pd(r));if(wu.length=0,sl){sl.push(...t);return}for(sl=t,tu=0;tu<sl.length;tu++){const n=sl[tu];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}sl=null,tu=0}}const Pd=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Mw(e){try{for(Pa=0;Pa<Kr.length;Pa++){const t=Kr[Pa];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),cc(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Pa<Kr.length;Pa++){const t=Kr[Pa];t&&(t.flags&=-2)}Pa=-1,Kr.length=0,C2(),w2=null,(Kr.length||wu.length)&&Mw()}}let nu,v0=[];function Ow(e,t){var n,r;nu=e,nu?(nu.enabled=!0,v0.forEach(({event:o,args:a})=>nu.emit(o,...a)),v0=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{Ow(a,t)}),setTimeout(()=>{nu||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,v0=[])},3e3)):v0=[]}let sr=null,bh=null;function Bd(e){const t=sr;return sr=e,bh=e&&e.type.__scopeId||null,t}function zN(e){bh=e}function HN(){bh=null}const FN=e=>Q;function Q(e,t=sr,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Dv(-1);const a=Bd(t);let s;try{s=e(...o)}finally{Bd(a),r._d&&Dv(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function kt(e,t){if(sr===null)return e;const n=xf(sr),r=e.
`&&(b.tagName==="PRE"||b.tagName==="TEXTAREA")&&($=$.slice(1)),b.textContent!==$&&(b0(b,0)||qi(),b.textContent=_.children)}if(L){if(H||!A||x&48){const $=b.tagName.includes("-");for(const D in L)(H&&(D.endsWith("value")||D==="indeterminate")||uc(D)&&!ti(D)||D[0]==="."||$)&&r(b,D,null,L[D],void 0,C)}else if(L.onClick)r(b,"onClick",null,L.onClick,void 0,C);else if(x&4&&qa(L.style))for(const $ in L.style)L.style[$]}let F;(F=L&&L.onVnodeBeforeMount)&&lo(F,C,_),P&&Va(_,null,C,"beforeMount"),((F=L&&L.onVnodeMounted)||P||N)&&yC(()=>{F&&lo(F,C,_),N&&U.enter(b),P&&Va(_,null,C,"mounted")},E)}return b.nextSibling},p=(b,_,C,E,M,A,T)=>{T=T||!!_.dynamicChildren;const L=_.children,x=L.length;for(let O=0;O<x;O++){const P=T?L[O]:L[O]=io(L[O]),U=P.type===ja;b?(U&&!T&&O+1<x&&io(L[O+1]).type===ja&&(i(o(b.data.slice(P.children.length)),C,a(b)),b.data=P.children),b=d(b,P,E,M,A,T)):U&&!P.children?i(P.el=o(""),C):(b0(C,1)||qi(),n(null,P,C,null,E,M,y0(C),A))}return b},v=(b,_,C,E,M,A)=>{const{slotScopeIds:T}=_;T&&(M=M?M.concat(T):T);const L=s(b),x=p(a(b),_,L,C,E,M,A);return x&&pu(x)&&x.data==="]"?a(_.anchor=x):(qi(),i(_.anchor=u("]"),L,x),x)},m=(b,_,C,E,M,A)=>{if(b0(b.parentElement,1)||qi(),_.el=null,A){const x=g(b);for(;;){const O=a(b);if(O&&O!==x)l(O);else break}}const T=a(b),L=s(b);return l(b),n(null,_,L,T,C,E,y0(L),M),C&&(C.vnode.el=_.el,kh(C,_.el)),T},g=(b,_="[",C="]")=>{let E=0;for(;b;)if(b=a(b),b&&pu(b)&&(b.data===_&&E++,b.data===C)){if(E===0)return a(b);E--}return b},y=(b,_,C)=>{const E=_.parentNode;E&&E.replaceChild(b,_);let M=C;for(;M;)M.vnode.el===_&&(M.vnode.el=M.subTree.el=b),M=M.parent},w=b=>b.nodeType===1&&b.tagName==="TEMPLATE";return[c,d]}const N8="data-allow-mismatch",XN={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function b0(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(N8);)e=e.parentElement;const n=e&&e.getAttribute(N8);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(XN[t])}}const JN=yf().requestIdleCallback||(e=>setTimeout(e,1)),ZN=yf().cancelIdleCallback||(e=>clearTimeout(e)),QN=(e=1e4)=>t=>{const n=JN(t,{timeout:e});return()=>ZN(n)};function eR(e){const{top:t,left:n,bottom:r,right:o}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:s}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<s||o>0&&o<s)}const tR=e=>(t,n)=>{const r=new IntersectionObserver(o=>{for(const a of o)if(a.isIntersecting){r.disconnect(),t();break}},e);return n(o=>{if(o instanceof Element){if(eR(o))return t(),r.disconnect(),!1;r.observe(o)}}),()=>r.disconnect()},nR=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},rR=(e=[])=>(t,n)=>{Qe(e)&&(e=[e]);let r=!1;const o=s=>{r||(r=!0,a(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},a=()=>{n(s=>{for(const l of e)s.removeEventListener(l,o)})};return n(s=>{for(const l of e)s.addEventListener(l,o,{once:!0})}),a};function oR(e,t){if(pu(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(pu(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const pl=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function aR(e){tt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:a,timeout:s,suspensible:l=!0,onError:i}=e;let u=null,c,d=0;const h=()=>(d++,u=null,p()),p=()=>{let v;return u||(v=u=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),i)return new Promise((g,y)=>{i(m,()=>g(h()),()=>y(m),d+1)});throw m}).then(m=>v!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return V({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(v,m,g){const y=a?()=>{const w=a(g,b=>oR(v,b));w&&(m.bum||(m.bum=[])).push(w)}:g;c?y():p().then(()=>!m.isUnmounted&&y())},get __asyncResolved(){return c},setup(){const v=ar;if(Qm(v),c)return()=>Xp(c,v);const m=b=>{u=null,Ai(b,v,13,!r)};if(l&&v.suspense||Iu)return p().then(b=>()=>Xp(b,v)).catch(b=>(m(b),()=>r?Y(r,{error:b}):null));const g=z(!1)
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Uv;const D8=typeof window<"u"&&window.trustedTypes;if(D8)try{Uv=D8.createPolicy("vue",{createHTML:e=>e})}catch{}const OC=Uv?e=>Uv.createHTML(e):e=>e,mL="http://www.w3.org/2000/svg",gL="http://www.w3.org/1998/Math/MathML",_s=typeof document<"u"?document:null,z8=_s&&_s.createElement("template"),yL={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?_s.createElementNS(mL,e):t==="mathml"?_s.createElementNS(gL,e):n?_s.createElement(e,{is:n}):_s.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>_s.createTextNode(e),createComment:e=>_s.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_s.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,a){const s=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{z8.innerHTML=OC(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=z8.content;if(r==="svg"||r==="mathml"){const i=l.firstChild;for(;i.firstChild;)l.appendChild(i.firstChild);l.removeChild(i)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Xs="transition",Bc="animation",$u=Symbol("_vtc"),NC={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},RC=An({},Zm,NC),bL=e=>(e.displayName="Transition",e.props=RC,e),Wn=bL((e,{slots:t})=>it(Vw,LC(e),t)),Vl=(e,t=[])=>{Oe(e)?e.forEach(n=>n(...t)):e&&e(...t)},H8=e=>e?Oe(e)?e.some(t=>t.length>1):e.length>1:!1;function LC(e){const t={};for(const O in e)O in NC||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:i=a,appearActiveClass:u=s,appearToClass:c=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=_L(o),m=v&&v[0],g=v&&v[1],{onBeforeEnter:y,onEnter:w,onEnterCancelled:b,onLeave:_,onLeaveCancelled:C,onBeforeAppear:E=y,onAppear:M=w,onAppearCancelled:A=b}=t,T=(O,P,U,H)=>{O._enterCancelled=H,el(O,P?c:l),el(O,P?u:s),U&&U()},L=(O,P)=>{O._isLeaving=!1,el(O,d),el(O,p),el(O,h),P&&P()},x=O=>(P,U)=>{const H=O?M:w,N=()=>T(P,O,U);Vl(H,[P,N]),F8(()=>{el(P,O?i:a),$a(P,O?c:l),H8(H)||q8(P,r,m,N)})};return An(t,{onBeforeEnter(O){Vl(y,[O]),$a(O,a),$a(O,s)},onBeforeAppear(O){Vl(E,[O]),$a(O,i),$a(O,u)},onEnter:x(!1),onAppear:x(!0),onLeave(O,P){O._isLeaving=!0;const U=()=>L(O,P);$a(O,d),O._enterCancelled?($a(O,h),Kv()):(Kv(),$a(O,h)),F8(()=>{O._isLeaving&&(el(O,d),$a(O,p),H8(_)||q8(O,r,g,U))}),Vl(_,[O,U])},onEnterCancelled(O){T(O,!1,void 0,!0),Vl(b,[O])},onAppearCancelled(O){T(O,!0,void 0,!0),Vl(A,[O])},onLeaveCancelled(O){L(O),Vl(C,[O])}})}function _L(e){if(e==null)return null;if(At(e))return[e4(e.enter),e4(e.leave)];{const t=e4(e);return[t,t]}}function e4(e){return Nd(e)}function $a(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$u]||(e[$u]=new Set)).add(t)}function el(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[$u];n&&(n.delete(t),n.size||(e[$u]=void 0))}function F8(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wL=0;function q8(e,t,n,r){const o=e._endId=++wL,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:i}=IC(e,t);if(!s)return r();const u=s+"end";let c=0;const d=()=>{e.removeEventListener(u,h),a()},h=p=>{p.target===e&&++c>=i&&d()};setTimeout(()=>{c<i&&d()},l+1),e.addEventListener(u,h)}function IC(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),o=r(`${Xs}Delay`),a=r(`${Xs}Duration`),s=j8(o,a),l=r(`${Bc}Delay`),i=r(`${Bc}Duration`
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),R("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(S(),he(u,{key:2,class:B(e.ns.e("prefix"))},{default:Q(()=>[Y(i)]),_:1},8,["class"])):ce("v-if",!0),ce(" content "),Y(c),ce(" postfix "),e.isLeaf?ce("v-if",!0):(S(),I(Ue,{key:3},[e.node.loading?(S(),he(u,{key:0,class:B([e.ns.is("loading"),e.ns.e("postfix")])},{default:Q(()=>[Y(d)]),_:1},8,["class"])):(S(),he(u,{key:1,class:B(["arrow-right",e.ns.e("postfix")])},{default:Q(()=>[Y(h)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var Qte=Be(Jte,[["render",Zte],["__file","node.vue"]]);const ene=V({name:"ElCascaderMenu",components:{Loading:ba,ElIcon:et,ElScrollbar:is,ElCascaderNode:Qte},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=wt(),n=Me("cascader-menu"),{t:r}=Ut(),o=fr();let a=null,s=null;const l=He(Q6),i=z(null),u=k(()=>!e.nodes.length),c=k(()=>!l.initialLoaded),d=k(()=>`${o.value}-${e.index}`),h=g=>{a=g.target},p=g=>{if(!(!l.isHoverMenu||!a||!i.value))if(a.contains(g.target)){v();const y=t.vnode.el,{left:w}=y.getBoundingClientRect(),{offsetWidth:b,offsetHeight:_}=y,C=g.clientX-w,E=a.offsetTop,M=E+a.offsetHeight;i.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${C} ${E} L${b} 0 V${E} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${C} ${M} L${b} ${_} V${M} Z" />
`}else s||(s=window.setTimeout(m,l.config.hoverThreshold))},v=()=>{s&&(clearTimeout(s),s=null)},m=()=>{i.value&&(i.value.innerHTML="",v())};return{ns:n,panel:l,hoverZone:i,isEmpty:u,isLoading:c,menuId:d,t:r,handleExpand:h,handleMouseMove:p,clearHoverZone:m}}});function tne(e,t,n,r,o,a){const s=We("el-cascader-node"),l=We("loading"),i=We("el-icon"),u=We("el-scrollbar");return S(),he(u,{key:e.menuId,tag:"ul",role:"menu",class:B(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:Q(()=>{var c;return[(S(!0),I(Ue,null,It(e.nodes,d=>(S(),he(s,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(S(),I("div",{key:0,class:B(e.ns.e("empty-text"))},[Y(i,{size:"14",class:B(e.ns.is("loading"))},{default:Q(()=>[Y(l)]),_:1},8,["class"]),yt(" "+Ne(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(S(),I("div",{key:1,class:B(e.ns.e("empty-text"))},[fe(e.$slots,"empty",{},()=>[yt(Ne(e.t("el.cascader.noData")),1)])],2)):(c=e.panel)!=null&&c.isHoverMenu?(S(),I(Ue,{key:2},[ce(" eslint-disable-next-line vue/html-self-closing "),(S(),I("svg",{ref:"hoverZone",class:B(e.ns.e("hover-zone"))},null,2))],2112)):ce("v-if",!0)]}),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var nne=Be(ene,[["render",tne],["__file","menu.vue"]]);const eg=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Da=e=>ki(e);let rne=0;const one=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let u3=class c3{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=rne++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:a,label:s,children:l}=n,i=t[l],u=one(this);this.level=o?0:r?r.level+1:1,this.value=t[a],this.label=t[s],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=i,this.children=(i||[]).map(c=>new c3(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!wo(i)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:o,checkStrictly:a}=r;return(tt(o)?o(t,this):!!t[o])||!a&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:o}=this,{lazy:a,leaf:s}=n,l=tt(s)?s(t,this):t[s];return jt(l)?a&&!o?!1:!(Oe(r)&&r.length):!!l}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,o=new c3(t,this.config,this);return Oe(n)?n.push(t):this.childrenData=[t],r.push(o),o}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${Da(t)}`;this.children.forEach(o=>{o&&(o.broadcast(t,...n),o[r]&&o[r](...n))})}emit(t,...n){const{parent:r}=this,o=`onChild${Da(t)}`;r&&(r[o]&&r[o](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),r=n.length?n.every(o=>o.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((o,a)=>{const s=a.checked?1:a.indeterminate?.5:0;return o+s},0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const d3=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(d3(r.children,t))),n),[]);class Dy{constructor(t,n){this.config=n;const r=(t||[]).map(o=>new u3(o,this.config));this.nodes=r,this.allNodes=d3(r,!1),this.leafNodes=d3(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new u3(t,this.config);n||this.nodes.push(r),this.appendAllNodesAndLeafNodes(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),s=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),i=function(_){return _&&_.exact?a:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+o+t(_)+")","g")};i.v4=function(b){return b&&b.exact?s:new RegExp(""+t(b)+n+t(b),"g")},i.v6=function(b){return b&&b.exact?l:new RegExp(""+t(b)+o+t(b),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=i.v4().source,h=i.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',w="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+h+"|"+p+v+m+")"+g+y;return $0=new RegExp("(?:^"+w+"$)","i"),$0},cb={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},rd={integer:function(t){return rd.number(t)&&parseInt(t,10)===t},float:function(t){return rd.number(t)&&!rd.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!rd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(cb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cle())},hex:function(t){return typeof t=="string"&&!!t.match(cb.hex)}},dle=function(t,n,r,o,a){if(t.required&&n===void 0){ck(t,n,r,o,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;s.indexOf(l)>-1?rd[l](n)||o.push(Co(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Co(a.messages.types[l],t.fullField,t.type))},fle=function(t,n,r,o,a){var s=typeof t.len=="number",l=typeof t.min=="number",i=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,h=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(h?d="number":p?d="string":v&&(d="array"),!d)return!1;v&&(c=n.length),p&&(c=n.replace(u,"_").length),s?c!==t.len&&o.push(Co(a.messages[d].len,t.fullField,t.len)):l&&!i&&c<t.min?o.push(Co(a.messages[d].min,t.fullField,t.min)):i&&!l&&c>t.max?o.push(Co(a.messages[d].max,t.fullField,t.max)):l&&i&&(c<t.min||c>t.max)&&o.push(Co(a.messages[d].range,t.fullField,t.min,t.max))},Ki="enum",hle=function(t,n,r,o,a){t[Ki]=Array.isArray(t[Ki])?t[Ki]:[],t[Ki].indexOf(n)===-1&&o.push(Co(a.messages[Ki],t.fullField,t[Ki].join(", ")))},ple=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Co(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||o.push(Co(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},gn={required:ck,whitespace:ule,type:dle,range:fle,enum:hle,pattern:ple},vle=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ir(n,"string")&&!t.required)return r();gn.required(t,n,o,s,a,"string"),ir(n,"string")||(gn.type(t,n,o,s,a),gn.range(t,n,o,s,a),gn.pattern(t,n,o,s,a),t.whitespace===!0&&gn.whitespace(t,n,o,s,a))}r(s)},mle=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ir(n)&&!t.required)return r();gn.required(t,n,o,s,a),n!==void 0&&gn.type(t,n,o,s,a)}r(s)},gle=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),ir(n)&&!t.required)return r();gn.required(t,n,o,s,a),n!==void 0&&(gn.type(t,n,o,s,a),gn.range(t,n,o,s,a))}r(s)},yle=function(t,n,r,o,a){var s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ir
M 50 50
m 0 ${_?"":"-"}${b}
a ${b} ${b} 0 1 1 0 ${_?"-":""}${b*2}
a ${b} ${b} 0 1 1 0 ${_?"":"-"}${b*2}
`}),i=k(()=>2*Math.PI*s.value),u=k(()=>t.type==="dashboard"?.75:1),c=k(()=>`${-1*i.value*(1-u.value)/2}px`),d=k(()=>({strokeDasharray:`${i.value*u.value}px, ${i.value}px`,strokeDashoffset:c.value})),h=k(()=>({strokeDasharray:`${i.value*u.value*(t.percentage/100)}px, ${i.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=k(()=>{let b;return t.color?b=w(t.percentage):b=n[t.status]||n.default,b}),v=k(()=>t.status==="warning"?If:t.type==="line"?t.status==="success"?zh:ls:t.status==="success"?yc:ko),m=k(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=k(()=>t.format(t.percentage));function y(b){const _=100/b.length;return b.map((E,M)=>Qe(E)?{color:E,percentage:(M+1)*_}:E).sort((E,M)=>E.percentage-M.percentage)}const w=b=>{var _;const{color:C}=t;if(tt(C))return C(b);if(Qe(C))return C;{const E=y(C);for(const M of E)if(M.percentage>b)return M.color;return(_=E[E.length-1])==null?void 0:_.color}};return(b,_)=>(S(),I("div",{class:B([f(r).b(),f(r).m(b.type),f(r).is(b.status),{[f(r).m("without-text")]:!b.showText,[f(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(S(),I("div",{key:0,class:B(f(r).b("bar"))},[R("div",{class:B(f(r).be("bar","outer")),style:Ge({height:`${b.strokeWidth}px`})},[R("div",{class:B([f(r).be("bar","inner"),{[f(r).bem("bar","inner","indeterminate")]:b.indeterminate},{[f(r).bem("bar","inner","striped")]:b.striped},{[f(r).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:Ge(f(o))},[(b.showText||b.$slots.default)&&b.textInside?(S(),I("div",{key:0,class:B(f(r).be("bar","innerText"))},[fe(b.$slots,"default",{percentage:b.percentage},()=>[R("span",null,Ne(f(g)),1)])],2)):ce("v-if",!0)],6)],6)],2)):(S(),I("div",{key:1,class:B(f(r).b("circle")),style:Ge({height:`${b.width}px`,width:`${b.width}px`})},[(S(),I("svg",{viewBox:"0 0 100 100"},[R("path",{class:B(f(r).be("circle","track")),d:f(l),stroke:`var(${f(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":b.strokeLinecap,"stroke-width":f(a),fill:"none",style:Ge(f(d))},null,14,["d","stroke","stroke-linecap","stroke-width"]),R("path",{class:B(f(r).be("circle","path")),d:f(l),stroke:f(p),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":f(a),style:Ge(f(h))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(S(),I("div",{key:2,class:B(f(r).e("text")),style:Ge({fontSize:`${f(m)}px`})},[fe(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(S(),he(f(et),{key:1},{default:Q(()=>[(S(),he(Rt(f(v))))]),_:1})):(S(),I("span",{key:0},Ne(f(g)),1))])],6)):ce("v-if",!0)],10,["aria-valuenow"]))}});var Zue=Be(Jue,[["__file","progress.vue"]]);const Ck=Tt(Zue),Que=Ie({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ue([Array,Object]),default:()=>Tn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ue([Array,Object]),default:()=>[nd,nd,nd]},voidIcon:{type:un,default:()=>wE},disabledVoidIcon:{type:un,default:()=>nd},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ue(Array),default:()=>Tn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Yn,clearable:Boolean,...hr(["ariaLabel"])}),ece={[Bt]:e=>lt(e),[_t]:e=>lt(e)},tce=V({name:"ElRate"}),nce=V({...tce,props:Que,emits:ece,setup(e,{expose:t,emit:n}){const r=e;function o(N,F){const $=K=>At(K),D=Object.keys(F).map(K=>+K).filter(K=>{const X=F[K];return($(X)?X.excluded:!1)?N<K:N<=K}).sort((K,X)=>K-X),j=F[D[0]];return $(j)&&j.value||j}const a=He(Ri,void 0),s=He(Za,void 0),l=Hn(),i=Me("rate"),{inputId:u,isLabeledByFormItem:c}=Qo(r,{formItemContext:s}),d=z(r.modelValue),h=z(-1),p=z(!0),v=k(()=>[i.b(),i.m(l.value)]),m=k(()
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const Yfe=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=Gfe(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},Xfe={beforeMount(e,t){Yfe(e,t.value)}};let Jfe=1;const Zfe=V({name:"ElTable",directives:{Mousewheel:Xfe},components:{TableHeader:kfe,TableBody:Ife,TableFooter:Bfe,ElScrollbar:is,hColgroup:Wk},props:Hfe,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=Ut(),n=Me("table"),r=wt();Vt(Ta,r);const o=mfe(r,e);r.store=o;const a=new yfe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=a;const s=k(()=>(o.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:i,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:g}=Vfe(o),{isHidden:y,renderExpanded:w,setDragVisible:b,isGroup:_,handleMouseLeave:C,handleHeaderFooterMousewheel:E,tableSize:M,emptyBlockStyle:A,handleFixedMousewheel:T,resizeProxyVisible:L,bodyWidth:x,resizeState:O,doLayout:P,tableBodyStyles:U,tableLayout:H,scrollbarViewStyle:N,scrollbarStyle:F}=Dfe(e,a,o,r),{scrollBarRef:$,scrollTo:D,setScrollLeft:j,setScrollTop:K}=Ffe(),X=vo(P,50),J=`${n.namespace.value}-table_${Jfe++}`;r.tableId=J,r.state={isGroup:_,resizeState:O,doLayout:P,debouncedUpdateLayout:X};const Z=k(()=>{var W;return(W=e.sumText)!=null?W:t("el.table.sumText")}),ee=k(()=>{var W;return(W=e.emptyText)!=null?W:t("el.table.emptyText")}),le=k(()=>Kk(o.states.originColumns.value)[0]);return zfe(r),tn(()=>{X.cancel()}),{ns:n,layout:a,store:o,columns:le,handleHeaderFooterMousewheel:E,handleMouseLeave:C,tableId:J,tableSize:M,isHidden:y,isEmpty:s,renderExpanded:w,resizeProxyVisible:L,resizeState:O,isGroup:_,bodyWidth:x,tableBodyStyles:U,emptyBlockStyle:A,debouncedUpdateLayout:X,handleFixedMousewheel:T,setCurrentRow:l,getSelectionRows:i,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:h,toggleRowExpansion:p,clearSort:v,doLayout:P,sort:m,updateKeyChildren:g,t,setDragVisible:b,context:r,computedSumText:Z,computedEmptyText:ee,tableLayout:H,scrollbarViewStyle:N,scrollbarStyle:F,scrollBarRef:$,scrollTo:D,setScrollLeft:j,setScrollTop:K,allowDragLastColumn:e.allowDragLastColumn}}});function Qfe(e,t,n,r,o,a){const s=We("hColgroup"),l=We("table-header"),i=We("table-body"),u=We("table-footer"),c=We("el-scrollbar"),d=dc("mousewheel");return S(),I("div",{ref:"tableWrapper",class:B([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Ge(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[R("div",{class:B(e.ns.e("inner-wrapper"))},[R("div",{ref:"hiddenColumns",class:"hidden-columns"},[fe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?kt((S(),I("div",{key:0,ref:"headerWrapper",class:B(e.ns.e("header-wrapper"))},[R("table",{ref:"tableHeader",class:B(e.ns.e("header")),style:Ge(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Y(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Y(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","all
`||u==="\r"){s=i;continue}if(a.includes(u)){const c=s===-1?r:s;l={pattern:o.slice(i+1,c),start:i+1,end:c,prefix:u,prefixIndex:i,splitIndex:s,selectionEnd:r};break}}return l},T4e=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,a=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const l=s.style,i=window.getComputedStyle(e),u=e.nodeName==="INPUT";l.whiteSpace=u?"nowrap":"pre-wrap",u||(l.wordWrap="break-word"),l.position="absolute",t.debug||(l.visibility="hidden"),a.forEach(h=>{if(u&&h==="lineHeight")if(i.boxSizing==="border-box"){const p=Number.parseInt(i.height),v=Number.parseInt(i.paddingTop)+Number.parseInt(i.paddingBottom)+Number.parseInt(i.borderTopWidth)+Number.parseInt(i.borderBottomWidth),m=v+Number.parseInt(i.lineHeight);p>m?l.lineHeight=`${p-v}px`:p===m?l.lineHeight=i.lineHeight:l.lineHeight="0"}else l.lineHeight=i.height;else l[h]=i[h]}),jh()?e.scrollHeight>Number.parseInt(i.height)&&(l.overflowY="scroll"):l.overflow="hidden",s.textContent=e.value.slice(0,Math.max(0,o)),u&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g," "));const c=document.createElement("span");c.textContent=e.value.slice(Math.max(0,o))||".",c.style.position="relative",c.style.left=`${-e.scrollLeft}px`,c.style.top=`${-e.scrollTop}px`,s.appendChild(c);const d={top:c.offsetTop+Number.parseInt(i.borderTopWidth),left:c.offsetLeft+Number.parseInt(i.borderLeftWidth),height:Number.parseInt(i.fontSize)*1.5};return t.debug?c.style.backgroundColor="#aaa":document.body.removeChild(s),d.left>=e.clientWidth&&(d.left=e.clientWidth),d},A4e=Ie({...P6,options:{type:ue(Array),default:()=>[]},prefix:{type:ue([String,Array]),default:"@",validator:e=>Qe(e)?e.length===1:e.every(t=>Qe(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:ue([Boolean,Function]),default:()=>x4e,validator:e=>e===!1?!0:tt(e)},placement:{type:ue(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:ue(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:ue(Object),default:()=>({})}}),M4e={[_t]:e=>Qe(e),input:e=>Qe(e),search:(e,t)=>Qe(e)&&Qe(t),select:(e,t)=>Qe(e.value)&&Qe(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},O4e=Ie({options:{type:ue(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),N4e={select:e=>Qe(e.value)},R4e=V({name:"ElMentionDropdown"}),L4e=V({...R4e,props:O4e,emits:N4e,setup(e,{expose:t,emit:n}){const r=e,o=Me("mention"),{t:a}=Ut(),s=z(-1),l=z(),i=z(),u=z(),c=(b,_)=>[o.be("dropdown","item"),o.is("hovering",s.value===_),o.is("disabled",b.disabled||r.disabled)],d=b=>{b.disabled||r.disabled||n("select",b)},h=b=>{s.value=b},p=k(()=>r.disabled||r.options.every(b=>b.disabled)),v=k(()=>r.options[s.value]),m=()=>{v.value&&n("select",v.value)},g=b=>{const{options:_}=r;if(_.length===0||p.value)return;b==="next"?(s.value++,s.value===_.length&&(s.value=0)):b==="prev"&&(s.value--,s.value<0&&(s.value=_.length-1));const C=_[s.value];if(C.disabled){g(b);return}Ze(()=>y(C))},y=b=>{var _,C,E,M;const{options:A}=r,T=A.findIndex(x=>x.value===b.value),L=(_=i.value)==null?void 0:_[T];if(L){const x=(E=(C=u.value)==null?void 0:C.querySelector)==null?void 0:E.call(C,`.${o.be("dropdown","wrap")}`);x&&M6(x,L)}(M=l.value)==null||M.handleScroll()};return E
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&R3e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},l9=Symbol("internals");function jc(e){return e&&String(e).trim().toLowerCase()}function u2(e){return e===!1||e==null?e:qe.isArray(e)?e.map(u2):String(e)}function I3e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $3e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function R4(e,t,n,r,o){if(qe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!qe.isString(t)){if(qe.isString(r))return t.indexOf(r)!==-1;if(qe.isRegExp(r))return r.test(t)}}function P3e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function B3e(e,t){const n=qe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,s){return this[r].call(this,t,o,a,s)},configurable:!0})})}let po=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,i,u){const c=jc(i);if(!c)throw new Error("header name must be a non-empty string");const d=qe.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||i]=u2(l))}const s=(l,i)=>qe.forEach(l,(u,c)=>a(u,c,i));if(qe.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(qe.isString(t)&&(t=t.trim())&&!$3e(t))s(L3e(t),n);else if(qe.isObject(t)&&qe.isIterable(t)){let l={},i,u;for(const c of t){if(!qe.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[u=c[0]]=(i=l[u])?qe.isArray(i)?[...i,c[1]]:[i,c[1]]:c[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=jc(t),t){const r=qe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return I3e(o);if(qe.isFunction(n))return n.call(this,o,r);if(qe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jc(t),t){const r=qe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||R4(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=jc(s),s){const l=qe.findKey(r,s);l&&(!n||R4(r,r[l],l,n))&&(delete r[l],o=!0)}}return qe.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||R4(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return qe.forEach(this,(o,a)=>{const s=qe.findKey(r,a);if(s){n[s]=u2(o),delete n[a];return}const l=t?P3e(a):String(a).trim();l!==a&&delete n[a],n[l]=u2(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return qe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&qe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[l9]=this[l9]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=jc(s);r[l]||(B3e(o,s),r[l]=!0)}return qe.isArray(t)?t.forEach(a):a(t),this}};po.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);qe.reduceDescriptors(po.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});qe.freezeMethods(po);function L4(e,t){const n=this||Kf,r=t||n,o=po.from(r.headers);let a=r.data;return qe.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function SA(e){return!!(e&&e.__CANCEL__)}function kc(e,t,n){nn.call(this,e??"canceled",nn.ERR_CANCELED,t,n),this.name="CanceledError"}qe.inherits(kc,nn,{__CANCEL__:!0});function EA(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new nn("Request failed with status code "+n.status,[nn.ERR_BAD_REQUEST,nn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function V3e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function D3e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(i){const u=Date.now(),c=r[a];s||(s=u),n[o]=i,r[o]=u;let d=a,h=0;for(;d!==o;)h+=n[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-s<t)return;const p=c&&u-c;return p?Math.round(h*1e3/p):void 0}}function z3e(e,t){let n=0,r=1e3/t,o,a;const s=(u,c=Date.now())=>{n=c,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?s(u,c):(o=u,a||(a=setTimeout(()=>{a=null,s(o)},r-d)))},()=>o&&s(o)]}const nh=(e,t,n=3)=>{let r=0;const o=D3e(50,250);return z3e(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,i=s-r,u=o(i),c=s<=l;r=s;const d={loaded:s,total:l,progress:l?s/l:void 0,bytes:i,rate:u||void 0,estimated:u&&l&&c?(l-s)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(d)},n)},i9=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},u9=e=>(...t)=>qe.asap(()=>e(...t)),H3e=Or.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Or.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Or.origin),Or.navigator&&/(msie|trident)/i.test(Or.navigator.userAgent)):()=>!0,F3e=Or.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];qe.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),qe.isString(r)&&s.push("path="+r),qe.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function q3e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function j3e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function xA(e,t,n){let r=!q3e(t);return e&&(r||n==!1)?j3e(e,t):t}const c9=e=>e instanceof po?{...e}:e;function Ei(e,t){t=t||{};const n={};function r(u,c,d,h){return qe.isPlainObject(u)&&qe.isPlainObject(c)?qe.merge.call({caseless:h},u,c):qe.isPlainObject(c)?qe.merge({},c):qe.isArray(c)?c.slice():c}function o(u,c,d,h){if(qe.isUndefined(c)){if(!qe.isUndefined(u))return r(void 0,u,d,h)}else return r(u,c,d,h)}function a(u,c){if(!qe.isUndefined(c))return r(void 0,c)}function s(u,c){if(qe.isUndefined(c)){if(!qe.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const i={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,h
`+a.map(h9).join(`
`):" "+h9(a[0]):"as no adapter specified";throw new nn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:cm};function I4(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kc(null,e)}function p9(e){return I4(e),e.headers=po.from(e.headers),e.data=L4.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),MA.getAdapter(e.adapter||Kf.adapter)(e).then(function(r){return I4(e),r.data=L4.call(e,e.transformResponse,r),r.headers=po.from(r.headers),r},function(r){return SA(r)||(I4(e),r&&r.response&&(r.response.data=L4.call(e,e.transformResponse,r.response),r.response.headers=po.from(r.response.headers))),Promise.reject(r)})}const OA="1.9.0",hp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const v9={};hp.transitional=function(t,n,r){function o(a,s){return"[Axios v"+OA+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new nn(o(s," has been removed"+(n?" in "+n:"")),nn.ERR_DEPRECATED);return n&&!v9[s]&&(v9[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,l):!0}};hp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function rme(e,t,n){if(typeof e!="object")throw new nn("options must be an object",nn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=t[a];if(s){const l=e[a],i=l===void 0||s(l,a,e);if(i!==!0)throw new nn("option "+a+" must be "+i,nn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nn("Unknown option "+a,nn.ERR_BAD_OPTION)}}const c2={assertOptions:rme,validators:hp},La=c2.validators;let fi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new s9,response:new s9}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ei(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&c2.assertOptions(r,{silentJSONParsing:La.transitional(La.boolean),forcedJSONParsing:La.transitional(La.boolean),clarifyTimeoutError:La.transitional(La.boolean)},!1),o!=null&&(qe.isFunction(o)?n.paramsSerializer={serialize:o}:c2.assertOptions(o,{encode:La.function,serialize:La.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),c2.assertOptions(n,{baseUrl:La.spelling("baseURL"),withXsrfToken:La.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&qe.merge(a.common,a[n.method]);a&&qe.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),n.headers=po.concat(s,a);const l=[];let i=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(i=i&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,h;if(!i){const v=[p9.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,u),h=v.length,c=Promise.resolve(n);d<h;)c=c.then(v[d++],v[d++]);return c}h=l.length;let p=n;for(d=0;d<h;){const v=l[d++],m=l[d++];try{p=v(p)}catch(g){m.call(this,g);break}}try{c=p9.call(this,p)}catch(v){return Promise.reject(v)}for(d=0,h=u.length;d<h;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Ei(this.defaults,t);const n=xA(t.baseURL,t.url,t.allowAbsoluteUrls);return _A(n,t.params,t.paramsSerializer)}};qe.forEach(["delete","get","head","options"],function(t){fi.prototype[t]=function(n,r){return this.request(Ei(r||{},{method:t,url:n,data:(r||{}).data}))}});qe.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,l){return this.request(Ei(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}fi.prototype[t]=n(),fi.prototype[t+"Form"]=n(!0)});let ome=class NA{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(l=>{r.subscribe(l),a=l}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,l){r.reason||(r.reason=new kc(a,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new NA(function(o){t=o}),cancel:t}}};function ame(e){return function(n){return e.apply(null,n)}}function sme(e){return qe.isObject(e)&&e.isAxiosError===!0}const dm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeader
* pinia v3.0.2
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let $A;const pp=e=>$A=e,PA=Symbol();function fm(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Sd;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Sd||(Sd={}));function Eme(){const e=fh(!0),t=e.run(()=>z({}));let n=[],r=[];const o=Fo({install(a){pp(o),o._a=a,a.provide(PA,o),a.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const BA=()=>{};function g9(e,t,n,r=BA){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&_f()&&wf(o),o}function Xi(e,...t){e.slice().forEach(n=>{n(...t)})}const xme=e=>e(),y9=Symbol(),$4=Symbol();function hm(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];fm(o)&&fm(r)&&e.hasOwnProperty(n)&&!Qt(r)&&!qa(r)?e[n]=hm(o,r):e[n]=r}return e}const kme=Symbol();function Tme(e){return!fm(e)||!Object.prototype.hasOwnProperty.call(e,kme)}const{assign:rl}=Object;function Ame(e){return!!(Qt(e)&&e.effect)}function Mme(e,t,n,r){const{state:o,actions:a,getters:s}=t,l=n.state.value[e];let i;function u(){l||(n.state.value[e]=o?o():{});const c=Kn(n.state.value[e]);return rl(c,a,Object.keys(s||{}).reduce((d,h)=>(d[h]=Fo(k(()=>{pp(n);const p=n._s.get(e);return s[h].call(p,p)})),d),{}))}return i=VA(e,u,t,n,r,!0),i}function VA(e,t,n={},r,o,a){let s;const l=rl({actions:{}},n),i={deep:!0};let u,c,d=[],h=[],p;const v=r.state.value[e];!a&&!v&&(r.state.value[e]={}),z({});let m;function g(A){let T;u=c=!1,typeof A=="function"?(A(r.state.value[e]),T={type:Sd.patchFunction,storeId:e,events:p}):(hm(r.state.value[e],A),T={type:Sd.patchObject,payload:A,storeId:e,events:p});const L=m=Symbol();Ze().then(()=>{m===L&&(u=!0)}),c=!0,Xi(d,T,r.state.value[e])}const y=a?function(){const{state:T}=n,L=T?T():{};this.$patch(x=>{rl(x,L)})}:BA;function w(){s.stop(),d=[],h=[],r._s.delete(e)}const b=(A,T="")=>{if(y9 in A)return A[$4]=T,A;const L=function(){pp(r);const x=Array.from(arguments),O=[],P=[];function U(F){O.push(F)}function H(F){P.push(F)}Xi(h,{args:x,name:L[$4],store:C,after:U,onError:H});let N;try{N=A.apply(this&&this.$id===e?this:C,x)}catch(F){throw Xi(P,F),F}return N instanceof Promise?N.then(F=>(Xi(O,F),F)).catch(F=>(Xi(P,F),Promise.reject(F))):(Xi(O,N),N)};return L[y9]=!0,L[$4]=T,L},_={_p:r,$id:e,$onAction:g9.bind(null,h),$patch:g,$reset:y,$subscribe(A,T={}){const L=g9(d,A,T.detached,()=>x()),x=s.run(()=>Ee(()=>r.state.value[e],O=>{(T.flush==="sync"?c:u)&&A({storeId:e,type:Sd.direct,events:p},O)},rl({},i,T)));return L},$dispose:w},C=Zt(_);r._s.set(e,C);const M=(r._a&&r._a.runWithContext||xme)(()=>r._e.run(()=>(s=fh()).run(()=>t({action:b}))));for(const A in M){const T=M[A];if(Qt(T)&&!Ame(T)||qa(T))a||(v&&Tme(T)&&(Qt(T)?T.value=v[A]:hm(T,v[A])),r.state.value[e][A]=T);else if(typeof T=="function"){const L=b(T,A);M[A]=L,l.actions[A]=T}}return rl(C,M),rl(cn(C),M),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:A=>{g(T=>{rl(T,A)})}}),r._p.forEach(A=>{rl(C,s.run(()=>A({store:C,app:r._a,pinia:r,options:l})))}),v&&a&&n.hydrate&&n.hydrate(C.$state,v),u=!0,c=!0,C}/*! #__NO_SIDE_EFFECTS__ */function Tc(e,t,n){let r;const o=typeof t=="function";r=o?n:t;function a(s,l){const i=Eh();return s=s||(i?He(PA,null):null),s&&pp(s),s=$A,s._s.has(e)||(o?VA(e,t,r,s):Mme(e,r,s)),s._s.get(e)}return a.$id=e,a}const Ns=Tc("user",{state:()=>({token:xo(),name:"",avatar:"",roleName:"",deptName:"",loginDate:"",roles:[],permissions:[]}),actions:{login(e){const t=e.username.trim(),n=e.password,r=e.code,o=e.uuid;return new Promise((a,s)=>{_me(t,n,r,o).then(l=>{ime(l.token),this.token=l.token,a(null)}).catch(l=>{s(l)})})},getInfo(){return new Promise((e,t)=>{wme().then(n=>{const r=n.user,o=r.avatar==""||r.avatar==null?Sme:r.avatar;n.roles&&n.roles.length>0?(this.roles=n.roles,this.permissions=n.permissions):this.roles=["ROLE_DEFAULT"],this.name=r.userName
* vue-router v4.5.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const lu=typeof document<"u";function DA(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Rme(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&DA(e.default)}const En=Object.assign;function P4(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ca(o)?o.map(e):e(o)}return n}const Ed=()=>{},Ca=Array.isArray,zA=/#/g,Lme=/&/g,Ime=/\//g,$me=/=/g,Pme=/\?/g,HA=/\+/g,Bme=/%5B/g,Vme=/%5D/g,FA=/%5E/g,Dme=/%60/g,qA=/%7B/g,zme=/%7C/g,jA=/%7D/g,Hme=/%20/g;function n8(e){return encodeURI(""+e).replace(zme,"|").replace(Bme,"[").replace(Vme,"]")}function Fme(e){return n8(e).replace(qA,"{").replace(jA,"}").replace(FA,"^")}function pm(e){return n8(e).replace(HA,"%2B").replace(Hme,"+").replace(zA,"%23").replace(Lme,"%26").replace(Dme,"`").replace(qA,"{").replace(jA,"}").replace(FA,"^")}function qme(e){return pm(e).replace($me,"%3D")}function jme(e){return n8(e).replace(zA,"%23").replace(Pme,"%3F")}function Ume(e){return e==null?"":jme(e).replace(Ime,"%2F")}function cf(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Kme=/\/$/,Wme=e=>e.replace(Kme,"");function B4(e,t,n="/"){let r,o={},a="",s="";const l=t.indexOf("#");let i=t.indexOf("?");return l<i&&l>=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,l>-1?l:t.length),o=e(a)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Jme(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:cf(s)}}function Gme(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _9(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yme(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&nc(t.matched[r],n.matched[o])&&UA(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function nc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function UA(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Xme(e[n],t[n]))return!1;return!0}function Xme(e,t){return Ca(e)?w9(e,t):Ca(t)?w9(t,e):e===t}function w9(e,t){return Ca(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Jme(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,s,l;for(s=0;s<r.length;s++)if(l=r[s],l!==".")if(l==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const Zs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var df;(function(e){e.pop="pop",e.push="push"})(df||(df={}));var xd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(xd||(xd={}));function Zme(e){if(!e)if(lu){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Wme(e)}const Qme=/^[^#]+#/;function e6e(e,t){return e.replace(Qme,"#")+t}function t6e(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const vp=()=>({left:window.scrollX,top:window.scrollY});function n6e(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=t6e(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function C9(e,t){return(history.state?history.state.position-t:-1)+e}const vm=new Map;function r6e(e,t){vm.set(e,t)}function o6e(e){const t=vm.get(e);return vm.delete(e),t}let a6e=()=>location.protocol+"//"+location.host;function KA(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let l=o.includes(e.slice(a))?e.slice(a).length:1,i=o.slice(l);return i[0]!=="/"&&(i="/"+i),_9(i,"")}return _9(n,e)+r+o}function s6e(e,t,n,r){let o=[],a=[],s=null;const l=({state:h})=>{const p=KA(e,location),v=n.value,m=t.value;let g=0;if(h){if(n.value=p,t.v
* @license MIT */var Q5e=m2.exports,K9;function eye(){return K9||(K9=1,function(e,t){(function(n,r){e.exports=r()})(Q5e,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(v){var m,g;for(m in v)g=v[m],g!==void 0&&v.hasOwnProperty(m)&&(r[m]=g);return this},n.status=null,n.set=function(v){var m=n.isStarted();v=o(v,r.minimum,1),n.status=v===1?null:v;var g=n.render(!m),y=g.querySelector(r.barSelector),w=r.speed,b=r.easing;return g.offsetWidth,l(function(_){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),i(y,s(v,w,b)),v===1?(i(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){i(g,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){n.remove(),_()},w)},w)):setTimeout(_,w)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var v=function(){setTimeout(function(){n.status&&(n.trickle(),v())},r.trickleSpeed)};return r.trickle&&v(),this},n.done=function(v){return!v&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(v){var m=n.status;return m?(typeof v!="number"&&(v=(1-m)*o(Math.random()*m,.1,.95)),m=o(m+v,0,.994),n.set(m)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var v=0,m=0;n.promise=function(g){return!g||g.state()==="resolved"?this:(m===0&&n.start(),v++,m++,g.always(function(){m--,m===0?(v=0,n.done()):n.set((v-m)/v)}),this)}}(),n.render=function(v){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var m=document.createElement("div");m.id="nprogress",m.innerHTML=r.template;var g=m.querySelector(r.barSelector),y=v?"-100":a(n.status||0),w=document.querySelector(r.parent),b;return i(g,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(b=m.querySelector(r.spinnerSelector),b&&p(b)),w!=document.body&&c(w,"nprogress-custom-parent"),w.appendChild(m),m},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var v=document.getElementById("nprogress");v&&p(v)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var v=document.body.style,m="WebkitTransform"in v?"Webkit":"MozTransform"in v?"Moz":"msTransform"in v?"ms":"OTransform"in v?"O":"";return m+"Perspective"in v?"translate3d":m+"Transform"in v?"translate":"margin"};function o(v,m,g){return v<m?m:v>g?g:v}function a(v){return(-1+v)*100}function s(v,m,g){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+a(v)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+a(v)+"%,0)"}:y={"margin-left":a(v)+"%"},y.transition="all "+m+"ms "+g,y}var l=function(){var v=[];function m(){var g=v.shift();g&&g(m)}return function(g){v.push(g),v.length==1&&m()}}(),i=function(){var v=["Webkit","O","Moz","ms"],m={};function g(_){return _.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,E){return E.toUpperCase()})}function y(_){var C=document.body.style;if(_ in C)return _;for(var E=v.length,M=_.charAt(0).toUpperCase()+_.slice(1),A;E--;)if(A=v[E]+M,A in C)return A;return _}function w(_){return _=g(_),m[_]||(m[_]=y(_))}function b(_,C,E){C=w(C),_.style[C]=E}return function(_,C){var E=arguments,M,A;if(E.length==2)for(M in C)A=C[M],A!==void 0&&C.hasOwnProperty(M)&&b(_,M,A);else b(_,E[1],E[2])}}();function u(v,m){var g=typeof v=="string"?v:h(v);return g.indexOf(" "+m+" ")>=0}function c(v,m){var g=h(v),y=g+m;u(g,m)||(v.className=y.substring(1))}function d(v,m){var g=h(v),y;u(v,m)&&(y=g.replace(" "+m+" "," "),v.className=y.substring(1,y.length-1))}function h(v){return(" "+(v.className||"")+" ").replace(/\s+/gi," ")}function p(v){v&&v.parentNode&&v.parentNode.removeChil
`){const v=new l.default(this.ops);let m=new c,g=0;for(;v.hasNext();){if(v.peekType()!=="insert")return;const y=v.peek(),w=s.default.length(y)-v.peekLength(),b=typeof y.insert=="string"?y.insert.indexOf(p,w)-w:-1;if(b<0)m.push(v.next());else if(b>0)m.push(v.next(b));else{if(h(m,v.next(1).attributes||{},g)===!1)return;g+=1,m=new c}}m.length()>0&&h(m,{},g)}invert(h){const p=new c;return this.reduce((v,m)=>{if(m.insert)p.delete(s.default.length(m));else{if(typeof m.retain=="number"&&m.attributes==null)return p.retain(m.retain),v+m.retain;if(m.delete||typeof m.retain=="number"){const g=m.delete||m.retain;return h.slice(v,v+g).forEach(w=>{m.delete?p.push(w):m.retain&&m.attributes&&p.retain(s.default.length(w),a.default.invert(m.attributes,w.attributes))}),v+g}else if(typeof m.retain=="object"&&m.retain!==null){const g=h.slice(v,v+1),y=new l.default(g.ops).next(),[w,b,_]=u(m.retain,y.insert),C=c.getHandler(w);return p.retain({[w]:C.invert(b,_)},a.default.invert(m.attributes,y.attributes)),v+1}}return v},0),p.chop()}transform(h,p=!1){if(p=!!p,typeof h=="number")return this.transformPosition(h,p);const v=h,m=new l.default(this.ops),g=new l.default(v.ops),y=new c;for(;m.hasNext()||g.hasNext();)if(m.peekType()==="insert"&&(p||g.peekType()!=="insert"))y.retain(s.default.length(m.next()));else if(g.peekType()==="insert")y.push(g.next());else{const w=Math.min(m.peekLength(),g.peekLength()),b=m.next(w),_=g.next(w);if(b.delete)continue;if(_.delete)y.push(_);else{const C=b.retain,E=_.retain;let M=typeof E=="object"&&E!==null?E:w;if(typeof C=="object"&&C!==null&&typeof E=="object"&&E!==null){const A=Object.keys(C)[0];if(A===Object.keys(E)[0]){const T=c.getHandler(A);T&&(M={[A]:T.transform(C[A],E[A],p)})}}y.retain(M,a.default.transform(b.attributes,_.attributes,p))}}return y.chop()}transformPosition(h,p=!1){p=!!p;const v=new l.default(this.ops);let m=0;for(;v.hasNext()&&m<=h;){const g=v.peekLength(),y=v.peekType();if(v.next(),y==="delete"){h-=Math.min(g,h-m);continue}else y==="insert"&&(m<h||!p)&&(h+=g);m+=g}return h}}c.Op=s.default,c.OpIterator=l.default,c.AttributeMap=a.default,c.handlers={},t.default=c,e.exports=c,e.exports.default=c}(F0,F0.exports)),F0.exports}var Yr=Zye();const Dt=eo(Yr);class Oa extends Ao{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Oa.blotName="break";Oa.tagName="BR";let Sa=class extends lh{};const Qye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function wp(e){return e.replace(/[&<>"']/g,t=>Qye[t])}const Ba=class Ba extends l8{static compare(t,n){const r=Ba.order.indexOf(t),o=Ba.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t<n?-1:1}formatAt(t,n,r,o){if(Ba.compare(this.statics.blotName,r)<0&&this.scroll.query(r,zt.BLOT)){const a=this.isolate(t,n);o&&a.wrap(r,o)}else super.formatAt(t,n,r,o)}optimize(t){if(super.optimize(t),this.parent instanceof Ba&&Ba.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}};Nt(Ba,"allowedChildren",[Ba,Oa,Ao,Sa]),Nt(Ba,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let ns=Ba;const o7=1;class br extends pf{constructor(){super(...arguments);Nt(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=kM(this)),this.cache.delta}deleteAt(n,r){super.deleteAt(n,r),this.cache={}}formatAt(n,r,o,a){r<=0||(this.scroll.query(o,zt.BLOCK)?n+r===this.length()&&this.format(o,a):super.formatAt(n,Math.min(r,this.length()-n-1),o,a),this.cache={})}insertAt(n,r,o){if(o!=null){super.insertAt(n,r,o),this.cache={};return}if(r.length===0)return;const a=r.split(`
`),s=a.shift();s.length>0&&(n<this.length()-1||this.children.tail==null?super.insertAt(Math.min(n,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;a.reduce((i,u)=>(l=l.split(i,!0),l.insertAt(0,u),u.length),n+s.length)}insertBefore(n,r){const{head:o}=this.children;super.insertBefore(n,r),o instanceof Oa&&o.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+o7),this.cache.length}moveChildren(n,r){super.moveChildren(n,r),this.cache={}}optimize(n){super.optimize(n),this.cache={}}path(n){return super.path(n,!0)}removeChild(n){super.removeChild(n),this.cache={}}split(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(n===0||n>=this.length()-o7)){const a=this.clone();return n===0?(this.parent.insertBefore(a,this),this):(this.parent.insertBefore(a,this.next),a)}const o=super.split(n,r);return this.cache={},o}}br.blotName="block";br.tagName="P";br.defaultChild=Oa;br.allowedChildren=[Oa,ns,Ao,Sa];class Vo extends Ao{attach(){super.attach(),this.attributes=new bp(this.domNode)}delta(){return new Dt().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,n){const r=this.scroll.query(t,zt.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,n)}formatAt(t,n,r,o){this.format(r,o)}insertAt(t,n,r){if(r!=null){super.insertAt(t,n,r);return}const o=n.split(`
`),a=o.pop(),s=o.map(i=>{const u=this.scroll.create(br.blotName);return u.insertAt(0,i),u}),l=this.split(t);s.forEach(i=>{this.parent.insertBefore(i,l)}),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}}Vo.scope=zt.BLOCK_BLOT;function kM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.descendants(Nr).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),Po(r,{},t)),new Dt).insert(`
`,Po(e))}function Po(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e==null||("formats"in e&&typeof e.formats=="function"&&(t={...t,...e.formats()},n&&delete t["code-token"]),e.parent==null||e.parent.statics.blotName==="scroll"||e.parent.statics.scope!==e.statics.scope)?t:Po(e.parent,t,n)}const No=class No extends Ao{static value(){}constructor(t,n,r){super(t,n),this.selection=r,this.textNode=document.createTextNode(No.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,n){if(this.savedLength!==0){super.format(t,n);return}let r=this,o=0;for(;r!=null&&r.statics.scope!==zt.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=No.CONTENTS.length,r.optimize(),r.formatAt(o,No.CONTENTS.length,t,n),this.savedLength=0)}index(t,n){return t===this.textNode?0:super.index(t,n)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const n=this.prev instanceof Sa?this.prev:null,r=n?n.length():0,o=this.next instanceof Sa?this.next:null,a=o?o.text:"",{textNode:s}=this,l=s.data.split(No.CONTENTS).join("");s.data=No.CONTENTS;let i;if(n)i=n,(l||o)&&(n.insertAt(n.length(),l+a),o&&o.remove());else if(o)i=o,o.insertAt(0,l);else{const u=document.createTextNode(l);i=this.scroll.create(u),this.parent.insertBefore(i,this)}if(this.remove(),t){const u=(h,p)=>n&&h===n.domNode?p:h===s?r+p-1:o&&h===o.domNode?r+l.length+p:null,c=u(t.start.node,t.start.offset),d=u(t.end.node,t.end.offset);if(c!==null&&d!==null)return{startNode:i.domNode,startOffset:c,endNode:i.domNode,endOffset:d}}return null}update(t,n){if(t.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(n.range=r)}}optimize(t){super.optimize(t);let{parent:n}=this;for(;n;){if(n.domNode.tagName==="A"){this.savedLength=No.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}value(){return""}};Nt(No,"blotName","cursor"),Nt(No,"className","ql-cursor"),Nt(No,"tagName","span"),Nt(No,"CONTENTS","\uFEFF");let sc=No;var G4={exports:{}},a7;function ebe(){return a7||(a7=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(i,u,c){this.fn=i,this.context=u,this.once=c||!1}function a(i,u,c,d,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new o(c,d||i,h),v=n?n+u:u;return i._events[v]?i._events[v].fn?i._events[v]=[i._events[v],p]:i._events[v].push(p):(i._events[v]=p,i._eventsCount++),i}function s(i,u){--i._eventsCount===0?i._events=new r:delete i._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],c,d;if(this._eventsCount===0)return u;for(d in c=this._events)t.call(c,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},l.prototype.listeners=function(u){var c=n?n+u:u,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,p=d.length,v=new Array(p);h<p;h++)v[h]=d[h].fn;return v},l.prototype.listenerCount=function(u){var c=n?n+u:u,d=this._events[c];return d?d.fn?1:d.length:0},l.prototype.emit=function(u,c,d,h,p,v){var m=n?n+u:u;if(!this._events[m])return!1;var g=this._events[m],y=arguments.length,w,b;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,c),!0;case 3:return g.fn.call(g.context,c,d),!0;case 4:return g.fn.call(g.context,c,d,h),!0;case 5:return g.fn.call(g.context,c,d,h,p),!0;case 6:return g.fn.call(g.context,c,d,h,p,v),!0}for(b=1,w=new Array(y-1);b<y;b++)w[b-1]=
`)&&(n<=s||!!this.scroll.descendant(Vo,s)[0]),this.scroll.insertAt(s,v);const[m,g]=this.scroll.line(s);let y=Ka({},Po(m));if(m instanceof br){const[w]=m.descendant(Nr,g);w&&(y=Ka(y,Po(w)))}u=Yr.AttributeMap.diff(y,u)||{}}else if(typeof l.insert=="object"){const v=Object.keys(l.insert)[0];if(v==null)return s;const m=this.scroll.query(v,zt.INLINE)!=null;if(m)(n<=s||this.scroll.descendant(Vo,s)[0])&&(d=!0);else if(s>0){const[g,y]=this.scroll.descendant(Nr,s-1);g instanceof Sa?g.value()[y]!==`
`&&(c=!0):g instanceof Ao&&g.statics.scope===zt.INLINE_BLOT&&(c=!0)}if(this.scroll.insertAt(s,v,l.insert[v]),m){const[g]=this.scroll.descendant(Nr,s);if(g){const y=Ka({},Po(g));u=Yr.AttributeMap.diff(y,u)||{}}}}n+=i}else if(o.push(l),l.retain!==null&&typeof l.retain=="object"){const v=Object.keys(l.retain)[0];if(v==null)return s;this.scroll.updateEmbedAt(s,v,l.retain[v])}Object.keys(u).forEach(v=>{this.scroll.formatAt(s,i,v,u[v])});const h=c?1:0,p=d?1:0;return n+=h+p,o.retain(h),o.delete(p),s+i+h+p},0),o.reduce((s,l)=>typeof l.delete=="number"?(this.scroll.deleteAt(s,l.delete),s):s+Yr.Op.length(l),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(t,n){return this.scroll.deleteAt(t,n),this.update(new Dt().retain(t).delete(n))}formatLine(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(a=>{this.scroll.lines(t,Math.max(n,1)).forEach(s=>{s.format(a,r[a])})}),this.scroll.optimize();const o=new Dt().retain(t).retain(n,Ua(r));return this.update(o)}formatText(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(a=>{this.scroll.formatAt(t,n,a,r[a])});const o=new Dt().retain(t).retain(n,Ua(r));return this.update(o)}getContents(t,n){return this.delta.slice(t,t+n)}getDelta(){return this.scroll.lines().reduce((t,n)=>t.concat(n.delta()),new Dt)}getFormat(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],o=[];n===0?this.scroll.path(t).forEach(l=>{const[i]=l;i instanceof br?r.push(i):i instanceof Nr&&o.push(i)}):(r=this.scroll.lines(t,n),o=this.scroll.descendants(Nr,t,n));const[a,s]=[r,o].map(l=>{const i=l.shift();if(i==null)return{};let u=Po(i);for(;Object.keys(u).length>0;){const c=l.shift();if(c==null)return u;u=lbe(Po(c),u)}return u});return{...a,...s}}getHTML(t,n){const[r,o]=this.scroll.line(t);if(r){const a=r.length();return r.length()>=o+n&&!(o===0&&n===a)?vf(r,o,n,!0):vf(this.scroll,t,n,!0)}return""}getText(t,n){return this.getContents(t,n).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(t,n){const r=s7(n),o=new Dt().retain(t).concat(r);return this.scroll.insertContents(t,r),this.update(o)}insertEmbed(t,n,r){return this.scroll.insertAt(t,n,r),this.update(new Dt().retain(t).insert({[n]:r}))}insertText(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n=n.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(t,n),Object.keys(r).forEach(o=>{this.scroll.formatAt(t,n.length,o,r[o])}),this.update(new Dt().retain(t).insert(n,Ua(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==br.blotName)return!1;const n=t;return n.children.length>1?!1:n.children.head instanceof Oa}removeFormat(t,n){const r=this.getText(t,n),[o,a]=this.scroll.line(t+n);let s=0,l=new Dt;o!=null&&(s=o.length()-a,l=o.delta().slice(a,a+s-1).insert(`
`));const u=this.getContents(t,n+s).diff(new Dt().insert(r).concat(l)),c=new Dt().retain(t).concat(u);return this.applyDelta(c)}update(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const o=this.delta;if(n.length===1&&n[0].type==="characterData"&&n[0].target.data.match(abe)&&this.scroll.find(n[0].target)){const a=this.scroll.find(n[0].target),s=Po(a),l=a.offset(this.scroll),i=n[0].oldValue.replace(sc.CONTENTS,""),u=new Dt().insert(i),c=new Dt().insert(a.value()),d=r&&{oldRange:l7(r.oldRange,-l),newRange:l7(r.newRange,-l)};t=new Dt().retain(l).concat(u.diff(c,d)).reduce((p,v)=>v.insert?p.insert(v.insert,s):p.push(v),new Dt),this.delta=o.compose(t)}else this.delta=this.getDelta(),(!t||!jn(o.compose(t),this.delta))&&(t=o.diff(this.delta,r));return t}};function fu(e,t,n){if(e.length===0){const[p]=Z4(n.pop());return t<=0?`</li></${p}>`:`</li></${p}>${fu([],t-1,n)}`}const[{child:r,offset:o,length:a,indent:s,type:l},...i]=e,[u,c]=Z4(l);if(s>t)return n.push(l),s===t+1?`<${u}><li${c}>${vf(r,o,a)}${fu(i,s,n)}`:`<${u}><li>${fu(e,t+1,n)}`;const d=n[n.length-1];if(s===t&&l===d)return`</li><li${c}>${vf(r,o,a)}${fu(i,s,n)}`;const[h]=Z4(n.pop());return`</li></${h}>${fu(e,t-1,n)}`}function vf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in e&&typeof e.html=="function")return e.html(t,n);if(e instanceof Sa)return wp(e.value().slice(t,t+n)).replaceAll(" ","&nbsp;");if(e instanceof ga){if(e.statics.blotName==="list-container"){const u=[];return e.children.forEachAt(t,n,(c,d,h)=>{const p="formats"in c&&typeof c.formats=="function"?c.formats():{};u.push({child:c,offset:d,length:h,indent:p.indent||0,type:p.list})}),fu(u,-1,[])}const o=[];if(e.children.forEachAt(t,n,(u,c,d)=>{o.push(vf(u,c,d))}),r||e.statics.blotName==="list")return o.join("");const{outerHTML:a,innerHTML:s}=e.domNode,[l,i]=a.split(`>${s}<`);return l==="<table"?`<table style="border: 1px solid #000;">${o.join("")}<${i}`:`${l}>${o.join("")}<${i}`}return e.domNode instanceof Element?e.domNode.outerHTML:""}function lbe(e,t){return Object.keys(t).reduce((n,r)=>{if(e[r]==null)return n;const o=t[r];return o===e[r]?n[r]=o:Array.isArray(o)?o.indexOf(e[r])<0?n[r]=o.concat([e[r]]):n[r]=o:n[r]=[o,e[r]],n},{})}function Z4(e){const t=e==="ordered"?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function s7(e){return e.reduce((t,n)=>{if(typeof n.insert=="string"){const r=n.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return t.insert(r,n.attributes)}return t.push(n)},new Dt)}function l7(e,t){let{index:n,length:r}=e;return new El(n+t,r)}function ibe(e){const t=[];return e.forEach(n=>{typeof n.insert=="string"?n.insert.split(`
`).forEach((o,a)=>{a&&t.push({insert:`
`,attributes:n.attributes}),o&&t.push({insert:o,attributes:n.attributes})}):t.push(n)}),t}class ea{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=n}}Nt(ea,"DEFAULTS",{});const K0="\uFEFF";class u8 extends Ao{constructor(t,n){super(t,n),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(K0),this.rightGuard=document.createTextNode(K0),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,n)}restore(t){let n=null,r;const o=t.data.split(K0).join("");if(t===this.leftGuard)if(this.prev instanceof Sa){const a=this.prev.length();this.prev.insertAt(a,o),n={startNode:this.prev.domNode,startOffset:a+o.length}}else r=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(r),this),n={startNode:r,startOffset:o.length};else t===this.rightGuard&&(this.next instanceof Sa?(this.next.insertAt(0,o),n={startNode:this.next.domNode,startOffset:o.length}):(r=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(r),this.next),n={startNode:r,startOffset:o.length}));return t.data=K0,n}update(t,n){t.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const o=this.restore(r.target);o&&(n.range=o)}})}}class ube{constructor(t,n){Nt(this,"isComposing",!1);this.scroll=t,this.emitter=n,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const n=t.target instanceof Node?this.scroll.find(t.target,!0):null;n&&!(n instanceof u8)&&(this.emitter.emit($t.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit($t.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit($t.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit($t.events.COMPOSITION_END,t),this.isComposing=!1}}const Ad=class Ad{constructor(t,n){Nt(this,"modules",{});this.quill=t,this.options=n}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){const n=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new n(this.quill,this.options.modules[t]||{}),this.modules[t]}};Nt(Ad,"DEFAULTS",{modules:{}}),Nt(Ad,"themes",{default:Ad});let lc=Ad;const cbe=e=>e.parentElement||e.getRootNode().host||null,dbe=e=>{const t=e.getBoundingClientRect(),n="offsetWidth"in e&&Math.abs(t.width)/e.offsetWidth||1,r="offsetHeight"in e&&Math.abs(t.height)/e.offsetHeight||1;return{top:t.top,right:t.left+e.clientWidth*n,bottom:t.top+e.clientHeight*r,left:t.left}},W0=e=>{const t=parseInt(e,10);return Number.isNaN(t)?0:t},i7=(e,t,n,r,o,a)=>e<n&&t>r?0:e<n?-(n-e+o):t>r?t-e>r-n?e+o-n:t-r+a:0,fbe=(e,t)=>{var a,s,l;const n=e.ownerDocument;let r=t,o=e;for(;o;){const i=o===n.body,u=i?{top:0,right:((a=window.visualViewport)==null?void 0:a.width)??n.documentElement.clientWidth,bottom:((s=window.visualViewport)==null?void 0:s.height)??n.documentElement.clientHeight,left:0}:dbe(o),c=getComputedStyle(o),d=i7(r.left,r.right,u.left,u.right,W0(c.scrollPaddingLeft),W0(c.scrollPaddingRight)),h=i7(r.top,r.bottom,u.top,u.bottom,W0(c.scrollPaddingTop),W0(c.scrollPaddingBottom));if(d||h)if(i)(l=n.defaultView)==null||l.scrollBy(d,h);else{const{scrollLeft:p,scrollTop:v}=o;h&&(o.scrollTop+=h),d&&(o.scrollLeft+=d);const m=o.scrollLeft-p,g=o.scrollTop-v;r={left:r.left-m,top:r.top-g,right:r.right-m,bottom:r.bottom-g}}o=i||c.position==="fixed"?null:cbe(o)}},hbe=100,pbe=["block","break","cursor","inline","scroll","text"],vbe=(e,t,n)=>{const r=new ac;return pbe.forEach(o=>{const a=t.query(o);a&&r.register(a)}),e.f
`});this.setContents(s)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const r=t;t=document.createElement("div"),t.classList.add(r)}return this.container.insertBefore(t,n),t}blur(){this.selection.setRange(null)}deleteText(t,n,r){return[t,n,,r]=ys(t,n,r),aa.call(this,()=>this.editor.deleteText(t,n),r,t,-1*n)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const n=t();return this.allowReadOnlyEdits=!1,n}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$t.sources.API;return aa.call(this,()=>{const o=this.getSelection(!0);let a=new Dt;if(o==null)return a;if(this.scroll.query(t,zt.BLOCK))a=this.editor.formatLine(o.index,o.length,{[t]:n});else{if(o.length===0)return this.selection.format(t,n),a;a=this.editor.formatText(o.index,o.length,{[t]:n})}return this.setSelection(o,$t.sources.SILENT),a},r)}formatLine(t,n,r,o,a){let s;return[t,n,s,a]=ys(t,n,r,o,a),aa.call(this,()=>this.editor.formatLine(t,n,s),a,t,0)}formatText(t,n,r,o,a){let s;return[t,n,s,a]=ys(t,n,r,o,a),aa.call(this,()=>this.editor.formatText(t,n,s),a,t,0)}getBounds(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof t=="number"?r=this.selection.getBounds(t,n):r=this.selection.getBounds(t.index,t.length),!r)return null;const o=this.container.getBoundingClientRect();return{bottom:r.bottom-o.top,height:r.height,left:r.left-o.left,right:r.right-o.left,top:r.top-o.top,width:r.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,n]=ys(t,n),this.editor.getContents(t,n)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,n):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,n)}getModule(t){return this.theme.modules[t]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(n=n??this.getLength()-t),[t,n]=ys(t,n),this.editor.getHTML(t,n)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(n=n??this.getLength()-t),[t,n]=ys(t,n),this.editor.getText(t,n)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ia.sources.API;return aa.call(this,()=>this.editor.insertEmbed(t,n,r),o,t)}insertText(t,n,r,o,a){let s;return[t,,s,a]=ys(t,0,r,o,a),aa.call(this,()=>this.editor.insertText(t,n,s),a,t,n.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,n,r){return[t,n,,r]=ys(t,n,r),aa.call(this,()=>this.editor.removeFormat(t,n),r,t)}scrollRectIntoView(t){fbe(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecate
`)?o.insertAt(0,n.slice(0,-1),r):o.insertAt(0,n,r)}else{const o=this.scroll.create(n,r);this.appendChild(o)}else super.insertAt(t,n,r);this.optimize()}insertBefore(t,n){if(t.statics.scope===zt.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(t),super.insertBefore(r,n)}else super.insertBefore(t,n)}insertContents(t,n){const r=this.deltaToRenderBlocks(n.concat(new Dt().insert(`
`))),o=r.pop();if(o==null)return;this.batchStart();const a=r.shift();if(a){const i=a.type==="block"&&(a.delta.length()===0||!this.descendant(Vo,t)[0]&&t<this.length()),u=a.type==="block"?a.delta:new Dt().insert({[a.key]:a.value});ev(this,t,u);const c=a.type==="block"?1:0,d=t+u.length()+c;i&&this.insertAt(d-1,`
`);const h=Po(this.line(t)[0]),p=Yr.AttributeMap.diff(h,a.attributes)||{};Object.keys(p).forEach(v=>{this.formatAt(d-1,1,v,p[v])}),t=d}let[s,l]=this.children.find(t);if(r.length&&(s&&(s=s.split(l),l=0),r.forEach(i=>{if(i.type==="block"){const u=this.createBlock(i.attributes,s||void 0);ev(u,0,i.delta)}else{const u=this.create(i.key,i.value);this.insertBefore(u,s||void 0),Object.keys(i.attributes).forEach(c=>{u.format(c,i.attributes[c])})}})),o.type==="block"&&o.delta.length()){const i=s?s.offset(s.scroll)+l:this.length();ev(this,i,o.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const n=this.path(t).pop();if(!n)return[null,-1];const[r,o]=n;return r instanceof Nr?[r,o]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(f7,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(o,a,s)=>{let l=[],i=s;return o.children.forEachAt(a,s,(u,c,d)=>{f7(u)?l.push(u):u instanceof _p&&(l=l.concat(r(u,c,i))),i-=d}),l};return r(this,t,n)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,n),t.length>0&&this.emitter.emit($t.events.SCROLL_OPTIMIZE,t,n))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let n=$t.sources.USER;typeof t=="string"&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(r=>{let{target:o}=r;const a=this.find(o,!0);return a&&!h7(a)}),t.length>0&&this.emitter.emit($t.events.SCROLL_BEFORE_UPDATE,n,t),super.update(t.concat([])),t.length>0&&this.emitter.emit($t.events.SCROLL_UPDATE,n,t)}updateEmbedAt(t,n,r){const[o]=this.descendant(a=>a instanceof Vo,t);o&&o.statics.blotName===n&&h7(o)&&o.updateContent(r)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const n=[];let r=new Dt;return t.forEach(o=>{const a=o==null?void 0:o.insert;if(a)if(typeof a=="string"){const s=a.split(`
`);s.slice(0,-1).forEach(i=>{r.insert(i,o.attributes),n.push({type:"block",delta:r,attributes:o.attributes??{}}),r=new Dt});const l=s[s.length-1];l&&r.insert(l,o.attributes)}else{const s=Object.keys(a)[0];if(!s)return;this.query(s,zt.INLINE)?r.push(o):(r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new Dt,n.push({type:"blockEmbed",key:s,value:a[s],attributes:o.attributes??{}}))}}),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}createBlock(t,n){let r;const o={};Object.entries(t).forEach(l=>{let[i,u]=l;this.query(i,zt.BLOCK&zt.BLOT)!=null?r=i:o[i]=u});const a=this.create(r||this.statics.defaultChild.blotName,r?t[r]:void 0);this.insertBefore(a,n||void 0);const s=a.length();return Object.entries(o).forEach(l=>{let[i,u]=l;a.formatAt(0,s,i,u)}),a}}Nt(hu,"blotName","scroll"),Nt(hu,"className","ql-editor"),Nt(hu,"tagName","DIV"),Nt(hu,"defaultChild",br),Nt(hu,"allowedChildren",[br,Vo,Ii]);function ev(e,t,n){n.reduce((r,o)=>{const a=Yr.Op.length(o);let s=o.attributes||{};if(o.insert!=null){if(typeof o.insert=="string"){const l=o.insert;e.insertAt(r,l);const[i]=e.descendant(Nr,r),u=Po(i);s=Yr.AttributeMap.diff(u,s)||{}}else if(typeof o.insert=="object"){const l=Object.keys(o.insert)[0];if(l==null)return r;if(e.insertAt(r,l,o.insert[l]),e.scroll.query(l,zt.INLINE)!=null){const[u]=e.descendant(Nr,r),c=Po(u);s=Yr.AttributeMap.diff(c,s)||{}}}}return Object.keys(s).forEach(l=>{e.formatAt(r,a,l,s[l])}),r+a},t)}const c8={scope:zt.BLOCK,whitelist:["right","center","justify"]},gbe=new ts("align","align",c8),AM=new Ma("align","ql-align",c8),MM=new Rl("align","text-align",c8);class OM extends Rl{value(t){let n=super.value(t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${n.split(",").map(o=>`00${parseInt(o,10).toString(16)}`.slice(-2)).join("")}`):n}}const ybe=new Ma("color","ql-color",{scope:zt.INLINE}),d8=new OM("color","color",{scope:zt.INLINE}),bbe=new Ma("background","ql-bg",{scope:zt.INLINE}),f8=new OM("background","background-color",{scope:zt.INLINE});class $i extends Ii{static create(t){const n=super.create(t);return n.setAttribute("spellcheck","false"),n}code(t,n){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
`).slice(t,t+n)}html(t,n){return`<pre>
${wp(this.code(t,n))}
</pre>`}}class Vr extends br{static register(){nt.register($i)}}Nt(Vr,"TAB"," ");class h8 extends ns{}h8.blotName="code";h8.tagName="CODE";Vr.blotName="code-block";Vr.className="ql-code-block";Vr.tagName="DIV";$i.blotName="code-block-container";$i.className="ql-code-block-container";$i.tagName="DIV";$i.allowedChildren=[Vr];Vr.allowedChildren=[Sa,Oa,sc];Vr.requiredContainer=$i;const p8={scope:zt.BLOCK,whitelist:["rtl"]},NM=new ts("direction","dir",p8),RM=new Ma("direction","ql-direction",p8),LM=new Rl("direction","direction",p8),IM={scope:zt.INLINE,whitelist:["serif","monospace"]},$M=new Ma("font","ql-font",IM);class _be extends Rl{value(t){return super.value(t).replace(/["']/g,"")}}const PM=new _be("font","font-family",IM),BM=new Ma("size","ql-size",{scope:zt.INLINE,whitelist:["small","large","huge"]}),VM=new Rl("size","font-size",{scope:zt.INLINE,whitelist:["10px","18px","32px"]}),wbe=Gs("quill:keyboard"),Cbe=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class Cp extends ea{static match(t,n){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!n[r]!==t[r]&&n[r]!==null)?!1:n.key===t.key||n.key===t.which}constructor(t,n){super(t,n),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=Ebe(t);if(o==null){wbe.warn("Attempted to add invalid keyboard binding",o);return}typeof n=="function"&&(n={handler:n}),typeof r=="function"&&(r={handler:r}),(Array.isArray(o.key)?o.key:[o.key]).forEach(s=>{const l={...o,key:s,...n,...r};this.bindings[l.key]=this.bindings[l.key]||[],this.bindings[l.key].push(l)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing||t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace"))return;const o=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(y=>Cp.match(t,y));if(o.length===0)return;const a=nt.find(t.target,!0);if(a&&a.scroll!==this.quill.scroll)return;const s=this.quill.getSelection();if(s==null||!this.quill.hasFocus())return;const[l,i]=this.quill.getLine(s.index),[u,c]=this.quill.getLeaf(s.index),[d,h]=s.length===0?[u,c]:this.quill.getLeaf(s.index+s.length),p=u instanceof lh?u.value().slice(0,c):"",v=d instanceof lh?d.value().slice(h):"",m={collapsed:s.length===0,empty:s.length===0&&l.length()<=1,format:this.quill.getFormat(s),line:l,offset:i,prefix:p,suffix:v,event:t};o.some(y=>{if(y.collapsed!=null&&y.collapsed!==m.collapsed||y.empty!=null&&y.empty!==m.empty||y.offset!=null&&y.offset!==m.offset)return!1;if(Array.isArray(y.format)){if(y.format.every(w=>m.format[w]==null))return!1}else if(typeof y.format=="object"&&!Object.keys(y.format).every(w=>y.format[w]===!0?m.format[w]!=null:y.format[w]===!1?m.format[w]==null:jn(y.format[w],m.format[w])))return!1;return y.prefix!=null&&!y.prefix.test(m.prefix)||y.suffix!=null&&!y.suffix.test(m.suffix)?!1:y.handler.call(this,s,m,y)!==!0})&&t.preventDefault()})}handleBackspace(t,n){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(n.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let o={};const[a]=this.quill.getLine(t.index);let s=new Dt().retain(t.index-r).delete(r);if(n.offset===0){const[l]=this.quill.g
`,r);this.quill.updateContents(o,nt.sources.USER),this.quill.setSelection(t.index+1,nt.sources.SILENT),this.quill.focus()}}const Sbe={bindings:{bold:tv("bold"),italic:tv("italic"),underline:tv("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(e,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",nt.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(e,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",nt.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(e,t){t.format.indent!=null?this.quill.format("indent","-1",nt.sources.USER):t.format.list!=null&&this.quill.format("list",!1,nt.sources.USER)}},"indent code-block":p7(!0),"outdent code-block":p7(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(e){this.quill.deleteText(e.index-1,1,nt.sources.USER)}},tab:{key:"Tab",handler(e,t){if(t.format.table)return!0;this.quill.history.cutoff();const n=new Dt().retain(e.index).delete(e.length).insert(" ");return this.quill.updateContents(n,nt.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,nt.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,nt.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(e,t){const n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(e.index,e.length,n,nt.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(e){const[t,n]=this.quill.getLine(e.index),r={...t.formats(),list:"checked"},o=new Dt().retain(e.index).insert(`
`,r).retain(t.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(o,nt.sources.USER),this.quill.setSelection(e.index+1,nt.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(e,t){const[n,r]=this.quill.getLine(e.index),o=new Dt().retain(e.index).insert(`
`,t.format).retain(n.length()-r-1).retain(1,{header:null});this.quill.updateContents(o,nt.sources.USER),this.quill.setSelection(e.index+1,nt.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(e){const t=this.quill.getModule("table");if(t){const[n,r,o,a]=t.getTable(e),s=xbe(n,r,o,a);if(s==null)return;let l=n.offset();if(s<0){const i=new Dt().retain(l).insert(`
`);this.quill.updateContents(i,nt.sources.USER),this.quill.setSelection(e.index+1,e.length,nt.sources.SILENT)}else if(s>0){l+=n.length();const i=new Dt().retain(l).insert(`
`);this.quill.updateContents(i,nt.sources.USER),this.quill.setSelection(l,nt.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(e,t){const{event:n,line:r}=t,o=r.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(o-1,nt.sources.USER):this.quill.setSelection(o+r.length(),nt.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(e,t){if(this.quill.scroll.query("list")==null)return!0;const{length:n}=t.prefix,[r,o]=this.quill.getLine(e.index);if(o>n)return!0;let a;switch(t.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(e.index," ",nt.sources.USER),this.quill.history.cutoff();const s=new Dt().retain(e.index-o).delete(n+1).retain(r.length()-2-o).retain(1,{list:a});return this.quill.updateContents(s,nt.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,nt.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(e){const[t,n]=this.quill.getLine(e.index);let r=2,o=t;for(;o!=null&&o.length()<=1&&o.formats()["code-block"];)if(o=o.prev,r-=1,r<=0){const a=new Dt().retain(e.index+t.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(a,nt.sources.USER),this.quill.setSelection(e.index-1,nt.sources.SILENT),!1}return!0}},"embed left":Y0("ArrowLeft",!1),"embed left shift":Y0("ArrowLeft",!0),"embed right":Y0("ArrowRight",!1),"embed right shift":Y0("ArrowRight",!0),"table down":v7(!1),"table up":v7(!0)}};Cp.DEFAULTS=Sbe;function p7(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler(t,n){let{event:r}=n;const o=this.quill.scroll.query("code-block"),{TAB:a}=o;if(t.length===0&&!r.shiftKey){this.quill.insertText(t.index,a,nt.sources.USER),this.quill.setSelection(t.index+a.length,nt.sources.SILENT);return}const s=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:l,length:i}=t;s.forEach((u,c)=>{e?(u.insertAt(0,a),c===0?l+=a.length:i+=a.length):u.domNode.textContent.startsWith(a)&&(u.deleteAt(0,a.length),c===0?l-=a.length:i-=a.length)}),this.quill.update(nt.sources.USER),this.quill.setSelection(l,i,nt.sources.SILENT)}}}function Y0(e,t){return{key:e,shiftKey:t,altKey:null,[e==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:o}=r;e==="ArrowRight"&&(o+=r.length+1);const[a]=this.quill.getLeaf(o);return a instanceof Ao?(e==="ArrowLeft"?t?this.quill.setSelection(r.index-1,r.length+1,nt.sources.USER):this.quill.setSelection(r.index-1,nt.sources.USER):t?this.quill.setSelection(r.index,r.length+1,nt.sources.USER):this.quill.setSelection(r.index+r.length+1,nt.sources.USER),!1):!0}}}function tv(e){return{key:e[0],shortKey:!0,handler(t,n){this.quill.format(e,!n.format[e],nt.sources.USER)}}}function v7(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,n){const r=e?"prev":"next",o=n.line,a=o.parent[r];if(a!=null){if(a.statics.blotName==="table-row"){let s=a.children.head,l=o;for(;l.prev!=null;)l=l.prev,s=s.next;const i=s.offset(this.quill.scroll)+Math.min(n.offset,s.length()-1);this.quill.setSelection(i,0,nt.sources.USER)}}else{const s=o.table()[r];s!=null&&(e?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,nt.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,nt.sources.USER))}return!1}}}function Ebe(e){if(typeof e=="string"||typeof e=="number")e={key:e};else if(typeof e=="object")e=Ua(e);else return null;return e.shortKey&&(e[Cbe]=e.shortKey,delete e.shortKey),e}function v8(e){let{quill:t,range:n}=e;const r=t.getLines(n);let o={};if(r.length>1){const a=r[0].formats(),s=r[r.length-1].formats();o=Yr.AttributeMap.diff(s,a)||{}}t.deleteText(n,nt.sources.USER),Object.keys(o).length>0&&t.formatLine(n.index,1,o,nt.sources.USER),t.setSelection(n.index,nt.sources.SILENT)}function xbe(e,t,n,r){return t.prev==null&&t.next==null?n.prev==null&&n.next==null?r===0?-1:1:n.prev==null?-1:1:t.prev
`)&&(a.ops[a.ops.length-1].attributes==null||o.table)?a.compose(new Dt().retain(a.length()-1).delete(1)):a}normalizeHTML(t){Vbe(t)}convertHTML(t){const n=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(n);const r=n.body,o=new WeakMap,[a,s]=this.prepareMatching(r,o);return m8(this.quill.scroll,r,a,s,o)}dangerouslyPasteHTML(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nt.sources.API;if(typeof t=="string"){const o=this.convert({html:t,text:""});this.quill.setContents(o,n),this.quill.setSelection(0,nt.sources.SILENT)}else{const o=this.convert({html:n,text:""});this.quill.updateContents(new Dt().retain(t).concat(o),r),this.quill.setSelection(t+o.length(),nt.sources.SILENT)}}onCaptureCopy(t){var s,l;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:o,text:a}=this.onCopy(r,n);(s=t.clipboardData)==null||s.setData("text/plain",a),(l=t.clipboardData)==null||l.setData("text/html",o),n&&v8({range:r,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(n=>n[0]!=="#").join(`
`)}onCapturePaste(t){var s,l,i,u,c;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const n=this.quill.getSelection(!0);if(n==null)return;const r=(s=t.clipboardData)==null?void 0:s.getData("text/html");let o=(l=t.clipboardData)==null?void 0:l.getData("text/plain");if(!r&&!o){const d=(i=t.clipboardData)==null?void 0:i.getData("text/uri-list");d&&(o=this.normalizeURIList(d))}const a=Array.from(((u=t.clipboardData)==null?void 0:u.files)||[]);if(!r&&a.length>0){this.quill.uploader.upload(n,a);return}if(r&&a.length>0){const d=new DOMParser().parseFromString(r,"text/html");if(d.body.childElementCount===1&&((c=d.body.firstElementChild)==null?void 0:c.tagName)==="IMG"){this.quill.uploader.upload(n,a);return}}this.onPaste(n,{html:r,text:o})}onCopy(t){const n=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:n}}onPaste(t,n){let{text:r,html:o}=n;const a=this.quill.getFormat(t.index),s=this.convert({text:r,html:o},a);Dbe.log("onPaste",s,{text:r,html:o});const l=new Dt().retain(t.index).delete(t.length).concat(s);this.quill.updateContents(l,nt.sources.USER),this.quill.setSelection(l.length()-t.length,nt.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,n){const r=[],o=[];return this.matchers.forEach(a=>{const[s,l]=a;switch(s){case Node.TEXT_NODE:o.push(l);break;case Node.ELEMENT_NODE:r.push(l);break;default:Array.from(t.querySelectorAll(s)).forEach(i=>{if(n.has(i)){const u=n.get(i);u==null||u.push(l)}else n.set(i,[l])});break}}),[r,o]}}Nt(DM,"DEFAULTS",{matchers:[]});function Pi(e,t,n,r){return r.query(t)?e.reduce((o,a)=>{if(!a.insert)return o;if(a.attributes&&a.attributes[t])return o.push(a);const s=n?{[t]:n}:{};return o.insert(a.insert,{...s,...a.attributes})},new Dt):e}function Gf(e,t){let n="";for(let r=e.ops.length-1;r>=0&&n.length<t.length;--r){const o=e.ops[r];if(typeof o.insert!="string")break;n=o.insert+n}return n.slice(-1*t.length)===t}function fl(e,t){if(!(e instanceof Element))return!1;const n=t.query(e);return n&&n.prototype instanceof Ao?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(e.tagName.toLowerCase())}function Fbe(e,t){return e.previousElementSibling&&e.nextElementSibling&&!fl(e.previousElementSibling,t)&&!fl(e.nextElementSibling,t)}const X0=new WeakMap;function zM(e){return e==null?!1:(X0.has(e)||(e.tagName==="PRE"?X0.set(e,!0):X0.set(e,zM(e.parentNode))),X0.get(e))}function m8(e,t,n,r,o){return t.nodeType===t.TEXT_NODE?r.reduce((a,s)=>s(t,a,e),new Dt):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((a,s)=>{let l=m8(e,s,n,r,o);return s.nodeType===t.ELEMENT_NODE&&(l=n.reduce((i,u)=>u(s,i,e),l),l=(o.get(s)||[]).reduce((i,u)=>u(s,i,e),l)),a.concat(l)},new Dt):new Dt}function nv(e){return(t,n,r)=>Pi(n,e,!0,r)}function qbe(e,t,n){const r=ts.keys(e),o=Ma.keys(e),a=Rl.keys(e),s={};return r.concat(o).concat(a).forEach(l=>{let i=n.query(l,zt.ATTRIBUTE);i!=null&&(s[i.attrName]=i.value(e),s[i.attrName])||(i=Hbe[l],i!=null&&(i.attrName===l||i.keyName===l)&&(s[i.attrName]=i.value(e)||void 0),i=g7[l],i!=null&&(i.attrName===l||i.keyName===l)&&(i=g7[l],s[i.attrName]=i.value(e)||void 0))}),Object.entries(s).reduce((l,i)=>{let[u,c]=i;return Pi(l,u,c,n)},t)}function jbe(e,t,n){const r=n.query(e);if(r==null)return t;if(r.prototype instanceof Ao){const o={},a=r.value(e);if(a!=null)return o[r.blotName]=a,new Dt().insert(o,r.formats(e,n))}else if(r.prototype instanceof pf&&!Gf(t,`
`)&&t.insert(`
`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return Pi(t,r.blotName,r.formats(e,n),n);return t}function Ube(e,t){return Gf(t,`
`)||t.insert(`
`),t}function Kbe(e,t,n){const r=n.query("code-block"),o=r&&"formats"in r&&typeof r.formats=="function"?r.formats(e,n):!0;return Pi(t,"code-block",o,n)}function Wbe(){return new Dt}function Gbe(e,t,n){const r=n.query(e);if(r==null||r.blotName!=="list"||!Gf(t,`
`))return t;let o=-1,a=e.parentNode;for(;a!=null;)["OL","UL"].includes(a.tagName)&&(o+=1),a=a.parentNode;return o<=0?t:t.reduce((s,l)=>l.insert?l.attributes&&typeof l.attributes.indent=="number"?s.push(l):s.insert(l.insert,{indent:o,...l.attributes||{}}):s,new Dt)}function Ybe(e,t,n){const r=e;let o=r.tagName==="OL"?"ordered":"bullet";const a=r.getAttribute("data-checked");return a&&(o=a==="true"?"checked":"unchecked"),Pi(t,"list",o,n)}function y7(e,t,n){if(!Gf(t,`
`)){if(fl(e,n)&&(e.childNodes.length>0||e instanceof HTMLParagraphElement))return t.insert(`
`);if(t.length()>0&&e.nextSibling){let r=e.nextSibling;for(;r!=null;){if(fl(r,n))return t.insert(`
`);const o=n.query(r);if(o&&o.prototype instanceof Vo)return t.insert(`
`);r=r.firstChild}}}return t}function Xbe(e,t,n){var a;const r={},o=e.style||{};return o.fontStyle==="italic"&&(r.italic=!0),o.textDecoration==="underline"&&(r.underline=!0),o.textDecoration==="line-through"&&(r.strike=!0),((a=o.fontWeight)!=null&&a.startsWith("bold")||parseInt(o.fontWeight,10)>=700)&&(r.bold=!0),t=Object.entries(r).reduce((s,l)=>{let[i,u]=l;return Pi(s,i,u,n)},t),parseFloat(o.textIndent||0)>0?new Dt().insert(" ").concat(t):t}function Jbe(e,t,n){var o,a;const r=((o=e.parentElement)==null?void 0:o.tagName)==="TABLE"?e.parentElement:(a=e.parentElement)==null?void 0:a.parentElement;if(r!=null){const l=Array.from(r.querySelectorAll("tr")).indexOf(e)+1;return Pi(t,"table",l,n)}return t}function Zbe(e,t,n){var o;let r=e.data;if(((o=e.parentElement)==null?void 0:o.tagName)==="O:P")return t.insert(r.trim());if(!zM(e)){if(r.trim().length===0&&r.includes(`
`)&&!Fbe(e,n))return t;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(e.previousSibling==null&&e.parentElement!=null&&fl(e.parentElement,n)||e.previousSibling instanceof Element&&fl(e.previousSibling,n))&&(r=r.replace(/^ /,"")),(e.nextSibling==null&&e.parentElement!=null&&fl(e.parentElement,n)||e.nextSibling instanceof Element&&fl(e.nextSibling,n))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return t.insert(r)}class HM extends ea{constructor(n,r){super(n,r);Nt(this,"lastRecorded",0);Nt(this,"ignoreChange",!1);Nt(this,"stack",{undo:[],redo:[]});Nt(this,"currentRange",null);this.quill.on(nt.events.EDITOR_CHANGE,(o,a,s,l)=>{o===nt.events.SELECTION_CHANGE?a&&l!==nt.sources.SILENT&&(this.currentRange=a):o===nt.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||l===nt.sources.USER?this.record(a,s):this.transform(a)),this.currentRange=Lm(this.currentRange,a))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",o=>{o.inputType==="historyUndo"?(this.undo(),o.preventDefault()):o.inputType==="historyRedo"&&(this.redo(),o.preventDefault())})}change(n,r){if(this.stack[n].length===0)return;const o=this.stack[n].pop();if(!o)return;const a=this.quill.getContents(),s=o.delta.invert(a);this.stack[r].push({delta:s,range:Lm(o.range,s)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(o.delta,nt.sources.USER),this.ignoreChange=!1,this.restoreSelection(o)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(n,r){if(n.ops.length===0)return;this.stack.redo=[];let o=n.invert(r),a=this.currentRange;const s=Date.now();if(this.lastRecorded+this.options.delay>s&&this.stack.undo.length>0){const l=this.stack.undo.pop();l&&(o=o.compose(l.delta),a=l.range)}else this.lastRecorded=s;o.length()!==0&&(this.stack.undo.push({delta:o,range:a}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(n){b7(this.stack.undo,n),b7(this.stack.redo,n)}undo(){this.change("undo","redo")}restoreSelection(n){if(n.range)this.quill.setSelection(n.range,nt.sources.USER);else{const r=e9e(this.quill.scroll,n.delta);this.quill.setSelection(r,nt.sources.USER)}}}Nt(HM,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function b7(e,t){let n=t;for(let r=e.length-1;r>=0;r-=1){const o=e[r];e[r]={delta:n.transform(o.delta,!0),range:o.range&&Lm(o.range,n)},n=o.delta.transform(n),e[r].delta.length()===0&&e.splice(r,1)}}function Qbe(e,t){const n=t.ops[t.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
`):n.attributes!=null?Object.keys(n.attributes).some(r=>e.query(r,zt.BLOCK)!=null):!1}function e9e(e,t){const n=t.reduce((o,a)=>o+(a.delete||0),0);let r=t.length()-n;return Qbe(e,t)&&(r-=1),r}function Lm(e,t){if(!e)return e;const n=t.transformPosition(e.index),r=t.transformPosition(e.index+e.length);return{index:n,length:r-n}}class FM extends ea{constructor(t,n){super(t,n),t.root.addEventListener("drop",r=>{var s;r.preventDefault();let o=null;if(document.caretRangeFromPoint)o=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const l=document.caretPositionFromPoint(r.clientX,r.clientY);o=document.createRange(),o.setStart(l.offsetNode,l.offset),o.setEnd(l.offsetNode,l.offset)}const a=o&&t.selection.normalizeNative(o);if(a){const l=t.selection.normalizedToRange(a);(s=r.dataTransfer)!=null&&s.files&&this.upload(l,r.dataTransfer.files)}})}upload(t,n){const r=[];Array.from(n).forEach(o=>{var a;o&&((a=this.options.mimetypes)!=null&&a.includes(o.type))&&r.push(o)}),r.length>0&&this.options.handler.call(this,t,r)}}FM.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){if(!this.quill.scroll.query("image"))return;const n=t.map(r=>new Promise(o=>{const a=new FileReader;a.onload=()=>{o(a.result)},a.readAsDataURL(r)}));Promise.all(n).then(r=>{const o=r.reduce((a,s)=>a.insert({image:s}),new Dt().retain(e.index).delete(e.length));this.quill.updateContents(o,$t.sources.USER),this.quill.setSelection(e.index+r.length,$t.sources.SILENT)})}};const t9e=["insertText","insertReplacementText"];class n9e extends ea{constructor(t,n){super(t,n),t.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||t.on(nt.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){v8({range:t,quill:this.quill})}replaceText(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(n){const r=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new Dt().retain(t.index).insert(n,r),nt.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+n.length,0,nt.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!t9e.includes(t.inputType))return;const n=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!n||n.collapsed===!0)return;const r=r9e(t);if(r==null)return;const o=this.quill.selection.normalizeNative(n),a=o?this.quill.selection.normalizedToRange(o):null;a&&this.replaceText(a,r)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function r9e(e){var t;return typeof e.data=="string"?e.data:(t=e.dataTransfer)!=null&&t.types.includes("text/plain")?e.dataTransfer.getData("text/plain"):null}const o9e=/Mac/i.test(navigator.platform),a9e=100,s9e=e=>!!(e.key==="ArrowLeft"||e.key==="ArrowRight"||e.key==="ArrowUp"||e.key==="ArrowDown"||e.key==="Home"||o9e&&e.key==="a"&&e.ctrlKey===!0);class l9e extends ea{constructor(n,r){super(n,r);Nt(this,"isListening",!1);Nt(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(n,r){let{line:o,event:a}=r;if(!(o instanceof ga)||!o.uiNode)return!0;const s=getComputedStyle(o.domNode).direction==="rtl";return s&&a.key!=="ArrowRight"||!s&&a.key!=="ArrowLeft"?!0:(this.quill.setSelection(n.index-1,n.length+(a.shiftKey?1:0),nt.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",n=>{!n.defaultPrevented&&s9e(n)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+a9e,this.isListening)return;this.isListening=!0;const n=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",n,{once:!0})}handleSelectionChange(){const n=document.getSelection();if(!n)return;const r=n.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!==0)r
`)}
`,a=Bo.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==o){if(o.trim().length>0||this.cachedText==null){const s=this.children.reduce((i,u)=>i.concat(kM(u,!1)),new Dt),l=t(o,a);s.diff(l).reduce((i,u)=>{let{retain:c,attributes:d}=u;return c?(d&&Object.keys(d).forEach(h=>{[Bo.blotName,Fs.blotName].includes(h)&&this.formatAt(i,c,h,d[h])}),i+c):i},0)}this.cachedText=o,this.forceNext=!1}}html(t,n){const[r]=this.children.find(t);return`<pre data-language="${r?Bo.formats(r.domNode):"plain"}">
${wp(this.code(t,n))}
</pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const n=Bo.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}Td.allowedChildren=[Bo];Bo.requiredContainer=Td;Bo.allowedChildren=[Fs,sc,Sa,Oa];const d9e=(e,t,n)=>{if(typeof e.versionString=="string"){const r=e.versionString.split(".")[0];if(parseInt(r,10)>=11)return e.highlight(n,{language:t}).value}return e.highlight(t,n).value};class jM extends ea{static register(){nt.register(Fs,!0),nt.register(Bo,!0),nt.register(Td,!0)}constructor(t,n){if(super(t,n),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,o)=>{let{key:a}=o;return r[a]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(nt.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof Td))return;const n=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:o,label:a}=r;const s=n.ownerDocument.createElement("option");s.textContent=a,s.setAttribute("value",o),n.appendChild(s)}),n.addEventListener("change",()=>{t.format(Bo.blotName,n.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(n),t.children.head&&(n.value=Bo.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(nt.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(nt.sources.USER);const r=this.quill.getSelection();(t==null?this.quill.scroll.descendants(Td):[t]).forEach(a=>{a.highlight(this.highlightBlot,n)}),this.quill.update(nt.sources.SILENT),r!=null&&this.quill.setSelection(r,nt.sources.SILENT)}highlightBlot(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(n=this.languages[n]?n:"plain",n==="plain")return wp(t).split(`
`).reduce((o,a,s)=>(s!==0&&o.insert(`
`,{[Vr.blotName]:n}),o.insert(a)),new Dt);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(Vr.className),r.innerHTML=d9e(this.options.hljs,n,t),m8(this.quill.scroll,r,[(o,a)=>{const s=id.value(o);return s?a.compose(new Dt().retain(a.length(),{[Fs.blotName]:s})):a}],[(o,a)=>o.data.split(`
`).reduce((s,l,i)=>(i!==0&&s.insert(`
`,{[Vr.blotName]:n}),s.insert(l)),a)],new WeakMap)}}jM.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Md=class Md extends br{static create(t){const n=super.create();return t?n.setAttribute("data-row",t):n.setAttribute("data-row",g8()),n}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,n){t===Md.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(t,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Nt(Md,"blotName","table"),Nt(Md,"tagName","TD");let fa=Md;class qs extends Ii{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),o=this.next.children.tail.formats();return t.table===n.table&&t.table===r.table&&t.table===o.table}return!1}optimize(t){super.optimize(t),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),o=n.next.formats();if(r.table!==o.table){const a=this.splitAfter(n);a&&a.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Nt(qs,"blotName","table-row"),Nt(qs,"tagName","TR");class Ya extends Ii{}Nt(Ya,"blotName","table-body"),Nt(Ya,"tagName","TBODY");class ic extends Ii{balanceCells(){const t=this.descendants(qs),n=t.reduce((r,o)=>Math.max(o.children.length,r),0);t.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let o;r.children.head!=null&&(o=fa.formats(r.children.head.domNode));const a=this.scroll.create(fa.blotName,o);r.appendChild(a),a.optimize()})})}cells(t){return this.rows().map(n=>n.children.at(t))}deleteColumn(t){const[n]=this.descendant(Ya);n==null||n.children.head==null||n.children.forEach(r=>{const o=r.children.at(t);o!=null&&o.remove()})}insertColumn(t){const[n]=this.descendant(Ya);n==null||n.children.head==null||n.children.forEach(r=>{const o=r.children.at(t),a=fa.formats(r.children.head.domNode),s=this.scroll.create(fa.blotName,a);r.insertBefore(s,o)})}insertRow(t){const[n]=this.descendant(Ya);if(n==null||n.children.head==null)return;const r=g8(),o=this.scroll.create(qs.blotName);n.children.head.children.forEach(()=>{const s=this.scroll.create(fa.blotName,r);o.appendChild(s)});const a=n.children.at(t);n.insertBefore(o,a)}rows(){const t=this.children.head;return t==null?[]:t.children.map(n=>n)}}Nt(ic,"blotName","table-container"),Nt(ic,"tagName","TABLE");ic.allowedChildren=[Ya];Ya.requiredContainer=ic;Ya.allowedChildren=[qs];qs.requiredContainer=Ya;qs.allowedChildren=[fa];fa.requiredContainer=qs;function g8(){return`row-${Math.random().toString(36).slice(2,6)}`}class f9e extends ea{static register(){nt.register(fa),nt.register(qs),nt.register(Ya),nt.register(ic)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(ic).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,n]=this.getTable();n!=null&&(t.deleteColumn(n.cellOffset()),this.quill.update(nt.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(nt.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const n=t.offset();t.remove(),this.quill.update(nt.sources.USER),this.quill.setSelection(n,nt.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[n,r]=this.quill.getLine(t.index);if(n==null||n.statics.blotName!==fa.blotName)return[null,null,null,-1];const o=n.parent;return[o.parent.par
`).join("");return a.insert(s,{table:g8()})},new Dt().retain(r.index));this.quill.updateContents(o,nt.sources.USER),this.quill.setSelection(r.index,nt.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(nt.events.SCROLL_OPTIMIZE,t=>{t.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(nt.events.TEXT_CHANGE,(r,o,a)=>{a===nt.sources.USER&&this.balanceTables()}),!0):!1)})}}const C7=Gs("quill:toolbar");class y8 extends ea{constructor(t,n){var r,o;if(super(t,n),Array.isArray(this.options.container)){const a=document.createElement("div");a.setAttribute("role","toolbar"),h9e(a,this.options.container),(o=(r=t.container)==null?void 0:r.parentNode)==null||o.insertBefore(a,t.container),this.container=a}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){C7.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(a=>{var l;const s=(l=this.options.handlers)==null?void 0:l[a];s&&this.addHandler(a,s)}),Array.from(this.container.querySelectorAll("button, select")).forEach(a=>{this.attach(a)}),this.quill.on(nt.events.EDITOR_CHANGE,()=>{const[a]=this.quill.selection.getRange();this.update(a)})}addHandler(t,n){this.handlers[t]=n}attach(t){let n=Array.from(t.classList).find(o=>o.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){C7.warn("ignoring attaching to nonexistent format",n,t);return}const r=t.tagName==="SELECT"?"change":"click";t.addEventListener(r,o=>{let a;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const l=t.options[t.selectedIndex];l.hasAttribute("selected")?a=!1:a=l.value||!1}else t.classList.contains("ql-active")?a=!1:a=t.value||!t.hasAttribute("value"),o.preventDefault();this.quill.focus();const[s]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,a);else if(this.quill.scroll.query(n).prototype instanceof Ao){if(a=prompt(`Enter ${n}`),!a)return;this.quill.updateContents(new Dt().retain(s.index).delete(s.length).insert({[n]:a}),nt.sources.USER)}else this.quill.format(n,a,nt.sources.USER);this.update(s)}),this.controls.push([n,t])}update(t){const n=t==null?{}:this.quill.getFormat(t);this.controls.forEach(r=>{const[o,a]=r;if(a.tagName==="SELECT"){let s=null;if(t==null)s=null;else if(n[o]==null)s=a.querySelector("option[selected]");else if(!Array.isArray(n[o])){let l=n[o];typeof l=="string"&&(l=l.replace(/"/g,'\\"')),s=a.querySelector(`option[value="${l}"]`)}s==null?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(t==null)a.classList.remove("ql-active"),a.setAttribute("aria-pressed","false");else if(a.hasAttribute("value")){const s=n[o],l=s===a.getAttribute("value")||s!=null&&s.toString()===a.getAttribute("value")||s==null&&!a.getAttribute("value");a.classList.toggle("ql-active",l),a.setAttribute("aria-pressed",l.toString())}else{const s=n[o]!=null;a.classList.toggle("ql-active",s),a.setAttribute("aria-pressed",s.toString())}})}}y8.DEFAULTS={};function S7(e,t,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),n!=null?(r.value=n,r.setAttribute("aria-label",`${t}: ${n}`)):r.setAttribute("aria-label",t),e.appendChild(r)}function h9e(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(o=>{if(typeof o=="string")S7(r,o);else{const a=Object.keys(o)[0],s=o[a];Array.isArray(s)?p9e(r,a,s):S7(r,a,s)}}),e.appendChild(r)})}function p9e(e,t,n){const r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(o=>{const a=document.createElement("option");o!==!1?a.setAttribute("value",String(o)):a.setAttribute("selected","selected"),r.appendChild(a)}),e.appendChild(r)}y8.DEFAULTS={contain
Update propagation: `+G.chain.join(" -> ")),G.type){case"self-declined":j.onDeclined&&j.onDeclined(G),j.ignoreDeclined||(re=new Error("Aborted because of self decline: "+G.moduleId+be));break;case"declined":j.onDeclined&&j.onDeclined(G),j.ignoreDeclined||(re=new Error("Aborted because of declined dependency: "+G.moduleId+" in "+G.parentId+be));break;case"unaccepted":j.onUnaccepted&&j.onUnaccepted(G),j.ignoreUnaccepted||(re=new Error("Aborted because "+ee+" is not accepted"+be));break;case"accepted":j.onAccepted&&j.onAccepted(G),pe=!0;break;case"disposed":j.onDisposed&&j.onDisposed(G),Ae=!0;break;default:throw new Error("Unexception type "+G.type)}if(re)return b("abort"),Promise.reject(re);if(pe){ye[ee]=L[ee],W(ae,G.outdatedModules);for(ee in G.outdatedDependencies)Object.prototype.hasOwnProperty.call(G.outdatedDependencies,ee)&&(ne[ee]||(ne[ee]=[]),W(ne[ee],G.outdatedDependencies[ee]))}Ae&&(W(ae,[G.moduleId]),ye[ee]=ge)}var Ce=[];for(X=0;X<ae.length;X++)ee=ae[X],$[ee]&&$[ee].hot._selfAccepted&&ye[ee]!==ge&&Ce.push({module:ee,errorHandler:$[ee].hot._selfAccepted});b("dispose"),Object.keys(A).forEach(function(pt){A[pt]===!1&&o(pt)});for(var xe,Re=ae.slice();Re.length>0;)if(ee=Re.pop(),Z=$[ee],!!Z){var $e={},Le=Z.hot._disposeHandlers;for(J=0;J<Le.length;J++)K=Le[J],K($e);for(d[ee]=$e,Z.hot.active=!1,delete $[ee],delete ne[ee],J=0;J<Z.children.length;J++){var Je=$[Z.children[J]];Je&&(xe=Je.parents.indexOf(ee),xe>=0&&Je.parents.splice(xe,1))}}var we,De;for(ee in ne)if(Object.prototype.hasOwnProperty.call(ne,ee)&&(Z=$[ee],Z))for(De=ne[ee],J=0;J<De.length;J++)we=De[J],xe=Z.children.indexOf(we),xe>=0&&Z.children.splice(xe,1);b("apply"),u=x;for(ee in ye)Object.prototype.hasOwnProperty.call(ye,ee)&&(r[ee]=ye[ee]);var rt=null;for(ee in ne)if(Object.prototype.hasOwnProperty.call(ne,ee)&&(Z=$[ee],Z)){De=ne[ee];var Ct=[];for(X=0;X<De.length;X++)if(we=De[X],K=Z.hot._acceptedDependencies[we],K){if(Ct.indexOf(K)!==-1)continue;Ct.push(K)}for(X=0;X<Ct.length;X++){K=Ct[X];try{K(De)}catch(pt){j.onErrored&&j.onErrored({type:"accept-errored",moduleId:ee,dependencyId:De[X],error:pt}),j.ignoreErrored||rt||(rt=pt)}}}for(X=0;X<Ce.length;X++){var Et=Ce[X];ee=Et.module,p=[ee];try{D(ee)}catch(pt){if(typeof Et.errorHandler=="function")try{Et.errorHandler(pt)}catch(gt){j.onErrored&&j.onErrored({type:"self-accept-error-handler-errored",moduleId:ee,error:gt,originalError:pt}),j.ignoreErrored||rt||(rt=gt),rt||(rt=pt)}else j.onErrored&&j.onErrored({type:"self-accept-errored",moduleId:ee,error:pt}),j.ignoreErrored||rt||(rt=pt)}}return rt?(b("fail"),Promise.reject(rt)):(b("idle"),new Promise(function(pt){pt(ae)}))}var $={};function D(j){if($[j])return $[j].exports;var K=$[j]={i:j,l:!1,exports:{},hot:g(j),parents:(v=p,p=[],v),children:[]};return r[j].call(K.exports,K,K.exports,m(j)),K.l=!0,K.exports}return D.m=r,D.c=$,D.d=function(j,K,X){D.o(j,K)||Object.defineProperty(j,K,{enumerable:!0,get:X})},D.r=function(j){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})},D.t=function(j,K){if(K&1&&(j=D(j)),K&8||K&4&&typeof j=="object"&&j&&j.__esModule)return j;var X=Object.create(null);if(D.r(X),Object.defineProperty(X,"default",{enumerable:!0,value:j}),K&2&&typeof j!="string")for(var J in j)D.d(X,J,(function(Z){return j[Z]}).bind(null,J));return X},D.n=function(j){var K=j&&j.__esModule?function(){return j.default}:function(){return j};return D.d(K,"a",K),K},D.o=function(j,K){return Object.prototype.hasOwnProperty.call(j,K)},D.p="",D.h=function(){return u},m(12)(D.s=12)}([function(r,o){r.exports=n},function(r,o){r.exports='<?xml version="1.0" standalone="no"?><!doctype html><svg class=icon width=20px height=20px viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg><path fill=#595959 d="M73.142857 336.64h526.628572v43.885714H73.142857zM73.142857 643.657143h526.628572v43.885714H73.142857zM336.457143 117.028571h43.885714v789.942858h-43.885714zM204.8 73.142857h614.4a131.657143 131.657143 0 0 1 131.657143 131.657143v614.4a131.657143 131.657143 0 0 1-131.657143
`,{"table-cell-line":{row:ot,cell:mt,rowspan:Mt,colspan:ht}}),oe):(oe=oe.reduce((je,at)=>{if(at.insert&&typeof at.insert=="string"){const Ot=[];let Lt=at.insert,yn=0;for(let Cn=0;Cn<at.insert.length;Cn++)Lt.charAt(Cn)===`
`&&(Cn===0||Ot.push(Lt.substring(yn,Cn)),Ot.push(`
`),yn=Cn+1);const ln=Lt.substring(yn);ln&&Ot.push(ln),Ot.forEach(Cn=>{Cn===`
`?je.insert(`
`,at.attributes):je.insert(Cn,c(at.attributes,["table","table-cell-line"]))})}else je.insert(at.insert,at.attributes);return je},new _e),oe.reduce((je,at)=>(at.insert&&typeof at.insert=="string"&&at.insert.startsWith(`
`)?je.insert(at.insert,Object.assign({},Object.assign({},{row:ot},at.attributes.table),{"table-cell-line":{row:ot,cell:mt,rowspan:Mt,colspan:ht,"cell-bg":Te}},c(at.attributes,["table"]))):at.attributes&&at.attributes.background&&at.attributes.background===h(Te)?je.insert(at.insert,Object.assign({},c(at.attributes,["table","table-cell-line","background"]))):je.insert(at.insert,Object.assign({},c(at.attributes,["table","table-cell-line"]))),je),new _e))}function ft(Fe,oe,me){const ke=Fe.parentNode,Ve=ke.parentNode.tagName==="TABLE"?ke.parentNode:ke.parentNode.parentNode,ze=Array.from(Ve.querySelectorAll("tr")),Xe=Array.from(ke.querySelectorAll("th")),ot=ze.indexOf(ke)+1,mt=Xe.indexOf(Fe)+1,ht=Fe.getAttribute("colspan")||!1,Mt=Fe.getAttribute("rowspan")||!1;return oe.length()===0?(oe=new _e().insert(`
`,{"table-cell-line":{row:ot,cell:mt,rowspan:Mt,colspan:ht}}),oe):(oe=oe.reduce((Te,je)=>{if(je.insert&&typeof je.insert=="string"){const at=[];let Ot=je.insert,Lt=0;for(let ln=0;ln<je.insert.length;ln++)Ot.charAt(ln)===`
`&&(ln===0||at.push(Ot.substring(Lt,ln)),at.push(`
`),Lt=ln+1);const yn=Ot.substring(Lt);yn&&at.push(yn),at.indexOf(`
`)<0&&at.push(`
`),at.forEach(ln=>{ln===`
`?Te.insert(`
`,{"table-cell-line":{row:ot,cell:mt,rowspan:Mt,colspan:ht}}):Te.insert(ln,je.attributes)})}else Te.insert(je.insert,je.attributes);return Te},new _e),oe.reduce((Te,je)=>(je.insert&&typeof je.insert=="string"&&je.insert.startsWith(`
`)?Te.insert(je.insert,Object.assign({},{"table-cell-line":{row:ot,cell:mt,rowspan:Mt,colspan:ht}})):Te.insert(je.insert,Object.assign({},c(je.attributes,["table","table-cell-line"]))),Te),new _e))}function Gt(Fe,oe,me){let ke=new _e;const Ve=Fe.querySelector("tr");if(Ve===null)return ke;const Xe=Array.from(Ve.querySelectorAll("td")).concat(Array.from(Ve.querySelectorAll("th"))).reduce((mt,ht)=>{const Mt=ht.getAttribute("colspan")||1;return mt=mt+parseInt(Mt,10),mt},0),ot=Fe.querySelectorAll("col").length;if(ot===Xe)return oe;{for(let ht=0;ht<Xe-ot;ht++)ke.insert(`
`,{"table-col":!0});if(ot===0)return ke.concat(oe);let mt=0;return oe.reduce((ht,Mt)=>(ht.insert(Mt.insert,Mt.attributes),Mt.attributes&&Mt.attributes["table-col"]&&(mt+=Mt.insert.length,mt===ot&&(ht=ht.concat(ke))),ht),new _e)}}const er=l.a.import("core/module"),wn=l.a.import("delta");class xn extends er{static register(){l.a.register(D,!0),l.a.register(j,!0),l.a.register(H,!0),l.a.register(N,!0),l.a.register(F,!0),l.a.register($,!0),l.a.register(K,!0),l.a.register(X,!0),l.a.register(X,!0)}constructor(oe,me){super(oe,me),this.quill.root.addEventListener("click",Ve=>{const ze=d(Ve);if(!ze||ze.length<=0)return;const Xe=ze.filter(ot=>ot.tagName&&ot.tagName.toUpperCase()==="TABLE"&&ot.classList.contains("quill-better-table"))[0];if(Xe){if(this.table===Xe)return;this.table&&this.hideTableTools(),this.showTableTools(Xe,oe,me)}else this.table&&this.hideTableTools()},!1),this.quill.root.addEventListener("contextmenu",Ve=>{if(!this.table)return!0;Ve.preventDefault();const ze=d(Ve);if(!ze||ze.length<=0)return;const Xe=ze.filter(Mt=>Mt.tagName&&Mt.tagName.toUpperCase()==="TABLE"&&Mt.classList.contains("quill-better-table"))[0],ot=ze.filter(Mt=>Mt.tagName&&Mt.tagName.toUpperCase()==="TR"&&Mt.getAttribute("data-row"))[0],mt=ze.filter(Mt=>Mt.tagName&&Mt.tagName.toUpperCase()==="TD"&&Mt.getAttribute("data-row"))[0];let ht=this.tableSelection.selectedTds.map(Mt=>Mt.domNode).includes(mt);(this.tableSelection.selectedTds.length<=0||!ht)&&this.tableSelection.setSelection(mt.getBoundingClientRect(),mt.getBoundingClientRect()),this.tableOperationMenu&&(this.tableOperationMenu=this.tableOperationMenu.destroy()),Xe&&(this.tableOperationMenu=new ie({table:Xe,row:ot,cell:mt,left:Ve.pageX,top:Ve.pageY},oe,me.operationMenu))},!1),oe.getModule("keyboard"),oe.keyboard.addBinding({key:"Backspace"},{},function(Ve,ze){if(Ve.index===0||this.quill.getLength()<=1)return!0;const[Xe]=this.quill.getLine(Ve.index);if(ze.offset===0){const[ot]=this.quill.getLine(Ve.index-1);if(ot!=null&&ot.statics.blotName==="table-cell-line"&&Xe.statics.blotName!=="table-cell-line")return!1}return!0});let ke=oe.keyboard.bindings.Backspace.pop();oe.keyboard.bindings.Backspace.splice(0,1,ke),oe.clipboard.addMatcher("td",ct),oe.clipboard.addMatcher("th",ft),oe.clipboard.addMatcher("table",Gt),oe.clipboard.matchers=oe.clipboard.matchers.filter(Ve=>Ve[0]!=="tr")}getTable(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(oe==null)return[null,null,null,-1];const[me,ke]=this.quill.getLine(oe.index);if(me==null||me.statics.blotName!==H.blotName)return[null,null,null,-1];const Ve=me.tableCell(),ze=Ve.row();return[ze.table(),ze,Ve,ke]}insertTable(oe,me){const ke=this.quill.getSelection(!0);if(ke==null)return;let Ve=this.quill.getLeaf(ke.index)[0],ze=new wn().retain(ke.index);if(sn(Ve)){console.warn("Can not insert table into a table cell.");return}ze.insert(`
`),ze=new Array(me).fill(`
`).reduce((Xe,ot)=>(Xe.insert(ot,{"table-col":!0}),Xe),ze),ze=new Array(oe).fill(0).reduce(Xe=>{let ot=J();return new Array(me).fill(`
`).reduce((mt,ht)=>(mt.insert(ht,{"table-cell-line":{row:ot,cell:Z()}}),mt),Xe)},ze),this.quill.updateContents(ze,l.a.sources.USER),this.quill.setSelection(ke.index+me+1,l.a.sources.API)}showTableTools(oe,me,ke){this.table=oe,this.columnTool=new y(oe,me,ke),this.tableSelection=new ne(oe,me,ke)}hideTableTools(){this.columnTool&&this.columnTool.destroy(),this.tableSelection&&this.tableSelection.destroy(),this.tableOperationMenu&&this.tableOperationMenu.destroy(),this.columnTool=null,this.tableSelection=null,this.tableOperationMenu=null,this.table=null}}xn.keyboardBindings={"table-cell-line backspace":{key:"Backspace",format:["table-cell-line"],collapsed:!0,offset:0,handler(Fe,oe){const[me,ke]=this.quill.getLine(Fe.index);return!(!me.prev||me.prev.statics.blotName!=="table-cell-line")}},"table-cell-line delete":{key:"Delete",format:["table-cell-line"],collapsed:!0,suffix:/^$/,handler(){}},"table-cell-line enter":{key:"Enter",shiftKey:null,format:["table-cell-line"],handler(Fe,oe){if(this.quill.selection&&this.quill.selection.composing)return;const me=l.a.imports.parchment.Scope;Fe.length>0&&this.quill.scroll.deleteAt(Fe.index,Fe.length);const ke=Object.keys(oe.format).reduce((Ve,ze)=>(this.quill.scroll.query(ze,me.BLOCK)&&!Array.isArray(oe.format[ze])&&(Ve[ze]=oe.format[ze]),Ve),{});this.quill.insertText(Fe.index,`
`,ke["table-cell-line"],l.a.sources.USER),this.quill.setSelection(Fe.index+1,l.a.sources.SILENT),this.quill.focus(),Object.keys(oe.format).forEach(Ve=>{ke[Ve]==null&&(Array.isArray(oe.format[Ve])||Ve!=="link"&&this.quill.format(Ve,oe.format[Ve],l.a.sources.USER))})}},"table-cell-line up":pn(!0),"table-cell-line down":pn(!1),"down-to-table":{key:"ArrowDown",collapsed:!0,handler(Fe,oe){const me=oe.line.next;if(me&&me.statics.blotName==="table-view"){const Ve=me.table().rows()[0].children.head.children.head;return this.quill.setSelection(Ve.offset(this.quill.scroll),0,l.a.sources.USER),!1}return!0}},"up-to-table":{key:"ArrowUp",collapsed:!0,handler(Fe,oe){const me=oe.line.prev;if(me&&me.statics.blotName==="table-view"){const ke=me.table().rows(),ze=ke[ke.length-1].children.head.children.head;return this.quill.setSelection(ze.offset(this.quill.scroll),0,l.a.sources.USER),!1}return!0}}};function pn(Fe){return{key:Fe?"ArrowUp":"ArrowDown",collapsed:!0,format:["table-cell-line"],handler(oe,me){const ke=Fe?"prev":"next";if(me.line[ke]!=null)return!0;const ze=me.line.parent,Xe=ze.parent[ke];if(Xe!=null&&Xe.statics.blotName==="table-row"){let ot=Xe.children.head,mt=parseInt(ot.formats().colspan,10),ht=ze,Mt=parseInt(ht.formats().colspan,10);for(;ht.prev!=null;)ht=ht.prev,Mt+=parseInt(ht.formats().colspan,10);for(;ot.next!=null&&mt<Mt;)ot=ot.next,mt+=parseInt(ot.formats().colspan,10);const Te=ot.offset(this.quill.scroll);this.quill.setSelection(Te,0,l.a.sources.USER)}else{const ot=ze.table().parent[ke];ot!=null&&(Fe?this.quill.setSelection(ot.offset(this.quill.scroll)+ot.length()-1,0,l.a.sources.USER):this.quill.setSelection(ot.offset(this.quill.scroll),0,l.a.sources.USER))}return!1}}}function ur(Fe){return Fe.statics.blotName===N.blotName}function sn(Fe){return Fe&&Fe.parent?ur(Fe.parent)?!0:sn(Fe.parent):!1}o.default=xn},,function(r,o,a){r.exports=a(10)}]).default})}(rv)),rv.exports}var s7e=a7e();const A7=eo(s7e),l7e={__name:"index",props:{modelValue:{type:String,default:""},height:{type:Number,default:null},minHeight:{type:Number,default:null},readOnly:{type:Boolean,default:!1},fileSize:{type:Number,default:5},type:{type:String,default:"url"}},emits:["update:modelValue","on-change","on-text-change","on-selection-change","on-editor-change"],setup(e,{emit:t}){nt.register({"modules/better-table":A7},!0);const n=e,r=z("/prod-api/file/upload"),o=z({Authorization:"Bearer "+xo()});let a=null,s="";const l={theme:"snow",bounds:document.body,debug:"warn",modules:{toolbar:{container:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"],[{table:"TD"}]],handlers:{table:function(){a.getModule("better-table").insertTable(3,3)}}},table:!1,"better-table":{operationMenu:{items:{unmergeCells:{text:"Another unmerge cells name"}},background:{color:"#333"},color:{colors:["green","red","yellow","blue","white"],text:"background:"}}},keyboard:{bindings:A7.keyboardBindings}},placeholder:"请输入内容",readOnly:n.readOnly},i=k(()=>{let g={};return n.minHeight&&(g.minHeight=`${n.minHeight}px`),n.height&&(g.height=`${n.height}px`),g}),u=z(null),c=z(null);Ee(()=>n.modelValue,g=>{if(g!==s&&(s=g===null?"":g,a))try{const y=document.createElement("div");y.innerHTML=s,a.root.innerHTML=s,a.update(),console.log("富文本内容已更新:",s)}catch(y){console.error("设置富文本内容失败:",y),a.root.innerHTML=s||""}},{immediate:!0});const d=t;bt(()=>{h()}),tn(()=>{a=null});function h(){a=new nt(u.value,l),n.type=="url"&&a.getModule("toolbar").addHandler("image",y=>{y&&c.value.click()});try{s&&(a.root.innerHTML=s,a.update(),console.log("初始化富文本内容:",s))}catch(g){console.error("初始化富文本内容失败:",g)}a.on("text-change",(g,y,w)=>{const b=u.value.children[0].innerHTML,_=a.getText(),C=a;s=b,d("update:modelValue",b),d("on-change",{html:b,text:_,quill:C})}),a.on("text-change",(g,y,w)=>{d("on-text-change",g,y,w)}),a.on("
]))+`;Ia.KANJI=new RegExp(n,"g"),Ia.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ia.BYTE=new RegExp(r,"g"),Ia.NUMERIC=new RegExp(e,"g"),Ia.ALPHANUMERIC=new RegExp(t,"g");const o=new RegExp("^"+n+"$"),a=new RegExp("^"+e+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ia.testKanji=function(i){return o.test(i)},Ia.testNumeric=function(i){return a.test(i)},Ia.testAlphanumeric=function(i){return s.test(i)},Ia}var q7;function Vi(){return q7||(q7=1,function(e){const t=eO(),n=tO();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,s){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?a.ccBits[0]:s<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(a,s){if(e.isValid(a))return a;try{return r(a)}catch{return s}}}(vv)),vv}var j7;function y7e(){return j7||(j7=1,function(e){const t=Bi(),n=QM(),r=b8(),o=Vi(),a=eO(),s=7973,l=t.getBCHDigit(s);function i(h,p,v){for(let m=1;m<=40;m++)if(p<=e.getCapacity(m,v,h))return m}function u(h,p){return o.getCharCountIndicator(h,p)+4}function c(h,p){let v=0;return h.forEach(function(m){const g=u(m.mode,p);v+=g+m.getBitsLength()}),v}function d(h,p){for(let v=1;v<=40;v++)if(c(h,v)<=e.getCapacity(v,p,o.MIXED))return v}e.from=function(p,v){return a.isValid(p)?parseInt(p,10):v},e.getCapacity=function(p,v,m){if(!a.isValid(p))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=o.BYTE);const g=t.getSymbolTotalCodewords(p),y=n.getTotalCodewordsCount(p,v),w=(g-y)*8;if(m===o.MIXED)return w;const b=w-u(m,p);switch(m){case o.NUMERIC:return Math.floor(b/10*3);case o.ALPHANUMERIC:return Math.floor(b/11*2);case o.KANJI:return Math.floor(b/13);case o.BYTE:default:return Math.floor(b/8)}},e.getBestVersionForData=function(p,v){let m;const g=r.from(v,r.M);if(Array.isArray(p)){if(p.length>1)return d(p,g);if(p.length===0)return 1;m=p[0]}else m=p;return i(m.mode,m.getLength(),g)},e.getEncodedBits=function(p){if(!a.isValid(p)||p<7)throw new Error("Invalid QR Code version");let v=p<<12;for(;t.getBCHDigit(v)-l>=0;)v^=s<<t.getBCHDigit(v)-l;return p<<12|v}}(pv)),pv}var gv={},U7;function b7e(){if(U7)return gv;U7=1;const e=Bi(),t=1335,n=21522,r=e.getBCHDigit(t);return gv.getEncodedBits=function(a,s){const l=a.bit<<3|s;let i=l<<10;for(;e.getBCHDigit(i)-r>=0;)i^=t<<e.getBCHDigit(i)-r;return(l<<10|i)^n},gv}var yv={},bv,K7;function _7e(){if(K7)return bv;K7=1;const e=Vi();function t(n){this.mode=e.NUMERIC,this.data=n.toString()}return t.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){let o,a,s;for(o=0;o+3<=this.data.length;o+=3)a=this.data.substr(o,3),s=parseInt(a,10),r.put(s,10);const l=this.data.length-o;l>0&&(a=this.data.substr(o),s=parseInt(a,10),r.put(s,l*3+1))},bv=t,bv}var _v,W7;function w7e(){if(W7)return _v;W7=1;const e=Vi(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=e.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(o){return 11*Math.floor(o/2)+6*(o%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data
Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),r.put(a,13)}},Cv=n,Cv}var Sv={exports:{}},X7;function E7e(){return X7||(X7=1,function(e){var t={single_source_shortest_paths:function(n,r,o){var a={},s={};s[r]=0;var l=t.PriorityQueue.make();l.push(r,0);for(var i,u,c,d,h,p,v,m,g;!l.empty();){i=l.pop(),u=i.value,d=i.cost,h=n[u]||{};for(c in h)h.hasOwnProperty(c)&&(p=h[c],v=d+p,m=s[c],g=typeof s[c]>"u",(g||m>v)&&(s[c]=v,l.push(c,v),a[c]=u))}if(typeof o<"u"&&typeof s[o]>"u"){var y=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(y)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var o=[],a=r;a;)o.push(a),n[a],a=n[a];return o.reverse(),o},find_path:function(n,r,o){var a=t.single_source_shortest_paths(n,r,o);return t.extract_shortest_path_from_predecessor_list(a,o)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,o={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o.queue=[],o.sorter=n.sorter||r.default_sorter,o},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var o={value:n,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t}(Sv)),Sv.exports}var J7;function x7e(){return J7||(J7=1,function(e){const t=Vi(),n=_7e(),r=w7e(),o=C7e(),a=S7e(),s=tO(),l=Bi(),i=E7e();function u(y){return unescape(encodeURIComponent(y)).length}function c(y,w,b){const _=[];let C;for(;(C=y.exec(b))!==null;)_.push({data:C[0],index:C.index,mode:w,length:C[0].length});return _}function d(y){const w=c(s.NUMERIC,t.NUMERIC,y),b=c(s.ALPHANUMERIC,t.ALPHANUMERIC,y);let _,C;return l.isKanjiModeEnabled()?(_=c(s.BYTE,t.BYTE,y),C=c(s.KANJI,t.KANJI,y)):(_=c(s.BYTE_KANJI,t.BYTE,y),C=[]),w.concat(b,_,C).sort(function(M,A){return M.index-A.index}).map(function(M){return{data:M.data,mode:M.mode,length:M.length}})}function h(y,w){switch(w){case t.NUMERIC:return n.getBitsLength(y);case t.ALPHANUMERIC:return r.getBitsLength(y);case t.KANJI:return a.getBitsLength(y);case t.BYTE:return o.getBitsLength(y)}}function p(y){return y.reduce(function(w,b){const _=w.length-1>=0?w[w.length-1]:null;return _&&_.mode===b.mode?(w[w.length-1].data+=b.data,w):(w.push(b),w)},[])}function v(y){const w=[];for(let b=0;b<y.length;b++){const _=y[b];switch(_.mode){case t.NUMERIC:w.push([_,{data:_.data,mode:t.ALPHANUMERIC,length:_.length},{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.ALPHANUMERIC:w.push([_,{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.KANJI:w.push([_,{data:_.data,mode:t.BYTE,length:u(_.data)}]);break;case t.BYTE:w.push([{data:_.data,mode:t.BYTE,length:u(_.data)}])}}return w}function m(y,w){const b={},_={start:{}};let C=["start"];for(let E=0;E<y.length;E++){const M=y[E],A=[];for(let T=0;T<M.length;T++){const L=M[T],x=""+E+T;A.push(x),b[x]={node:L,lastCount:0},_[x]={};for(let O=0;O<C.length;O++){const P=C[O];b[P]&&b[P].node.mode===L.mode?(_[P][x]=h(b[P].lastCount+L.length,L.mode)-h(b[P].lastCount,L.mode),b[P].lastCount+=L.length):(b[P]&&(b[P].lastCount=L.length),_[P][x]=h(L.length,L.mode)+4+t.getCharCountIndicator(L.mode,w))}}C=A}for(let E=0;E<C.length;E++)_[C[E]].end=0;return{map:_,table:b}}function g(y,w){let b;const _=t.getBestModeForData(y);if(b=t.from(w,_),b!==t.BYTE&&b.bit<_.bit)throw new Error('"'+y+'" cannot be encoded with mode '+t.toString(b)+`.
Suggested mode is: `+t.toString(_));switch(b===t.KANJI&&!l.isKanjiModeEnabled()&&(b=t.BYTE),b){case t.NUMERIC:return new n(y);case t.ALPHANUMERIC:return new r(y);case t.KANJI:return new a(y);case t.BYTE:return new o(y)}}e.fromArray=function(w){return w.reduce(function(b,_){return typeof _=="string"?b.push(g(_,null)):_.data&&b.push(g(_.data,_.mode)),b},[])},e.fromString=function(w,b){const _=d(w,l.isKanjiModeEnabled()),C=v(_),E=m(C,b),M=i.find_path(E.map,"start","end"),A=[];for(let T=1;T<M.length-1;T++)A.push(E.table[M[T]].node);return e.fromArray(p(A))},e.rawSplit=function(w){return e.fromArray(d(w,l.isKanjiModeEnabled()))}}(yv)),yv}var Z7;function k7e(){if(Z7)return av;Z7=1;const e=Bi(),t=b8(),n=c7e(),r=d7e(),o=f7e(),a=h7e(),s=p7e(),l=QM(),i=g7e(),u=y7e(),c=b7e(),d=Vi(),h=x7e();function p(E,M){const A=E.size,T=a.getPositions(M);for(let L=0;L<T.length;L++){const x=T[L][0],O=T[L][1];for(let P=-1;P<=7;P++)if(!(x+P<=-1||A<=x+P))for(let U=-1;U<=7;U++)O+U<=-1||A<=O+U||(P>=0&&P<=6&&(U===0||U===6)||U>=0&&U<=6&&(P===0||P===6)||P>=2&&P<=4&&U>=2&&U<=4?E.set(x+P,O+U,!0,!0):E.set(x+P,O+U,!1,!0))}}function v(E){const M=E.size;for(let A=8;A<M-8;A++){const T=A%2===0;E.set(A,6,T,!0),E.set(6,A,T,!0)}}function m(E,M){const A=o.getPositions(M);for(let T=0;T<A.length;T++){const L=A[T][0],x=A[T][1];for(let O=-2;O<=2;O++)for(let P=-2;P<=2;P++)O===-2||O===2||P===-2||P===2||O===0&&P===0?E.set(L+O,x+P,!0,!0):E.set(L+O,x+P,!1,!0)}}function g(E,M){const A=E.size,T=u.getEncodedBits(M);let L,x,O;for(let P=0;P<18;P++)L=Math.floor(P/3),x=P%3+A-8-3,O=(T>>P&1)===1,E.set(L,x,O,!0),E.set(x,L,O,!0)}function y(E,M,A){const T=E.size,L=c.getEncodedBits(M,A);let x,O;for(x=0;x<15;x++)O=(L>>x&1)===1,x<6?E.set(x,8,O,!0):x<8?E.set(x+1,8,O,!0):E.set(T-15+x,8,O,!0),x<8?E.set(8,T-x-1,O,!0):x<9?E.set(8,15-x-1+1,O,!0):E.set(8,15-x-1,O,!0);E.set(T-8,8,1,!0)}function w(E,M){const A=E.size;let T=-1,L=A-1,x=7,O=0;for(let P=A-1;P>0;P-=2)for(P===6&&P--;;){for(let U=0;U<2;U++)if(!E.isReserved(L,P-U)){let H=!1;O<M.length&&(H=(M[O]>>>x&1)===1),E.set(L,P-U,H),x--,x===-1&&(O++,x=7)}if(L+=T,L<0||A<=L){L-=T,T=-T;break}}}function b(E,M,A){const T=new n;A.forEach(function(U){T.put(U.mode.bit,4),T.put(U.getLength(),d.getCharCountIndicator(U.mode,E)),U.write(T)});const L=e.getSymbolTotalCodewords(E),x=l.getTotalCodewordsCount(E,M),O=(L-x)*8;for(T.getLengthInBits()+4<=O&&T.put(0,4);T.getLengthInBits()%8!==0;)T.putBit(0);const P=(O-T.getLengthInBits())/8;for(let U=0;U<P;U++)T.put(U%2?17:236,8);return _(T,E,M)}function _(E,M,A){const T=e.getSymbolTotalCodewords(M),L=l.getTotalCodewordsCount(M,A),x=T-L,O=l.getBlocksCount(M,A),P=T%O,U=O-P,H=Math.floor(T/O),N=Math.floor(x/O),F=N+1,$=H-N,D=new i($);let j=0;const K=new Array(O),X=new Array(O);let J=0;const Z=new Uint8Array(E.buffer);for(let ae=0;ae<O;ae++){const ye=ae<U?N:F;K[ae]=Z.slice(j,j+ye),X[ae]=D.encode(K[ae]),j+=ye,J=Math.max(J,ye)}const ee=new Uint8Array(T);let le=0,W,ne;for(W=0;W<J;W++)for(ne=0;ne<O;ne++)W<K[ne].length&&(ee[le++]=K[ne][W]);for(W=0;W<$;W++)for(ne=0;ne<O;ne++)ee[le++]=X[ne][W];return ee}function C(E,M,A,T){let L;if(Array.isArray(E))L=h.fromArray(E);else if(typeof E=="string"){let H=M;if(!H){const N=h.rawSplit(E);H=u.getBestVersionForData(N,A)}L=h.fromString(E,H||40)}else throw new Error("Invalid data");const x=u.getBestVersionForData(L,A);if(!x)throw new Error("The amount of data is too big to be stored in a QR Code");if(!M)M=x;else if(M<x)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+x+`.
`);const O=b(M,A,L),P=e.getSymbolSize(M),U=new r(P);return p(U,M),v(U),m(U,M),y(U,A,0),M>=7&&g(U,M),w(U,O),isNaN(T)&&(T=s.getBestMask(U,y.bind(null,U,A))),s.applyMask(T,U),y(U,A,T),{modules:U,version:M,errorCorrectionLevel:A,maskPattern:T,segments:L}}return av.create=function(M,A){if(typeof M>"u"||M==="")throw new Error("No input text");let T=t.M,L,x;return typeof A<"u"&&(T=t.from(A.errorCorrectionLevel,t.M),L=u.from(A.version),x=s.from(A.maskPattern),A.toSJISFunc&&e.setToSJISFunction(A.toSJISFunc)),C(M,L,T,x)},av}var Ev={},xv={},Q7;function nO(){return Q7||(Q7=1,function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const o=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:a,scale:a?4:s,margin:o,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},e.getImageWidth=function(r,o){const a=e.getScale(r,o);return Math.floor((r+o.margin*2)*a)},e.qrToImageData=function(r,o,a){const s=o.modules.size,l=o.modules.data,i=e.getScale(s,a),u=Math.floor((s+a.margin*2)*i),c=a.margin*i,d=[a.color.light,a.color.dark];for(let h=0;h<u;h++)for(let p=0;p<u;p++){let v=(h*u+p)*4,m=a.color.light;if(h>=c&&p>=c&&h<u-c&&p<u-c){const g=Math.floor((h-c)/i),y=Math.floor((p-c)/i);m=d[l[g*s+y]?1:0]}r[v++]=m.r,r[v++]=m.g,r[v++]=m.b,r[v]=m.a}}}(xv)),xv}var e_;function T7e(){return e_||(e_=1,function(e){const t=nO();function n(o,a,s){o.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(a,s,l){let i=l,u=s;typeof i>"u"&&(!s||!s.getContext)&&(i=s,s=void 0),s||(u=r()),i=t.getOptions(i);const c=t.getImageWidth(a.modules.size,i),d=u.getContext("2d"),h=d.createImageData(c,c);return t.qrToImageData(h.data,a,i),n(d,u,c),d.putImageData(h,0,0),u},e.renderToDataURL=function(a,s,l){let i=l;typeof i>"u"&&(!s||!s.getContext)&&(i=s,s=void 0),i||(i={});const u=e.render(a,s,i),c=i.type||"image/png",d=i.rendererOpts||{};return u.toDataURL(c,d.quality)}}(Ev)),Ev}var kv={},t_;function A7e(){if(t_)return kv;t_=1;const e=nO();function t(o,a){const s=o.a/255,l=a+'="'+o.hex+'"';return s<1?l+" "+a+'-opacity="'+s.toFixed(2).slice(1)+'"':l}function n(o,a,s){let l=o+a;return typeof s<"u"&&(l+=" "+s),l}function r(o,a,s){let l="",i=0,u=!1,c=0;for(let d=0;d<o.length;d++){const h=Math.floor(d%a),p=Math.floor(d/a);!h&&!u&&(u=!0),o[d]?(c++,d>0&&h>0&&o[d-1]||(l+=u?n("M",h+s,.5+p+s):n("m",i,0),i=0,u=!1),h+1<a&&o[d+1]||(l+=n("h",c),c=0)):i++}return l}return kv.render=function(a,s,l){const i=e.getOptions(s),u=a.modules.size,c=a.modules.data,d=u+i.margin*2,h=i.color.light.a?"<path "+t(i.color.light,"fill")+' d="M0 0h'+d+"v"+d+'H0z"/>':"",p="<path "+t(i.color.dark,"stroke")+' d="'+r(c,u,i.margin)+'"/>',v='viewBox="0 0 '+d+" "+d+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+v+' shape-rendering="crispEdges">'+h+p+`</svg>
`;return typeof l=="function"&&l(null,g),g},kv}var n_;function M7e(){if(n_)return Zi;n_=1;const e=u7e(),t=k7e(),n=T7e(),r=A7e();function o(a,s,l,i,u){const c=[].slice.call(arguments,1),d=c.length,h=typeof c[d-1]=="function";if(!h&&!e())throw new Error("Callback required as last argument");if(h){if(d<2)throw new Error("Too few arguments provided");d===2?(u=l,l=s,s=i=void 0):d===3&&(s.getContext&&typeof u>"u"?(u=i,i=void 0):(u=i,i=l,l=s,s=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(l=s,s=i=void 0):d===2&&!s.getContext&&(i=l,l=s,s=void 0),new Promise(function(p,v){try{const m=t.create(l,i);p(a(m,s,i))}catch(m){v(m)}})}try{const p=t.create(l,i);u(null,a(p,s,i))}catch(p){u(p)}}return Zi.create=t.create,Zi.toCanvas=o.bind(null,n.render),Zi.toDataURL=o.bind(null,n.renderToDataURL),Zi.toString=o.bind(null,function(a,s,l){return r.render(a,l)}),Zi}var O7e=M7e();const N7e=eo(O7e),R7e={class:"qrcode-component"},L7e=["src"],I7e=["src"],$7e={__name:"index",props:{data:{type:String,required:!0,default:""},logo:{type:String,default:""},logoSize:{type:Number,default:20},options:{type:Object,default:()=>({width:400,height:400})}},setup(e){const t=e,n=z(null);Ee(()=>t.data,()=>{r()});const r=async()=>{n.value=await N7e.toDataURL(t.data,t.options)},o=k(()=>({width:t.options.width+"px",height:t.options.height+"px"})),a=k(()=>({width:t.logoSize+"%"}));return r(),(s,l)=>(S(),I("div",R7e,[n.value?(S(),I("div",{key:0,class:"qrcode-box",style:Ge(f(o))},[R("img",{src:n.value,class:"qrcode-code"},null,8,L7e),e.logo?(S(),I("img",{key:0,src:e.logo,class:"qrcode-logo",style:Ge(f(a))},null,12,I7e)):ce("",!0)],4)):ce("",!0)]))}},P7e=Fn($7e,[["__scopeId","data-v-ce282398"]]);var Z0={},Gc={},Q0={},r_;function ta(){if(r_)return Q0;r_=1,Object.defineProperty(Q0,"__esModule",{value:!0});function e(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}var t=function n(r,o){e(this,n),this.data=r,this.text=o.text||r,this.options=o};return Q0.default=t,Q0}var o_;function B7e(){if(o_)return Gc;o_=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.CODE39=void 0;var e=function(){function m(g,y){for(var w=0;w<y.length;w++){var b=y[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,y,w){return y&&m(g.prototype,y),w&&m(g,w),g}}(),t=ta(),n=r(t);function r(m){return m&&m.__esModule?m:{default:m}}function o(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function a(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function s(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var l=function(m){s(g,m);function g(y,w){return o(this,g),y=y.toUpperCase(),w.mod43&&(y+=h(v(y))),a(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,y,w))}return e(g,[{key:"encode",value:function(){for(var w=c("*"),b=0;b<this.data.length;b++)w+=c(this.data[b])+"0";return w+=c("*"),{data:w,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),g}(n.default),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],u=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function c(m){return d(p(m))}function d(m){return u[m].toString(2)}function h(m){return i[m]}function p(m){return i.indexOf(m)}function v(m){for(var g=0,y=0;y<m.length;y++)g+=p(m[y]);return g=g%43,g}return Gc.CODE3
<h3>系统加载失败</h3>
<p>可能原因</p>
<ul>
<li>网络连接问题</li>
<li>服务器未响应</li>
<li>资源加载失败</li>
</ul>
<button onclick="location.reload()" style="padding: 8px 16px; background: white; color: #f56c6c; border: none; border-radius: 4px; cursor: pointer;">刷新页面</button>
`,document.body.appendChild(t)}},S_e);export{Tye as $,ZR as A,Ne as B,V as C,bt as D,Ss as E,kt as F,Sme as G,dc as H,Ue as I,It as J,sH as K,Br as L,cme as M,Rt as N,Zt as O,Qt as P,Ze as Q,Kt as R,Kn as S,fwe as T,vwe as U,W9 as V,dwe as W,pwe as X,hwe as Y,Bn as Z,Fn as _,gp as a,Eye as a0,gye as a1,xo as a2,Ee as a3,$r as a4,B as a5,Pt as a6,zo as a7,Tee as a8,rn as a9,yR as aA,BR as aB,bl as aC,owe as aD,awe as aE,swe as aF,uwe as aG,cwe as aH,iwe as aI,lwe as aJ,dt as aK,J5e as aL,zs as aM,i7e as aN,mh as aO,fe as aP,lE as aQ,GU as aR,npe as aS,on as aT,nM as aU,v2 as aV,wh as aW,mr as aX,An as aa,Qe as ab,Q_ as ac,Ko as ad,hO as ae,ki as af,Zn as ag,mn as ah,At as ai,ni as aj,Oe as ak,uc as al,ti as am,$O as an,PO as ao,BO as ap,VO as aq,nw as ar,mo as as,kO as at,A_e as au,k_e as av,m8e as aw,Ge as ax,rwe as ay,X_e as az,Ns as b,I as c,wt as d,Y as e,R as f,eo as g,he as h,ce as i,We as j,f as k,hn as l,yt as m,ut as n,S as o,Z_e as p,twe as q,z as r,Q_e as s,J_e as t,Wf as u,A5e as v,Q as w,ewe as x,nwe as y,k as z};