File: /www/wwwroot/www.213n.cn/wp-content/themes/rk-blogger/wbc/settings/assets/wbs-B6MCNH29.js
/**
* @vue/shared v3.4.19
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const t={},n=[],r=()=>{},o=()=>!1,i=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith("onUpdate:"),a=Object.assign,l=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},c=Object.prototype.hasOwnProperty,u=(e,t)=>c.call(e,t),d=Array.isArray,p=e=>"[object Map]"===x(e),f=e=>"[object Set]"===x(e),h=e=>"[object Date]"===x(e),m=e=>"function"==typeof e,g=e=>"string"==typeof e,v=e=>"symbol"==typeof e,y=e=>null!==e&&"object"==typeof e,b=e=>(y(e)||m(e))&&m(e.then)&&m(e.catch),w=Object.prototype.toString,x=e=>w.call(e),S=e=>x(e).slice(8,-1),k=e=>"[object Object]"===x(e),O=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},M=/-(\w)/g,A=C((e=>e.replace(M,((e,t)=>t?t.toUpperCase():"")))),T=/\B([A-Z])/g,_=C((e=>e.replace(T,"-$1").toLowerCase())),N=C((e=>e.charAt(0).toUpperCase()+e.slice(1))),R=C((e=>e?`on${N(e)}`:"")),I=(e,t)=>!Object.is(e,t),P=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},D=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},L=e=>{const t=parseFloat(e);return isNaN(t)?e:t},j=e=>{const t=g(e)?Number(e):NaN;return isNaN(t)?e:t};let B;const V=()=>B||(B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),z=e("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");function F(e){if(d(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=g(r)?W(r):F(r);if(o)for(const e in o)t[e]=o[e]}return t}if(g(e)||y(e))return e}const $=/;(?![^(]*\))/g,H=/:([^]+)/,U=/\/\*[^]*?\*\//g;function W(e){const t={};return e.replace(U,"").split($).forEach((e=>{if(e){const n=e.split(H);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function q(e){let t="";if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){const r=q(e[n]);r&&(t+=r+" ")}else if(y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const K=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function J(e){return!!e||""===e}function G(e,t){if(e===t)return!0;let n=h(e),r=h(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=v(e),r=v(t),n||r)return e===t;if(n=d(e),r=d(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=G(e[r],t[r]);return n}(e,t);if(n=y(e),r=y(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!G(e[n],t[n]))return!1}}return String(e)===String(t)}function Y(e,t){return e.findIndex((e=>G(e,t)))}const X=e=>g(e)?e:null==e?"":d(e)||y(e)&&(e.toString===w||!m(e.toString))?JSON.stringify(e,Z,2):String(e),Z=(e,t)=>t&&t.__v_isRef?Z(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[Q(t,r)+" =>"]=n,e)),{})}:f(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>Q(e)))}:v(t)?Q(t):!y(t)||d(t)||k(t)?t:String(t),Q=(e,t="")=>{var n;return v(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};
/**
* @vue/reactivity v3.4.19
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let ee,te;class ne{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ee,!e&&ee&&(this.index=(ee.scopes||(ee.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ee;try{return ee=this,e()}finally{ee=t}}}on(){ee=this}off(){ee=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function re(e,t=ee){t&&t.active&&t.effects.push(e)}function oe(){return ee}function ie(e){ee&&ee.cleanups.push(e)}class se{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,re(this,r)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,fe();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(t.computed.value,this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),he()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ue,t=te;try{return ue=!0,te=this,this._runnings++,ae(this),this.fn()}finally{le(this),this._runnings--,te=t,ue=e}}stop(){var e;this.active&&(ae(this),le(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function ae(e){e._trackId++,e._depsLength=0}function le(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ce(e.deps[t],e);e.deps.length=e._depsLength}}function ce(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let ue=!0,de=0;const pe=[];function fe(){pe.push(ue),ue=!1}function he(){const e=pe.pop();ue=void 0===e||e}function me(){de++}function ge(){for(de--;!de&&ye.length;)ye.shift()()}function ve(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&ce(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const ye=[];function be(e,t,n){me();for(const r of e.keys()){let n;r._dirtyLevel<t&&(null!=n?n:n=e.get(r)===r._trackId)&&(r._shouldSchedule||(r._shouldSchedule=0===r._dirtyLevel),r._dirtyLevel=t),r._shouldSchedule&&(null!=n?n:n=e.get(r)===r._trackId)&&(r.trigger(),r._runnings&&!r.allowRecurse||2===r._dirtyLevel||(r._shouldSchedule=!1,r.scheduler&&ye.push(r.scheduler)))}ge()}const we=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},xe=new WeakMap,Se=Symbol(""),ke=Symbol("");function Oe(e,t,n){if(ue&&te){let t=xe.get(e);t||xe.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=we((()=>t.delete(n)))),ve(te,r)}}function Ee(e,t,n,r,o,i){const s=xe.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&d(e)){const e=Number(r);s.forEach(((t,n)=>{("length"===n||!v(n)&&n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":d(e)?O(n)&&a.push(s.get("length")):(a.push(s.get(Se)),p(e)&&a.push(s.get(ke)));break;case"delete":d(e)||(a.push(s.get(Se)),p(e)&&a.push(s.get(ke)));break;case"set":p(e)&&a.push(s.get(Se))}me();for(const l of a)l&&be(l,4);ge()}const Ce=e("__proto__,__v_isRef,__isVue"),Me=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(v)),Ae=Te();function Te(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=yt(this);for(let t=0,o=this.length;t<o;t++)Oe(n,0,t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(yt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){fe(),me();const n=yt(this)[t].apply(this,e);return ge(),he(),n}})),e}function _e(e){const t=yt(this);return Oe(t,0,e),t.hasOwnProperty(e)}class Ne{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const r=this._isReadonly,o=this._shallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(r?o?ct:lt:o?at:st).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=d(e);if(!r){if(i&&u(Ae,t))return Reflect.get(Ae,t,n);if("hasOwnProperty"===t)return _e}const s=Reflect.get(e,t,n);return(v(t)?Me.has(t):Ce(t))?s:(r||Oe(e,0,t),o?s:Ct(s)?i&&O(t)?s:s.value:y(s)?r?pt(s):ut(s):s)}}class Re extends Ne{constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t];if(!this._shallow){const t=mt(o);if(gt(n)||mt(n)||(o=yt(o),n=yt(n)),!d(e)&&Ct(o)&&!Ct(n))return!t&&(o.value=n,!0)}const i=d(e)&&O(t)?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,r);return e===yt(r)&&(i?I(n,o)&&Ee(e,"set",t,n):Ee(e,"add",t,n)),s}deleteProperty(e,t){const n=u(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ee(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t);return v(t)&&Me.has(t)||Oe(e,0,t),n}ownKeys(e){return Oe(e,0,d(e)?"length":Se),Reflect.ownKeys(e)}}class Ie extends Ne{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Pe=new Re,De=new Ie,Le=new Re(!0),je=new Ie(!0),Be=e=>e,Ve=e=>Reflect.getPrototypeOf(e);function ze(e,t,n=!1,r=!1){const o=yt(e=e.__v_raw),i=yt(t);n||(I(t,i)&&Oe(o,0,t),Oe(o,0,i));const{has:s}=Ve(o),a=r?Be:n?xt:wt;return s.call(o,t)?a(e.get(t)):s.call(o,i)?a(e.get(i)):void(e!==o&&e.get(t))}function Fe(e,t=!1){const n=this.__v_raw,r=yt(n),o=yt(e);return t||(I(e,o)&&Oe(r,0,e),Oe(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function $e(e,t=!1){return e=e.__v_raw,!t&&Oe(yt(e),0,Se),Reflect.get(e,"size",e)}function He(e){e=yt(e);const t=yt(this);return Ve(t).has.call(t,e)||(t.add(e),Ee(t,"add",e,e)),this}function Ue(e,t){t=yt(t);const n=yt(this),{has:r,get:o}=Ve(n);let i=r.call(n,e);i||(e=yt(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?I(t,s)&&Ee(n,"set",e,t):Ee(n,"add",e,t),this}function We(e){const t=yt(this),{has:n,get:r}=Ve(t);let o=n.call(t,e);o||(e=yt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Ee(t,"delete",e,void 0),i}function qe(){const e=yt(this),t=0!==e.size,n=e.clear();return t&&Ee(e,"clear",void 0,void 0),n}function Ke(e,t){return function(n,r){const o=this,i=o.__v_raw,s=yt(i),a=t?Be:e?xt:wt;return!e&&Oe(s,0,Se),i.forEach(((e,t)=>n.call(r,a(e),a(t),o)))}}function Je(e,t,n){return function(...r){const o=this.__v_raw,i=yt(o),s=p(i),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=o[e](...r),u=n?Be:t?xt:wt;return!t&&Oe(i,0,l?ke:Se),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ge(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Ye(){const e={get(e){return ze(this,e)},get size(){return $e(this)},has:Fe,add:He,set:Ue,delete:We,clear:qe,forEach:Ke(!1,!1)},t={get(e){return ze(this,e,!1,!0)},get size(){return $e(this)},has:Fe,add:He,set:Ue,delete:We,clear:qe,forEach:Ke(!1,!0)},n={get(e){return ze(this,e,!0)},get size(){return $e(this,!0)},has(e){return Fe.call(this,e,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:Ke(!0,!1)},r={get(e){return ze(this,e,!0,!0)},get size(){return $e(this,!0)},has(e){return Fe.call(this,e,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:Ke(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=Je(o,!1,!1),n[o]=Je(o,!0,!1),t[o]=Je(o,!1,!0),r[o]=Je(o,!0,!0)})),[e,n,t,r]}const[Xe,Ze,Qe,et]=Ye();function tt(e,t){const n=t?e?et:Qe:e?Ze:Xe;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(u(n,r)&&r in t?n:t,r,o)}const nt={get:tt(!1,!1)},rt={get:tt(!1,!0)},ot={get:tt(!0,!1)},it={get:tt(!0,!0)},st=new WeakMap,at=new WeakMap,lt=new WeakMap,ct=new WeakMap;function ut(e){return mt(e)?e:ft(e,!1,Pe,nt,st)}function dt(e){return ft(e,!1,Le,rt,at)}function pt(e){return ft(e,!0,De,ot,lt)}function ft(e,t,n,r,o){if(!y(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(S(a));var a;if(0===s)return e;const l=new Proxy(e,2===s?r:n);return o.set(e,l),l}function ht(e){return mt(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function mt(e){return!(!e||!e.__v_isReadonly)}function gt(e){return!(!e||!e.__v_isShallow)}function vt(e){return ht(e)||mt(e)}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}function bt(e){return Object.isExtensible(e)&&D(e,"__v_skip",!0),e}const wt=e=>y(e)?ut(e):e,xt=e=>y(e)?pt(e):e;class St{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new se((()=>e(this._value)),(()=>Et(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=yt(this);return e._cacheable&&!e.effect.dirty||!I(e._value,e._value=e.effect.run())||Et(e,4),Ot(e),e.effect._dirtyLevel>=2&&Et(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function kt(e,t,n=!1){let o,i;const s=m(e);s?(o=e,i=r):(o=e.get,i=e.set);return new St(o,i,s||!i,n)}function Ot(e){var t;ue&&te&&(e=yt(e),ve(te,null!=(t=e.dep)?t:e.dep=we((()=>e.dep=void 0),e instanceof St?e:void 0)))}function Et(e,t=4,n){const r=(e=yt(e)).dep;r&&be(r,t)}function Ct(e){return!(!e||!0!==e.__v_isRef)}function Mt(e){return Tt(e,!1)}function At(e){return Tt(e,!0)}function Tt(e,t){return Ct(e)?e:new _t(e,t)}class _t{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:yt(e),this._value=t?e:wt(e)}get value(){return Ot(this),this._value}set value(e){const t=this.__v_isShallow||gt(e)||mt(e);e=t?e:yt(e),I(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:wt(e),Et(this,4))}}function Nt(e){return Ct(e)?e.value:e}const Rt={get:(e,t,n)=>Nt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ct(o)&&!Ct(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function It(e){return ht(e)?e:new Proxy(e,Rt)}class Pt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Ot(this)),(()=>Et(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Dt(e){return new Pt(e)}function Lt(e){const t=d(e)?new Array(e.length):{};for(const n in e)t[n]=zt(e,n);return t}class jt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=yt(this._object),t=this._key,null==(n=xe.get(e))?void 0:n.get(t);var e,t,n}}class Bt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Vt(e,t,n){return Ct(e)?e:m(e)?new Bt(e):y(e)&&arguments.length>1?zt(e,t,n):Mt(e)}function zt(e,t,n){const r=e[t];return Ct(r)?r:new jt(e,t,n)}const Ft={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. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function $t(e,t,n,r){try{return r?e(...r):e()}catch(o){Ut(o,t,n)}}function Ht(e,t,n,r){if(m(e)){const o=$t(e,t,n,r);return o&&b(o)&&o.catch((e=>{Ut(e,t,n)})),o}const o=[];for(let i=0;i<e.length;i++)o.push(Ht(e[i],t,n,r));return o}function Ut(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const o=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const s=t.appContext.config.errorHandler;if(s)return void $t(s,null,10,[e,o,i])}}let Wt=!1,qt=!1;const Kt=[];let Jt=0;const Gt=[];let Yt=null,Xt=0;const Zt=Promise.resolve();let Qt=null;function en(e){const t=Qt||Zt;return e?t.then(this?e.bind(this):e):t}function tn(e){Kt.length&&Kt.includes(e,Wt&&e.allowRecurse?Jt+1:Jt)||(null==e.id?Kt.push(e):Kt.splice(function(e){let t=Jt+1,n=Kt.length;for(;t<n;){const r=t+n>>>1,o=Kt[r],i=an(o);i<e||i===e&&o.pre?t=r+1:n=r}return t}(e.id),0,e),nn())}function nn(){Wt||qt||(qt=!0,Qt=Zt.then(cn))}function rn(e){d(e)?Gt.push(...e):Yt&&Yt.includes(e,e.allowRecurse?Xt+1:Xt)||Gt.push(e),nn()}function on(e,t,n=(Wt?Jt+1:0)){for(;n<Kt.length;n++){const t=Kt[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;Kt.splice(n,1),n--,t()}}}function sn(e){if(Gt.length){const e=[...new Set(Gt)].sort(((e,t)=>an(e)-an(t)));if(Gt.length=0,Yt)return void Yt.push(...e);for(Yt=e,Xt=0;Xt<Yt.length;Xt++)Yt[Xt]();Yt=null,Xt=0}}const an=e=>null==e.id?1/0:e.id,ln=(e,t)=>{const n=an(e)-an(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function cn(e){qt=!1,Wt=!0,Kt.sort(ln);try{for(Jt=0;Jt<Kt.length;Jt++){const e=Kt[Jt];e&&!1!==e.active&&$t(e,null,14)}}finally{Jt=0,Kt.length=0,sn(),Wt=!1,Qt=null,(Kt.length||Gt.length)&&cn()}}let un,dn=[];function pn(e,n,...r){if(e.isUnmounted)return;const o=e.vnode.props||t;let i=r;const s=n.startsWith("update:"),a=s&&n.slice(7);if(a&&a in o){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:n,trim:s}=o[e]||t;s&&(i=r.map((e=>g(e)?e.trim():e))),n&&(i=r.map(L))}let l,c=o[l=R(n)]||o[l=R(A(n))];!c&&s&&(c=o[l=R(_(n))]),c&&Ht(c,e,6,i);const u=o[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Ht(u,e,6,i)}}function fn(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits;let s={},l=!1;if(!m(e)){const r=e=>{const n=fn(e,t,!0);n&&(l=!0,a(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||l?(d(i)?i.forEach((e=>s[e]=null)):a(s,i),y(e)&&r.set(e,s),s):(y(e)&&r.set(e,null),null)}function hn(e,t){return!(!e||!i(t))&&(t=t.slice(2).replace(/Once$/,""),u(e,t[0].toLowerCase()+t.slice(1))||u(e,_(t))||u(e,t))}let mn=null,gn=null;function vn(e){const t=mn;return mn=e,gn=e&&e.type.__scopeId||null,t}function yn(e,t=mn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&ni(-1);const o=vn(t);let i;try{i=e(...n)}finally{vn(o),r._d&&ni(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function bn(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:c,emit:u,render:d,renderCache:p,data:f,setupState:h,ctx:m,inheritAttrs:g}=e;let v,y;const b=vn(e);try{if(4&n.shapeFlag){const e=o||r,t=e;v=yi(d.call(t,e,p,i,h,f,m)),y=c}else{const e=t;0,v=yi(e.length>1?e(i,{attrs:c,slots:l,emit:u}):e(i,null)),y=t.props?c:wn(c)}}catch(x){Xo.length=0,Ut(x,e,1),v=pi(Go)}let w=v;if(y&&!1!==g){const e=Object.keys(y),{shapeFlag:t}=w;e.length&&7&t&&(a&&e.some(s)&&(y=xn(y,a)),w=hi(w,y))}return n.dirs&&(w=hi(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),v=w,vn(b),v}const wn=e=>{let t;for(const n in e)("class"===n||"style"===n||i(n))&&((t||(t={}))[n]=e[n]);return t},xn=(e,t)=>{const n={};for(const r in e)s(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Sn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!hn(n,i))return!0}return!1}function kn({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const On="components";function En(e,t){return Tn(On,e,!0,t)||e}const Cn=Symbol.for("v-ndc");function Mn(e){return g(e)?Tn(On,e,!1)||e:e||Cn}function An(e){return Tn("directives",e)}function Tn(e,t,n=!0,r=!1){const o=mn||Ci;if(o){const n=o.type;if(e===On){const e=Fi(n,!1);if(e&&(e===t||e===A(t)||e===N(A(t))))return n}const i=_n(o[e]||n[e],t)||_n(o.appContext[e],t);return!i&&r?n:i}}function _n(e,t){return e&&(e[t]||e[A(t)]||e[N(A(t))])}const Nn=e=>e.__isSuspense;let Rn=0;const In={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,a,l,c){if(null==e)!function(e,t,n,r,o,i,s,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),p=e.suspense=Dn(e,o,r,t,d,n,i,s,a,l);c(null,p.pendingBranch=e.ssContent,d,null,r,p,i,s),p.deps>0?(Pn(e,"onPending"),Pn(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,i,s),Bn(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,r,o,i,s,a,l,c);else{if(i&&i.deps>0)return void(t.suspense=e.suspense);!function(e,t,n,r,o,i,s,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,ai(p,m)?(l(m,p,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0?d.resolve():g&&(v||(l(h,f,n,r,o,null,i,s,a),Bn(d,f)))):(d.pendingId=Rn++,v?(d.isHydrating=!1,d.activeBranch=m):c(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,p,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0?d.resolve():(l(h,f,n,r,o,null,i,s,a),Bn(d,f))):h&&ai(p,h)?(l(h,p,n,r,o,d,i,s,a),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0&&d.resolve()));else if(h&&ai(p,h))l(h,p,n,r,o,d,i,s,a),Bn(d,p);else if(Pn(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Rn++,l(null,p,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(f)}),e):0===e&&d.fallback(f)}}(e,t,n,r,o,s,a,l,c)}},hydrate:function(e,t,n,r,o,i,s,a,l){const c=t.suspense=Dn(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,i,s);0===c.deps&&c.resolve(!1,!0);return u},create:Dn,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Ln(r?n.default:n),e.ssFallback=r?Ln(n.fallback):pi(Go)}};function Pn(e,t){const n=e.props&&e.props[t];m(n)&&n()}function Dn(e,t,n,r,o,i,s,a,l,c,u=!1){const{p:d,m:p,um:f,n:h,o:{parentNode:m,remove:g}}=c;let v;const y=function(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}(e);y&&(null==t?void 0:t.pendingBranch)&&(v=t.pendingId,t.deps++);const b=e.props?j(e.props.timeout):void 0,w=i,x={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:Rn++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:s,pendingId:a,effects:l,parentComponent:c,container:u}=x;let d=!1;x.isHydrating?x.isHydrating=!1:e||(d=o&&s.transition&&"out-in"===s.transition.mode,d&&(o.transition.afterLeave=()=>{a===x.pendingId&&(p(s,u,i===w?h(o):i,0),rn(l))}),o&&(m(o.el)!==x.hiddenContainer&&(i=h(o)),f(o,c,x,!0)),d||p(s,u,i,0)),Bn(x,s),x.pendingBranch=null,x.isInFallback=!1;let g=x.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...l),b=!0;break}g=g.parent}b||d||rn(l),x.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Pn(r,"onResolve")},fallback(e){if(!x.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:i}=x;Pn(t,"onFallback");const s=h(n),c=()=>{x.isInFallback&&(d(null,e,o,s,r,null,i,a,l),Bn(x,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),x.isInFallback=!0,f(n,r,null,!0),u||c()},move(e,t,n){x.activeBranch&&p(x.activeBranch,e,t,n),x.container=e},next:()=>x.activeBranch&&h(x.activeBranch),registerDep(e,t){const n=!!x.pendingBranch;n&&x.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{Ut(t,e,0)})).then((o=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;ji(e,o,!1),r&&(i.el=r);const a=!r&&e.subTree.el;t(e,i,m(r||e.subTree.el),r?null:h(e.subTree),x,s,l),a&&g(a),kn(e,i.el),n&&0==--x.deps&&x.resolve()}))},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&f(x.activeBranch,n,e,t),x.pendingBranch&&f(x.pendingBranch,n,e,t)}};return x}function Ln(e){let t;if(m(e)){const n=ti&&e._c;n&&(e._d=!1,Qo()),e=e(),n&&(e._d=!0,t=Zo,ei())}if(d(e)){const t=function(e,t=!0){let n;for(let r=0;r<e.length;r++){const t=e[r];if(!si(t))return;if(t.type!==Go||"v-if"===t.children){if(n)return;n=t}}return n}(e);e=t}return e=yi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function jn(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):rn(e)}function Bn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,kn(r,o))}const Vn=Symbol.for("v-scx"),zn=()=>po(Vn);function Fn(e,t){return qn(e,null,t)}function $n(e,t){return qn(e,null,{flush:"post"})}function Hn(e,t){return qn(e,null,{flush:"sync"})}const Un={};function Wn(e,t,n){return qn(e,t,n)}function qn(e,n,{immediate:o,deep:i,flush:s,once:a,onTrack:c,onTrigger:u}=t){if(n&&a){const e=n;n=(...t)=>{e(...t),C()}}const p=Ci,f=e=>!0===i?e:Gn(e,!1===i?1:void 0);let h,g,v=!1,y=!1;if(Ct(e)?(h=()=>e.value,v=gt(e)):ht(e)?(h=()=>f(e),v=!0):d(e)?(y=!0,v=e.some((e=>ht(e)||gt(e))),h=()=>e.map((e=>Ct(e)?e.value:ht(e)?f(e):m(e)?$t(e,p,2):void 0))):h=m(e)?n?()=>$t(e,p,2):()=>(g&&g(),Ht(e,p,3,[w])):r,n&&i){const e=h;h=()=>Gn(e())}let b,w=e=>{g=O.onStop=()=>{$t(e,p,4),g=O.onStop=void 0}};if(Di){if(w=r,n?o&&Ht(n,p,3,[h(),y?[]:void 0,w]):h(),"sync"!==s)return r;{const e=zn();b=e.__watcherHandles||(e.__watcherHandles=[])}}let x=y?new Array(e.length).fill(Un):Un;const S=()=>{if(O.active&&O.dirty)if(n){const e=O.run();(i||v||(y?e.some(((e,t)=>I(e,x[t]))):I(e,x)))&&(g&&g(),Ht(n,p,3,[e,x===Un?void 0:y&&x[0]===Un?[]:x,w]),x=e)}else O.run()};let k;S.allowRecurse=!!n,"sync"===s?k=S:"post"===s?k=()=>_o(S,p&&p.suspense):(S.pre=!0,p&&(S.id=p.uid),k=()=>tn(S));const O=new se(h,r,k),E=oe(),C=()=>{O.stop(),E&&l(E.effects,O)};return n?o?S():x=O.run():"post"===s?_o(O.run.bind(O),p&&p.suspense):O.run(),b&&b.push(C),C}function Kn(e,t,n){const r=this.proxy,o=g(e)?e.includes(".")?Jn(r,e):()=>r[e]:e.bind(r,r);let i;m(t)?i=t:(i=t.handler,n=t);const s=_i(this),a=qn(o,i.bind(r),n);return s(),a}function Jn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Gn(e,t,n=0,r){if(!y(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((r=r||new Set).has(e))return e;if(r.add(e),Ct(e))Gn(e.value,t,n,r);else if(d(e))for(let o=0;o<e.length;o++)Gn(e[o],t,n,r);else if(f(e)||p(e))e.forEach((e=>{Gn(e,t,n,r)}));else if(k(e))for(const o in e)Gn(e[o],t,n,r);return e}function Yn(e,n){if(null===mn)return e;const r=zi(mn)||mn.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<n.length;i++){let[e,s,a,l=t]=n[i];e&&(m(e)&&(e={mounted:e,updated:e}),e.deep&&Gn(s),o.push({dir:e,instance:r,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function Xn(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];i&&(a.oldValue=i[s].value);let l=a.dir[r];l&&(fe(),Ht(l,n,8,[e.el,a,e,t]),he())}}const Zn=Symbol("_leaveCb"),Qn=Symbol("_enterCb");function er(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mr((()=>{e.isMounted=!0})),_r((()=>{e.isUnmounting=!0})),e}const tr=[Function,Array],nr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tr,onEnter:tr,onAfterEnter:tr,onEnterCancelled:tr,onBeforeLeave:tr,onLeave:tr,onAfterLeave:tr,onLeaveCancelled:tr,onBeforeAppear:tr,onAppear:tr,onAfterAppear:tr,onAppearCancelled:tr},rr={name:"BaseTransition",props:nr,setup(e,{slots:t}){const n=Mi(),r=er();let o;return()=>{const i=t.default&&cr(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1)for(const e of i)if(e.type!==Go){s=e;break}const a=yt(e),{mode:l}=a;if(r.isLeaving)return sr(s);const c=ar(s);if(!c)return sr(s);const u=ir(c,a,r,n);lr(c,u);const d=n.subTree,p=d&&ar(d);let f=!1;const{getTransitionKey:h}=c.type;if(h){const e=h();void 0===o?o=e:e!==o&&(o=e,f=!0)}if(p&&p.type!==Go&&(!ai(c,p)||f)){const e=ir(p,a,r,n);if(lr(p,e),"out-in"===l)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},sr(s);"in-out"===l&&c.type!==Go&&(e.delayLeave=(e,t,n)=>{or(r,p)[String(p.key)]=p,e[Zn]=()=>{t(),e[Zn]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function or(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ir(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:f,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:g,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,w=String(e.key),x=or(n,e),S=(e,t)=>{e&&Ht(e,r,9,t)},k=(e,t)=>{const n=t[1];S(e,t),d(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},O={mode:i,persisted:s,beforeEnter(t){let r=a;if(!n.isMounted){if(!o)return;r=g||a}t[Zn]&&t[Zn](!0);const i=x[w];i&&ai(e,i)&&i.el[Zn]&&i.el[Zn](),S(r,[t])},enter(e){let t=l,r=c,i=u;if(!n.isMounted){if(!o)return;t=v||l,r=y||c,i=b||u}let s=!1;const a=e[Qn]=t=>{s||(s=!0,S(t?i:r,[e]),O.delayedLeave&&O.delayedLeave(),e[Qn]=void 0)};t?k(t,[e,a]):a()},leave(t,r){const o=String(e.key);if(t[Qn]&&t[Qn](!0),n.isUnmounting)return r();S(p,[t]);let i=!1;const s=t[Zn]=n=>{i||(i=!0,r(),S(n?m:h,[t]),t[Zn]=void 0,x[o]===e&&delete x[o])};x[o]=e,f?k(f,[t,s]):s()},clone:e=>ir(e,t,n,r)};return O}function sr(e){if(hr(e))return(e=hi(e)).children=null,e}function ar(e){return hr(e)?e.children?e.children[0]:void 0:e}function lr(e,t){6&e.shapeFlag&&e.component?lr(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function cr(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let s=e[i];const a=null==n?s.key:String(n)+String(null!=s.key?s.key:i);s.type===Ko?(128&s.patchFlag&&o++,r=r.concat(cr(s.children,t,a))):(t||s.type!==Go)&&r.push(null!=a?hi(s,{key:a}):s)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}
/*! #__NO_SIDE_EFFECTS__ */function ur(e,t){return m(e)?(()=>a({name:e.name},t,{setup:e}))():e}const dr=e=>!!e.type.__asyncLoader
/*! #__NO_SIDE_EFFECTS__ */;function pr(e){m(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:s=!0,onError:a}=e;let l,c=null,u=0;const d=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise(((t,n)=>{a(e,(()=>t((u++,c=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return ur({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=Ci;if(l)return()=>fr(l,e);const t=t=>{c=null,Ut(t,e,13,!r)};if(s&&e.suspense||Di)return d().then((t=>()=>fr(t,e))).catch((e=>(t(e),()=>r?pi(r,{error:e}):null)));const a=Mt(!1),u=Mt(),p=Mt(!!o);return o&&setTimeout((()=>{p.value=!1}),o),null!=i&&setTimeout((()=>{if(!a.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{a.value=!0,e.parent&&hr(e.parent.vnode)&&(e.parent.effect.dirty=!0,tn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>a.value&&l?fr(l,e):u.value&&r?pi(r,{error:u.value}):n&&!p.value?pi(n):void 0}})}function fr(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=pi(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const hr=e=>e.type.__isKeepAlive,mr={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Mi(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,i=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=r,p=d("div");function f(e){Sr(e),u(e,n,a,!0)}function h(e){o.forEach(((t,n)=>{const r=Fi(t.type);!r||e&&e(r)||m(n)}))}function m(e){const t=o.get(e);s&&ai(t,s)?s&&Sr(s):f(t),o.delete(e),i.delete(e)}r.activate=(e,t,n,r,o)=>{const i=e.component;c(e,t,n,0,a),l(i.vnode,e,t,n,i,a,r,e.slotScopeIds,o),_o((()=>{i.isDeactivated=!1,i.a&&P(i.a);const t=e.props&&e.props.onVnodeMounted;t&&Si(t,i.parent,e)}),a)},r.deactivate=e=>{const t=e.component;c(e,p,null,1,a),_o((()=>{t.da&&P(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Si(n,t.parent,e),t.isDeactivated=!0}),a)},Wn((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>vr(e,t))),t&&h((e=>!vr(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&o.set(g,kr(n.subTree))};return Mr(v),Tr(v),_r((()=>{o.forEach((e=>{const{subTree:t,suspense:r}=n,o=kr(t);if(e.type!==o.type||e.key!==o.key)f(e);else{Sr(o);const e=o.component.da;e&&_o(e,r)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!(si(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return s=null,r;let a=kr(r);const l=a.type,c=Fi(dr(a)?a.type.__asyncResolved||{}:l),{include:u,exclude:d,max:p}=e;if(u&&(!c||!vr(u,c))||d&&c&&vr(d,c))return s=a,r;const f=null==a.key?l:a.key,h=o.get(f);return a.el&&(a=hi(a),128&r.shapeFlag&&(r.ssContent=a)),g=f,h?(a.el=h.el,a.component=h.component,a.transition&&lr(a,a.transition),a.shapeFlag|=512,i.delete(f),i.add(f)):(i.add(f),p&&i.size>parseInt(p,10)&&m(i.values().next().value)),a.shapeFlag|=256,s=a,Nn(r.type)?r:a}}},gr=mr;function vr(e,t){return d(e)?e.some((e=>vr(e,t))):g(e)?e.split(",").includes(t):"[object RegExp]"===x(e)&&e.test(t)}function yr(e,t){wr(e,"a",t)}function br(e,t){wr(e,"da",t)}function wr(e,t,n=Ci){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Or(t,r,n),n){let e=n.parent;for(;e&&e.parent;)hr(e.parent.vnode)&&xr(r,t,n,e),e=e.parent}}function xr(e,t,n,r){const o=Or(t,e,r,!0);Nr((()=>{l(r[t],o)}),n)}function Sr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function kr(e){return 128&e.shapeFlag?e.ssContent:e}function Or(e,t,n=Ci,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;fe();const o=_i(n),i=Ht(t,n,e,r);return o(),he(),i});return r?o.unshift(i):o.push(i),i}}const Er=e=>(t,n=Ci)=>(!Di||"sp"===e)&&Or(e,((...e)=>t(...e)),n),Cr=Er("bm"),Mr=Er("m"),Ar=Er("bu"),Tr=Er("u"),_r=Er("bum"),Nr=Er("um"),Rr=Er("sp"),Ir=Er("rtg"),Pr=Er("rtc");function Dr(e,t=Ci){Or("ec",e,t)}function Lr(e,t,n,r){let o;const i=n&&n[r];if(d(e)||g(e)){o=new Array(e.length);for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,i&&i[n])}else if(y(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,s=n.length;r<s;r++){const s=n[r];o[r]=t(e[s],s,r,i&&i[r])}}else o=[];return n&&(n[r]=o),o}function jr(e,t,n={},r,o){if(mn.isCE||mn.parent&&dr(mn.parent)&&mn.parent.isCE)return"default"!==t&&(n.name=t),pi("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Qo();const s=i&&Br(i(n)),a=ii(Ko,{key:n.key||s&&s.key||`_${t}`},s||(r?r():[]),s&&1===e._?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Br(e){return e.some((e=>!si(e)||e.type!==Go&&!(e.type===Ko&&!Br(e.children))))?e:null}const Vr=e=>e?Ri(e)?zi(e)||e.proxy:Vr(e.parent):null,zr=a(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Vr(e.parent),$root:e=>Vr(e.root),$emit:e=>e.emit,$options:e=>Zr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,tn(e.update)}),$nextTick:e=>e.n||(e.n=en.bind(e.proxy)),$watch:e=>Kn.bind(e)}),Fr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),$r={get({_:e},n){const{ctx:r,setupState:o,data:i,props:s,accessCache:a,type:l,appContext:c}=e;let d;if("$"!==n[0]){const l=a[n];if(void 0!==l)switch(l){case 1:return o[n];case 2:return i[n];case 4:return r[n];case 3:return s[n]}else{if(Fr(o,n))return a[n]=1,o[n];if(i!==t&&u(i,n))return a[n]=2,i[n];if((d=e.propsOptions[0])&&u(d,n))return a[n]=3,s[n];if(r!==t&&u(r,n))return a[n]=4,r[n];Jr&&(a[n]=0)}}const p=zr[n];let f,h;return p?("$attrs"===n&&Oe(e,0,n),p(e)):(f=l.__cssModules)&&(f=f[n])?f:r!==t&&u(r,n)?(a[n]=4,r[n]):(h=c.config.globalProperties,u(h,n)?h[n]:void 0)},set({_:e},n,r){const{data:o,setupState:i,ctx:s}=e;return Fr(i,n)?(i[n]=r,!0):o!==t&&u(o,n)?(o[n]=r,!0):!u(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(s[n]=r,!0))},has({_:{data:e,setupState:n,accessCache:r,ctx:o,appContext:i,propsOptions:s}},a){let l;return!!r[a]||e!==t&&u(e,a)||Fr(n,a)||(l=s[0])&&u(l,a)||u(o,a)||u(zr,a)||u(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:u(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Hr=a({},$r,{get(e,t){if(t!==Symbol.unscopables)return $r.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!z(t)});function Ur(){return qr().slots}function Wr(){return qr().attrs}function qr(){const e=Mi();return e.setupContext||(e.setupContext=Vi(e))}function Kr(e){return d(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Jr=!0;function Gr(e){const t=Zr(e),n=e.proxy,o=e.ctx;Jr=!1,t.beforeCreate&&Yr(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:a,watch:l,provide:c,inject:u,created:p,beforeMount:f,mounted:h,beforeUpdate:g,updated:v,activated:b,deactivated:w,beforeDestroy:x,beforeUnmount:S,destroyed:k,unmounted:O,render:E,renderTracked:C,renderTriggered:M,errorCaptured:A,serverPrefetch:T,expose:_,inheritAttrs:N,components:R,directives:I,filters:P}=t;if(u&&function(e,t,n=r){d(e)&&(e=no(e));for(const r in e){const n=e[r];let o;o=y(n)?"default"in n?po(n.from||r,n.default,!0):po(n.from||r):po(n),Ct(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[r]=o}}(u,o,null),a)for(const r in a){const e=a[r];m(e)&&(o[r]=e.bind(n))}if(i){const t=i.call(n,n);y(t)&&(e.data=ut(t))}if(Jr=!0,s)for(const d in s){const e=s[d],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):r,i=!m(e)&&m(e.set)?e.set.bind(n):r,a=$i({get:t,set:i});Object.defineProperty(o,d,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const r in l)Xr(l[r],o,n,r);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{uo(t,e[t])}))}function D(e,t){d(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(p&&Yr(p,e,"c"),D(Cr,f),D(Mr,h),D(Ar,g),D(Tr,v),D(yr,b),D(br,w),D(Dr,A),D(Pr,C),D(Ir,M),D(_r,S),D(Nr,O),D(Rr,T),d(_))if(_.length){const t=e.exposed||(e.exposed={});_.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});E&&e.render===r&&(e.render=E),null!=N&&(e.inheritAttrs=N),R&&(e.components=R),I&&(e.directives=I)}function Yr(e,t,n){Ht(d(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Xr(e,t,n,r){const o=r.includes(".")?Jn(n,r):()=>n[r];if(g(e)){const n=t[e];m(n)&&Wn(o,n)}else if(m(e))Wn(o,e.bind(n));else if(y(e))if(d(e))e.forEach((e=>Xr(e,t,n,r)));else{const r=m(e.handler)?e.handler.bind(n):t[e.handler];m(r)&&Wn(o,r,e)}}function Zr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:o.length||n||r?(l={},o.length&&o.forEach((e=>Qr(l,e,s,!0))),Qr(l,t,s)):l=t,y(t)&&i.set(t,l),l}function Qr(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Qr(e,i,n,!0),o&&o.forEach((t=>Qr(e,t,n,!0)));for(const s in t)if(r&&"expose"===s);else{const r=eo[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}const eo={data:to,props:io,emits:io,methods:oo,computed:oo,beforeCreate:ro,created:ro,beforeMount:ro,mounted:ro,beforeUpdate:ro,updated:ro,beforeDestroy:ro,beforeUnmount:ro,destroyed:ro,unmounted:ro,activated:ro,deactivated:ro,errorCaptured:ro,serverPrefetch:ro,components:oo,directives:oo,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const r in t)n[r]=ro(e[r],t[r]);return n},provide:to,inject:function(e,t){return oo(no(e),no(t))}};function to(e,t){return t?e?function(){return a(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function no(e){if(d(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ro(e,t){return e?[...new Set([].concat(e,t))]:t}function oo(e,t){return e?a(Object.create(null),e,t):t}function io(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:a(Object.create(null),Kr(e),Kr(null!=t?t:{})):t}function so(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ao=0;function lo(e,t){return function(n,r=null){m(n)||(n=a({},n)),null==r||y(r)||(r=null);const o=so(),i=new WeakSet;let s=!1;const l=o.app={_uid:ao++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Wi,get config(){return o.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&m(e.install)?(i.add(e),e.install(l,...t)):m(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),l),component:(e,t)=>t?(o.components[e]=t,l):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,l):o.directives[e],mount(i,a,c){if(!s){const u=pi(n,r);return u.appContext=o,!0===c?c="svg":!1===c&&(c=void 0),a&&t?t(u,i):e(u,i,c),s=!0,l._container=i,i.__vue_app__=l,zi(u.component)||u.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,l),runWithContext(e){const t=co;co=l;try{return e()}finally{co=t}}};return l}}let co=null;function uo(e,t){if(Ci){let n=Ci.provides;const r=Ci.parent&&Ci.parent.provides;r===n&&(n=Ci.provides=Object.create(r)),n[e]=t}else;}function po(e,t,n=!1){const r=Ci||mn;if(r||co){const o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:co._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&m(t)?t.call(r&&r.proxy):t}}function fo(e,n,r,o){const[i,s]=e.propsOptions;let a,l=!1;if(n)for(let t in n){if(E(t))continue;const c=n[t];let d;i&&u(i,d=A(t))?s&&s.includes(d)?(a||(a={}))[d]=c:r[d]=c:hn(e.emitsOptions,t)||t in o&&c===o[t]||(o[t]=c,l=!0)}if(s){const n=yt(r),o=a||t;for(let t=0;t<s.length;t++){const a=s[t];r[a]=ho(i,n,a,o[a],e,!u(o,a))}}return l}function ho(e,t,n,r,o,i){const s=e[n];if(null!=s){const e=u(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&!s.skipFactory&&m(e)){const{propsDefaults:i}=o;if(n in i)r=i[n];else{const s=_i(o);r=i[n]=e.call(null,t),s()}}else r=e}s[0]&&(i&&!e?r=!1:!s[1]||""!==r&&r!==_(n)||(r=!0))}return r}function mo(e,r,o=!1){const i=r.propsCache,s=i.get(e);if(s)return s;const l=e.props,c={},p=[];let f=!1;if(!m(e)){const t=e=>{f=!0;const[t,n]=mo(e,r,!0);a(c,t),n&&p.push(...n)};!o&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!l&&!f)return y(e)&&i.set(e,n),n;if(d(l))for(let n=0;n<l.length;n++){const e=A(l[n]);go(e)&&(c[e]=t)}else if(l)for(const t in l){const e=A(t);if(go(e)){const n=l[t],r=c[e]=d(n)||m(n)?{type:n}:a({},n);if(r){const t=bo(Boolean,r.type),n=bo(String,r.type);r[0]=t>-1,r[1]=n<0||t<n,(t>-1||u(r,"default"))&&p.push(e)}}}const h=[c,p];return y(e)&&i.set(e,h),h}function go(e){return"$"!==e[0]&&!E(e)}function vo(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function yo(e,t){return vo(e)===vo(t)}function bo(e,t){return d(t)?t.findIndex((t=>yo(t,e))):m(t)&&yo(t,e)?0:-1}const wo=e=>"_"===e[0]||"$stable"===e,xo=e=>d(e)?e.map(yi):[yi(e)],So=(e,t,n)=>{if(t._n)return t;const r=yn(((...e)=>xo(t(...e))),n);return r._c=!1,r},ko=(e,t,n)=>{const r=e._ctx;for(const o in e){if(wo(o))continue;const n=e[o];if(m(n))t[o]=So(0,n,r);else if(null!=n){const e=xo(n);t[o]=()=>e}}},Oo=(e,t)=>{const n=xo(t);e.slots.default=()=>n};function Eo(e,n,r,o,i=!1){if(d(e))return void e.forEach(((e,t)=>Eo(e,n&&(d(n)?n[t]:n),r,o,i)));if(dr(o)&&!i)return;const s=4&o.shapeFlag?zi(o.component)||o.component.proxy:o.el,a=i?null:s,{i:c,r:p}=e,f=n&&n.r,h=c.refs===t?c.refs={}:c.refs,v=c.setupState;if(null!=f&&f!==p&&(g(f)?(h[f]=null,u(v,f)&&(v[f]=null)):Ct(f)&&(f.value=null)),m(p))$t(p,c,12,[a,h]);else{const t=g(p),n=Ct(p);if(t||n){const o=()=>{if(e.f){const n=t?u(v,p)?v[p]:h[p]:p.value;i?d(n)&&l(n,s):d(n)?n.includes(s)||n.push(s):t?(h[p]=[s],u(v,p)&&(v[p]=h[p])):(p.value=[s],e.k&&(h[e.k]=p.value))}else t?(h[p]=a,u(v,p)&&(v[p]=a)):n&&(p.value=a,e.k&&(h[e.k]=a))};a?(o.id=-1,_o(o,r)):o()}}}let Co=!1;const Mo=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,Ao=e=>8===e.nodeType;function To(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:a,remove:l,insert:c,createComment:u}}=e,d=(n,r,i,l,u,b=!1)=>{const w=Ao(n)&&"["===n.data,x=()=>m(n,r,i,l,u,w),{type:S,ref:k,shapeFlag:O,patchFlag:E}=r;let C=n.nodeType;r.el=n,-2===E&&(b=!1,r.dynamicChildren=null);let M=null;switch(S){case Jo:3!==C?""===r.children?(c(r.el=o(""),a(n),n),M=n):M=x():(n.data!==r.children&&(Co=!0,n.data=r.children),M=s(n));break;case Go:y(n)?(M=s(n),v(r.el=n.content.firstChild,n,i)):M=8!==C||w?x():s(n);break;case Yo:if(w&&(C=(n=s(n)).nodeType),1===C||3===C){M=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===M.nodeType?M.outerHTML:M.data),t===r.staticCount-1&&(r.anchor=M),M=s(M);return w?s(M):M}x();break;case Ko:M=w?h(n,r,i,l,u,b):x();break;default:if(1&O)M=1===C&&r.type.toLowerCase()===n.tagName.toLowerCase()||y(n)?p(n,r,i,l,u,b):x();else if(6&O){r.slotScopeIds=u;const e=a(n);if(M=w?g(n):Ao(n)&&"teleport start"===n.data?g(n,n.data,"teleport end"):s(n),t(r,e,null,i,l,Mo(e),b),dr(r)){let t;w?(t=pi(Ko),t.anchor=M?M.previousSibling:e.lastChild):t=3===n.nodeType?mi(""):pi("div"),t.el=n,r.component.subTree=t}}else 64&O?M=8!==C?x():r.type.hydrate(n,r,i,l,u,b,e,f):128&O&&(M=r.type.hydrate(n,r,i,l,Mo(a(n)),u,b,e,d))}return null!=k&&Eo(k,null,l,r),M},p=(e,t,n,o,s,a)=>{a=a||!!t.dynamicChildren;const{type:c,props:u,patchFlag:d,shapeFlag:p,dirs:h,transition:m}=t,g="input"===c||"option"===c;if(g||-1!==d){h&&Xn(t,null,n,"created");let c,b=!1;if(y(e)){b=Lo(o,m)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;b&&m.beforeEnter(r),v(r,e,n),t.el=e=r}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let r=f(e.firstChild,t,e,n,o,s,a);for(;r;){Co=!0;const e=r;r=r.nextSibling,l(e)}}else 8&p&&e.textContent!==t.children&&(Co=!0,e.textContent=t.children);if(u)if(g||!a||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||i(t)&&!E(t)||"."===t[0])&&r(e,t,null,u[t],void 0,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,void 0,void 0,n);(c=u&&u.onVnodeBeforeMount)&&Si(c,n,t),h&&Xn(t,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||h||b)&&jn((()=>{c&&Si(c,n,t),b&&m.enter(e),h&&Xn(t,null,n,"mounted")}),o)}return e.nextSibling},f=(e,t,r,o,i,s,a)=>{a=a||!!t.dynamicChildren;const l=t.children,c=l.length;for(let u=0;u<c;u++){const t=a?l[u]:l[u]=yi(l[u]);if(e)e=d(e,t,o,i,s,a);else{if(t.type===Jo&&!t.children)continue;Co=!0,n(null,t,r,null,o,i,Mo(r),s)}}return e},h=(e,t,n,r,o,i)=>{const{slotScopeIds:l}=t;l&&(o=o?o.concat(l):l);const d=a(e),p=f(s(e),t,d,n,r,o,i);return p&&Ao(p)&&"]"===p.data?s(t.anchor=p):(Co=!0,c(t.anchor=u("]"),d,p),p)},m=(e,t,r,o,i,c)=>{if(Co=!0,t.el=null,c){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;l(n)}}const u=s(e),d=a(e);return l(e),n(null,t,d,u,r,o,Mo(d),i),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=s(e))&&Ao(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return s(e);r--}return e},v=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),sn(),void(t._vnode=e);Co=!1,d(t.firstChild,e,null,null,null),sn(),t._vnode=e},d]}const _o=jn;function No(e){return Io(e)}function Ro(e){return Io(e,To)}function Io(e,o){V().__VUE__=!0;const{insert:i,remove:s,patchProp:l,createElement:c,createText:d,createComment:p,setText:f,setElementText:h,parentNode:m,nextSibling:g,setScopeId:v=r,insertStaticContent:y}=e,b=(e,t,n,r=null,o=null,i=null,s,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ai(e,t)&&(r=Y(e),W(e,o,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Jo:w(e,t,n,r);break;case Go:x(e,t,n,r);break;case Yo:null==e&&S(t,n,r,s);break;case Ko:I(e,t,n,r,o,i,s,a,l);break;default:1&d?k(e,t,n,r,o,i,s,a,l):6&d?D(e,t,n,r,o,i,s,a,l):(64&d||128&d)&&c.process(e,t,n,r,o,i,s,a,l,Q)}null!=u&&o&&Eo(u,e&&e.ref,i,t||e,!t)},w=(e,t,n,r)=>{if(null==e)i(t.el=d(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},x=(e,t,n,r)=>{null==e?i(t.el=p(t.children||""),n,r):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=y(e.children,t,n,r,e.el,e.anchor)},k=(e,t,n,r,o,i,s,a,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?O(t,n,r,o,i,s,a,l):T(e,t,o,i,s,a,l)},O=(e,t,n,r,o,s,a,u)=>{let d,p;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,s,f&&f.is,f),8&m?h(d,e.children):16&m&&M(e.children,d,null,r,o,Po(e,s),a,u),v&&Xn(e,null,r,"created"),C(d,e,e.scopeId,a,r),f){for(const t in f)"value"===t||E(t)||l(d,t,null,f[t],s,e.children,r,o,G);"value"in f&&l(d,"value",null,f.value,s),(p=f.onVnodeBeforeMount)&&Si(p,r,e)}v&&Xn(e,null,r,"beforeMount");const y=Lo(o,g);y&&g.beforeEnter(d),i(d,t,n),((p=f&&f.onVnodeMounted)||y||v)&&_o((()=>{p&&Si(p,r,e),y&&g.enter(d),v&&Xn(e,null,r,"mounted")}),o)},C=(e,t,n,r,o)=>{if(n&&v(e,n),r)for(let i=0;i<r.length;i++)v(e,r[i]);if(o){if(t===o.subTree){const t=o.vnode;C(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},M=(e,t,n,r,o,i,s,a,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=a?bi(e[c]):yi(e[c]);b(null,l,t,n,r,o,i,s,a)}},T=(e,n,r,o,i,s,a)=>{const c=n.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=n;u|=16&e.patchFlag;const f=e.props||t,m=n.props||t;let g;if(r&&Do(r,!1),(g=m.onVnodeBeforeUpdate)&&Si(g,r,n,e),p&&Xn(n,e,r,"beforeUpdate"),r&&Do(r,!0),d?N(e.dynamicChildren,d,c,r,o,Po(n,i),s):a||F(e,n,c,null,r,o,Po(n,i),s,!1),u>0){if(16&u)R(c,n,f,m,r,o,i);else if(2&u&&f.class!==m.class&&l(c,"class",null,m.class,i),4&u&&l(c,"style",f.style,m.style,i),8&u){const t=n.dynamicProps;for(let n=0;n<t.length;n++){const s=t[n],a=f[s],u=m[s];u===a&&"value"!==s||l(c,s,a,u,i,e.children,r,o,G)}}1&u&&e.children!==n.children&&h(c,n.children)}else a||null!=d||R(c,n,f,m,r,o,i);((g=m.onVnodeUpdated)||p)&&_o((()=>{g&&Si(g,r,n,e),p&&Xn(n,e,r,"updated")}),o)},N=(e,t,n,r,o,i,s)=>{for(let a=0;a<t.length;a++){const l=e[a],c=t[a],u=l.el&&(l.type===Ko||!ai(l,c)||70&l.shapeFlag)?m(l.el):n;b(l,c,u,null,r,o,i,s,!0)}},R=(e,n,r,o,i,s,a)=>{if(r!==o){if(r!==t)for(const t in r)E(t)||t in o||l(e,t,r[t],null,a,n.children,i,s,G);for(const t in o){if(E(t))continue;const c=o[t],u=r[t];c!==u&&"value"!==t&&l(e,t,u,c,a,n.children,i,s,G)}"value"in o&&l(e,"value",r.value,o.value,a)}},I=(e,t,n,r,o,s,a,l,c)=>{const u=t.el=e?e.el:d(""),p=t.anchor=e?e.anchor:d("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(i(u,n,r),i(p,n,r),M(t.children||[],n,p,o,s,a,l,c)):f>0&&64&f&&h&&e.dynamicChildren?(N(e.dynamicChildren,h,n,o,s,a,l),(null!=t.key||o&&t===o.subTree)&&jo(e,t,!0)):F(e,t,n,p,o,s,a,l,c)},D=(e,t,n,r,o,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,l):L(t,n,r,o,i,s,l):j(e,t,l)},L=(e,t,n,r,o,i,s)=>{const a=e.component=Ei(e,r,o);if(hr(e)&&(a.ctx.renderer=Q),Li(a),a.asyncDep){if(o&&o.registerDep(a,B),!e.el){const e=a.subTree=pi(Go);x(null,e,t,n)}}else B(a,e,t,n,o,i,s)},j=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!a||a&&a.$stable)||r!==s&&(r?!s||Sn(r,s,c):!!s);if(1024&l)return!0;if(16&l)return r?Sn(r,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==r[n]&&!hn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void z(r,t,n);r.next=t,function(e){const t=Kt.indexOf(e);t>Jt&&Kt.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},B=(e,t,n,o,i,s,a)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:o,vnode:c}=e;{const n=Bo(e);if(n)return t&&(t.el=c.el,z(e,t,a)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let u,d=t;Do(e,!1),t?(t.el=c.el,z(e,t,a)):t=c,n&&P(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&Si(u,o,t,c),Do(e,!0);const p=bn(e),f=e.subTree;e.subTree=p,b(f,p,m(f.el),Y(f),e,i,s),t.el=p.el,null===d&&kn(e,p.el),r&&_o(r,i),(u=t.props&&t.props.onVnodeUpdated)&&_o((()=>Si(u,o,t,c)),i)}else{let r;const{el:a,props:l}=t,{bm:c,m:u,parent:d}=e,p=dr(t);if(Do(e,!1),c&&P(c),!p&&(r=l&&l.onVnodeBeforeMount)&&Si(r,d,t),Do(e,!0),a&&te){const n=()=>{e.subTree=bn(e),te(a,e.subTree,e,i,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const r=e.subTree=bn(e);b(null,r,n,o,e,i,s),t.el=r.el}if(u&&_o(u,i),!p&&(r=l&&l.onVnodeMounted)){const e=t;_o((()=>Si(r,d,e)),i)}(256&t.shapeFlag||d&&dr(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&_o(e.a,i),e.isMounted=!0,t=n=o=null}},c=e.effect=new se(l,r,(()=>tn(u)),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.id=e.uid,Do(e,!0),u()},z=(e,n,r)=>{n.component=e;const o=e.vnode.props;e.vnode=n,e.next=null,function(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=yt(o),[l]=e.propsOptions;let c=!1;if(!(r||s>0)||16&s){let r;fo(e,t,o,i)&&(c=!0);for(const i in a)t&&(u(t,i)||(r=_(i))!==i&&u(t,r))||(l?!n||void 0===n[i]&&void 0===n[r]||(o[i]=ho(l,a,i,void 0,e,!0)):delete o[i]);if(i!==a)for(const e in i)t&&u(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let s=n[r];if(hn(e.emitsOptions,s))continue;const d=t[s];if(l)if(u(i,s))d!==i[s]&&(i[s]=d,c=!0);else{const t=A(s);o[t]=ho(l,a,t,d,e,!1)}else d!==i[s]&&(i[s]=d,c=!0)}}c&&Ee(e,"set","$attrs")}(e,n.props,o,r),((e,n,r)=>{const{vnode:o,slots:i}=e;let s=!0,l=t;if(32&o.shapeFlag){const e=n._;e?r&&1===e?s=!1:(a(i,n),r||1!==e||delete i._):(s=!n.$stable,ko(n,i)),l=n}else n&&(Oo(e,n),l={default:1});if(s)for(const t in i)wo(t)||null!=l[t]||delete i[t]})(e,n.children,r),fe(),on(e),he()},F=(e,t,n,r,o,i,s,a,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void H(c,d,n,r,o,i,s,a,l);if(256&p)return void $(c,d,n,r,o,i,s,a,l)}8&f?(16&u&&G(c,o,i),d!==c&&h(n,d)):16&u?16&f?H(c,d,n,r,o,i,s,a,l):G(c,o,i,!0):(8&u&&h(n,""),16&f&&M(d,n,r,o,i,s,a,l))},$=(e,t,r,o,i,s,a,l,c)=>{t=t||n;const u=(e=e||n).length,d=t.length,p=Math.min(u,d);let f;for(f=0;f<p;f++){const n=t[f]=c?bi(t[f]):yi(t[f]);b(e[f],n,r,null,i,s,a,l,c)}u>d?G(e,i,s,!0,!1,p):M(t,r,o,i,s,a,l,c,p)},H=(e,t,r,o,i,s,a,l,c)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const n=e[u],o=t[u]=c?bi(t[u]):yi(t[u]);if(!ai(n,o))break;b(n,o,r,null,i,s,a,l,c),u++}for(;u<=p&&u<=f;){const n=e[p],o=t[f]=c?bi(t[f]):yi(t[f]);if(!ai(n,o))break;b(n,o,r,null,i,s,a,l,c),p--,f--}if(u>p){if(u<=f){const e=f+1,n=e<d?t[e].el:o;for(;u<=f;)b(null,t[u]=c?bi(t[u]):yi(t[u]),r,n,i,s,a,l,c),u++}}else if(u>f)for(;u<=p;)W(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=c?bi(t[u]):yi(t[u]);null!=e.key&&g.set(e.key,u)}let v,y=0;const w=f-m+1;let x=!1,S=0;const k=new Array(w);for(u=0;u<w;u++)k[u]=0;for(u=h;u<=p;u++){const n=e[u];if(y>=w){W(n,i,s,!0);continue}let o;if(null!=n.key)o=g.get(n.key);else for(v=m;v<=f;v++)if(0===k[v-m]&&ai(n,t[v])){o=v;break}void 0===o?W(n,i,s,!0):(k[o-m]=u+1,o>=S?S=o:x=!0,b(n,t[o],r,null,i,s,a,l,c),y++)}const O=x?function(e){const t=e.slice(),n=[0];let r,o,i,s,a;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(o=n[n.length-1],e[o]<l){t[r]=o,n.push(r);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<l?i=a+1:s=a;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(k):n;for(v=O.length-1,u=w-1;u>=0;u--){const e=m+u,n=t[e],p=e+1<d?t[e+1].el:o;0===k[u]?b(null,n,r,p,i,s,a,l,c):x&&(v<0||u!==O[v]?U(n,r,p,2):v--)}}},U=(e,t,n,r,o=null)=>{const{el:s,type:a,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,n,r);if(128&u)return void e.suspense.move(t,n,r);if(64&u)return void a.move(e,t,n,Q);if(a===Ko){i(s,t,n);for(let e=0;e<c.length;e++)U(c[e],t,n,r);return void i(e.anchor,t,n)}if(a===Yo)return void(({el:e,anchor:t},n,r)=>{let o;for(;e&&e!==t;)o=g(e),i(e,n,r),e=o;i(t,n,r)})(e,t,n);if(2!==r&&1&u&&l)if(0===r)l.beforeEnter(s),i(s,t,n),_o((()=>l.enter(s)),o);else{const{leave:e,delayLeave:r,afterLeave:o}=l,a=()=>i(s,t,n),c=()=>{e(s,(()=>{a(),o&&o()}))};r?r(s,a,c):c()}else i(s,t,n)},W=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=a&&Eo(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,h=!dr(e);let m;if(h&&(m=s&&s.onVnodeBeforeUnmount)&&Si(m,t,e),6&u)J(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&Xn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,Q,r):c&&(i!==Ko||d>0&&64&d)?G(c,t,n,!1,!0):(i===Ko&&384&d||!o&&16&u)&&G(l,t,n),r&&q(e)}(h&&(m=s&&s.onVnodeUnmounted)||f)&&_o((()=>{m&&Si(m,t,e),f&&Xn(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Ko)return void K(n,r);if(t===Yo)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,s=()=>t(n,i);r?r(e.el,i,s):s()}else i()},K=(e,t)=>{let n;for(;e!==t;)n=g(e),s(e),e=n;s(t)},J=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:s,um:a}=e;r&&P(r),o.stop(),i&&(i.active=!1,W(s,e,t,n)),a&&_o(a,t),_o((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s<e.length;s++)W(e[s],t,n,r,o)},Y=e=>6&e.shapeFlag?Y(e.component.subTree):128&e.shapeFlag?e.suspense.next():g(e.anchor||e.el);let X=!1;const Z=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),X||(X=!0,on(),sn(),X=!1),t._vnode=e},Q={p:b,um:W,m:U,r:q,mt:L,mc:M,pc:F,pbc:N,n:Y,o:e};let ee,te;return o&&([ee,te]=o(Q)),{render:Z,hydrate:ee,createApp:lo(Z,ee)}}function Po({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Do({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Lo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jo(e,t,n=!1){const r=e.children,o=t.children;if(d(r)&&d(o))for(let i=0;i<r.length;i++){const e=r[i];let t=o[i];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=o[i]=bi(o[i]),t.el=e.el),n||jo(e,t)),t.type===Jo&&(t.el=e.el)}}function Bo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bo(t)}const Vo=e=>e&&(e.disabled||""===e.disabled),zo=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Fo=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,$o=(e,t)=>{const n=e&&e.to;if(g(n)){if(t){return t(n)}return null}return n},Ho={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,s,a,l,c){const{mc:u,pc:d,pbc:p,o:{insert:f,querySelector:h,createText:m,createComment:g}}=c,v=Vo(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");f(e,n,r),f(c,n,r);const d=t.target=$o(t.props,h),p=t.targetAnchor=m("");d&&(f(p,d),"svg"===s||zo(d)?s="svg":("mathml"===s||Fo(d))&&(s="mathml"));const g=(e,t)=>{16&y&&u(b,e,t,o,i,s,a,l)};v?g(n,c):d&&g(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=Vo(e.props),g=m?n:u,y=m?r:f;if("svg"===s||zo(u)?s="svg":("mathml"===s||Fo(u))&&(s="mathml"),w?(p(e.dynamicChildren,w,g,o,i,s,a),jo(e,t,!0)):l||d(e,t,g,y,o,i,s,a,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Uo(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=$o(t.props,h);e&&Uo(t,e,null,c,0)}else m&&Uo(t,u,f,c,1)}qo(t)},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&i(u),s&&i(c),16&a){const e=s||!Vo(p);for(let r=0;r<l.length;r++){const i=l[r];o(i,t,n,e,!!i.dynamicChildren)}}},move:Uo,hydrate:function(e,t,n,r,o,i,{o:{nextSibling:s,parentNode:a,querySelector:l}},c){const u=t.target=$o(t.props,l);if(u){const l=u._lpa||u.firstChild;if(16&t.shapeFlag)if(Vo(t.props))t.anchor=c(s(e),t,a(e),n,r,o,i),t.targetAnchor=l;else{t.anchor=s(e);let a=l;for(;a;)if(a=s(a),a&&8===a.nodeType&&"teleport anchor"===a.data){t.targetAnchor=a,u._lpa=t.targetAnchor&&s(t.targetAnchor);break}c(l,t,u,n,r,o,i)}qo(t)}return t.anchor&&s(t.anchor)}};function Uo(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:u}=e,d=2===i;if(d&&r(s,t,n),(!d||Vo(u))&&16&l)for(let p=0;p<c.length;p++)o(c[p],t,n,2);d&&r(a,t,n)}const Wo=Ho;function qo(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ko=Symbol.for("v-fgt"),Jo=Symbol.for("v-txt"),Go=Symbol.for("v-cmt"),Yo=Symbol.for("v-stc"),Xo=[];let Zo=null;function Qo(e=!1){Xo.push(Zo=e?null:[])}function ei(){Xo.pop(),Zo=Xo[Xo.length-1]||null}let ti=1;function ni(e){ti+=e}function ri(e){return e.dynamicChildren=ti>0?Zo||n:null,ei(),ti>0&&Zo&&Zo.push(e),e}function oi(e,t,n,r,o,i){return ri(di(e,t,n,r,o,i,!0))}function ii(e,t,n,r,o){return ri(pi(e,t,n,r,o,!0))}function si(e){return!!e&&!0===e.__v_isVNode}function ai(e,t){return e.type===t.type&&e.key===t.key}const li="__vInternal",ci=({key:e})=>null!=e?e:null,ui=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?g(e)||Ct(e)||m(e)?{i:mn,r:e,k:t,f:!!n}:e:null);function di(e,t=null,n=null,r=0,o=null,i=(e===Ko?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ci(t),ref:t&&ui(t),scopeId:gn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:mn};return a?(wi(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=g(n)?8:16),ti>0&&!s&&Zo&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&Zo.push(l),l}const pi=function(e,t=null,n=null,r=0,o=null,i=!1){e&&e!==Cn||(e=Go);if(si(e)){const r=hi(e,t,!0);return n&&wi(r,n),ti>0&&!i&&Zo&&(6&r.shapeFlag?Zo[Zo.indexOf(e)]=r:Zo.push(r)),r.patchFlag|=-2,r}s=e,m(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=fi(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=q(e)),y(n)&&(vt(n)&&!d(n)&&(n=a({},n)),t.style=F(n))}const l=g(e)?1:Nn(e)?128:(e=>e.__isTeleport)(e)?64:y(e)?4:m(e)?2:0;return di(e,t,n,r,o,l,i,!0)};function fi(e){return e?vt(e)||li in e?a({},e):e:null}function hi(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,a=t?xi(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ci(a),ref:t&&t.ref?n&&o?d(o)?o.concat(ui(t)):[o,ui(t)]:ui(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ko?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hi(e.ssContent),ssFallback:e.ssFallback&&hi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function mi(e=" ",t=0){return pi(Jo,null,e,t)}function gi(e,t){const n=pi(Yo,null,e);return n.staticCount=t,n}function vi(e="",t=!1){return t?(Qo(),ii(Go,null,e)):pi(Go,null,e)}function yi(e){return null==e||"boolean"==typeof e?pi(Go):d(e)?pi(Ko,null,e.slice()):"object"==typeof e?bi(e):pi(Jo,null,String(e))}function bi(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:hi(e)}function wi(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(d(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),wi(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||li in t?3===r&&mn&&(1===mn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=mn}}else m(t)?(t={default:t,_ctx:mn},n=32):(t=String(t),64&r?(n=16,t=[mi(t)]):n=8);e.children=t,e.shapeFlag|=n}function xi(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=q([t.class,r.class]));else if("style"===e)t.style=F([t.style,r.style]);else if(i(e)){const n=t[e],o=r[e];!o||n===o||d(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}function Si(e,t,n,r=null){Ht(e,t,7,[n,r])}const ki=so();let Oi=0;function Ei(e,n,r){const o=e.type,i=(n?n.appContext:e.appContext)||ki,s={uid:Oi++,vnode:e,type:o,parent:n,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:mo(o,i),emitsOptions:fn(o,i),emit:null,emitted:null,propsDefaults:t,inheritAttrs:o.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=n?n.root:s,s.emit=pn.bind(null,s),e.ce&&e.ce(s),s}let Ci=null;const Mi=()=>Ci||mn;let Ai,Ti;{const e=V(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};Ai=t("__VUE_INSTANCE_SETTERS__",(e=>Ci=e)),Ti=t("__VUE_SSR_SETTERS__",(e=>Di=e))}const _i=e=>{const t=Ci;return Ai(e),e.scope.on(),()=>{e.scope.off(),Ai(t)}},Ni=()=>{Ci&&Ci.scope.off(),Ai(null)};function Ri(e){return 4&e.vnode.shapeFlag}let Ii,Pi,Di=!1;function Li(e,t=!1){t&&Ti(t);const{props:n,children:r}=e.vnode,o=Ri(e);!function(e,t,n,r=!1){const o={},i={};D(i,li,1),e.propsDefaults=Object.create(null),fo(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:dt(o):e.type.props?e.props=o:e.props=i,e.attrs=i}(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=yt(t),D(t,"_",n)):ko(t,e.slots={})}else e.slots={},t&&Oo(e,t);D(e.slots,li,1)})(e,r);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=bt(new Proxy(e.ctx,$r));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Vi(e):null,o=_i(e);fe();const i=$t(r,e,0,[e.props,n]);if(he(),o(),b(i)){if(i.then(Ni,Ni),t)return i.then((n=>{ji(e,n,t)})).catch((t=>{Ut(t,e,0)}));e.asyncDep=i}else ji(e,i,t)}else Bi(e,t)}(e,t):void 0;return t&&Ti(!1),i}function ji(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:y(t)&&(e.setupState=It(t)),Bi(e,n)}function Bi(e,t,n){const o=e.type;if(!e.render){if(!t&&Ii&&!o.render){const t=o.template||Zr(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,l=a(a({isCustomElement:n,delimiters:i},r),s);o.render=Ii(t,l)}}e.render=o.render||r,Pi&&Pi(e)}{const t=_i(e);fe();try{Gr(e)}finally{he(),t()}}}function Vi(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(Oe(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function zi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(It(bt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in zr?zr[n](e):void 0,has:(e,t)=>t in e||t in zr}))}function Fi(e,t=!0){return m(e)?e.displayName||e.name:e.name||t&&e.__name}const $i=(e,t)=>kt(e,0,Di);function Hi(e,t,n){const r=arguments.length;return 2===r?y(t)&&!d(t)?si(t)?pi(e,null,[t]):pi(e,t):pi(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&si(n)&&(n=[n]),pi(e,t,n))}function Ui(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(I(n[r],t[r]))return!1;return ti>0&&Zo&&Zo.push(e),!0}const Wi="3.4.19",qi=r,Ki=Ft,Ji=un,Gi=function e(t,n){var r,o;if(un=t,un)un.enabled=!0,dn.forEach((({event:e,args:t})=>un.emit(e,...t))),dn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{un||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,dn=[])}),3e3)}else dn=[]},Yi={createComponentInstance:Ei,setupComponent:Li,renderComponentRoot:bn,setCurrentRenderingInstance:vn,isVNode:si,normalizeVNode:yi},Xi="undefined"!=typeof document?document:null,Zi=Xi&&Xi.createElement("template"),Qi={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="svg"===t?Xi.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Xi.createElementNS("http://www.w3.org/1998/Math/MathML",e):Xi.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Xi.createTextNode(e),createComment:e=>Xi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{Zi.innerHTML="svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e;const o=Zi.content;if("svg"===r||"mathml"===r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},es="transition",ts="animation",ns=Symbol("_vtc"),rs=(e,{slots:t})=>Hi(rr,cs(e),t);rs.displayName="Transition";const is={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},ss=rs.props=a({},nr,is),as=(e,t=[])=>{d(e)?e.forEach((e=>e(...t))):e&&e(...t)},ls=e=>!!e&&(d(e)?e.some((e=>e.length>1)):e.length>1);function cs(e){const t={};for(const a in e)a in is||(t[a]=e[a]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(y(e))return[us(e.enter),us(e.leave)];{const t=us(e);return[t,t]}}(o),g=m&&m[0],v=m&&m[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:x,onLeave:S,onLeaveCancelled:k,onBeforeAppear:O=b,onAppear:E=w,onAppearCancelled:C=x}=t,M=(e,t,n)=>{ps(e,t?d:l),ps(e,t?u:s),n&&n()},A=(e,t)=>{e._isLeaving=!1,ps(e,p),ps(e,h),ps(e,f),t&&t()},T=e=>(t,n)=>{const o=e?E:w,s=()=>M(t,e,n);as(o,[t,s]),fs((()=>{ps(t,e?c:i),ds(t,e?d:l),ls(o)||ms(t,r,g,s)}))};return a(t,{onBeforeEnter(e){as(b,[e]),ds(e,i),ds(e,s)},onBeforeAppear(e){as(O,[e]),ds(e,c),ds(e,u)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>A(e,t);ds(e,p),bs(),ds(e,f),fs((()=>{e._isLeaving&&(ps(e,p),ds(e,h),ls(S)||ms(e,r,v,n))})),as(S,[e,n])},onEnterCancelled(e){M(e,!1),as(x,[e])},onAppearCancelled(e){M(e,!0),as(C,[e])},onLeaveCancelled(e){A(e),as(k,[e])}})}function us(e){return j(e)}function ds(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[ns]||(e[ns]=new Set)).add(t)}function ps(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[ns];n&&(n.delete(t),n.size||(e[ns]=void 0))}function fs(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let hs=0;function ms(e,t,n,r){const o=e._endId=++hs,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=gs(e,t);if(!s)return r();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),a+1),e.addEventListener(c,p)}function gs(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(`${es}Delay`),i=r(`${es}Duration`),s=vs(o,i),a=r(`${ts}Delay`),l=r(`${ts}Duration`),c=vs(a,l);let u=null,d=0,p=0;t===es?s>0&&(u=es,d=s,p=i.length):t===ts?c>0&&(u=ts,d=c,p=l.length):(d=Math.max(s,c),u=d>0?s>c?es:ts:null,p=u?u===es?i.length:l.length:0);return{type:u,timeout:d,propCount:p,hasTransform:u===es&&/\b(transform|all)(,|$)/.test(r(`${es}Property`).toString())}}function vs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>ys(t)+ys(e[n]))))}function ys(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function bs(){return document.body.offsetHeight}const ws=Symbol("_vod"),xs={beforeMount(e,{value:t},{transition:n}){e[ws]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ss(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){(!t!=!n||e.style.display!==e[ws]&&t)&&(r?t?(r.beforeEnter(e),Ss(e,!0),r.enter(e)):r.leave(e,(()=>{Ss(e,!1)})):Ss(e,t))},beforeUnmount(e,{value:t}){Ss(e,t)}};function Ss(e,t){e.style.display=t?e[ws]:"none"}const ks=Symbol("");function Os(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Os(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Es(e.el,t);else if(e.type===Ko)e.children.forEach((e=>Os(e,t)));else if(e.type===Yo){let{el:n,anchor:r}=e;for(;n&&(Es(n,t),n!==r);)n=n.nextSibling}}function Es(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[ks]=r}}const Cs=/(^|;)\s*display\s*:/;const Ms=/\s*!important$/;function As(e,t,n){if(d(n))n.forEach((n=>As(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=_s[t];if(n)return n;let r=A(t);if("filter"!==r&&r in e)return _s[t]=r;r=N(r);for(let o=0;o<Ts.length;o++){const n=Ts[o]+r;if(n in e)return _s[t]=n}return t}(e,t);Ms.test(n)?e.setProperty(_(r),n.replace(Ms,""),"important"):e[r]=n}}const Ts=["Webkit","Moz","ms"],_s={};const Ns="http://www.w3.org/1999/xlink";function Rs(e,t,n,r){e.addEventListener(t,n,r)}const Is=Symbol("_vei");function Ps(e,t,n,r,o=null){const i=e[Is]||(e[Is]={}),s=i[t];if(r&&s)s.value=r;else{const[n,a]=function(e){let t;if(Ds.test(e)){let n;for(t={};n=e.match(Ds);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):_(e.slice(2));return[n,t]}(t);if(r){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Ht(function(e,t){if(d(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>Ls||(js.then((()=>Ls=0)),Ls=Date.now()))(),n}(r,o);Rs(e,n,s,a)}else s&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,a),i[t]=void 0)}}const Ds=/(?:Once|Passive|Capture)$/;let Ls=0;const js=Promise.resolve();const Bs=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;
/*! #__NO_SIDE_EFFECTS__ */
function Vs(e,t){const n=ur(e);class r extends Fs{constructor(e){super(n,e,t)}}return r.def=n,r}
/*! #__NO_SIDE_EFFECTS__ */const zs="undefined"!=typeof HTMLElement?HTMLElement:class{};class Fs extends zs{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),en((()=>{this._connected||(Sa(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let o;if(n&&!d(n))for(const i in n){const e=n[i];(e===Number||e&&e.type===Number)&&(i in this._props&&(this._props[i]=j(this._props[i])),(o||(o=Object.create(null)))[A(i)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=d(t)?t:Object.keys(t||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of n.map(A))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(e){this._setProp(r,e)}})}_setAttr(e){let t=this.getAttribute(e);const n=A(e);this._numberProps&&this._numberProps[n]&&(t=j(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(_(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(_(e),t+""):t||this.removeAttribute(_(e))))}_update(){Sa(this._createVNode(),this.shadowRoot)}_createVNode(){const e=pi(this._def,a({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),_(e)!==e&&t(_(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Fs){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}const $s=new WeakMap,Hs=new WeakMap,Us=Symbol("_moveCb"),Ws=Symbol("_enterCb"),qs={name:"TransitionGroup",props:a({},ss,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Mi(),r=er();let o,i;return Tr((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[ns];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=gs(r);return i.removeChild(r),s}(o[0].el,n.vnode.el,t))return;o.forEach(Js),o.forEach(Gs);const r=o.filter(Ys);bs(),r.forEach((e=>{const n=e.el,r=n.style;ds(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[Us]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[Us]=null,ps(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const s=yt(e),a=cs(s);let l=s.tag||Ko;o=i,i=t.default?cr(t.default()):[];for(let e=0;e<i.length;e++){const t=i[e];null!=t.key&&lr(t,ir(t,a,r,n))}if(o)for(let e=0;e<o.length;e++){const t=o[e];lr(t,ir(t,a,r,n)),$s.set(t,t.el.getBoundingClientRect())}return pi(l,null,i)}}},Ks=qs;function Js(e){const t=e.el;t[Us]&&t[Us](),t[Ws]&&t[Ws]()}function Gs(e){Hs.set(e,e.el.getBoundingClientRect())}function Ys(e){const t=$s.get(e),n=Hs.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}const Xs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return d(t)?e=>P(t,e):t};function Zs(e){e.target.composing=!0}function Qs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ea=Symbol("_assign"),ta={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[ea]=Xs(o);const i=r||o.props&&"number"===o.props.type;Rs(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),i&&(r=L(r)),e[ea](r)})),n&&Rs(e,"change",(()=>{e.value=e.value.trim()})),t||(Rs(e,"compositionstart",Zs),Rs(e,"compositionend",Qs),Rs(e,"change",Qs))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e[ea]=Xs(i),e.composing)return;const s=null==t?"":t;if((o||"number"===e.type?L(e.value):e.value)!==s){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===s)return}e.value=s}}},na={deep:!0,created(e,t,n){e[ea]=Xs(n),Rs(e,"change",(()=>{const t=e._modelValue,n=aa(e),r=e.checked,o=e[ea];if(d(t)){const e=Y(t,n),i=-1!==e;if(r&&!i)o(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),o(n)}}else if(f(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(la(e,r))}))},mounted:ra,beforeUpdate(e,t,n){e[ea]=Xs(n),ra(e,t,n)}};function ra(e,{value:t,oldValue:n},r){e._modelValue=t,d(t)?e.checked=Y(t,r.props.value)>-1:f(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=G(t,la(e,!0)))}const oa={created(e,{value:t},n){e.checked=G(t,n.props.value),e[ea]=Xs(n),Rs(e,"change",(()=>{e[ea](aa(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[ea]=Xs(r),t!==n&&(e.checked=G(t,r.props.value))}},ia={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=f(t);Rs(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?L(aa(e)):aa(e)));e[ea](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,en((()=>{e._assigning=!1}))})),e[ea]=Xs(r)},mounted(e,{value:t,oldValue:n,modifiers:{number:r}}){sa(e,t,n,r)},beforeUpdate(e,t,n){e[ea]=Xs(n)},updated(e,{value:t,oldValue:n,modifiers:{number:r}}){e._assigning||sa(e,t,n,r)}};function sa(e,t,n,r){const o=e.multiple,i=d(t);if(!o||i||f(t)){for(let n=0,s=e.options.length;n<s;n++){const s=e.options[n],a=aa(s);if(o)if(i){const e=typeof a;s.selected="string"===e||"number"===e?t.includes(r?L(a):a):Y(t,a)>-1}else s.selected=t.has(a);else if(G(aa(s),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function aa(e){return"_value"in e?e._value:e.value}function la(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ca={created(e,t,n){da(e,t,n,null,"created")},mounted(e,t,n){da(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){da(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){da(e,t,n,r,"updated")}};function ua(e,t){switch(e){case"SELECT":return ia;case"TEXTAREA":return ta;default:switch(t){case"checkbox":return na;case"radio":return oa;default:return ta}}}function da(e,t,n,r,o){const i=ua(e.tagName,n.props&&n.props.type)[o];i&&i(e,t,n,r)}const pa=["ctrl","shift","alt","meta"],fa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>pa.some((n=>e[`${n}Key`]&&!t.includes(n)))},ha=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=fa[t[e]];if(r&&r(n,t))return}return e(n,...r)})},ma={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ga=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=_(n.key);return t.some((e=>e===r||ma[e]===r))?e(n):void 0})},va=a({patchProp:(e,t,n,r,o,a,l,c,u)=>{const d="svg"===o;"class"===t?function(e,t,n){const r=e[ns];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,d):"style"===t?function(e,t,n){const r=e.style,o=g(n),i=r.display;let s=!1;if(n&&!o){if(t&&!g(t))for(const e in t)null==n[e]&&As(r,e,"");for(const e in n)"display"===e&&(s=!0),As(r,e,n[e])}else if(o){if(t!==n){const e=r[ks];e&&(n+=";"+e),r.cssText=n,s=Cs.test(n)}}else t&&e.removeAttribute("style");ws in e&&(e[ws]=s?r.display:"",r.display=i)}(e,n,r):i(t)?s(t)||Ps(e,t,0,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Bs(t)&&m(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Bs(t)&&g(n))return!1;return t in e}(e,t,r,d))?function(e,t,n,r,o,i,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,o,i),void(e[t]=null==n?"":n);const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){e._value=n;const r=null==n?"":n;return("OPTION"===a?e.getAttribute("value"):e.value)!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=J(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(c){}l&&e.removeAttribute(t)}(e,t,r,a,l,c,u):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Ns,t.slice(6,t.length)):e.setAttributeNS(Ns,t,n);else{const r=K(t);null==n||r&&!J(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,d))}},Qi);let ya,ba=!1;function wa(){return ya||(ya=No(va))}function xa(){return ya=ba?ya:Ro(va),ba=!0,ya}const Sa=(...e)=>{wa().render(...e)},ka=(...e)=>{xa().hydrate(...e)},Oa=(...e)=>{const t=wa().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=Ca(e);if(!r)return;const o=t._component;m(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Ea(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Ea(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Ca(e){if(g(e)){return document.querySelector(e)}return e}let Ma=!1;const Aa=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:rr,BaseTransitionPropsValidators:nr,Comment:Go,DeprecationTypes:null,EffectScope:ne,ErrorCodes:{SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",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"},ErrorTypeStrings:Ki,Fragment:Ko,KeepAlive:gr,ReactiveEffect:se,Static:Yo,Suspense:In,Teleport:Wo,Text:Jo,TrackOpTypes:{GET:"get",HAS:"has",ITERATE:"iterate"},Transition:rs,TransitionGroup:Ks,TriggerOpTypes:{SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},VueElement:Fs,assertNumber:function(e,t){},callWithAsyncErrorHandling:Ht,callWithErrorHandling:$t,camelize:A,capitalize:N,cloneVNode:hi,compatUtils:null,compile:()=>{},computed:$i,createApp:Oa,createBlock:ii,createCommentVNode:vi,createElementBlock:oi,createElementVNode:di,createHydrationRenderer:Ro,createPropsRestProxy:function(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n},createRenderer:No,createSSRApp:(...e)=>{const t=xa().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Ca(e);if(t)return n(t,!0,Ea(t))},t},createSlots:function(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(d(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e},createStaticVNode:gi,createTextVNode:mi,createVNode:pi,customRef:Dt,defineAsyncComponent:pr,defineComponent:ur,defineCustomElement:Vs,defineEmits:function(){return null},defineExpose:function(e){},defineModel:function(){},defineOptions:function(e){},defineProps:function(){return null},defineSSRCustomElement:e=>Vs(e,ka),defineSlots:function(){return null},devtools:Ji,effect:function(e,t){e.effect instanceof se&&(e=e.effect.fn);const n=new se(e,r,(()=>{n.dirty&&n.run()}));t&&(a(n,t),t.scope&&re(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o},effectScope:function(e){return new ne(e)},getCurrentInstance:Mi,getCurrentScope:oe,getTransitionRawChildren:cr,guardReactiveProps:fi,h:Hi,handleError:Ut,hasInjectionContext:function(){return!!(Ci||mn||co)},hydrate:ka,initCustomFormatter:function(){},initDirectivesForSSR:()=>{Ma||(Ma=!0,ta.getSSRProps=({value:e})=>({value:e}),oa.getSSRProps=({value:e},t)=>{if(t.props&&G(t.props.value,e))return{checked:!0}},na.getSSRProps=({value:e},t)=>{if(d(e)){if(t.props&&Y(e,t.props.value)>-1)return{checked:!0}}else if(f(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ca.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=ua(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},xs.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},inject:po,isMemoSame:Ui,isProxy:vt,isReactive:ht,isReadonly:mt,isRef:Ct,isRuntimeOnly:()=>!Ii,isShallow:gt,isVNode:si,markRaw:bt,mergeDefaults:function(e,t){const n=Kr(e);for(const r in t){if(r.startsWith("__skip"))continue;let e=n[r];e?d(e)||m(e)?e=n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(e=n[r]={default:t[r]}),e&&t[`__skip_${r}`]&&(e.skipFactory=!0)}return n},mergeModels:function(e,t){return e&&t?d(e)&&d(t)?e.concat(t):a({},Kr(e),Kr(t)):e||t},mergeProps:xi,nextTick:en,normalizeClass:q,normalizeProps:function(e){if(!e)return null;let{class:t,style:n}=e;return t&&!g(t)&&(e.class=q(t)),n&&(e.style=F(n)),e},normalizeStyle:F,onActivated:yr,onBeforeMount:Cr,onBeforeUnmount:_r,onBeforeUpdate:Ar,onDeactivated:br,onErrorCaptured:Dr,onMounted:Mr,onRenderTracked:Pr,onRenderTriggered:Ir,onScopeDispose:ie,onServerPrefetch:Rr,onUnmounted:Nr,onUpdated:Tr,openBlock:Qo,popScopeId:function(){gn=null},provide:uo,proxyRefs:It,pushScopeId:function(e){gn=e},queuePostFlushCb:rn,reactive:ut,readonly:pt,ref:Mt,registerRuntimeCompiler:function(e){Ii=e,Pi=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Hr))}},render:Sa,renderList:Lr,renderSlot:jr,resolveComponent:En,resolveDirective:An,resolveDynamicComponent:Mn,resolveFilter:null,resolveTransitionHooks:ir,setBlockTracking:ni,setDevtoolsHook:Gi,setTransitionHooks:lr,shallowReactive:dt,shallowReadonly:function(e){return ft(e,!0,je,it,ct)},shallowRef:At,ssrContextKey:Vn,ssrUtils:Yi,stop:function(e){e.effect.stop()},toDisplayString:X,toHandlerKey:R,toHandlers:function(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:R(r)]=e[r];return n},toRaw:yt,toRef:Vt,toRefs:Lt,toValue:function(e){return m(e)?e():Nt(e)},transformVNodeArgs:function(e){},triggerRef:function(e){Et(e,4)},unref:Nt,useAttrs:Wr,useCssModule:function(e="$style"){{const n=Mi();if(!n)return t;const r=n.type.__cssModules;if(!r)return t;const o=r[e];return o||t}},useCssVars:function(e){const t=Mi();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Es(e,n)))},r=()=>{const r=e(t.proxy);Os(t.subTree,r),n(r)};$n(r),Mr((()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Nr((()=>e.disconnect()))}))},useModel:function(e,n,r=t){const o=Mi(),i=A(n),s=_(n),a=Dt(((t,a)=>{let l;return Hn((()=>{const t=e[n];I(l,t)&&(l=t,a())})),{get:()=>(t(),r.get?r.get(l):l),set(e){const t=o.vnode.props;t&&(n in t||i in t||s in t)&&(`onUpdate:${n}`in t||`onUpdate:${i}`in t||`onUpdate:${s}`in t)||!I(e,l)||(l=e,a()),o.emit(`update:${n}`,r.set?r.set(e):e)}}})),l="modelValue"===n?"modelModifiers":`${n}Modifiers`;return a[Symbol.iterator]=()=>{let t=0;return{next:()=>t<2?{value:t++?e[l]||{}:a,done:!1}:{done:!0}}},a},useSSRContext:zn,useSlots:Ur,useTransitionState:er,vModelCheckbox:na,vModelDynamic:ca,vModelRadio:oa,vModelSelect:ia,vModelText:ta,vShow:xs,version:Wi,warn:qi,watch:Wn,watchEffect:Fn,watchPostEffect:$n,watchSyncEffect:Hn,withAsyncContext:function(e){const t=Mi();let n=e();return Ni(),b(n)&&(n=n.catch((e=>{throw _i(t),e}))),[n,()=>_i(t)]},withCtx:yn,withDefaults:function(e,t){return null},withDirectives:Yn,withKeys:ga,withMemo:function(e,t,n,r){const o=n[r];if(o&&Ui(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i},withModifiers:ha,withScopeId:e=>yn},Symbol.toStringTag,{value:"Module"})),Ta=()=>{const e=Mi().appContext.config.globalProperties,{wbsCnf:t}=e;return{wbsCnf:t,globalProperties:e}};
/**
* vue v3.4.19
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function _a(e,t){return function(){return e.apply(t,arguments)}}const{toString:Na}=Object.prototype,{getPrototypeOf:Ra}=Object,Ia=(e=>t=>{const n=Na.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pa=e=>(e=e.toLowerCase(),t=>Ia(t)===e),Da=e=>t=>typeof t===e,{isArray:La}=Array,ja=Da("undefined");const Ba=Pa("ArrayBuffer");const Va=Da("string"),za=Da("function"),Fa=Da("number"),$a=e=>null!==e&&"object"==typeof e,Ha=e=>{if("object"!==Ia(e))return!1;const t=Ra(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ua=Pa("Date"),Wa=Pa("File"),qa=Pa("Blob"),Ka=Pa("FileList"),Ja=Pa("URLSearchParams");function Ga(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),La(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function Ya(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Xa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Za=e=>!ja(e)&&e!==Xa;const Qa=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Ra(Uint8Array)),el=Pa("HTMLFormElement"),tl=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nl=Pa("RegExp"),rl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ga(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},ol="abcdefghijklmnopqrstuvwxyz",il="0123456789",sl={DIGIT:il,ALPHA:ol,ALPHA_DIGIT:ol+ol.toUpperCase()+il};const al=Pa("AsyncFunction"),ll={isArray:La,isArrayBuffer:Ba,isBuffer:function(e){return null!==e&&!ja(e)&&null!==e.constructor&&!ja(e.constructor)&&za(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||za(e.append)&&("formdata"===(t=Ia(e))||"object"===t&&za(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ba(e.buffer),t},isString:Va,isNumber:Fa,isBoolean:e=>!0===e||!1===e,isObject:$a,isPlainObject:Ha,isUndefined:ja,isDate:Ua,isFile:Wa,isBlob:qa,isRegExp:nl,isFunction:za,isStream:e=>$a(e)&&za(e.pipe),isURLSearchParams:Ja,isTypedArray:Qa,isFileList:Ka,forEach:Ga,merge:function e(){const{caseless:t}=Za(this)&&this||{},n={},r=(r,o)=>{const i=t&&Ya(n,o)||o;Ha(n[i])&&Ha(r)?n[i]=e(n[i],r):Ha(r)?n[i]=e({},r):La(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Ga(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Ga(t,((t,r)=>{n&&za(t)?e[r]=_a(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&Ra(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ia,kindOfTest:Pa,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(La(e))return e;let t=e.length;if(!Fa(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:el,hasOwnProperty:tl,hasOwnProp:tl,reduceDescriptors:rl,freezeMethods:e=>{rl(e,((t,n)=>{if(za(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];za(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return La(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Ya,global:Xa,isContextDefined:Za,ALPHABET:sl,generateString:(e=16,t=sl.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&za(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if($a(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=La(e)?[]:{};return Ga(e,((e,t)=>{const i=n(e,r+1);!ja(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:al,isThenable:e=>e&&($a(e)||za(e))&&za(e.then)&&za(e.catch)};function cl(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ll.inherits(cl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ll.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ul=cl.prototype,dl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{dl[e]={value:e}})),Object.defineProperties(cl,dl),Object.defineProperty(ul,"isAxiosError",{value:!0}),cl.from=(e,t,n,r,o,i)=>{const s=Object.create(ul);return ll.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),cl.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function pl(e){return ll.isPlainObject(e)||ll.isArray(e)}function fl(e){return ll.endsWith(e,"[]")?e.slice(0,-2):e}function hl(e,t,n){return e?e.concat(t).map((function(e,t){return e=fl(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ml=ll.toFlatObject(ll,{},null,(function(e){return/^is[A-Z]/.test(e)}));function gl(e,t,n){if(!ll.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ll.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ll.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ll.isSpecCompliantForm(t);if(!ll.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ll.isDate(e))return e.toISOString();if(!a&&ll.isBlob(e))throw new cl("Blob is not supported. Use a Buffer instead.");return ll.isArrayBuffer(e)||ll.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(ll.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ll.isArray(e)&&function(e){return ll.isArray(e)&&!e.some(pl)}(e)||(ll.isFileList(e)||ll.endsWith(n,"[]"))&&(a=ll.toArray(e)))return n=fl(n),a.forEach((function(e,r){!ll.isUndefined(e)&&null!==e&&t.append(!0===s?hl([n],r,i):null===s?n:n+"[]",l(e))})),!1;return!!pl(e)||(t.append(hl(o,n,i),l(e)),!1)}const u=[],d=Object.assign(ml,{defaultVisitor:c,convertValue:l,isVisitable:pl});if(!ll.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ll.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),ll.forEach(n,(function(n,i){!0===(!(ll.isUndefined(n)||null===n)&&o.call(t,n,ll.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function vl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function yl(e,t){this._pairs=[],e&&gl(e,this,t)}const bl=yl.prototype;function wl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xl(e,t,n){if(!t)return e;const r=n&&n.encode||wl,o=n&&n.serialize;let i;if(i=o?o(t,n):ll.isURLSearchParams(t)?t.toString():new yl(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}bl.append=function(e,t){this._pairs.push([e,t])},bl.toString=function(e){const t=e?function(t){return e.call(this,t,vl)}:vl;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Sl{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ll.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const kl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ol={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:yl,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},El="undefined"!=typeof window&&"undefined"!=typeof document,Cl=(Ml="undefined"!=typeof navigator&&navigator.product,El&&["ReactNative","NativeScript","NS"].indexOf(Ml)<0);var Ml;const Al="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Tl={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:El,hasStandardBrowserEnv:Cl,hasStandardBrowserWebWorkerEnv:Al},Symbol.toStringTag,{value:"Module"})),...Ol};function _l(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&ll.isArray(r)?r.length:i,a)return ll.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&ll.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&ll.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s}if(ll.isFormData(e)&&ll.isFunction(e.entries)){const n={};return ll.forEachEntry(e,((e,r)=>{t(function(e){return ll.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Nl={transitional:kl,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ll.isObject(e);o&&ll.isHTMLForm(e)&&(e=new FormData(e));if(ll.isFormData(e))return r?JSON.stringify(_l(e)):e;if(ll.isArrayBuffer(e)||ll.isBuffer(e)||ll.isStream(e)||ll.isFile(e)||ll.isBlob(e))return e;if(ll.isArrayBufferView(e))return e.buffer;if(ll.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return gl(e,new Tl.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Tl.isNode&&ll.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ll.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return gl(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ll.isString(e))try{return(t||JSON.parse)(e),ll.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Nl.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&ll.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw cl.from(o,cl.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tl.classes.FormData,Blob:Tl.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ll.forEach(["delete","get","head","post","put","patch"],(e=>{Nl.headers[e]={}}));const Rl=Nl,Il=ll.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pl=Symbol("internals");function Dl(e){return e&&String(e).trim().toLowerCase()}function Ll(e){return!1===e||null==e?e:ll.isArray(e)?e.map(Ll):String(e)}function jl(e,t,n,r,o){return ll.isFunction(r)?r.call(this,t,n):(o&&(t=n),ll.isString(t)?ll.isString(r)?-1!==t.indexOf(r):ll.isRegExp(r)?r.test(t):void 0:void 0)}class Bl{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Dl(t);if(!o)throw new Error("header name must be a non-empty string");const i=ll.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ll(e))}const i=(e,t)=>ll.forEach(e,((e,n)=>o(e,n,t)));return ll.isPlainObject(e)||e instanceof this.constructor?i(e,t):ll.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Il[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=Dl(e)){const n=ll.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(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}(e);if(ll.isFunction(t))return t.call(this,e,n);if(ll.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Dl(e)){const n=ll.findKey(this,e);return!(!n||void 0===this[n]||t&&!jl(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Dl(e)){const o=ll.findKey(n,e);!o||t&&!jl(0,n[o],o,t)||(delete n[o],r=!0)}}return ll.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!jl(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ll.forEach(this,((r,o)=>{const i=ll.findKey(n,o);if(i)return t[i]=Ll(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Ll(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ll.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ll.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Pl]=this[Pl]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Dl(e);t[r]||(!function(e,t){const n=ll.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return ll.isArray(e)?e.forEach(r):r(e),this}}Bl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ll.reduceDescriptors(Bl.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ll.freezeMethods(Bl);const Vl=Bl;function zl(e,t){const n=this||Rl,r=t||n,o=Vl.from(r.headers);let i=r.data;return ll.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Fl(e){return!(!e||!e.__CANCEL__)}function $l(e,t,n){cl.call(this,null==e?"canceled":e,cl.ERR_CANCELED,t,n),this.name="CanceledError"}ll.inherits($l,cl,{__CANCEL__:!0});const Hl=Tl.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];ll.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ll.isString(r)&&s.push("path="+r),ll.isString(o)&&s.push("domain="+o),!0===i&&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:()=>null,remove(){}};function Ul(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Wl=Tl.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=ll.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function ql(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[s];o||(o=l),n[i]=a,r[i]=l;let u=s,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a);n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const Kl={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=Vl.from(e.headers).normalize();let i,s,{responseType:a,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(ll.isFormData(r))if(Tl.hasStandardBrowserEnv||Tl.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(s=o.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=Ul(e.baseURL,e.url);function p(){if(!u)return;const r=Vl.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new cl("Request failed with status code "+n.status,[cl.ERR_BAD_REQUEST,cl.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),xl(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new cl("Request aborted",cl.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new cl("Network Error",cl.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||kl;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new cl(t,r.clarifyTimeoutError?cl.ETIMEDOUT:cl.ECONNABORTED,e,u)),u=null},Tl.hasStandardBrowserEnv&&(l&&ll.isFunction(l)&&(l=l(e)),l||!1!==l&&Wl(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Hl.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&ll.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),ll.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",ql(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",ql(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new $l(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===Tl.protocols.indexOf(f)?n(new cl("Unsupported protocol "+f+":",cl.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};ll.forEach(Kl,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const Jl=e=>`- ${e}`,Gl=e=>ll.isFunction(e)||null===e||!1===e,Yl=e=>{e=ll.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Gl(n)&&(r=Kl[(t=String(n)).toLowerCase()],void 0===r))throw new cl(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new cl("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Jl).join("\n"):" "+Jl(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Xl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $l(null,e)}function Zl(e){Xl(e),e.headers=Vl.from(e.headers),e.data=zl.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Yl(e.adapter||Rl.adapter)(e).then((function(t){return Xl(e),t.data=zl.call(e,e.transformResponse,t),t.headers=Vl.from(t.headers),t}),(function(t){return Fl(t)||(Xl(e),t&&t.response&&(t.response.data=zl.call(e,e.transformResponse,t.response),t.response.headers=Vl.from(t.response.headers))),Promise.reject(t)}))}const Ql=e=>e instanceof Vl?e.toJSON():e;function ec(e,t){t=t||{};const n={};function r(e,t,n){return ll.isPlainObject(e)&&ll.isPlainObject(t)?ll.merge.call({caseless:n},e,t):ll.isPlainObject(t)?ll.merge({},t):ll.isArray(t)?t.slice():t}function o(e,t,n){return ll.isUndefined(t)?ll.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!ll.isUndefined(t))return r(void 0,t)}function s(e,t){return ll.isUndefined(t)?ll.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,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,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(Ql(e),Ql(t),!0)};return ll.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,s=i(e[r],t[r],r);ll.isUndefined(s)&&i!==a||(n[r]=s)})),n}const tc="1.6.7",nc={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{nc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const rc={};nc.transitional=function(e,t,n){return(r,o,i)=>{if(!1===e)throw new cl(function(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),cl.ERR_DEPRECATED);return t&&!rc[o]&&(rc[o]=!0),!e||e(r,o,i)}};const oc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new cl("options must be an object",cl.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new cl("option "+i+" must be "+n,cl.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new cl("Unknown option "+i,cl.ERR_BAD_OPTION)}},validators:nc},ic=oc.validators;class sc{constructor(e){this.defaults=e,this.interceptors={request:new Sl,response:new Sl}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ec(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&oc.assertOptions(n,{silentJSONParsing:ic.transitional(ic.boolean),forcedJSONParsing:ic.transitional(ic.boolean),clarifyTimeoutError:ic.transitional(ic.boolean)},!1),null!=r&&(ll.isFunction(r)?t.paramsSerializer={serialize:r}:oc.assertOptions(r,{encode:ic.function,serialize:ic.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ll.merge(o.common,o[t.method]);o&&ll.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Vl.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[Zl.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=s.length;let p=t;for(d=0;d<u;){const e=s[d++],t=s[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=Zl.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return xl(Ul((e=ec(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ll.forEach(["delete","get","head","options"],(function(e){sc.prototype[e]=function(t,n){return this.request(ec(n||{},{method:e,url:t,data:(n||{}).data}))}})),ll.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(ec(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}sc.prototype[e]=t(),sc.prototype[e+"Form"]=t(!0)}));const ac=sc;class lc{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new $l(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new lc((function(t){e=t})),cancel:e}}}const cc=lc;const uc={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,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uc).forEach((([e,t])=>{uc[t]=e}));const dc=uc;const pc=function e(t){const n=new ac(t),r=_a(ac.prototype.request,n);return ll.extend(r,ac.prototype,n,{allOwnKeys:!0}),ll.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ec(t,n))},r}(Rl);pc.Axios=ac,pc.CanceledError=$l,pc.CancelToken=cc,pc.isCancel=Fl,pc.VERSION=tc,pc.toFormData=gl,pc.AxiosError=cl,pc.Cancel=pc.CanceledError,pc.all=function(e){return Promise.all(e)},pc.spread=function(e){return function(t){return e.apply(null,t)}},pc.isAxiosError=function(e){return ll.isObject(e)&&!0===e.isAxiosError},pc.mergeConfig=ec,pc.AxiosHeaders=Vl,pc.formToJSON=e=>_l(ll.isHTMLForm(e)?new FormData(e):e),pc.getAdapter=Yl,pc.HttpStatusCode=dc,pc.default=pc;var fc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mc(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var gc,vc=Error,yc=EvalError,bc=RangeError,wc=ReferenceError,xc=SyntaxError,Sc=TypeError,kc=URIError,Oc="undefined"!=typeof Symbol&&Symbol,Ec=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},Cc={__proto__:null,foo:{}},Mc=Object,Ac="Function.prototype.bind called on incompatible ",Tc=Object.prototype.toString,_c=Math.max,Nc="[object Function]",Rc=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},Ic=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},Pc=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},Dc=function(e){var t=this;if("function"!=typeof t||Tc.apply(t)!==Nc)throw new TypeError(Ac+t);for(var n,r=Ic(arguments,1),o=function(){if(this instanceof n){var o=t.apply(this,Rc(r,arguments));return Object(o)===o?o:this}return t.apply(e,Rc(r,arguments))},i=_c(0,t.length-r.length),s=[],a=0;a<i;a++)s[a]="$"+a;if(n=Function("binder","return function ("+Pc(s,",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n},Lc=Function.prototype.bind||Dc,jc=Function.prototype.call,Bc=Object.prototype.hasOwnProperty,Vc=Lc.call(jc,Bc),zc=vc,Fc=yc,$c=bc,Hc=wc,Uc=xc,Wc=Sc,qc=kc,Kc=Function,Jc=function(e){try{return Kc('"use strict"; return ('+e+").constructor;")()}catch(t){}},Gc=Object.getOwnPropertyDescriptor;if(Gc)try{Gc({},"")}catch(pF){Gc=null}var Yc=function(){throw new Wc},Xc=Gc?function(){try{return Yc}catch(e){try{return Gc(arguments,"callee").get}catch(t){return Yc}}}():Yc,Zc="function"==typeof Oc&&"function"==typeof Symbol&&"symbol"==typeof Oc("foo")&&"symbol"==typeof Symbol("bar")&&Ec(),Qc={__proto__:Cc}.foo===Cc.foo&&!(Cc instanceof Mc),eu=Object.getPrototypeOf||(Qc?function(e){return e.__proto__}:null),tu={},nu="undefined"!=typeof Uint8Array&&eu?eu(Uint8Array):gc,ru={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?gc:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?gc:ArrayBuffer,"%ArrayIteratorPrototype%":Zc&&eu?eu([][Symbol.iterator]()):gc,"%AsyncFromSyncIteratorPrototype%":gc,"%AsyncFunction%":tu,"%AsyncGenerator%":tu,"%AsyncGeneratorFunction%":tu,"%AsyncIteratorPrototype%":tu,"%Atomics%":"undefined"==typeof Atomics?gc:Atomics,"%BigInt%":"undefined"==typeof BigInt?gc:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?gc:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?gc:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?gc:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":zc,"%eval%":eval,"%EvalError%":Fc,"%Float32Array%":"undefined"==typeof Float32Array?gc:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?gc:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?gc:FinalizationRegistry,"%Function%":Kc,"%GeneratorFunction%":tu,"%Int8Array%":"undefined"==typeof Int8Array?gc:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?gc:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?gc:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Zc&&eu?eu(eu([][Symbol.iterator]())):gc,"%JSON%":"object"==typeof JSON?JSON:gc,"%Map%":"undefined"==typeof Map?gc:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Zc&&eu?eu((new Map)[Symbol.iterator]()):gc,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?gc:Promise,"%Proxy%":"undefined"==typeof Proxy?gc:Proxy,"%RangeError%":$c,"%ReferenceError%":Hc,"%Reflect%":"undefined"==typeof Reflect?gc:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?gc:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Zc&&eu?eu((new Set)[Symbol.iterator]()):gc,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?gc:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Zc&&eu?eu(""[Symbol.iterator]()):gc,"%Symbol%":Zc?Symbol:gc,"%SyntaxError%":Uc,"%ThrowTypeError%":Xc,"%TypedArray%":nu,"%TypeError%":Wc,"%Uint8Array%":"undefined"==typeof Uint8Array?gc:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?gc:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?gc:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?gc:Uint32Array,"%URIError%":qc,"%WeakMap%":"undefined"==typeof WeakMap?gc:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?gc:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?gc:WeakSet};if(eu)try{null.error}catch(pF){var ou=eu(eu(pF));ru["%Error.prototype%"]=ou}var iu,su,au=function e(t){var n;if("%AsyncFunction%"===t)n=Jc("async function () {}");else if("%GeneratorFunction%"===t)n=Jc("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=Jc("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&eu&&(n=eu(o.prototype))}return ru[t]=n,n},lu={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},cu=Lc,uu=Vc,du=cu.call(Function.call,Array.prototype.concat),pu=cu.call(Function.apply,Array.prototype.splice),fu=cu.call(Function.call,String.prototype.replace),hu=cu.call(Function.call,String.prototype.slice),mu=cu.call(Function.call,RegExp.prototype.exec),gu=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,vu=/\\(\\)?/g,yu=function(e){var t=hu(e,0,1),n=hu(e,-1);if("%"===t&&"%"!==n)throw new Uc("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Uc("invalid intrinsic syntax, expected opening `%`");var r=[];return fu(e,gu,(function(e,t,n,o){r[r.length]=n?fu(o,vu,"$1"):t||e})),r},bu=function(e,t){var n,r=e;if(uu(lu,r)&&(r="%"+(n=lu[r])[0]+"%"),uu(ru,r)){var o=ru[r];if(o===tu&&(o=au(r)),void 0===o&&!t)throw new Wc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new Uc("intrinsic "+e+" does not exist!")},wu=function(e,t){if("string"!=typeof e||0===e.length)throw new Wc("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Wc('"allowMissing" argument must be a boolean');if(null===mu(/^%?[^%]*%?$/,e))throw new Uc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=yu(e),r=n.length>0?n[0]:"",o=bu("%"+r+"%",t),i=o.name,s=o.value,a=!1,l=o.alias;l&&(r=l[0],pu(n,du([0,1],l)));for(var c=1,u=!0;c<n.length;c+=1){var d=n[c],p=hu(d,0,1),f=hu(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===f||"'"===f||"`"===f)&&p!==f)throw new Uc("property names with quotes must have matching quotes");if("constructor"!==d&&u||(a=!0),uu(ru,i="%"+(r+="."+d)+"%"))s=ru[i];else if(null!=s){if(!(d in s)){if(!t)throw new Wc("base intrinsic for "+e+" exists, but the property is not available.");return}if(Gc&&c+1>=n.length){var h=Gc(s,d);s=(u=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:s[d]}else u=uu(s,d),s=s[d];u&&!a&&(ru[i]=s)}}return s},xu={exports:{}};function Su(){if(su)return iu;su=1;var e=wu("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch(pF){e=!1}return iu=e}var ku=wu("%Object.getOwnPropertyDescriptor%",!0);if(ku)try{ku([],"length")}catch(pF){ku=null}var Ou=ku,Eu=Su(),Cu=xc,Mu=Sc,Au=Ou,Tu=Su(),_u=function(){return!!Tu};_u.hasArrayLengthDefineBug=function(){if(!Tu)return null;try{return 1!==Tu([],"length",{value:1}).length}catch(pF){return!0}};var Nu=wu,Ru=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new Mu("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new Mu("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new Mu("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new Mu("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new Mu("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new Mu("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6&&arguments[6],a=!!Au&&Au(e,t);if(Eu)Eu(e,t,{configurable:null===i&&a?a.configurable:!i,enumerable:null===r&&a?a.enumerable:!r,value:n,writable:null===o&&a?a.writable:!o});else{if(!s&&(r||o||i))throw new Cu("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}},Iu=_u(),Pu=Ou,Du=Sc,Lu=Nu("%Math.floor%"),ju=function(e,t){if("function"!=typeof e)throw new Du("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||Lu(t)!==t)throw new Du("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,o=!0;if("length"in e&&Pu){var i=Pu(e,"length");i&&!i.configurable&&(r=!1),i&&!i.writable&&(o=!1)}return(r||o||!n)&&(Iu?Ru(e,"length",t,!0,!0):Ru(e,"length",t)),e};!function(e){var t=Lc,n=wu,r=ju,o=Sc,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=Su(),c=n("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var n=a(t,s,arguments);return r(n,1+c(0,e.length-(arguments.length-1)),!0)};var u=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u}(xu);var Bu=wu,Vu=xu.exports,zu=Vu(Bu("String.prototype.indexOf"));const Fu=mc(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var $u="function"==typeof Map&&Map.prototype,Hu=Object.getOwnPropertyDescriptor&&$u?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Uu=$u&&Hu&&"function"==typeof Hu.get?Hu.get:null,Wu=$u&&Map.prototype.forEach,qu="function"==typeof Set&&Set.prototype,Ku=Object.getOwnPropertyDescriptor&&qu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ju=qu&&Ku&&"function"==typeof Ku.get?Ku.get:null,Gu=qu&&Set.prototype.forEach,Yu="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Xu="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Zu="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Qu=Boolean.prototype.valueOf,ed=Object.prototype.toString,td=Function.prototype.toString,nd=String.prototype.match,rd=String.prototype.slice,od=String.prototype.replace,id=String.prototype.toUpperCase,sd=String.prototype.toLowerCase,ad=RegExp.prototype.test,ld=Array.prototype.concat,cd=Array.prototype.join,ud=Array.prototype.slice,dd=Math.floor,pd="function"==typeof BigInt?BigInt.prototype.valueOf:null,fd=Object.getOwnPropertySymbols,hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,md="function"==typeof Symbol&&"object"==typeof Symbol.iterator,gd="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===md||"symbol")?Symbol.toStringTag:null,vd=Object.prototype.propertyIsEnumerable,yd=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function bd(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||ad.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-dd(-e):dd(e);if(r!==e){var o=String(r),i=rd.call(t,o.length+1);return od.call(o,n,"$&_")+"."+od.call(od.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return od.call(t,n,"$&_")}var wd=Fu,xd=wd.custom,Sd=Md(xd)?xd:null;function kd(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function Od(e){return od.call(String(e),/"/g,""")}function Ed(e){return!("[object Array]"!==_d(e)||gd&&"object"==typeof e&&gd in e)}function Cd(e){return!("[object RegExp]"!==_d(e)||gd&&"object"==typeof e&&gd in e)}function Md(e){if(md)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!hd)return!1;try{return hd.call(e),!0}catch(pF){}return!1}var Ad=Object.prototype.hasOwnProperty||function(e){return e in this};function Td(e,t){return Ad.call(e,t)}function _d(e){return ed.call(e)}function Nd(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Rd(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Rd(rd.call(e,0,t.maxStringLength),t)+r}return kd(od.call(od.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Id),"single",t)}function Id(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+id.call(t.toString(16))}function Pd(e){return"Object("+e+")"}function Dd(e){return e+" { ? }"}function Ld(e,t,n,r){return e+" ("+t+") {"+(r?jd(n,r):cd.call(n,", "))+"}"}function jd(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+cd.call(e,","+n)+"\n"+t.prev}function Bd(e,t){var n=Ed(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Td(e,o)?t(e[o],e):""}var i,s="function"==typeof fd?fd(e):[];if(md){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var l in e)Td(e,l)&&(n&&String(Number(l))===l&&l<e.length||md&&i["$"+l]instanceof Symbol||(ad.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof fd)for(var c=0;c<s.length;c++)vd.call(e,s[c])&&r.push("["+t(s[c])+"]: "+t(e[s[c]],e));return r}var Vd=wu,zd=function(e,t){var n=Bu(e,!!t);return"function"==typeof n&&zu(e,".prototype.")>-1?Vu(n):n},Fd=function e(t,n,r,o){var i=n||{};if(Td(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Td(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!Td(i,"customInspect")||i.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Td(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Td(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Rd(t,i);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var l=String(t);return a?bd(t,l):l}if("bigint"==typeof t){var c=String(t)+"n";return a?bd(t,c):c}var u=void 0===i.depth?5:i.depth;if(void 0===r&&(r=0),r>=u&&u>0&&"object"==typeof t)return Ed(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=cd.call(Array(e.indent+1)," ")}return{base:n,prev:cd.call(Array(t+1),n)}}(i,r);if(void 0===o)o=[];else if(Nd(o,t)>=0)return"[Circular]";function p(t,n,s){if(n&&(o=ud.call(o)).push(n),s){var a={depth:i.depth};return Td(i,"quoteStyle")&&(a.quoteStyle=i.quoteStyle),e(t,a,r+1,o)}return e(t,i,r+1,o)}if("function"==typeof t&&!Cd(t)){var f=function(e){if(e.name)return e.name;var t=nd.call(td.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),h=Bd(t,p);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(h.length>0?" { "+cd.call(h,", ")+" }":"")}if(Md(t)){var m=md?od.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):hd.call(t);return"object"!=typeof t||md?m:Pd(m)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var g="<"+sd.call(String(t.nodeName)),v=t.attributes||[],y=0;y<v.length;y++)g+=" "+v[y].name+"="+kd(Od(v[y].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+sd.call(String(t.nodeName))+">"}if(Ed(t)){if(0===t.length)return"[]";var b=Bd(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(Nd(e[t],"\n")>=0)return!1;return!0}(b)?"["+jd(b,d)+"]":"[ "+cd.call(b,", ")+" ]"}if(function(e){return!("[object Error]"!==_d(e)||gd&&"object"==typeof e&&gd in e)}(t)){var w=Bd(t,p);return"cause"in Error.prototype||!("cause"in t)||vd.call(t,"cause")?0===w.length?"["+String(t)+"]":"{ ["+String(t)+"] "+cd.call(w,", ")+" }":"{ ["+String(t)+"] "+cd.call(ld.call("[cause]: "+p(t.cause),w),", ")+" }"}if("object"==typeof t&&s){if(Sd&&"function"==typeof t[Sd]&&wd)return wd(t,{depth:u-r});if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Uu||!e||"object"!=typeof e)return!1;try{Uu.call(e);try{Ju.call(e)}catch(g){return!0}return e instanceof Map}catch(pF){}return!1}(t)){var x=[];return Wu&&Wu.call(t,(function(e,n){x.push(p(n,t,!0)+" => "+p(e,t))})),Ld("Map",Uu.call(t),x,d)}if(function(e){if(!Ju||!e||"object"!=typeof e)return!1;try{Ju.call(e);try{Uu.call(e)}catch(t){return!0}return e instanceof Set}catch(pF){}return!1}(t)){var S=[];return Gu&&Gu.call(t,(function(e){S.push(p(e,t))})),Ld("Set",Ju.call(t),S,d)}if(function(e){if(!Yu||!e||"object"!=typeof e)return!1;try{Yu.call(e,Yu);try{Xu.call(e,Xu)}catch(g){return!0}return e instanceof WeakMap}catch(pF){}return!1}(t))return Dd("WeakMap");if(function(e){if(!Xu||!e||"object"!=typeof e)return!1;try{Xu.call(e,Xu);try{Yu.call(e,Yu)}catch(g){return!0}return e instanceof WeakSet}catch(pF){}return!1}(t))return Dd("WeakSet");if(function(e){if(!Zu||!e||"object"!=typeof e)return!1;try{return Zu.call(e),!0}catch(pF){}return!1}(t))return Dd("WeakRef");if(function(e){return!("[object Number]"!==_d(e)||gd&&"object"==typeof e&&gd in e)}(t))return Pd(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!pd)return!1;try{return pd.call(e),!0}catch(pF){}return!1}(t))return Pd(p(pd.call(t)));if(function(e){return!("[object Boolean]"!==_d(e)||gd&&"object"==typeof e&&gd in e)}(t))return Pd(Qu.call(t));if(function(e){return!("[object String]"!==_d(e)||gd&&"object"==typeof e&&gd in e)}(t))return Pd(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===fc)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==_d(e)||gd&&"object"==typeof e&&gd in e)}(t)&&!Cd(t)){var k=Bd(t,p),O=yd?yd(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",C=!O&&gd&&Object(t)===t&&gd in t?rd.call(_d(t),8,-1):E?"Object":"",M=(O||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(C||E?"["+cd.call(ld.call([],C||[],E||[]),": ")+"] ":"");return 0===k.length?M+"{}":d?M+"{"+jd(k,d)+"}":M+"{ "+cd.call(k,", ")+" }"}return String(t)},$d=Sc,Hd=Vd("%WeakMap%",!0),Ud=Vd("%Map%",!0),Wd=zd("WeakMap.prototype.get",!0),qd=zd("WeakMap.prototype.set",!0),Kd=zd("WeakMap.prototype.has",!0),Jd=zd("Map.prototype.get",!0),Gd=zd("Map.prototype.set",!0),Yd=zd("Map.prototype.has",!0),Xd=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},Zd=String.prototype.replace,Qd=/%20/g,ep="RFC3986",tp={default:ep,formatters:{RFC1738:function(e){return Zd.call(e,Qd,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:ep},np=tp,rp=Object.prototype.hasOwnProperty,op=Array.isArray,ip=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),sp=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},ap={arrayToObject:sp,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],s=Object.keys(i),a=0;a<s.length;++a){var l=s[a],c=i[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:i,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(op(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(pF){return r}},encode:function(e,t,n,r,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",a=0;a<i.length;++a){var l=i.charCodeAt(a);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===np.RFC1738&&(40===l||41===l)?s+=i.charAt(a):l<128?s+=ip[l]:l<2048?s+=ip[192|l>>6]+ip[128|63&l]:l<55296||l>=57344?s+=ip[224|l>>12]+ip[128|l>>6&63]+ip[128|63&l]:(a+=1,l=65536+((1023&l)<<10|1023&i.charCodeAt(a)),s+=ip[240|l>>18]+ip[128|l>>12&63]+ip[128|l>>6&63]+ip[128|63&l])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(op(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(op(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!rp.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return op(t)&&!op(n)&&(o=sp(t,r)),op(t)&&op(n)?(n.forEach((function(n,o){if(rp.call(t,o)){var i=t[o];i&&"object"==typeof i&&n&&"object"==typeof n?t[o]=e(i,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var i=n[o];return rp.call(t,o)?t[o]=e(t[o],i,r):t[o]=i,t}),o)}},lp=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new $d("Side channel does not contain "+Fd(e))},get:function(r){if(Hd&&r&&("object"==typeof r||"function"==typeof r)){if(e)return Wd(e,r)}else if(Ud){if(t)return Jd(t,r)}else if(n)return function(e,t){var n=Xd(e,t);return n&&n.value}(n,r)},has:function(r){if(Hd&&r&&("object"==typeof r||"function"==typeof r)){if(e)return Kd(e,r)}else if(Ud){if(t)return Yd(t,r)}else if(n)return function(e,t){return!!Xd(e,t)}(n,r);return!1},set:function(r,o){Hd&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new Hd),qd(e,r,o)):Ud?(t||(t=new Ud),Gd(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=Xd(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r},cp=ap,up=tp,dp=Object.prototype.hasOwnProperty,pp={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},fp=Array.isArray,hp=Array.prototype.push,mp=function(e,t){hp.apply(e,fp(t)?t:[t])},gp=Date.prototype.toISOString,vp=up.default,yp={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:cp.encode,encodeValuesOnly:!1,format:vp,formatter:up.formatters[vp],indices:!1,serializeDate:function(e){return gp.call(e)},skipNulls:!1,strictNullHandling:!1},bp={},xp=function e(t,n,r,o,i,s,a,l,c,u,d,p,f,h,m,g){for(var v,y=t,b=g,w=0,x=!1;void 0!==(b=b.get(bp))&&!x;){var S=b.get(t);if(w+=1,void 0!==S){if(S===w)throw new RangeError("Cyclic object value");x=!0}void 0===b.get(bp)&&(w=0)}if("function"==typeof l?y=l(n,y):y instanceof Date?y=d(y):"comma"===r&&fp(y)&&(y=cp.maybeMap(y,(function(e){return e instanceof Date?d(e):e}))),null===y){if(i)return a&&!h?a(n,yp.encoder,m,"key",p):n;y=""}if("string"==typeof(v=y)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||cp.isBuffer(y))return a?[f(h?n:a(n,yp.encoder,m,"key",p))+"="+f(a(y,yp.encoder,m,"value",p))]:[f(n)+"="+f(String(y))];var k,O=[];if(void 0===y)return O;if("comma"===r&&fp(y))h&&a&&(y=cp.maybeMap(y,a)),k=[{value:y.length>0?y.join(",")||null:void 0}];else if(fp(l))k=l;else{var E=Object.keys(y);k=c?E.sort(c):E}for(var C=o&&fp(y)&&1===y.length?n+"[]":n,M=0;M<k.length;++M){var A=k[M],T="object"==typeof A&&void 0!==A.value?A.value:y[A];if(!s||null!==T){var _=fp(y)?"function"==typeof r?r(C,A):C:C+(u?"."+A:"["+A+"]");g.set(t,w);var N=lp();N.set(bp,g),mp(O,e(T,_,r,o,i,s,"comma"===r&&h&&fp(y)?null:a,l,c,u,d,p,f,h,m,N))}}return O},Sp=ap,kp=Object.prototype.hasOwnProperty,Op=Array.isArray,Ep={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Sp.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Cp=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Mp=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Ap=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),a=s?o.slice(0,s.index):o,l=[];if(a){if(!n.plainObjects&&kp.call(Object.prototype,a)&&!n.allowPrototypes)return;l.push(a)}for(var c=0;n.depth>0&&null!==(s=i.exec(o))&&c<n.depth;){if(c+=1,!n.plainObjects&&kp.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:Mp(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[])[c]=o:"__proto__"!==l&&(s[l]=o):s={0:o}}o=s}return o}(l,t,n,r)}},Tp=function(e,t){var n,r=e,o=function(e){if(!e)return yp;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||yp.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=up.default;if(void 0!==e.format){if(!dp.call(up.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=up.formatters[n],o=yp.filter;return("function"==typeof e.filter||fp(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:yp.addQueryPrefix,allowDots:void 0===e.allowDots?yp.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:yp.charsetSentinel,delimiter:void 0===e.delimiter?yp.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:yp.encode,encoder:"function"==typeof e.encoder?e.encoder:yp.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:yp.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:yp.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:yp.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:yp.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):fp(o.filter)&&(n=o.filter);var i,s=[];if("object"!=typeof r||null===r)return"";i=t&&t.arrayFormat in pp?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var a=pp[i];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l="comma"===a&&t&&t.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=lp(),u=0;u<n.length;++u){var d=n[u];o.skipNulls&&null===r[d]||mp(s,xp(r[d],d,a,l,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var p=s.join(o.delimiter),f=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),p.length>0?f+p:""},_p=function(e,t){var n=function(e){if(!e)return Ep;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Ep.charset:e.charset;return{allowDots:void 0===e.allowDots?Ep.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ep.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Ep.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ep.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ep.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ep.comma,decoder:"function"==typeof e.decoder?e.decoder:Ep.decoder,delimiter:"string"==typeof e.delimiter||Sp.isRegExp(e.delimiter)?e.delimiter:Ep.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Ep.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ep.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ep.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ep.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ep.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,s=o.split(t.delimiter,i),a=-1,l=t.charset;if(t.charsetSentinel)for(n=0;n<s.length;++n)0===s[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[n]?l="utf-8":"utf8=%26%2310003%3B"===s[n]&&(l="iso-8859-1"),a=n,n=s.length);for(n=0;n<s.length;++n)if(n!==a){var c,u,d=s[n],p=d.indexOf("]="),f=-1===p?d.indexOf("="):p+1;-1===f?(c=t.decoder(d,Ep.decoder,l,"key"),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,f),Ep.decoder,l,"key"),u=Sp.maybeMap(Mp(d.slice(f+1),t),(function(e){return t.decoder(e,Ep.decoder,l,"value")}))),u&&t.interpretNumericEntities&&"iso-8859-1"===l&&(u=Cp(u)),d.indexOf("[]=")>-1&&(u=Op(u)?[u]:u),kp.call(r,c)?r[c]=Sp.combine(r[c],u):r[c]=u}return r}(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),s=0;s<i.length;++s){var a=i[s],l=Ap(a,r[a],n,"string"==typeof e);o=Sp.merge(o,l,n)}return!0===n.allowSparse?o:Sp.compact(o)};const Np=hc({formats:tp,parse:_p,stringify:Tp});var Rp="object"==typeof global&&global&&global.Object===Object&&global,Ip="object"==typeof self&&self&&self.Object===Object&&self,Pp=Rp||Ip||Function("return this")(),Dp=Pp.Symbol,Lp=Object.prototype,jp=Lp.hasOwnProperty,Bp=Lp.toString,Vp=Dp?Dp.toStringTag:void 0;var zp=Object.prototype.toString;var Fp=Dp?Dp.toStringTag:void 0;function $p(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Fp&&Fp in Object(e)?function(e){var t=jp.call(e,Vp),n=e[Vp];try{e[Vp]=void 0;var r=!0}catch(pF){}var o=Bp.call(e);return r&&(t?e[Vp]=n:delete e[Vp]),o}(e):function(e){return zp.call(e)}(e)}function Hp(e){return null!=e&&"object"==typeof e}function Up(e){return"symbol"==typeof e||Hp(e)&&"[object Symbol]"==$p(e)}function Wp(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var qp=Array.isArray,Kp=Dp?Dp.prototype:void 0,Jp=Kp?Kp.toString:void 0;function Gp(e){if("string"==typeof e)return e;if(qp(e))return Wp(e,Gp)+"";if(Up(e))return Jp?Jp.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var Yp=/\s/;var Xp=/^\s+/;function Zp(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Yp.test(e.charAt(t)););return t}(e)+1).replace(Xp,""):e}function Qp(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var ef=/^[-+]0x[0-9a-f]+$/i,tf=/^0b[01]+$/i,nf=/^0o[0-7]+$/i,rf=parseInt;function of(e){if("number"==typeof e)return e;if(Up(e))return NaN;if(Qp(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qp(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zp(e);var n=tf.test(e);return n||nf.test(e)?rf(e.slice(2),n?2:8):ef.test(e)?NaN:+e}var sf=1/0;function af(e){var t=function(e){return e?(e=of(e))===sf||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0}function lf(e){return e}function cf(e){if(!Qp(e))return!1;var t=$p(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var uf,df=Pp["__core-js_shared__"],pf=(uf=/[^.]+$/.exec(df&&df.keys&&df.keys.IE_PROTO||""))?"Symbol(src)_1."+uf:"";var ff=Function.prototype.toString;function hf(e){if(null!=e){try{return ff.call(e)}catch(pF){}try{return e+""}catch(pF){}}return""}var mf=/^\[object .+?Constructor\]$/,gf=Function.prototype,vf=Object.prototype,yf=gf.toString,bf=vf.hasOwnProperty,wf=RegExp("^"+yf.call(bf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xf(e){return!(!Qp(e)||(t=e,pf&&pf in t))&&(cf(e)?wf:mf).test(hf(e));var t}function Sf(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xf(n)?n:void 0}var kf=Sf(Pp,"WeakMap"),Of=Object.create,Ef=function(){function e(){}return function(t){if(!Qp(t))return{};if(Of)return Of(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Cf(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Mf(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Af=Date.now;var Tf=function(){try{var e=Sf(Object,"defineProperty");return e({},"",{}),e}catch(pF){}}(),_f=Tf?function(e,t){return Tf(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:lf;var Nf,Rf,If,Pf=(Nf=_f,Rf=0,If=0,function(){var e=Af(),t=16-(e-If);if(If=e,t>0){if(++Rf>=800)return arguments[0]}else Rf=0;return Nf.apply(void 0,arguments)});var Df=/^(?:0|[1-9]\d*)$/;function Lf(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Df.test(e))&&e>-1&&e%1==0&&e<t}function jf(e,t,n){"__proto__"==t&&Tf?Tf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Bf(e,t){return e===t||e!=e&&t!=t}var Vf=Object.prototype.hasOwnProperty;function zf(e,t,n){var r=e[t];Vf.call(e,t)&&Bf(r,n)&&(void 0!==n||t in e)||jf(e,t,n)}function Ff(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),o?jf(n,a,l):zf(n,a,l)}return n}var $f=Math.max;function Hf(e,t,n){return t=$f(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=$f(r.length-t,0),s=Array(i);++o<i;)s[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(s),Cf(e,this,a)}}function Uf(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wf(e){return null!=e&&Uf(e.length)&&!cf(e)}var qf=Object.prototype;function Kf(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qf)}function Jf(e){return Hp(e)&&"[object Arguments]"==$p(e)}var Gf=Object.prototype,Yf=Gf.hasOwnProperty,Xf=Gf.propertyIsEnumerable,Zf=Jf(function(){return arguments}())?Jf:function(e){return Hp(e)&&Yf.call(e,"callee")&&!Xf.call(e,"callee")};var Qf="object"==typeof exports&&exports&&!exports.nodeType&&exports,eh=Qf&&"object"==typeof module&&module&&!module.nodeType&&module,th=eh&&eh.exports===Qf?Pp.Buffer:void 0,nh=(th?th.isBuffer:void 0)||function(){return!1},rh={};function oh(e){return function(t){return e(t)}}rh["[object Float32Array]"]=rh["[object Float64Array]"]=rh["[object Int8Array]"]=rh["[object Int16Array]"]=rh["[object Int32Array]"]=rh["[object Uint8Array]"]=rh["[object Uint8ClampedArray]"]=rh["[object Uint16Array]"]=rh["[object Uint32Array]"]=!0,rh["[object Arguments]"]=rh["[object Array]"]=rh["[object ArrayBuffer]"]=rh["[object Boolean]"]=rh["[object DataView]"]=rh["[object Date]"]=rh["[object Error]"]=rh["[object Function]"]=rh["[object Map]"]=rh["[object Number]"]=rh["[object Object]"]=rh["[object RegExp]"]=rh["[object Set]"]=rh["[object String]"]=rh["[object WeakMap]"]=!1;var ih="object"==typeof exports&&exports&&!exports.nodeType&&exports,sh=ih&&"object"==typeof module&&module&&!module.nodeType&&module,ah=sh&&sh.exports===ih&&Rp.process,lh=function(){try{var e=sh&&sh.require&&sh.require("util").types;return e||ah&&ah.binding&&ah.binding("util")}catch(pF){}}(),ch=lh&&lh.isTypedArray,uh=ch?oh(ch):function(e){return Hp(e)&&Uf(e.length)&&!!rh[$p(e)]},dh=Object.prototype.hasOwnProperty;function ph(e,t){var n=qp(e),r=!n&&Zf(e),o=!n&&!r&&nh(e),i=!n&&!r&&!o&&uh(e),s=n||r||o||i,a=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var c in e)!t&&!dh.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Lf(c,l))||a.push(c);return a}function fh(e,t){return function(n){return e(t(n))}}var hh=fh(Object.keys,Object),mh=Object.prototype.hasOwnProperty;function gh(e){return Wf(e)?ph(e):function(e){if(!Kf(e))return hh(e);var t=[];for(var n in Object(e))mh.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var vh=Object.prototype.hasOwnProperty;function yh(e){if(!Qp(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Kf(e),n=[];for(var r in e)("constructor"!=r||!t&&vh.call(e,r))&&n.push(r);return n}function bh(e){return Wf(e)?ph(e,!0):yh(e)}var wh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xh=/^\w*$/;function Sh(e,t){if(qp(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Up(e))||(xh.test(e)||!wh.test(e)||null!=t&&e in Object(t))}var kh=Sf(Object,"create");var Oh=Object.prototype.hasOwnProperty;var Eh=Object.prototype.hasOwnProperty;function Ch(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mh(e,t){for(var n=e.length;n--;)if(Bf(e[n][0],t))return n;return-1}Ch.prototype.clear=function(){this.__data__=kh?kh(null):{},this.size=0},Ch.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ch.prototype.get=function(e){var t=this.__data__;if(kh){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Oh.call(t,e)?t[e]:void 0},Ch.prototype.has=function(e){var t=this.__data__;return kh?void 0!==t[e]:Eh.call(t,e)},Ch.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kh&&void 0===t?"__lodash_hash_undefined__":t,this};var Ah=Array.prototype.splice;function Th(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Th.prototype.clear=function(){this.__data__=[],this.size=0},Th.prototype.delete=function(e){var t=this.__data__,n=Mh(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ah.call(t,n,1),--this.size,!0)},Th.prototype.get=function(e){var t=this.__data__,n=Mh(t,e);return n<0?void 0:t[n][1]},Th.prototype.has=function(e){return Mh(this.__data__,e)>-1},Th.prototype.set=function(e,t){var n=this.__data__,r=Mh(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var _h=Sf(Pp,"Map");function Nh(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Rh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Rh.prototype.clear=function(){this.size=0,this.__data__={hash:new Ch,map:new(_h||Th),string:new Ch}},Rh.prototype.delete=function(e){var t=Nh(this,e).delete(e);return this.size-=t?1:0,t},Rh.prototype.get=function(e){return Nh(this,e).get(e)},Rh.prototype.has=function(e){return Nh(this,e).has(e)},Rh.prototype.set=function(e,t){var n=Nh(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Ih(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ih.Cache||Rh),n}Ih.Cache=Rh;var Ph=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dh=/\\(\\)?/g,Lh=function(e){var t=Ih(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ph,(function(e,n,r,o){t.push(r?o.replace(Dh,"$1"):n||e)})),t}));function jh(e,t){return qp(e)?e:Sh(e,t)?[e]:Lh(function(e){return null==e?"":Gp(e)}(e))}function Bh(e){if("string"==typeof e||Up(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function Vh(e,t){for(var n=0,r=(t=jh(t,e)).length;null!=e&&n<r;)e=e[Bh(t[n++])];return n&&n==r?e:void 0}function zh(e,t,n){var r=null==e?void 0:Vh(e,t);return void 0===r?n:r}function Fh(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var $h=Dp?Dp.isConcatSpreadable:void 0;function Hh(e){return qp(e)||Zf(e)||!!($h&&e&&e[$h])}function Uh(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=Hh),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?Uh(a,t-1,n,r,o):Fh(o,a):r||(o[o.length]=a)}return o}function Wh(e){return(null==e?0:e.length)?Uh(e,1):[]}const qh=fh(Object.getPrototypeOf,Object);var Kh=Function.prototype,Jh=Object.prototype,Gh=Kh.toString,Yh=Jh.hasOwnProperty,Xh=Gh.call(Object);function Zh(e){var t=this.__data__=new Th(e);this.size=t.size}Zh.prototype.clear=function(){this.__data__=new Th,this.size=0},Zh.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zh.prototype.get=function(e){return this.__data__.get(e)},Zh.prototype.has=function(e){return this.__data__.has(e)},Zh.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Th){var r=n.__data__;if(!_h||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Rh(r)}return n.set(e,t),this.size=n.size,this};var Qh="object"==typeof exports&&exports&&!exports.nodeType&&exports,em=Qh&&"object"==typeof module&&module&&!module.nodeType&&module,tm=em&&em.exports===Qh?Pp.Buffer:void 0,nm=tm?tm.allocUnsafe:void 0;function rm(e,t){if(t)return e.slice();var n=e.length,r=nm?nm(n):new e.constructor(n);return e.copy(r),r}function om(){return[]}var im=Object.prototype.propertyIsEnumerable,sm=Object.getOwnPropertySymbols,am=sm?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}(sm(e),(function(t){return im.call(e,t)})))}:om;var lm=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Fh(t,am(e)),e=qh(e);return t}:om;function cm(e,t,n){var r=t(e);return qp(e)?r:Fh(r,n(e))}function um(e){return cm(e,gh,am)}function dm(e){return cm(e,bh,lm)}var pm=Sf(Pp,"DataView"),fm=Sf(Pp,"Promise"),hm=Sf(Pp,"Set"),mm="[object Map]",gm="[object Promise]",vm="[object Set]",ym="[object WeakMap]",bm="[object DataView]",wm=hf(pm),xm=hf(_h),Sm=hf(fm),km=hf(hm),Om=hf(kf),Em=$p;(pm&&Em(new pm(new ArrayBuffer(1)))!=bm||_h&&Em(new _h)!=mm||fm&&Em(fm.resolve())!=gm||hm&&Em(new hm)!=vm||kf&&Em(new kf)!=ym)&&(Em=function(e){var t=$p(e),n="[object Object]"==t?e.constructor:void 0,r=n?hf(n):"";if(r)switch(r){case wm:return bm;case xm:return mm;case Sm:return gm;case km:return vm;case Om:return ym}return t});const Cm=Em;var Mm=Object.prototype.hasOwnProperty;var Am=Pp.Uint8Array;function Tm(e){var t=new e.constructor(e.byteLength);return new Am(t).set(new Am(e)),t}var _m=/\w*$/;var Nm=Dp?Dp.prototype:void 0,Rm=Nm?Nm.valueOf:void 0;function Im(e,t){var n=t?Tm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Pm(e,t,n){var r,o,i,s=e.constructor;switch(t){case"[object ArrayBuffer]":return Tm(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return function(e,t){var n=t?Tm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Im(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,_m.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return r=e,Rm?Object(Rm.call(r)):{}}}function Dm(e){return"function"!=typeof e.constructor||Kf(e)?{}:Ef(qh(e))}var Lm=lh&&lh.isMap,jm=Lm?oh(Lm):function(e){return Hp(e)&&"[object Map]"==Cm(e)};var Bm=lh&&lh.isSet,Vm=Bm?oh(Bm):function(e){return Hp(e)&&"[object Set]"==Cm(e)},zm="[object Arguments]",Fm="[object Function]",$m="[object Object]",Hm={};function Um(e,t,n,r,o,i){var s,a=1&t,l=2&t,c=4&t;if(n&&(s=o?n(e,r,o,i):n(e)),void 0!==s)return s;if(!Qp(e))return e;var u=qp(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Mm.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return Mf(e,s)}else{var d=Cm(e),p=d==Fm||"[object GeneratorFunction]"==d;if(nh(e))return rm(e,a);if(d==$m||d==zm||p&&!o){if(s=l||p?{}:Dm(e),!a)return l?function(e,t){return Ff(e,lm(e),t)}(e,function(e,t){return e&&Ff(t,bh(t),e)}(s,e)):function(e,t){return Ff(e,am(e),t)}(e,function(e,t){return e&&Ff(t,gh(t),e)}(s,e))}else{if(!Hm[d])return o?e:{};s=Pm(e,d,a)}}i||(i=new Zh);var f=i.get(e);if(f)return f;i.set(e,s),Vm(e)?e.forEach((function(r){s.add(Um(r,t,n,r,e,i))})):jm(e)&&e.forEach((function(r,o){s.set(o,Um(r,t,n,o,e,i))}));var h=u?void 0:(c?l?dm:um:l?bh:gh)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(h||e,(function(r,o){h&&(r=e[o=r]),zf(s,o,Um(r,t,n,o,e,i))})),s}Hm[zm]=Hm["[object Array]"]=Hm["[object ArrayBuffer]"]=Hm["[object DataView]"]=Hm["[object Boolean]"]=Hm["[object Date]"]=Hm["[object Float32Array]"]=Hm["[object Float64Array]"]=Hm["[object Int8Array]"]=Hm["[object Int16Array]"]=Hm["[object Int32Array]"]=Hm["[object Map]"]=Hm["[object Number]"]=Hm[$m]=Hm["[object RegExp]"]=Hm["[object Set]"]=Hm["[object String]"]=Hm["[object Symbol]"]=Hm["[object Uint8Array]"]=Hm["[object Uint8ClampedArray]"]=Hm["[object Uint16Array]"]=Hm["[object Uint32Array]"]=!0,Hm["[object Error]"]=Hm[Fm]=Hm["[object WeakMap]"]=!1;function Wm(e){return Um(e,5)}function qm(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Rh;++t<n;)this.add(e[t])}function Km(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}qm.prototype.add=qm.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},qm.prototype.has=function(e){return this.__data__.has(e)};function Jm(e,t,n,r,o,i){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new qm:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var h=e[d],m=t[d];if(r)var g=s?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!Km(t,(function(e,t){if(s=t,!f.has(s)&&(h===e||o(h,e,n,r,i)))return f.push(t);var s}))){p=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Gm(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ym(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Xm=Dp?Dp.prototype:void 0,Zm=Xm?Xm.valueOf:void 0;var Qm=Object.prototype.hasOwnProperty;var eg="[object Arguments]",tg="[object Array]",ng="[object Object]",rg=Object.prototype.hasOwnProperty;function og(e,t,n,r,o,i){var s=qp(e),a=qp(t),l=s?tg:Cm(e),c=a?tg:Cm(t),u=(l=l==eg?ng:l)==ng,d=(c=c==eg?ng:c)==ng,p=l==c;if(p&&nh(e)){if(!nh(t))return!1;s=!0,u=!1}if(p&&!u)return i||(i=new Zh),s||uh(e)?Jm(e,t,n,r,o,i):function(e,t,n,r,o,i,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Am(e),new Am(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Bf(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Gm;case"[object Set]":var l=1&r;if(a||(a=Ym),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var u=Jm(a(e),a(t),r,o,i,s);return s.delete(e),u;case"[object Symbol]":if(Zm)return Zm.call(e)==Zm.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var f=u&&rg.call(e,"__wrapped__"),h=d&&rg.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,g=h?t.value():t;return i||(i=new Zh),o(m,g,n,r,i)}}return!!p&&(i||(i=new Zh),function(e,t,n,r,o,i){var s=1&n,a=um(e),l=a.length;if(l!=um(t).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in t:Qm.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=s;++c<l;){var m=e[u=a[c]],g=t[u];if(r)var v=s?r(g,m,u,t,e,i):r(m,g,u,e,t,i);if(!(void 0===v?m===g||o(m,g,n,r,i):v)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,i))}function ig(e,t,n,r,o){return e===t||(null==e||null==t||!Hp(e)&&!Hp(t)?e!=e&&t!=t:og(e,t,n,r,ig,o))}function sg(e){return e==e&&!Qp(e)}function ag(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function lg(e){var t=function(e){for(var t=gh(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,sg(o)]}return t}(e);return 1==t.length&&t[0][2]?ag(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,s=!r;if(null==e)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var l=(a=n[o])[0],c=e[l],u=a[1];if(s&&a[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Zh;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?ig(u,c,3,r,d):p))return!1}}return!0}(n,e,t)}}function cg(e,t){return null!=e&&t in Object(e)}function ug(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=jh(t,e)).length,i=!1;++r<o;){var s=Bh(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Uf(o)&&Lf(s,o)&&(qp(e)||Zf(e))}(e,t,cg)}function dg(e){return Sh(e)?(t=Bh(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Vh(t,e)}}(e);var t}function pg(e){return"function"==typeof e?e:null==e?lf:"object"==typeof e?qp(e)?(t=e[0],n=e[1],Sh(t)&&sg(n)?ag(Bh(t),n):function(e){var r=zh(e,t);return void 0===r&&r===n?ug(e,t):ig(n,r,3)}):lg(e):dg(e);var t,n}var fg,hg=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),s=i.length;s--;){var a=i[fg?s:++r];if(!1===t(o[a],a,o))break}return e},mg=function(){return Pp.Date.now()},gg=Math.max,vg=Math.min;function yg(e,t,n){var r,o,i,s,a,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,s=e.apply(i,n)}function h(e){return c=e,a=setTimeout(g,t),u?f(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function g(){var e=mg();if(m(e))return v(e);a=setTimeout(g,function(e){var n=t-(e-l);return d?vg(n,i-(e-c)):n}(e))}function v(e){return a=void 0,p&&r?f(e):(r=o=void 0,s)}function y(){var e=mg(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===a)return h(l);if(d)return clearTimeout(a),a=setTimeout(g,t),f(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=of(t)||0,Qp(n)&&(u=!!n.leading,i=(d="maxWait"in n)?gg(of(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=o=a=void 0},y.flush=function(){return void 0===a?s:v(mg())},y}function bg(e,t,n){(void 0!==n&&!Bf(e[t],n)||void 0===n&&!(t in e))&&jf(e,t,n)}function wg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function xg(e,t,n,r,o,i,s){var a=wg(e,n),l=wg(t,n),c=s.get(l);if(c)bg(e,n,c);else{var u,d=i?i(a,l,n+"",e,t,s):void 0,p=void 0===d;if(p){var f=qp(l),h=!f&&nh(l),m=!f&&!h&&uh(l);d=l,f||h||m?qp(a)?d=a:Hp(u=a)&&Wf(u)?d=Mf(a):h?(p=!1,d=rm(l,!0)):m?(p=!1,d=Im(l,!0)):d=[]:function(e){if(!Hp(e)||"[object Object]"!=$p(e))return!1;var t=qh(e);if(null===t)return!0;var n=Yh.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Gh.call(n)==Xh}(l)||Zf(l)?(d=a,Zf(a)?d=function(e){return Ff(e,bh(e))}(a):Qp(a)&&!cf(a)||(d=Dm(l))):p=!1}p&&(s.set(l,d),o(d,l,r,i,s),s.delete(l)),bg(e,n,d)}}function Sg(e,t,n,r,o){e!==t&&hg(t,(function(i,s){if(o||(o=new Zh),Qp(i))xg(e,t,s,n,Sg,r,o);else{var a=r?r(wg(e,s),i,s+"",e,t,o):void 0;void 0===a&&(a=i),bg(e,s,a)}}),bh)}var kg=Math.max,Og=Math.min;function Eg(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function Cg(e,t){return ig(e,t)}function Mg(e){return null==e}var Ag,Tg=(Ag=function(e,t,n){Sg(e,t,n)},function(e,t){return Pf(Hf(e,t,lf),e+"")}((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Ag.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!Qp(n))return!1;var r=typeof t;return!!("number"==r?Wf(n)&&Lf(t,n.length):"string"==r&&t in n)&&Bf(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var s=t[n];s&&Ag(e,s,n,o)}return e})));const _g=Tg;function Ng(e,t,n,r){if(!Qp(e))return e;for(var o=-1,i=(t=jh(t,e)).length,s=i-1,a=e;null!=a&&++o<i;){var l=Bh(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var u=a[l];void 0===(c=r?r(u,l,a):void 0)&&(c=Qp(u)?u:Lf(t[o+1])?[]:{})}zf(a,l,c),a=a[l]}return e}function Rg(e,t){return function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=Vh(e,s);n(a,s)&&Ng(i,jh(s,e),a)}return i}(e,t,(function(t,n){return ug(e,n)}))}var Ig=function(e){return Pf(Hf(e,void 0,Wh),e+"")}((function(e,t){return null==e?{}:Rg(e,t)}));var Pg={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};pc.defaults.withCredentials=!0,pc.defaults.baseURL=Pg.VITE_BACKEND_BASE_URL;const Dg=window.wb_js_cnf?window.wb_js_cnf:{ajax_url:"/wp-admin/admin-ajax.php",home_url:"/"},Lg=Dg.ajax_url,jg=Dg.home_url,Bg={getData:(e={})=>{const t=_g({action:Dg.action.act,do:Dg.action.fetch},e);return Vg("POST",Lg,Np.stringify(t))},saveData:(e={})=>{const t=_g({action:Dg.action.act,do:Dg.action.push},e);return Vg("POST",Lg,Np.stringify(t))},restGet:e=>Vg("GET",jg+e),getJson:e=>Vg("GET",e)};function Vg(e,t,n=null,r=!1,o=null){return"GET"==e?new Promise(((e,n)=>{pc.get(t,o).then((n=>{zg(n,"GET - then - "+t),e(r?n:n.data)})).catch((e=>{zg(e,"GET - catch - "+t),n(e)}))})):"POST"==e?new Promise(((e,i)=>{pc.post(t,n,o).then((n=>{zg(n,"POST - then - "+t),e(r?n:n.data)})).catch((e=>{zg(e,"POST - catch - "+t),i(e)}))})):"PUT"==e?new Promise(((e,i)=>{pc.put(t,n,o).then((n=>{zg(n,"PUT - then - "+t),e(r?n:n.data)})).catch((e=>{zg(e,"PUT - catch - "+t),i(e)}))})):"DELETE"==e?new Promise(((e,n)=>{pc.delete(t,o).then((n=>{zg(n,"DELETE - then - "+t),e(r?n:n.data)})).catch((e=>{zg(e,"DELETE - catch - "+t),n(e)}))})):void 0}function zg(e,t){}const Fg=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},$g={key:0,id:"version_tips"},Hg={class:"update-message notice inline notice-warning notice-alt"},Ug=["href"],Wg={class:"ver"},qg=["href","aria-label"];const Kg=Fg({name:"NoticeBar",setup(){const{wbsCnf:e}=Ta(),t=Mt(0);return Bg.getData({action:"wb_setting_ajax",do:"chk_ver"}).then((e=>{e&&(t.value=e)})),{newVer:t,pdName:e._pd_name,pdUrl:`https://www.wbolt.com/themes/${e._pd_code}#J_updateRecordsSection`,baseUrl:`${e._admin_url}themes.php`}}},[["render",function(e,t,n,r,o,i){return r.newVer?(Qo(),oi("div",$g,[di("div",Hg,[di("p",null,[mi("当前"+X(r.pdName)+"有新版本可用. ",1),di("a",{href:r.pdUrl,"data-wba-campaign":"notice-bar#J_updateRecordsSection",target:"_blank"},[mi("查看版本"),di("span",Wg,X(r.newVer),1),mi(" 详情")],8,Ug),mi(" 或 "),di("a",{href:r.baseUrl,class:"update-link","aria-label":"现在更新"+r.pdName},"现在更新",8,qg),mi(". ")])])])):vi("",!0)}]]),Jg={name:"FloatTools"},Gg={class:"wbs-float-tools",id:"wbFloatTools"},Yg=[gi('<div class="ft-item fs"><svg class="wb-icon sico-fullscreen"><use xlink:href="#wbsico-fullscreen"></use></svg><span>全屏</span></div><div class="ft-item exfs"><svg class="wb-icon sico-exfullscreen"><use xlink:href="#wbsico-exfullscreen"></use></svg><span>取消</span></div>',2)];const Xg={name:"Header",components:{"wbs-float-tools":Fg(Jg,[["render",function(e,t,n,r,o,i){return Qo(),oi("div",Gg,Yg)}]])},props:{wbs:{type:Boolean,defalut:!1}},setup(e,t){const{wbsCnf:n}=Ta(),r=/mobile/i.test(navigator.userAgent)&&window.outerWidth<768,o=n._pd_code||"",i={adminUrl:"/wp-admin/",pd_url:"https://www.wbolt.com/themes/"+o,pd_doc_url:"https://www.wbolt.com/"+o+"-theme-documentation.html"};return en((()=>{/mobile/i.test(navigator.userAgent)&&window.outerWidth<768&&document.querySelector("#wbFloatTools").addEventListener("click",(function(){document.querySelector("body").classList.toggle("wb-fullscreen")}))})),{isMobile:r,cnfData:i}}},Zg={class:"wbs-header"},Qg=["href"],ev={class:"page-title"},tv=di("svg",{class:"wb-icon sico-wb-logo"},[di("use",{"xlink:href":"#sico-wb-logo"})],-1),nv=di("span",null,"WBOLT",-1),rv={class:"links"},ov=["href"],iv=[di("svg",{class:"wb-icon sico-plugins"},[di("use",{"xlink:href":"#sico-plugins"})],-1),di("span",null,"主题主页",-1)],sv=["href"],av=[di("svg",{class:"wb-icon sico-doc"},[di("use",{"xlink:href":"#sico-doc"})],-1),di("span",null,"说明文档",-1)];const lv=Fg(Xg,[["render",function(e,t,n,r,o,i){const s=En("router-link"),a=En("wbs-float-tools");return Qo(),oi("div",Zg,[r.isMobile?(Qo(),oi(Ko,{key:0},[n.wbs&&"/wbs-index"!=e.$route.path?(Qo(),ii(s,{key:0,class:"hd-back",to:"wbs-index"},{default:yn((()=>[mi("首页")])),_:1})):vi("",!0),n.wbs?vi("",!0):(Qo(),oi("a",{key:1,class:"hd-back",href:r.cnfData.adminUrl+"admin.php?page=wbs#/wbs-index?wbp=1"},"首页",8,Qg)),di("div",ev,[di("h1",null,X(e.$route.name),1)]),pi(a)],64)):(Qo(),oi(Ko,{key:1},[tv,nv,di("strong",null,X(e.$route.name),1),di("div",rv,[di("a",{class:"wb-btn","data-wba-campaign":"title-bar",href:r.cnfData.pd_url,target:"_blank"},iv,8,ov),di("a",{class:"wb-btn","data-wba-campaign":"title-bar",href:r.cnfData.pd_doc_url,target:"_blank"},av,8,sv)])],64))])}]]),cv={name:"Footer",setup(){const{wbsCnf:e}=Ta();return{pd_version:e._version,pd_doc_url:"https://www.wbolt.com/"+e._pd_code+"-theme-documentation.html"}}},uv={class:"wbs-footer-wp"},dv={class:"wb-copyright-bar"},pv={class:"wbcb-inner"},fv=di("a",{class:"wb-logo",href:"https://www.wbolt.com","data-wba-campaign":"footer",title:"WBOLT",target:"_blank"},[di("svg",{class:"wb-icon sico-wb-logo"},[di("use",{"xlink:href":"#sico-wb-logo"})])],-1),hv={class:"wb-desc"},mv=di("a",{href:"https://www.wbolt.com","data-wba-campaign":"footer",target:"_blank"},"闪电博",-1),gv={class:"wb-version"},vv={class:"ft-links"},yv=di("a",{href:"https://www.wbolt.com/themes","data-wba-campaign":"footer",target:"_blank"},"免费主题",-1),bv=di("a",{href:"https://www.wbolt.com/resources","data-wba-campaign":"footer",target:"_blank"},"主题支持",-1),wv=["href"],xv=di("a",{href:"https://www.wbolt.com/terms-conditions","data-wba-campaign":"footer",target:"_blank"},"服务协议",-1),Sv=di("a",{href:"https://www.wbolt.com/privacy-policy","data-wba-campaign":"footer",target:"_blank"},"隐私条例",-1);const kv=Fg(cv,[["render",function(e,t,n,r,o,i){return Qo(),oi("div",uv,[di("div",dv,[di("div",pv,[fv,di("div",hv,[mi(" Made By "),mv,di("span",gv,"版本:"+X(r.pd_version),1)]),di("div",vv,[yv,bv,di("a",{"data-wba-campaign":"footer",href:r.pd_doc_url,target:"_blank"},"说明文档",8,wv),xv,Sv])])])])}]]),Ov={name:"SvgIcons"},Ev={style:{display:"none"}},Cv={"aria-hidden":"true",style:{position:"absolute",width:"0",height:"0",overflow:"hidden"},version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Mv=[di("defs",null,[di("symbol",{id:"sico-mail",viewBox:"0 0 17 14"},[di("path",{"fill-rule":"evenodd",d:"M14 3.4L8 6.8 2 3.4V2h12v1.4zm0 8.6H2V5.7L7.5 9h1L14 5.7V12zm1-12H1a1 1 0 00-1 1v12c0 .6.5 1 1 1h14c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z"})]),di("symbol",{id:"sico-ad",viewBox:"0 0 18 18"},[di("title",null,"sico-ad"),di("path",{d:"M15.75 7.875h-2.813l-1.688 2.475-4.5-6.75-2.813 4.275h-1.688v-5.625h13.5v5.625zM15.75 15.75h-13.5v-5.625h2.813l1.688-2.475 4.5 6.75 2.813-4.275h1.688v5.625zM16.875 0h-15.75c-0.675 0-1.125 0.45-1.125 1.125v15.75c0 0.675 0.45 1.125 1.125 1.125h15.75c0.675 0 1.125-0.45 1.125-1.125v-15.75c0-0.675-0.45-1.125-1.125-1.125z"})]),di("symbol",{id:"sico-base",viewBox:"0 0 18 18"},[di("title",null,"sico-base"),di("path",{d:"M15.75 6.75h-4.5v-2.25h4.5v2.25zM15.75 13.5h-2.588c-0.338 0.675-1.125 1.125-1.912 1.125-1.243 0-2.25-1.007-2.25-2.25v0c0-1.237 1.013-2.25 2.25-2.25 0.815 0.014 1.522 0.458 1.907 1.114l0.006 0.011h2.588v2.25zM6.75 7.875c-0.815-0.014-1.522-0.458-1.907-1.114l-0.006-0.011h-2.587v-2.25h2.587c0.338-0.675 1.125-1.125 1.913-1.125 1.243 0 2.25 1.007 2.25 2.25v0c0 1.243-1.007 2.25-2.25 2.25v0zM6.75 13.5h-4.5v-2.25h4.5v2.25zM15.75 0h-13.5c-1.243 0-2.25 1.007-2.25 2.25v0 13.5c0 1.238 1.012 2.25 2.25 2.25h13.5c1.243 0 2.25-1.007 2.25-2.25v0-13.5c0-1.243-1.007-2.25-2.25-2.25v0z"})]),di("symbol",{id:"sico-code",viewBox:"0 0 18 18"},[di("title",null,"sico-code"),di("path",{d:"M14.287 12.713l-1.575-1.575 2.587-2.7-2.588-2.587 1.575-1.575 3.375 3.375c0.45 0.45 0.45 1.125 0 1.575l-3.375 3.375zM3.712 12.713l-3.375-3.375c-0.199-0.203-0.322-0.481-0.322-0.787s0.123-0.585 0.322-0.788l3.375-3.375 1.575 1.575-2.588 2.475 2.588 2.587-1.575 1.575zM6.75 16.313h-0.337c-0.44-0.159-0.749-0.574-0.749-1.060 0-0.145 0.027-0.283 0.077-0.41l-0.003 0.008 4.5-13.5c0.159-0.44 0.574-0.749 1.060-0.749 0.145 0 0.283 0.027 0.41 0.077l-0.008-0.003c0.563 0.225 0.9 0.787 0.675 1.462l-4.5 13.5c-0.225 0.45-0.675 0.787-1.125 0.787z"})]),di("symbol",{id:"sico-upload",viewBox:"0 0 16 13"},[di("path",{d:"M9 8v3H7V8H4l4-4 4 4H9zm4-2.9V5a5 5 0 0 0-5-5 4.9 4.9 0 0 0-4.9 4.3A4.4 4.4 0 0 0 0 8.5C0 11 2 13 4.5 13H12a4 4 0 0 0 1-7.9z",fill:"#666","fill-rule":"evenodd"})]),di("symbol",{id:"sico-download",viewBox:"0 0 16 16"},[di("path",{d:"M9 9V0H7v9H4l4 4 4-4z"}),di("path",{d:"M15 16H1a1 1 0 0 1-1-1.1l1-8c0-.5.5-.9 1-.9h3v2H2.9L2 14H14L13 8H11V6h3c.5 0 1 .4 1 .9l1 8a1 1 0 0 1-1 1.1"})]),di("symbol",{id:"sico-wb-logo",viewBox:"0 0 18 18"},[di("title",null,"sico-wb-logo"),di("path",{d:"M7.264 10.8l-2.764-0.964c-0.101-0.036-0.172-0.131-0.172-0.243 0-0.053 0.016-0.103 0.044-0.144l-0.001 0.001 6.686-8.55c0.129-0.129 0-0.321-0.129-0.386-0.631-0.163-1.355-0.256-2.102-0.256-2.451 0-4.666 1.009-6.254 2.633l-0.002 0.002c-0.791 0.774-1.439 1.691-1.905 2.708l-0.023 0.057c-0.407 0.95-0.644 2.056-0.644 3.217 0 0.044 0 0.089 0.001 0.133l-0-0.007c0 1.221 0.257 2.314 0.643 3.407 0.872 1.906 2.324 3.42 4.128 4.348l0.051 0.024c0.129 0.064 0.257 0 0.321-0.129l2.25-5.593c0.064-0.129 0-0.257-0.129-0.321z"}),di("path",{d:"M16.714 5.914c-0.841-1.851-2.249-3.322-4.001-4.22l-0.049-0.023c-0.040-0.027-0.090-0.043-0.143-0.043-0.112 0-0.206 0.071-0.242 0.17l-0.001 0.002-2.507 5.914c0 0.129 0 0.257 0.129 0.321l2.571 1.286c0.129 0.064 0.129 0.257 0 0.386l-5.979 7.264c-0.129 0.129 0 0.321 0.129 0.386 0.618 0.15 1.327 0.236 2.056 0.236 2.418 0 4.615-0.947 6.24-2.49l-0.004 0.004c0.771-0.771 1.414-1.671 1.929-2.7 0.45-1.029 0.643-2.121 0.643-3.279s-0.193-2.314-0.643-3.279z"})]),di("symbol",{id:"sico-version",viewBox:"0 0 16 16"},[di("path",{d:"M8 14c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8"}),di("path",{d:"M10.97 6.95a1 1 0 0 1-1.4-.17C9.18 6.28 8.6 6 8 6a2 2 0 0 0 0 4c.61 0 1.18-.28 1.57-.78a1 1 0 1 1 1.58 1.23A4 4 0 1 1 8 4c1.23 0 2.38.56 3.15 1.55a1 1 0 0 1-.18 1.4"})]),di("symbol",{id:"sico-more",viewBox:"0 0 16 16"},[di("path",{d:"M6 0H1C.4 0 0 .4 0 1v5c0 .6.4 1 1 1h5c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1M15 0h-5c-.6 0-1 .4-1 1v5c0 .6.4 1 1 1h5c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1M6 9H1c-.6 0-1 .4-1 1v5c0 .6.4 1 1 1h5c.6 0 1-.4 1-1v-5c0-.6-.4-1-1-1M15 9h-5c-.6 0-1 .4-1 1v5c0 .6.4 1 1 1h5c.6 0 1-.4 1-1v-5c0-.6-.4-1-1-1"})]),di("symbol",{id:"sico-views",viewBox:"0 0 16 11"},[di("path",{fill:"#999","fill-rule":"nonzero",d:"M8 0a8.6 8.6 0 0 0-8 5.5A8.6 8.6 0 0 0 8 11a8.6 8.6 0 0 0 8-5.5A8.6 8.6 0 0 0 8 0zm0 9.17c-2 0-3.64-1.65-3.64-3.67A3.65 3.65 0 0 1 8 1.83c2 0 3.64 1.65 3.64 3.67A3.65 3.65 0 0 1 8 9.17zM8 3.3a2.2 2.2 0 0 0-2.18 2.2c0 1.21.98 2.2 2.18 2.2a2.2 2.2 0 0 0 2.18-2.2A2.2 2.2 0 0 0 8 3.3z"})]),di("symbol",{id:"sico-date",viewBox:"0 0 16 16"},[di("path",{d:"M8 14c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8"}),di("path",{d:"M9 4H7v5h5V7H9z"})]),di("symbol",{id:"sico-plugins",viewBox:"0 0 16 16"},[di("path",{"fill-rule":"evenodd",d:"M16 3h-2V0h-2v3H8V0H6v3H4v2h1v2a5 5 0 0 0 4 4.9V14H2v-4H0v5c0 .6.4 1 1 1h9c.6 0 1-.4 1-1v-3.1A5 5 0 0 0 15 7V5h1V3z"})]),di("symbol",{id:"sico-doc",viewBox:"0 0 16 16"},[di("path",{"fill-rule":"evenodd",d:"M15 0H1C.4 0 0 .4 0 1v14c0 .6.4 1 1 1h14c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1zm-1 2v9h-3c-.6 0-1 .4-1 1v1H6v-1c0-.6-.4-1-1-1H2V2h12z"}),di("path",{d:"M4 4h8v2H4zM4 7h8v2H4z"})]),di("symbol",{id:"wbsico-donate",viewBox:"0 0 9 18"},[di("path",{"fill-rule":"evenodd",d:"M5.63 8.1V4.61c.67.23 1.12.9 1.12 1.58S7.2 7.3 7.88 7.3 9 6.86 9 6.2a3.8 3.8 0 0 0-3.38-3.83V1.12C5.63.45 5.17 0 4.5 0S3.37.45 3.37 1.12v1.24A3.8 3.8 0 0 0 0 6.2C0 8.55 1.8 9.45 3.38 9.9v3.49c-.68-.23-1.13-.9-1.13-1.58S1.8 10.7 1.12 10.7 0 11.14 0 11.8a3.8 3.8 0 0 0 3.38 3.83v1.24c0 .67.45 1.12 1.12 1.12s1.13-.45 1.13-1.12v-1.24A3.88 3.88 0 0 0 9 11.8c0-2.36-1.8-3.26-3.38-3.7zM2.25 6.19c0-.79.45-1.35 1.13-1.58v2.93c-.8-.34-1.13-.68-1.13-1.35zm3.38 7.2v-2.93c.78.34 1.12.68 1.12 1.35 0 .79-.45 1.35-1.13 1.58z"})]),di("symbol",{id:"wbsico-like",viewBox:"0 0 16 16"},[di("path",{"fill-rule":"evenodd",d:"M13.3 6H9V2c0-1.5-.8-2-2-2-.3 0-.6.2-.6.5L4 8v8h8.6c1.3 0 2.4-1 2.6-2.3l.8-4.6c.1-.8-.1-1.6-.6-2.1-.5-.7-1.3-1-2.1-1M0 8h2v8H0z"})]),di("symbol",{id:"wbsico-share",viewBox:"0 0 14 16"},[di("path",{"fill-rule":"evenodd",d:"M11 6a3 3 0 1 0-3-2.4L5 5.6A3 3 0 0 0 3 5a3 3 0 0 0 0 6 3 3 0 0 0 1.9-.7l3.2 2-.1.7a3 3 0 1 0 3-3 3 3 0 0 0-1.9.7L6 8.7a3 3 0 0 0 0-1.3l3.2-2A3 3 0 0 0 11 6"})]),di("symbol",{id:"sico-links",viewBox:"0 0 17 16"},[di("g",{fill:"#444","fill-rule":"evenodd"},[di("path",{d:"M4.5 16c-1.1 0-2.3-.5-3.1-1.3a4.5 4.5 0 0 1 0-6.4l.6-.7L3.5 9l-.8.7c-1 1-1 2.6 0 3.6s2.6 1 3.6 0l3-3c1-1 1-2.6 0-3.6L8.7 6l1.5-1.4.7.7a4.5 4.5 0 0 1 0 6.4l-3 3c-.8.8-2 1.3-3.3 1.3"}),di("path",{d:"M6 11.4l-.7-.7a4.5 4.5 0 0 1 0-6.4l3-3c1-.9 2-1.3 3.3-1.3 1.2 0 2.3.5 3.2 1.3a4.5 4.5 0 0 1 0 6.4l-.8.7L12.8 7l.7-.7c1-1 1-2.6 0-3.6s-2.7-1-3.7 0l-3 3c-1 1-1 2.6 0 3.6l.8.7L6 11.4z"})])]),di("symbol",{id:"sico-plus",viewBox:"0 0 16 16"},[di("path",{"ill-rule":"evenodd",d:"M10 0H6v6H0v4h6v6h4v-6h6V6h-6z"})]),di("symbol",{id:"wbsico-time",viewBox:"0 0 18 18"},[di("path",{d:"M9 15.75c-3.71 0-6.75-3.04-6.75-6.75S5.29 2.25 9 2.25 15.75 5.29 15.75 9 12.71 15.75 9 15.75zM9 0C4.05 0 0 4.05 0 9s4.05 9 9 9 9-4.05 9-9-4.05-9-9-9z"}),di("path",{d:"M10.24 4.5h-1.8V9h4.5V7.2h-2.7z"})]),di("symbol",{id:"wbsico-views",viewBox:"0 0 26 18"},[di("path",{d:"M13.1 0C7.15.02 2.08 3.7.02 8.9L0 9a14.1 14.1 0 0 0 13.09 9c5.93-.02 11-3.7 13.06-8.9l.03-.1A14.1 14.1 0 0 0 13.1 0zm0 15a6 6 0 0 1-5.97-6v-.03c0-3.3 2.67-5.97 5.96-5.98a6 6 0 0 1 5.96 6v.04c0 3.3-2.67 5.97-5.96 5.98zm0-9.6a3.6 3.6 0 1 0 0 7.2 3.6 3.6 0 0 0 0-7.2h-.01z"})]),di("symbol",{id:"wbsico-comment",viewBox:"0 0 18 18"},[di("path",{d:"M9 0C4.05 0 0 3.49 0 7.88s4.05 7.87 9 7.87c.45 0 .9 0 1.24-.11L15.75 18v-4.95A7.32 7.32 0 0 0 18 7.88C18 3.48 13.95 0 9 0z"})]),di("symbol",{id:"sico-oauth",viewBox:"0 0 17 14"},[di("g",{fill:"#444","fill-rule":"evenodd"},[di("path",{d:"M13.2.2a2.5 2.5 0 110 5 2.5 2.5 0 010-5M7.5 1.1a2.3 2.3 0 110 4.6 2.3 2.3 0 010-4.6M2.3 1.9a2.1 2.1 0 110 4.2 2.1 2.1 0 010-4.2M2.3 6.5C1 6.5 0 7.7 0 8.9v.8c0 .1.1.2.2.2H4.4c.1 0 .2-.1.2-.2v-.8c-.1-1.2-1-2.4-2.3-2.4M7.5 6.2C6 6.2 5 7.5 5 8.8v.9c0 .1.1.2.2.2h4.6c.1 0 .2-.1.2-.2v-.9c0-1.3-1.1-2.6-2.5-2.6M13.2 5.8c-1.6 0-2.8 1.4-2.8 2.9v1c0 .1.1.3.3.3h5.1c.1 0 .3-.1.3-.3v-1c-.1-1.5-1.3-2.9-2.9-2.9"})])]),di("symbol",{id:"sico-edit",viewBox:"0 0 17 16"},[di("g",{"fill-rule":"evenodd"},[di("path",{d:"M14.1.3a1 1 0 00-1.4 0L6 7v3h3l6.7-6.7c.4-.4.4-1 0-1.4L14.1.3z"}),di("path",{d:"M15 9c-.6 0-1 .4-1 1v4H2V2h4c.6 0 1-.4 1-1s-.4-1-1-1H1C.4 0 0 .4 0 1v14c0 .6.4 1 1 1h14c.6 0 1-.4 1-1v-5c0-.6-.4-1-1-1"})])]),di("symbol",{id:"sico-visible",viewBox:"0 0 16 12"},[di("g",{"fill-rule":"evenodd"},[di("path",{d:"M8 2c2.9 0 5 2.8 5.8 4-.7 1.2-3 4-5.8 4S3 7.2 2.2 6C3 4.8 5.2 2 8 2m0 10c4.7 0 7.8-5.3 7.9-5.5a1 1 0 000-1C15.8 5.3 12.8 0 8 0 3.3 0 .3 5.3.2 5.5a1 1 0 000 1C.2 6.7 3.3 12 8 12"}),di("path",{d:"M8 4a2 2 0 110 4 2 2 0 010-4"})])]),di("symbol",{id:"sico-disable",viewBox:"0 0 16 16"},[di("g",{"fill-rule":"evenodd"},[di("path",{d:"M14.6 5.7L13.2 7l.6.9c-.7 1.1-2.8 3.8-5.5 4l-1.8 1.8L8 14c4.7 0 7.8-5.3 7.9-5.5a1 1 0 000-1s-.5-.9-1.3-1.8M2.2 8C3 6.8 5.2 4 8 4c.8 0 1.5.2 2.1.5L8.5 6.1a2 2 0 00-2.4 2.4l-1.8 1.8c-1-.8-1.7-1.7-2-2.3m-2 7.7a1 1 0 001.4 0l14-14A1 1 0 1014.3.3L11.6 3A7 7 0 008 2C3.3 2 .3 7.3.2 7.5a1 1 0 000 1c0 .1 1 1.8 2.6 3.3L.3 14.3a1 1 0 000 1.4"})])]),di("symbol",{id:"sico-del",viewBox:"0 0 17 16"},[di("g",{"fill-rule":"evenodd"},[di("path",{d:"M5 7h2v6H5zM9 7h2v6H9z"}),di("path",{d:"M13 14H3V5h10v9zM6 2h4v1H6V2zm6-1c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v2H0v2h1v10c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V5h1V3h-4V1z"})])]),di("symbol",{id:"sico-qa",viewBox:"0 0 17 16"},[di("path",{"fill-rule":"evenodd",d:"M8 14a6 6 0 01-6-6 6 6 0 016-6 6 6 0 016 6 6 6 0 01-6 6zM8 0a8 8 0 00-8 8 8 8 0 008 8 8 8 0 008-8 8 8 0 00-8-8z","clip-rule":"evenodd"}),di("path",{"fill-rule":"evenodd",d:"M8 11a1 1 0 110 2 1 1 0 010-2zM7.1 5.5c.2-.3.5-.5 1-.5s1 .4 1 1c0 .3-.2.4-.7.7C7.8 7.1 7 7.7 7 9v1h2V9c0-.2 0-.3.5-.6.6-.4 1.5-1 1.5-2.4a3 3 0 00-3-3 3 3 0 00-2.6 1.5l-.5.9 1.7 1 .5-.9z","clip-rule":"evenodd"})]),di("symbol",{id:"sico-search",viewBox:"0 0 24 24"},[di("path",{"fill-rule":"evenodd",d:"M23.7 22.6L22.3 24l-5.5-5.6a9.8 9.8 0 111.4-1.4l5.5 5.6zM10.5 2.9a7.9 7.9 0 100 15.8 7.9 7.9 0 000-15.8z"})]),di("symbol",{id:"wbsico-fullscreen"},[di("g",{"fill-rule":"evenodd","clip-path":"url(#wbsicoFullScreen)","clip-rule":"evenodd"},[di("path",{d:"M8 10a2 2 0 1 1 0-4 2 2 0 0 1 0 4ZM6 0H0v6l2.3-2.3 2 2 1.4-1.4-2-2L6 0ZM16 6V0h-6l2.3 2.3-2 2 1.4 1.4 2-2L16 6ZM10 16h6v-6l-2.3 2.3-2-2-1.4 1.4 2 2L10 16ZM0 10v6h6l-2.3-2.3 2-2-1.4-1.4-2 2L0 10Z"})]),di("defs",null,[di("clipPath",{id:"wbsicoFullScreen"},[di("path",{fill:"#fff",d:"M0 0h16v16H0z"})])])]),di("symbol",{id:"wbsico-exfullscreen"},[di("g",{"fill-rule":"evenodd","clip-path":"url(#wbsicoExFullScreen)","clip-rule":"evenodd"},[di("path",{d:"M8 10a2 2 0 1 1 0-4 2 2 0 0 1 0 4ZM1.7.3.3 1.7l2 2L0 6h6V0L3.7 2.3l-2-2ZM13.7 3.7l2-2L14.3.3l-2 2L10 0v6h6l-2.3-2.3ZM10 10v6l2.3-2.3 2 2 1.4-1.4-2-2L16 10h-6ZM2.3 12.3l-2 2 1.4 1.4 2-2L6 16v-6H0l2.3 2.3Z"})]),di("defs",null,[di("clipPath",{id:"wbsicoExFullScreen"},[di("path",{fill:"#fff",d:"M0 0h16v16H0z"})])])])],-1)];const Av={class:"wbs-wrap"};const Tv=Fg({name:"app",components:{"wbs-notice-bar":Kg,"wbs-header":lv,"wbs-footer":kv,"wbs-svg":Fg(Ov,[["render",function(e,t,n,r,o,i){return Qo(),oi("div",Ev,[(Qo(),oi("svg",Cv,Mv))])}]])},setup(){const e=Mt(!0);return uo("reload",(e.value=!1,void en((()=>{e.value=!0})))),{isRouterAlive:e}}},[["render",function(e,t,n,r,o,i){const s=En("wbs-svg"),a=En("wbs-notice-bar"),l=En("wbs-header"),c=En("router-view"),u=En("wbs-footer");return Qo(),oi(Ko,null,[pi(s),pi(a),di("div",Av,[pi(l,{wbs:!0,title:e.$route.name},null,8,["title"]),r.isRouterAlive?(Qo(),ii(c,{key:0},{default:yn((({Component:e})=>[(Qo(),ii(Mn(e)))])),_:1})):vi("",!0),pi(u)])],64)}]]),_v=function(){const e="undefined"!=typeof document&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),Nv={},Rv=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link");r=Promise.all(t.map((t=>{if(t=function(e,t){return new URL(e,t).href}(t,n),t in Nv)return;Nv[t]=!0;const r=t.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(!!n)for(let n=e.length-1;n>=0;n--){const o=e[n];if(o.href===t&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${o}`))return;const i=document.createElement("link");return i.rel=r?"stylesheet":_v,r||(i.as="script",i.crossOrigin=""),i.href=t,document.head.appendChild(i),r?new Promise(((e,n)=>{i.addEventListener("load",e),i.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}return r.then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))},Iv="undefined"!=typeof document;const Pv=Object.assign;function Dv(e,t){const n={};for(const r in t){const o=t[r];n[r]=jv(o)?o.map(e):e(o)}return n}const Lv=()=>{},jv=Array.isArray,Bv=/#/g,Vv=/&/g,zv=/\//g,Fv=/=/g,$v=/\?/g,Hv=/\+/g,Uv=/%5B/g,Wv=/%5D/g,qv=/%5E/g,Kv=/%60/g,Jv=/%7B/g,Gv=/%7C/g,Yv=/%7D/g,Xv=/%20/g;function Zv(e){return encodeURI(""+e).replace(Gv,"|").replace(Uv,"[").replace(Wv,"]")}function Qv(e){return Zv(e).replace(Hv,"%2B").replace(Xv,"+").replace(Bv,"%23").replace(Vv,"%26").replace(Kv,"`").replace(Jv,"{").replace(Yv,"}").replace(qv,"^")}function ey(e){return null==e?"":function(e){return Zv(e).replace(Bv,"%23").replace($v,"%3F")}(e).replace(zv,"%2F")}function ty(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const ny=/\/$/;function ry(e,t,n="/"){let r,o={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),o=e(i)),a>-1&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=function(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 i,s,a=n.length-1;for(i=0;i<r.length;i++)if(s=r[i],"."!==s){if(".."!==s)break;a>1&&a--}return n.slice(0,a).join("/")+"/"+r.slice(i).join("/")}(null!=r?r:t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:ty(s)}}function oy(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function iy(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ay(e[n],t[n]))return!1;return!0}function ay(e,t){return jv(e)?ly(e,t):jv(t)?ly(t,e):e===t}function ly(e,t){return jv(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var cy,uy,dy,py;function fy(e){if(!e)if(Iv){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(ny,"")}(uy=cy||(cy={})).pop="pop",uy.push="push",(py=dy||(dy={})).back="back",py.forward="forward",py.unknown="";const hy=/^[^#]+#/;function my(e,t){return e.replace(hy,"#")+t}const gy=()=>({left:window.scrollX,top:window.scrollY});function vy(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=function(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)}}(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function yy(e,t){return(history.state?history.state.position-t:-1)+e}const by=new Map;function wy(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let t=o.includes(e.slice(i))?e.slice(i).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),oy(n,"")}return oy(n,e)+r+o}function xy(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?gy():null}}function Sy(e){const{history:t,location:n}=window,r={value:wy(e,n)},o={value:t.state};function i(r,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+r:location.protocol+"//"+location.host+e+r;try{t[s?"replaceState":"pushState"](i,"",l),o.value=i}catch(c){n[s?"replace":"assign"](l)}}return o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:function(e,n){const s=Pv({},o.value,t.state,{forward:e,scroll:gy()});i(s.current,s,!0),i(e,Pv({},xy(r.value,e,null),{position:s.position+1},n),!1),r.value=e},replace:function(e,n){i(e,Pv({},t.state,xy(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function ky(e){const t=Sy(e=fy(e)),n=function(e,t,n,r){let o=[],i=[],s=null;const a=({state:i})=>{const a=wy(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);u=c?i.position-c.position:0}else r(a);o.forEach((e=>{e(n.value,l,{delta:u,type:cy.pop,direction:u?u>0?dy.forward:dy.back:dy.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Pv({},e.state,{scroll:gy()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const r=Pv({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:my.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Oy(e){return"string"==typeof e||"symbol"==typeof e}const Ey={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Cy=Symbol("");var My,Ay;function Ty(e,t){return Pv(new Error,{type:e,[Cy]:!0},t)}function _y(e,t){return e instanceof Error&&Cy in e&&(null==t||!!(e.type&t))}(Ay=My||(My={}))[Ay.aborted=4]="aborted",Ay[Ay.cancelled=8]="cancelled",Ay[Ay.duplicated=16]="duplicated";const Ny="[^/]+?",Ry={sensitive:!1,strict:!1,start:!0,end:!0},Iy=/[.+*?^${}()[\]/\\]/g;function Py(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function Dy(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const e=Py(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(Ly(r))return 1;if(Ly(o))return-1}return o.length-r.length}function Ly(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const jy={type:0,value:""},By=/[a-zA-Z0-9_]/;function Vy(e,t,n){const r=function(e,t){const n=Pv({},Ry,t),r=[];let o=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(o+="/");for(let t=0;t<l.length;t++){const r=l[t];let s=40+(n.sensitive?.25:0);if(0===r.type)t||(o+="/"),o+=r.value.replace(Iy,"\\$&"),s+=40;else if(1===r.type){const{value:e,repeatable:n,optional:c,regexp:u}=r;i.push({name:e,repeatable:n,optional:c});const d=u||Ny;if(d!==Ny){s+=10;try{new RegExp(`(${d})`)}catch(a){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+a.message)}}let p=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(p=c&&l.length<2?`(?:/${p})`:"/"+p),c&&(p+="?"),o+=p,s+=20,c&&(s+=-8),n&&(s+=-20),".*"===d&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");return{re:s,score:r,keys:i,parse:function(e){const t=e.match(s),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=i[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:i,repeatable:s,optional:a}=e,l=i in t?t[i]:"";if(jv(l)&&!s)throw new Error(`Provided param "${i}" is an array but it is not repeatable (* or + modifiers)`);const c=jv(l)?l.join("/"):l;if(!c){if(!a)throw new Error(`Missing required param "${i}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=c}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[jy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a,l=0,c="",u="";function d(){c&&(0===n?i.push({type:0,value:c}):1===n||2===n||3===n?(i.length>1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function p(){c+=a}for(;l<e.length;)if(a=e[l++],"\\"!==a||2===n)switch(n){case 0:"/"===a?(c&&d(),s()):":"===a?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:"("===a?n=2:By.test(a)?p():(d(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--);break;case 2:")"===a?"\\"==u[u.length-1]?u=u.slice(0,-1)+a:n=3:u+=a;break;case 3:d(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--,u="";break;default:t("Unknown state")}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),s(),o}(e.path),n),o=Pv(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function zy(e,t){const n=[],r=new Map;function o(e,n,r){const a=!r,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:$y(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=r&&r.record;const c=Wy(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Pv({},l,{components:r?r.record.components:l.components,path:e,aliasOf:r?r.record:l}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(d=Vy(t,n,c),r?r.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),a&&e.name&&!Hy(d)&&i(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)o(e[t],d,r&&r.children[t])}r=r||d,(d.record.components&&Object.keys(d.record.components).length||d.record.name||d.record.redirect)&&s(d)}return p?()=>{i(p)}:Lv}function i(e){if(Oy(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){let t=0;for(;t<n.length&&Dy(e,n[t])>=0&&(e.record.path!==n[t].record.path||!qy(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Hy(e)&&r.set(e.record.name,e)}return t=Wy({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,i,s,a={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw Ty(1,{location:e});s=o.record.name,a=Pv(Fy(t.params,o.keys.filter((e=>!e.optional)).concat(o.parent?o.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Fy(e.params,o.keys.map((e=>e.name)))),i=o.stringify(a)}else if(null!=e.path)i=e.path,o=n.find((e=>e.re.test(i))),o&&(a=o.parse(i),s=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw Ty(1,{location:e,currentLocation:t});s=o.record.name,a=Pv({},t.params,e.params),i=o.stringify(a)}const l=[];let c=o;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:i,params:a,matched:l,meta:Uy(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function Fy(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function $y(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}function Hy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Uy(e){return e.reduce(((e,t)=>Pv(e,t.meta)),{})}function Wy(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function qy(e,t){return t.children.some((t=>t===e||qy(e,t)))}function Ky(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(Hv," "),o=e.indexOf("="),i=ty(o<0?e:e.slice(0,o)),s=o<0?null:ty(e.slice(o+1));if(i in t){let e=t[i];jv(e)||(e=t[i]=[e]),e.push(s)}else t[i]=s}return t}function Jy(e){let t="";for(let n in e){const r=e[n];if(n=Qv(n).replace(Fv,"%3D"),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}(jv(r)?r.map((e=>e&&Qv(e))):[r&&Qv(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Gy(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=jv(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const Yy=Symbol(""),Xy=Symbol(""),Zy=Symbol(""),Qy=Symbol(""),eb=Symbol("");function tb(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function nb(e,t,n,r,o,i=(e=>e())){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((a,l)=>{const c=e=>{var i;!1===e?l(Ty(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l(Ty(2,{from:t,to:e})):(s&&r.enterCallbacks[o]===s&&"function"==typeof e&&s.push(e),a())},u=i((()=>e.call(r&&r.instances[o],t,n,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function rb(e,t,n,r,o=(e=>e())){const i=[];for(const a of e)for(const e in a.components){let l=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(s=l)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(l.__vccOpts||l)[t];s&&i.push(nb(s,n,r,a,e,o))}else{let s=l();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const s=(l=i).__esModule||"Module"===l[Symbol.toStringTag]?i.default:i;var l;a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&nb(c,n,r,a,e,o)()}))))}}var s;return i}function ob(e){const t=po(Zy),n=po(Qy),r=$i((()=>t.resolve(Nt(e.to)))),o=$i((()=>{const{matched:e}=r.value,{length:t}=e,o=e[t-1],i=n.matched;if(!o||!i.length)return-1;const s=i.findIndex(iy.bind(null,o));if(s>-1)return s;const a=sb(e[t-2]);return t>1&&sb(o)===a&&i[i.length-1].path!==a?i.findIndex(iy.bind(null,e[t-2])):s})),i=$i((()=>o.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n];if("string"==typeof r){if(r!==o)return!1}else if(!jv(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}(n.params,r.value.params))),s=$i((()=>o.value>-1&&o.value===n.matched.length-1&&sy(n.params,r.value.params)));return{route:r,href:$i((()=>r.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Nt(e.replace)?"replace":"push"](Nt(e.to)).catch(Lv):Promise.resolve()}}}const ib=ur({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ob,setup(e,{slots:t}){const n=ut(ob(e)),{options:r}=po(Zy),o=$i((()=>({[ab(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ab(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:Hi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}});function sb(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ab=(e,t,n)=>null!=e?e:null!=t?t:n,lb=ur({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=po(eb),o=$i((()=>e.route||r.value)),i=po(Xy,0),s=$i((()=>{let e=Nt(i);const{matched:t}=o.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=$i((()=>o.value.matched[s.value]));uo(Xy,$i((()=>s.value+1))),uo(Yy,a),uo(eb,o);const l=Mt();return Wn((()=>[l.value,a.value,e.name]),(([e,t,n],[r,o,i])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&iy(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=o.value,i=e.name,s=a.value,c=s&&s.components[i];if(!c)return cb(n.default,{Component:c,route:r});const u=s.props[i],d=u?!0===u?r.params:"function"==typeof u?u(r):u:null,p=Hi(c,Pv({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:l}));return cb(n.default,{Component:p,route:r})||p}}});function cb(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const ub=lb;function db(){return po(Qy)}const pb={},fb={},hb={base:{path:"",name:"主题设置",redirect:"/general"},"wbs-index":{path:"/wbs-index",name:"设置目录",componentName:"IndexForMobile"},general:{path:"/base",name:"基本设置",meta:{slug:"base"},componentName:"FrameworkTabs",redirect:"/general",children:[{path:"/general",name:"常规设置",meta:{slug:"general"},componentName:"General"},{path:"/footer",name:"页脚设置",meta:{slug:"footer"},componentName:"General"},{path:"/code",name:"自定义代码",meta:{slug:"code"},componentName:"General"}]},bn:{path:"/bn",name:"广告位管理",meta:{slug:"ads"},componentName:"AdList"},links:{path:"/links",name:"友链管理",meta:{slug:"links"},componentName:"LinkList"},more:{path:"/more",name:"资源推荐",meta:{slug:"more"},componentName:"More"},env:{path:"/env",name:"环境参数",meta:{slug:"env"},componentName:"Env"}},mb=(e="General")=>pr((()=>((e,t)=>{const n=e[t];return n?"function"==typeof n?n():Promise.resolve(n):new Promise(((e,n)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))}))})(Object.assign({"../Pages/Options/AdList.vue":()=>Rv((()=>import("./AdList-C8U8VrR3.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),"../Pages/Options/Env.vue":()=>Rv((()=>import("./Env-nEq56lE6.js")),__vite__mapDeps([9,1,2,8,7]),import.meta.url),"../Pages/Options/FrameworkTabs.vue":()=>Rv((()=>import("./FrameworkTabs-D58JqYkM.js")),__vite__mapDeps([]),import.meta.url),"../Pages/Options/General.vue":()=>Rv((()=>import("./General-CWG711at.js")),__vite__mapDeps([10,1,2,3,4,7]),import.meta.url),"../Pages/Options/IndexForMobile.vue":()=>Rv((()=>import("./IndexForMobile-ykQERAtb.js")),__vite__mapDeps([]),import.meta.url),"../Pages/Options/LinkList.vue":()=>Rv((()=>import("./LinkList-M_92gz0X.js")),__vite__mapDeps([11,3,4,5,6,8,7]),import.meta.url),"../Pages/Options/More.vue":()=>Rv((()=>import("./More-qDs5kUNR.js")),__vite__mapDeps([12,1,2]),import.meta.url)}),`../Pages/Options/${e}.vue`))),gb=Wm(hb),vb=Object.values(gb).map((e=>(e.componentName&&(e.component=mb(e.componentName)),e.children&&e.children.map((e=>(e.componentName&&(e.component=mb(e.componentName)),e))),e))),yb=function(e){const t=zy(e.routes,e),n=e.parseQuery||Ky,r=e.stringifyQuery||Jy,o=e.history,i=tb(),s=tb(),a=tb(),l=At(Ey);let c=Ey;Iv&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Dv.bind(null,(e=>""+e)),d=Dv.bind(null,ey),p=Dv.bind(null,ty);function f(e,i){if(i=Pv({},i||l.value),"string"==typeof e){const r=ry(n,e,i.path),s=t.resolve({path:r.path},i),a=o.createHref(r.fullPath);return Pv(r,s,{params:p(s.params),hash:ty(r.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=Pv({},e,{path:ry(n,e.path,i.path).path});else{const t=Pv({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Pv({},e,{params:d(t)}),i.params=d(i.params)}const a=t.resolve(s,i),c=e.hash||"";a.params=u(p(a.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(r,Pv({},e,{hash:(h=c,Zv(h).replace(Jv,"{").replace(Yv,"}").replace(qv,"^")),path:a.path}));var h;const m=o.createHref(f);return Pv({fullPath:f,hash:c,query:r===Jy?Gy(e.query):e.query||{}},a,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?ry(n,e,l.value.path):Pv({},e)}function m(e,t){if(c!==e)return Ty(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=h(r):{path:r},r.params={}),Pv({query:e.query,hash:e.hash,params:null!=r.path?{}:e.params},r)}}function y(e,t){const n=c=f(e),o=l.value,i=e.state,s=e.force,a=!0===e.replace,u=v(n);if(u)return y(Pv(h(u),{state:"object"==typeof u?Pv({},i,u.state):i,force:s,replace:a}),t||n);const d=n;let p;return d.redirectedFrom=t,!s&&function(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&iy(t.matched[r],n.matched[o])&&sy(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(r,o,n)&&(p=Ty(16,{to:d,from:o}),N(o,o,!0,!1)),(p?Promise.resolve(p):x(d,o)).catch((e=>_y(e)?_y(e,2)?e:_(e):T(e,d,o))).then((e=>{if(e){if(_y(e,2))return y(Pv({replace:a},h(e.to),{state:"object"==typeof e.to?Pv({},i,e.to.state):i,force:s}),t||d)}else e=k(d,o,!0,a,i);return S(d,o,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){const t=P.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function x(e,t){let n;const[r,o,a]=function(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const i=t.matched[s];i&&(e.matched.find((e=>iy(e,i)))?r.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>iy(e,a)))||o.push(a))}return[n,r,o]}(e,t);n=rb(r.reverse(),"beforeRouteLeave",e,t);for(const i of r)i.leaveGuards.forEach((r=>{n.push(nb(r,e,t))}));const l=b.bind(null,e,t);return n.push(l),L(n).then((()=>{n=[];for(const r of i.list())n.push(nb(r,e,t));return n.push(l),L(n)})).then((()=>{n=rb(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(nb(r,e,t))}));return n.push(l),L(n)})).then((()=>{n=[];for(const r of a)if(r.beforeEnter)if(jv(r.beforeEnter))for(const o of r.beforeEnter)n.push(nb(o,e,t));else n.push(nb(r.beforeEnter,e,t));return n.push(l),L(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=rb(a,"beforeRouteEnter",e,t,w),n.push(l),L(n)))).then((()=>{n=[];for(const r of s.list())n.push(nb(r,e,t));return n.push(l),L(n)})).catch((e=>_y(e,8)?e:Promise.reject(e)))}function S(e,t,n){a.list().forEach((r=>w((()=>r(e,t,n)))))}function k(e,t,n,r,i){const s=m(e,t);if(s)return s;const a=t===Ey,c=Iv?history.state:{};n&&(r||a?o.replace(e.fullPath,Pv({scroll:a&&c&&c.scroll},i)):o.push(e.fullPath,i)),l.value=e,N(e,t,n,a),_()}let O;function E(){O||(O=o.listen(((e,t,n)=>{if(!D.listening)return;const r=f(e),i=v(r);if(i)return void y(Pv(i,{replace:!0}),r).catch(Lv);c=r;const s=l.value;var a,u;Iv&&(a=yy(s.fullPath,n.delta),u=gy(),by.set(a,u)),x(r,s).catch((e=>_y(e,12)?e:_y(e,2)?(y(e.to,r).then((e=>{_y(e,20)&&!n.delta&&n.type===cy.pop&&o.go(-1,!1)})).catch(Lv),Promise.reject()):(n.delta&&o.go(-n.delta,!1),T(e,r,s)))).then((e=>{(e=e||k(r,s,!1))&&(n.delta&&!_y(e,8)?o.go(-n.delta,!1):n.type===cy.pop&&_y(e,20)&&o.go(-1,!1)),S(r,s,e)})).catch(Lv)})))}let C,M=tb(),A=tb();function T(e,t,n){_(e);const r=A.list();return r.length&&r.forEach((r=>r(e,t,n))),Promise.reject(e)}function _(e){return C||(C=!e,E(),M.list().forEach((([t,n])=>e?n(e):t())),M.reset()),e}function N(t,n,r,o){const{scrollBehavior:i}=e;if(!Iv||!i)return Promise.resolve();const s=!r&&function(e){const t=by.get(e);return by.delete(e),t}(yy(t.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return en().then((()=>i(t,n,s))).then((e=>e&&vy(e))).catch((e=>T(e,t,n)))}const R=e=>o.go(e);let I;const P=new Set,D={currentRoute:l,listening:!0,addRoute:function(e,n){let r,o;return Oy(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:g,replace:function(e){return g(Pv(h(e),{replace:!0}))},go:R,back:()=>R(-1),forward:()=>R(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:A.add,isReady:function(){return C&&l.value!==Ey?Promise.resolve():new Promise(((e,t)=>{M.add([e,t])}))},install(e){e.component("RouterLink",ib),e.component("RouterView",ub),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Nt(l)}),Iv&&!I&&l.value===Ey&&(I=!0,g(o.location).catch((e=>{})));const t={};for(const r in Ey)Object.defineProperty(t,r,{get:()=>l.value[r],enumerable:!0});e.provide(Zy,this),e.provide(Qy,dt(t)),e.provide(eb,l);const n=e.unmount;P.add(e),e.unmount=function(){P.delete(e),P.size<1&&(c=Ey,O&&O(),O=null,l.value=Ey,I=!1,C=!1),n()}}};function L(e){return e.reduce(((e,t)=>e.then((()=>w(t)))),Promise.resolve())}return D}({history:((bb=location.host?bb||location.pathname+location.search:"").includes("#")||(bb+="#"),ky(bb)),routes:vb});var bb;const wb=["innerHTML"];const xb=Fg({name:"AttrRemark",props:["attrs"],setup(e){const t=Mt(""),n=e.attrs.style?e.attrs.style:"inline";return Mr((()=>{"string"==typeof e.attrs?t.value=e.attrs:e.attrs.content&&(t.value=e.attrs.content)})),{content:t,style:n}}},[["render",function(e,t,n,r,o,i){return Qo(),oi("div",{class:q(r.style),innerHTML:r.content},null,10,wb)}]]),Sb=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const o=null==e?void 0:e(r);if(!1===n||!o)return null==t?void 0:t(r)};var kb;const Ob="undefined"!=typeof window,Eb=()=>{},Cb=Ob&&(null==(kb=null==window?void 0:window.navigator)?void 0:kb.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Mb(e){return"function"==typeof e?e():Nt(e)}function Ab(e){return!!oe()&&(ie(e),!0)}function Tb(e,t=200,n={}){return function(e,t){return function(...n){return new Promise(((r,o)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(o)}))}}(function(e,t={}){let n,r,o=Eb;const i=e=>{clearTimeout(e),o(),o=Eb};return s=>{const a=Mb(e),l=Mb(t.maxWait);return n&&i(n),a<=0||void 0!==l&&l<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise(((e,c)=>{o=t.rejectOnCancel?c:e,l&&!r&&(r=setTimeout((()=>{n&&i(n),r=null,e(s())}),l)),n=setTimeout((()=>{r&&i(r),r=null,e(s())}),a)}))}}(t,n),e)}function _b(e,t=200,n={}){const r=Mt(e.value),o=Tb((()=>{r.value=e.value}),t,n);return Wn(e,(()=>o())),r}function Nb(e,t,n={}){const{immediate:r=!0}=n,o=Mt(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function a(){o.value=!1,s()}function l(...n){s(),o.value=!0,i=setTimeout((()=>{o.value=!1,i=null,e(...n)}),Mb(t))}return r&&(o.value=!0,Ob&&l()),Ab(a),{isPending:pt(o),start:l,stop:a}}function Rb(e){var t;const n=Mb(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Ib=Ob?window:void 0;function Pb(...e){let t,n,r,o;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,o]=e,t=Ib):[t,n,r,o]=e,!t)return Eb;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach((e=>e())),i.length=0},a=Wn((()=>[Rb(t),Mb(o)]),(([e,t])=>{s(),e&&i.push(...n.flatMap((n=>r.map((r=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,n,r,t))))))}),{immediate:!0,flush:"post"}),l=()=>{a(),s()};return Ab(l),l}let Db=!1;function Lb(e,t=!1){const n=Mt(),r=()=>n.value=Boolean(e());return r(),function(e,t=!0){Mi()?Mr(e):t?e():en(e)}(r,t),n}const jb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Bb="__vueuse_ssr_handlers__";jb[Bb]=jb[Bb]||{};var Vb=Object.getOwnPropertySymbols,zb=Object.prototype.hasOwnProperty,Fb=Object.prototype.propertyIsEnumerable;function $b(e,t,n={}){const r=n,{window:o=Ib}=r,i=((e,t)=>{var n={};for(var r in e)zb.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Vb)for(var r of Vb(e))t.indexOf(r)<0&&Fb.call(e,r)&&(n[r]=e[r]);return n})(r,["window"]);let s;const a=Lb((()=>o&&"ResizeObserver"in o)),l=()=>{s&&(s.disconnect(),s=void 0)},c=Wn((()=>Rb(e)),(e=>{l(),a.value&&o&&e&&(s=new ResizeObserver(t),s.observe(e,i))}),{immediate:!0,flush:"post"}),u=()=>{l(),c()};return Ab(u),{isSupported:a,stop:u}}var Hb,Ub,Wb=Object.getOwnPropertySymbols,qb=Object.prototype.hasOwnProperty,Kb=Object.prototype.propertyIsEnumerable;function Jb(e,t,n={}){const r=n,{window:o=Ib}=r,i=((e,t)=>{var n={};for(var r in e)qb.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Wb)for(var r of Wb(e))t.indexOf(r)<0&&Kb.call(e,r)&&(n[r]=e[r]);return n})(r,["window"]);let s;const a=Lb((()=>o&&"MutationObserver"in o)),l=()=>{s&&(s.disconnect(),s=void 0)},c=Wn((()=>Rb(e)),(e=>{l(),a.value&&o&&e&&(s=new MutationObserver(t),s.observe(e,i))}),{immediate:!0}),u=()=>{l(),c()};return Ab(u),{isSupported:a,stop:u}}(Ub=Hb||(Hb={})).UP="UP",Ub.RIGHT="RIGHT",Ub.DOWN="DOWN",Ub.LEFT="LEFT",Ub.NONE="NONE";var Gb=Object.defineProperty,Yb=Object.getOwnPropertySymbols,Xb=Object.prototype.hasOwnProperty,Zb=Object.prototype.propertyIsEnumerable,Qb=(e,t,n)=>t in e?Gb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))Xb.call(t,n)&&Qb(e,n,t[n]);if(Yb)for(var n of Yb(t))Zb.call(t,n)&&Qb(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const ew=e=>{let t,n;return"touchend"===e.type?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},tw=e=>void 0===e,nw=e=>"boolean"==typeof e,rw=e=>"number"==typeof e,ow=e=>"undefined"!=typeof Element&&e instanceof Element,iw=e=>Mg(e),sw=e=>Object.keys(e),aw=(e,t,n)=>({get value(){return zh(e,t,n)},set value(n){!function(e,t,n){null==e||Ng(e,t,n)}(e,t,n)}});class lw extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function cw(e,t){throw new lw(`[${e}] ${t}`)}function uw(e,t){}const dw=(e="")=>e.split(" ").filter((e=>!!e.trim())),pw=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},fw=(e,t)=>{e&&t.trim()&&e.classList.add(...dw(t))},hw=(e,t)=>{e&&t.trim()&&e.classList.remove(...dw(t))},mw=(e,t)=>{var n;if(!Ob||!e||!t)return"";let r=A(t);"float"===r&&(r="cssFloat");try{const t=e.style[r];if(t)return t;const o=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return o?o[r]:""}catch(pF){return e.style[r]}};function gw(e,t="px"){return e?rw(e)||g(n=e)&&!Number.isNaN(Number(n))?`${e}${t}`:g(e)?e:void 0:"";var n}let vw;const yw=e=>{var t;if(!Ob)return 0;if(void 0!==vw)return vw;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const i=o.offsetWidth;return null==(t=n.parentNode)||t.removeChild(n),vw=r-i,vw};
/*! Element Plus Icons Vue v2.3.1 */
var bw=ur({name:"ArrowDown",__name:"arrow-down",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}),ww=ur({name:"ArrowRight",__name:"arrow-right",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}),xw=ur({name:"ArrowUp",__name:"arrow-up",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}),Sw=ur({name:"CircleCheck",__name:"circle-check",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),di("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}),kw=ur({name:"CircleCloseFilled",__name:"circle-close-filled",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}),Ow=ur({name:"CircleClose",__name:"circle-close",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),di("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}),Ew=ur({name:"Close",__name:"close",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}),Cw=ur({name:"Hide",__name:"hide",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),di("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}),Mw=ur({name:"InfoFilled",__name:"info-filled",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}),Aw=ur({name:"Loading",__name:"loading",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}),Tw=ur({name:"Minus",__name:"minus",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}),_w=ur({name:"Plus",__name:"plus",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}),Nw=ur({name:"SuccessFilled",__name:"success-filled",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}),Rw=ur({name:"View",__name:"view",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}),Iw=ur({name:"WarningFilled",__name:"warning-filled",setup:e=>(e,t)=>(Qo(),oi("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[di("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))});const Pw="__epPropKey",Dw=e=>e,Lw=(e,t)=>{if(!y(e)||y(n=e)&&n[Pw])return e;var n;const{values:r,required:o,default:i,type:s,validator:a}=e,l=r||a?n=>{let o=!1,s=[];if(r&&(s=Array.from(r),u(e,"default")&&s.push(i),o||(o=s.includes(n))),a&&(o||(o=a(n))),!o&&s.length>0){const e=[...new Set(s)].map((e=>JSON.stringify(e))).join(", ");qi(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(n)}.`)}return o}:void 0,c={type:s,required:!!o,validator:l,[Pw]:!0};return u(e,"default")&&(c.default=i),c},jw=e=>Eg(Object.entries(e).map((([e,t])=>[e,Lw(t,e)]))),Bw=[String,Object,Function],Vw={Close:Ew,SuccessFilled:Nw,InfoFilled:Mw,WarningFilled:Iw,CircleCloseFilled:kw},zw={success:Nw,warning:Iw,error:kw,info:Mw},Fw={validating:Aw,success:Sw,error:Ow},$w=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Hw=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Uw=e=>(e.install=r,e),Ww={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},qw="update:modelValue",Kw="change",Jw="input",Gw=["","default","small","large"],Yw=e=>["",...Gw].includes(e),Xw=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Zw=e=>e,Qw=["class","style"],ex=/^on[A-Z]/,tx=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},s)=>{Wn((()=>Nt(s)),(e=>{}),{immediate:!0})};var nx={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const rx=e=>(t,n)=>ox(t,n,Nt(e)),ox=(e,t,n)=>zh(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var r;return`${null!=(r=null==t?void 0:t[n])?r:`{${n}}`}`})),ix=Symbol("localeContextKey"),sx=e=>{const t=e||po(ix,Mt());return(e=>({lang:$i((()=>Nt(e).name)),locale:Ct(e)?e:Mt(e),t:rx(e)}))($i((()=>t.value||nx)))},ax="el",lx=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},cx=Symbol("namespaceContextKey"),ux=e=>{const t=e||(Mi()?po(cx,Mt(ax)):Mt(ax));return $i((()=>Nt(t)||ax))},dx=(e,t)=>{const n=ux(t);return{namespace:n,b:(t="")=>lx(n.value,e,t,"",""),e:t=>t?lx(n.value,e,"",t,""):"",m:t=>t?lx(n.value,e,"","",t):"",be:(t,r)=>t&&r?lx(n.value,e,t,r,""):"",em:(t,r)=>t&&r?lx(n.value,e,"",t,r):"",bm:(t,r)=>t&&r?lx(n.value,e,t,"",r):"",bem:(t,r,o)=>t&&r&&o?lx(n.value,e,t,r,o):"",is:(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`is-${e}`:""},cssVar:e=>{const t={};for(const r in e)e[r]&&(t[`--${n.value}-${r}`]=e[r]);return t},cssVarName:e=>`--${n.value}-${e}`,cssVarBlock:t=>{const r={};for(const o in t)t[o]&&(r[`--${n.value}-${e}-${o}`]=t[o]);return r},cssVarBlockName:t=>`--${n.value}-${e}-${t}`}},px=Lw({type:Boolean,default:null}),fx=Lw({type:Function}),hx=e=>{const t=`update:${e}`,n=`onUpdate:${e}`;return{useModelToggle:({indicator:r,toggleReason:o,shouldHideWhenRouteChanges:i,shouldProceed:s,onShow:a,onHide:l})=>{const c=Mi(),{emit:u}=c,d=c.props,p=$i((()=>m(d[n]))),f=$i((()=>null===d[e])),h=e=>{!0!==r.value&&(r.value=!0,o&&(o.value=e),m(a)&&a(e))},g=e=>{!1!==r.value&&(r.value=!1,o&&(o.value=e),m(l)&&l(e))},v=e=>{if(!0===d.disabled||m(s)&&!s())return;const n=p.value&&Ob;n&&u(t,!0),!f.value&&n||h(e)},y=e=>{if(!0===d.disabled||!Ob)return;const n=p.value&&Ob;n&&u(t,!1),!f.value&&n||g(e)},b=e=>{nw(e)&&(d.disabled&&e?p.value&&u(t,!1):r.value!==e&&(e?h():g()))};return Wn((()=>d[e]),b),i&&void 0!==c.appContext.config.globalProperties.$route&&Wn((()=>({...c.proxy.$route})),(()=>{i.value&&r.value&&y()})),Mr((()=>{b(d[e])})),{hide:y,show:v,toggle:()=>{r.value?y():v()},hasUpdateHandler:p}},useModelToggleProps:{[e]:px,[n]:fx},useModelToggleEmits:[t]}};hx("modelValue");const mx=e=>{const t=Mi();return $i((()=>{var n,r;return null==(r=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:r[e]}))};var gx="top",vx="bottom",yx="right",bx="left",wx="auto",xx=[gx,vx,yx,bx],Sx="start",kx="end",Ox="viewport",Ex="popper",Cx=xx.reduce((function(e,t){return e.concat([t+"-"+Sx,t+"-"+kx])}),[]),Mx=[].concat(xx,[wx]).reduce((function(e,t){return e.concat([t,t+"-"+Sx,t+"-"+kx])}),[]),Ax=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Tx(e){return e?(e.nodeName||"").toLowerCase():null}function _x(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nx(e){return e instanceof _x(e).Element||e instanceof Element}function Rx(e){return e instanceof _x(e).HTMLElement||e instanceof HTMLElement}function Ix(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _x(e).ShadowRoot||e instanceof ShadowRoot)}var Px={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!Rx(o)||!Tx(o)||(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});!Rx(r)||!Tx(r)||(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Dx(e){return e.split("-")[0]}var Lx=Math.max,jx=Math.min,Bx=Math.round;function Vx(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Rx(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=Bx(n.width)/s||1),i>0&&(o=Bx(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function zx(e){var t=Vx(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Fx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ix(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $x(e){return _x(e).getComputedStyle(e)}function Hx(e){return["table","td","th"].indexOf(Tx(e))>=0}function Ux(e){return((Nx(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wx(e){return"html"===Tx(e)?e:e.assignedSlot||e.parentNode||(Ix(e)?e.host:null)||Ux(e)}function qx(e){return Rx(e)&&"fixed"!==$x(e).position?e.offsetParent:null}function Kx(e){for(var t=_x(e),n=qx(e);n&&Hx(n)&&"static"===$x(n).position;)n=qx(n);return n&&("html"===Tx(n)||"body"===Tx(n)&&"static"===$x(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Rx(e)&&"fixed"===$x(e).position)return null;var n=Wx(e);for(Ix(n)&&(n=n.host);Rx(n)&&["html","body"].indexOf(Tx(n))<0;){var r=$x(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Jx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gx(e,t,n){return Lx(e,jx(t,n))}function Yx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Xx(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Zx={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Dx(n.placement),l=Jx(a),c=[bx,yx].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return Yx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Xx(e,xx))}(o.padding,n),d=zx(i),p="y"===l?gx:bx,f="y"===l?vx:yx,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],g=Kx(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[p],w=v-d[c]-u[f],x=v/2-d[c]/2+y,S=Gx(b,x,w),k=l;n.modifiersData[r]=((t={})[k]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!Fx(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qx(e){return e.split("-")[1]}var eS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tS(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,f=void 0===p?0:p,h=s.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=bx,w=gx,x=window;if(c){var S=Kx(n),k="clientHeight",O="clientWidth";if(S===_x(n)&&("static"!==$x(S=Ux(n)).position&&"absolute"===a&&(k="scrollHeight",O="scrollWidth")),o===gx||(o===bx||o===yx)&&i===kx)w=vx,m-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[k])-r.height,m*=l?1:-1;if(o===bx||(o===gx||o===vx)&&i===kx)b=yx,f-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[O])-r.width,f*=l?1:-1}var E,C=Object.assign({position:a},c&&eS),M=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Bx(t*r)/r||0,y:Bx(n*r)/r||0}}({x:f,y:m}):{x:f,y:m};return f=M.x,m=M.y,l?Object.assign({},C,((E={})[w]=y?"0":"",E[b]=v?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},C,((t={})[w]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var nS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,c={placement:Dx(t.placement),variation:Qx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,tS(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,tS(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},rS={passive:!0};var oS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,l=_x(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,rS)})),a&&l.addEventListener("resize",n.update,rS),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,rS)})),a&&l.removeEventListener("resize",n.update,rS)}},data:{}},iS={left:"right",right:"left",bottom:"top",top:"bottom"};function sS(e){return e.replace(/left|right|bottom|top/g,(function(e){return iS[e]}))}var aS={start:"end",end:"start"};function lS(e){return e.replace(/start|end/g,(function(e){return aS[e]}))}function cS(e){var t=_x(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function uS(e){return Vx(Ux(e)).left+cS(e).scrollLeft}function dS(e){var t=$x(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function pS(e){return["html","body","#document"].indexOf(Tx(e))>=0?e.ownerDocument.body:Rx(e)&&dS(e)?e:pS(Wx(e))}function fS(e,t){var n;void 0===t&&(t=[]);var r=pS(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=_x(r),s=o?[i].concat(i.visualViewport||[],dS(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(fS(Wx(s)))}function hS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mS(e,t){return t===Ox?hS(function(e){var t=_x(e),n=Ux(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,a=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,a=r.offsetTop)),{width:o,height:i,x:s+uS(e),y:a}}(e)):Nx(t)?function(e){var t=Vx(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):hS(function(e){var t,n=Ux(e),r=cS(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Lx(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Lx(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+uS(e),l=-r.scrollTop;return"rtl"===$x(o||n).direction&&(a+=Lx(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(Ux(e)))}function gS(e,t,n){var r="clippingParents"===t?function(e){var t=fS(Wx(e)),n=["absolute","fixed"].indexOf($x(e).position)>=0&&Rx(e)?Kx(e):e;return Nx(n)?t.filter((function(e){return Nx(e)&&Fx(e,n)&&"body"!==Tx(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],s=o.reduce((function(t,n){var r=mS(e,n);return t.top=Lx(r.top,t.top),t.right=jx(r.right,t.right),t.bottom=jx(r.bottom,t.bottom),t.left=Lx(r.left,t.left),t}),mS(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function vS(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Dx(o):null,s=o?Qx(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case gx:t={x:a,y:n.y-r.height};break;case vx:t={x:a,y:n.y+n.height};break;case yx:t={x:n.x+n.width,y:l};break;case bx:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Jx(i):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Sx:t[c]=t[c]-(n[u]/2-r[u]/2);break;case kx:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function yS(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,s=void 0===i?"clippingParents":i,a=n.rootBoundary,l=void 0===a?Ox:a,c=n.elementContext,u=void 0===c?Ex:c,d=n.altBoundary,p=void 0!==d&&d,f=n.padding,h=void 0===f?0:f,m=Yx("number"!=typeof h?h:Xx(h,xx)),g=u===Ex?"reference":Ex,v=e.rects.popper,y=e.elements[p?g:u],b=gS(Nx(y)?y:y.contextElement||Ux(e.elements.popper),s,l),w=Vx(e.elements.reference),x=vS({reference:w,element:v,strategy:"absolute",placement:o}),S=hS(Object.assign({},v,x)),k=u===Ex?S:w,O={top:b.top-k.top+m.top,bottom:k.bottom-b.bottom+m.bottom,left:b.left-k.left+m.left,right:k.right-b.right+m.right},E=e.modifiersData.offset;if(u===Ex&&E){var C=E[o];Object.keys(O).forEach((function(e){var t=[yx,vx].indexOf(e)>=0?1:-1,n=[gx,vx].indexOf(e)>=0?"y":"x";O[e]+=C[n]*t}))}return O}var bS={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=Dx(g),y=l||(v===g||!h?[sS(g)]:function(e){if(Dx(e)===wx)return[];var t=sS(e);return[lS(e),t,lS(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Dx(n)===wx?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Mx:l,u=Qx(r),d=u?a?Cx:Cx.filter((function(e){return Qx(e)===u})):xx,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=yS(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[Dx(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,k=!0,O=b[0],E=0;E<b.length;E++){var C=b[E],M=Dx(C),A=Qx(C)===Sx,T=[gx,vx].indexOf(M)>=0,_=T?"width":"height",N=yS(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=T?A?yx:bx:A?vx:gx;w[_]>x[_]&&(R=sS(R));var I=sS(R),P=[];if(i&&P.push(N[M]<=0),a&&P.push(N[R]<=0,N[I]<=0),P.every((function(e){return e}))){O=C,k=!1;break}S.set(C,P)}if(k)for(var D=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},L=h?3:1;L>0;L--){if("break"===D(L))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function wS(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xS(e){return[gx,yx,vx,bx].some((function(t){return e[t]>=0}))}var SS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=yS(t,{elementContext:"reference"}),a=yS(t,{altBoundary:!0}),l=wS(s,r),c=wS(a,o,i),u=xS(l),d=xS(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var kS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=Mx.reduce((function(e,n){return e[n]=function(e,t,n){var r=Dx(e),o=[bx,gx].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[bx,yx].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}};var OS={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=vS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var ES={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=yS(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Dx(t.placement),y=Qx(t.placement),b=!y,w=Jx(v),x=function(e){return"x"===e?"y":"x"}(w),S=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(S){if(i){var T,_="y"===w?gx:bx,N="y"===w?vx:yx,R="y"===w?"height":"width",I=S[w],P=I+g[_],D=I-g[N],L=f?-O[R]/2:0,j=y===Sx?k[R]:O[R],B=y===Sx?-O[R]:-k[R],V=t.elements.arrow,z=f&&V?zx(V):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=F[_],H=F[N],U=Gx(0,k[R],z[R]),W=b?k[R]/2-L-U-$-C.mainAxis:j-U-$-C.mainAxis,q=b?-k[R]/2+L+U+H+C.mainAxis:B+U+H+C.mainAxis,K=t.elements.arrow&&Kx(t.elements.arrow),J=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,G=null!=(T=null==M?void 0:M[w])?T:0,Y=I+q-G,X=Gx(f?jx(P,I+W-G-J):P,I,f?Lx(D,Y):D);S[w]=X,A[w]=X-I}if(a){var Z,Q="x"===w?gx:bx,ee="x"===w?vx:yx,te=S[x],ne="y"===x?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[gx,bx].indexOf(v),se=null!=(Z=null==M?void 0:M[x])?Z:0,ae=ie?re:te-k[ne]-O[ne]-se+C.altAxis,le=ie?te+k[ne]+O[ne]-se-C.altAxis:oe,ce=f&&ie?function(e,t,n){var r=Gx(e,t,n);return r>n?n:r}(ae,te,le):Gx(f?ae:re,te,f?le:oe);S[x]=ce,A[x]=ce-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};function CS(e,t,n){void 0===n&&(n=!1);var r=Rx(t),o=Rx(t)&&function(e){var t=e.getBoundingClientRect(),n=Bx(t.width)/e.offsetWidth||1,r=Bx(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Ux(t),s=Vx(e,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Tx(t)||dS(i))&&(a=function(e){return e!==_x(e)&&Rx(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):cS(e)}(t)),Rx(t)?((l=Vx(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=uS(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function MS(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function AS(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var TS={placement:"bottom",modifiers:[],strategy:"absolute"};function _S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function NS(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?TS:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},TS,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:Nx(e)?fS(e):e.contextElement?fS(e.contextElement):[],popper:fS(t)};var u=function(e){var t=MS(e);return Ax.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=u.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var a=i({state:o,name:t,instance:l,options:r}),c=function(){};s.push(a||c)}})),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(_S(t,n)){o.rects={reference:CS(t,Kx(n),"fixed"===o.options.strategy),popper:zx(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],s=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof s&&(o=s({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:AS((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),a=!0}};if(!_S(e,t))return l;function c(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}NS(),NS({defaultModifiers:[oS,OS,nS,Px]});var RS=NS({defaultModifiers:[oS,OS,nS,Px,kS,bS,ES,Zx,SS]});const IS=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements),n=Eg(t.map((t=>[t,e.styles[t]||{}]))),r=Eg(t.map((t=>[t,e.attributes[t]])));return{styles:n,attributes:r}}(e);Object.assign(s.value,t)},requires:["computeStyles"]},o=$i((()=>{const{onFirstUpdate:e,placement:t,strategy:o,modifiers:i}=Nt(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:o||"absolute",modifiers:[...i||[],r,{name:"applyStyles",enabled:!1}]}})),i=At(),s=Mt({styles:{popper:{position:Nt(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return Wn(o,(e=>{const t=Nt(i);t&&t.setOptions(e)}),{deep:!0}),Wn([e,t],(([e,t])=>{a(),e&&t&&(i.value=RS(e,t,Nt(o)))})),_r((()=>{a()})),{state:$i((()=>{var e;return{...(null==(e=Nt(i))?void 0:e.state)||{}}})),styles:$i((()=>Nt(s).styles)),attributes:$i((()=>Nt(s).attributes)),update:()=>{var e;return null==(e=Nt(i))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=Nt(i))?void 0:e.forceUpdate()},instanceRef:$i((()=>Nt(i)))}};function PS(){let e;const t=()=>window.clearTimeout(e);return Ab((()=>t())),{registerTimeout:(n,r)=>{t(),e=window.setTimeout(n,r)},cancelTimeout:t}}const DS={prefix:Math.floor(1e4*Math.random()),current:0},LS=Symbol("elIdInjection"),jS=()=>Mi()?po(LS,DS):DS,BS=e=>{const t=jS(),n=ux();return $i((()=>Nt(e)||`${n.value}-id-${t.prefix}-${t.current++}`))};let VS=[];const zS=e=>{const t=e;t.key===Ww.esc&&VS.forEach((e=>e(t)))};let FS;const $S=()=>{const e=ux(),t=jS(),n=$i((()=>`${e.value}-popper-container-${t.prefix}`)),r=$i((()=>`#${n.value}`));return{id:n,selector:r}},HS=()=>{const{id:e,selector:t}=$S();return Cr((()=>{Ob&&(FS||document.body.querySelector(t.value)||(FS=(e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t})(e.value)))})),{id:e,selector:t}},US=jw({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),WS=Symbol("elForwardRef"),qS=Mt(0),KS=Symbol("zIndexContextKey"),JS=e=>{const t=e||(Mi()?po(KS,void 0):void 0),n=$i((()=>{const e=Nt(t);return rw(e)?e:2e3})),r=$i((()=>n.value+qS.value));return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(qS.value++,r.value)}};const GS=Lw({type:String,values:Gw,required:!1}),YS=Symbol("size");function XS(e,{afterFocus:t,beforeBlur:n,afterBlur:r}={}){const o=Mi(),{emit:i}=o,s=At(),a=Mt(!1);return Wn(s,(e=>{e&&e.setAttribute("tabindex","-1")})),Pb(s,"click",(()=>{var t;null==(t=e.value)||t.focus()})),{wrapperRef:s,isFocused:a,handleFocus:e=>{a.value||(a.value=!0,i("focus",e),null==t||t())},handleBlur:e=>{var t;!!m(n)&&n(e)||e.relatedTarget&&(null==(t=s.value)?void 0:t.contains(e.relatedTarget))||(a.value=!1,i("blur",e),null==r||r())}}}const ZS=Symbol(),QS=Mt();function ek(e,t){const n=Mi()?po(ZS,QS):QS;return e?$i((()=>{var r,o;return null!=(o=null==(r=n.value)?void 0:r[e])?o:t})):n}function tk(e,t){const n=ek(),r=dx(e,$i((()=>{var e;return(null==(e=n.value)?void 0:e.namespace)||ax}))),o=sx($i((()=>{var e;return null==(e=n.value)?void 0:e.locale}))),i=JS($i((()=>{var e;return(null==(e=n.value)?void 0:e.zIndex)||2e3}))),s=$i((()=>{var e;return Nt(t)||(null==(e=n.value)?void 0:e.size)||""}));return nk($i((()=>Nt(n)||{}))),{ns:r,locale:o,zIndex:i,size:s}}const nk=(e,t,n=!1)=>{var r;const o=!!Mi(),i=o?ek():void 0,s=null!=(r=null==t?void 0:t.provide)?r:o?uo:void 0;if(!s)return;const a=$i((()=>{const t=Nt(e);return(null==i?void 0:i.value)?rk(i.value,t):t}));return s(ZS,a),s(ix,$i((()=>a.value.locale))),s(cx,$i((()=>a.value.namespace))),s(KS,$i((()=>a.value.zIndex))),s(YS,{size:$i((()=>a.value.size||""))}),!n&&QS.value||(QS.value=a.value),a},rk=(e,t)=>{var n;const r=[...new Set([...sw(e),...sw(t)])],o={};for(const i of r)o[i]=null!=(n=t[i])?n:e[i];return o};var ok=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const ik=jw({size:{type:[Number,String]},color:{type:String}});const sk=$w(ok(ur({...ur({name:"ElIcon",inheritAttrs:!1}),props:ik,setup(e){const t=e,n=dx("icon"),r=$i((()=>{const{size:e,color:n}=t;return e||n?{fontSize:tw(e)?void 0:gw(e),"--color":n}:{}}));return(e,t)=>(Qo(),oi("i",xi({class:Nt(n).b(),style:Nt(r)},e.$attrs),[jr(e.$slots,"default")],16))}}),[["__file","icon.vue"]])),ak=Symbol("formContextKey"),lk=Symbol("formItemContextKey"),ck=(e,t={})=>{const n=Mt(void 0),r=t.prop?n:mx("size"),o=t.global?n:(()=>{const e=po(YS,{});return $i((()=>Nt(e.size)||""))})(),i=t.form?{size:void 0}:po(ak,void 0),s=t.formItem?{size:void 0}:po(lk,void 0);return $i((()=>r.value||Nt(e)||(null==s?void 0:s.size)||(null==i?void 0:i.size)||o.value||""))},uk=e=>{const t=mx("disabled"),n=po(ak,void 0);return $i((()=>t.value||Nt(e)||(null==n?void 0:n.disabled)||!1))},dk=()=>({form:po(ak,void 0),formItem:po(lk,void 0)}),pk=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=Mt(!1)),r||(r=Mt(!1));const o=Mt();let i;const s=$i((()=>{var n;return!!(!e.label&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return Mr((()=>{i=Wn([Vt(e,"id"),n],(([e,n])=>{const i=null!=e?e:n?void 0:BS().value;i!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==r?void 0:r.value)||n||!i||t.addInputId(i)),o.value=i)}),{immediate:!0})})),Nr((()=>{i&&i(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:s,inputId:o}};let fk;const hk=`\n height:0 !important;\n visibility:hidden !important;\n ${Ob&&/firefox/i.test(window.navigator.userAgent)?"":"overflow:hidden !important;"}\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`,mk=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function gk(e,t=1,n){var r;fk||(fk=document.createElement("textarea"),document.body.appendChild(fk));const{paddingSize:o,borderSize:i,boxSizing:s,contextStyle:a}=function(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:mk.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}(e);fk.setAttribute("style",`${a};${hk}`),fk.value=e.value||e.placeholder||"";let l=fk.scrollHeight;const c={};"border-box"===s?l+=i:"content-box"===s&&(l-=o),fk.value="";const u=fk.scrollHeight-o;if(rw(t)){let e=u*t;"border-box"===s&&(e=e+o+i),l=Math.max(e,l),c.minHeight=`${e}px`}if(rw(n)){let e=u*n;"border-box"===s&&(e=e+o+i),l=Math.min(e,l)}return c.height=`${l}px`,null==(r=fk.parentNode)||r.removeChild(fk),fk=void 0,c}const vk=jw({id:{type:String,default:void 0},size:GS,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Bw},prefixIcon:{type:Bw},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})},autofocus:{type:Boolean,default:!1}}),yk={[qw]:e=>g(e),input:e=>g(e),change:e=>g(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},bk=["role"],wk=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],xk=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"];const Sk=$w(ok(ur({...ur({name:"ElInput",inheritAttrs:!1}),props:vk,emits:yk,setup(e,{expose:t,emit:n}){const o=e,i=Wr(),s=Ur(),a=$i((()=>{const e={};return"combobox"===o.containerRole&&(e["aria-haspopup"]=i["aria-haspopup"],e["aria-owns"]=i["aria-owns"],e["aria-expanded"]=i["aria-expanded"]),e})),l=$i((()=>["textarea"===o.type?v.b():g.b(),g.m(h.value),g.is("disabled",m.value),g.is("exceed",H.value),{[g.b("group")]:s.prepend||s.append,[g.bm("group","append")]:s.append,[g.bm("group","prepend")]:s.prepend,[g.m("prefix")]:s.prefix||o.prefixIcon,[g.m("suffix")]:s.suffix||o.suffixIcon||o.clearable||o.showPassword,[g.bm("suffix","password-clear")]:B.value&&V.value,[g.b("hidden")]:"hidden"===o.type},i.class])),c=$i((()=>[g.e("wrapper"),g.is("focus",A.value)])),u=((e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=$i((()=>((null==n?void 0:n.value)||[]).concat(Qw))),o=Mi();return $i(o?()=>{var e;return Eg(Object.entries(null==(e=o.proxy)?void 0:e.$attrs).filter((([e])=>!(r.value.includes(e)||t&&ex.test(e)))))}:()=>({}))})({excludeKeys:$i((()=>Object.keys(a.value)))}),{form:d,formItem:p}=dk(),{inputId:f}=pk(o,{formItemContext:p}),h=ck(),m=uk(),g=dx("input"),v=dx("textarea"),b=At(),w=At(),x=Mt(!1),S=Mt(!1),k=Mt(!1),O=Mt(),E=At(o.inputStyle),C=$i((()=>b.value||w.value)),{wrapperRef:M,isFocused:A,handleFocus:T,handleBlur:_}=XS(C,{afterBlur(){var e;o.validateEvent&&(null==(e=null==p?void 0:p.validate)||e.call(p,"blur").catch((e=>{})))}}),N=$i((()=>{var e;return null!=(e=null==d?void 0:d.statusIcon)&&e})),R=$i((()=>(null==p?void 0:p.validateState)||"")),I=$i((()=>R.value&&Fw[R.value])),P=$i((()=>k.value?Rw:Cw)),D=$i((()=>[i.style])),L=$i((()=>[o.inputStyle,E.value,{resize:o.resize}])),j=$i((()=>Mg(o.modelValue)?"":String(o.modelValue))),B=$i((()=>o.clearable&&!m.value&&!o.readonly&&!!j.value&&(A.value||x.value))),V=$i((()=>o.showPassword&&!m.value&&!o.readonly&&!!j.value&&(!!j.value||A.value))),z=$i((()=>o.showWordLimit&&!!o.maxlength&&("text"===o.type||"textarea"===o.type)&&!m.value&&!o.readonly&&!o.showPassword)),$=$i((()=>j.value.length)),H=$i((()=>!!z.value&&$.value>Number(o.maxlength))),U=$i((()=>!!s.suffix||!!o.suffixIcon||B.value||o.showPassword||z.value||!!R.value&&N.value)),[W,K]=function(e){const t=Mt();return[function(){if(null==e.value)return;const{selectionStart:n,selectionEnd:r,value:o}=e.value;if(null==n||null==r)return;const i=o.slice(0,Math.max(0,n)),s=o.slice(Math.max(0,r));t.value={selectionStart:n,selectionEnd:r,value:o,beforeTxt:i,afterTxt:s}},function(){if(null==e.value||null==t.value)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:i}=t.value;if(null==r||null==o||null==i)return;let s=n.length;if(n.endsWith(o))s=n.length-o.length;else if(n.startsWith(r))s=r.length;else{const e=r[i-1],t=n.indexOf(e,i-1);-1!==t&&(s=t+1)}e.value.setSelectionRange(s,s)}]}(b);$b(w,(e=>{if(G(),!z.value||"both"!==o.resize)return;const t=e[0],{width:n}=t.contentRect;O.value={right:`calc(100% - ${n+15+6}px)`}}));const J=()=>{const{type:e,autosize:t}=o;if(Ob&&"textarea"===e&&w.value)if(t){const e=y(t)?t.minRows:void 0,n=y(t)?t.maxRows:void 0,r=gk(w.value,e,n);E.value={overflowY:"hidden",...r},en((()=>{w.value.offsetHeight,E.value=r}))}else E.value={minHeight:gk(w.value).minHeight}},G=(e=>{let t=!1;return()=>{var n;if(t||!o.autosize)return;null===(null==(n=w.value)?void 0:n.offsetParent)||(e(),t=!0)}})(J),Y=()=>{const e=C.value,t=o.formatter?o.formatter(j.value):j.value;e&&e.value!==t&&(e.value=t)},Z=async e=>{W();let{value:t}=e.target;o.formatter&&(t=o.parser?o.parser(t):t),S.value||(t!==j.value?(n(qw,t),n("input",t),await en(),Y(),K()):Y())},Q=e=>{n("change",e.target.value)},ee=e=>{n("compositionstart",e),S.value=!0},te=e=>{var t;n("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,o=r[r.length-1]||"";S.value=!Xw(o)},ne=e=>{n("compositionend",e),S.value&&(S.value=!1,Z(e))},re=()=>{k.value=!k.value,oe()},oe=async()=>{var e;await en(),null==(e=C.value)||e.focus()},ie=e=>{x.value=!1,n("mouseleave",e)},se=e=>{x.value=!0,n("mouseenter",e)},ae=e=>{n("keydown",e)},le=()=>{n(qw,""),n("change",""),n("clear"),n("input","")};return Wn((()=>o.modelValue),(()=>{var e;en((()=>J())),o.validateEvent&&(null==(e=null==p?void 0:p.validate)||e.call(p,"change").catch((e=>{})))})),Wn(j,(()=>Y())),Wn((()=>o.type),(async()=>{await en(),Y(),J()})),Mr((()=>{!o.formatter&&o.parser,Y(),en(J)})),t({input:b,textarea:w,ref:C,textareaStyle:L,autosize:Vt(o,"autosize"),focus:oe,blur:()=>{var e;return null==(e=C.value)?void 0:e.blur()},select:()=>{var e;null==(e=C.value)||e.select()},clear:le,resizeTextarea:J}),(e,t)=>(Qo(),oi("div",xi(Nt(a),{class:Nt(l),style:Nt(D),role:e.containerRole,onMouseenter:se,onMouseleave:ie}),[vi(" input "),"textarea"!==e.type?(Qo(),oi(Ko,{key:0},[vi(" prepend slot "),e.$slots.prepend?(Qo(),oi("div",{key:0,class:q(Nt(g).be("group","prepend"))},[jr(e.$slots,"prepend")],2)):vi("v-if",!0),di("div",{ref_key:"wrapperRef",ref:M,class:q(Nt(c))},[vi(" prefix slot "),e.$slots.prefix||e.prefixIcon?(Qo(),oi("span",{key:0,class:q(Nt(g).e("prefix"))},[di("span",{class:q(Nt(g).e("prefix-inner"))},[jr(e.$slots,"prefix"),e.prefixIcon?(Qo(),ii(Nt(sk),{key:0,class:q(Nt(g).e("icon"))},{default:yn((()=>[(Qo(),ii(Mn(e.prefixIcon)))])),_:1},8,["class"])):vi("v-if",!0)],2)],2)):vi("v-if",!0),di("input",xi({id:Nt(f),ref_key:"input",ref:b,class:Nt(g).e("inner")},Nt(u),{minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?k.value?"text":"password":e.type,disabled:Nt(m),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,onCompositionstart:ee,onCompositionupdate:te,onCompositionend:ne,onInput:Z,onFocus:t[0]||(t[0]=(...e)=>Nt(T)&&Nt(T)(...e)),onBlur:t[1]||(t[1]=(...e)=>Nt(_)&&Nt(_)(...e)),onChange:Q,onKeydown:ae}),null,16,wk),vi(" suffix slot "),Nt(U)?(Qo(),oi("span",{key:1,class:q(Nt(g).e("suffix"))},[di("span",{class:q(Nt(g).e("suffix-inner"))},[Nt(B)&&Nt(V)&&Nt(z)?vi("v-if",!0):(Qo(),oi(Ko,{key:0},[jr(e.$slots,"suffix"),e.suffixIcon?(Qo(),ii(Nt(sk),{key:0,class:q(Nt(g).e("icon"))},{default:yn((()=>[(Qo(),ii(Mn(e.suffixIcon)))])),_:1},8,["class"])):vi("v-if",!0)],64)),Nt(B)?(Qo(),ii(Nt(sk),{key:1,class:q([Nt(g).e("icon"),Nt(g).e("clear")]),onMousedown:ha(Nt(r),["prevent"]),onClick:le},{default:yn((()=>[pi(Nt(Ow))])),_:1},8,["class","onMousedown"])):vi("v-if",!0),Nt(V)?(Qo(),ii(Nt(sk),{key:2,class:q([Nt(g).e("icon"),Nt(g).e("password")]),onClick:re},{default:yn((()=>[(Qo(),ii(Mn(Nt(P))))])),_:1},8,["class"])):vi("v-if",!0),Nt(z)?(Qo(),oi("span",{key:3,class:q(Nt(g).e("count"))},[di("span",{class:q(Nt(g).e("count-inner"))},X(Nt($))+" / "+X(e.maxlength),3)],2)):vi("v-if",!0),Nt(R)&&Nt(I)&&Nt(N)?(Qo(),ii(Nt(sk),{key:4,class:q([Nt(g).e("icon"),Nt(g).e("validateIcon"),Nt(g).is("loading","validating"===Nt(R))])},{default:yn((()=>[(Qo(),ii(Mn(Nt(I))))])),_:1},8,["class"])):vi("v-if",!0)],2)],2)):vi("v-if",!0)],2),vi(" append slot "),e.$slots.append?(Qo(),oi("div",{key:1,class:q(Nt(g).be("group","append"))},[jr(e.$slots,"append")],2)):vi("v-if",!0)],64)):(Qo(),oi(Ko,{key:1},[vi(" textarea "),di("textarea",xi({id:Nt(f),ref_key:"textarea",ref:w,class:Nt(v).e("inner")},Nt(u),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:Nt(m),readonly:e.readonly,autocomplete:e.autocomplete,style:Nt(L),"aria-label":e.label,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,onCompositionstart:ee,onCompositionupdate:te,onCompositionend:ne,onInput:Z,onFocus:t[2]||(t[2]=(...e)=>Nt(T)&&Nt(T)(...e)),onBlur:t[3]||(t[3]=(...e)=>Nt(_)&&Nt(_)(...e)),onChange:Q,onKeydown:ae}),null,16,xk),Nt(z)?(Qo(),oi("span",{key:0,style:F(O.value),class:q(Nt(g).e("count"))},X(Nt($))+" / "+X(e.maxlength),7)):vi("v-if",!0)],64))],16,bk))}}),[["__file","input.vue"]])),kk={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Ok=Symbol("scrollbarContextKey"),Ek=jw({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var Ck=ok(ur({__name:"thumb",props:Ek,setup(e){const t=e,n=po(Ok),r=dx("scrollbar");n||cw("Thumb","can not inject scrollbar context");const o=Mt(),i=Mt(),s=Mt({}),a=Mt(!1);let l=!1,c=!1,u=Ob?document.onselectstart:null;const d=$i((()=>kk[t.vertical?"vertical":"horizontal"])),p=$i((()=>(({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}))({size:t.size,move:t.move,bar:d.value}))),f=$i((()=>o.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/i.value[d.value.offset])),h=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),g(e);const n=e.currentTarget;n&&(s.value[d.value.axis]=n[d.value.offset]-(e[d.value.client]-n.getBoundingClientRect()[d.value.direction]))},m=e=>{if(!i.value||!o.value||!n.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[d.value.direction]-e[d.value.client])-i.value[d.value.offset]/2)*f.value/o.value[d.value.offset];n.wrapElement[d.value.scroll]=t*n.wrapElement[d.value.scrollSize]/100},g=e=>{e.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),u=document.onselectstart,document.onselectstart=()=>!1},v=e=>{if(!o.value||!i.value)return;if(!1===l)return;const t=s.value[d.value.axis];if(!t)return;const r=100*(-1*(o.value.getBoundingClientRect()[d.value.direction]-e[d.value.client])-(i.value[d.value.offset]-t))*f.value/o.value[d.value.offset];n.wrapElement[d.value.scroll]=r*n.wrapElement[d.value.scrollSize]/100},y=()=>{l=!1,s.value[d.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y),b(),c&&(a.value=!1)};_r((()=>{b(),document.removeEventListener("mouseup",y)}));const b=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return Pb(Vt(n,"scrollbarElement"),"mousemove",(()=>{c=!1,a.value=!!t.size})),Pb(Vt(n,"scrollbarElement"),"mouseleave",(()=>{c=!0,a.value=l})),(e,t)=>(Qo(),ii(rs,{name:Nt(r).b("fade"),persisted:""},{default:yn((()=>[Yn(di("div",{ref_key:"instance",ref:o,class:q([Nt(r).e("bar"),Nt(r).is(Nt(d).key)]),onMousedown:m},[di("div",{ref_key:"thumb",ref:i,class:q(Nt(r).e("thumb")),style:F(Nt(p)),onMousedown:h},null,38)],34),[[xs,e.always||a.value]])])),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);var Mk=ok(ur({__name:"bar",props:jw({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),setup(e,{expose:t}){const n=e,r=po(Ok),o=Mt(0),i=Mt(0),s=Mt(""),a=Mt(""),l=Mt(1),c=Mt(1);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,n=e.offsetWidth-4;i.value=100*e.scrollTop/t*l.value,o.value=100*e.scrollLeft/n*c.value}},update:()=>{const e=null==r?void 0:r.wrapElement;if(!e)return;const t=e.offsetHeight-4,o=e.offsetWidth-4,i=t**2/e.scrollHeight,u=o**2/e.scrollWidth,d=Math.max(i,n.minSize),p=Math.max(u,n.minSize);l.value=i/(t-i)/(d/(t-d)),c.value=u/(o-u)/(p/(o-p)),a.value=d+4<t?`${d}px`:"",s.value=p+4<o?`${p}px`:""}}),(e,t)=>(Qo(),oi(Ko,null,[pi(Ck,{move:o.value,ratio:c.value,size:s.value,always:e.always},null,8,["move","ratio","size","always"]),pi(Ck,{move:i.value,ratio:l.value,size:a.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const Ak=jw({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:[String,Object,Array],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),Tk={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(rw)};const _k=$w(ok(ur({...ur({name:"ElScrollbar"}),props:Ak,emits:Tk,setup(e,{expose:t,emit:n}){const r=e,o=dx("scrollbar");let i,s;const a=Mt(),l=Mt(),c=Mt(),u=Mt(),d=$i((()=>{const e={};return r.height&&(e.height=gw(r.height)),r.maxHeight&&(e.maxHeight=gw(r.maxHeight)),[r.wrapStyle,e]})),p=$i((()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}])),f=$i((()=>[o.e("view"),r.viewClass])),h=()=>{var e;l.value&&(null==(e=u.value)||e.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};const m=()=>{var e;null==(e=u.value)||e.update()};return Wn((()=>r.noresize),(e=>{e?(null==i||i(),null==s||s()):(({stop:i}=$b(c,m)),s=Pb("resize",m))}),{immediate:!0}),Wn((()=>[r.maxHeight,r.height]),(()=>{r.native||en((()=>{var e;m(),l.value&&(null==(e=u.value)||e.handleScroll(l.value))}))})),uo(Ok,ut({scrollbarElement:a,wrapElement:l})),Mr((()=>{r.native||en((()=>{m()}))})),Tr((()=>m())),t({wrapRef:l,update:m,scrollTo:function(e,t){y(e)?l.value.scrollTo(e):rw(e)&&rw(t)&&l.value.scrollTo(e,t)},setScrollTop:e=>{rw(e)&&(l.value.scrollTop=e)},setScrollLeft:e=>{rw(e)&&(l.value.scrollLeft=e)},handleScroll:h}),(e,t)=>(Qo(),oi("div",{ref_key:"scrollbarRef",ref:a,class:q(Nt(o).b())},[di("div",{ref_key:"wrapRef",ref:l,class:q(Nt(p)),style:F(Nt(d)),onScroll:h},[(Qo(),ii(Mn(e.tag),{id:e.id,ref_key:"resizeRef",ref:c,class:q(Nt(f)),style:F(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:yn((()=>[jr(e.$slots,"default")])),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),e.native?vi("v-if",!0):(Qo(),ii(Mk,{key:0,ref_key:"barRef",ref:u,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),[["__file","scrollbar.vue"]])),Nk=Symbol("popper"),Rk=Symbol("popperContent"),Ik=jw({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}});var Pk=ok(ur({...ur({name:"ElPopper",inheritAttrs:!1}),props:Ik,setup(e,{expose:t}){const n=e,r={triggerRef:Mt(),popperInstanceRef:Mt(),contentRef:Mt(),referenceRef:Mt(),role:$i((()=>n.role))};return t(r),uo(Nk,r),(e,t)=>jr(e.$slots,"default")}}),[["__file","popper.vue"]]);const Dk=jw({arrowOffset:{type:Number,default:5}});var Lk=ok(ur({...ur({name:"ElPopperArrow",inheritAttrs:!1}),props:Dk,setup(e,{expose:t}){const n=e,r=dx("popper"),{arrowOffset:o,arrowRef:i,arrowStyle:s}=po(Rk,void 0);return Wn((()=>n.arrowOffset),(e=>{o.value=e})),_r((()=>{i.value=void 0})),t({arrowRef:i}),(e,t)=>(Qo(),oi("span",{ref_key:"arrowRef",ref:i,class:q(Nt(r).e("arrow")),style:F(Nt(s)),"data-popper-arrow":""},null,6))}}),[["__file","arrow.vue"]]);const jk=ur({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var o;const i=po(WS),s=(a=null!=(o=null==i?void 0:i.setForwardRef)?o:r,{mounted(e){a(e)},updated(e){a(e)},unmounted(){a(null)}});var a;return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,n);if(!r)return null;if(r.length>1)return null;const o=Bk(r);return o?Yn(hi(o,n),[[s]]):null}}});function Bk(e){if(!e)return null;const t=e;for(const n of t){if(y(n))switch(n.type){case Go:continue;case Jo:case"svg":return Vk(n);case Ko:return Bk(n.children);default:return n}return Vk(n)}return null}function Vk(e){const t=dx("only-child");return pi("span",{class:t.e("content")},[e])}const zk=jw({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onContextmenu:{type:Function},id:String,open:Boolean});var Fk=ok(ur({...ur({name:"ElPopperTrigger",inheritAttrs:!1}),props:zk,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=po(Nk,void 0);var i;i=o,uo(WS,{setForwardRef:e=>{i.value=e}});const s=$i((()=>l.value?n.id:void 0)),a=$i((()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0})),l=$i((()=>{if(r&&"tooltip"!==r.value)return r.value})),c=$i((()=>l.value?`${n.open}`:void 0));let u;return Mr((()=>{Wn((()=>n.virtualRef),(e=>{e&&(o.value=Rb(e))}),{immediate:!0}),Wn(o,((e,t)=>{null==u||u(),u=void 0,ow(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((r=>{var o;const i=n[r];i&&(e.addEventListener(r.slice(2).toLowerCase(),i),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,r.slice(2).toLowerCase(),i))})),u=Wn([s,a,l,c],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,r)=>{Mg(t[r])?e.removeAttribute(n):e.setAttribute(n,t[r])}))}),{immediate:!0})),ow(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),_r((()=>{null==u||u(),u=void 0})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?vi("v-if",!0):(Qo(),ii(Nt(jk),xi({key:0},e.$attrs,{"aria-controls":Nt(s),"aria-describedby":Nt(a),"aria-expanded":Nt(c),"aria-haspopup":Nt(l)}),{default:yn((()=>[jr(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),[["__file","trigger.vue"]]);const $k="focus-trap.focus-after-trapped",Hk="focus-trap.focus-after-released",Uk={cancelable:!0,bubbles:!1},Wk={cancelable:!0,bubbles:!1},qk="focusAfterTrapped",Kk="focusAfterReleased",Jk=Symbol("elFocusTrap"),Gk=Mt(),Yk=Mt(0),Xk=Mt(0);let Zk=0;const Qk=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},eO=(e,t)=>{for(const n of e)if(!tO(n,t))return n},tO=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},nO=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Xk.value=window.performance.now(),e!==n&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function rO(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const oO=(()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=rO(e,t),e.unshift(t)},remove:t=>{var n,r;e=rO(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)}}})(),iO=()=>{Gk.value="pointer",Yk.value=window.performance.now()},sO=()=>{Gk.value="keyboard",Yk.value=window.performance.now()},aO=e=>new CustomEvent("focus-trap.focusout-prevented",{...Wk,detail:e});var lO=ok(ur({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[qk,Kk,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=Mt();let r,o;const{focusReason:i}=(Mr((()=>{0===Zk&&(document.addEventListener("mousedown",iO),document.addEventListener("touchstart",iO),document.addEventListener("keydown",sO)),Zk++})),_r((()=>{Zk--,Zk<=0&&(document.removeEventListener("mousedown",iO),document.removeEventListener("touchstart",iO),document.removeEventListener("keydown",sO))})),{focusReason:Gk,lastUserFocusTimestamp:Yk,lastAutomatedFocusTimestamp:Xk});var s;s=n=>{e.trapped&&!a.paused&&t("release-requested",n)},Mr((()=>{0===VS.length&&document.addEventListener("keydown",zS),Ob&&VS.push(s)})),_r((()=>{VS=VS.filter((e=>e!==s)),0===VS.length&&Ob&&document.removeEventListener("keydown",zS)}));const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=n=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:r,altKey:o,ctrlKey:s,metaKey:l,currentTarget:c,shiftKey:u}=n,{loop:d}=e,p=r===Ww.tab&&!o&&!s&&!l,f=document.activeElement;if(p&&f){const e=c,[r,o]=(e=>{const t=Qk(e);return[eO(t,e),eO(t.reverse(),e)]})(e);if(r&&o)if(u||f!==o){if(u&&[r,e].includes(f)){const e=aO({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&nO(o,!0))}}else{const e=aO({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&nO(r,!0))}else if(f===e){const e=aO({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};uo(Jk,{focusTrapRef:n,onKeydown:l}),Wn((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),Wn([n],(([e],[t])=>{e&&(e.addEventListener("keydown",l),e.addEventListener("focusin",d),e.addEventListener("focusout",p)),t&&(t.removeEventListener("keydown",l),t.removeEventListener("focusin",d),t.removeEventListener("focusout",p))}));const c=e=>{t(qk,e)},u=e=>t(Kk,e),d=i=>{const s=Nt(n);if(!s)return;const l=i.target,c=i.relatedTarget,u=l&&s.contains(l);if(!e.trapped){c&&s.contains(c)||(r=c)}u&&t("focusin",i),a.paused||e.trapped&&(u?o=l:nO(o,!0))},p=r=>{const s=Nt(n);if(!a.paused&&s)if(e.trapped){const n=r.relatedTarget;Mg(n)||s.contains(n)||setTimeout((()=>{if(!a.paused&&e.trapped){const e=aO({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||nO(o,!0)}}),0)}else{const e=r.target;e&&s.contains(e)||t("focusout",r)}};async function f(){await en();const t=Nt(n);if(t){oO.push(a);const n=t.contains(document.activeElement)?r:document.activeElement;r=n;if(!t.contains(n)){const r=new Event($k,Uk);t.addEventListener($k,c),t.dispatchEvent(r),r.defaultPrevented||en((()=>{let r=e.focusStartEl;g(r)||(nO(r),document.activeElement!==r&&(r="first")),"first"===r&&((e,t=!1)=>{const n=document.activeElement;for(const r of e)if(nO(r,t),document.activeElement!==n)return})(Qk(t),!0),document.activeElement!==n&&"container"!==r||nO(t)}))}}}function h(){const e=Nt(n);if(e){e.removeEventListener($k,c);const t=new CustomEvent(Hk,{...Uk,detail:{focusReason:i.value}});e.addEventListener(Hk,u),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=i.value&&Yk.value>Xk.value&&!e.contains(document.activeElement)||nO(null!=r?r:document.body),e.removeEventListener(Hk,u),oO.remove(a)}}return Mr((()=>{e.trapped&&f(),Wn((()=>e.trapped),(e=>{e?f():h()}))})),_r((()=>{e.trapped&&h()})),{onKeydown:l}}}),[["render",function(e,t,n,r,o,i){return jr(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]]);const cO=jw({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Mx,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),uO=jw({...cO,id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),dO={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},pO=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:[...fO(e),...t]};return function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(i,null==o?void 0:o.modifiers),i};function fO(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}const hO=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=po(Nk,void 0),i=Mt(),s=Mt(),a=$i((()=>({name:"eventListeners",enabled:!!e.visible}))),l=$i((()=>{var e;const t=Nt(i),n=null!=(e=Nt(s))?e:0;return{name:"arrow",enabled:(r=t,!(void 0===r)),options:{element:t,padding:n}};var r})),c=$i((()=>({onFirstUpdate:()=>{h()},...pO(e,[Nt(l),Nt(a)])}))),u=$i((()=>(e=>{if(Ob)return Rb(e)})(e.referenceEl)||Nt(r))),{attributes:d,state:p,styles:f,update:h,forceUpdate:m,instanceRef:g}=IS(u,n,c);return Wn(g,(e=>t.value=e)),Mr((()=>{Wn((()=>{var e;return null==(e=Nt(u))?void 0:e.getBoundingClientRect()}),(()=>{h()}))})),{attributes:d,arrowRef:i,contentRef:n,instanceRef:g,state:p,styles:f,role:o,forceUpdate:m,update:h}};var mO=ok(ur({...ur({name:"ElPopperContent"}),props:uO,emits:dO,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:i,trapped:s,onFocusAfterReleased:a,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=((e,t)=>{const n=Mt(!1),r=Mt();return{focusStartRef:r,trapped:n,onFocusAfterReleased:e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}})(o,n),{attributes:p,arrowRef:f,contentRef:h,styles:m,instanceRef:g,role:v,update:y}=hO(o),{ariaModal:b,arrowStyle:w,contentAttrs:x,contentClass:S,contentStyle:k,updateZIndex:O}=((e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=JS(),i=dx("popper"),s=$i((()=>Nt(t).popper)),a=Mt(rw(e.zIndex)?e.zIndex:o()),l=$i((()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass])),c=$i((()=>[{zIndex:Nt(a)},Nt(n).popper,e.popperStyle||{}]));return{ariaModal:$i((()=>"dialog"===r.value?"false":void 0)),arrowStyle:$i((()=>Nt(n).arrow||{})),contentAttrs:s,contentClass:l,contentStyle:c,contentZIndex:a,updateZIndex:()=>{a.value=rw(e.zIndex)?e.zIndex:o()}}})(o,{styles:m,attributes:p,role:v}),E=po(lk,void 0),C=Mt();let M;uo(Rk,{arrowStyle:w,arrowRef:f,arrowOffset:C}),E&&(E.addInputId||E.removeInputId)&&uo(lk,{...E,addInputId:r,removeInputId:r});const A=(e=!0)=>{y(),e&&O()},T=()=>{A(!1),o.visible&&o.focusOnShow?s.value=!0:!1===o.visible&&(s.value=!1)};return Mr((()=>{Wn((()=>o.triggerTargetEl),((e,t)=>{null==M||M(),M=void 0;const n=Nt(e||h.value),r=Nt(t||h.value);ow(n)&&(M=Wn([v,()=>o.ariaLabel,b,()=>o.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{Mg(e[r])?n.removeAttribute(t):n.setAttribute(t,e[r])}))}),{immediate:!0})),r!==n&&ow(r)&&["role","aria-label","aria-modal","id"].forEach((e=>{r.removeAttribute(e)}))}),{immediate:!0}),Wn((()=>o.visible),T,{immediate:!0})})),_r((()=>{null==M||M(),M=void 0})),t({popperContentRef:h,popperInstanceRef:g,updatePopper:A,contentStyle:k}),(e,t)=>(Qo(),oi("div",xi({ref_key:"contentRef",ref:h},Nt(x),{style:Nt(k),class:Nt(S),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))}),[pi(Nt(lO),{trapped:Nt(s),"trap-on-focus-in":!0,"focus-trap-el":Nt(h),"focus-start-el":Nt(i),onFocusAfterTrapped:Nt(l),onFocusAfterReleased:Nt(a),onFocusin:Nt(c),onFocusoutPrevented:Nt(u),onReleaseRequested:Nt(d)},{default:yn((()=>[jr(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),[["__file","content.vue"]]);const gO=$w(Pk),vO=Symbol("elTooltip"),yO=jw({...US,...uO,appendTo:{type:[String,Object]},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),bO=jw({...zk,disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[Ww.enter,Ww.space]}}),{useModelToggleProps:wO,useModelToggleEmits:xO,useModelToggle:SO}=hx("visible"),kO=jw({...Ik,...wO,...yO,...bO,...Dk,showArrow:{type:Boolean,default:!0}}),OO=[...xO,"before-show","before-hide","show","hide","open","close"],EO=(e,t,n)=>r=>{((e,t)=>d(e)?e.includes(t):e===t)(Nt(e),t)&&n(r)},CO=ur({...ur({name:"ElTooltipTrigger"}),props:bO,setup(e,{expose:t}){const n=e,r=dx("tooltip"),{controlled:o,id:i,open:s,onOpen:a,onClose:l,onToggle:c}=po(vO,void 0),u=Mt(null),d=()=>{if(Nt(o)||n.disabled)return!0},p=Vt(n,"trigger"),f=Sb(d,EO(p,"hover",a)),h=Sb(d,EO(p,"hover",l)),m=Sb(d,EO(p,"click",(e=>{0===e.button&&c(e)}))),g=Sb(d,EO(p,"focus",a)),v=Sb(d,EO(p,"focus",l)),y=Sb(d,EO(p,"contextmenu",(e=>{e.preventDefault(),c(e)}))),b=Sb(d,(e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),c(e))}));return t({triggerRef:u}),(e,t)=>(Qo(),ii(Nt(Fk),{id:Nt(i),"virtual-ref":e.virtualRef,open:Nt(s),"virtual-triggering":e.virtualTriggering,class:q(Nt(r).e("trigger")),onBlur:Nt(v),onClick:Nt(m),onContextmenu:Nt(y),onFocus:Nt(g),onMouseenter:Nt(f),onMouseleave:Nt(h),onKeydown:Nt(b)},{default:yn((()=>[jr(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var MO=ok(CO,[["__file","trigger.vue"]]);var AO=ok(ur({...ur({name:"ElTooltipContent",inheritAttrs:!1}),props:yO,setup(e,{expose:t}){const n=e,{selector:r}=$S(),o=dx("tooltip"),i=Mt(null),s=Mt(!1),{controlled:a,id:l,open:c,trigger:u,onClose:d,onOpen:p,onShow:f,onHide:h,onBeforeShow:m,onBeforeHide:g}=po(vO,void 0),v=$i((()=>n.transition||`${o.namespace.value}-fade-in-linear`)),y=$i((()=>n.persistent));_r((()=>{s.value=!0}));const b=$i((()=>!!Nt(y)||Nt(c))),w=$i((()=>!n.disabled&&Nt(c))),x=$i((()=>n.appendTo||r.value)),S=$i((()=>{var e;return null!=(e=n.style)?e:{}})),k=$i((()=>!Nt(c))),O=()=>{h()},E=()=>{if(Nt(a))return!0},C=Sb(E,(()=>{n.enterable&&"hover"===Nt(u)&&p()})),M=Sb(E,(()=>{"hover"===Nt(u)&&d()})),A=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e),null==m||m()},T=()=>{null==g||g()},_=()=>{f(),R=function(e,t,n={}){const{window:r=Ib,ignore:o=[],capture:i=!0,detectIframe:s=!1}=n;if(!r)return;Cb&&!Db&&(Db=!0,Array.from(r.document.body.children).forEach((e=>e.addEventListener("click",Eb))));let a=!0;const l=e=>o.some((t=>{if("string"==typeof t)return Array.from(r.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=Rb(t);return n&&(e.target===n||e.composedPath().includes(n))}})),c=[Pb(r,"click",(n=>{const r=Rb(e);r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(a=!l(n)),a?t(n):a=!0)}),{passive:!0,capture:i}),Pb(r,"pointerdown",(t=>{const n=Rb(e);n&&(a=!t.composedPath().includes(n)&&!l(t))}),{passive:!0}),s&&Pb(r,"blur",(n=>{var o;const i=Rb(e);"IFRAME"!==(null==(o=r.document.activeElement)?void 0:o.tagName)||(null==i?void 0:i.contains(r.document.activeElement))||t(n)}))].filter(Boolean);return()=>c.forEach((e=>e()))}($i((()=>{var e;return null==(e=i.value)?void 0:e.popperContentRef})),(()=>{if(Nt(a))return;"hover"!==Nt(u)&&d()}))},N=()=>{n.virtualTriggering||d()};let R;return Wn((()=>Nt(c)),(e=>{e||null==R||R()}),{flush:"post"}),Wn((()=>n.content),(()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:i}),(e,t)=>(Qo(),ii(Wo,{disabled:!e.teleported,to:Nt(x)},[pi(rs,{name:Nt(v),onAfterLeave:O,onBeforeEnter:A,onAfterEnter:_,onBeforeLeave:T},{default:yn((()=>[Nt(b)?Yn((Qo(),ii(Nt(mO),xi({key:0,id:Nt(l),ref_key:"contentRef",ref:i},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":Nt(k),"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,Nt(S)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:Nt(w),"z-index":e.zIndex,onMouseenter:Nt(C),onMouseleave:Nt(M),onBlur:N,onClose:Nt(d)}),{default:yn((()=>[s.value?vi("v-if",!0):jr(e.$slots,"default",{key:0})])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[xs,Nt(w)]]):vi("v-if",!0)])),_:3},8,["name"])],8,["disabled","to"]))}}),[["__file","content.vue"]]);const TO=["innerHTML"],_O={key:1};const NO=$w(ok(ur({...ur({name:"ElTooltip"}),props:kO,emits:OO,setup(e,{expose:t,emit:n}){const r=e;HS();const o=BS(),i=Mt(),s=Mt(),a=()=>{var e;const t=Nt(i);t&&(null==(e=t.popperInstanceRef)||e.update())},l=Mt(!1),c=Mt(),{show:u,hide:d,hasUpdateHandler:p}=SO({indicator:l,toggleReason:c}),{onOpen:f,onClose:h}=(({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:i}=PS(),{registerTimeout:s,cancelTimeout:a}=PS();return{onOpen:t=>{i((()=>{r(t);const e=Nt(n);rw(e)&&e>0&&s((()=>{o(t)}),e)}),Nt(e))},onClose:e=>{a(),i((()=>{o(e)}),Nt(t))}}})({showAfter:Vt(r,"showAfter"),hideAfter:Vt(r,"hideAfter"),autoClose:Vt(r,"autoClose"),open:u,close:d}),m=$i((()=>nw(r.visible)&&!p.value));uo(vO,{controlled:m,id:o,open:pt(l),trigger:Vt(r,"trigger"),onOpen:e=>{f(e)},onClose:e=>{h(e)},onToggle:e=>{Nt(l)?h(e):f(e)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:a}),Wn((()=>r.disabled),(e=>{e&&l.value&&(l.value=!1)}));return br((()=>l.value&&d())),t({popperRef:i,contentRef:s,isFocusInsideContent:e=>{var t,n;const r=null==(n=null==(t=s.value)?void 0:t.contentRef)?void 0:n.popperContentRef,o=(null==e?void 0:e.relatedTarget)||document.activeElement;return r&&r.contains(o)},updatePopper:a,onOpen:f,onClose:h,hide:d}),(e,t)=>(Qo(),ii(Nt(gO),{ref_key:"popperRef",ref:i,role:e.role},{default:yn((()=>[pi(MO,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:yn((()=>[e.$slots.default?jr(e.$slots,"default",{key:0}):vi("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),pi(AO,{ref_key:"contentRef",ref:s,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:yn((()=>[jr(e.$slots,"content",{},(()=>[e.rawContent?(Qo(),oi("span",{key:0,innerHTML:e.content},null,8,TO)):(Qo(),oi("span",_O,X(e.content),1))])),e.showArrow?(Qo(),ii(Nt(Lk),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):vi("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"]))}}),[["__file","tooltip.vue"]])),RO=Symbol("buttonGroupContextKey"),IO=jw({size:GS,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Bw},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Bw,default:()=>Aw},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:[String,Object],default:"button"}}),PO={click:e=>e instanceof MouseEvent};function DO(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function LO(e){return Math.min(1,Math.max(0,e))}function jO(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function BO(e){return e<=1?"".concat(100*Number(e),"%"):e}function VO(e){return 1===e.length?"0"+e:String(e)}function zO(e,t,n){e=DO(e,255),t=DO(t,255),n=DO(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=0,a=(r+o)/2;if(r===o)s=0,i=0;else{var l=r-o;switch(s=a>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:s,l:a}}function FO(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $O(e,t,n){e=DO(e,255),t=DO(t,255),n=DO(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=r,a=r-o,l=0===r?0:a/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/a+(t<n?6:0);break;case t:i=(n-e)/a+2;break;case n:i=(e-t)/a+4}i/=6}return{h:i,s:l,v:s}}function HO(e,t,n,r){var o=[VO(Math.round(e).toString(16)),VO(Math.round(t).toString(16)),VO(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function UO(e){return WO(e)/255}function WO(e){return parseInt(e,16)}var qO={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function KO(e){var t,n,r,o={r:0,g:0,b:0},i=1,s=null,a=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(qO[e])e=qO[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=XO.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=XO.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=XO.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=XO.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=XO.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=XO.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=XO.hex8.exec(e),n)return{r:WO(n[1]),g:WO(n[2]),b:WO(n[3]),a:UO(n[4]),format:t?"name":"hex8"};if(n=XO.hex6.exec(e),n)return{r:WO(n[1]),g:WO(n[2]),b:WO(n[3]),format:t?"name":"hex"};if(n=XO.hex4.exec(e),n)return{r:WO(n[1]+n[1]),g:WO(n[2]+n[2]),b:WO(n[3]+n[3]),a:UO(n[4]+n[4]),format:t?"name":"hex8"};if(n=XO.hex3.exec(e),n)return{r:WO(n[1]+n[1]),g:WO(n[2]+n[2]),b:WO(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(ZO(e.r)&&ZO(e.g)&&ZO(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*DO(t,255),g:255*DO(n,255),b:255*DO(r,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):ZO(e.h)&&ZO(e.s)&&ZO(e.v)?(s=BO(e.s),a=BO(e.v),o=function(e,t,n){e=6*DO(e,360),t=DO(t,100),n=DO(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),s=n*(1-o*t),a=n*(1-(1-o)*t),l=r%6;return{r:255*[n,s,i,i,a,n][l],g:255*[a,n,n,s,i,i][l],b:255*[i,i,a,n,n,s][l]}}(e.h,s,a),c=!0,u="hsv"):ZO(e.h)&&ZO(e.s)&&ZO(e.l)&&(s=BO(e.s),l=BO(e.l),o=function(e,t,n){var r,o,i;if(e=DO(e,360),t=DO(t,100),n=DO(n,100),0===t)o=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=FO(a,s,e+1/3),o=FO(a,s,e),i=FO(a,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,s,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=jO(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var JO="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),GO="[\\s|\\(]+(".concat(JO,")[,|\\s]+(").concat(JO,")[,|\\s]+(").concat(JO,")\\s*\\)?"),YO="[\\s|\\(]+(".concat(JO,")[,|\\s]+(").concat(JO,")[,|\\s]+(").concat(JO,")[,|\\s]+(").concat(JO,")\\s*\\)?"),XO={CSS_UNIT:new RegExp(JO),rgb:new RegExp("rgb"+GO),rgba:new RegExp("rgba"+YO),hsl:new RegExp("hsl"+GO),hsla:new RegExp("hsla"+YO),hsv:new RegExp("hsv"+GO),hsva:new RegExp("hsva"+YO),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ZO(e){return Boolean(XO.CSS_UNIT.exec(String(e)))}var QO=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=KO(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=jO(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=$O(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=$O(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=zO(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=zO(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),HO(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,s=[VO(Math.round(e).toString(16)),VO(Math.round(t).toString(16)),VO(Math.round(n).toString(16)),VO((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*DO(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*DO(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+HO(this.r,this.g,this.b,!1),t=0,n=Object.entries(qO);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=LO(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=LO(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=LO(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=LO(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,s=[],a=1/t;t--;)s.push(new e({h:r,s:o,v:i})),i=(i+a)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,s=1;s<t;s++)o.push(new e({h:(r+s*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function eE(e,t=20){return e.mix("#141414",t).toString()}var tE=ok(ur({...ur({name:"ElButton"}),props:IO,emits:PO,setup(e,{expose:t,emit:n}){const r=e,o=function(e){const t=uk(),n=dx("button");return $i((()=>{let r={};const o=e.color;if(o){const i=new QO(o),s=e.dark?i.tint(20).toString():eE(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?eE(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?eE(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?eE(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?eE(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?eE(i,80):i.tint(80).toString());else{const a=e.dark?eE(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":l,"border-color":o,"hover-bg-color":a,"hover-text-color":l,"hover-border-color":a,"active-bg-color":s,"active-border-color":s}),t.value){const t=e.dark?eE(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=t}}}return r}))}(r),i=dx("button"),{_ref:s,_size:a,_type:l,_disabled:c,_props:u,shouldAddSpace:d,handleClick:p}=((e,t)=>{tx({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},$i((()=>"text"===e.type)));const n=po(RO,void 0),r=ek("button"),{form:o}=dk(),i=ck($i((()=>null==n?void 0:n.size))),s=uk(),a=Mt(),l=Ur(),c=$i((()=>e.type||(null==n?void 0:n.type)||"")),u=$i((()=>{var t,n,o;return null!=(o=null!=(n=e.autoInsertSpace)?n:null==(t=r.value)?void 0:t.autoInsertSpace)&&o})),d=$i((()=>"button"===e.tag?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{})),p=$i((()=>{var e;const t=null==(e=l.default)?void 0:e.call(l);if(u.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===Jo){const t=e.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(t.trim())}}return!1}));return{_disabled:s,_size:i,_type:c,_ref:a,_props:d,shouldAddSpace:p,handleClick:n=>{"reset"===e.nativeType&&(null==o||o.resetFields()),t("click",n)}}})(r,n);return t({ref:s,size:a,type:l,disabled:c,shouldAddSpace:d}),(e,t)=>(Qo(),ii(Mn(e.tag),xi({ref_key:"_ref",ref:s},Nt(u),{class:[Nt(i).b(),Nt(i).m(Nt(l)),Nt(i).m(Nt(a)),Nt(i).is("disabled",Nt(c)),Nt(i).is("loading",e.loading),Nt(i).is("plain",e.plain),Nt(i).is("round",e.round),Nt(i).is("circle",e.circle),Nt(i).is("text",e.text),Nt(i).is("link",e.link),Nt(i).is("has-bg",e.bg)],style:Nt(o),onClick:Nt(p)}),{default:yn((()=>[e.loading?(Qo(),oi(Ko,{key:0},[e.$slots.loading?jr(e.$slots,"loading",{key:0}):(Qo(),ii(Nt(sk),{key:1,class:q(Nt(i).is("loading"))},{default:yn((()=>[(Qo(),ii(Mn(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(Qo(),ii(Nt(sk),{key:1},{default:yn((()=>[e.icon?(Qo(),ii(Mn(e.icon),{key:0})):jr(e.$slots,"icon",{key:1})])),_:3})):vi("v-if",!0),e.$slots.default?(Qo(),oi("span",{key:2,class:q({[Nt(i).em("text","expand")]:Nt(d)})},[jr(e.$slots,"default")],2)):vi("v-if",!0)])),_:3},16,["class","style","onClick"]))}}),[["__file","button.vue"]]);const nE={size:IO.size,type:IO.type};var rE=ok(ur({...ur({name:"ElButtonGroup"}),props:nE,setup(e){const t=e;uo(RO,ut({size:Vt(t,"size"),type:Vt(t,"type")}));const n=dx("button");return(e,t)=>(Qo(),oi("div",{class:q(`${Nt(n).b("group")}`)},[jr(e.$slots,"default")],2))}}),[["__file","button-group.vue"]]);const oE=$w(tE,{ButtonGroup:rE});Uw(rE);const iE=new Map;let sE;function aE(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:ow(t.arg)&&n.push(t.arg),function(r,o){const i=t.instance.popperRef,s=r.target,a=null==o?void 0:o.target,l=!t||!t.instance,c=!s||!a,u=e.contains(s)||e.contains(a),d=e===s,p=n.length&&n.some((e=>null==e?void 0:e.contains(s)))||n.length&&n.includes(a),f=i&&(i.contains(s)||i.contains(a));l||c||u||d||p||f||t.value(r,o)}}Ob&&(document.addEventListener("mousedown",(e=>sE=e)),document.addEventListener("mouseup",(e=>{for(const t of iE.values())for(const{documentHandler:n}of t)n(e,sE)})));const lE={beforeMount(e,t){iE.has(e)||iE.set(e,[]),iE.get(e).push({documentHandler:aE(e,t),bindingFn:t.value})},updated(e,t){iE.has(e)||iE.set(e,[]);const n=iE.get(e),r=n.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:aE(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){iE.delete(e)}},cE=100,uE=600,dE={beforeMount(e,t){const n=t.value,{interval:r=cE,delay:o=uE}=m(n)?{}:n;let i,s;const a=()=>m(n)?n():n.handler(),l=()=>{s&&(clearTimeout(s),s=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",(e=>{0===e.button&&(l(),a(),document.addEventListener("mouseup",(()=>l()),{once:!0}),s=setTimeout((()=>{i=setInterval((()=>{a()}),r)}),o))}))}},pE={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:GS,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},fE={[qw]:e=>g(e)||rw(e)||nw(e),change:e=>g(e)||rw(e)||nw(e)},hE=Symbol("checkboxGroupContextKey"),mE=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:i})=>{const s=po(hE,void 0),{formItem:a}=dk(),{emit:l}=Mi();function c(t){var n,r;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(n=e.trueValue||e.trueLabel)||n:null!=(r=e.falseValue||e.falseLabel)&&r}const u=$i((()=>(null==s?void 0:s.validateEvent)||e.validateEvent));return Wn((()=>e.modelValue),(()=>{u.value&&(null==a||a.validate("change").catch((e=>{})))})),{handleChange:function(e){if(n.value)return;const t=e.target;l("change",c(t.checked),e)},onClickRoot:async function(s){if(!n.value&&!r.value&&!o.value&&i.value){s.composedPath().some((e=>"LABEL"===e.tagName))||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await en(),function(e,t){l("change",c(e),t)}(t.value,s))}}}},gE=(e,t)=>{const{formItem:n}=dk(),{model:r,isGroup:o,isLimitExceeded:i}=(e=>{const t=Mt(!1),{emit:n}=Mi(),r=po(hE,void 0),o=$i((()=>!1===tw(r))),i=Mt(!1),s=$i({get(){var n,i;return o.value?null==(n=null==r?void 0:r.modelValue)?void 0:n.value:null!=(i=e.modelValue)?i:t.value},set(e){var a,l;o.value&&d(e)?(i.value=void 0!==(null==(a=null==r?void 0:r.max)?void 0:a.value)&&e.length>(null==r?void 0:r.max.value)&&e.length>s.value.length,!1===i.value&&(null==(l=null==r?void 0:r.changeEvent)||l.call(r,e))):(n(qw,e),t.value=e)}});return{model:s,isGroup:o,isLimitExceeded:i}})(e),{isFocused:s,isChecked:a,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,actualValue:p}=((e,t,{model:n})=>{const r=po(hE,void 0),o=Mt(!1),i=$i((()=>iw(e.value)?e.label:e.value)),s=$i((()=>{const t=n.value;return nw(t)?t:d(t)?y(i.value)?t.map(yt).some((e=>Cg(e,i.value))):t.map(yt).includes(i.value):null!=t?t===e.trueValue||t===e.trueLabel:!!t}));return{checkboxButtonSize:ck($i((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),{prop:!0}),isChecked:s,isFocused:o,checkboxSize:ck($i((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value}))),hasOwnLabel:$i((()=>!!t.default||!iw(i.value))),actualValue:i}})(e,t,{model:r}),{isDisabled:f}=(({model:e,isChecked:t})=>{const n=po(hE,void 0),r=$i((()=>{var r,o;const i=null==(r=null==n?void 0:n.max)?void 0:r.value,s=null==(o=null==n?void 0:n.min)?void 0:o.value;return!tw(i)&&e.value.length>=i&&!t.value||!tw(s)&&e.value.length<=s&&t.value}));return{isDisabled:uk($i((()=>(null==n?void 0:n.disabled.value)||r.value))),isLimitDisabled:r}})({model:r,isChecked:a}),{inputId:h,isLabeledByFormItem:m}=pk(e,{formItemContext:n,disableIdGeneration:u,disableIdManagement:o}),{handleChange:g,onClickRoot:v}=mE(e,{model:r,isLimitExceeded:i,hasOwnLabel:u,isDisabled:f,isLabeledByFormItem:m});return e.checked&&(d(r.value)&&!r.value.includes(p.value)?r.value.push(p.value):r.value=e.trueValue||e.trueLabel||!0),tx({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},$i((()=>o.value&&iw(e.value)))),tx({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},$i((()=>!!e.trueLabel))),tx({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},$i((()=>!!e.falseLabel))),{inputId:h,isLabeledByFormItem:m,isChecked:a,isDisabled:f,isFocused:s,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,model:r,actualValue:p,handleChange:g,onClickRoot:v}},vE=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],yE=["id","indeterminate","disabled","value","name","tabindex"];var bE=ok(ur({...ur({name:"ElCheckbox"}),props:pE,emits:fE,setup(e){const t=e,n=Ur(),{inputId:r,isLabeledByFormItem:o,isChecked:i,isDisabled:s,isFocused:a,checkboxSize:l,hasOwnLabel:c,model:u,actualValue:d,handleChange:p,onClickRoot:f}=gE(t,n),h=dx("checkbox"),m=$i((()=>[h.b(),h.m(l.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",i.value)])),g=$i((()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",a.value)]));return(e,t)=>(Qo(),ii(Mn(!Nt(c)&&Nt(o)?"span":"label"),{class:q(Nt(m)),"aria-controls":e.indeterminate?e.controls:null,onClick:Nt(f)},{default:yn((()=>[di("span",{class:q(Nt(g))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?Yn((Qo(),oi("input",{key:0,id:Nt(r),"onUpdate:modelValue":t[0]||(t[0]=e=>Ct(u)?u.value=e:null),class:q(Nt(h).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:Nt(s),"true-value":e.trueValue||e.trueLabel,"false-value":e.falseValue||e.falseLabel,onChange:t[1]||(t[1]=(...e)=>Nt(p)&&Nt(p)(...e)),onFocus:t[2]||(t[2]=e=>a.value=!0),onBlur:t[3]||(t[3]=e=>a.value=!1),onClick:t[4]||(t[4]=ha((()=>{}),["stop"]))},null,42,vE)),[[na,Nt(u)]]):Yn((Qo(),oi("input",{key:1,id:Nt(r),"onUpdate:modelValue":t[5]||(t[5]=e=>Ct(u)?u.value=e:null),class:q(Nt(h).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:Nt(s),value:Nt(d),name:e.name,tabindex:e.tabindex,onChange:t[6]||(t[6]=(...e)=>Nt(p)&&Nt(p)(...e)),onFocus:t[7]||(t[7]=e=>a.value=!0),onBlur:t[8]||(t[8]=e=>a.value=!1),onClick:t[9]||(t[9]=ha((()=>{}),["stop"]))},null,42,yE)),[[na,Nt(u)]]),di("span",{class:q(Nt(h).e("inner"))},null,2)],2),Nt(c)?(Qo(),oi("span",{key:0,class:q(Nt(h).e("label"))},[jr(e.$slots,"default"),e.$slots.default?vi("v-if",!0):(Qo(),oi(Ko,{key:0},[mi(X(e.label),1)],64))],2)):vi("v-if",!0)])),_:3},8,["class","aria-controls","onClick"]))}}),[["__file","checkbox.vue"]]);const wE=["name","tabindex","disabled","true-value","false-value"],xE=["name","tabindex","disabled","value"];var SE=ok(ur({...ur({name:"ElCheckboxButton"}),props:pE,emits:fE,setup(e){const t=e,n=Ur(),{isFocused:r,isChecked:o,isDisabled:i,checkboxButtonSize:s,model:a,actualValue:l,handleChange:c}=gE(t,n),u=po(hE,void 0),d=dx("checkbox"),p=$i((()=>{var e,t,n,r;const o=null!=(t=null==(e=null==u?void 0:u.fill)?void 0:e.value)?t:"";return{backgroundColor:o,borderColor:o,color:null!=(r=null==(n=null==u?void 0:u.textColor)?void 0:n.value)?r:"",boxShadow:o?`-1px 0 0 0 ${o}`:void 0}})),f=$i((()=>[d.b("button"),d.bm("button",s.value),d.is("disabled",i.value),d.is("checked",o.value),d.is("focus",r.value)]));return(e,t)=>(Qo(),oi("label",{class:q(Nt(f))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?Yn((Qo(),oi("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=e=>Ct(a)?a.value=e:null),class:q(Nt(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:Nt(i),"true-value":e.trueValue||e.trueLabel,"false-value":e.falseValue||e.falseLabel,onChange:t[1]||(t[1]=(...e)=>Nt(c)&&Nt(c)(...e)),onFocus:t[2]||(t[2]=e=>r.value=!0),onBlur:t[3]||(t[3]=e=>r.value=!1),onClick:t[4]||(t[4]=ha((()=>{}),["stop"]))},null,42,wE)),[[na,Nt(a)]]):Yn((Qo(),oi("input",{key:1,"onUpdate:modelValue":t[5]||(t[5]=e=>Ct(a)?a.value=e:null),class:q(Nt(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:Nt(i),value:Nt(l),onChange:t[6]||(t[6]=(...e)=>Nt(c)&&Nt(c)(...e)),onFocus:t[7]||(t[7]=e=>r.value=!0),onBlur:t[8]||(t[8]=e=>r.value=!1),onClick:t[9]||(t[9]=ha((()=>{}),["stop"]))},null,42,xE)),[[na,Nt(a)]]),e.$slots.default||e.label?(Qo(),oi("span",{key:2,class:q(Nt(d).be("button","inner")),style:F(Nt(o)?Nt(p):void 0)},[jr(e.$slots,"default",{},(()=>[mi(X(e.label),1)]))],6)):vi("v-if",!0)],2))}}),[["__file","checkbox-button.vue"]]);const kE=jw({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:GS,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),OE={[qw]:e=>d(e),change:e=>d(e)};var EE=ok(ur({...ur({name:"ElCheckboxGroup"}),props:kE,emits:OE,setup(e,{emit:t}){const n=e,r=dx("checkbox"),{formItem:o}=dk(),{inputId:i,isLabeledByFormItem:s}=pk(n,{formItemContext:o}),a=async e=>{t(qw,e),await en(),t("change",e)},l=$i({get:()=>n.modelValue,set(e){a(e)}});return uo(hE,{...Ig(Lt(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:a}),Wn((()=>n.modelValue),(()=>{n.validateEvent&&(null==o||o.validate("change").catch((e=>{})))})),(e,t)=>{var n;return Qo(),ii(Mn(e.tag),{id:Nt(i),class:q(Nt(r).b("group")),role:"group","aria-label":Nt(s)?void 0:e.label||"checkbox-group","aria-labelledby":Nt(s)?null==(n=Nt(o))?void 0:n.labelId:void 0},{default:yn((()=>[jr(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),[["__file","checkbox-group.vue"]]);const CE=$w(bE,{CheckboxButton:SE,CheckboxGroup:EE});Uw(SE);const ME=Uw(EE),AE=jw({modelValue:{type:[String,Number,Boolean],default:void 0},size:GS,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),TE=jw({...AE,border:Boolean}),_E={[qw]:e=>g(e)||rw(e)||nw(e),[Kw]:e=>g(e)||rw(e)||nw(e)},NE=Symbol("radioGroupKey"),RE=(e,t)=>{const n=Mt(),r=po(NE,void 0),o=$i((()=>!!r)),i=$i((()=>iw(e.value)?e.label:e.value)),s=$i({get:()=>o.value?r.modelValue:e.modelValue,set(s){o.value?r.changeEvent(s):t&&t(qw,s),n.value.checked=e.modelValue===i.value}}),a=ck($i((()=>null==r?void 0:r.size))),l=uk($i((()=>null==r?void 0:r.disabled))),c=Mt(!1),u=$i((()=>l.value||o.value&&s.value!==i.value?-1:0));return tx({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},$i((()=>o.value&&iw(e.value)))),{radioRef:n,isGroup:o,radioGroup:r,focus:c,size:a,disabled:l,tabIndex:u,modelValue:s,actualValue:i}},IE=["value","name","disabled"];var PE=ok(ur({...ur({name:"ElRadio"}),props:TE,emits:_E,setup(e,{emit:t}){const n=e,r=dx("radio"),{radioRef:o,radioGroup:i,focus:s,size:a,disabled:l,modelValue:c,actualValue:u}=RE(n,t);function d(){en((()=>t("change",c.value)))}return(e,t)=>{var n;return Qo(),oi("label",{class:q([Nt(r).b(),Nt(r).is("disabled",Nt(l)),Nt(r).is("focus",Nt(s)),Nt(r).is("bordered",e.border),Nt(r).is("checked",Nt(c)===Nt(u)),Nt(r).m(Nt(a))])},[di("span",{class:q([Nt(r).e("input"),Nt(r).is("disabled",Nt(l)),Nt(r).is("checked",Nt(c)===Nt(u))])},[Yn(di("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>Ct(c)?c.value=e:null),class:q(Nt(r).e("original")),value:Nt(u),name:e.name||(null==(n=Nt(i))?void 0:n.name),disabled:Nt(l),type:"radio",onFocus:t[1]||(t[1]=e=>s.value=!0),onBlur:t[2]||(t[2]=e=>s.value=!1),onChange:d,onClick:t[3]||(t[3]=ha((()=>{}),["stop"]))},null,42,IE),[[oa,Nt(c)]]),di("span",{class:q(Nt(r).e("inner"))},null,2)],2),di("span",{class:q(Nt(r).e("label")),onKeydown:t[4]||(t[4]=ha((()=>{}),["stop"]))},[jr(e.$slots,"default",{},(()=>[mi(X(e.label),1)]))],34)],2)}}}),[["__file","radio.vue"]]);const DE=jw({...AE}),LE=["value","name","disabled"];var jE=ok(ur({...ur({name:"ElRadioButton"}),props:DE,setup(e){const t=e,n=dx("radio"),{radioRef:r,focus:o,size:i,disabled:s,modelValue:a,radioGroup:l,actualValue:c}=RE(t),u=$i((()=>({backgroundColor:(null==l?void 0:l.fill)||"",borderColor:(null==l?void 0:l.fill)||"",boxShadow:(null==l?void 0:l.fill)?`-1px 0 0 0 ${l.fill}`:"",color:(null==l?void 0:l.textColor)||""})));return(e,t)=>{var d;return Qo(),oi("label",{class:q([Nt(n).b("button"),Nt(n).is("active",Nt(a)===Nt(c)),Nt(n).is("disabled",Nt(s)),Nt(n).is("focus",Nt(o)),Nt(n).bm("button",Nt(i))])},[Yn(di("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":t[0]||(t[0]=e=>Ct(a)?a.value=e:null),class:q(Nt(n).be("button","original-radio")),value:Nt(c),type:"radio",name:e.name||(null==(d=Nt(l))?void 0:d.name),disabled:Nt(s),onFocus:t[1]||(t[1]=e=>o.value=!0),onBlur:t[2]||(t[2]=e=>o.value=!1),onClick:t[3]||(t[3]=ha((()=>{}),["stop"]))},null,42,LE),[[oa,Nt(a)]]),di("span",{class:q(Nt(n).be("button","inner")),style:F(Nt(a)===Nt(c)?Nt(u):{}),onKeydown:t[4]||(t[4]=ha((()=>{}),["stop"]))},[jr(e.$slots,"default",{},(()=>[mi(X(e.label),1)]))],38)],2)}}}),[["__file","radio-button.vue"]]);const BE=jw({id:{type:String,default:void 0},size:GS,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),VE=_E,zE=["id","aria-label","aria-labelledby"],FE=ur({...ur({name:"ElRadioGroup"}),props:BE,emits:VE,setup(e,{emit:t}){const n=e,r=dx("radio"),o=BS(),i=Mt(),{formItem:s}=dk(),{inputId:a,isLabeledByFormItem:l}=pk(n,{formItemContext:s});Mr((()=>{const e=i.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const c=$i((()=>n.name||o.value));return uo(NE,ut({...Lt(n),changeEvent:e=>{t(qw,e),en((()=>t("change",e)))},name:c})),Wn((()=>n.modelValue),(()=>{n.validateEvent&&(null==s||s.validate("change").catch((e=>{})))})),(e,t)=>(Qo(),oi("div",{id:Nt(a),ref_key:"radioGroupRef",ref:i,class:q(Nt(r).b("group")),role:"radiogroup","aria-label":Nt(l)?void 0:e.label||"radio-group","aria-labelledby":Nt(l)?Nt(s).labelId:void 0},[jr(e.$slots,"default")],10,zE))}});var $E=ok(FE,[["__file","radio-group.vue"]]);const HE=$w(PE,{RadioButton:jE,RadioGroup:$E}),UE=Uw($E),WE=Uw(jE),qE=jw({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Gw},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),KE={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent};const JE=$w(ok(ur({...ur({name:"ElTag"}),props:qE,emits:KE,setup(e,{emit:t}){const n=e,r=ck(),o=dx("tag"),i=$i((()=>{const{type:e,hit:t,effect:i,closable:s,round:a}=n;return[o.b(),o.is("closable",s),o.m(e||"primary"),o.m(r.value),o.m(i),o.is("hit",t),o.is("round",a)]})),s=e=>{t("close",e)},a=e=>{t("click",e)};return(e,t)=>e.disableTransitions?(Qo(),oi("span",{key:0,class:q(Nt(i)),style:F({backgroundColor:e.color}),onClick:a},[di("span",{class:q(Nt(o).e("content"))},[jr(e.$slots,"default")],2),e.closable?(Qo(),ii(Nt(sk),{key:0,class:q(Nt(o).e("close")),onClick:ha(s,["stop"])},{default:yn((()=>[pi(Nt(Ew))])),_:1},8,["class","onClick"])):vi("v-if",!0)],6)):(Qo(),ii(rs,{key:1,name:`${Nt(o).namespace.value}-zoom-in-center`,appear:""},{default:yn((()=>[di("span",{class:q(Nt(i)),style:F({backgroundColor:e.color}),onClick:a},[di("span",{class:q(Nt(o).e("content"))},[jr(e.$slots,"default")],2),e.closable?(Qo(),ii(Nt(sk),{key:0,class:q(Nt(o).e("close")),onClick:ha(s,["stop"])},{default:yn((()=>[pi(Nt(Ew))])),_:1},8,["class","onClick"])):vi("v-if",!0)],6)])),_:3},8,["name"]))}}),[["__file","tag.vue"]])),GE=jw({color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}});let YE=!1;function XE(e,t){if(!Ob)return;const n=function(e){var n;null==(n=t.drag)||n.call(t,e)},r=function(e){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,YE=!1,null==(o=t.end)||o.call(t,e)},o=function(e){var o;YE||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),YE=!0,null==(o=t.start)||o.call(t,e))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o)}const ZE=(e,{bar:t,thumb:n,handleDrag:r})=>{const o=Mi(),i=dx("color-alpha-slider"),s=Mt(0),a=Mt(0),l=Mt();function c(){s.value=function(){if(!n.value)return 0;if(e.vertical)return 0;const t=o.vnode.el,r=e.color.get("alpha");return t?Math.round(r*(t.offsetWidth-n.value.offsetWidth/2)/100):0}(),a.value=function(){if(!n.value)return 0;const t=o.vnode.el;if(!e.vertical)return 0;const r=e.color.get("alpha");return t?Math.round(r*(t.offsetHeight-n.value.offsetHeight/2)/100):0}(),l.value=function(){if(e.color&&e.color.value){const{r:t,g:n,b:r}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${n}, ${r}, 0) 0%, rgba(${t}, ${n}, ${r}, 1) 100%)`}return""}()}Mr((()=>{if(!t.value||!n.value)return;const e={drag:e=>{r(e)},end:e=>{r(e)}};XE(t.value,e),XE(n.value,e),c()})),Wn((()=>e.color.get("alpha")),(()=>c())),Wn((()=>e.color.value),(()=>c()));const u=$i((()=>[i.b(),i.is("vertical",e.vertical)])),d=$i((()=>i.e("bar"))),p=$i((()=>i.e("thumb")));return{rootKls:u,barKls:d,barStyle:$i((()=>({background:l.value}))),thumbKls:p,thumbStyle:$i((()=>({left:gw(s.value),top:gw(a.value)}))),update:c}};var QE=ok(ur({...ur({name:"ElColorAlphaSlider"}),props:GE,setup(e,{expose:t}){const n=e,{bar:r,thumb:o,handleDrag:i,handleClick:s}=(e=>{const t=Mi(),n=At(),r=At();function o(o){if(!r.value||!n.value)return;const i=t.vnode.el.getBoundingClientRect(),{clientX:s,clientY:a}=ew(o);if(e.vertical){let t=a-i.top;t=Math.max(n.value.offsetHeight/2,t),t=Math.min(t,i.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((t-n.value.offsetHeight/2)/(i.height-n.value.offsetHeight)*100))}else{let t=s-i.left;t=Math.max(n.value.offsetWidth/2,t),t=Math.min(t,i.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((t-n.value.offsetWidth/2)/(i.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:o,handleClick:function(e){e.target!==n.value&&o(e)}}})(n),{rootKls:a,barKls:l,barStyle:c,thumbKls:u,thumbStyle:d,update:p}=ZE(n,{bar:r,thumb:o,handleDrag:i});return t({update:p,bar:r,thumb:o}),(e,t)=>(Qo(),oi("div",{class:q(Nt(a))},[di("div",{ref_key:"bar",ref:r,class:q(Nt(l)),style:F(Nt(c)),onClick:t[0]||(t[0]=(...e)=>Nt(s)&&Nt(s)(...e))},null,6),di("div",{ref_key:"thumb",ref:o,class:q(Nt(u)),style:F(Nt(d))},null,6)],2))}}),[["__file","alpha-slider.vue"]]);var eC=ok(ur({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=dx("color-hue-slider"),n=Mi(),r=Mt(),o=Mt(),i=Mt(0),s=Mt(0),a=$i((()=>e.color.get("hue")));function l(t){if(!o.value||!r.value)return;const i=n.vnode.el.getBoundingClientRect(),{clientX:s,clientY:a}=ew(t);let l;if(e.vertical){let e=a-i.top;e=Math.min(e,i.height-r.value.offsetHeight/2),e=Math.max(r.value.offsetHeight/2,e),l=Math.round((e-r.value.offsetHeight/2)/(i.height-r.value.offsetHeight)*360)}else{let e=s-i.left;e=Math.min(e,i.width-r.value.offsetWidth/2),e=Math.max(r.value.offsetWidth/2,e),l=Math.round((e-r.value.offsetWidth/2)/(i.width-r.value.offsetWidth)*360)}e.color.set("hue",l)}function c(){i.value=function(){if(!r.value)return 0;const t=n.vnode.el;if(e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetWidth-r.value.offsetWidth/2)/360):0}(),s.value=function(){if(!r.value)return 0;const t=n.vnode.el;if(!e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetHeight-r.value.offsetHeight/2)/360):0}()}return Wn((()=>a.value),(()=>{c()})),Mr((()=>{if(!o.value||!r.value)return;const e={drag:e=>{l(e)},end:e=>{l(e)}};XE(o.value,e),XE(r.value,e),c()})),{bar:o,thumb:r,thumbLeft:i,thumbTop:s,hueValue:a,handleClick:function(e){e.target!==r.value&&l(e)},update:c,ns:t}}}),[["render",function(e,t,n,r,o,i){return Qo(),oi("div",{class:q([e.ns.b(),e.ns.is("vertical",e.vertical)])},[di("div",{ref:"bar",class:q(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),di("div",{ref:"thumb",class:q(e.ns.e("thumb")),style:F({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","hue-slider.vue"]]);const tC=jw({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:GS,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:Array},validateEvent:{type:Boolean,default:!0}}),nC={[qw]:e=>g(e)||Mg(e),[Kw]:e=>g(e)||Mg(e),activeChange:e=>g(e)||Mg(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},rC=Symbol("colorPickerContextKey"),oC=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},iC=function(e,t){var n;"string"==typeof(n=e)&&n.includes(".")&&1===Number.parseFloat(n)&&(e="100%");const r=function(e){return"string"==typeof e&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),r&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},sC={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},aC=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${sC[t]||t}${sC[n]||n}`},lC=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${aC(e)}${aC(t)}${aC(n)}`},cC={A:10,B:11,C:12,D:13,E:14,F:15},uC=function(e){return 2===e.length?16*(cC[e[0].toUpperCase()]||+e[0])+(cC[e[1].toUpperCase()]||+e[1]):cC[e[1].toUpperCase()]||+e[1]},dC=(e,t,n)=>{e=iC(e,255),t=iC(t,255),n=iC(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let i;const s=r,a=r-o,l=0===r?0:a/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/a+(t<n?6:0);break;case t:i=(n-e)/a+2;break;case n:i=(e-t)/a+4}i/=6}return{h:360*i,s:100*l,v:100*s}},pC=function(e,t,n){e=6*iC(e,360),t=iC(t,100),n=iC(n,100);const r=Math.floor(e),o=e-r,i=n*(1-t),s=n*(1-o*t),a=n*(1-(1-o)*t),l=r%6,c=[n,s,i,i,a,n][l],u=[a,n,n,s,i,i][l],d=[i,i,a,n,n,s][l];return{r:Math.round(255*c),g:Math.round(255*u),b:Math.round(255*d)}};class fC{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const t in e)u(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(1!==arguments.length||"object"!=typeof e)this[`_${e}`]=t,this.doOnChange();else for(const n in e)u(e,n)&&this.set(n,e[n])}get(e){return"alpha"===e?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return pC(this._hue,this._saturation,this._value)}fromString(e){if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();const t=(e,t,n)=>{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(e.includes("hsl")){const n=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:o}=function(e,t,n){n/=100;let r=t/=100;const o=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,r*=o<=1?o:2-o,{h:e,s:100*(0===n?2*r/(o+r):2*t/(n+t)),v:(n+t)/2*100}}(n[0],n[1],n[2]);t(e,r,o)}}else if(e.includes("hsv")){const n=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3&&t(n[0],n[1],n[2])}else if(e.includes("rgb")){const n=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:o}=dC(n[0],n[1],n[2]);t(e,r,o)}}else if(e.includes("#")){const n=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let r,o,i;3===n.length?(r=uC(n[0]+n[0]),o=uC(n[1]+n[1]),i=uC(n[2]+n[2])):6!==n.length&&8!==n.length||(r=uC(n.slice(0,2)),o=uC(n.slice(2,4)),i=uC(n.slice(4,6))),8===n.length?this._alpha=uC(n.slice(6))/255*100:3!==n.length&&6!==n.length||(this._alpha=100);const{h:s,s:a,v:l}=dC(r,o,i);t(s,a,l)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:r,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const r=oC(e,t/100,n/100);this.value=`hsla(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${lC(pC(e,t,n))}${aC(255*r/100)}`;break;default:{const{r:r,g:o,b:i}=pC(e,t,n);this.value=`rgba(${r}, ${o}, ${i}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const r=oC(e,t/100,n/100);this.value=`hsl(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(n)}%)`;break;case"rgb":{const{r:r,g:o,b:i}=pC(e,t,n);this.value=`rgb(${r}, ${o}, ${i})`;break}default:this.value=lC(pC(e,t,n))}}}const hC=["onClick"];var mC=ok(ur({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=dx("color-predefine"),{currentColor:n}=po(rC),r=Mt(o(e.colors,e.color));function o(e,t){return e.map((e=>{const n=new fC;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}return Wn((()=>n.value),(e=>{const t=new fC;t.fromString(e),r.value.forEach((e=>{e.selected=t.compare(e)}))})),Fn((()=>{r.value=o(e.colors,e.color)})),{rgbaColors:r,handleSelect:function(t){e.color.fromString(e.colors[t])},ns:t}}}),[["render",function(e,t,n,r,o,i){return Qo(),oi("div",{class:q(e.ns.b())},[di("div",{class:q(e.ns.e("colors"))},[(Qo(!0),oi(Ko,null,Lr(e.rgbaColors,((t,n)=>(Qo(),oi("div",{key:e.colors[n],class:q([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(n)},[di("div",{style:F({backgroundColor:t.value})},null,4)],10,hC)))),128))],2)],2)}],["__file","predefine.vue"]]);const gC=ur({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=dx("color-svpanel"),n=Mi(),r=Mt(0),o=Mt(0),i=Mt("hsl(0, 100%, 50%)"),s=$i((()=>({hue:e.color.get("hue"),value:e.color.get("value")})));function a(){const t=e.color.get("saturation"),s=e.color.get("value"),a=n.vnode.el,{clientWidth:l,clientHeight:c}=a;o.value=t*l/100,r.value=(100-s)*c/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(t){const i=n.vnode.el.getBoundingClientRect(),{clientX:s,clientY:a}=ew(t);let l=s-i.left,c=a-i.top;l=Math.max(0,l),l=Math.min(l,i.width),c=Math.max(0,c),c=Math.min(c,i.height),o.value=l,r.value=c,e.color.set({saturation:l/i.width*100,value:100-c/i.height*100})}return Wn((()=>s.value),(()=>{a()})),Mr((()=>{XE(n.vnode.el,{drag:e=>{l(e)},end:e=>{l(e)}}),a()})),{cursorTop:r,cursorLeft:o,background:i,colorValue:s,handleDrag:l,update:a,ns:t}}}),vC=[di("div",null,null,-1)];var yC=ok(gC,[["render",function(e,t,n,r,o,i){return Qo(),oi("div",{class:q(e.ns.b()),style:F({backgroundColor:e.background})},[di("div",{class:q(e.ns.e("white"))},null,2),di("div",{class:q(e.ns.e("black"))},null,2),di("div",{class:q(e.ns.e("cursor")),style:F({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},vC,6)],6)}],["__file","sv-panel.vue"]]);const bC=["onKeydown"],wC=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];const xC=$w(ok(ur({...ur({name:"ElColorPicker"}),props:tC,emits:nC,setup(e,{expose:t,emit:n}){const r=e,{t:o}=sx(),i=dx("color"),{formItem:s}=dk(),a=ck(),l=uk(),{inputId:c,isLabeledByFormItem:u}=pk(r,{formItemContext:s}),d=Mt(),p=Mt(),f=Mt(),h=Mt(),m=Mt(),g=Mt(),{isFocused:v,handleFocus:y,handleBlur:b}=XS(m,{beforeBlur(e){var t;return null==(t=h.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){N(!1),D()}}),w=e=>{if(l.value)return U();y(e)};let x=!0;const S=ut(new fC({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),k=Mt(!1),O=Mt(!1),E=Mt(""),C=$i((()=>r.modelValue||O.value?function(e,t){if(!(e instanceof fC))throw new TypeError("color should be instance of _color Class");const{r:n,g:r,b:o}=e.toRgb();return t?`rgba(${n}, ${r}, ${o}, ${e.get("alpha")/100})`:`rgb(${n}, ${r}, ${o})`}(S,r.showAlpha):"transparent")),M=$i((()=>r.modelValue||O.value?S.value:"")),A=$i((()=>u.value?void 0:r.label||o("el.colorpicker.defaultLabel"))),T=$i((()=>u.value?null==s?void 0:s.labelId:void 0)),_=$i((()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",a.value),i.is("focused",v.value)]));function N(e){k.value=e}const R=yg(N,100,{leading:!0});function I(){l.value||N(!0)}function P(){R(!1),D()}function D(){en((()=>{r.modelValue?S.fromString(r.modelValue):(S.value="",en((()=>{O.value=!1})))}))}function L(){l.value||R(!k.value)}function j(){S.fromString(E.value)}function B(){const e=S.value;n(qw,e),n("change",e),r.validateEvent&&(null==s||s.validate("change").catch((e=>{}))),R(!1),en((()=>{const e=new fC({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});S.compare(e)||D()}))}function V(){R(!1),n(qw,null),n("change",null),null!==r.modelValue&&r.validateEvent&&(null==s||s.validate("change").catch((e=>{}))),D()}function z(e){if(k.value&&(P(),v.value)){const t=new FocusEvent("focus",e);b(t)}}function $(e){e.preventDefault(),e.stopPropagation(),N(!1),D()}function H(e){switch(e.code){case Ww.enter:case Ww.space:e.preventDefault(),e.stopPropagation(),I(),g.value.focus();break;case Ww.esc:$(e)}}function U(){m.value.blur()}return Mr((()=>{r.modelValue&&(E.value=M.value)})),Wn((()=>r.modelValue),(e=>{e?e&&e!==S.value&&(x=!1,S.fromString(e)):O.value=!1})),Wn((()=>M.value),(e=>{E.value=e,x&&n("activeChange",e),x=!0})),Wn((()=>S.value),(()=>{r.modelValue||O.value||(O.value=!0)})),Wn((()=>k.value),(()=>{en((()=>{var e,t,n;null==(e=d.value)||e.update(),null==(t=p.value)||t.update(),null==(n=f.value)||n.update()}))})),uo(rC,{currentColor:M}),t({color:S,show:I,hide:P,focus:function(){m.value.focus()},blur:U}),(e,t)=>(Qo(),ii(Nt(NO),{ref_key:"popper",ref:h,visible:k.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[Nt(i).be("picker","panel"),Nt(i).b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${Nt(i).namespace.value}-zoom-in-top`,persistent:"",onHide:t[2]||(t[2]=e=>N(!1))},{content:yn((()=>[Yn((Qo(),oi("div",{onKeydown:ga($,["esc"])},[di("div",{class:q(Nt(i).be("dropdown","main-wrapper"))},[pi(eC,{ref_key:"hue",ref:d,class:"hue-slider",color:Nt(S),vertical:""},null,8,["color"]),pi(yC,{ref_key:"sv",ref:p,color:Nt(S)},null,8,["color"])],2),e.showAlpha?(Qo(),ii(QE,{key:0,ref_key:"alpha",ref:f,color:Nt(S)},null,8,["color"])):vi("v-if",!0),e.predefine?(Qo(),ii(mC,{key:1,ref:"predefine",color:Nt(S),colors:e.predefine},null,8,["color","colors"])):vi("v-if",!0),di("div",{class:q(Nt(i).be("dropdown","btns"))},[di("span",{class:q(Nt(i).be("dropdown","value"))},[pi(Nt(Sk),{ref_key:"inputRef",ref:g,modelValue:E.value,"onUpdate:modelValue":t[0]||(t[0]=e=>E.value=e),"validate-event":!1,size:"small",onKeyup:ga(j,["enter"]),onBlur:j},null,8,["modelValue","onKeyup"])],2),pi(Nt(oE),{class:q(Nt(i).be("dropdown","link-btn")),text:"",size:"small",onClick:V},{default:yn((()=>[mi(X(Nt(o)("el.colorpicker.clear")),1)])),_:1},8,["class"]),pi(Nt(oE),{plain:"",size:"small",class:q(Nt(i).be("dropdown","btn")),onClick:B},{default:yn((()=>[mi(X(Nt(o)("el.colorpicker.confirm")),1)])),_:1},8,["class"])],2)],40,bC)),[[Nt(lE),z]])])),default:yn((()=>[di("div",{id:Nt(c),ref_key:"triggerRef",ref:m,class:q(Nt(_)),role:"button","aria-label":Nt(A),"aria-labelledby":Nt(T),"aria-description":Nt(o)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":Nt(l),tabindex:Nt(l)?-1:e.tabindex,onKeydown:H,onFocus:w,onBlur:t[1]||(t[1]=(...e)=>Nt(b)&&Nt(b)(...e))},[Nt(l)?(Qo(),oi("div",{key:0,class:q(Nt(i).be("picker","mask"))},null,2)):vi("v-if",!0),di("div",{class:q(Nt(i).be("picker","trigger")),onClick:L},[di("span",{class:q([Nt(i).be("picker","color"),Nt(i).is("alpha",e.showAlpha)])},[di("span",{class:q(Nt(i).be("picker","color-inner")),style:F({backgroundColor:Nt(C)})},[Yn(pi(Nt(sk),{class:q([Nt(i).be("picker","icon"),Nt(i).is("icon-arrow-down")])},{default:yn((()=>[pi(Nt(bw))])),_:1},8,["class"]),[[xs,e.modelValue||O.value]]),Yn(pi(Nt(sk),{class:q([Nt(i).be("picker","empty"),Nt(i).is("icon-close")])},{default:yn((()=>[pi(Nt(Ew))])),_:1},8,["class"]),[[xs,!e.modelValue&&!O.value]])],6)],2)],2)],42,wC)])),_:1},8,["visible","popper-class","transition"]))}}),[["__file","color-picker.vue"]]));var SC=ok(ur({inheritAttrs:!1}),[["render",function(e,t,n,r,o,i){return jr(e.$slots,"default")}],["__file","collection.vue"]]);var kC=ok(ur({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(e,t,n,r,o,i){return jr(e.$slots,"default")}],["__file","collection-item.vue"]]);const OC=jw({trigger:bO.trigger,effect:{...yO.effect,default:"light"},type:{type:String},placement:{type:String,default:"bottom"},popperOptions:{type:Object,default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Object},teleported:yO.teleported});jw({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Bw}}),jw({onKeydown:{type:Function}}),(e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),i={...SC,name:t,setup(){const e=Mt(null),t=new Map;uo(r,{itemMap:t,getItems:()=>{const n=Nt(e);if(!n)return[];const r=Array.from(n.querySelectorAll("[data-el-collection-item]"));return[...t.values()].sort(((e,t)=>r.indexOf(e.ref)-r.indexOf(t.ref)))},collectionRef:e})}},s={...kC,name:n,setup(e,{attrs:t}){const n=Mt(null),i=po(r,void 0);uo(o,{collectionItemRef:n}),Mr((()=>{const e=Nt(n);e&&i.itemMap.set(e,{ref:e,...t})})),_r((()=>{const e=Nt(n);i.itemMap.delete(e)}))}}})("Dropdown");const EC=jw({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:GS,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||rw(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),CC={[Kw]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Jw]:e=>rw(e)||Mg(e),[qw]:e=>rw(e)||Mg(e)},MC=["aria-label","onKeydown"],AC=["aria-label","onKeydown"];const TC=$w(ok(ur({...ur({name:"ElInputNumber"}),props:EC,emits:CC,setup(e,{expose:t,emit:n}){const r=e,{t:o}=sx(),i=dx("input-number"),s=Mt(),a=ut({currentValue:r.modelValue,userInput:null}),{formItem:l}=dk(),c=$i((()=>rw(r.modelValue)&&r.modelValue<=r.min)),u=$i((()=>rw(r.modelValue)&&r.modelValue>=r.max)),d=$i((()=>{const e=y(r.step);return tw(r.precision)?Math.max(y(r.modelValue),e):(r.precision,r.precision)})),p=$i((()=>r.controls&&"right"===r.controlsPosition)),f=ck(),h=uk(),m=$i((()=>{if(null!==a.userInput)return a.userInput;let e=a.currentValue;if(Mg(e))return"";if(rw(e)){if(Number.isNaN(e))return"";tw(r.precision)||(e=e.toFixed(r.precision))}return e})),v=(e,t)=>{if(tw(t)&&(t=d.value),0===t)return Math.round(e);let n=String(e);const r=n.indexOf(".");if(-1===r)return e;if(!n.replace(".","").split("")[r+t])return e;const o=n.length;return"5"===n.charAt(o-1)&&(n=`${n.slice(0,Math.max(0,o-1))}6`),Number.parseFloat(Number(n).toFixed(t))},y=e=>{if(Mg(e))return 0;const t=e.toString(),n=t.indexOf(".");let r=0;return-1!==n&&(r=t.length-n-1),r},b=(e,t=1)=>rw(e)?v(e+r.step*t):a.currentValue,w=()=>{if(r.readonly||h.value||u.value)return;const e=Number(m.value)||0,t=b(e);k(t),n(Jw,a.currentValue),A()},x=()=>{if(r.readonly||h.value||c.value)return;const e=Number(m.value)||0,t=b(e,-1);k(t),n(Jw,a.currentValue),A()},S=(e,t)=>{const{max:o,min:i,step:s,precision:a,stepStrictly:l,valueOnClear:c}=r;o<i&&cw("InputNumber","min should not be greater than max.");let u=Number(e);if(Mg(e)||Number.isNaN(u))return null;if(""===e){if(null===c)return null;u=g(c)?{min:i,max:o}[c]:c}return l&&(u=v(Math.round(u/s)*s,a)),tw(a)||(u=v(u,a)),(u>o||u<i)&&(u=u>o?o:i,t&&n(qw,u)),u},k=(e,t=!0)=>{var o;const i=a.currentValue,s=S(e);t?i===s&&e||(a.userInput=null,n(qw,s),i!==s&&n(Kw,s,i),r.validateEvent&&(null==(o=null==l?void 0:l.validate)||o.call(l,"change").catch((e=>{}))),a.currentValue=s):n(qw,s)},O=e=>{a.userInput=e;const t=""===e?null:Number(e);n(Jw,t),k(t,!1)},E=e=>{const t=""!==e?Number(e):"";(rw(t)&&!Number.isNaN(t)||""===e)&&k(t),A(),a.userInput=null},C=e=>{n("focus",e)},M=e=>{var t;a.userInput=null,n("blur",e),r.validateEvent&&(null==(t=null==l?void 0:l.validate)||t.call(l,"blur").catch((e=>{})))},A=()=>{a.currentValue!==r.modelValue&&(a.currentValue=r.modelValue)},T=e=>{document.activeElement===e.target&&e.preventDefault()};return Wn((()=>r.modelValue),((e,t)=>{const n=S(e,!0);null===a.userInput&&n!==t&&(a.currentValue=n)}),{immediate:!0}),Mr((()=>{var e;const{min:t,max:o,modelValue:i}=r,l=null==(e=s.value)?void 0:e.input;if(l.setAttribute("role","spinbutton"),Number.isFinite(o)?l.setAttribute("aria-valuemax",String(o)):l.removeAttribute("aria-valuemax"),Number.isFinite(t)?l.setAttribute("aria-valuemin",String(t)):l.removeAttribute("aria-valuemin"),l.setAttribute("aria-valuenow",a.currentValue||0===a.currentValue?String(a.currentValue):""),l.setAttribute("aria-disabled",String(h.value)),!rw(i)&&null!=i){let e=Number(i);Number.isNaN(e)&&(e=null),n(qw,e)}})),Tr((()=>{var e,t;const n=null==(e=s.value)?void 0:e.input;null==n||n.setAttribute("aria-valuenow",`${null!=(t=a.currentValue)?t:""}`)})),t({focus:()=>{var e,t;null==(t=null==(e=s.value)?void 0:e.focus)||t.call(e)},blur:()=>{var e,t;null==(t=null==(e=s.value)?void 0:e.blur)||t.call(e)}}),(e,t)=>(Qo(),oi("div",{class:q([Nt(i).b(),Nt(i).m(Nt(f)),Nt(i).is("disabled",Nt(h)),Nt(i).is("without-controls",!e.controls),Nt(i).is("controls-right",Nt(p))]),onDragstart:t[0]||(t[0]=ha((()=>{}),["prevent"]))},[e.controls?Yn((Qo(),oi("span",{key:0,role:"button","aria-label":Nt(o)("el.inputNumber.decrease"),class:q([Nt(i).e("decrease"),Nt(i).is("disabled",Nt(c))]),onKeydown:ga(x,["enter"])},[pi(Nt(sk),null,{default:yn((()=>[Nt(p)?(Qo(),ii(Nt(bw),{key:0})):(Qo(),ii(Nt(Tw),{key:1}))])),_:1})],42,MC)),[[Nt(dE),x]]):vi("v-if",!0),e.controls?Yn((Qo(),oi("span",{key:1,role:"button","aria-label":Nt(o)("el.inputNumber.increase"),class:q([Nt(i).e("increase"),Nt(i).is("disabled",Nt(u))]),onKeydown:ga(w,["enter"])},[pi(Nt(sk),null,{default:yn((()=>[Nt(p)?(Qo(),ii(Nt(xw),{key:0})):(Qo(),ii(Nt(_w),{key:1}))])),_:1})],42,AC)),[[Nt(dE),w]]):vi("v-if",!0),pi(Nt(Sk),{id:e.id,ref_key:"input",ref:s,type:"number",step:e.step,"model-value":Nt(m),placeholder:e.placeholder,readonly:e.readonly,disabled:Nt(h),size:Nt(f),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onWheel:T,onKeydown:[ga(ha(w,["prevent"]),["up"]),ga(ha(x,["prevent"]),["down"])],onBlur:M,onFocus:C,onInput:O,onChange:E},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}}),[["__file","input-number.vue"]])),_C=Symbol("ElSelectGroup"),NC=Symbol("ElSelect");const RC=ur({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=dx("select"),n=BS(),r=$i((()=>[t.be("dropdown","item"),t.is("disabled",Nt(a)),t.is("selected",Nt(s)),t.is("hovering",Nt(p))])),o=ut({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:s,isDisabled:a,select:l,hoverItem:c,updateOption:u}=function(e,t){const n=po(NC),r=po(_C,{disabled:!1}),o=$i((()=>n.props.multiple?u(n.props.modelValue,e.value):u([n.props.modelValue],e.value))),i=$i((()=>{if(n.props.multiple){const e=n.props.modelValue||[];return!o.value&&e.length>=n.props.multipleLimit&&n.props.multipleLimit>0}return!1})),s=$i((()=>e.label||(y(e.value)?"":e.value))),a=$i((()=>e.value||e.label||"")),l=$i((()=>e.disabled||t.groupDisabled||i.value)),c=Mi(),u=(t=[],r)=>{if(y(e.value)){const e=n.props.valueKey;return t&&t.some((t=>yt(zh(t,e))===zh(r,e)))}return t&&t.includes(r)};return Wn((()=>s.value),(()=>{e.created||n.props.remote||n.setSelected()})),Wn((()=>e.value),((t,r)=>{const{remote:o,valueKey:i}=n.props;if(Cg(t,r)||(n.onOptionDestroy(r,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!o){if(i&&y(t)&&y(r)&&t[i]===r[i])return;n.setSelected()}})),Wn((()=>r.disabled),(()=>{t.groupDisabled=r.disabled}),{immediate:!0}),{select:n,currentLabel:s,currentValue:a,itemSelected:o,isDisabled:l,hoverItem:()=>{e.disabled||r.disabled||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},updateOption:n=>{const r=new RegExp(((e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"))(n),"i");t.visible=r.test(s.value)||e.created}}}(e,o),{visible:d,hover:p}=Lt(o),f=Mi().proxy;return l.onOptionCreate(f),_r((()=>{const e=f.value,{selected:t}=l.states,n=(l.props.multiple?t:[t]).some((e=>e.value===f.value));en((()=>{l.states.cachedOptions.get(e)!==f||n||l.states.cachedOptions.delete(e)})),l.onOptionDestroy(e,f)})),{ns:t,id:n,containerKls:r,currentLabel:i,itemSelected:s,isDisabled:a,select:l,hoverItem:c,updateOption:u,visible:d,hover:p,selectOptionClick:function(){!0!==e.disabled&&!0!==o.groupDisabled&&l.handleOptionSelect(f)},states:o}}}),IC=["id","aria-disabled","aria-selected"];var PC=ok(RC,[["render",function(e,t,n,r,o,i){return Yn((Qo(),oi("li",{id:e.id,class:q(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=ha(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[jr(e.$slots,"default",{},(()=>[di("span",null,X(e.currentLabel),1)]))],42,IC)),[[xs,e.visible]])}],["__file","option.vue"]]);var DC=ok(ur({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=po(NC),t=dx("select"),n=$i((()=>e.props.popperClass)),r=$i((()=>e.props.multiple)),o=$i((()=>e.props.fitInputWidth)),i=Mt("");function s(){var t;i.value=`${null==(t=e.selectRef)?void 0:t.offsetWidth}px`}return Mr((()=>{s(),$b(e.selectRef,s)})),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:o}}}),[["render",function(e,t,n,r,o,i){return Qo(),oi("div",{class:q([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:F({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(Qo(),oi("div",{key:0,class:q(e.ns.be("dropdown","header"))},[jr(e.$slots,"header")],2)):vi("v-if",!0),jr(e.$slots,"default"),e.$slots.footer?(Qo(),oi("div",{key:1,class:q(e.ns.be("dropdown","footer"))},[jr(e.$slots,"footer")],2)):vi("v-if",!0)],6)}],["__file","select-dropdown.vue"]]);const LC=(e,t)=>{const{t:n}=sx(),r=BS(),o=dx("select"),i=dx("input"),s=ut({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),a=Mt(null),l=Mt(null),c=Mt(null),u=Mt(null),p=Mt(null),f=Mt(null),h=Mt(null),g=Mt(null),v=Mt(null),b=Mt(null),w=Mt(null),x=Mt(null),{wrapperRef:k,isFocused:O,handleFocus:E,handleBlur:C}=XS(p,{afterFocus(){e.automaticDropdown&&!M.value&&(M.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(e){var t,n;return(null==(t=c.value)?void 0:t.isFocusInsideContent(e))||(null==(n=u.value)?void 0:n.isFocusInsideContent(e))},afterBlur(){M.value=!1,s.menuVisibleOnFocus=!1}}),M=Mt(!1),A=Mt(),{form:T,formItem:_}=dk(),{inputId:N}=pk(e,{formItemContext:_}),R=$i((()=>e.disabled||(null==T?void 0:T.disabled))),I=$i((()=>H.value.some((e=>""===e.value)))),P=$i((()=>e.multiple?d(e.modelValue)&&e.modelValue.length>0:!Mg(e.modelValue)&&(""!==e.modelValue||I.value))),D=$i((()=>e.clearable&&!R.value&&s.inputHovering&&P.value)),L=$i((()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon)),j=$i((()=>o.is("reverse",L.value&&M.value))),B=$i((()=>(null==_?void 0:_.validateState)||"")),V=$i((()=>Fw[B.value])),z=$i((()=>e.remote?300:0)),F=$i((()=>e.loading?e.loadingText||n("el.select.loading"):!(e.remote&&!s.inputValue&&0===s.options.size)&&(e.filterable&&s.inputValue&&s.options.size>0&&0===$.value?e.noMatchText||n("el.select.noMatch"):0===s.options.size?e.noDataText||n("el.select.noData"):null))),$=$i((()=>H.value.filter((e=>e.visible)).length)),H=$i((()=>{const e=Array.from(s.options.values()),t=[];return s.optionValues.forEach((n=>{const r=e.findIndex((e=>e.value===n));r>-1&&t.push(e[r])})),t.length>=e.length?t:e})),U=$i((()=>Array.from(s.cachedOptions.values()))),W=$i((()=>{const t=H.value.filter((e=>!e.created)).some((e=>e.currentLabel===s.inputValue));return e.filterable&&e.allowCreate&&""!==s.inputValue&&!t})),q=()=>{e.filterable&&m(e.filterMethod)||e.filterable&&e.remote&&m(e.remoteMethod)||H.value.forEach((e=>{e.updateOption(s.inputValue)}))},K=ck(),J=$i((()=>["small"].includes(K.value)?"small":"default")),G=$i({get:()=>M.value&&!1!==F.value,set(e){M.value=e}}),Y=$i((()=>d(e.modelValue)?0===e.modelValue.length&&!s.inputValue:!e.filterable||!s.inputValue)),X=$i((()=>{var t;const r=null!=(t=e.placeholder)?t:n("el.select.placeholder");return e.multiple||!P.value?r:s.selectedLabel}));Wn((()=>e.modelValue),((t,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",Z("")),ee(),!Cg(t,n)&&e.validateEvent&&(null==_||_.validate("change").catch((e=>{})))}),{flush:"post",deep:!0}),Wn((()=>M.value),(e=>{e?Z(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",e)})),Wn((()=>s.options.entries()),(()=>{var t;if(!Ob)return;const n=(null==(t=a.value)?void 0:t.querySelectorAll("input"))||[];(e.filterable||e.defaultFirstOption||tw(e.modelValue))&&Array.from(n).includes(document.activeElement)||ee(),e.defaultFirstOption&&(e.filterable||e.remote)&&$.value&&Q()}),{flush:"post"}),Wn((()=>s.hoveringIndex),(e=>{rw(e)&&e>-1?A.value=H.value[e]||{}:A.value={},H.value.forEach((e=>{e.hover=A.value===e}))})),Fn((()=>{s.isBeforeHide||q()}));const Z=t=>{s.previousQuery!==t&&(s.previousQuery=t,e.filterable&&m(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&m(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&$.value?en(Q):en(ne))},Q=()=>{const e=H.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),t=e.find((e=>e.created)),n=e[0];s.hoveringIndex=fe(H.value,t||n)},ee=()=>{if(!e.multiple){const t=te(e.modelValue);return s.selectedLabel=t.currentLabel,void(s.selected=t)}s.selectedLabel="";const t=[];d(e.modelValue)&&e.modelValue.forEach((e=>{t.push(te(e))})),s.selected=t},te=t=>{let n;const r="object"===S(t).toLowerCase(),o="null"===S(t).toLowerCase(),i="undefined"===S(t).toLowerCase();for(let a=s.cachedOptions.size-1;a>=0;a--){const o=U.value[a];if(r?zh(o.value,e.valueKey)===zh(t,e.valueKey):o.value===t){n={value:t,currentLabel:o.currentLabel,isDisabled:o.isDisabled};break}}if(n)return n;return{value:t,currentLabel:r?t.label:o||i?"":t}},ne=()=>{e.multiple?s.hoveringIndex=H.value.findIndex((e=>s.selected.some((t=>Se(t)===Se(e))))):s.hoveringIndex=H.value.findIndex((e=>Se(e)===Se(s.selected)))},re=()=>{s.calculatorWidth=f.value.getBoundingClientRect().width},oe=()=>{var e,t;null==(t=null==(e=c.value)?void 0:e.updatePopper)||t.call(e)},ie=()=>{var e,t;null==(t=null==(e=u.value)?void 0:e.updatePopper)||t.call(e)},se=()=>{s.inputValue.length>0&&!M.value&&(M.value=!0),Z(s.inputValue)},ae=t=>{if(s.inputValue=t.target.value,!e.remote)return se();le()},le=yg((()=>{se()}),z.value),ce=n=>{Cg(e.modelValue,n)||t(Kw,n)},ue=e=>function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=af(n),o=n<0?kg(r+o,0):Og(o,r-1)),function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}(e,pg(t),o,!0)}(e,(e=>!s.disabledOptions.has(e))),de=n=>{n.stopPropagation();const r=e.multiple?[]:void 0;if(e.multiple)for(const e of s.selected)e.isDisabled&&r.push(e.value);t(qw,r),ce(r),s.hoveringIndex=-1,M.value=!1,t("clear"),be()},pe=n=>{if(e.multiple){const r=(e.modelValue||[]).slice(),o=fe(r,n.value);o>-1?r.splice(o,1):(e.multipleLimit<=0||r.length<e.multipleLimit)&&r.push(n.value),t(qw,r),ce(r),n.created&&Z(""),e.filterable&&!e.reserveKeyword&&(s.inputValue="")}else t(qw,n.value),ce(n.value),M.value=!1;be(),M.value||en((()=>{he(n)}))},fe=(t=[],n)=>{if(!y(n))return t.indexOf(n);const r=e.valueKey;let o=-1;return t.some(((e,t)=>yt(zh(e,r))===zh(n,r)&&(o=t,!0))),o},he=e=>{var t,n,r,i,s;const a=d(e)?e[0]:e;let l=null;if(null==a?void 0:a.value){const e=H.value.filter((e=>e.value===a.value));e.length>0&&(l=e[0].$el)}if(c.value&&l){const e=null==(i=null==(r=null==(n=null==(t=c.value)?void 0:t.popperRef)?void 0:n.contentRef)?void 0:r.querySelector)?void 0:i.call(r,`.${o.be("dropdown","wrap")}`);e&&function(e,t){if(!Ob)return;if(!t)return void(e.scrollTop=0);const n=[];let r=t.offsetParent;for(;null!==r&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const o=t.offsetTop+n.reduce(((e,t)=>e+t.offsetTop),0),i=o+t.offsetHeight,s=e.scrollTop,a=s+e.clientHeight;o<s?e.scrollTop=o:i>a&&(e.scrollTop=i-e.clientHeight)}(e,l)}null==(s=x.value)||s.handleScroll()},{handleCompositionStart:me,handleCompositionUpdate:ge,handleCompositionEnd:ve}=function(e){const t=Mt(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:e=>{const n=e.target.value,r=n[n.length-1]||"";t.value=!Xw(r)},handleCompositionEnd:n=>{t.value&&(t.value=!1,m(e)&&e(n))}}}((e=>ae(e))),ye=$i((()=>{var e,t;return null==(t=null==(e=c.value)?void 0:e.popperRef)?void 0:t.contentRef})),be=()=>{var e;null==(e=p.value)||e.focus()},we=e=>{if(M.value=!1,O.value){const t=new FocusEvent("focus",e);en((()=>C(t)))}},xe=()=>{R.value||(s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:M.value=!M.value)},Se=t=>y(t.value)?zh(t.value,e.valueKey):t.value,ke=$i((()=>H.value.filter((e=>e.visible)).every((e=>e.disabled)))),Oe=$i((()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[])),Ee=$i((()=>e.multiple&&e.collapseTags?s.selected.slice(e.maxCollapseTags):[])),Ce=e=>{if(M.value){if(0!==s.options.size&&0!==$.value&&!ke.value){"next"===e?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):"prev"===e&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const t=H.value[s.hoveringIndex];!0!==t.disabled&&!0!==t.states.groupDisabled&&t.visible||Ce(e),en((()=>he(A.value)))}}else M.value=!0},Me=$i((()=>{const t=(()=>{if(!l.value)return 0;const e=window.getComputedStyle(l.value);return Number.parseFloat(e.gap||"6px")})();return{maxWidth:`${w.value&&1===e.maxCollapseTags?s.selectionWidth-s.collapseItemWidth-t:s.selectionWidth}px`}})),Ae=$i((()=>({maxWidth:`${s.selectionWidth}px`}))),Te=$i((()=>({width:`${Math.max(s.calculatorWidth,11)}px`})));return e.multiple&&!d(e.modelValue)&&t(qw,[]),!e.multiple&&d(e.modelValue)&&t(qw,""),$b(l,(()=>{s.selectionWidth=l.value.getBoundingClientRect().width})),$b(f,re),$b(v,oe),$b(k,oe),$b(b,ie),$b(w,(()=>{s.collapseItemWidth=w.value.getBoundingClientRect().width})),Mr((()=>{ee()})),{inputId:N,contentId:r,nsSelect:o,nsInput:i,states:s,isFocused:O,expanded:M,optionsArray:H,hoverOption:A,selectSize:K,filteredOptionsCount:$,resetCalculatorWidth:re,updateTooltip:oe,updateTagTooltip:ie,debouncedOnInputChange:le,onInput:ae,deletePrevTag:n=>{if(e.multiple&&n.code!==Ww.delete&&n.target.value.length<=0){const n=e.modelValue.slice(),r=ue(n);if(r<0)return;n.splice(r,1),t(qw,n),ce(n)}},deleteTag:(n,r)=>{const o=s.selected.indexOf(r);if(o>-1&&!R.value){const n=e.modelValue.slice();n.splice(o,1),t(qw,n),ce(n),t("remove-tag",r.value)}n.stopPropagation(),be()},deleteSelected:de,handleOptionSelect:pe,scrollToOption:he,hasModelValue:P,shouldShowPlaceholder:Y,currentPlaceholder:X,showClose:D,iconComponent:L,iconReverse:j,validateState:B,validateIcon:V,showNewOption:W,updateOptions:q,collapseTagSize:J,setSelected:ee,selectDisabled:R,emptyText:F,handleCompositionStart:me,handleCompositionUpdate:ge,handleCompositionEnd:ve,onOptionCreate:e=>{s.options.set(e.value,e),s.cachedOptions.set(e.value,e),e.disabled&&s.disabledOptions.set(e.value,e)},onOptionDestroy:(e,t)=>{s.options.get(e)===t&&s.options.delete(e)},handleMenuEnter:()=>{en((()=>he(s.selected)))},handleFocus:E,focus:be,blur:()=>{we()},handleBlur:C,handleClearClick:e=>{de(e)},handleClickOutside:we,handleEsc:()=>{s.inputValue.length>0?s.inputValue="":M.value=!1},toggleMenu:xe,selectOption:()=>{M.value?H.value[s.hoveringIndex]&&pe(H.value[s.hoveringIndex]):xe()},getValueKey:Se,navigateOptions:Ce,dropdownMenuVisible:G,showTagList:Oe,collapseTagList:Ee,tagStyle:Me,collapseTagStyle:Ae,inputStyle:Te,popperRef:ye,inputRef:p,tooltipRef:c,tagTooltipRef:u,calculatorRef:f,prefixRef:h,suffixRef:g,selectRef:a,wrapperRef:k,selectionRef:l,scrollbarRef:x,menuRef:v,tagMenuRef:b,collapseItemRef:w}};var jC=ur({name:"ElOptions",setup(e,{slots:t}){const n=po(NC);let r=[];return()=>{var e,o;const i=null==(e=t.default)?void 0:e.call(t),s=[];return i.length&&function e(t){d(t)&&t.forEach((t=>{var n,r,o,i;const a=null==(n=(null==t?void 0:t.type)||{})?void 0:n.name;"ElOptionGroup"===a?e(g(t.children)||d(t.children)||!m(null==(r=t.children)?void 0:r.default)?t.children:null==(o=t.children)?void 0:o.default()):"ElOption"===a?s.push(null==(i=t.props)?void 0:i.value):d(t.children)&&e(t.children)}))}(null==(o=i[0])?void 0:o.children),Cg(s,r)||(r=s,n&&(n.states.optionValues=s)),i}}});const BC=jw({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:GS,effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:yO.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Bw,default:Ow},fitInputWidth:Boolean,suffixIcon:{type:Bw,default:bw},tagType:{...qE.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:String,values:Mx,default:"bottom-start"},fallbackPlacements:{type:Array,default:["bottom-start","top-start","right","left"]},ariaLabel:{type:String,default:void 0}}),VC="ElSelect",zC=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],FC=["textContent"];var $C=ok(ur({name:VC,componentName:VC,components:{ElInput:Sk,ElSelectMenu:DC,ElOption:PC,ElOptions:jC,ElTag:JE,ElScrollbar:_k,ElTooltip:NO,ElIcon:sk},directives:{ClickOutside:lE},props:BC,emits:[qw,Kw,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=LC(e,t);return uo(NC,ut({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),[["render",function(e,t,n,r,o,i){const s=En("el-tag"),a=En("el-tooltip"),l=En("el-icon"),c=En("el-option"),u=En("el-options"),d=En("el-scrollbar"),p=En("el-select-menu"),f=An("click-outside");return Yn((Qo(),oi("div",{ref:"selectRef",class:q([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=t=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=t=>e.states.inputHovering=!1),onClick:t[16]||(t[16]=ha(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},[pi(a,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[13]||(t[13]=t=>e.states.isBeforeHide=!1)},{default:yn((()=>{var n;return[di("div",{ref:"wrapperRef",class:q([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(Qo(),oi("div",{key:0,ref:"prefixRef",class:q(e.nsSelect.e("prefix"))},[jr(e.$slots,"prefix")],2)):vi("v-if",!0),di("div",{ref:"selectionRef",class:q([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?jr(e.$slots,"tag",{key:0},(()=>[(Qo(!0),oi(Ko,null,Lr(e.showTagList,(t=>(Qo(),oi("div",{key:e.getValueKey(t),class:q(e.nsSelect.e("selected-item"))},[pi(s,{closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:F(e.tagStyle),onClose:n=>e.deleteTag(n,t)},{default:yn((()=>[di("span",{class:q(e.nsSelect.e("tags-text"))},X(t.currentLabel),3)])),_:2},1032,["closable","size","type","style","onClose"])],2)))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(Qo(),ii(a,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:yn((()=>[di("div",{ref:"collapseItemRef",class:q(e.nsSelect.e("selected-item"))},[pi(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:F(e.collapseTagStyle)},{default:yn((()=>[di("span",{class:q(e.nsSelect.e("tags-text"))}," + "+X(e.states.selected.length-e.maxCollapseTags),3)])),_:1},8,["size","type","style"])],2)])),content:yn((()=>[di("div",{ref:"tagMenuRef",class:q(e.nsSelect.e("selection"))},[(Qo(!0),oi(Ko,null,Lr(e.collapseTagList,(t=>(Qo(),oi("div",{key:e.getValueKey(t),class:q(e.nsSelect.e("selected-item"))},[pi(s,{class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:yn((()=>[di("span",{class:q(e.nsSelect.e("tags-text"))},X(t.currentLabel),3)])),_:2},1032,["closable","size","type","onClose"])],2)))),128))],2)])),_:1},8,["disabled","effect","teleported"])):vi("v-if",!0)])):vi("v-if",!0),e.selectDisabled?vi("v-if",!0):(Qo(),oi("div",{key:1,class:q([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[Yn(di("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=t=>e.states.inputValue=t),type:"text",class:q([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:F(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":(null==(n=e.hoverOption)?void 0:n.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onKeydown:[t[3]||(t[3]=ga(ha((t=>e.navigateOptions("next")),["stop","prevent"]),["down"])),t[4]||(t[4]=ga(ha((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"])),t[5]||(t[5]=ga(ha(((...t)=>e.handleEsc&&e.handleEsc(...t)),["stop","prevent"]),["esc"])),t[6]||(t[6]=ga(ha(((...t)=>e.selectOption&&e.selectOption(...t)),["stop","prevent"]),["enter"])),t[7]||(t[7]=ga(ha(((...t)=>e.deletePrevTag&&e.deletePrevTag(...t)),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[9]||(t[9]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[10]||(t[10]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onInput:t[11]||(t[11]=(...t)=>e.onInput&&e.onInput(...t)),onClick:t[12]||(t[12]=ha(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},null,46,zC),[[ta,e.states.inputValue]]),e.filterable?(Qo(),oi("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:q(e.nsSelect.e("input-calculator")),textContent:X(e.states.inputValue)},null,10,FC)):vi("v-if",!0)],2)),e.shouldShowPlaceholder?(Qo(),oi("div",{key:2,class:q([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[di("span",null,X(e.currentPlaceholder),1)],2)):vi("v-if",!0)],2),di("div",{ref:"suffixRef",class:q(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(Qo(),ii(l,{key:0,class:q([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:yn((()=>[(Qo(),ii(Mn(e.iconComponent)))])),_:1},8,["class"])):vi("v-if",!0),e.showClose&&e.clearIcon?(Qo(),ii(l,{key:1,class:q([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:yn((()=>[(Qo(),ii(Mn(e.clearIcon)))])),_:1},8,["class","onClick"])):vi("v-if",!0),e.validateState&&e.validateIcon?(Qo(),ii(l,{key:2,class:q([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:yn((()=>[(Qo(),ii(Mn(e.validateIcon)))])),_:1},8,["class"])):vi("v-if",!0)],2)],2)]})),content:yn((()=>[pi(p,{ref:"menuRef"},{default:yn((()=>[e.$slots.header?(Qo(),oi("div",{key:0,class:q(e.nsSelect.be("dropdown","header"))},[jr(e.$slots,"header")],2)):vi("v-if",!0),Yn(pi(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:q([e.nsSelect.is("empty",0===e.filteredOptionsCount)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:yn((()=>[e.showNewOption?(Qo(),ii(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):vi("v-if",!0),pi(u,null,{default:yn((()=>[jr(e.$slots,"default")])),_:3})])),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[xs,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(Qo(),oi("div",{key:1,class:q(e.nsSelect.be("dropdown","loading"))},[jr(e.$slots,"loading")],2)):e.loading||0===e.filteredOptionsCount?(Qo(),oi("div",{key:2,class:q(e.nsSelect.be("dropdown","empty"))},[jr(e.$slots,"empty",{},(()=>[di("span",null,X(e.emptyText),1)]))],2)):vi("v-if",!0),e.$slots.footer?(Qo(),oi("div",{key:3,class:q(e.nsSelect.be("dropdown","footer"))},[jr(e.$slots,"footer")],2)):vi("v-if",!0)])),_:3},512)])),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}],["__file","select.vue"]]);var HC=ok(ur({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=dx("select"),n=Mt(null),r=Mi(),o=Mt([]);uo(_C,ut({...Lt(e)}));const i=$i((()=>o.value.some((e=>!0===e.visible)))),s=e=>{const t=[];return d(e.children)&&e.children.forEach((e=>{var n,r;e.type&&"ElOption"===e.type.name&&e.component&&e.component.proxy?t.push(e.component.proxy):(null==(n=e.children)?void 0:n.length)?t.push(...s(e)):(null==(r=e.component)?void 0:r.subTree)&&t.push(...s(e.component.subTree))})),t},a=()=>{o.value=s(r.subTree)};return Mr((()=>{a()})),Jb(n,a,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}}),[["render",function(e,t,n,r,o,i){return Yn((Qo(),oi("ul",{ref:"groupRef",class:q(e.ns.be("group","wrap"))},[di("li",{class:q(e.ns.be("group","title"))},X(e.label),3),di("li",null,[di("ul",{class:q(e.ns.b("group"))},[jr(e.$slots,"default")],2)])],2)),[[xs,e.visible]])}],["__file","option-group.vue"]]);const UC=$w($C,{Option:PC,OptionGroup:HC}),WC=Uw(PC);Uw(HC);const qC=jw({trigger:bO.trigger,placement:OC.placement,disabled:bO.disabled,visible:yO.visible,transition:yO.transition,popperOptions:OC.popperOptions,tabindex:OC.tabindex,content:yO.content,popperStyle:yO.popperStyle,popperClass:yO.popperClass,enterable:{...yO.enterable,default:!0},effect:{...yO.effect,default:"light"},teleported:yO.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),KC={"update:visible":e=>nw(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},JC=ur({...ur({name:"ElPopover"}),props:qC,emits:KC,setup(e,{expose:t,emit:n}){const r=e,o=$i((()=>r["onUpdate:visible"])),i=dx("popover"),s=Mt(),a=$i((()=>{var e;return null==(e=Nt(s))?void 0:e.popperRef})),l=$i((()=>[{width:gw(r.width)},r.popperStyle])),c=$i((()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}])),u=$i((()=>r.transition===`${i.namespace.value}-fade-in-linear`)),d=()=>{n("before-enter")},p=()=>{n("before-leave")},f=()=>{n("after-enter")},h=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:a,hide:()=>{var e;null==(e=s.value)||e.hide()}}),(e,t)=>(Qo(),ii(Nt(NO),xi({ref_key:"tooltipRef",ref:s},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":Nt(c),"popper-style":Nt(l),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":Nt(u),"onUpdate:visible":Nt(o),onBeforeShow:d,onBeforeHide:p,onShow:f,onHide:h}),{content:yn((()=>[e.title?(Qo(),oi("div",{key:0,class:q(Nt(i).e("title")),role:"title"},X(e.title),3)):vi("v-if",!0),jr(e.$slots,"default",{},(()=>[mi(X(e.content),1)]))])),default:yn((()=>[e.$slots.reference?jr(e.$slots,"reference",{key:0}):vi("v-if",!0)])),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});const GC=(e,t)=>{const n=t.arg||t.value,r=null==n?void 0:n.popperRef;r&&(r.triggerRef=e)};var YC,XC;const ZC=$w(ok(JC,[["__file","popover.vue"]]),{directive:(XC="popover",(YC={mounted(e,t){GC(e,t)},updated(e,t){GC(e,t)}}).install=e=>{e.directive(XC,YC)},YC)}),QC=jw({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:Yw},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:Bw},activeActionIcon:{type:Bw},activeIcon:{type:Bw},inactiveIcon:{type:Bw},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Function},id:String,tabindex:{type:[String,Number]},label:{type:String,default:void 0}}),eM={[qw]:e=>nw(e)||g(e)||rw(e),[Kw]:e=>nw(e)||g(e)||rw(e),[Jw]:e=>nw(e)||g(e)||rw(e)},tM=["onClick"],nM=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],rM=["aria-hidden"],oM=["aria-hidden"],iM=["aria-hidden"],sM="ElSwitch";const aM=$w(ok(ur({...ur({name:sM}),props:QC,emits:eM,setup(e,{expose:t,emit:n}){const r=e,{formItem:o}=dk(),i=ck(),s=dx("switch"),{inputId:a}=pk(r,{formItemContext:o}),l=uk($i((()=>r.loading))),c=Mt(!1!==r.modelValue),u=Mt(),d=Mt(),p=$i((()=>[s.b(),s.m(i.value),s.is("disabled",l.value),s.is("checked",v.value)])),f=$i((()=>[s.e("label"),s.em("label","left"),s.is("active",!v.value)])),h=$i((()=>[s.e("label"),s.em("label","right"),s.is("active",v.value)])),m=$i((()=>({width:gw(r.width)})));Wn((()=>r.modelValue),(()=>{c.value=!0}));const g=$i((()=>!!c.value&&r.modelValue)),v=$i((()=>g.value===r.activeValue));[r.activeValue,r.inactiveValue].includes(g.value)||(n(qw,r.inactiveValue),n(Kw,r.inactiveValue),n(Jw,r.inactiveValue)),Wn(v,(e=>{var t;u.value.checked=e,r.validateEvent&&(null==(t=null==o?void 0:o.validate)||t.call(o,"change").catch((e=>{})))}));const y=()=>{const e=v.value?r.inactiveValue:r.activeValue;n(qw,e),n(Kw,e),n(Jw,e),en((()=>{u.value.checked=v.value}))},w=()=>{if(l.value)return;const{beforeChange:e}=r;if(!e)return void y();const t=e();[b(t),nw(t)].includes(!0)||cw(sM,"beforeChange must return type `Promise<boolean>` or `boolean`"),b(t)?t.then((e=>{e&&y()})).catch((e=>{})):t&&y()};return Mr((()=>{u.value.checked=v.value})),t({focus:()=>{var e,t;null==(t=null==(e=u.value)?void 0:e.focus)||t.call(e)},checked:v}),(e,t)=>(Qo(),oi("div",{class:q(Nt(p)),onClick:ha(w,["prevent"])},[di("input",{id:Nt(a),ref_key:"input",ref:u,class:q(Nt(s).e("input")),type:"checkbox",role:"switch","aria-checked":Nt(v),"aria-disabled":Nt(l),"aria-label":e.label,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:Nt(l),tabindex:e.tabindex,onChange:y,onKeydown:ga(w,["enter"])},null,42,nM),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?vi("v-if",!0):(Qo(),oi("span",{key:0,class:q(Nt(f))},[e.inactiveIcon?(Qo(),ii(Nt(sk),{key:0},{default:yn((()=>[(Qo(),ii(Mn(e.inactiveIcon)))])),_:1})):vi("v-if",!0),!e.inactiveIcon&&e.inactiveText?(Qo(),oi("span",{key:1,"aria-hidden":Nt(v)},X(e.inactiveText),9,rM)):vi("v-if",!0)],2)),di("span",{ref_key:"core",ref:d,class:q(Nt(s).e("core")),style:F(Nt(m))},[e.inlinePrompt?(Qo(),oi("div",{key:0,class:q(Nt(s).e("inner"))},[e.activeIcon||e.inactiveIcon?(Qo(),ii(Nt(sk),{key:0,class:q(Nt(s).is("icon"))},{default:yn((()=>[(Qo(),ii(Mn(Nt(v)?e.activeIcon:e.inactiveIcon)))])),_:1},8,["class"])):e.activeText||e.inactiveText?(Qo(),oi("span",{key:1,class:q(Nt(s).is("text")),"aria-hidden":!Nt(v)},X(Nt(v)?e.activeText:e.inactiveText),11,oM)):vi("v-if",!0)],2)):vi("v-if",!0),di("div",{class:q(Nt(s).e("action"))},[e.loading?(Qo(),ii(Nt(sk),{key:0,class:q(Nt(s).is("loading"))},{default:yn((()=>[pi(Nt(Aw))])),_:1},8,["class"])):Nt(v)?jr(e.$slots,"active-action",{key:1},(()=>[e.activeActionIcon?(Qo(),ii(Nt(sk),{key:0},{default:yn((()=>[(Qo(),ii(Mn(e.activeActionIcon)))])),_:1})):vi("v-if",!0)])):Nt(v)?vi("v-if",!0):jr(e.$slots,"inactive-action",{key:2},(()=>[e.inactiveActionIcon?(Qo(),ii(Nt(sk),{key:0},{default:yn((()=>[(Qo(),ii(Mn(e.inactiveActionIcon)))])),_:1})):vi("v-if",!0)]))],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?vi("v-if",!0):(Qo(),oi("span",{key:1,class:q(Nt(h))},[e.activeIcon?(Qo(),ii(Nt(sk),{key:0},{default:yn((()=>[(Qo(),ii(Mn(e.activeIcon)))])),_:1})):vi("v-if",!0),!e.activeIcon&&e.activeText?(Qo(),oi("span",{key:1,"aria-hidden":!Nt(v)},X(e.activeText),9,iM)):vi("v-if",!0)],2))],10,tM))}}),[["__file","switch.vue"]]));var lM={exports:{}};const cM=mc(Aa);
/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function uM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uM(Object(n),!0).forEach((function(t){fM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pM(e){return(pM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hM(){return hM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hM.apply(this,arguments)}function mM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gM(e){return function(e){if(Array.isArray(e))return vM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return vM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vM(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yM(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var bM=yM(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),wM=yM(/Edge/i),xM=yM(/firefox/i),SM=yM(/safari/i)&&!yM(/chrome/i)&&!yM(/android/i),kM=yM(/iP(ad|od|hone)/i),OM=yM(/chrome/i)&&yM(/android/i),EM={capture:!1,passive:!1};function CM(e,t,n){e.addEventListener(t,n,!bM&&EM)}function MM(e,t,n){e.removeEventListener(t,n,!bM&&EM)}function AM(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function TM(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function _M(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&AM(e,t):AM(e,t))||r&&e===n)return e;if(e===n)break}while(e=TM(e))}return null}var NM,RM=/\s+/g;function IM(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(RM," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(RM," ")}}function PM(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function DM(e,t){var n="";if("string"==typeof e)n=e;else do{var r=PM(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function LM(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function jM(){var e=document.scrollingElement;return e||document.documentElement}function BM(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,s,a,l,c,u,d;if(e!==window&&e.parentNode&&e!==jM()?(s=(i=e.getBoundingClientRect()).top,a=i.left,l=i.bottom,c=i.right,u=i.height,d=i.width):(s=0,a=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!bM))do{if(o&&o.getBoundingClientRect&&("none"!==PM(o,"transform")||n&&"static"!==PM(o,"position"))){var p=o.getBoundingClientRect();s-=p.top+parseInt(PM(o,"border-top-width")),a-=p.left+parseInt(PM(o,"border-left-width")),l=s+i.height,c=a+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var f=DM(o||e),h=f&&f.a,m=f&&f.d;f&&(l=(s/=m)+(u/=m),c=(a/=h)+(d/=h))}return{top:s,left:a,bottom:l,right:c,width:d,height:u}}}function VM(e,t,n){for(var r=UM(e,!0),o=BM(e)[t];r;){var i=BM(r)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return r;if(r===jM())break;r=UM(r,!1)}return!1}function zM(e,t,n,r){for(var o=0,i=0,s=e.children;i<s.length;){if("none"!==s[i].style.display&&s[i]!==YA.ghost&&(r||s[i]!==YA.dragged)&&_M(s[i],n.draggable,e,!1)){if(o===t)return s[i];o++}i++}return null}function FM(e,t){for(var n=e.lastElementChild;n&&(n===YA.ghost||"none"===PM(n,"display")||t&&!AM(n,t));)n=n.previousElementSibling;return n||null}function $M(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===YA.clone||t&&!AM(e,t)||n++;return n}function HM(e){var t=0,n=0,r=jM();if(e)do{var o=DM(e),i=o.a,s=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[t,n]}function UM(e,t){if(!e||!e.getBoundingClientRect)return jM();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=PM(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return jM();if(r||t)return n;r=!0}}}while(n=n.parentNode);return jM()}function WM(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function qM(e,t){return function(){if(!NM){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),NM=setTimeout((function(){NM=void 0}),t)}}}function KM(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function JM(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function GM(e,t){PM(e,"position","absolute"),PM(e,"top",t.top),PM(e,"left",t.left),PM(e,"width",t.width),PM(e,"height",t.height)}function YM(e){PM(e,"position",""),PM(e,"top",""),PM(e,"left",""),PM(e,"width",""),PM(e,"height","")}var XM="Sortable"+(new Date).getTime();function ZM(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==PM(e,"display")&&e!==YA.ghost){t.push({target:e,rect:BM(e)});var n=dM({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=DM(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,i=0;t.forEach((function(e){var t=0,n=e.target,s=n.fromRect,a=BM(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,d=DM(n,!0);d&&(a.top-=d.f,a.left-=d.e),n.toRect=a,n.thisAnimationDuration&&WM(l,a)&&!WM(s,a)&&(u.top-a.top)/(u.left-a.left)==(s.top-a.top)/(s.left-a.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,r.options)),WM(a,s)||(n.prevFromRect=s,n.prevToRect=a,t||(t=r.options.animation),r.animate(n,u,a,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){PM(e,"transition",""),PM(e,"transform","");var o=DM(this.el),i=o&&o.a,s=o&&o.d,a=(t.left-n.left)/(i||1),l=(t.top-n.top)/(s||1);e.animatingX=!!a,e.animatingY=!!l,PM(e,"transform","translate3d("+a+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),PM(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),PM(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){PM(e,"transition",""),PM(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var QM=[],eA={initializeByDefault:!0},tA={mount:function(e){for(var t in eA)eA.hasOwnProperty(t)&&!(t in e)&&(e[t]=eA[t]);QM.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),QM.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";QM.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](dM({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](dM({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in QM.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,hM(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);void 0!==i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return QM.forEach((function(r){"function"==typeof r.eventProperties&&hM(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return QM.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function nA(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[XM]){var m,g=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||bM||wM?(m=document.createEvent("Event")).initEvent(r,!0,!0):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=s||n,m.from=a||n,m.item=o||n,m.clone=i,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=u,m.newDraggableIndex=d,m.originalEvent=p,m.pullMode=f?f.lastPutMode:void 0;var y=dM(dM({},h),tA.getEventProperties(r,t));for(var b in y)m[b]=y[b];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}var rA=["evt"],oA=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=mM(n,rA);tA.pluginEvent.bind(YA)(e,t,dM({dragEl:sA,parentEl:aA,ghostEl:lA,rootEl:cA,nextEl:uA,lastDownEl:dA,cloneEl:pA,cloneHidden:fA,dragStarted:CA,putSortable:bA,activeSortable:YA.active,originalEvent:r,oldIndex:hA,oldDraggableIndex:gA,newIndex:mA,newDraggableIndex:vA,hideGhostForTarget:qA,unhideGhostForTarget:KA,cloneNowHidden:function(){fA=!0},cloneNowShown:function(){fA=!1},dispatchSortableEvent:function(e){iA({sortable:t,name:e,originalEvent:r})}},o))};function iA(e){nA(dM({putSortable:bA,cloneEl:pA,targetEl:sA,rootEl:cA,oldIndex:hA,oldDraggableIndex:gA,newIndex:mA,newDraggableIndex:vA},e))}var sA,aA,lA,cA,uA,dA,pA,fA,hA,mA,gA,vA,yA,bA,wA,xA,SA,kA,OA,EA,CA,MA,AA,TA,_A,NA=!1,RA=!1,IA=[],PA=!1,DA=!1,LA=[],jA=!1,BA=[],VA="undefined"!=typeof document,zA=kM,FA=wM||bM?"cssFloat":"float",$A=VA&&!OM&&!kM&&"draggable"in document.createElement("div"),HA=function(){if(VA){if(bM)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),UA=function(e,t){var n=PM(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=zM(e,0,t),i=zM(e,1,t),s=o&&PM(o),a=i&&PM(i),l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+BM(o).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+BM(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&s.float&&"none"!==s.float){var u="left"===s.float?"left":"right";return!i||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return o&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=r&&"none"===n[FA]||i&&"none"===n[FA]&&l+c>r)?"vertical":"horizontal"},WA=function(e){function t(e,n){return function(r,o,i,s){var a=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||a))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,s),n)(r,o,i,s);var l=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==pM(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},qA=function(){!HA&&lA&&PM(lA,"display","none")},KA=function(){!HA&&lA&&PM(lA,"display","")};VA&&document.addEventListener("click",(function(e){if(RA)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),RA=!1,!1}),!0);var JA=function(e){if(sA){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,IA.some((function(e){var t=e[XM].options.emptyInsertThreshold;if(t&&!FM(e)){var n=BM(e),r=o>=n.left-t&&o<=n.right+t,a=i>=n.top-t&&i<=n.bottom+t;return r&&a?s=e:void 0}})),s);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[XM]._onDragOver(n)}}var o,i,s},GA=function(e){sA&&sA.parentNode[XM]._isOutsideThisEl(e.target)};function YA(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=hM({},t),e[XM]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return UA(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==YA.supportPointer&&"PointerEvent"in window&&!SM,emptyInsertThreshold:5};for(var r in tA.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in WA(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&$A,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?CM(e,"pointerdown",this._onTapStart):(CM(e,"mousedown",this._onTapStart),CM(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(CM(e,"dragover",this),CM(e,"dragenter",this)),IA.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),hM(this,ZM())}function XA(e,t,n,r,o,i,s,a){var l,c,u=e[XM],d=u.options.onMove;return!window.CustomEvent||bM||wM?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=o||t,l.relatedRect=i||BM(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),d&&(c=d.call(u,l,s)),c}function ZA(e){e.draggable=!1}function QA(){jA=!1}function eT(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function tT(e){return setTimeout(e,0)}function nT(e){return clearTimeout(e)}YA.prototype={constructor:YA,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(MA=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,sA):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,s=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,a=(s||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,c=r.filter;if(function(e){BA.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&BA.push(r)}}(n),!sA&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!SM||!a||"SELECT"!==a.tagName.toUpperCase())&&!((a=_M(a,r.draggable,n,!1))&&a.animated||dA===a)){if(hA=$M(a),gA=$M(a,r.draggable),"function"==typeof c){if(c.call(this,e,a,this))return iA({sortable:t,rootEl:l,name:"filter",targetEl:a,toEl:n,fromEl:n}),oA("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=_M(l,r.trim(),n,!1))return iA({sortable:t,rootEl:r,name:"filter",targetEl:a,fromEl:n,toEl:n}),oA("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!_M(l,r.handle,n,!1)||this._prepareDragStart(e,s,a)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,s=o.options,a=i.ownerDocument;if(n&&!sA&&n.parentNode===i){var l=BM(n);if(cA=i,aA=(sA=n).parentNode,uA=sA.nextSibling,dA=n,yA=s.group,YA.dragged=sA,wA={target:sA,clientX:(t||e).clientX,clientY:(t||e).clientY},OA=wA.clientX-l.left,EA=wA.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,sA.style["will-change"]="all",r=function(){oA("delayEnded",o,{evt:e}),YA.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!xM&&o.nativeDraggable&&(sA.draggable=!0),o._triggerDragStart(e,t),iA({sortable:o,name:"choose",originalEvent:e}),IM(sA,s.chosenClass,!0))},s.ignore.split(",").forEach((function(e){LM(sA,e.trim(),ZA)})),CM(a,"dragover",JA),CM(a,"mousemove",JA),CM(a,"touchmove",JA),CM(a,"mouseup",o._onDrop),CM(a,"touchend",o._onDrop),CM(a,"touchcancel",o._onDrop),xM&&this.nativeDraggable&&(this.options.touchStartThreshold=4,sA.draggable=!0),oA("delayStart",this,{evt:e}),!s.delay||s.delayOnTouchOnly&&!t||this.nativeDraggable&&(wM||bM))r();else{if(YA.eventCanceled)return void this._onDrop();CM(a,"mouseup",o._disableDelayedDrag),CM(a,"touchend",o._disableDelayedDrag),CM(a,"touchcancel",o._disableDelayedDrag),CM(a,"mousemove",o._delayedDragTouchMoveHandler),CM(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&CM(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,s.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){sA&&ZA(sA),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;MM(e,"mouseup",this._disableDelayedDrag),MM(e,"touchend",this._disableDelayedDrag),MM(e,"touchcancel",this._disableDelayedDrag),MM(e,"mousemove",this._delayedDragTouchMoveHandler),MM(e,"touchmove",this._delayedDragTouchMoveHandler),MM(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?CM(document,"pointermove",this._onTouchMove):CM(document,t?"touchmove":"mousemove",this._onTouchMove):(CM(sA,"dragend",this),CM(cA,"dragstart",this._onDragStart));try{document.selection?tT((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(NA=!1,cA&&sA){oA("dragStarted",this,{evt:t}),this.nativeDraggable&&CM(document,"dragover",GA);var n=this.options;!e&&IM(sA,n.dragClass,!1),IM(sA,n.ghostClass,!0),YA.active=this,e&&this._appendGhost(),iA({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(xA){this._lastX=xA.clientX,this._lastY=xA.clientY,qA();for(var e=document.elementFromPoint(xA.clientX,xA.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(xA.clientX,xA.clientY))!==t;)t=e;if(sA.parentNode[XM]._isOutsideThisEl(e),t)do{if(t[XM]){if(t[XM]._onDragOver({clientX:xA.clientX,clientY:xA.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);KA()}},_onTouchMove:function(e){if(wA){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=lA&&DM(lA,!0),s=lA&&i&&i.a,a=lA&&i&&i.d,l=zA&&_A&&HM(_A),c=(o.clientX-wA.clientX+r.x)/(s||1)+(l?l[0]-LA[0]:0)/(s||1),u=(o.clientY-wA.clientY+r.y)/(a||1)+(l?l[1]-LA[1]:0)/(a||1);if(!YA.active&&!NA){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(lA){i?(i.e+=c-(SA||0),i.f+=u-(kA||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");PM(lA,"webkitTransform",d),PM(lA,"mozTransform",d),PM(lA,"msTransform",d),PM(lA,"transform",d),SA=c,kA=u,xA=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!lA){var e=this.options.fallbackOnBody?document.body:cA,t=BM(sA,!0,zA,!0,e),n=this.options;if(zA){for(_A=e;"static"===PM(_A,"position")&&"none"===PM(_A,"transform")&&_A!==document;)_A=_A.parentNode;_A!==document.body&&_A!==document.documentElement?(_A===document&&(_A=jM()),t.top+=_A.scrollTop,t.left+=_A.scrollLeft):_A=jM(),LA=HM(_A)}IM(lA=sA.cloneNode(!0),n.ghostClass,!1),IM(lA,n.fallbackClass,!0),IM(lA,n.dragClass,!0),PM(lA,"transition",""),PM(lA,"transform",""),PM(lA,"box-sizing","border-box"),PM(lA,"margin",0),PM(lA,"top",t.top),PM(lA,"left",t.left),PM(lA,"width",t.width),PM(lA,"height",t.height),PM(lA,"opacity","0.8"),PM(lA,"position",zA?"absolute":"fixed"),PM(lA,"zIndex","100000"),PM(lA,"pointerEvents","none"),YA.ghost=lA,e.appendChild(lA),PM(lA,"transform-origin",OA/parseInt(lA.style.width)*100+"% "+EA/parseInt(lA.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;oA("dragStart",this,{evt:e}),YA.eventCanceled?this._onDrop():(oA("setupClone",this),YA.eventCanceled||((pA=JM(sA)).draggable=!1,pA.style["will-change"]="",this._hideClone(),IM(pA,this.options.chosenClass,!1),YA.clone=pA),n.cloneId=tT((function(){oA("clone",n),YA.eventCanceled||(n.options.removeCloneOnHide||cA.insertBefore(pA,sA),n._hideClone(),iA({sortable:n,name:"clone"}))})),!t&&IM(sA,o.dragClass,!0),t?(RA=!0,n._loopId=setInterval(n._emulateDragOver,50)):(MM(document,"mouseup",n._onDrop),MM(document,"touchend",n._onDrop),MM(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,sA)),CM(document,"drop",n),PM(sA,"transform","translateZ(0)")),NA=!0,n._dragStartId=tT(n._dragStarted.bind(n,t,e)),CM(document,"selectstart",n),CA=!0,SM&&PM(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,i=this.el,s=e.target,a=this.options,l=a.group,c=YA.active,u=yA===l,d=a.sort,p=bA||c,f=this,h=!1;if(!jA){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=_M(s,a.draggable,i,!0),T("dragOver"),YA.eventCanceled)return h;if(sA.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||f._ignoreWhileAnimating===s)return N(!1);if(RA=!1,c&&!a.disabled&&(u?d||(r=aA!==cA):bA===this||(this.lastPutMode=yA.checkPull(this,c,sA,e))&&l.checkPut(this,c,sA,e))){if(o="vertical"===this._getDirection(e,s),t=BM(sA),T("dragOverValid"),YA.eventCanceled)return h;if(r)return aA=cA,_(),this._hideClone(),T("revert"),YA.eventCanceled||(uA?cA.insertBefore(sA,uA):cA.appendChild(sA)),N(!0);var m=FM(i,a.draggable);if(!m||function(e,t,n){var r=BM(FM(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}(e,o,this)&&!m.animated){if(m===sA)return N(!1);if(m&&i===e.target&&(s=m),s&&(n=BM(s)),!1!==XA(cA,i,sA,t,s,n,e,!!s))return _(),i.appendChild(sA),aA=i,R(),N(!0)}else if(m&&function(e,t,n){var r=BM(zM(n.el,0,n.options,!0)),o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}(e,o,this)){var g=zM(i,0,a,!0);if(g===sA)return N(!1);if(n=BM(s=g),!1!==XA(cA,i,sA,t,s,n,e,!1))return _(),i.insertBefore(sA,g),aA=i,R(),N(!0)}else if(s.parentNode===i){n=BM(s);var v,y,b,w=sA.parentNode!==i,x=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,s=n?t.left:t.top,a=n?t.right:t.bottom,l=n?t.width:t.height;return r===s||o===a||r+i/2===s+l/2}(sA.animated&&sA.toRect||t,s.animated&&s.toRect||n,o),S=o?"top":"left",k=VM(s,"top","top")||VM(sA,"top","top"),O=k?k.scrollTop:void 0;if(MA!==s&&(y=n[S],PA=!1,DA=!x&&a.invertSwap||w),v=function(e,t,n,r,o,i,s,a){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!s)if(a&&TA<c*o){if(!PA&&(1===AA?l>u+c*i/2:l<d-c*i/2)&&(PA=!0),PA)p=!0;else if(1===AA?l<u+TA:l>d-TA)return-AA}else if(l>u+c*(1-o)/2&&l<d-c*(1-o)/2)return function(e){return $M(sA)<$M(e)?1:-1}(t);if((p=p||s)&&(l<u+c*i/2||l>d-c*i/2))return l>u+c/2?1:-1;return 0}(e,s,n,o,x?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,DA,MA===s),0!==v){var E=$M(sA);do{E-=v,b=aA.children[E]}while(b&&("none"===PM(b,"display")||b===lA))}if(0===v||b===s)return N(!1);MA=s,AA=v;var C=s.nextElementSibling,M=!1,A=XA(cA,i,sA,t,s,n,e,M=1===v);if(!1!==A)return 1!==A&&-1!==A||(M=1===A),jA=!0,setTimeout(QA,30),_(),M&&!C?i.appendChild(sA):s.parentNode.insertBefore(sA,M?C:s),k&&KM(k,0,O-k.scrollTop),aA=sA.parentNode,void 0===y||DA||(TA=Math.abs(y-BM(s)[S])),R(),N(!0)}if(i.contains(sA))return N(!1)}return!1}function T(a,l){oA(a,f,dM({evt:e,isOwner:u,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:p,target:s,completed:N,onMove:function(n,r){return XA(cA,i,sA,t,n,BM(n),e,r)},changed:R},l))}function _(){T("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function N(t){return T("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(f),f!==p&&(IM(sA,bA?bA.options.ghostClass:c.options.ghostClass,!1),IM(sA,a.ghostClass,!0)),bA!==f&&f!==YA.active?bA=f:f===YA.active&&bA&&(bA=null),p===f&&(f._ignoreWhileAnimating=s),f.animateAll((function(){T("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===sA&&!sA.animated||s===i&&!s.animated)&&(MA=null),a.dragoverBubble||e.rootEl||s===document||(sA.parentNode[XM]._isOutsideThisEl(e.target),!t&&JA(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function R(){mA=$M(sA),vA=$M(sA,a.draggable),iA({sortable:f,name:"change",toEl:i,newIndex:mA,newDraggableIndex:vA,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){MM(document,"mousemove",this._onTouchMove),MM(document,"touchmove",this._onTouchMove),MM(document,"pointermove",this._onTouchMove),MM(document,"dragover",JA),MM(document,"mousemove",JA),MM(document,"touchmove",JA)},_offUpEvents:function(){var e=this.el.ownerDocument;MM(e,"mouseup",this._onDrop),MM(e,"touchend",this._onDrop),MM(e,"pointerup",this._onDrop),MM(e,"touchcancel",this._onDrop),MM(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;mA=$M(sA),vA=$M(sA,n.draggable),oA("drop",this,{evt:e}),aA=sA&&sA.parentNode,mA=$M(sA),vA=$M(sA,n.draggable),YA.eventCanceled||(NA=!1,DA=!1,PA=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),nT(this.cloneId),nT(this._dragStartId),this.nativeDraggable&&(MM(document,"drop",this),MM(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),SM&&PM(document.body,"user-select",""),PM(sA,"transform",""),e&&(CA&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),lA&&lA.parentNode&&lA.parentNode.removeChild(lA),(cA===aA||bA&&"clone"!==bA.lastPutMode)&&pA&&pA.parentNode&&pA.parentNode.removeChild(pA),sA&&(this.nativeDraggable&&MM(sA,"dragend",this),ZA(sA),sA.style["will-change"]="",CA&&!NA&&IM(sA,bA?bA.options.ghostClass:this.options.ghostClass,!1),IM(sA,this.options.chosenClass,!1),iA({sortable:this,name:"unchoose",toEl:aA,newIndex:null,newDraggableIndex:null,originalEvent:e}),cA!==aA?(mA>=0&&(iA({rootEl:aA,name:"add",toEl:aA,fromEl:cA,originalEvent:e}),iA({sortable:this,name:"remove",toEl:aA,originalEvent:e}),iA({rootEl:aA,name:"sort",toEl:aA,fromEl:cA,originalEvent:e}),iA({sortable:this,name:"sort",toEl:aA,originalEvent:e})),bA&&bA.save()):mA!==hA&&mA>=0&&(iA({sortable:this,name:"update",toEl:aA,originalEvent:e}),iA({sortable:this,name:"sort",toEl:aA,originalEvent:e})),YA.active&&(null!=mA&&-1!==mA||(mA=hA,vA=gA),iA({sortable:this,name:"end",toEl:aA,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){oA("nulling",this),cA=sA=aA=lA=uA=pA=dA=fA=wA=xA=CA=mA=vA=hA=gA=MA=AA=bA=yA=YA.dragged=YA.ghost=YA.clone=YA.active=null,BA.forEach((function(e){e.checked=!0})),BA.length=SA=kA=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":sA&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)_M(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||eT(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];_M(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return _M(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=tA.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&WA(n)},destroy:function(){oA("destroy",this);var e=this.el;e[XM]=null,MM(e,"mousedown",this._onTapStart),MM(e,"touchstart",this._onTapStart),MM(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(MM(e,"dragover",this),MM(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),IA.splice(IA.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!fA){if(oA("hideClone",this),YA.eventCanceled)return;PM(pA,"display","none"),this.options.removeCloneOnHide&&pA.parentNode&&pA.parentNode.removeChild(pA),fA=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(fA){if(oA("showClone",this),YA.eventCanceled)return;sA.parentNode!=cA||this.options.group.revertClone?uA?cA.insertBefore(pA,uA):cA.appendChild(pA):cA.insertBefore(pA,sA),this.options.group.revertClone&&this.animate(sA,pA),PM(pA,"display",""),fA=!1}}else this._hideClone()}},VA&&CM(document,"touchmove",(function(e){(YA.active||NA)&&e.cancelable&&e.preventDefault()})),YA.utils={on:CM,off:MM,css:PM,find:LM,is:function(e,t){return!!_M(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:qM,closest:_M,toggleClass:IM,clone:JM,index:$M,nextTick:tT,cancelNextTick:nT,detectDirection:UA,getChild:zM},YA.get=function(e){return e[XM]},YA.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(YA.utils=dM(dM({},YA.utils),e.utils)),tA.mount(e)}))},YA.create=function(e,t){return new YA(e,t)},YA.version="1.14.0";var rT,oT,iT,sT,aT,lT,cT=[],uT=!1;function dT(){cT.forEach((function(e){clearInterval(e.pid)})),cT=[]}function pT(){clearInterval(lT)}var fT,hT=qM((function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,c=jM(),u=!1;oT!==n&&(oT=n,dT(),rT=t.scroll,o=t.scrollFn,!0===rT&&(rT=UM(n,!0)));var d=0,p=rT;do{var f=p,h=BM(f),m=h.top,g=h.bottom,v=h.left,y=h.right,b=h.width,w=h.height,x=void 0,S=void 0,k=f.scrollWidth,O=f.scrollHeight,E=PM(f),C=f.scrollLeft,M=f.scrollTop;f===c?(x=b<k&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),S=w<O&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(x=b<k&&("auto"===E.overflowX||"scroll"===E.overflowX),S=w<O&&("auto"===E.overflowY||"scroll"===E.overflowY));var A=x&&(Math.abs(y-i)<=a&&C+b<k)-(Math.abs(v-i)<=a&&!!C),T=S&&(Math.abs(g-s)<=a&&M+w<O)-(Math.abs(m-s)<=a&&!!M);if(!cT[d])for(var _=0;_<=d;_++)cT[_]||(cT[_]={});cT[d].vx==A&&cT[d].vy==T&&cT[d].el===f||(cT[d].el=f,cT[d].vx=A,cT[d].vy=T,clearInterval(cT[d].pid),0==A&&0==T||(u=!0,cT[d].pid=setInterval(function(){r&&0===this.layer&&YA.active._onTouchMove(aT);var t=cT[this.layer].vy?cT[this.layer].vy*l:0,n=cT[this.layer].vx?cT[this.layer].vx*l:0;"function"==typeof o&&"continue"!==o.call(YA.dragged.parentNode[XM],n,t,e,aT,cT[this.layer].el)||KM(cT[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==c&&(p=UM(p,!1)));uT=u}}),30),mT=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,s=e.hideGhostForTarget,a=e.unhideGhostForTarget;if(t){var l=n||o;s();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);a(),l&&!l.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function gT(){}function vT(){}gT.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=zM(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:mT},hM(gT,{pluginName:"revertOnSpill"}),vT.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:mT},hM(vT,{pluginName:"removeOnSpill"});var yT,bT,wT,xT,ST,kT=[],OT=[],ET=!1,CT=!1,MT=!1;function AT(e,t){OT.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function TT(){kT.forEach((function(e){e!==wT&&e.parentNode&&e.parentNode.removeChild(e)}))}YA.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?CM(document,"dragover",this._handleAutoScroll):this.options.supportPointer?CM(document,"pointermove",this._handleFallbackAutoScroll):t.touches?CM(document,"touchmove",this._handleFallbackAutoScroll):CM(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?MM(document,"dragover",this._handleAutoScroll):(MM(document,"pointermove",this._handleFallbackAutoScroll),MM(document,"touchmove",this._handleFallbackAutoScroll),MM(document,"mousemove",this._handleFallbackAutoScroll)),pT(),dT(),clearTimeout(NM),NM=void 0},nulling:function(){aT=oT=rT=uT=lT=iT=sT=null,cT.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(aT=e,t||this.options.forceAutoScrollFallback||wM||bM||SM){hT(e,this.options,i,t);var s=UM(i,!0);!uT||lT&&r===iT&&o===sT||(lT&&pT(),lT=setInterval((function(){var i=UM(document.elementFromPoint(r,o),!0);i!==s&&(s=i,dT()),hT(e,n.options,i,t)}),10),iT=r,sT=o)}else{if(!this.options.bubbleScroll||UM(i,!0)===jM())return void dT();hT(e,this.options,UM(i,!1),!1)}}},hM(e,{pluginName:"scroll",initializeByDefault:!0})}),YA.mount(vT,gT);const _T=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:function(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?CM(document,"pointerup",this._deselectMultiDrag):(CM(document,"mouseup",this._deselectMultiDrag),CM(document,"touchend",this._deselectMultiDrag)),CM(document,"keydown",this._checkKeyDown),CM(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";kT.length&&bT===e?kT.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;wT=t},delayEnded:function(){this.isMultiDrag=~kT.indexOf(wT)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<kT.length;r++)OT.push(JM(kT[r])),OT[r].sortableIndex=kT[r].sortableIndex,OT[r].draggable=!1,OT[r].style["will-change"]="",IM(OT[r],this.options.selectedClass,!1),kT[r]===wT&&IM(OT[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||kT.length&&bT===t&&(AT(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(AT(!1,n),OT.forEach((function(e){PM(e,"display","")})),t(),ST=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(OT.forEach((function(e){PM(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ST=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&bT&&bT.multiDrag._deselectMultiDrag(),kT.forEach((function(e){e.sortableIndex=$M(e)})),kT=kT.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),MT=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){kT.forEach((function(e){e!==wT&&PM(e,"position","absolute")}));var r=BM(wT,!1,!0,!0);kT.forEach((function(e){e!==wT&&GM(e,r)})),CT=!0,ET=!0}n.animateAll((function(){CT=!1,ET=!1,t.options.animation&&kT.forEach((function(e){YM(e)})),t.options.sort&&TT()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;CT&&~kT.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;kT.length>1&&(kT.forEach((function(e){r.addAnimationState({target:e,rect:CT?BM(e):o}),YM(e),e.fromRect=o,t.removeAnimationState(e)})),CT=!1,function(e,t){kT.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,i=e.parentEl,s=e.putSortable,a=this.options;if(r){if(n&&o._hideClone(),ET=!1,a.animation&&kT.length>1&&(CT||!n&&!o.options.sort&&!s)){var l=BM(wT,!1,!0,!0);kT.forEach((function(e){e!==wT&&(GM(e,l),i.appendChild(e))})),CT=!0}if(!n)if(CT||TT(),kT.length>1){var c=ST;o._showClone(t),o.options.animation&&!ST&&c&&OT.forEach((function(e){o.addAnimationState({target:e,rect:xT}),e.fromRect=xT,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(kT.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){xT=hM({},t);var o=DM(wT,!0);xT.top-=o.f,xT.left-=o.e}},dragOverAnimationComplete:function(){CT&&(CT=!1,TT())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,s=e.oldIndex,a=e.putSortable,l=a||this.sortable;if(t){var c=this.options,u=r.children;if(!MT)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),IM(wT,c.selectedClass,!~kT.indexOf(wT)),~kT.indexOf(wT))kT.splice(kT.indexOf(wT),1),yT=null,nA({sortable:o,rootEl:n,name:"deselect",targetEl:wT,originalEvt:t});else{if(kT.push(wT),nA({sortable:o,rootEl:n,name:"select",targetEl:wT,originalEvt:t}),t.shiftKey&&yT&&o.el.contains(yT)){var d,p,f=$M(yT),h=$M(wT);if(~f&&~h&&f!==h)for(h>f?(p=f,d=h):(p=h,d=f+1);p<d;p++)~kT.indexOf(u[p])||(IM(u[p],c.selectedClass,!0),kT.push(u[p]),nA({sortable:o,rootEl:n,name:"select",targetEl:u[p],originalEvt:t}))}else yT=wT;bT=l}if(MT&&this.isMultiDrag){if(CT=!1,(r[XM].options.sort||r!==n)&&kT.length>1){var m=BM(wT),g=$M(wT,":not(."+this.options.selectedClass+")");if(!ET&&c.animation&&(wT.thisAnimationDuration=null),l.captureAnimationState(),!ET&&(c.animation&&(wT.fromRect=m,kT.forEach((function(e){if(e.thisAnimationDuration=null,e!==wT){var t=CT?BM(e):m;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),TT(),kT.forEach((function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++})),s===$M(wT))){var v=!1;kT.forEach((function(e){e.sortableIndex===$M(e)||(v=!0)})),v&&i("update")}kT.forEach((function(e){YM(e)})),l.animateAll()}bT=l}(n===r||a&&"clone"!==a.lastPutMode)&&OT.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=MT=!1,OT.length=0},destroyGlobal:function(){this._deselectMultiDrag(),MM(document,"pointerup",this._deselectMultiDrag),MM(document,"mouseup",this._deselectMultiDrag),MM(document,"touchend",this._deselectMultiDrag),MM(document,"keydown",this._checkKeyDown),MM(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==MT&&MT||bT!==this.sortable||e&&_M(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;kT.length;){var t=kT[0];IM(t,this.options.selectedClass,!1),kT.shift(),nA({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},hM(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[XM];t&&t.options.multiDrag&&!~kT.indexOf(e)&&(bT&&bT!==t&&(bT.multiDrag._deselectMultiDrag(),bT=t),IM(e,t.options.selectedClass,!0),kT.push(e))},deselect:function(e){var t=e.parentNode[XM],n=kT.indexOf(e);t&&t.options.multiDrag&&~n&&(IM(e,t.options.selectedClass,!1),kT.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return kT.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=CT&&r!==wT?-1:CT?$M(r,":not(."+e.options.selectedClass+")"):$M(r),n.push({multiDragElement:r,index:o})})),{items:gM(kT),clones:[].concat(OT),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})},Sortable:YA,Swap:function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;fT=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,i=e.changed,s=e.cancel;if(o.options.swap){var a=this.sortable.el,l=this.options;if(n&&n!==a){var c=fT;!1!==r(n)?(IM(n,l.swapClass,!0),fT=n):fT=null,c&&c!==fT&&IM(c,l.swapClass,!1)}i(),t(!0),s()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,o=n||this.sortable,i=this.options;fT&&IM(fT,i.swapClass,!1),fT&&(i.swap||n&&n.options.swap)&&r!==fT&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),function(e,t){var n,r,o=e.parentNode,i=t.parentNode;if(!o||!i||o.isEqualNode(t)||i.isEqualNode(e))return;n=$M(e),r=$M(t),o.isEqualNode(i)&&n<r&&r++;o.insertBefore(t,o.children[n]),i.insertBefore(e,i.children[r])}(r,fT),o.animateAll(),o!==t&&t.animateAll())},nulling:function(){fT=null}},hM(e,{pluginName:"swap",eventProperties:function(){return{swapItem:fT}}})},default:YA},Symbol.toStringTag,{value:"Module"}));var NT;"undefined"!=typeof self&&self,NT=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var r={};r[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(r)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var r=n("fc6a"),o=n("241c").f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(t){return s.slice()}}(e):o(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),s=n("fc6a"),a=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=s(e),t=a(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(e,t,n){var r=n("23e7"),o=n("d58f").left,i=n("a640"),s=n("ae40"),a=i("reduce"),l=s("reduce",{1:0});r({target:"Array",proto:!0,forced:!a||!l},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n("c6b6"),o=n("9263");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),s=n("9112");for(var a in o){var l=r[a],c=l&&l.prototype;if(c&&c.forEach!==i)try{s(c,"forEach",i)}catch(u){c.forEach=i}}},"17c2":function(e,t,n){var r=n("b727").forEach,o=n("a640"),i=n("ae40"),s=o("forEach"),a=i("forEach");e.exports=s&&a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622")("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(a){}return n}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),o=n("b622"),i=n("2d00"),s=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var r=n("a691"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},"23e7":function(e,t,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),s=n("6eeb"),a=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,d,p,f,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||a(h,{}):(r[h]||{}).prototype)for(u in t){if(p=t[u],d=e.noTargetGet?(f=o(n,u))&&f.value:n[u],!c(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),s(n,u,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"25f0":function(e,t,n){var r=n("6eeb"),o=n("825a"),i=n("d039"),s=n("ad6d"),a="toString",l=RegExp.prototype,c=l[a],u=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=a;(u||d)&&r(RegExp.prototype,a,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in l)?s.call(e):n)}),{unsafe:!0})},"2ca0":function(e,t,n){var r,o=n("23e7"),i=n("06cf").f,s=n("50c4"),a=n("5a34"),l=n("1d80"),c=n("ab13"),u=n("c430"),d="".startsWith,p=Math.min,f=c("startsWith");o({target:"String",proto:!0,forced:!(!u&&!f&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||f)},{startsWith:function(e){var t=String(l(this));a(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},"2d00":function(e,t,n){var r,o,i=n("da84"),s=n("342f"),a=i.process,l=a&&a.versions,c=l&&l.v8;c?o=(r=c.split("."))[0]+r[1]:s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),o=n("3f8c"),i=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"37e8":function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),s=n("df75");e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=s(t),a=r.length,l=0;a>l;)o.f(e,n=r[l++],t[n]);return e}},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),s="String Iterator",a=o.set,l=o.getterFor(s);i(String,"String",(function(e){a(this,{type:s,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(e,t,n){var r=n("da84");e.exports=r},"44ad":function(e,t,n){var r=n("d039"),o=n("c6b6"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),s=r("unscopables"),a=Array.prototype;null==a[s]&&i.f(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),i=n("b622")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),s=function(e){return function(t,n,s){var a,l=r(t),c=o(l.length),u=i(s,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"4de4":function(e,t,n){var r=n("23e7"),o=n("b727").filter,i=n("1dde"),s=n("ae40"),a=i("filter"),l=s("filter");r({target:"Array",proto:!0,forced:!a||!l},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){var r=n("0366"),o=n("7b0b"),i=n("9bdd"),s=n("e95a"),a=n("50c4"),l=n("8418"),c=n("35a1");e.exports=function(e){var t,n,u,d,p,f,h=o(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,b=c(h),w=0;if(y&&(v=r(v,g>2?arguments[2]:void 0,2)),null==b||m==Array&&s(b))for(n=new m(t=a(h.length));t>w;w++)f=y?v(h[w],w):h[w],l(n,w,f);else for(p=(d=b.call(h)).next,n=new m;!(u=p.call(d)).done;w++)f=y?i(d,v,[u.value,w],!0):u.value,l(n,w,f);return n.length=w,n}},"4fad":function(e,t,n){var r=n("23e7"),o=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},"50c4":function(e,t,n){var r=n("a691"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){var r=n("d784"),o=n("825a"),i=n("7b0b"),s=n("50c4"),a=n("a691"),l=n("1d80"),c=n("8aa5"),u=n("14c3"),d=Math.max,p=Math.min,f=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,y=g?"$":"$0";return[function(n,r){var o=l(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!g&&v||"string"==typeof r&&-1===r.indexOf(y)){var i=n(t,e,this,r);if(i.done)return i.value}var l=o(e),f=String(this),h="function"==typeof r;h||(r=String(r));var m=l.global;if(m){var w=l.unicode;l.lastIndex=0}for(var x=[];;){var S=u(l,f);if(null===S)break;if(x.push(S),!m)break;""===String(S[0])&&(l.lastIndex=c(f,s(l.lastIndex),w))}for(var k,O="",E=0,C=0;C<x.length;C++){S=x[C];for(var M=String(S[0]),A=d(p(a(S.index),f.length),0),T=[],_=1;_<S.length;_++)T.push(void 0===(k=S[_])?k:String(k));var N=S.groups;if(h){var R=[M].concat(T,A,f);void 0!==N&&R.push(N);var I=String(r.apply(void 0,R))}else I=b(M,f,A,T,N,r);A>=E&&(O+=f.slice(E,A)+I,E=A+M.length)}return O+f.slice(E)}];function b(e,n,r,o,s,a){var l=r+e.length,c=o.length,u=m;return void 0!==s&&(s=i(s),u=h),t.call(a,u,(function(t,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":a=s[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>c){var d=f(u/10);return 0===d?t:d<=c?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):t}a=o[u-1]}return void 0===a?"":a}))}}))},5692:function(e,t,n){var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),o=n("241c"),i=n("7418"),s=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=i.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,n){var r=n("23e7"),o=n("a2bf"),i=n("7b0b"),s=n("50c4"),a=n("1c0b"),l=n("65f0");r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=s(n.length);return a(e),(t=l(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,n){var r=n("a691"),o=n("1d80"),i=function(e){return function(t,n){var i,s,a=String(o(t)),l=r(n),c=a.length;return l<0||l>=c?e?"":void 0:(i=a.charCodeAt(l))<55296||i>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):i:e?a.slice(l,l+2):s-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(e,t,n){var r=n("861d"),o=n("e8b5"),i=n("b622")("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var r,o,i,s=n("7f9a"),a=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),d=n("f772"),p=n("d012"),f=a.WeakMap;if(s){var h=new f,m=h.get,g=h.has,v=h.set;r=function(e,t){return v.call(h,e,t),t},o=function(e){return m.call(h,e)||{}},i=function(e){return g.call(h,e)}}else{var y=d("state");p[y]=!0,r=function(e,t){return c(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6eeb":function(e,t,n){var r=n("da84"),o=n("9112"),i=n("5135"),s=n("ce4e"),a=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,a){var l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),u(n).source=d.join("string"==typeof t?t:"")),e!==r?(l?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},"6f53":function(e,t,n){var r=n("83ab"),o=n("df75"),i=n("fc6a"),s=n("d1e7").f,a=function(e){return function(t){for(var n,a=i(t),l=o(a),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!s.call(a,n)||d.push(e?[n,a[n]]:a[n]);return d}};e.exports={entries:a(!0),values:a(!1)}},"73d9":function(e,t,n){n("44d2")("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),o=n("5135"),i=n("e538"),s=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||s(t,e,{value:i.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,o=n("825a"),i=n("37e8"),s=n("7839"),a=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),d="prototype",p="script",f=u("IE_PROTO"),h=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},g=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(i){}var e,t,n;g=r?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):(t=c("iframe"),n="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var o=s.length;o--;)delete g[d][s[o]];return g()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=o(e),n=new h,h[d]=null,n[f]=e):n=g(),void 0===t?n:i(n,t)}},"7dd0":function(e,t,n){var r=n("23e7"),o=n("9ed3"),i=n("e163"),s=n("d2bb"),a=n("d44e"),l=n("9112"),c=n("6eeb"),u=n("b622"),d=n("c430"),p=n("3f8c"),f=n("ae93"),h=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v="keys",y="values",b="entries",w=function(){return this};e.exports=function(e,t,n,u,f,x,S){o(n,t,u);var k,O,E,C=function(e){if(e===f&&N)return N;if(!m&&e in T)return T[e];switch(e){case v:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",A=!1,T=e.prototype,_=T[g]||T["@@iterator"]||f&&T[f],N=!m&&_||C(f),R="Array"==t&&T.entries||_;if(R&&(k=i(R.call(new e)),h!==Object.prototype&&k.next&&(d||i(k)===h||(s?s(k,h):"function"!=typeof k[g]&&l(k,g,w)),a(k,M,!0,!0),d&&(p[M]=w))),f==y&&_&&_.name!==y&&(A=!0,N=function(){return _.call(this)}),d&&!S||T[g]===N||l(T,g,N),p[t]=N,f)if(O={values:C(y),keys:x?N:C(v),entries:C(b)},S)for(E in O)(m||A||!(E in T))&&c(T,E,O[E]);else r({target:t,proto:!0,forced:m||A},O);return O}},"7f9a":function(e,t,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){var r=n("c04e"),o=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){var s=r(t);s in e?o.f(e,s,i(0,n)):e[s]=n}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8875:function(e,t,n){var r,o,i;"undefined"!=typeof self&&self,o=[],r=function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,o,i=/@([^@]*):(\d+):(\d+)\s*$/gi,s=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(p.stack)||i.exec(p.stack),a=s&&s[1]||!1,l=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");a===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var d=0;d<u.length;d++){if("interactive"===u[d].readyState)return u[d];if(u[d].src===a)return u[d];if(a===c&&u[d].innerHTML&&u[d].innerHTML.trim()===o)return u[d]}return null}}return e},void 0===(i="function"==typeof r?r.apply(t,o):r)||(e.exports=i)},8925:function(e,t,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},"8aa5":function(e,t,n){var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8bbf":function(t,n){t.exports=e},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){var r,o,i=n("ad6d"),s=n("9f7f"),a=RegExp.prototype.exec,l=String.prototype.replace,c=a,u=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),d=s.UNSUPPORTED_Y||s.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(u||p||d)&&(c=function(e){var t,n,r,o,s=this,c=d&&s.sticky,f=i.call(s),h=s.source,m=0,g=e;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),g=String(e).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==e[s.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,m++),n=new RegExp("^(?:"+h+")",f)),p&&(n=new RegExp("^"+h+"$(?!\\s)",f)),u&&(t=s.lastIndex),r=a.call(c?n:s,g),c?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:u&&r&&(s.lastIndex=s.global?r.index+r[0].length:t),p&&r&&r.length>1&&l.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=c},"94ca":function(e,t,n){var r=n("d039"),o=/#|\.prototype\./,i=function(e,t){var n=a[s(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},s=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},"99af":function(e,t,n){var r=n("23e7"),o=n("d039"),i=n("e8b5"),s=n("861d"),a=n("7b0b"),l=n("50c4"),c=n("8418"),u=n("65f0"),d=n("1dde"),p=n("b622"),f=n("2d00"),h=p("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=f>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=d("concat"),b=function(e){if(!s(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!v||!y},{concat:function(e){var t,n,r,o,i,s=a(this),d=u(s,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(b(i=-1===t?s:arguments[t])){if(p+(o=l(i.length))>m)throw TypeError(g);for(n=0;n<o;n++,p++)n in i&&c(d,p,i[n])}else{if(p>=m)throw TypeError(g);c(d,p++,i)}return d.length=p,d}})},"9bdd":function(e,t,n){var r=n("825a");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(s){var i=e.return;throw void 0!==i&&r(i.call(e)),s}}},"9bf2":function(e,t,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),s=n("c04e"),a=Object.defineProperty;t.f=r?a:function(e,t,n){if(i(e),t=s(t,!0),i(n),o)try{return a(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){var r=n("ae93").IteratorPrototype,o=n("7c73"),i=n("5c6c"),s=n("d44e"),a=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),s(e,c,!1,!0),a[c]=l,e}},"9f7f":function(e,t,n){var r=n("d039");function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a2bf:function(e,t,n){var r=n("e8b5"),o=n("50c4"),i=n("0366"),s=function(e,t,n,a,l,c,u,d){for(var p,f=l,h=0,m=!!u&&i(u,d,3);h<a;){if(h in n){if(p=m?m(n[h],h,t):n[h],c>0&&r(p))f=s(e,t,p,o(p.length),f,c-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=p}f++}h++}return f};e.exports=s},a352:function(e,n){e.exports=t},a434:function(e,t,n){var r=n("23e7"),o=n("23cb"),i=n("a691"),s=n("50c4"),a=n("7b0b"),l=n("65f0"),c=n("8418"),u=n("1dde"),d=n("ae40"),p=u("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,m=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!p||!f},{splice:function(e,t){var n,r,u,d,p,f,y=a(this),b=s(y.length),w=o(e,b),x=arguments.length;if(0===x?n=r=0:1===x?(n=0,r=b-w):(n=x-2,r=m(h(i(t),0),b-w)),b+n-r>g)throw TypeError(v);for(u=l(y,r),d=0;d<r;d++)(p=w+d)in y&&c(u,d,y[p]);if(u.length=r,n<r){for(d=w;d<b-r;d++)f=d+n,(p=d+r)in y?y[f]=y[p]:delete y[f];for(d=b;d>b-r+n;d--)delete y[d-1]}else if(n>r)for(d=b-r;d>w;d--)f=d+n-1,(p=d+r-1)in y?y[f]=y[p]:delete y[f];for(d=0;d<n;d++)y[d+w]=arguments[d+2];return y.length=b-r+n,u}})},a4d3:function(e,t,n){var r=n("23e7"),o=n("da84"),i=n("d066"),s=n("c430"),a=n("83ab"),l=n("4930"),c=n("fdbf"),u=n("d039"),d=n("5135"),p=n("e8b5"),f=n("861d"),h=n("825a"),m=n("7b0b"),g=n("fc6a"),v=n("c04e"),y=n("5c6c"),b=n("7c73"),w=n("df75"),x=n("241c"),S=n("057f"),k=n("7418"),O=n("06cf"),E=n("9bf2"),C=n("d1e7"),M=n("9112"),A=n("6eeb"),T=n("5692"),_=n("f772"),N=n("d012"),R=n("90e3"),I=n("b622"),P=n("e538"),D=n("746f"),L=n("d44e"),j=n("69f3"),B=n("b727").forEach,V=_("hidden"),z="Symbol",F="prototype",$=I("toPrimitive"),H=j.set,U=j.getterFor(z),W=Object[F],q=o.Symbol,K=i("JSON","stringify"),J=O.f,G=E.f,Y=S.f,X=C.f,Z=T("symbols"),Q=T("op-symbols"),ee=T("string-to-symbol-registry"),te=T("symbol-to-string-registry"),ne=T("wks"),re=o.QObject,oe=!re||!re[F]||!re[F].findChild,ie=a&&u((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=J(W,t);r&&delete W[t],G(e,t,n),r&&e!==W&&G(W,t,r)}:G,se=function(e,t){var n=Z[e]=b(q[F]);return H(n,{type:z,tag:e,description:t}),a||(n.description=t),n},ae=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},le=function(e,t,n){e===W&&le(Q,t,n),h(e);var r=v(t,!0);return h(n),d(Z,r)?(n.enumerable?(d(e,V)&&e[V][r]&&(e[V][r]=!1),n=b(n,{enumerable:y(0,!1)})):(d(e,V)||G(e,V,y(1,{})),e[V][r]=!0),ie(e,r,n)):G(e,r,n)},ce=function(e,t){h(e);var n=g(t),r=w(n).concat(fe(n));return B(r,(function(t){a&&!ue.call(n,t)||le(e,t,n[t])})),e},ue=function(e){var t=v(e,!0),n=X.call(this,t);return!(this===W&&d(Z,t)&&!d(Q,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,V)&&this[V][t])||n)},de=function(e,t){var n=g(e),r=v(t,!0);if(n!==W||!d(Z,r)||d(Q,r)){var o=J(n,r);return!o||!d(Z,r)||d(n,V)&&n[V][r]||(o.enumerable=!0),o}},pe=function(e){var t=Y(g(e)),n=[];return B(t,(function(e){d(Z,e)||d(N,e)||n.push(e)})),n},fe=function(e){var t=e===W,n=Y(t?Q:g(e)),r=[];return B(n,(function(e){!d(Z,e)||t&&!d(W,e)||r.push(Z[e])})),r};l||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function(e){this===W&&n.call(Q,e),d(this,V)&&d(this[V],t)&&(this[V][t]=!1),ie(this,t,y(1,e))};return a&&oe&&ie(W,t,{configurable:!0,set:n}),se(t,e)},A(q[F],"toString",(function(){return U(this).tag})),A(q,"withoutSetter",(function(e){return se(R(e),e)})),C.f=ue,E.f=le,O.f=de,x.f=S.f=pe,k.f=fe,P.f=function(e){return se(I(e),e)},a&&(G(q[F],"description",{configurable:!0,get:function(){return U(this).description}}),s||A(W,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),B(w(ne),(function(e){D(e)})),r({target:z,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!a},{create:function(e,t){return void 0===t?b(e):ce(b(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:u((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(m(e))}}),K&&r({target:"JSON",stat:!0,forced:!l||u((function(){var e=q();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(f(t)||void 0!==e)&&!ae(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),o[1]=t,K.apply(null,o)}}),q[F][$]||M(q[F],$,q[F].valueOf),L(q,z),N[V]=!0},a630:function(e,t,n){var r=n("23e7"),o=n("4df4");r({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:o})},a640:function(e,t,n){var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},ab13:function(e,t,n){var r=n("b622")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(pF){try{return t[r]=!1,"/./"[e](t)}catch(n){}}return!1}},ac1f:function(e,t,n){var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(e,t,n){var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("5135"),s=Object.defineProperty,a={},l=function(e){throw e};e.exports=function(e,t){if(i(a,e))return a[e];t||(t={});var n=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:l,d=i(t,1)?t[1]:void 0;return a[e]=!!n&&!o((function(){if(c&&!r)return!0;var e={length:-1};c?s(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,d)}))}},ae93:function(e,t,n){var r,o,i,s=n("e163"),a=n("9112"),l=n("5135"),c=n("b622"),u=n("c430"),d=c("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),u||l(r,d)||a(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},b041:function(e,t,n){var r=n("00ee"),o=n("f5df");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(e,t,n){var r=n("83ab"),o=n("9bf2").f,i=Function.prototype,s=i.toString,a=/^\s*function ([^ (]*)/,l="name";r&&!(l in i)&&o(i,l,{configurable:!0,get:function(){try{return s.call(this).match(a)[1]}catch(e){return""}}})},b622:function(e,t,n){var r=n("da84"),o=n("5692"),i=n("5135"),s=n("90e3"),a=n("4930"),l=n("fdbf"),c=o("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||s;e.exports=function(e){return i(c,e)||(a&&i(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},b64b:function(e,t,n){var r=n("23e7"),o=n("7b0b"),i=n("df75");r({target:"Object",stat:!0,forced:n("d039")((function(){i(1)}))},{keys:function(e){return i(o(e))}})},b727:function(e,t,n){var r=n("0366"),o=n("44ad"),i=n("7b0b"),s=n("50c4"),a=n("65f0"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d;return function(f,h,m,g){for(var v,y,b=i(f),w=o(b),x=r(h,m,3),S=s(w.length),k=0,O=g||a,E=t?O(f,S):n?O(f,0):void 0;S>k;k++)if((p||k in w)&&(y=x(v=w[k],k,b),e))if(t)E[k]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:l.call(E,v)}else if(u)return!1;return d?-1:c||u?u:E}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),o=n("ce4e"),i="__core-js_shared__",s=r[i]||o(i,{});e.exports=s},c740:function(e,t,n){var r=n("23e7"),o=n("b727").findIndex,i=n("44d2"),s=n("ae40"),a="findIndex",l=!0,c=s(a);a in[]&&Array(1)[a]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(pF){"object"==typeof window&&(n=window)}e.exports=n},c975:function(e,t,n){var r=n("23e7"),o=n("4d64").indexOf,i=n("a640"),s=n("ae40"),a=[].indexOf,l=!!a&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),u=s("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?a.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,s=n("d012");e.exports=function(e,t){var n,a=o(e),l=0,c=[];for(n in a)!r(s,n)&&r(a,n)&&c.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~i(c,n)||c.push(n));return c}},caad:function(e,t,n){var r=n("23e7"),o=n("4d64").includes,i=n("44d2");r({target:"Array",proto:!0,forced:!n("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(e,t,n){var r=n("da84"),o=n("861d"),i=r.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},ce4e:function(e,t,n){var r=n("da84"),o=n("9112");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("428f"),o=n("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},d1e7:function(e,t,n){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){n("746f")("iterator")},d2bb:function(e,t,n){var r=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(e,t,n){var r=n("00ee"),o=n("6eeb"),i=n("b041");r||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,o=n("5135"),i=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},d58f:function(e,t,n){var r=n("1c0b"),o=n("7b0b"),i=n("44ad"),s=n("50c4"),a=function(e){return function(t,n,a,l){r(n);var c=o(t),u=i(c),d=s(c.length),p=e?d-1:0,f=e?-1:1;if(a<2)for(;;){if(p in u){l=u[p],p+=f;break}if(p+=f,e?p<0:d<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=f)p in u&&(l=n(l,u[p],p,c));return l}};e.exports={left:a(!1),right:a(!0)}},d784:function(e,t,n){n("ac1f");var r=n("6eeb"),o=n("d039"),i=n("b622"),s=n("9263"),a=n("9112"),l=i("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),d=i("replace"),p=!!/./[d]&&""===/./[d]("a","$0"),f=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var h=i(e),m=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),g=m&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!m||!g||"replace"===e&&(!c||!u||p)||"split"===e&&!f){var v=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===s?m&&!o?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[0],w=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}d&&a(RegExp.prototype[h],"sham",!0)}},d81d:function(e,t,n){var r=n("23e7"),o=n("b727").map,i=n("1dde"),s=n("ae40"),a=i("map"),l=s("map");r({target:"Array",proto:!0,forced:!a||!l},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var r=n("23e7"),o=n("83ab"),i=n("56ef"),s=n("fc6a"),a=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=s(e),o=a.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=o(r,t=c[d++]))&&l(u,t,n);return u}})},dbf1:function(e,t,n){(function(e){n.d(t,"a",(function(){return r}));var r="undefined"!=typeof window?window.console:e.console}).call(this,n("c8ba"))},ddb0:function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("e260"),s=n("9112"),a=n("b622"),l=a("iterator"),c=a("toStringTag"),u=i.values;for(var d in o){var p=r[d],f=p&&p.prototype;if(f){if(f[l]!==u)try{s(f,l,u)}catch(m){f[l]=u}if(f[c]||s(f,c,d),o[d])for(var h in i)if(f[h]!==i[h])try{s(f,h,i[h])}catch(m){f[h]=i[h]}}}},df75:function(e,t,n){var r=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return r(e,o)}},e01a:function(e,t,n){var r=n("23e7"),o=n("83ab"),i=n("da84"),s=n("5135"),a=n("861d"),l=n("9bf2").f,c=n("e893"),u=i.Symbol;if(o&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(p,u);var f=p.prototype=u.prototype;f.constructor=p;var h=f.toString,m="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=a(this)?this.valueOf():this,t=h.call(e);if(s(d,e))return"";var n=m?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},e163:function(e,t,n){var r=n("5135"),o=n("7b0b"),i=n("f772"),s=n("e177"),a=i("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){var r=n("fc6a"),o=n("44d2"),i=n("3f8c"),s=n("69f3"),a=n("7dd0"),l="Array Iterator",c=s.set,u=s.getterFor(l);e.exports=a(Array,"Array",(function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e439:function(e,t,n){var r=n("23e7"),o=n("d039"),i=n("fc6a"),s=n("06cf").f,a=n("83ab"),l=o((function(){s(1)}));r({target:"Object",stat:!0,forced:!a||l,sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(i(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e893:function(e,t,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),s=n("9bf2");e.exports=function(e,t){for(var n=o(t),a=s.f,l=i.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||a(e,u,l(t,u))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e95a:function(e,t,n){var r=n("b622"),o=n("3f8c"),i=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},f5df:function(e,t,n){var r=n("00ee"),o=n("c6b6"),i=n("b622")("toStringTag"),s="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:s?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},f772:function(e,t,n){var r=n("5692"),o=n("90e3"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},fb15:function(e,t,n){if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n("99af"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("a434"),n("159b"),n("a4d3"),n("e439"),n("dbb4"),n("b64b"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0"),n("a630"),n("fb6a"),n("b0c0"),n("25f0");var f=n("a352"),h=n.n(f);function m(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function g(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}var v=n("dbf1");n("13d5"),n("4fad"),n("ac1f"),n("5319");var y,b,w=/-(\w)/g,x=(y=function(e){return e.replace(w,(function(e,t){return t.toUpperCase()}))},b=Object.create(null),function(e){return b[e]||(b[e]=y(e))});n("5db7"),n("73d9");var S=["Start","Add","Remove","Update","End"],k=["Choose","Unchoose","Sort","Filter","Clone"],O=["Move"],E=[O,S,k].flatMap((function(e){return e})).map((function(e){return"on".concat(e)})),C={manage:O,manageAndEmit:S,emit:k};n("caad"),n("2ca0");var M=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function A(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function T(e){return e.reduce((function(e,t){var n=d(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}function _(e){return Object.entries(e).filter((function(e){var t=d(e,2),n=t[0];return t[1],!A(n)})).map((function(e){var t=d(e,2),n=t[0],r=t[1];return[x(n),r]})).filter((function(e){var t,n=d(e,2),r=n[0];return n[1],t=r,!(-1!==E.indexOf(t))}))}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n("c740");var R=function(e){return e.el},I=function(e){return e.__draggable_context},P=function(){function e(t){var n=t.nodes,r=n.header,o=n.default,i=n.footer,s=t.root,a=t.realList;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultNodes=o,this.children=[].concat(p(r),p(o),p(i)),this.externalComponent=s.externalComponent,this.rootTransition=s.transition,this.tag=s.tag,this.realList=a}var t,n,r;return t=e,(n=[{key:"render",value:function(e,t){var n=this.tag,r=this.children;return e(n,t,this._isRootComponent?{default:function(){return r}}:r)}},{key:"updated",value:function(){var e=this.defaultNodes,t=this.realList;e.forEach((function(e,n){var r,o;r=R(e),o={element:t[n],index:n},r.__draggable_context=o}))}},{key:"getUnderlyingVm",value:function(e){return I(e)}},{key:"getVmIndexFromDomIndex",value:function(e,t){var n=this.defaultNodes,r=n.length,o=t.children,i=o.item(e);if(null===i)return r;var s=I(i);if(s)return s.index;if(0===r)return 0;var a=R(n[0]);return e<p(o).findIndex((function(e){return e===a}))?0:r}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}])&&N(t.prototype,n),r&&N(t,r),e}(),D=n("8bbf");function L(e){var t=function(e){return["transition-group","TransitionGroup"].includes(e)}(e),n=!function(e){return M.includes(e)}(e)&&!t;return{transition:t,externalComponent:n,tag:n?Object(D.resolveComponent)(e):t?D.TransitionGroup:e}}function j(e){var t=e.$slots,n=e.tag,r=e.realList,o=function(e){var t=e.$slots,n=e.realList,r=e.getKey,o=n||[],i=["header","footer"].map((function(e){return(n=t[e])?n():[];var n})),s=d(i,2),a=s[0],c=s[1],u=t.item;if(!u)throw new Error("draggable element must have an item slot");var p=o.flatMap((function(e,t){return u({element:e,index:t}).map((function(t){return t.key=r(e),t.props=l(l({},t.props||{}),{},{"data-draggable":!0}),t}))}));if(p.length!==o.length)throw new Error("Item slot must have only one child");return{header:a,footer:c,default:p}}({$slots:t,realList:r,getKey:e.getKey}),i=L(n);return new P({nodes:o,root:i,realList:r})}function B(e,t){var n=this;Object(D.nextTick)((function(){return n.$emit(e.toLowerCase(),t)}))}function V(e){var t=this;return function(n,r){if(null!==t.realList)return t["onDrag".concat(e)](n,r)}}function z(e){var t=this,n=V.call(this,e);return function(r,o){n.call(t,r,o),B.call(t,e,r)}}var F=null,$={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},H=["update:modelValue","change"].concat(p([].concat(p(C.manageAndEmit),p(C.emit)).map((function(e){return e.toLowerCase()})))),U=Object(D.defineComponent)({name:"draggable",inheritAttrs:!1,props:$,emits:H,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,r=this.componentData,o=j({$slots:e,tag:n,realList:this.realList,getKey:this.getKey});this.componentStructure=o;var i=function(e){var t=e.$attrs,n=e.componentData,r=void 0===n?{}:n;return l(l({},T(Object.entries(t).filter((function(e){var t=d(e,2),n=t[0];return t[1],A(n)})))),r)}({$attrs:t,componentData:r});return o.render(D.h,i)}catch(s){return this.error=!0,Object(D.h)("pre",{style:{color:"red"}},s.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&v.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el;this.componentStructure.updated();var r=function(e){var t=e.$attrs,n=e.callBackBuilder,r=T(_(t));Object.entries(n).forEach((function(e){var t=d(e,2),n=t[0],o=t[1];C[n].forEach((function(e){r["on".concat(e)]=o(e)}))}));var o="[data-draggable]".concat(r.draggable||"");return l(l({},r),{},{draggable:o})}({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return z.call(e,t)},emit:function(t){return B.bind(e,t)},manage:function(t){return V.call(e,t)}}}),o=1===n.nodeType?n:n.parentElement;this._sortable=new h.a(o,r),this.targetDomElement=o,o.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var e=this.list;return e||this.modelValue},getKey:function(){var e=this.itemKey;return"function"==typeof e?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&_(e).forEach((function(e){var n=d(e,2),r=n[0],o=n[1];t.option(r,o)}))},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;Object(D.nextTick)((function(){return t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=p(this.modelValue);e(t),this.$emit("update:modelValue",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,p(e))};this.alterList(t)},updatePosition:function(e,t){this.alterList((function(n){return n.splice(t,0,n.splice(e,1)[0])}))},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var o=r.realList,i={list:o,component:r};return t!==n&&o?l(l({},r.getUnderlyingVm(n)||{}),i):i},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),F=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){m(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(g(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context,n=t.index,r=t.element;this.spliceList(n,1);var o={element:r,oldIndex:n};this.emitChanges({removed:o})}else m(e.clone)},onDragUpdate:function(e){m(e.item),g(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=p(t.to.children).filter((function(e){return"none"!==e.style.display})),r=n.indexOf(t.related),o=e.component.getVmIndexFromDomIndex(r);return-1===n.indexOf(F)&&t.willInsertAfter?o+1:o},onDragMove:function(e,t){var n=this.move,r=this.realList;if(!n||!r)return!0;var o=this.getRelatedContextFromMoveEvent(e),i=this.computeFutureIndex(o,e),s=l(l({},this.context),{},{futureIndex:i});return n(l(l({},e),{},{relatedContext:o,draggedContext:s}),t)},onDragEnd:function(){F=null}}}),W=U;t.default=W},fb6a:function(e,t,n){var r=n("23e7"),o=n("861d"),i=n("e8b5"),s=n("23cb"),a=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),d=n("1dde"),p=n("ae40"),f=d("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),m=u("species"),g=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!f||!h},{slice:function(e,t){var n,r,u,d=l(this),p=a(d.length),f=s(e,p),h=s(void 0===t?p:t,p);if(i(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[m])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(d,f,h);for(r=new(void 0===n?Array:n)(v(h-f,0)),u=0;f<h;f++,u++)f in d&&c(r,u,d[f]);return r.length=u,r}})},fc6a:function(e,t,n){var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}).default},lM.exports=NT(cM,mc(_T));const RT={class:"w100"},IT={class:"description"},PT={class:"handle"},DT={key:0,class:"description"};const LT=Fg({name:"AttrFloorSetter",components:{Draggable:hc(lM.exports)},props:["modelValue","attrs","size"],emits:["update:modelValue"],setup(e,{emit:t}){const n=Mt({}),r=$i({get:()=>e.modelValue||[],set:e=>{t("update:modelValue",e)}});return Mr((()=>{Bg.getData({do:"get_cate_list"}).then((e=>{const{data:t}=e;n.value=t.cate_list}))})),{floor:r,cateList:n,flName:e=>n.value[e]?n.value[e].name:"-"}}},[["render",function(e,t,n,r,o,i){const s=CE,a=ME,l=En("Draggable");return Qo(),oi("div",RT,[di("div",IT,X(n.attrs.remark),1),pi(a,{modelValue:r.floor,"onUpdate:modelValue":t[0]||(t[0]=e=>r.floor=e)},{default:yn((()=>[(Qo(!0),oi(Ko,null,Lr(r.cateList,((e,t)=>(Qo(),ii(s,{class:"mt",label:e.term_id,key:t},{default:yn((()=>[mi(X(e.name),1)])),_:2},1032,["label"])))),128))])),_:1},8,["modelValue"]),pi(l,{class:"selected-items-wp",list:r.floor,handle:".handle","item-key":"label"},{item:yn((({element:e,index:t})=>[di("div",PT,X(r.flName(e)),1)])),_:1},8,["list"]),r.floor.length?(Qo(),oi("div",DT,"* 支持拖拽设定楼层顺序。")):vi("",!0)])}]]),jT={name:"WbbIcon",props:{class:{type:String},name:{type:String,required:!0},styles:{type:String,default:""}}},BT=[di("path",{"fill-rule":"evenodd",d:"M19 18.4a.6.6 0 0 1 .1 1.2H11a.6.6 0 0 1-.1-1.2H19zM15.7 4.7c.6-.6 1.5-.8 2.2-.7a1.8 1.8 0 0 1 1.4 1.4c.1.8-.1 1.6-.7 2.2L8.4 17.8a.7.7 0 0 1-.3.1L5 19c-.4.2-.8-.2-.6-.6l1-3 .1-.3z"},null,-1)],VT=[di("path",{"fill-rule":"evenodd",d:"M9 4v16H5.3c-.7 0-1.3-.8-1.3-1.6V6A2 2 0 0 1 6 4h3zm11 6v8.6a1.6 1.6 0 0 1-1.6 1.4H10V10h10zm-1.5-6h.1c.8 0 1.4.7 1.4 1.5V9H10V4h8.5z"},null,-1)],zT=[di("path",{"fill-rule":"evenodd",d:"M12 1a2 2 0 0 1 2 2 1.6 1.6 0 0 0 1 1.6 1.6 1.6 0 0 0 1.8-.3 2 2 0 1 1 3 2.7l-.1.1a1.6 1.6 0 0 0-.4 1.8V9c.3.6.9 1 1.5 1h.2a2 2 0 1 1 0 4 1.6 1.6 0 0 0-1.6 1 1.6 1.6 0 0 0 .3 1.8 2 2 0 1 1-2.7 3l-.1-.1a1.6 1.6 0 0 0-1.8-.4 1.6 1.6 0 0 0-1 1.5v.2a2 2 0 1 1-4 0A1.6 1.6 0 0 0 9 19.3a1.6 1.6 0 0 0-1.8.3 2 2 0 1 1-3-2.7l.1-.1a1.6 1.6 0 0 0 .4-1.8 1.6 1.6 0 0 0-1.5-1H3a2 2 0 1 1 0-4A1.6 1.6 0 0 0 4.7 9a1.6 1.6 0 0 0-.3-1.8 2 2 0 1 1 2.7-3l.1.1a1.6 1.6 0 0 0 1.8.4H9a1.6 1.6 0 0 0 1-1.5V3a2 2 0 0 1 2-2zm0 8a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"},null,-1)],FT=[di("path",{"fill-rule":"evenodd",d:"M12 2c5.5 0 10 4 10 8.9a5.6 5.6 0 0 1-5.6 5.5h-2a1.7 1.7 0 0 0-1.2 2.8A1.7 1.7 0 0 1 12 22a10 10 0 0 1 0-20zM6 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm12 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM9 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm6 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"},null,-1)],$T=[di("path",{"fill-rule":"evenodd",d:"M13.3 1.3a.8.8 0 0 0-1.2 0L6.3 7v2.7h2.6l5.8-6c.4-.3.4-.8 0-1.1l-1.4-1.4Z","clip-rule":"evenodd"},null,-1),di("path",{"fill-rule":"evenodd",d:"M14.1 8.9c-.5 0-.8.3-.8.8v3.6H2.7V2.7h3.5c.6 0 1-.3 1-.8s-.4-.9-1-.9H2c-.5 0-.9.4-.9.9V14c0 .6.4.9.9.9H14c.6 0 .9-.3.9-.9V9.8c0-.6-.3-1-.9-1Z","clip-rule":"evenodd"},null,-1)],HT=[di("path",{"fill-rule":"evenodd",d:"M9 4H7v3H4v2h3v3h2V9h3V7H9V4Z","clip-rule":"evenodd"},null,-1),di("path",{"fill-rule":"evenodd",d:"M8 14a6 6 0 0 1-6-6 6 6 0 0 1 6-6 6 6 0 0 1 6 6 6 6 0 0 1-6 6ZM8 0a8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8 8 8 0 0 0-8-8Z","clip-rule":"evenodd"},null,-1)],UT=[di("path",{"fill-rule":"evenodd",d:"M5.4 7.1H7v5.3H5.4V7ZM8.9 7.1h1.7v5.3H9V7Z","clip-rule":"evenodd"},null,-1),di("path",{"fill-rule":"evenodd",d:"M12.4 13.3H3.6v-8h8.8v8ZM6.2 2.7h3.5v1H6.3v-1Zm5.3-.8c0-.5-.3-.9-.9-.9H5.4c-.6 0-.9.4-.9.9v1.7H1v1.8h.9V14c0 .6.3.9.9.9h10.4c.6 0 1-.3 1-.9V5.4h.8V3.6h-3.5V2Z","clip-rule":"evenodd"},null,-1)],WT=[di("path",{"fill-rule":"evenodd",d:"M3 5H0l4-5 4 5H5v8a1 1 0 0 1-2 0V5ZM11 11V3a1 1 0 0 1 2 0v8h3l-4 5-4-5h3Z","clip-rule":"evenodd"},null,-1)],qT=[di("path",{"fill-rule":"evenodd",d:"M3.9 8.3a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8zm6.1 0a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8zm6.1 0a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8z"},null,-1)],KT=[di("path",{"fill-rule":"evenodd",d:"M11.333 11.073a.6.6 0 01.098 1.192l-.098.008H4.667a.6.6 0 01-.098-1.192l.098-.008h6.666zm0-3.67a.6.6 0 01.098 1.192l-.098.008H4.667a.6.6 0 01-.098-1.192l.098-.008h6.666zm0-3.67a.6.6 0 01.098 1.192l-.098.008H4.667a.6.6 0 01-.098-1.192l.098-.008h6.666z"},null,-1)],JT=[di("path",{"fill-rule":"evenodd",d:"M7.1 12A5 5 0 0 1 2 7a5.1 5.1 0 0 1 10.2 0 5 5 0 0 1-5.1 5Zm5.6-.8A7 7 0 0 0 7.1 0 7.1 7.1 0 0 0 0 7a7.1 7.1 0 0 0 11.3 5.7l3 3c.2.2.5.3.7.3.2 0 .5-.1.7-.3.4-.4.4-1 0-1.4l-3-3Z","clip-rule":"evenodd"},null,-1)],GT=[di("path",{"fill-rule":"evenodd",d:"M8 14a6 6 0 0 1-6-6 6 6 0 0 1 6-6 6 6 0 0 1 6 6 6 6 0 0 1-6 6M8 0a8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8 8 8 0 0 0-8-8","clip-rule":"evenodd"},null,-1),di("path",{"fill-rule":"evenodd",d:"M9 4H7v5h5V7H9V4Z","clip-rule":"evenodd"},null,-1)],YT=[di("path",{"fill-rule":"evenodd",d:"M10.7 15.4 3 7.7 10.7 0l1.5 1.4-6.3 6.3 6.3 6.3-1.5 1.4Z","clip-rule":"evenodd"},null,-1)],XT=[di("path",{"fill-rule":"evenodd",d:"M15 7H1c-.6 0-1 .4-1 1s.4 1 1 1h14c.6 0 1-.4 1-1s-.4-1-1-1M15 1H1c-.6 0-1 .4-1 1s.4 1 1 1h14c.6 0 1-.4 1-1s-.4-1-1-1M15 13H1c-.6 0-1 .4-1 1s.4 1 1 1h14c.6 0 1-.4 1-1s-.4-1-1-1","clip-rule":"evenodd"},null,-1)],ZT=[di("path",{"fill-rule":"evenodd",d:"M8 5a3 3 0 0 1 3 3 3 3 0 0 1-3 3 3 3 0 0 1-3-3 3 3 0 0 1 3-3Zm0 9c3.6 0 6.4-3.1 7.6-4.9a2 2 0 0 0 0-2.3C14.4 5.1 11.6 2 8 2 4.4 2 1.6 5.1.4 6.9c-.5.7-.5 1.6 0 2.2C1.6 10.9 4.4 14 8 14Z","clip-rule":"evenodd"},null,-1)],QT=[di("path",{"fill-rule":"evenodd",d:"M16 5H0V2c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v3ZM5 15H1a1 1 0 0 1-1-1V7h5v8ZM15 15H7V7h9v7c0 .6-.4 1-1 1","clip-rule":"evenodd"},null,-1)],e_=[di("path",{"fill-rule":"evenodd",d:"m11.8 8.4-5.4 5.4L5 12.4l4-4-4-4L6.4 3l5.4 5.4Z","clip-rule":"evenodd"},null,-1)],t_=[di("path",{"fill-rule":"evenodd",d:"M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6Zm7.1-4.2a2 2 0 0 1-1.2-3c.3-.5.2-1 0-1.3l-.4-.3c-.3-.3-.8-.4-1.3-.1a2 2 0 0 1-3-1.2c-.1-.6-.5-.9-1-.9h-.4c-.5 0-.9.3-1 .9a2 2 0 0 1-3 1.2c-.5-.3-1-.2-1.3 0l-.3.4c-.3.3-.4.8-.1 1.3a2 2 0 0 1-1.2 3c-.6.1-.9.5-.9 1v.4c0 .5.3.9.9 1a2 2 0 0 1 1.2 3c-.3.5-.2 1 0 1.3l.4.3c.3.3.8.4 1.3.1a2 2 0 0 1 3 1.2c.1.6.5.9 1 .9h.4c.5 0 .9-.3 1-.9a2 2 0 0 1 3-1.2c.5.3 1 .2 1.3 0l.3-.4c.3-.3.4-.8.1-1.3a2 2 0 0 1 1.2-3c.6-.1.9-.5.9-1v-.4c0-.5-.3-.9-.9-1Z","clip-rule":"evenodd"},null,-1)],n_=[di("path",{"fill-rule":"evenodd",d:"m5 12.6-3-3V3.4l3 3v6.2ZM3.4 2H8v2h2V1c0-.6-.4-1-1-1H1C.4 0 0 .4 0 1v9c0 .3.1.5.3.7l5 5c.2.2.4.3.7.3l.4-.1c.4-.1.6-.5.6-.9V6a1 1 0 0 0-.3-.7L3.4 2Z","clip-rule":"evenodd"},null,-1),di("path",{"fill-rule":"evenodd",d:"M15.7 7.3 12 3.6 10.6 5l2 2H8v2h4.6l-2 2 1.4 1.4 3.7-3.7c.4-.4.4-1 0-1.4Z","clip-rule":"evenodd"},null,-1)],r_=[di("path",{"fill-rule":"evenodd",d:"M14.7 1.3a1 1 0 0 0-1.4 0L8 6.6 2.7 1.3a1 1 0 0 0-1.4 0 1 1 0 0 0 0 1.4L6.6 8l-5.3 5.3a1 1 0 0 0 0 1.4c.2.2.4.3.7.3.3 0 .5-.1.7-.3L8 9.4l5.3 5.3c.2.2.5.3.7.3.2 0 .5-.1.7-.3.4-.4.4-1 0-1.4L9.4 8l5.3-5.3c.4-.4.4-1 0-1.4","clip-rule":"evenodd"},null,-1)];const o_=Fg(jT,[["render",function(e,t,n,r,o,i){return"content"==n.name?(Qo(),oi("svg",{key:0,class:q(["wbb-icon",n.class]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},BT,2)):"layout"==n.name?(Qo(),oi("svg",{key:1,class:q(["wbb-icon",n.class]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},VT,2)):"settings"==n.name?(Qo(),oi("svg",{key:2,class:q(["wbb-icon",n.class]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},zT,2)):"style"==n.name?(Qo(),oi("svg",{key:3,class:q(["wbb-icon",n.class]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},FT,2)):"edit"==n.name?(Qo(),oi("svg",{key:4,class:q(["wbb-icon",n.class]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},$T,2)):"add"==n.name?(Qo(),oi("svg",{key:5,class:q(["wbb-icon",n.class]),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},HT,2)):"delete"==n.name?(Qo(),oi("svg",{key:6,class:q(["wbb-icon",n.class]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},UT,2)):"rank"==n.name?(Qo(),oi("svg",{key:7,class:q(["wbb-icon",n.class]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},WT,2)):"more"==n.name?(Qo(),oi("svg",{key:8,class:q(["wbb-icon",n.class]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},qT,2)):"dragging"==n.name?(Qo(),oi("svg",{key:9,class:q(["wbb-icon",n.class]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},KT,2)):"search"==n.name?(Qo(),oi("svg",{key:10,xmlns:"http://www.w3.org/2000/svg",class:q(["wbb-icon",n.class]),viewBox:"0 0 16 16"},JT,2)):"history"==n.name?(Qo(),oi("svg",{key:11,xmlns:"http://www.w3.org/2000/svg",class:q(["wbb-icon",n.class]),viewBox:"0 0 16 16"},GT,2)):"menu"==n.name?(Qo(),oi("svg",{key:12,xmlns:"http://www.w3.org/2000/svg",class:q(["wbb-icon",n.class]),viewBox:"0 0 16 16"},YT,2)):"back"==n.name?(Qo(),oi("svg",{key:13,xmlns:"http://www.w3.org/2000/svg",class:q(["wbb-icon",n.class]),viewBox:"0 0 16 16"},XT,2)):"preview"==n.name?(Qo(),oi("svg",{key:14,xmlns:"http://www.w3.org/2000/svg",class:q(["wbb-icon",n.class]),viewBox:"0 0 16 16"},ZT,2)):"model"==n.name?(Qo(),oi("svg",{key:15,xmlns:"http://www.w3.org/2000/svg",class:q(["wbb-icon",n.class]),viewBox:"0 0 16 16"},QT,2)):"arrow"==n.name?(Qo(),oi("svg",{key:16,xmlns:"http://www.w3.org/2000/svg",class:q(["wbb-icon",n.class]),viewBox:"0 0 16 16"},e_,2)):"options"==n.name?(Qo(),oi("svg",{key:17,xmlns:"http://www.w3.org/2000/svg",class:q(["wbb-icon",n.class]),viewBox:"0 0 16 16"},t_,2)):"exit"==n.name?(Qo(),oi("svg",{key:18,xmlns:"http://www.w3.org/2000/svg",class:q(["wbb-icon",n.class]),viewBox:"0 0 16 16"},n_,2)):"close"==n.name?(Qo(),oi("svg",{key:19,xmlns:"http://www.w3.org/2000/svg",class:q(["wbb-icon",n.class]),viewBox:"0 0 16 16"},r_,2)):vi("",!0)}]]),i_={key:0,class:"wbb-attr-media wbb-file-uploader"},s_={class:"wbb-preview"},a_=["src"],l_=["src"],c_={class:"wbb-ctrl-bar"},u_={class:"wbb-ctrl-items"};const d_=Fg({name:"FileUploader",components:{WbbIcon:o_},props:{modelValue:{default:()=>({})},attrs:{default:()=>({btn:"选择",placeholder:"",library:{type:"image, mp4"},multiple:!1})},mediaType:"img"},emits:["update:modelValue"],setup(e,t){const n=$i({get:()=>e.modelValue,set:e=>t.emit("update:modelValue",e)}),r=$i((()=>{let t="";return t=/.mp4*./.test(n.value)?"video":/[.jpg|.png|.gif|.webp|.svg]./.test(n.value)?"img":e.mediaType,t})),o=Mt("upload");return{selectedItem:n,elSize:"small",uploadFiles:()=>{const n=wp.media({title:"选择文件",button:{text:"确认"},library:e.props,multiple:e.multiple});n.once("select",(e=>{const r=n.state().get("selection").toJSON()[0].url;t.emit("update:modelValue",r)})),n.open()},removeItem:()=>{n.value=null,t.emit("update:modelValue",null)},itemType:r,inputModeChange:e=>{t.emit("update:modelValue",e)},inputMode:o,switchInputMode:()=>{o.value="upload"==o.value?"input":"upload"}}}},[["render",function(e,t,n,r,o,i){const s=o_,a=oE,l=Sk;return"upload"==r.inputMode?(Qo(),oi("div",i_,[di("div",s_,[r.selectedItem?(Qo(),oi(Ko,{key:0},["img"==r.itemType?(Qo(),oi("img",{key:0,class:"wbb-img",src:r.selectedItem,alt:""},null,8,a_)):"video"==r.itemType?(Qo(),oi("video",{key:1,class:"wbb-video",src:r.selectedItem},null,8,l_)):vi("",!0),di("div",{class:"wbb-mask",onClick:t[0]||(t[0]=(...e)=>r.uploadFiles&&r.uploadFiles(...e))}),di("div",{class:"wbb-ctrl-del",onClick:t[1]||(t[1]=(...e)=>r.removeItem&&r.removeItem(...e)),"wb-lang":"",title:"删除"},[pi(s,{name:"delete"})])],64)):(Qo(),oi(Ko,{key:1},[pi(s,{class:"wbb-svg-icon wbb-icon-add",name:"add"}),di("div",{class:"wbb-mask",onClick:t[2]||(t[2]=(...e)=>r.uploadFiles&&r.uploadFiles(...e))})],64)),di("div",c_,[di("div",u_,[di("div",{class:"wbb-ctrl-item",onClick:t[3]||(t[3]=(...e)=>r.uploadFiles&&r.uploadFiles(...e)),"wb-lang":""},X(n.attrs.btn),1),di("div",{class:"wbb-ctrl-item",onClick:t[4]||(t[4]=(...e)=>r.switchInputMode&&r.switchInputMode(...e)),"wb-lang":""}," 插入URL ")])])])])):(Qo(),ii(l,{key:1,class:"upload-input",modelValue:r.selectedItem,"onUpdate:modelValue":t[6]||(t[6]=e=>r.selectedItem=e),onChange:r.inputModeChange},{append:yn((()=>[pi(a,{type:"button",onClick:t[5]||(t[5]=e=>(r.switchInputMode(),r.uploadFiles()))},{default:yn((()=>[mi(" 选择文件 ")])),_:1})])),_:1},8,["modelValue","onChange"]))}]]),p_={class:"wbs-social-setter"},f_=["innerHTML"],h_={class:"mt w100"},m_={class:"scb-hd"},g_={class:"description"};const v_=Fg({name:"AttrSocialItems",components:{FileUploader:d_},props:["modelValue","attrs","size"],emits:["update:modelValue"],setup(e,{emit:t}){const n=e.attrs.max||4,r=$i({get:()=>e.modelValue,set:e=>{t("update:modelValue",e)}});return{val:r,max:n,selectedItems:$i((()=>Object.values(r.value).filter((e=>1==e.status))))}}},[["render",function(e,t,n,r,o,i){const s=CE,a=d_,l=Sk;return Qo(),oi(Ko,null,[di("div",p_,[(Qo(!0),oi(Ko,null,Lr(r.val,((e,t)=>(Qo(),ii(s,{key:t,"true-value":"1","false-value":"0",label:n.attrs.items[t].name,modelValue:e.status,"onUpdate:modelValue":t=>e.status=t,disabled:r.selectedItems.length>=r.max&&0==e.status},null,8,["label","modelValue","onUpdate:modelValue","disabled"])))),128)),n.attrs.remark?(Qo(),oi("div",{key:0,class:"description mt",innerHTML:n.attrs.remark},null,8,f_)):vi("",!0)]),di("div",h_,[(Qo(!0),oi(Ko,null,Lr(r.val,((e,t)=>Yn((Qo(),oi("div",{class:"social-item sc-block",key:t},[di("span",m_,X(e.name),1),1==e.type?(Qo(),ii(a,{key:0,modelValue:e.img,"onUpdate:modelValue":t=>e.img=t},null,8,["modelValue","onUpdate:modelValue"])):vi("",!0),0==e.type?(Qo(),ii(l,{key:1,type:"text",modelValue:e.url,"onUpdate:modelValue":t=>e.url=t},null,8,["modelValue","onUpdate:modelValue"])):vi("",!0),di("div",g_,X(n.attrs.items[e.code].desc),1)])),[[xs,1==e.status]]))),128))])],64)}]]),y_=["title"],b_={class:"remix"},w_=["xlink:href"];const x_=Fg({name:"TiptapMenuItem",props:{icon:{type:String,required:!0},title:{type:String,required:!0},action:{type:Function,required:!0},isActive:{type:Function,default:null}}},[["render",function(e,t,n,r,o,i){return Qo(),oi("button",{type:"button",class:q(["menu-item",{"is-active":n.isActive?n.isActive():null}]),onClick:t[0]||(t[0]=(...e)=>n.action&&n.action(...e)),title:n.title},[(Qo(),oi("svg",b_,[di("use",{"xlink:href":`#ri-${n.icon}`},null,8,w_)]))],10,y_)}]]),S_=["title"],k_={class:"remix"},O_=["xlink:href"],E_={class:"align-right wbb-mt"};const C_=Fg({name:"TiptapMenuItemLink",props:{editor:{type:Object,required:!0},icon:{type:String,required:!0},title:{type:String,required:!0},action:{type:Function,required:!0},isActive:{type:Function,default:null}},setup(e,t){const n=Mt(!1),r=Mt(),o=Mt(),i=Mt(""),s=()=>{i.value="",n.value=!1};return{linkInput:i,setLinkHandler:()=>{null!==i.value?(i.value?e.editor.chain().focus().extendMarkRange("link").setLink({href:i.value}).run():e.editor.chain().focus().extendMarkRange("link").unsetLink().run(),s()):s()},linkButtonRef:r,linkPopoverRef:o,acivePopover:()=>{const t=e.editor.getAttributes("link").href;i.value=t,n.value=!0},closePopover:s,onClickOutside:()=>{Nt(o).linkPopoverRef.delayHide(),s()},visiblePopover:n}}},[["render",function(e,t,n,r,o,i){const s=Sk,a=oE,l=ZC,c=An("click-outside");return Qo(),oi(Ko,null,[Yn((Qo(),oi("button",{class:q(["menu-item",{"is-active":n.isActive?n.isActive():null}]),type:"button",onClick:t[0]||(t[0]=(...e)=>r.acivePopover&&r.acivePopover(...e)),title:n.title,ref:"linkButtonRef"},[(Qo(),oi("svg",k_,[di("use",{"xlink:href":`#ri-${n.icon}`},null,8,O_)]))],10,S_)),[[c,r.onClickOutside]]),pi(l,{ref:"linkPopoverRef","virtual-ref":r.linkButtonRef,visible:r.visiblePopover,trigger:"click","wb-lang":"",title:"设置链接","virtual-triggering":"",width:"250"},{default:yn((()=>[pi(s,{size:"small",modelValue:r.linkInput,"onUpdate:modelValue":t[1]||(t[1]=e=>r.linkInput=e),clearable:""},null,8,["modelValue"]),di("div",E_,[pi(a,{size:"small",text:"",onClick:r.closePopover},{default:yn((()=>[mi("取消")])),_:1},8,["onClick"]),pi(a,{size:"small",type:"primary",onClick:r.setLinkHandler},{default:yn((()=>[mi("确认")])),_:1},8,["onClick"])])])),_:1},8,["virtual-ref","visible"])],64)}]]);const M_=Fg({name:"TiptapMenuBar",components:{MenuItem:x_,MenuItemLink:C_},props:{editor:{type:Object,required:!0}},setup(e,t){const n=Mt([{icon:"bold",title:"Bold",action:()=>e.editor.chain().focus().toggleBold().run(),isActive:()=>e.editor.isActive("bold")},{icon:"italic",title:"Italic",action:()=>e.editor.chain().focus().toggleItalic().run(),isActive:()=>e.editor.isActive("italic")},{icon:"strikethrough",title:"Strike",action:()=>e.editor.chain().focus().toggleStrike().run(),isActive:()=>e.editor.isActive("strike")},{icon:"underline",title:"Underline",action:()=>e.editor.chain().focus().toggleUnderline().run(),isActive:()=>e.editor.isActive("underline")},{type:"divider"},{icon:"h-2",title:"Heading 2",action:()=>e.editor.chain().focus().toggleHeading({level:2}).run(),isActive:()=>e.editor.isActive("heading",{level:2})},{icon:"h-3",title:"Heading 3",action:()=>e.editor.chain().focus().toggleHeading({level:3}).run(),isActive:()=>e.editor.isActive("heading",{level:3})},{icon:"paragraph",title:"Paragraph",action:()=>e.editor.chain().focus().setParagraph().run(),isActive:()=>e.editor.isActive("paragraph")},{icon:"list-unordered",title:"Bullet List",action:()=>e.editor.chain().focus().toggleBulletList().run(),isActive:()=>e.editor.isActive("bulletList")},{icon:"list-ordered",title:"Ordered List",action:()=>e.editor.chain().focus().toggleOrderedList().run(),isActive:()=>e.editor.isActive("orderedList")},{type:"divider"},{icon:"double-quotes-l",title:"Blockquote",action:()=>e.editor.chain().focus().toggleBlockquote().run(),isActive:()=>e.editor.isActive("blockquote")},{type:"link",icon:"link",title:"Set Link",editor:e.editor,action:()=>{},isActive:()=>e.editor.isActive("link")},{icon:"link-unlink",title:"Unset Link",action:()=>e.editor.chain().focus().unsetLink().run()},{type:"divider"},{icon:"text-wrap",title:"Hard Break",action:()=>e.editor.chain().focus().setHardBreak().run()},{icon:"format-clear",title:"Clear Format",action:()=>e.editor.chain().focus().clearNodes().unsetAllMarks().run()},{type:"divider"},{icon:"arrow-go-back-line",title:"Undo",action:()=>e.editor.chain().focus().undo().run()},{icon:"arrow-go-forward-line",title:"Redo",action:()=>e.editor.chain().focus().redo().run()}]),r=Mt(),o=Mt();return{items:n,buttonRef:r,popoverRef:o,onClickOutside:()=>{Nt(o).popoverRef.delayHide()}}}},[["render",function(e,t,n,r,o,i){const s=C_,a=x_;return Qo(),oi("div",null,[(Qo(!0),oi(Ko,null,Lr(r.items,((e,t)=>(Qo(),oi(Ko,null,["divider"===e.type?(Qo(),oi("div",{class:"divider",key:`divider${t}`})):"link"===e.type?(Qo(),ii(s,xi({key:"link"},e),null,16)):(Qo(),ii(a,xi({key:t},e),null,16))],64)))),256))])}]]);function A_(e){this.content=e}function T_(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let e=0;o.text[e]==i.text[e];e++)n++;return n}if(o.content.size||i.content.size){let e=T_(o.content,i.content,n+1);if(null!=e)return e}n+=o.nodeSize}else n+=o.nodeSize}}function __(e,t,n,r){for(let o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};let s=e.child(--o),a=t.child(--i),l=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){let e=0,t=Math.min(s.text.length,a.text.length);for(;e<t&&s.text[s.text.length-e-1]==a.text[a.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(s.content.size||a.content.size){let e=__(s.content,a.content,n-1,r-1);if(e)return e}n-=l,r-=l}else n-=l,r-=l}}A_.prototype={constructor:A_,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,o=r.find(e),i=r.content.slice();return-1==o?i.push(n||e,t):(i[o+1]=t,n&&(i[o]=n)),new A_(i)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new A_(n)},addToStart:function(e,t){return new A_([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new A_(n)},addBefore:function(e,t,n){var r=this.remove(t),o=r.content.slice(),i=r.find(e);return o.splice(-1==i?o.length:i,0,t,n),new A_(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=A_.from(e)).size?new A_(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=A_.from(e)).size?new A_(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=A_.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach((function(t,n){e[t]=n})),e},get size(){return this.content.length>>1}},A_.from=function(e){if(e instanceof A_)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new A_(t)};class N_{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n,r=0,o){for(let i=0,s=0;s<t;i++){let a=this.content[i],l=s+a.nodeSize;if(l>e&&!1!==n(a,r+s,o||null,i)&&a.content.size){let o=s+1;a.nodesBetween(Math.max(0,e-o),Math.min(a.content.size,t-o),n,r+o)}s=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",i=!0;return this.nodesBetween(e,t,((s,a)=>{let l=s.isText?s.text.slice(Math.max(e,a)-a,t-a):s.isLeaf?r?"function"==typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&n&&(i?i=!1:o+=n),o+=l}),0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new N_(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let o=0,i=0;i<t;o++){let s=this.content[o],a=i+s.nodeSize;a>e&&((i<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-i),Math.min(s.text.length,t-i)):s.cut(Math.max(0,e-i-1),Math.min(s.content.size,t-i-1))),n.push(s),r+=s.nodeSize),i=a}return new N_(n,r)}cutByIndex(e,t){return e==t?N_.empty:0==e&&t==this.content.length?this:new N_(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new N_(r,o)}addToStart(e){return new N_([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new N_(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return T_(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return __(this,e,t,n)}findIndex(e,t=-1){if(0==e)return I_(0,e);if(e==this.size)return I_(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=r+this.child(n).nodeSize;if(o>=e)return o==e||t>0?I_(n+1,o):I_(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,t){if(!t)return N_.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new N_(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return N_.empty;let t,n=0;for(let r=0;r<e.length;r++){let o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new N_(t||e,n)}static from(e){if(!e)return N_.empty;if(e instanceof N_)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new N_([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}N_.empty=new N_([],0);const R_={index:0,offset:0};function I_(e,t){return R_.index=e,R_.offset=t,R_}function P_(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!P_(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!P_(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}let D_=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&P_(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&0==t.length)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort(((e,t)=>e.type.rank-t.type.rank)),n}};D_.none=[];class L_ extends Error{}class j_{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=V_(this.content,e+this.openStart,t);return n&&new j_(n,this.openStart,this.openEnd)}removeBetween(e,t){return new j_(B_(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return j_.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new j_(N_.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(let o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)r++;return new j_(e,n,r)}}function B_(e,t,n){let{index:r,offset:o}=e.findIndex(t),i=e.maybeChild(r),{index:s,offset:a}=e.findIndex(n);if(o==t||i.isText){if(a!=n&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(r,i.copy(B_(i.content,t-o-1,n-o-1)))}function V_(e,t,n,r){let{index:o,offset:i}=e.findIndex(t),s=e.maybeChild(o);if(i==t||s.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let a=V_(s.content,t-i-1,n);return a&&e.replaceChild(o,s.copy(a))}function z_(e,t,n){if(n.openStart>e.depth)throw new L_("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new L_("Inconsistent open depths");return F_(e,t,n,0)}function F_(e,t,n,r){let o=e.index(r),i=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){let s=F_(e,t,n,r+1);return i.copy(i.content.replaceChild(o,s))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){let{start:o,end:s}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let o=n-1;o>=0;o--)r=t.node(o).copy(N_.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return q_(i,K_(e,o,s,t,r))}{let r=e.parent,o=r.content;return q_(r,o.cut(0,e.parentOffset).append(n.content).append(o.cut(t.parentOffset)))}}return q_(i,J_(e,t,r))}function $_(e,t){if(!t.type.compatibleContent(e.type))throw new L_("Cannot join "+t.type.name+" onto "+e.type.name)}function H_(e,t,n){let r=e.node(n);return $_(r,t.node(n)),r}function U_(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function W_(e,t,n,r){let o=(t||e).node(n),i=0,s=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(U_(e.nodeAfter,r),i++));for(let a=i;a<s;a++)U_(o.child(a),r);t&&t.depth==n&&t.textOffset&&U_(t.nodeBefore,r)}function q_(e,t){return e.type.checkContent(t),e.copy(t)}function K_(e,t,n,r,o){let i=e.depth>o&&H_(e,t,o+1),s=r.depth>o&&H_(n,r,o+1),a=[];return W_(null,e,o,a),i&&s&&t.index(o)==n.index(o)?($_(i,s),U_(q_(i,K_(e,t,n,r,o+1)),a)):(i&&U_(q_(i,J_(e,t,o+1)),a),W_(t,n,o,a),s&&U_(q_(s,J_(n,r,o+1)),a)),W_(r,null,o,a),new N_(a)}function J_(e,t,n){let r=[];if(W_(null,e,n,r),e.depth>n){U_(q_(H_(e,t,n+1),J_(e,t,n+1)),r)}return W_(t,null,n,r),new N_(r)}j_.empty=new j_(N_.empty,0,0);class G_{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let o=0;o<e;o++)r+=n.child(o).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return D_.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let o=n.marks;for(var i=0;i<o.length;i++)!1!==o[i].type.spec.inclusive||r&&o[i].isInSet(r.marks)||(o=o[i--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Q_(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,o=t;for(let i=e;;){let{index:e,offset:t}=i.content.findIndex(o),s=o-t;if(n.push(i,e,r+t),!s)break;if(i=i.child(e),i.isText)break;o=s-1,r+=t+1}return new G_(t,n,o)}static resolveCached(e,t){for(let r=0;r<Y_.length;r++){let n=Y_[r];if(n.pos==t&&n.doc==e)return n}let n=Y_[X_]=G_.resolve(e,t);return X_=(X_+1)%Z_,n}}let Y_=[],X_=0,Z_=12;class Q_{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const eN=Object.create(null);let tN=class e{constructor(e,t,n,r=D_.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||N_.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&P_(this.attrs,t||e.defaultAttrs||eN)&&D_.sameSet(this.marks,n||D_.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return j_.empty;let r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),s=r.start(i),a=r.node(i).content.cut(r.pos-s,o.pos-s);return new j_(a,r.depth-i,o.depth-i)}replace(e,t,n){return z_(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return G_.resolveCached(this,e)}resolveNoCache(e){return G_.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,(e=>(n.isInSet(e.marks)&&(r=!0),!r))),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),rN(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=N_.empty,r=0,o=n.childCount){let i=this.contentMatchAt(e).matchFragment(n,r,o),s=i&&i.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let a=r;a<o;a++)if(!this.type.allowsMarks(n.child(a).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=D_.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!D_.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((e=>e.type.name))}`);this.content.forEach((e=>e.check()))}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((e=>e.toJSON()))),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=N_.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};tN.prototype.text=void 0;class nN extends tN{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):rN(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new nN(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new nN(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function rN(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class oN{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new iN(e,t);if(null==n.next)return oN.empty;let r=sN(n);n.next&&n.err("Unexpected trailing text");let o=function(e){let t=Object.create(null);return n(pN(e,0));function n(r){let o=[];r.forEach((t=>{e[t].forEach((({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<o.length;e++)o[e][0]==t&&(r=o[e][1]);pN(e,n).forEach((e=>{r||o.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)}))}))}));let i=t[r.join(",")]=new oN(r.indexOf(e.length-1)>-1);for(let e=0;e<o.length;e++){let r=o[e][1].sort(dN);i.next.push({type:o[e][0],next:t[r.join(",")]||n(r)})}return i}}(function(e){let t=[[]];return o(i(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach((e=>e.to=t))}function i(e,t){if("choice"==e.type)return e.exprs.reduce(((e,n)=>e.concat(i(n,t))),[]);if("seq"!=e.type){if("star"==e.type){let s=n();return r(t,s),o(i(e.expr,s),s),[r(s)]}if("plus"==e.type){let s=n();return o(i(e.expr,t),s),o(i(e.expr,s),s),[r(s)]}if("opt"==e.type)return[r(t)].concat(i(e.expr,t));if("range"==e.type){let s=t;for(let t=0;t<e.min;t++){let t=n();o(i(e.expr,s),t),s=t}if(-1==e.max)o(i(e.expr,s),s);else for(let t=e.min;t<e.max;t++){let t=n();r(s,t),o(i(e.expr,s),t),s=t}return[r(s)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let s=i(e.exprs[r],t);if(r==e.exprs.length-1)return s;o(s,t=n())}}}(r));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],o=!e.validEnd,i=[];for(let t=0;t<e.next.length;t++){let{type:n,next:s}=e.next[t];i.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(s)&&r.push(s)}o&&t.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function o(i,s){let a=i.matchFragment(e,n);if(a&&(!t||a.validEnd))return N_.from(s.map((e=>e.createAndFill())));for(let e=0;e<i.next.length;e++){let{type:t,next:n}=i.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let e=o(n,s.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),o=r.match;if(o.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<o.next.length;e++){let{type:i,next:s}=o.next[e];i.isLeaf||i.hasRequiredAttrs()||i.name in t||r.type&&!s.validEnd||(n.push({match:i.contentMatch,type:i,via:r}),t[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map(((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let o=0;o<t.next.length;o++)r+=(o?", ":"")+t.next[o].type.name+"->"+e.indexOf(t.next[o].next);return r})).join("\n")}}oN.empty=new oN(!0);class iN{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function sN(e){let t=[];do{t.push(aN(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function aN(e){let t=[];do{t.push(lN(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function lN(e){let t=function(e){if(e.eat("(")){let t=sN(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let i in n){let e=n[i];e.groups.indexOf(t)>-1&&o.push(e)}0==o.length&&e.err("No node type or group '"+t+"' found");return o}(e,e.next).map((t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t})));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=uN(e,t)}return t}function cN(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function uN(e,t){let n=cN(e),r=n;return e.eat(",")&&(r="}"!=e.next?cN(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function dN(e,t){return t-e}function pN(e,t){let n=[];return function t(r){let o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(let e=0;e<o.length;e++){let{term:r,to:i}=o[e];r||-1!=n.indexOf(i)||t(i)}}(t),n.sort(dN)}function fN(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function hN(e,t){let n=Object.create(null);for(let r in e){let o=t&&t[r];if(void 0===o){let t=e[r];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=t.default}n[r]=o}return n}function mN(e){let t=Object.create(null);if(e)for(let n in e)t[n]=new vN(e[n]);return t}let gN=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=mN(n.attrs),this.defaultAttrs=fN(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==oN.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:hN(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new tN(this,this.computeAttrs(e),N_.from(t),D_.setFrom(n))}createChecked(e=null,t,n){return t=N_.from(t),this.checkContent(t),new tN(this,this.computeAttrs(e),t,D_.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=N_.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(N_.empty,!0);return o?new tN(this,e,t.append(o),D_.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:D_.none:e}static compile(t,n){let r=Object.create(null);t.forEach(((t,o)=>r[t]=new e(t,n,o)));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class vN{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class yN{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=mN(r.attrs),this.excluded=null;let o=fN(this.attrs);this.instance=o?new D_(this,o):null}create(e=null){return!e&&this.instance?this.instance:new D_(this,hN(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach(((e,o)=>n[e]=new yN(e,r++,t,o))),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class bN{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=A_.from(e.nodes),t.marks=A_.from(e.marks||{}),this.nodes=gN.compile(this.spec.nodes,this),this.marks=yN.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let e=this.nodes[r],t=e.spec.content||"",o=e.spec.marks;e.contentMatch=n[t]||(n[t]=oN.parse(t,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.markSet="_"==o?null:o?wN(this,o.split(" ")):""!=o&&e.inlineContent?null:[]}for(let r in this.marks){let e=this.marks[r],t=e.spec.excludes;e.excluded=null==t?[e]:""==t?[]:wN(this,t.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof gN))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new nN(n,n.defaultAttrs,e,D_.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return tN.fromJSON(this,e)}markFromJSON(e){return D_.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function wN(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r],i=e.marks[o],s=i;if(i)n.push(i);else for(let t in e.marks){let r=e.marks[t];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=r)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class xN{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)})),this.normalizeLists=!this.tags.some((t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)}))}parse(e,t={}){let n=new MN(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new MN(this,t,!0);return n.addAll(e,t.from,t.to),j_.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(AN(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],i=r.style;if(!(0!=i.indexOf(e)||r.context&&!n.matchesContext(r.context)||i.length>e.length&&(61!=i.charCodeAt(e.length)||i.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let r in e.marks){let t=e.marks[r].spec.parseDOM;t&&t.forEach((e=>{n(e=TN(e)),e.mark||e.ignore||e.clearMark||(e.mark=r)}))}for(let r in e.nodes){let t=e.nodes[r].spec.parseDOM;t&&t.forEach((e=>{n(e=TN(e)),e.node||e.ignore||e.mark||(e.node=r)}))}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new xN(e,xN.schemaRules(e)))}}const SN={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},kN={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ON={ol:!0,ul:!0};function EN(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class CN{constructor(e,t,n,r,o,i,s){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=r,this.solid=o,this.options=s,this.content=[],this.activeMarks=D_.none,this.stashMarks=[],this.match=i||(4&s?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(N_.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=N_.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(N_.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;t<n.length;t++){let r=n[t];(this.type?this.type.allowsMarkType(r.type):_N(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!SN.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class MN{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0;let r,o=t.topNode,i=EN(null,t.preserveWhitespace,0)|(n?4:0);r=o?new CN(o.type,o.attrs,D_.none,D_.none,!0,t.topMatch||o.type.contentMatch,i):new CN(n?null:e.schema.topNodeType,null,D_.none,D_.none,!0,null,i),this.nodes=[r],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){3==e.nodeType?this.addTextNode(e):1==e.nodeType&&this.addElement(e)}withStyleRules(e,t){let n=e.getAttribute("style");if(!n)return t();let r=this.readStyles(function(e){let t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];for(;t=n.exec(e);)r.push(t[1],t[2].trim());return r}(n));if(!r)return;let[o,i]=r,s=this.top;for(let a=0;a<i.length;a++)this.removePendingMark(i[a],s);for(let a=0;a<o.length;a++)this.addPendingMark(o[a]);t();for(let a=0;a<o.length;a++)this.removePendingMark(o[a],s);for(let a=0;a<i.length;a++)this.addPendingMark(i[a])}addTextNode(e){let t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],o=e.previousSibling;(!r||o&&"BR"==o.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let n,r=e.nodeName.toLowerCase();ON.hasOwnProperty(r)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ON.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(o?o.ignore:kN.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let t,n=this.top,i=this.needsBlock;if(SN.hasOwnProperty(r))n.content.length&&n.content[0].isInline&&this.open&&(this.open--,n=this.top),t=!0,n.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);o&&o.skip?this.addAll(e):this.withStyleRules(e,(()=>this.addAll(e))),t&&this.sync(n),this.needsBlock=i}else this.withStyleRules(e,(()=>{this.addElementByRule(e,o,!1===o.consuming?n:void 0)}))}leafFallback(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=D_.none,n=D_.none;for(let r=0;r<e.length;r+=2)for(let o;;){let i=this.parser.matchStyle(e[r],e[r+1],this,o);if(!i)break;if(i.ignore)return null;if(i.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach((e=>{i.clearMark(e)&&(n=e.addToSet(n))})):t=this.parser.schema.marks[i.mark].create(i.attrs).addToSet(t),!1!==i.consuming)break;o=i}return[t,n]}addElementByRule(e,t,n){let r,o,i;if(t.node)o=this.parser.schema.nodes[t.node],o.isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):r=this.enter(o,t.attrs||null,t.preserveWhitespace);else{i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i)}let s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((e=>this.insertNode(e)));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n)}r&&this.sync(s)&&this.open--,i&&this.removePendingMark(i,s)}addAll(e,t,n){let r=t||0;for(let o=t?e.childNodes[t]:e.firstChild,i=null==n?null:e.childNodes[n];o!=i;o=o.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(o);this.findAtPoint(e,r)}findPlace(e){let t,n;for(let r=this.open;r>=0;r--){let o=this.nodes[r],i=o.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=o,!i.length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(let r=0;r<t.length;r++)this.enterInner(t[r],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let n=t.activeMarks;for(let r=0;r<e.marks.length;r++)t.type&&!t.type.allowsMarkType(e.marks[r].type)||(n=e.marks[r].addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n){let r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r}enterInner(e,t=null,n=!1,r){this.closeExtra();let o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e);let i=EN(e,r,o.options);4&o.options&&0==o.content.length&&(i|=4),this.nodes.push(new CN(e,t,o.activeMarks,o.pendingMarks,n,null,i)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(e,s)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;s>=o;s--)if(i(e-1,s))return!0;return!1}{let e=s>0||0==s&&r?this.nodes[s].type:n&&s>=o?n.node(s-o).type:null;if(!e||e.name!=a&&-1==e.groups.indexOf(a))return!1;s--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}addPendingMark(e){let t=function(e,t){for(let n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let t=r.popFromStashMark(e);t&&r.type&&r.type.allowsMarkType(t.type)&&(r.activeMarks=t.addToSet(r.activeMarks))}if(r==t)break}}}function AN(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function TN(e){let t={};for(let n in e)t[n]=e[n];return t}function _N(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let i=[],s=e=>{i.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:o}=e.edge(n);if(r==t)return!0;if(i.indexOf(o)<0&&s(o))return!0}};if(s(o.contentMatch))return!0}}class NN{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=IN(t).createDocumentFragment());let r=n,o=[];return e.forEach((e=>{if(o.length||e.marks.length){let n=0,i=0;for(;n<o.length&&i<e.marks.length;){let t=e.marks[i];if(this.marks[t.type.name]){if(!t.eq(o[n][0])||!1===t.type.spec.spanning)break;n++,i++}else i++}for(;n<o.length;)r=o.pop()[1];for(;i<e.marks.length;){let n=e.marks[i++],s=this.serializeMark(n,e.isInline,t);s&&(o.push([n,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))})),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=NN.renderSpec(IN(t),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&NN.renderSpec(IN(n),r(e,t))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let r,o=t[0],i=o.indexOf(" ");i>0&&(n=o.slice(0,i),o=o.slice(i+1));let s=n?e.createElementNS(n,o):e.createElement(o),a=t[1],l=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a)){l=2;for(let e in a)if(null!=a[e]){let t=e.indexOf(" ");t>0?s.setAttributeNS(e.slice(0,t),e.slice(t+1),a[e]):s.setAttribute(e,a[e])}}for(let c=l;c<t.length;c++){let o=t[c];if(0===o){if(c<t.length-1||c>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}{let{dom:t,contentDOM:i}=NN.renderSpec(e,o,n);if(s.appendChild(t),i){if(r)throw new RangeError("Multiple content holes");r=i}}}return{dom:s,contentDOM:r}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new NN(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=RN(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return RN(e.marks)}}function RN(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function IN(e){return e.document||window.document}const PN=Math.pow(2,16);function DN(e){return 65535&e}class LN{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class jN{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&jN.empty)return jN.empty}recover(e){let t=0,n=DN(e);if(!this.inverted)for(let r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/PN}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let a=this.ranges[s]-(this.inverted?r:0);if(a>e)break;let l=this.ranges[s+o],c=this.ranges[s+i],u=a+l;if(e<=u){let o=a+r+((l?e==a?-1:e==u?1:t:t)<0?0:c);if(n)return o;let i=e==(t<0?a:u)?null:s/3+(e-a)*PN,d=e==a?2:e==u?1:4;return(t<0?e!=a:e!=u)&&(d|=8),new LN(o,d,i)}r+=c-l}return n?e+r:new LN(e+r,0,null)}touches(e,t){let n=0,r=DN(t),o=this.inverted?2:1,i=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let t=this.ranges[s]-(this.inverted?n:0);if(t>e)break;let a=this.ranges[s+o];if(e<=t+a&&s==3*r)return!0;n+=this.ranges[s+i]-a}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],s=i-(this.inverted?o:0),a=i+(this.inverted?0:o),l=this.ranges[r+t],c=this.ranges[r+n];e(s,s+l,a,a+c),o+=c-l}}invert(){return new jN(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?jN.empty:new jN(e<0?[0,-e,0]:[0,0,e])}}jN.empty=new jN([]);class BN{constructor(e=[],t,n=0,r=e.length){this.maps=e,this.mirror=t,this.from=n,this.to=r}slice(e=0,t=this.maps.length){return new BN(this.maps,this.mirror,e,t)}copy(){return new BN(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new BN;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let o=this.from;o<this.to;o++){let n=this.maps[o].mapResult(e,t);if(null!=n.recover){let t=this.getMirror(o);if(null!=t&&t>o&&t<this.to){o=t,e=this.maps[t].recover(n.recover);continue}}r|=n.delInfo,e=n.pos}return n?e:new LN(e,r,null)}}const VN=Object.create(null);class zN{getMap(){return jN.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=VN[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in VN)throw new RangeError("Duplicate use of step JSON ID "+e);return VN[e]=t,t.prototype.jsonID=e,t}}class FN{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new FN(e,null)}static fail(e){return new FN(null,e)}static fromReplace(e,t,n,r){try{return FN.ok(e.replace(t,n,r))}catch(pF){if(pF instanceof L_)return FN.fail(pF.message);throw pF}}}function $N(e,t,n){let r=[];for(let o=0;o<e.childCount;o++){let i=e.child(o);i.content.size&&(i=i.copy($N(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return N_.fromArray(r)}class HN extends zN{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),o=new j_($N(t.content,((e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),r),t.openStart,t.openEnd);return FN.fromReplace(e,this.from,this.to,o)}invert(){return new UN(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new HN(t.pos,n.pos,this.mark)}merge(e){return e instanceof HN&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new HN(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new HN(t.from,t.to,e.markFromJSON(t.mark))}}zN.jsonID("addMark",HN);class UN extends zN{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new j_($N(t.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),t.openStart,t.openEnd);return FN.fromReplace(e,this.from,this.to,n)}invert(){return new HN(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new UN(t.pos,n.pos,this.mark)}merge(e){return e instanceof UN&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new UN(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new UN(t.from,t.to,e.markFromJSON(t.mark))}}zN.jsonID("removeMark",UN);class WN extends zN{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return FN.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return FN.fromReplace(e,this.pos,this.pos+1,new j_(N_.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new WN(this.pos,t.marks[n]);return new WN(this.pos,this.mark)}}return new qN(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new WN(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new WN(t.pos,e.markFromJSON(t.mark))}}zN.jsonID("addNodeMark",WN);class qN extends zN{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return FN.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return FN.fromReplace(e,this.pos,this.pos+1,new j_(N_.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new WN(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new qN(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new qN(t.pos,e.markFromJSON(t.mark))}}zN.jsonID("removeNodeMark",qN);class KN extends zN{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&GN(e,this.from,this.to)?FN.fail("Structure replace would overwrite content"):FN.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new jN([this.from,this.to-this.from,this.slice.size])}invert(e){return new KN(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new KN(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof KN)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?j_.empty:new j_(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new KN(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?j_.empty:new j_(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new KN(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new KN(t.from,t.to,j_.fromJSON(e,t.slice),!!t.structure)}}zN.jsonID("replace",KN);class JN extends zN{constructor(e,t,n,r,o,i,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=s}apply(e){if(this.structure&&(GN(e,this.from,this.gapFrom)||GN(e,this.gapTo,this.to)))return FN.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return FN.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?FN.fromReplace(e,this.from,this.to,n):FN.fail("Content does not fit in gap")}getMap(){return new jN([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new JN(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new JN(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new JN(t.from,t.to,t.gapFrom,t.gapTo,j_.fromJSON(e,t.slice),t.insert,!!t.structure)}}function GN(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let e=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function YN(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function XN(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(o,i,t))return n;if(0==n||r.type.spec.isolating||!YN(r,o,i))break}return null}function ZN(e,t,n=null,r=e){let o=function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;let s=i.length?i[0]:t;return n.canReplaceWith(r,o,s)?i:null}(e,t),i=o&&function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.child(r),s=t.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let l=r;a&&l<o;l++)a=a.matchType(n.child(l).type);return a&&a.validEnd?s:null}(r,t);return i?o.map(QN).concat({type:t,attrs:n}).concat(i.map(QN)):null}function QN(e){return{type:e,attrs:null}}function eR(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,u=n-2;c>i;c--,u--){let e=o.node(c),t=o.index(c);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),i=r&&r[u+1];i&&(n=n.replaceChild(0,i.type.create(i.attrs)));let s=r&&r[u]||e;if(!e.canReplace(t+1,e.childCount)||!s.type.validContent(n))return!1}let a=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(a,a,l?l.type:o.node(i+1).type)}function tR(e,t){let n=e.resolve(t),r=n.index();return nR(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function nR(e,t){return!(!e||!t||e.isLeaf||!e.canAppend(t))}function rR(e,t,n=-1){let r=e.resolve(t);for(let o=r.depth;;o--){let e,i,s=r.index(o);if(o==r.depth?(e=r.nodeBefore,i=r.nodeAfter):n>0?(e=r.node(o+1),s++,i=r.node(o).maybeChild(s)):(e=r.node(o).maybeChild(s-1),i=r.node(o+1)),e&&!e.isTextblock&&nR(e,i)&&r.node(o).canReplace(s,s+1))return t;if(0==o)break;t=n<0?r.before(o):r.after(o)}}function oR(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let i=0;i<n.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(0==n.openStart&&n.size?2:1);i++)for(let e=r.depth;e>=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0),s=r.node(e),a=!1;if(1==i)a=s.canReplace(n,n,o);else{let e=s.contentMatchAt(n).findWrapping(o.firstChild.type);a=e&&s.canReplaceWith(n,n,e[0])}if(a)return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function iR(e,t,n=t,r=j_.empty){if(t==n&&!r.size)return null;let o=e.resolve(t),i=e.resolve(n);return sR(o,i,r)?new KN(t,n,r):new aR(o,i,r).fit()}function sR(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}zN.jsonID("replaceAround",JN);class aR{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=N_.empty;for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=N_.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let o=this.placed,i=n.depth,s=r.depth;for(;i&&s&&1==o.childCount;)o=o.firstChild.content,i--,s--;let a=new j_(o,i,s);return e>-1?new JN(n.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||n.pos!=this.$to.pos?new KN(n.pos,r.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=uR(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let o=e.firstChild;for(let i=this.depth;i>=0;i--){let e,{type:s,match:a}=this.frontier[i],l=null;if(1==t&&(o?a.matchType(o.type)||(l=a.fillBefore(N_.from(o),!1)):r&&s.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:i,parent:r,inject:l};if(2==t&&o&&(e=a.findWrapping(o.type)))return{sliceDepth:n,frontierDepth:i,parent:r,wrap:e};if(r&&a.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=uR(e,t);return!(!r.childCount||r.firstChild.isLeaf)&&(this.unplaced=new j_(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=uR(e,t);if(r.childCount<=1&&t>0){let o=e.size-t<=t+r.size;this.unplaced=new j_(lR(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new j_(lR(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let h=0;h<o.length;h++)this.openFrontierNode(o[h]);let i=this.unplaced,s=n?n.content:i.content,a=i.openStart-e,l=0,c=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)c.push(r.child(e));u=u.matchFragment(r)}let p=s.size+e-(i.content.size-i.openEnd);for(;l<s.childCount;){let e=s.child(l),t=u.matchType(e.type);if(!t)break;l++,(l>1||0==a||e.content.size)&&(u=t,c.push(dR(e.mark(d.allowedMarks(e.marks)),1==l?a:0,l==s.childCount?p:-1)))}let f=l==s.childCount;f||(p=-1),this.placed=cR(this.placed,t,N_.from(c)),this.frontier[t].match=u,f&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let h=0,m=s;h<p;h++){let e=m.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),m=e.content}this.unplaced=f?0==e?j_.empty:new j_(lR(i.content,e-1,1),e-1,p<0?i.openEnd:e-1):new j_(lR(i.content,e,l),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!pR(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=pR(e,t,r,n,o);if(i){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],o=pR(e,n,r,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=cR(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=cR(this.placed,this.depth,N_.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(N_.empty,!0);e.childCount&&(this.placed=cR(this.placed,this.frontier.length,e))}}function lR(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(lR(e.firstChild.content,t-1,n)))}function cR(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(cR(e.lastChild.content,t-1,n)))}function uR(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function dR(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,dR(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(N_.empty,!0)))),e.copy(r)}function pR(e,t,n,r,o){let i=e.node(t),s=o?e.indexAfter(t):e.index(t);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let a=r.fillBefore(i.content,!0,s);return a&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,s)?a:null}function fR(e,t,n,r,o){if(t<n){let o=e.firstChild;e=e.replaceChild(0,o.copy(fR(o.content,t+1,n,r,o)))}if(t>r){let t=o.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(N_.empty,!0))}return e}function hR(e,t){let n=[];for(let r=Math.min(e.depth,t.depth);r>=0;r--){let o=e.start(r);if(o<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&n.push(r)}return n}class mR extends zN{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return FN.fail("No node at attribute step's position");let n=Object.create(null);for(let o in t.attrs)n[o]=t.attrs[o];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return FN.fromReplace(e,this.pos,this.pos+1,new j_(N_.from(r),0,t.isLeaf?0:1))}getMap(){return jN.empty}invert(e){return new mR(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new mR(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new mR(t.pos,t.attr,t.value)}}zN.jsonID("attr",mR);class gR extends zN{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return FN.ok(n)}getMap(){return jN.empty}invert(e){return new gR(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new gR(t.attr,t.value)}}zN.jsonID("docAttr",gR);let vR=class extends Error{};vR=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},(vR.prototype=Object.create(Error.prototype)).constructor=vR,vR.prototype.name="TransformError";class yR{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new BN}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new vR(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=j_.empty){let r=iR(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new j_(N_.from(n),0,0))}delete(e,t){return this.replace(e,t,j_.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let o=e.doc.resolve(t),i=e.doc.resolve(n);if(sR(o,i,r))return e.step(new KN(t,n,r));let s=hR(o,e.doc.resolve(n));0==s[s.length-1]&&s.pop();let a=-(o.depth+1);s.unshift(a);for(let f=o.depth,h=o.pos-1;f>0;f--,h--){let e=o.node(f).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;s.indexOf(f)>-1?a=f:o.before(f)==h&&s.splice(1,0,-f)}let l=s.indexOf(a),c=[],u=r.openStart;for(let f=r.content,h=0;;h++){let e=f.firstChild;if(c.push(e),h==r.openStart)break;f=e.content}for(let f=u-1;f>=0;f--){let e=c[f],t=(d=e.type).spec.defining||d.spec.definingForContent;if(t&&!e.sameMarkup(o.node(Math.abs(a)-1)))u=f;else if(t||!e.type.isTextblock)break}var d;for(let f=r.openStart;f>=0;f--){let t=(f+u+1)%(r.openStart+1),a=c[t];if(a)for(let c=0;c<s.length;c++){let u=s[(c+l)%s.length],d=!0;u<0&&(d=!1,u=-u);let p=o.node(u-1),f=o.index(u-1);if(p.canReplaceWith(f,f,a.type,a.marks))return e.replace(o.before(u),d?i.after(u):n,new j_(fR(r.content,0,r.openStart,t),t,r.openEnd))}}let p=e.steps.length;for(let f=s.length-1;f>=0&&(e.replace(t,n,r),!(e.steps.length>p));f--){let e=s[f];e<0||(t=o.before(e),n=i.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let o=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let o=r.depth-1;o>=0;o--){let e=r.index(o);if(r.node(o).canReplaceWith(e,e,n))return r.before(o+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let e=r.indexAfter(o);if(r.node(o).canReplaceWith(e,e,n))return r.after(o+1);if(e<r.node(o).childCount)return null}return null}(e.doc,t,r.type);null!=o&&(t=n=o)}e.replaceRange(t,n,new j_(N_.from(r),0,0))}(this,e,t,n),this}deleteRange(e,t){return function(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n),i=hR(r,o);for(let s=0;s<i.length;s++){let t=i[s],n=s==i.length-1;if(n&&0==t||r.node(t).type.contentMatch.validEnd)return e.delete(r.start(t),o.end(t));if(t>0&&(n||r.node(t-1).canReplace(r.index(t-1),o.indexAfter(t-1))))return e.delete(r.before(t),o.after(t))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(t-r.start(s)==r.depth-s&&n>r.end(s)&&o.end(s)-n!=o.depth-s)return e.delete(r.before(s),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return function(e,t,n){let{$from:r,$to:o,depth:i}=t,s=r.before(i+1),a=o.after(i+1),l=s,c=a,u=N_.empty,d=0;for(let h=i,m=!1;h>n;h--)m||r.index(h)>0?(m=!0,u=N_.from(r.node(h).copy(u)),d++):l--;let p=N_.empty,f=0;for(let h=i,m=!1;h>n;h--)m||o.after(h+1)<o.end(h)?(m=!0,p=N_.from(o.node(h).copy(p)),f++):c++;e.step(new JN(l,c,s,a,new j_(u.append(p),d,f),u.size-d,!0))}(this,e,t),this}join(e,t=1){return function(e,t,n){let r=new KN(t-n,t+n,j_.empty,!0);e.step(r)}(this,e,t),this}wrap(e,t){return function(e,t,n){let r=N_.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let e=n[s].type.contentMatch.matchFragment(r);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=N_.from(n[s].type.create(n[s].attrs,r))}let o=t.start,i=t.end;e.step(new JN(o,i,o,i,new j_(r,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,r=null){return function(e,t,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,n,((t,n)=>{if(t.isTextblock&&!t.hasMarkup(r,o)&&function(e,t,n){let r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(e.doc,e.mapping.slice(i).map(n),r)){e.clearIncompatible(e.mapping.slice(i).map(n,1),r);let s=e.mapping.slice(i),a=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new JN(a,l,a+1,l-1,new j_(N_.from(r.create(o,null,t.marks)),0,0),1,!0)),!1}}))}(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return function(e,t,n,r,o){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new JN(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new j_(N_.from(s),0,0),1,!0))}(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new mR(e,t,n)),this}setDocAttribute(e,t){return this.step(new gR(e,t)),this}addNodeMark(e,t){return this.step(new WN(e,t)),this}removeNodeMark(e,t){if(!(t instanceof D_)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(!(t=t.isInSet(n.marks)))return this}return this.step(new qN(e,t)),this}split(e,t=1,n){return function(e,t,n=1,r){let o=e.doc.resolve(t),i=N_.empty,s=N_.empty;for(let a=o.depth,l=o.depth-n,c=n-1;a>l;a--,c--){i=N_.from(o.node(a).copy(i));let e=r&&r[c];s=N_.from(e?e.type.create(e.attrs,s):o.node(a).copy(s))}e.step(new KN(t,t,new j_(i.append(s),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){return function(e,t,n,r){let o,i,s=[],a=[];e.doc.nodesBetween(t,n,((e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,t),d=Math.min(l+e.nodeSize,n),p=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(p)||(o&&o.to==c&&o.mark.eq(u[e])?o.to=d:s.push(o=new UN(c,d,u[e])));i&&i.to==c?i.to=d:a.push(i=new HN(c,d,r))}})),s.forEach((t=>e.step(t))),a.forEach((t=>e.step(t)))}(this,e,t,n),this}removeMark(e,t,n){return function(e,t,n,r){let o=[],i=0;e.doc.nodesBetween(t,n,((e,s)=>{if(!e.isInline)return;i++;let a=null;if(r instanceof yN){let t,n=e.marks;for(;t=r.isInSet(n);)(a||(a=[])).push(t),n=t.removeFromSet(n)}else r?r.isInSet(e.marks)&&(a=[r]):a=e.marks;if(a&&a.length){let r=Math.min(s+e.nodeSize,n);for(let e=0;e<a.length;e++){let n,l=a[e];for(let e=0;e<o.length;e++){let t=o[e];t.step==i-1&&l.eq(o[e].style)&&(n=t)}n?(n.to=r,n.step=i):o.push({style:l,from:Math.max(s,t),to:r,step:i})}}})),o.forEach((t=>e.step(new UN(t.from,t.to,t.style))))}(this,e,t,n),this}clearIncompatible(e,t,n){return function(e,t,n,r=n.contentMatch){let o=e.doc.nodeAt(t),i=[],s=t+1;for(let a=0;a<o.childCount;a++){let t=o.child(a),l=s+t.nodeSize,c=r.matchType(t.type);if(c){r=c;for(let r=0;r<t.marks.length;r++)n.allowsMarkType(t.marks[r].type)||e.step(new UN(s,l,t.marks[r]));if(t.isText&&!n.spec.code){let e,r,o=/\r?\n|\r/g;for(;e=o.exec(t.text);)r||(r=new j_(N_.from(n.schema.text(" ",n.allowedMarks(t.marks))),0,0)),i.push(new KN(s+e.index,s+e.index+e[0].length,r))}}else i.push(new KN(s,l,j_.empty));s=l}if(!r.validEnd){let t=r.fillBefore(N_.empty,!0);e.replace(s,s,new j_(t,0,0))}for(let a=i.length-1;a>=0;a--)e.step(i[a])}(this,e,t,n),this}}const bR=Object.create(null);class wR{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new xR(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=j_.empty){let n=t.content.lastChild,r=null;for(let s=0;s<t.openEnd;s++)r=n,n=n.lastChild;let o=e.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){let{$from:a,$to:l}=i[s],c=e.mapping.slice(o);e.replaceRange(c.map(a.pos),c.map(l.pos),s?j_.empty:t),0==s&&NR(e,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:s}=r[o],a=e.mapping.slice(n),l=a.map(i.pos),c=a.map(s.pos);o?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),NR(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new OR(e):_R(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let o=e.depth-1;o>=0;o--){let r=t<0?_R(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):_R(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(r)return r}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new AR(e.node(0))}static atStart(e){return _R(e,e,0,0,1)||new AR(e)}static atEnd(e){return _R(e,e,e.content.size,e.childCount,-1)||new AR(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=bR[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in bR)throw new RangeError("Duplicate use of selection JSON ID "+e);return bR[e]=t,t.prototype.jsonID=e,t}getBookmark(){return OR.between(this.$anchor,this.$head).getBookmark()}}wR.prototype.visible=!0;class xR{constructor(e,t){this.$from=e,this.$to=t}}let SR=!1;function kR(e){SR||e.parent.inlineContent||(SR=!0)}class OR extends wR{constructor(e,t=e){kR(e),kR(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return wR.near(n);let r=e.resolve(t.map(this.anchor));return new OR(r.parent.inlineContent?r:n,n)}replace(e,t=j_.empty){if(super.replace(e,t),t==j_.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof OR&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new ER(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new OR(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=wR.findFrom(t,n,!0)||wR.findFrom(t,-n,!0);if(!e)return wR.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r||(e=(wR.findFrom(e,-n,!0)||wR.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0)&&(e=t),new OR(e,t)}}wR.jsonID("text",OR);class ER{constructor(e,t){this.anchor=e,this.head=t}map(e){return new ER(e.map(this.anchor),e.map(this.head))}resolve(e){return OR.between(e.resolve(this.anchor),e.resolve(this.head))}}class CR extends wR{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?wR.near(o):new CR(o)}content(){return new j_(N_.from(this.node),0,0)}eq(e){return e instanceof CR&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new MR(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new CR(e.resolve(t.anchor))}static create(e,t){return new CR(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}CR.prototype.visible=!1,wR.jsonID("node",CR);class MR{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new ER(n,n):new MR(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&CR.isSelectable(n)?new CR(t):wR.near(t)}}class AR extends wR{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=j_.empty){if(t==j_.empty){e.delete(0,e.doc.content.size);let t=wR.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new AR(e)}map(e){return new AR(e)}eq(e){return e instanceof AR}getBookmark(){return TR}}wR.jsonID("all",AR);const TR={map(){return this},resolve:e=>new AR(e)};function _R(e,t,n,r,o,i=!1){if(t.inlineContent)return OR.create(e,n);for(let s=r-(o>0?0:1);o>0?s<t.childCount:s>=0;s+=o){let r=t.child(s);if(r.isAtom){if(!i&&CR.isSelectable(r))return CR.create(e,n-(o<0?r.nodeSize:0))}else{let t=_R(e,r,n+o,o<0?r.childCount:0,o,i);if(t)return t}n+=r.nodeSize*o}return null}function NR(e,t,n){let r=e.steps.length-1;if(r<t)return;let o,i=e.steps[r];(i instanceof KN||i instanceof JN)&&(e.mapping.maps[r].forEach(((e,t,n,r)=>{null==o&&(o=r)})),e.setSelection(wR.near(e.doc.resolve(o),n)))}class RR extends yR{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return D_.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||D_.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let o=this.storedMarks;if(!o){let e=this.doc.resolve(t);o=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(wR.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function IR(e,t){return t&&e?e.bind(t):e}class PR{constructor(e,t,n){this.name=e,this.init=IR(t.init,n),this.apply=IR(t.apply,n)}}const DR=[new PR("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new PR("selection",{init:(e,t)=>e.selection||wR.atStart(t.doc),apply:e=>e.selection}),new PR("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new PR("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class LR{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=DR.slice(),t&&t.forEach((e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new PR(e.key,e.spec.state,e))}))}}class jR{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let s=this.config.plugins[i];if(s.spec.appendTransaction){let a=r?r[i].n:0,l=r?r[i].state:this,c=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<i?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new jR(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new RR(this)}static create(e){let t=new LR(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new jR(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new LR(this.schema,e.plugins),n=t.fields,r=new jR(t);for(let o=0;o<n.length;o++){let t=n[o].name;r[t]=this.hasOwnProperty(t)?this[t]:n[o].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((e=>e.toJSON()))),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new LR(e.schema,e.plugins),o=new jR(r);return r.fields.forEach((r=>{if("doc"==r.name)o.doc=tN.fromJSON(e.schema,t.doc);else if("selection"==r.name)o.selection=wR.fromJSON(o.doc,t.selection);else if("storedMarks"==r.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let i in n){let s=n[i],a=s.spec.state;if(s.key==r.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,i))return void(o[r.name]=a.fromJSON.call(s,e,t[i],o))}o[r.name]=r.init(e,o)}})),o}}function BR(e,t,n){for(let r in e){let o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=BR(o,t,{})),n[r]=o}return n}class VR{constructor(e){this.spec=e,this.props={},e.props&&BR(e.props,this,this.props),this.key=e.key?e.key.key:FR("plugin")}getState(e){return e[this.key]}}const zR=Object.create(null);function FR(e){return e in zR?e+"$"+ ++zR[e]:(zR[e]=0,e+"$")}class $R{constructor(e="key"){this.key=FR(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const HR=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},UR=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let WR=null;const qR=function(e,t,n){let r=WR||(WR=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},KR=function(e,t,n,r){return n&&(GR(e,t,n,r,-1)||GR(e,t,n,r,1))},JR=/^(img|br|input|textarea|hr)$/i;function GR(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:YR(e))){let n=e.parentNode;if(!n||1!=n.nodeType||XR(e)||JR.test(e.nodeName)||"false"==e.contentEditable)return!1;t=HR(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?YR(e):0}}}function YR(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function XR(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const ZR=function(e){return e.focusNode&&KR(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function QR(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const eI="undefined"!=typeof navigator?navigator:null,tI="undefined"!=typeof document?document:null,nI=eI&&eI.userAgent||"",rI=/Edge\/(\d+)/.exec(nI),oI=/MSIE \d/.exec(nI),iI=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nI),sI=!!(oI||iI||rI),aI=oI?document.documentMode:iI?+iI[1]:rI?+rI[1]:0,lI=!sI&&/gecko\/(\d+)/i.test(nI);lI&&(/Firefox\/(\d+)/.exec(nI)||[0,0])[1];const cI=!sI&&/Chrome\/(\d+)/.exec(nI),uI=!!cI,dI=cI?+cI[1]:0,pI=!sI&&!!eI&&/Apple Computer/.test(eI.vendor),fI=pI&&(/Mobile\/\w+/.test(nI)||!!eI&&eI.maxTouchPoints>2),hI=fI||!!eI&&/Mac/.test(eI.platform),mI=!!eI&&/Win/.test(eI.platform),gI=/Android \d/.test(nI),vI=!!tI&&"webkitFontSmoothing"in tI.documentElement.style,yI=vI?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function bI(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function wI(e,t){return"number"==typeof e?e:e[t]}function xI(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function SI(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let s=n||e.dom;s;s=UR(s)){if(1!=s.nodeType)continue;let e=s,n=e==i.body,a=n?bI(i):xI(e),l=0,c=0;if(t.top<a.top+wI(r,"top")?c=-(a.top-t.top+wI(o,"top")):t.bottom>a.bottom-wI(r,"bottom")&&(c=t.bottom-t.top>a.bottom-a.top?t.top+wI(o,"top")-a.top:t.bottom-a.bottom+wI(o,"bottom")),t.left<a.left+wI(r,"left")?l=-(a.left-t.left+wI(o,"left")):t.right>a.right-wI(r,"right")&&(l=t.right-a.right+wI(o,"right")),l||c)if(n)i.defaultView.scrollBy(l,c);else{let n=e.scrollLeft,r=e.scrollTop;c&&(e.scrollTop+=c),l&&(e.scrollLeft+=l);let o=e.scrollLeft-n,i=e.scrollTop-r;t={left:t.left-o,top:t.top-i,right:t.right-o,bottom:t.bottom-i}}if(n||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function kI(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=UR(r));return t}function OI(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:o,left:i}=e[n];r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=i&&(r.scrollLeft=i)}}let EI=null;function CI(e,t){let n,r,o,i,s=2e8,a=0,l=t.top,c=t.top;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(1==u.nodeType)e=u.getClientRects();else{if(3!=u.nodeType)continue;e=qR(u).getClientRects()}for(let p=0;p<e.length;p++){let f=e[p];if(f.top<=l&&f.bottom>=c){l=Math.max(f.bottom,l),c=Math.min(f.top,c);let e=f.left>t.left?f.left-t.left:f.right<t.left?t.left-f.right:0;if(e<s){n=u,s=e,r=e&&3==n.nodeType?{left:f.right<t.left?f.right:f.left,top:t.top}:t,1==u.nodeType&&e&&(a=d+(t.left>=(f.left+f.right)/2?1:0));continue}}else f.top>t.top&&!o&&f.left<=t.left&&f.right>=t.left&&(o=u,i={left:Math.max(f.left,Math.min(f.right,t.left)),top:f.top});!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(a=d+1)}}return!n&&o&&(n=o,r=i,s=0),n&&3==n.nodeType?function(e,t){let n=e.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(e,o+1),r.setStart(e,o);let n=NI(r,1);if(n.top!=n.bottom&&MI(t,n))return{node:e,offset:o+(t.left>=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||s&&1==n.nodeType?{node:e,offset:a}:CI(n,r)}function MI(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function AI(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let n=e.childNodes[i];if(1==n.nodeType){let e=n.getClientRects();for(let r=0;r<e.length;r++){let o=e[r];if(MI(t,o))return AI(n,t,o)}}if((i=(i+1)%r)==o)break}return e}function TI(e,t){let n,r=e.dom.ownerDocument,o=0,i=function(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch(r){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}(r,t.left,t.top);i&&({node:n,offset:o}=i);let s,a=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!a||!e.dom.contains(1!=a.nodeType?a.parentNode:a)){let n=e.dom.getBoundingClientRect();if(!MI(t,n))return null;if(a=AI(e.dom,t,n),!a)return null}if(pI)for(let c=a;n&&c;c=UR(c))c.draggable&&(n=void 0);if(a=function(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(a,t),n){if(lI&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let e,r=n.childNodes[o];"IMG"==r.nodeName&&(e=r.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&o++}let r;vI&&o&&1==n.nodeType&&1==(r=n.childNodes[o-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=t.top&&o--,n==e.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(s=function(e,t,n,r){let o=-1;for(let i=t,s=!1;i!=e.dom;){let t=e.docView.nearestDesc(i,!0);if(!t)return null;if(1==t.dom.nodeType&&(t.node.isBlock&&t.parent&&!s||!t.contentDOM)){let e=t.dom.getBoundingClientRect();if(t.node.isBlock&&t.parent&&!s&&(s=!0,e.left>r.left||e.top>r.top?o=t.posBefore:(e.right<r.left||e.bottom<r.top)&&(o=t.posAfter)),!t.contentDOM&&o<0&&!t.node.isText)return(t.node.isBlock?r.top<(e.top+e.bottom)/2:r.left<(e.left+e.right)/2)?t.posBefore:t.posAfter}i=t.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n,-1)}(e,n,o,t))}null==s&&(s=function(e,t,n){let{node:r,offset:o}=CI(t,n),i=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();i=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,o,i)}(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function _I(e){return e.top<e.bottom||e.left<e.right}function NI(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(_I(e))return e}return Array.prototype.find.call(n,_I)||e.getBoundingClientRect()}const RI=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function II(e,t,n){let{node:r,offset:o,atom:i}=e.docView.domFromPos(t,n<0?-1:1),s=vI||lI;if(3==r.nodeType){if(!s||!RI.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){let e=o,t=o,i=n<0?1:-1;return n<0&&!o?(t++,i=-1):n>=0&&o==r.nodeValue.length?(e--,i=1):n<0?e--:t++,PI(NI(qR(r,e,t),i),i<0)}{let e=NI(qR(r,o,o),n);if(lI&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let t=NI(qR(r,o-1,o-1),-1);if(t.top==e.top){let n=NI(qR(r,o,o+1),-1);if(n.top!=e.top)return PI(n,n.left<t.left)}}return e}}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(null==i&&o&&(n<0||o==YR(r))){let e=r.childNodes[o-1];if(1==e.nodeType)return DI(e.getBoundingClientRect(),!1)}if(null==i&&o<YR(r)){let e=r.childNodes[o];if(1==e.nodeType)return DI(e.getBoundingClientRect(),!0)}return DI(r.getBoundingClientRect(),n>=0)}if(null==i&&o&&(n<0||o==YR(r))){let e=r.childNodes[o-1],t=3==e.nodeType?qR(e,YR(e)-(s?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return PI(NI(t,1),!1)}if(null==i&&o<YR(r)){let e=r.childNodes[o];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?qR(e,0,s?0:1):1==e.nodeType?e:null:null;if(t)return PI(NI(t,-1),!0)}return PI(NI(3==r.nodeType?qR(r):r,-n),n>=0)}function PI(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function DI(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function LI(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}const jI=/[\u0590-\u08ac]/;let BI=null,VI=null,zI=!1;function FI(e,t,n){return BI==t&&VI==n?zI:(BI=t,VI=n,zI="up"==n||"down"==n?function(e,t,n){let r=t.selection,o="up"==n?r.$from:r.$to;return LI(e,t,(()=>{let{node:t}=e.docView.domFromPos(o.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=II(e,o.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=qR(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let o=t[e];if(o.bottom>o.top+1&&("up"==n?r.top-o.top>2*(o.bottom-r.top):o.bottom-r.bottom>2*(r.bottom-o.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,a=e.domSelection();return jI.test(r.parent.textContent)&&a.modify?LI(e,t,(()=>{let{focusNode:t,focusOffset:o,anchorNode:i,anchorOffset:s}=e.domSelectionRange(),l=a.caretBidiLevel;a.modify("move",n,"character");let c=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),p=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&o==d;try{a.collapse(i,s),t&&(t!=i||o!=s)&&a.extend&&a.extend(t,o)}catch(f){}return null!=l&&(a.caretBidiLevel=l),p})):"left"==n||"backward"==n?i:s}(e,t,n))}class $I{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>HR(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let o,i=this.getDesc(r);if(i&&(!t||i.node)){if(!n||!(o=i.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return i;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let n=t;n;n=n.parent)if(n==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],o=n+r.size;if(n==e&&o!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<o)return r.descAt(e-n-r.border);n=o}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n,r=0,o=0;for(let i=0;r<this.children.length;r++){let t=this.children[r],n=i+t.size;if(n>e||t instanceof GI){o=e-i;break}i=n}if(o)return this.children[r].domFromPos(o-this.children[r].border,t);for(;r&&!(n=this.children[r-1]).size&&n instanceof HI&&n.side>=0;r--);if(t<=0){let e,n=!0;for(;e=r?this.children[r-1]:null,e&&e.dom.parentNode!=this.contentDOM;r--,n=!1);return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?HR(e.dom)+1:0}}{let e,n=!0;for(;e=r<this.children.length?this.children[r]:null,e&&e.dom.parentNode!=this.contentDOM;r++,n=!1);return e&&n&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?HR(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let i=n,s=0;;s++){let n=this.children[s],a=i+n.size;if(-1==r&&e<=a){let o=i+n.border;if(e>=o&&t<=a-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,o);e=i;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=HR(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(a>t||s==this.children.length-1)){t=a;for(let e=s+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){o=HR(n.dom);break}t+=n.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=a}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let o=Math.min(e,t),i=Math.max(e,t);for(let p=0,f=0;p<this.children.length;p++){let s=this.children[p],a=f+s.size;if(o>f&&i<a)return s.setSelection(e-f-s.border,t-f-s.border,n,r);f=a}let s=this.domFromPos(e,e?-1:1),a=t==e?s:this.domFromPos(t,t?-1:1),l=n.getSelection(),c=!1;if((lI||pI)&&e==t){let{node:e,offset:t}=s;if(3==e.nodeType){if(c=!(!t||"\n"!=e.nodeValue[t-1]),c&&t==e.nodeValue.length)for(let n,r=e;r;r=r.parentNode){if(n=r.nextSibling){"BR"==n.nodeName&&(s=a={node:n.parentNode,offset:HR(n)+1});break}let e=r.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];c=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(lI&&l.focusNode&&l.focusNode!=a.node&&1==l.focusNode.nodeType){let e=l.focusNode.childNodes[l.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||c&&pI)&&KR(s.node,s.offset,l.anchorNode,l.anchorOffset)&&KR(a.node,a.offset,l.focusNode,l.focusOffset))return;let u=!1;if((l.extend||e==t)&&!c){l.collapse(s.node,s.offset);try{e!=t&&l.extend(a.node,a.offset),u=!0}catch(d){}}if(!u){if(e>t){let e=s;s=a,a=e}let n=document.createRange();n.setEnd(a.node,a.offset),n.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let o=this.children[r],i=n+o.size;if(n==i?e<=i&&t>=n:e<i&&t>n){let r=n+o.border,s=i-o.border;if(e>=r&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=r||t!=s||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-r,t-r):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=i}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class HI extends $I{constructor(e,t,n,r){let o,i=t.type.toDOM;if("function"==typeof i&&(i=i(n,(()=>o?o.parent?o.parent.posBeforeChild(o):void 0:r))),!t.type.spec.raw){if(1!=i.nodeType){let e=document.createElement("span");e.appendChild(i),i=e}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=t,this.widget=t,o=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class UI extends $I{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class WI extends $I{constructor(e,t,n,r){super(e,[],n,r),this.mark=t}static create(e,t,n,r){let o=r.nodeViews[t.type.name],i=o&&o(t,r,n);return i&&i.dom||(i=NN.renderSpec(document,t.type.spec.toDOM(t,n))),new WI(e,t,i.dom,i.contentDOM||i.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,n){let r=WI.create(this.parent,this.mark,!0,n),o=this.children,i=this.size;t<i&&(o=lP(o,t,i,n)),e>0&&(o=lP(o,0,e,n));for(let s=0;s<o.length;s++)o[s].parent=r;return r.children=o,r}}class qI extends $I{constructor(e,t,n,r,o,i,s,a,l){super(e,[],o,i),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=s}static create(e,t,n,r,o,i){let s,a=o.nodeViews[t.type.name],l=a&&a(t,o,(()=>s?s.parent?s.parent.posBeforeChild(s):void 0:i),n,r),c=l&&l.dom,u=l&&l.contentDOM;if(t.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else c=document.createTextNode(t.text);else c||({dom:c,contentDOM:u}=NN.renderSpec(document,t.type.spec.toDOM(t)));u||t.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable="false"),t.type.spec.draggable&&(c.draggable=!0));let d=c;return c=rP(c,n,t),l?s=new YI(e,t,n,r,c,u||null,d,l,o,i+1):t.isText?new JI(e,t,n,r,c,d,o):new qI(e,t,n,r,c,u||null,d,o,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>N_.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&oP(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,o=e.composing?this.localCompositionInfo(e,t):null,i=o&&o.pos>-1?o:null,s=o&&o.pos<0,a=new sP(this,i&&i.node,e);!function(e,t,n,r){let o=t.locals(e),i=0;if(0==o.length){for(let n=0;n<e.childCount;n++){let s=e.child(n);r(s,o,t.forChild(i,s),n),i+=s.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d,p,f;for(;s<o.length&&o[s].to==i;){let e=o[s++];e.widget&&(u?(d||(d=[u])).push(e):u=e)}if(u)if(d){d.sort(aP);for(let e=0;e<d.length;e++)n(d[e],c,!!l)}else n(u,c,!!l);if(l)f=-1,p=l,l=null;else{if(!(c<e.childCount))break;f=c,p=e.child(c++)}for(let e=0;e<a.length;e++)a[e].to<=i&&a.splice(e--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)a.push(o[s++]);let h=i+p.nodeSize;if(p.isText){let e=h;s<o.length&&o[s].from<e&&(e=o[s].from);for(let t=0;t<a.length;t++)a[t].to<e&&(e=a[t].to);e<h&&(l=p.cut(e-i),p=p.cut(0,e-i),h=e,f=-1)}else for(;s<o.length&&o[s].to<h;)s++;r(p,p.isInline&&!p.isLeaf?a.filter((e=>!e.inline)):a.slice(),t.forChild(i,p),f),i=h}}(this.node,this.innerDeco,((t,o,i)=>{t.spec.marks?a.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!i&&a.syncToMarks(o==this.node.childCount?D_.none:this.node.child(o).marks,n,e),a.placeWidget(t,e,r)}),((t,i,l,c)=>{let u;a.syncToMarks(t.marks,n,e),a.findNodeMatch(t,i,l,c)||s&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=a.findIndexWithChild(o.node))>-1&&a.updateNodeAt(t,i,l,u,e)||a.updateNextNode(t,i,l,e,c,r)||a.addNode(t,i,l,e,r),r+=t.nodeSize})),a.syncToMarks([],n,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||2==this.dirty)&&(i&&this.protectLocalComposition(e,i),XI(this.contentDOM,this.children,e),fI&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof OR)||n<t||r>t+this.node.content.size)return null;let o=e.domSelectionRange(),i=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];t=YR(e=e.childNodes[t-1])}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(o.focusNode,o.focusOffset);if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,o=function(e,t,n,r){for(let o=0,i=0;o<e.childCount&&i<=r;){let s=e.child(o++),a=i;if(i+=s.nodeSize,!s.isText)continue;let l=s.text;for(;o<e.childCount;){let t=e.child(o++);if(i+=t.nodeSize,!t.isText)break;l+=t.text}if(i>=n){if(i>=r&&l.slice(r-t.length-a,r-a)==t)return r-t.length;let e=a<r?l.lastIndexOf(t,r-a-1):-1;if(e>=0&&e+t.length+a>=n)return a+e;if(n==r&&l.length>=r+t.length-a&&l.slice(r-a,r-a+t.length)==t)return r}}return-1}(this.node.content,e,n-t,r-t);return o<0?null:{node:i,pos:o,text:e}}return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let o=t;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new UI(this,o,t,r);e.input.compositionNodes.push(i),this.children=lP(this.children,n,n+r.length,e,i)}update(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(oP(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=tP(this.dom,this.nodeDOM,eP(this.outerDeco,this.node,t),eP(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function KI(e,t,n,r,o){rP(r,t,e);let i=new qI(void 0,e,t,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class JI extends qI{constructor(e,t,n,r,o,i,s){super(e,t,n,r,o,null,i,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),o=document.createTextNode(r.text);return new JI(this.parent,r,this.outerDeco,this.innerDeco,o,o,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}}class GI extends $I{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class YI extends qI{constructor(e,t,n,r,o,i,s,a,l,c){super(e,t,n,r,o,i,s,l,c),this.spec=a}update(e,t,n,r){if(3==this.dirty)return!1;if(this.spec.update){let o=this.spec.update(e,t,n);return o&&this.updateInner(e,t,n,r),o}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function XI(e,t,n){let r=e.firstChild,o=!1;for(let i=0;i<t.length;i++){let s=t[i],a=s.dom;if(a.parentNode==e){for(;a!=r;)r=iP(r),o=!0;r=r.nextSibling}else o=!0,e.insertBefore(a,r);if(s instanceof WI){let t=r?r.previousSibling:e.lastChild;XI(s.contentDOM,s.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=iP(r),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}const ZI=function(e){e&&(this.nodeName=e)};ZI.prototype=Object.create(null);const QI=[new ZI];function eP(e,t,n){if(0==e.length)return QI;let r=n?QI[0]:new ZI,o=[r];for(let i=0;i<e.length;i++){let s=e[i].type.attrs;if(s){s.nodeName&&o.push(r=new ZI(s.nodeName));for(let e in s){let i=s[e];null!=i&&(n&&1==o.length&&o.push(r=new ZI(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+i:"style"==e?r.style=(r.style?r.style+";":"")+i:"nodeName"!=e&&(r[e]=i))}}}return o}function tP(e,t,n,r){if(n==QI&&r==QI)return t;let o=t;for(let i=0;i<r.length;i++){let t=r[i],s=n[i];if(i){let n;s&&s.nodeName==t.nodeName&&o!=e&&(n=o.parentNode)&&n.nodeName.toLowerCase()==t.nodeName||(n=document.createElement(t.nodeName),n.pmIsDeco=!0,n.appendChild(o),s=QI[0]),o=n}nP(o,s||QI[0],t)}return o}function nP(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<r.length;t++)-1==o.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<o.length;t++)-1==r.indexOf(o[t])&&e.classList.add(o[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=r.exec(t.style);)e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function rP(e,t,n){return tP(e,e,QI,eP(t,n,1!=e.nodeType))}function oP(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function iP(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class sP{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,r=n.children.length,o=e.childCount,i=new Map,s=[];e:for(;o>0;){let a;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof WI)){a=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=e.child(o-1))break;--o,i.set(a,o),s.push(a)}}return{index:o,matched:i,matches:s.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n){let r=0,o=this.stack.length>>1,i=Math.min(o,e.length);for(;r<i&&(r==o-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;for(;r<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let r=-1;for(let t=this.index;t<Math.min(this.index+3,this.top.children.length);t++){let n=this.top.children[t];if(n.matchesMark(e[o])&&!this.isLocked(n.dom)){r=t;break}}if(r>-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=WI.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,n,r){let o,i=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))i=this.top.children.indexOf(o,this.index);else for(let s=this.index,a=Math.min(this.top.children.length,s+5);s<a;s++){let r=this.top.children[s];if(r.matchesNode(e,t,n)&&!this.preMatch.matched.has(r)){i=s;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,o){let i=this.top.children[r];return 3==i.dirty&&i.dom==i.contentDOM&&(i.dirty=2),!!i.update(e,t,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,r,o,i){for(let s=this.index;s<this.top.children.length;s++){let a=this.top.children[s];if(a instanceof qI){let l=this.preMatch.matched.get(a);if(null!=l&&l!=o)return!1;let c,u=a.dom,d=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&3!=a.dirty&&oP(t,a.outerDeco));if(!d&&a.update(e,t,n,r))return this.destroyBetween(this.index,s),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(c=this.recreateWrapper(a,e,t,n,r,i)))return this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(r,i+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,o,i){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content))return null;let s=qI.create(this.top,t,n,r,o,i);if(s.contentDOM){s.children=e.children,e.children=[];for(let e of s.children)e.parent=s}return e.destroy(),s}addNode(e,t,n,r,o){let i=qI.create(this.top,e,t,n,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){let r=new HI(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof WI;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof JI)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((pI||uI)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new GI(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function aP(e,t){return e.type.side-t.type.side}function lP(e,t,n,r,o){let i=[];for(let s=0,a=0;s<e.length;s++){let l=e[s],c=a,u=a+=l.size;c>=n||u<=t?i.push(l):(c<t&&i.push(l.slice(0,t-c,r)),o&&(i.push(o),o=void 0),u>n&&i.push(l.slice(n-c,l.size,r)))}return i}function cP(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),i=o&&0==o.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a,l,c=r.resolve(s);if(ZR(n)){for(a=c;o&&!o.node;)o=o.parent;let e=o.node;if(o&&e.isAtom&&CR.isSelectable(e)&&o.parent&&(!e.isInline||!function(e,t,n){for(let r=0==t,o=t==YR(e);r||o;){if(e==n)return!0;let t=HR(e);if(!(e=e.parentNode))return!1;r=r&&0==t,o=o&&t==YR(e)}}(n.focusNode,n.focusOffset,o.dom))){let e=o.posBefore;l=new CR(s==e?c:r.resolve(e))}}else{let t=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(t<0)return null;a=r.resolve(t)}if(!l){l=yP(e,a,c,"pointer"==t||e.state.selection.head<c.pos&&!i?1:-1)}return l}function uP(e){return e.editable?e.hasFocus():wP(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function dP(e,t=!1){let n=e.state.selection;if(gP(e,n),uP(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&uI){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&KR(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,o="IMG"==r.nodeName;o?n.setEnd(r.parentNode,HR(r)+1):n.setEnd(r,0);n.collapse(!1),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&sI&&aI<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{let r,o,{anchor:i,head:s}=n;!pP||n instanceof OR||(n.$from.parent.inlineContent||(r=fP(e,n.from)),n.empty||n.$from.parent.inlineContent||(o=fP(e,n.to))),e.docView.setSelection(i,s,e.root,t),pP&&(r&&mP(r),o&&mP(o)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout((()=>{uP(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const pP=pI||uI&&dI<63;function fP(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(pI&&o&&"false"==o.contentEditable)return hP(o);if(!(o&&"false"!=o.contentEditable||i&&"false"!=i.contentEditable)){if(o)return hP(o);if(i)return hP(i)}}function hP(e){return e.contentEditable="true",pI&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function mP(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function gP(e,t){if(t instanceof CR){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(vP(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else vP(e)}function vP(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function yP(e,t,n,r){return e.someProp("createSelectionBetween",(r=>r(e,t,n)))||OR.between(t,n,r)}function bP(e){return!(e.editable&&!e.hasFocus())&&wP(e)}function wP(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function xP(e,t){let{$anchor:n,$head:r}=e.selection,o=t>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&wR.findFrom(i,t)}function SP(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function kP(e,t,n){let r=e.state.selection;if(!(r instanceof OR)){if(r instanceof CR&&r.node.isInline)return SP(e,new OR(t>0?r.$to:r.$from));{let n=xP(e.state,t);return!!n&&SP(e,n)}}if(n.indexOf("s")>-1){let{$head:n}=r,o=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=e.state.doc.resolve(n.pos+o.nodeSize*(t<0?-1:1));return SP(e,new OR(r.$anchor,i))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=xP(e.state,t);return!!(n&&n instanceof CR)&&SP(e,n)}if(!(hI&&n.indexOf("m")>-1)){let n,o=r.$head,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText)return!1;let s=t<0?o.pos-i.nodeSize:o.pos;return!!(i.isAtom||(n=e.docView.descAt(s))&&!n.contentDOM)&&(CR.isSelectable(i)?SP(e,new CR(t<0?e.state.doc.resolve(o.pos-i.nodeSize):o)):!!vI&&SP(e,new OR(e.state.doc.resolve(t<0?s:s+i.nodeSize))))}}function OP(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function EP(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function CP(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,s=!1;lI&&1==n.nodeType&&r<OP(n)&&EP(n.childNodes[r],-1)&&(s=!0);for(;;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(EP(e,-1))o=n,i=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(MP(n))break;{let t=n.previousSibling;for(;t&&EP(t,-1);)o=n.parentNode,i=HR(t),t=t.previousSibling;if(t)n=t,r=OP(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}s?AP(e,n,r):o&&AP(e,o,i)}(e):function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,s=OP(n);for(;;)if(r<s){if(1!=n.nodeType)break;if(!EP(n.childNodes[r],1))break;o=n,i=++r}else{if(MP(n))break;{let t=n.nextSibling;for(;t&&EP(t,1);)o=t.parentNode,i=HR(t)+1,t=t.nextSibling;if(t)n=t,r=0,s=OP(n);else{if(n=n.parentNode,n==e.dom)break;r=s=0}}}o&&AP(e,o,i)}(e)}function MP(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function AP(e,t,n){if(3!=t.nodeType){let e,r;(r=function(e,t){for(;e&&t==e.childNodes.length&&!XR(e);)t=HR(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=r,n=0):(e=function(e,t){for(;e&&!t&&!XR(e);)t=HR(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(ZR(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:o}=e;setTimeout((()=>{e.state==o&&dP(e)}),50)}function TP(e,t){let n=e.state.doc.resolve(t);if(!uI&&!mI&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function _P(e,t,n){let r=e.state.selection;if(r instanceof OR&&!r.empty||n.indexOf("s")>-1)return!1;if(hI&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=xP(e.state,t);if(n&&n instanceof CR)return SP(e,n)}if(!o.parent.inlineContent){let n=t<0?o:i,s=r instanceof AR?wR.near(n,t):wR.findFrom(n,t);return!!s&&SP(e,s)}return!1}function NP(e,t){if(!(e.state.selection instanceof OR))return!0;let{$head:n,$anchor:r,empty:o}=e.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let r=e.state.tr;return t<0?r.delete(n.pos-i.nodeSize,n.pos):r.delete(n.pos,n.pos+i.nodeSize),e.dispatch(r),!0}return!1}function RP(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function IP(e,t){let n=t.keyCode,r=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==n||hI&&72==n&&"c"==r)return NP(e,-1)||CP(e,-1);if(46==n&&!t.shiftKey||hI&&68==n&&"c"==r)return NP(e,1)||CP(e,1);if(13==n||27==n)return!0;if(37==n||hI&&66==n&&"c"==r){let t=37==n?"ltr"==TP(e,e.state.selection.from)?-1:1:-1;return kP(e,t,r)||CP(e,t)}if(39==n||hI&&70==n&&"c"==r){let t=39==n?"ltr"==TP(e,e.state.selection.from)?1:-1:1;return kP(e,t,r)||CP(e,t)}return 38==n||hI&&80==n&&"c"==r?_P(e,-1,r)||CP(e,-1):40==n||hI&&78==n&&"c"==r?function(e){if(!pI||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;RP(e,n,"true"),setTimeout((()=>RP(e,n,"false")),20)}return!1}(e)||_P(e,1,r)||CP(e,1):r==(hI?"m":"c")&&(66==n||73==n||89==n||90==n)}function PP(e,t){e.someProp("transformCopied",(n=>{t=n(t,e)}));let n=[],{content:r,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount;){o--,i--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let s=e.someProp("clipboardSerializer")||NN.fromSchema(e.state.schema),a=UP(),l=a.createElement("div");l.appendChild(s.serializeFragment(r,{document:a}));let c,u=l.firstChild,d=0;for(;u&&1==u.nodeType&&(c=$P[u.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let t=a.createElement(c[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),d++}u=l.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${o} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`),{dom:l,text:e.someProp("clipboardTextSerializer",(n=>n(t,e)))||t.content.textBetween(0,t.content.size,"\n\n")}}function DP(e,t,n,r,o){let i,s,a=o.parent.type.spec.code;if(!n&&!t)return null;let l=t&&(r||a||!n);if(l){if(e.someProp("transformPastedText",(n=>{t=n(t,a||r,e)})),a)return t?new j_(N_.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):j_.empty;let n=e.someProp("clipboardTextParser",(n=>n(t,o,r,e)));if(n)s=n;else{let n=o.marks(),{schema:r}=e.state,s=NN.fromSchema(r);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(r.text(e,n)))}))}}else e.someProp("transformPastedHTML",(t=>{n=t(n,e)})),i=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=UP().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);(n=o&&$P[o[1].toLowerCase()])&&(e=n.map((e=>"<"+e+">")).join("")+e+n.map((e=>"</"+e+">")).reverse().join(""));if(r.innerHTML=e,n)for(let i=0;i<n.length;i++)r=r.querySelector(n[i])||r;return r}(n),vI&&function(e){let t=e.querySelectorAll(uI?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&" "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(i);let c=i&&i.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let e=i.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;i=e}if(!s){let t=e.someProp("clipboardParser")||e.someProp("domParser")||xN.fromSchema(e.state.schema);s=t.parseSlice(i,{preserveWhitespace:!(!l&&!u),context:o,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||LP.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(u)s=function(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(pF){return e}let{content:o,openStart:i,openEnd:s}=e;for(let a=n.length-2;a>=0;a-=2){let e=r.nodes[n[a]];if(!e||e.hasRequiredAttrs())break;o=N_.from(e.create(n[a+1],o)),i++,s++}return new j_(o,i,s)}(FP(s,+u[1],+u[2]),u[4]);else if(s=j_.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,o=t.node(n).contentMatchAt(t.index(n)),i=[];if(e.forEach((e=>{if(!i)return;let t,n=o.findWrapping(e.type);if(!n)return i=null;if(t=i.length&&r.length&&BP(n,r,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=VP(i[i.length-1],r.length));let t=jP(e,n);i.push(t),o=o.matchType(t.type),r=n}})),i)return N_.from(i)}return e}(s.content,o),!0),s.openStart||s.openEnd){let e=0,t=0;for(let n=s.content.firstChild;e<s.openStart&&!n.type.spec.isolating;e++,n=n.firstChild);for(let n=s.content.lastChild;t<s.openEnd&&!n.type.spec.isolating;t++,n=n.lastChild);s=FP(s,e,t)}return e.someProp("transformPasted",(t=>{s=t(s,e)})),s}const LP=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function jP(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,N_.from(e));return e}function BP(e,t,n,r,o){if(o<e.length&&o<t.length&&e[o]==t[o]){let i=BP(e,t,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==e.length-1?n.type:e[o+1]))return r.copy(r.content.append(N_.from(jP(n,e,o+1))))}}function VP(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,VP(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(N_.empty,!0);return e.copy(n.append(r))}function zP(e,t,n,r,o,i){let s=t<0?e.firstChild:e.lastChild,a=s.content;return e.childCount>1&&(i=0),o<r-1&&(a=zP(a,t,n,r,o+1,i)),o>=n&&(a=t<0?s.contentMatchAt(0).fillBefore(a,i<=o).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(N_.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(a))}function FP(e,t,n){return t<e.openStart&&(e=new j_(zP(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new j_(zP(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const $P={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let HP=null;function UP(){return HP||(HP=document.implementation.createHTMLDocument("title"))}const WP={},qP={},KP={touchstart:!0,touchmove:!0};class JP{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function GP(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function YP(e){e.someProp("handleDOMEvents",(t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>XP(e,t))}))}function XP(e,t){return e.someProp("handleDOMEvents",(n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)}))}function ZP(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function QP(e){return{left:e.clientX,top:e.clientY}}function eD(e,t,n,r,o){if(-1==r)return!1;let i=e.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(e.someProp(t,(t=>s>i.depth?t(e,n,i.nodeAfter,i.before(s),o,!0):t(e,n,i.node(s),i.before(s),o,!1))))return!0;return!1}function tD(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function nD(e,t,n,r,o){return eD(e,"handleClickOn",t,n,r)||e.someProp("handleClick",(n=>n(e,t,r)))||(o?function(e,t){if(-1==t)return!1;let n,r,o=e.state.selection;o instanceof CR&&(n=o.node);let i=e.state.doc.resolve(t);for(let s=i.depth+1;s>0;s--){let e=s>i.depth?i.nodeAfter:i.node(s);if(CR.isSelectable(e)){r=n&&o.$from.depth>0&&s>=o.$from.depth&&i.before(o.$from.depth+1)==o.$from.pos?i.before(o.$from.depth):i.before(s);break}}return null!=r&&(tD(e,CR.create(e.state.doc,r),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&CR.isSelectable(r))&&(tD(e,new CR(n),"pointer"),!0)}(e,n))}function rD(e,t,n,r){return eD(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",(n=>n(e,t,r)))}function oD(e,t,n,r){return eD(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",(n=>n(e,t,r)))||function(e,t,n){if(0!=n.button)return!1;let r=e.state.doc;if(-1==t)return!!r.inlineContent&&(tD(e,OR.create(r,0,r.content.size),"pointer"),!0);let o=r.resolve(t);for(let i=o.depth+1;i>0;i--){let t=i>o.depth?o.nodeAfter:o.node(i),n=o.before(i);if(t.inlineContent)tD(e,OR.create(r,n+1,n+1+t.content.size),"pointer");else{if(!CR.isSelectable(t))continue;tD(e,CR.create(r,n),"pointer")}return!0}}(e,n,r)}function iD(e){return pD(e)}qP.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!lD(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!gI||!uI||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!fI||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",(t=>t(e,n)))||IP(e,n)?n.preventDefault():GP(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",(t=>t(e,QR(13,"Enter")))),e.input.lastIOSEnter=0)}),200)}},qP.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},qP.keypress=(e,t)=>{let n=t;if(lD(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||hI&&n.metaKey)return;if(e.someProp("handleKeyPress",(t=>t(e,n))))return void n.preventDefault();let r=e.state.selection;if(!(r instanceof OR&&r.$from.sameParent(r.$to))){let t=String.fromCharCode(n.charCode);/[\r\n]/.test(t)||e.someProp("handleTextInput",(n=>n(e,r.$from.pos,r.$to.pos,t)))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),n.preventDefault()}};const sD=hI?"metaKey":"ctrlKey";WP.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=iD(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(n,e.input.lastClick)&&!n[sD]&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let s=e.posAtCoords(QP(n));s&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new aD(e,s,n,!!r)):("doubleClick"==i?rD:oD)(e,s.pos,s.inside,n)?n.preventDefault():GP(e,"pointer"))};class aD{constructor(e,t,n,r){let o,i;if(this.view=e,this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[sD],this.allowDefault=n.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),i=t.inside;else{let n=e.state.doc.resolve(t.pos);o=n.parent,i=n.depth?n.before():0}const s=r?null:n.target,a=s?e.docView.nearestDesc(s,!0):null;this.target=a?a.dom:null;let{selection:l}=e.state;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||l instanceof CR&&l.from<=i&&l.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!lI||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),GP(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>dP(this.view))),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(QP(e))),this.updateAllowDefault(e),this.allowDefault||!t?GP(this.view,"pointer"):nD(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||pI&&this.mightDrag&&!this.mightDrag.node.isAtom||uI&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(tD(this.view,wR.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):GP(this.view,"pointer")}move(e){this.updateAllowDefault(e),GP(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function lD(e,t){return!!e.composing||!!(pI&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}WP.touchstart=e=>{e.input.lastTouch=Date.now(),iD(e),GP(e,"pointer")},WP.touchmove=e=>{e.input.lastTouch=Date.now(),GP(e,"pointer")},WP.contextmenu=e=>iD(e);const cD=gI?5e3:-1;function uD(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout((()=>pD(e)),t))}function dD(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function pD(e,t=!1){if(!(gI&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),dD(e),t||e.docView&&e.docView.dirty){let t=cP(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}qP.compositionstart=qP.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((e=>!1===e.type.spec.inclusive))))e.markCursor=e.state.storedMarks||n.marks(),pD(e,!0),e.markCursor=null;else if(pD(e),lI&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){e.domSelection().collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}uD(e,cD)},qP.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then((()=>e.domObserver.flush())),e.input.compositionID++,uD(e,20))};const fD=sI&&aI<15||fI&&yI<604;function hD(e,t,n,r,o){let i=DP(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",(t=>t(e,o,i||j_.empty))))return!0;if(!i)return!1;let s=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(i),a=s?e.state.tr.replaceSelectionWith(s,r):e.state.tr.replaceSelection(i);return e.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function mD(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}WP.copy=qP.cut=(e,t)=>{let n=t,r=e.state.selection,o="cut"==n.type;if(r.empty)return;let i=fD?null:n.clipboardData,s=r.content(),{dom:a,text:l}=PP(e,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout((()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}(e,a),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},qP.paste=(e,t)=>{let n=t;if(e.composing&&!gI)return;let r=fD?null:n.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&hD(e,mD(r),r.getData("text/html"),o,n)?n.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout((()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?hD(e,r.value,null,o,t):hD(e,r.textContent,r.innerHTML,o,t)}),50)}(e,n)};class gD{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}}const vD=hI?"altKey":"ctrlKey";WP.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o,i=e.state.selection,s=i.empty?null:e.posAtCoords(QP(n));if(s&&s.pos>=i.from&&s.pos<=(i instanceof CR?i.to-1:i.to));else if(r&&r.mightDrag)o=CR.create(e.state.doc,r.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=CR.create(e.state.doc,t.posBefore))}let a=(o||e.state.selection).content(),{dom:l,text:c}=PP(e,a);n.dataTransfer.clearData(),n.dataTransfer.setData(fD?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",fD||n.dataTransfer.setData("text/plain",c),e.dragging=new gD(a,!n[vD],o)},WP.dragend=e=>{let t=e.dragging;window.setTimeout((()=>{e.dragging==t&&(e.dragging=null)}),50)},qP.dragover=qP.dragenter=(e,t)=>t.preventDefault(),qP.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(QP(n));if(!o)return;let i=e.state.doc.resolve(o.pos),s=r&&r.slice;s?e.someProp("transformPasted",(t=>{s=t(s,e)})):s=DP(e,mD(n.dataTransfer),fD?null:n.dataTransfer.getData("text/html"),!1,i);let a=!(!r||n[vD]);if(e.someProp("handleDrop",(t=>t(e,n,s||j_.empty,a))))return void n.preventDefault();if(!s)return;n.preventDefault();let l=s?oR(e.state.doc,i.pos,s):i.pos;null==l&&(l=i.pos);let c=e.state.tr;if(a){let{node:e}=r;e?e.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=0==s.openStart&&0==s.openEnd&&1==s.content.childCount,p=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(p))return;let f=c.doc.resolve(u);if(d&&CR.isSelectable(s.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new CR(f));else{let t=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach(((e,n,r,o)=>t=o)),c.setSelection(yP(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},WP.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&dP(e)}),20))},WP.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},WP.beforeinput=(e,t)=>{if(uI&&gI&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout((()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",(t=>t(e,QR(8,"Backspace")))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())}),50)}};for(let os in qP)WP[os]=qP[os];function yD(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class bD{constructor(e,t){this.toDOM=e,this.spec=t||OD,this.side=this.spec.side||0}map(e,t,n,r){let{pos:o,deleted:i}=e.mapResult(t.from+r,this.side<0?-1:1);return i?null:new SD(o-n,o-n,this)}valid(){return!0}eq(e){return this==e||e instanceof bD&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&yD(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class wD{constructor(e,t){this.attrs=e,this.spec=t||OD}map(e,t,n,r){let o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new SD(o,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof wD&&yD(this.attrs,e.attrs)&&yD(this.spec,e.spec)}static is(e){return e.type instanceof wD}destroy(){}}class xD{constructor(e,t){this.attrs=e,this.spec=t||OD}map(e,t,n,r){let o=e.mapResult(t.from+r,1);if(o.deleted)return null;let i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=o.pos?null:new SD(o.pos-n,i.pos-n,this)}valid(e,t){let n,{index:r,offset:o}=e.content.findIndex(t.from);return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to}eq(e){return this==e||e instanceof xD&&yD(this.attrs,e.attrs)&&yD(this.spec,e.spec)}destroy(){}}class SD{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new SD(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new SD(e,e,new bD(t,n))}static inline(e,t,n,r){return new SD(e,t,new wD(n,r))}static node(e,t,n,r){return new SD(e,t,new xD(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof wD}get widget(){return this.type instanceof bD}}const kD=[],OD={};class ED{constructor(e,t){this.local=e.length?e:kD,this.children=t.length?t:kD}static create(e,t){return t.length?ND(t,e,0,OD):CD}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,o){for(let i=0;i<this.local.length;i++){let s=this.local[i];s.from<=t&&s.to>=e&&(!o||o(s.spec))&&n.push(s.copy(s.from+r,s.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let s=this.children[i]+1;this.children[i+2].findInner(e-s,t-s,n,r+s,o)}}map(e,t,n){return this==CD||0==e.maps.length?this:this.mapInner(e,t,0,0,n||OD)}mapInner(e,t,n,r,o){let i;for(let s=0;s<this.local.length;s++){let a=this.local[s].map(e,n,r);a&&a.type.valid(t,a)?(i||(i=[])).push(a):o.onRemove&&o.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,r,o,i,s){let a=e.slice();for(let c=0,u=i;c<n.maps.length;c++){let e=0;n.maps[c].forEach(((t,n,r,o)=>{let i=o-r-(n-t);for(let s=0;s<a.length;s+=3){let r=a[s+1];if(r<0||t>r+u-e)continue;let o=a[s]+u-e;n>=o?a[s+1]=t<=o?-2:-1:t>=u&&i&&(a[s]+=i,a[s+1]+=i)}e+=i})),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(-2==a[c+1]){l=!0,a[c+1]=-1;continue}let t=n.map(e[c]+i),u=t-o;if(u<0||u>=r.content.size){l=!0;continue}let d=n.map(e[c+1]+i,-1)-o,{index:p,offset:f}=r.content.findIndex(u),h=r.maybeChild(p);if(h&&f==u&&f+h.nodeSize==d){let r=a[c+2].mapInner(n,h,t+1,e[c]+i+1,s);r!=CD?(a[c]=u,a[c+1]=d,a[c+2]=r):(a[c+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,n,r,o,i,s){function a(e,t){for(let i=0;i<e.local.length;i++){let a=e.local[i].map(r,o,t);a?n.push(a):s.onRemove&&s.onRemove(e.local[i].spec)}for(let n=0;n<e.children.length;n+=3)a(e.children[n+2],e.children[n]+t+1)}for(let l=0;l<e.length;l+=3)-1==e[l+1]&&a(e[l+2],t[l]+i+1);return n}(a,e,t,n,o,i,s),c=ND(l,r,0,s);t=c.local;for(let e=0;e<a.length;e+=3)a[e+1]<0&&(a.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<a.length&&a[t]<n;)t+=3;a.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new ED(t.sort(RD),a)}(this.children,i||[],e,t,n,r,o):i?new ED(i.sort(RD),kD):CD}add(e,t){return t.length?this==CD?ED.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,o=0;e.forEach(((e,i)=>{let s,a=i+n;if(s=TD(t,e,a)){for(r||(r=this.children.slice());o<r.length&&r[o]<i;)o+=3;r[o]==i?r[o+2]=r[o+2].addInner(e,s,a+1):r.splice(o,0,i,i+e.nodeSize,ND(s,e,a+1,OD)),o+=3}}));let i=AD(o?_D(t):t,-n);for(let s=0;s<i.length;s++)i[s].type.valid(e,i[s])||i.splice(s--,1);return new ED(i.length?this.local.concat(i).sort(RD):this.local,r||this.children)}remove(e){return 0==e.length||this==CD?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let o=0;o<n.length;o+=3){let r,i=n[o]+t,s=n[o+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>i&&t.to<s&&(e[n]=null,(r||(r=[])).push(t));if(!r)continue;n==this.children&&(n=this.children.slice());let a=n[o+2].removeInner(r,i+1);a!=CD?n[o+2]=a:(n.splice(o,3),o-=3)}if(r.length)for(let o,i=0;i<e.length;i++)if(o=e[i])for(let e=0;e<r.length;e++)r[e].eq(o,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1));return n==this.children&&r==this.local?this:r.length||n.length?new ED(r,n):CD}forChild(e,t){if(this==CD)return this;if(t.isLeaf)return ED.empty;let n,r;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=e){this.children[s]==e&&(n=this.children[s+2]);break}let o=e+1,i=o+t.content.size;for(let s=0;s<this.local.length;s++){let e=this.local[s];if(e.from<i&&e.to>o&&e.type instanceof wD){let t=Math.max(o,e.from)-o,n=Math.min(i,e.to)-o;t<n&&(r||(r=[])).push(e.copy(t,n))}}if(r){let e=new ED(r.sort(RD),kD);return n?new MD([e,n]):e}return n||CD}eq(e){if(this==e)return!0;if(!(e instanceof ED)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return ID(this.localsInner(e))}localsInner(e){if(this==CD)return kD;if(e.inlineContent||!this.local.some(wD.is))return this.local;let t=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof wD||t.push(this.local[n]);return t}}ED.empty=new ED([],[]),ED.removeOverlap=ID;const CD=ED.empty;class MD{constructor(e){this.members=e}map(e,t){const n=this.members.map((n=>n.map(e,t,OD)));return MD.from(n)}forChild(e,t){if(t.isLeaf)return ED.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,t);o!=CD&&(o instanceof MD?n=n.concat(o.members):n.push(o))}return MD.from(n)}eq(e){if(!(e instanceof MD)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}return t?ID(n?t:t.sort(RD)):kD}static from(e){switch(e.length){case 0:return CD;case 1:return e[0];default:return new MD(e.every((e=>e instanceof ED))?e:e.reduce(((e,t)=>e.concat(t instanceof ED?t:t.members)),[]))}}}function AD(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let o=e[r];n.push(new SD(o.from+t,o.to+t,o.type))}return n}function TD(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,o=null;for(let i,s=0;s<e.length;s++)(i=e[s])&&i.from>n&&i.to<r&&((o||(o=[])).push(i),e[s]=null);return o}function _D(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function ND(e,t,n,r){let o=[],i=!1;t.forEach(((t,s)=>{let a=TD(e,t,s+n);if(a){i=!0;let e=ND(a,t,n+s+1,r);e!=CD&&o.push(s,s+t.nodeSize,e)}}));let s=AD(i?_D(e):e,-n).sort(RD);for(let a=0;a<s.length;a++)s[a].type.valid(t,s[a])||(r.onRemove&&r.onRemove(s[a].spec),s.splice(a--,1));return s.length||o.length?new ED(s,o):CD}function RD(e,t){return e.from-t.from||e.to-t.to}function ID(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let o=n+1;o<t.length;o++){let i=t[o];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),PD(t,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,r.to),PD(t,o+1,i.copy(r.to,i.to)))}}return t}function PD(e,t,n){for(;t<e.length&&RD(n,e[t])>0;)t++;e.splice(t,0,n)}function DD(e){let t=[];return e.someProp("decorations",(n=>{let r=n(e.state);r&&r!=CD&&t.push(r)})),e.cursorWrapper&&t.push(ED.create(e.state.doc,[e.cursorWrapper.deco])),MD.from(t)}const LD={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},jD=sI&&aI<=11;class BD{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class VD{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new BD,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver((e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);sI&&aI<=11&&e.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),jD&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((()=>{this.flushingSoon=-1,this.flush()}),20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,LD)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout((()=>this.flush()),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout((()=>this.suppressingSelectionUpdates=!1),50)}onSelectionChange(){if(bP(this.view)){if(this.suppressingSelectionUpdates)return dP(this.view);if(sI&&aI<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&KR(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let o=e.focusNode;o;o=UR(o))n.add(o);for(let o=e.anchorNode;o;o=UR(o))if(n.has(o)){t=o;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&bP(e)&&!this.ignoreSelectionChange(n),o=-1,i=-1,s=!1,a=[];if(e.editable)for(let c=0;c<t.length;c++){let e=this.registerMutation(t[c],a);e&&(o=o<0?e.from:Math.min(e.from,o),i=i<0?e.to:Math.max(e.to,i),e.typeOver&&(s=!0))}if(lI&&a.length>1){let e=a.filter((e=>"BR"==e.nodeName));if(2==e.length){let t=e[0],n=e[1];t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}}let l=null;o<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ZR(n)&&(l=cP(e))&&l.eq(wR.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,dP(e),this.currentSelection.set(n),e.scrollToSelection()):(o>-1||r)&&(o>-1&&(e.docView.markDirty(o,i),function(e){if(zD.has(e))return;if(zD.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)){if(e.requiresGeckoHackNode=lI,FD)return;FD=!0}}(e)),this.handleDOMChange(o,i,s,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||dP(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++)t.push(e.addedNodes[n]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,o=e.nextSibling;if(sI&&aI<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:i}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!i||Array.prototype.indexOf.call(e.addedNodes,i)<0)&&(o=i)}let i=r&&r.parentNode==e.target?HR(r)+1:0,s=n.localPosFromDOM(e.target,i,-1),a=o&&o.parentNode==e.target?HR(o):e.target.childNodes.length;return{from:s,to:n.localPosFromDOM(e.target,a,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let zD=new WeakMap,FD=!1;function $D(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(pI&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||pI&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const HD=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function UD(e,t,n,r,o){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=cP(e,t);if(n&&!e.state.selection.eq(n)){if(uI&&gI&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",(t=>t(e,QR(13,"Enter")))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),i&&r.setMeta("composition",i),e.dispatch(r)}return}let s=e.state.doc.resolve(t),a=s.sharedDepth(n);t=s.before(a+1),n=e.state.doc.resolve(n).after(a+1);let l,c,u=e.state.selection,d=function(e,t,n){let r,{node:o,fromOffset:i,toOffset:s,from:a,to:l}=e.docView.parseRange(t,n),c=e.domSelectionRange(),u=c.anchorNode;if(u&&e.dom.contains(1==u.nodeType?u:u.parentNode)&&(r=[{node:u,offset:c.anchorOffset}],ZR(c)||r.push({node:c.focusNode,offset:c.focusOffset})),uI&&8===e.input.lastKeyCode)for(let g=s;g>i;g--){let e=o.childNodes[g-1],t=e.pmViewDesc;if("BR"==e.nodeName&&!t){s=g;break}if(!t||t.size)break}let d=e.state.doc,p=e.someProp("domParser")||xN.fromSchema(e.state.schema),f=d.resolve(a),h=null,m=p.parse(o,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:i,to:s,preserveWhitespace:"pre"!=f.parent.type.whitespace||"full",findPositions:r,ruleFromNode:$D,context:f});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),h={anchor:e+a,head:t+a}}return{doc:m,sel:h,from:a,to:l}}(e,t,n),p=e.state.doc,f=p.slice(d.from,d.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(l=e.state.selection.to,c="end"):(l=e.state.selection.from,c="start"),e.input.lastKeyCode=null;let h=function(e,t,n,r,o){let i=e.findDiffStart(t,n);if(null==i)return null;let{a:s,b:a}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==o){r-=s+Math.max(0,i-Math.min(s,a))-i}if(s<i&&e.size<t.size){let e=r<=i&&r>=s?i-r:0;i-=e,i&&i<t.size&&KD(t.textBetween(i-1,i+1))&&(i+=e?1:-1),a=i+(a-s),s=i}else if(a<i){let t=r<=i&&r>=a?i-r:0;i-=t,i&&i<e.size&&KD(e.textBetween(i-1,i+1))&&(i+=t?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}(f.content,d.doc.content,d.from,l,c);if((fI&&e.input.lastIOSEnter>Date.now()-225||gI)&&o.some((e=>1==e.nodeType&&!HD.test(e.nodeName)))&&(!h||h.endA>=h.endB)&&e.someProp("handleKeyDown",(t=>t(e,QR(13,"Enter")))))return void(e.input.lastIOSEnter=0);if(!h){if(!(r&&u instanceof OR&&!u.empty&&u.$head.sameParent(u.$anchor))||e.composing||d.sel&&d.sel.anchor!=d.sel.head){if(d.sel){let t=WD(e,e.state.doc,d.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);i&&n.setMeta("composition",i),e.dispatch(n)}}return}h={start:u.from,endA:u.to,endB:u.to}}if(uI&&e.cursorWrapper&&d.sel&&d.sel.anchor==e.cursorWrapper.deco.from&&d.sel.head==d.sel.anchor){let e=h.endB-h.start;d.sel={anchor:d.sel.anchor+e,head:d.sel.anchor+e}}e.input.domChangeCount++,e.state.selection.from<e.state.selection.to&&h.start==h.endB&&e.state.selection instanceof OR&&(h.start>e.state.selection.from&&h.start<=e.state.selection.from+2&&e.state.selection.from>=d.from?h.start=e.state.selection.from:h.endA<e.state.selection.to&&h.endA>=e.state.selection.to-2&&e.state.selection.to<=d.to&&(h.endB+=e.state.selection.to-h.endA,h.endA=e.state.selection.to)),sI&&aI<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>d.from&&" "==d.doc.textBetween(h.start-d.from-1,h.start-d.from+1)&&(h.start--,h.endA--,h.endB--);let m,g=d.doc.resolveNoCache(h.start-d.from),v=d.doc.resolveNoCache(h.endB-d.from),y=p.resolve(h.start),b=g.sameParent(v)&&g.parent.inlineContent&&y.end()>=h.endA;if((fI&&e.input.lastIOSEnter>Date.now()-225&&(!b||o.some((e=>"DIV"==e.nodeName||"P"==e.nodeName)))||!b&&g.pos<d.doc.content.size&&!g.sameParent(v)&&(m=wR.findFrom(d.doc.resolve(g.pos+1),1,!0))&&m.head==v.pos)&&e.someProp("handleKeyDown",(t=>t(e,QR(13,"Enter")))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>h.start&&function(e,t,n,r,o){if(!r.parent.isTextblock||n-t<=o.pos-r.pos||qD(r,!0,!1)<o.pos)return!1;let i=e.resolve(t);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=e.resolve(qD(i,!0,!0));return!(!s.parent.isTextblock||s.pos>n||qD(s,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(s.parent.content)}(p,h.start,h.endA,g,v)&&e.someProp("handleKeyDown",(t=>t(e,QR(8,"Backspace")))))return void(gI&&uI&&e.domObserver.suppressSelectionUpdates());uI&&gI&&h.endB==h.start&&(e.input.lastAndroidDelete=Date.now()),gI&&!b&&g.start()!=v.start()&&0==v.parentOffset&&g.depth==v.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==h.endA&&(h.endB-=2,v=d.doc.resolveNoCache(h.endB-d.from),setTimeout((()=>{e.someProp("handleKeyDown",(function(t){return t(e,QR(13,"Enter"))}))}),20));let w,x,S,k=h.start,O=h.endA;if(b)if(g.pos==v.pos)sI&&aI<=11&&0==g.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((()=>dP(e)),20)),w=e.state.tr.delete(k,O),x=p.resolve(h.start).marksAcross(p.resolve(h.endA));else if(h.endA==h.endB&&(S=function(e,t){let n,r,o,i=e.firstChild.marks,s=t.firstChild.marks,a=i,l=s;for(let u=0;u<s.length;u++)a=s[u].removeFromSet(a);for(let u=0;u<i.length;u++)l=i[u].removeFromSet(l);if(1==a.length&&0==l.length)r=a[0],n="add",o=e=>e.mark(r.addToSet(e.marks));else{if(0!=a.length||1!=l.length)return null;r=l[0],n="remove",o=e=>e.mark(r.removeFromSet(e.marks))}let c=[];for(let u=0;u<t.childCount;u++)c.push(o(t.child(u)));if(N_.from(c).eq(e))return{mark:r,type:n}}(g.parent.content.cut(g.parentOffset,v.parentOffset),y.parent.content.cut(y.parentOffset,h.endA-y.start()))))w=e.state.tr,"add"==S.type?w.addMark(k,O,S.mark):w.removeMark(k,O,S.mark);else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let t=g.parent.textBetween(g.parentOffset,v.parentOffset);if(e.someProp("handleTextInput",(n=>n(e,k,O,t))))return;w=e.state.tr.insertText(t,k,O)}if(w||(w=e.state.tr.replace(k,O,d.doc.slice(h.start-d.from,h.endB-d.from))),d.sel){let t=WD(e,w.doc,d.sel);t&&!(uI&&gI&&e.composing&&t.empty&&(h.start!=h.endB||e.input.lastAndroidDelete<Date.now()-100)&&(t.head==k||t.head==w.mapping.map(O)-1)||sI&&t.empty&&t.head==k)&&w.setSelection(t)}x&&w.ensureMarks(x),i&&w.setMeta("composition",i),e.dispatch(w.scrollIntoView())}function WD(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:yP(e,t.resolve(n.anchor),t.resolve(n.head))}function qD(e,t,n){let r=e.depth,o=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,o++}return o}function KD(e){if(2!=e.length)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class JD{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new JP,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(QD),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=XD(this),YD(this),this.nodeViews=ZD(this),this.docView=KI(this.state.doc,GD(this),DD(this),this.dom,this),this.domObserver=new VD(this,((e,t,n,r)=>UD(this,e,t,n,r))),this.domObserver.start(),function(e){for(let t in WP){let n=WP[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!ZP(e,t)||XP(e,t)||!e.editable&&t.type in qP||n(e,t)},KP[t]?{passive:!0}:void 0)}pI&&e.dom.addEventListener("input",(()=>null)),YP(e)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&YP(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(QD),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let n in this._props)t[n]=this._props[n];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var n;let r=this.state,o=!1,i=!1;e.storedMarks&&this.composing&&(dD(this),i=!0),this.state=e;let s=r.plugins!=e.plugins||this._props.plugins!=t.plugins;if(s||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=ZD(this);(function(e,t){let n=0,r=0;for(let o in e){if(e[o]!=t[o])return!0;n++}for(let o in t)r++;return n!=r})(e,this.nodeViews)&&(this.nodeViews=e,o=!0)}(s||t.handleDOMEvents!=this._props.handleDOMEvents)&&YP(this),this.editable=XD(this),YD(this);let a=DD(this),l=GD(this),c=r.plugins==e.plugins||r.doc.eq(e.doc)?e.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",u=o||!this.docView.matchesNode(e.doc,l,a);!u&&e.selection.eq(r.selection)||(i=!0);let d="preserve"==c&&i&&null==this.dom.style.overflowAnchor&&function(e){let t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top);for(let i=(r.left+r.right)/2,s=o+1;s<Math.min(innerHeight,r.bottom);s+=5){let r=e.root.elementFromPoint(i,s);if(!r||r==e.dom||!e.dom.contains(r))continue;let a=r.getBoundingClientRect();if(a.top>=o-20){t=r,n=a.top;break}}return{refDOM:t,refTop:n,stack:kI(e.dom)}}(this);if(i){this.domObserver.stop();let t=u&&(sI||uI)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&function(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(r.selection,e.selection);if(u){let n=uI?this.trackWrites=this.domSelectionRange().focusNode:null;!o&&this.docView.update(e.doc,l,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=KI(e.doc,l,a,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return KR(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this))?dP(this,t):(gP(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():d&&function({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;OI(n,0==r?0:r-t)}(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",(e=>e(this))));else if(this.state.selection instanceof CR){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&SI(this,t.getBoundingClientRect(),e)}else SI(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let n=e.node,r=-1;if(this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new gD(e.slice,e.move,r<0?void 0:CR.create(this.state.doc,r))}someProp(e,t){let n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(let i=0;i<this.directPlugins.length;i++){let r=this.directPlugins[i].props[e];if(null!=r&&(n=t?t(r):r))return n}let o=this.state.plugins;if(o)for(let i=0;i<o.length;i++){let r=o[i].props[e];if(null!=r&&(n=t?t(r):r))return n}}hasFocus(){if(sI){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(EI)return e.focus(EI);let t=kI(e);e.focus(null==EI?{get preventScroll(){return EI={preventScroll:!0},!0}}:void 0),EI||(EI=!1,OI(t,0))}(this.dom),dP(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t;return e||document}updateRoot(){this._root=null}posAtCoords(e){return TI(this,e)}coordsAtPos(e,t=1){return II(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return FI(this,t||this.state,e)}pasteHTML(e,t){return hD(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return hD(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(!function(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],DD(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(e,t){XP(e,t)||!WP[t.type]||!e.editable&&t.type in qP||WP[t.type](e,t)}(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return pI&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom?function(e){let t;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}e.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",n,!0);let r=t.startContainer,o=t.startOffset,i=t.endContainer,s=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return KR(a.node,a.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function GD(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",(n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))})),t.translate||(t.translate="no"),[SD.node(0,e.state.doc.content.size,t)]}function YD(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:SD.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function XD(e){return!e.someProp("editable",(t=>!1===t(e.state)))}function ZD(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function QD(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var eL={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},tL={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},nL="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),rL="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),oL=0;oL<10;oL++)eL[48+oL]=eL[96+oL]=String(oL);for(oL=1;oL<=24;oL++)eL[oL+111]="F"+oL;for(oL=65;oL<=90;oL++)eL[oL]=String.fromCharCode(oL+32),tL[oL]=String.fromCharCode(oL);for(var iL in eL)tL.hasOwnProperty(iL)||(tL[iL]=eL[iL]);const sL="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function aL(e){let t,n,r,o,i=e.split(/-(?!$)/),s=i[i.length-1];"Space"==s&&(s=" ");for(let a=0;a<i.length-1;a++){let e=i[a];if(/^(cmd|meta|m)$/i.test(e))o=!0;else if(/^a(lt)?$/i.test(e))t=!0;else if(/^(c|ctrl|control)$/i.test(e))n=!0;else if(/^s(hift)?$/i.test(e))r=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);sL?o=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),o&&(s="Meta-"+s),r&&(s="Shift-"+s),s}function lL(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function cL(e){let t=function(e){let t=Object.create(null);for(let n in e)t[aL(n)]=e[n];return t}(e);return function(e,n){let r,o=function(e){var t=!(nL&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||rL&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?tL:eL)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),i=t[lL(o,n)];if(i&&i(e.state,e.dispatch,e))return!0;if(1==o.length&&" "!=o){if(n.shiftKey){let r=t[lL(o,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(r=eL[n.keyCode])&&r!=o){let o=t[lL(r,n)];if(o&&o(e.state,e.dispatch,e))return!0}}return!1}}function uL(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}function dL(e,t,n){let r=t.nodeBefore,o=t.pos-1;for(;!r.isTextblock;o--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let i=t.nodeAfter,s=t.pos+1;for(;!i.isTextblock;s++){if(i.type.spec.isolating)return!1;let e=i.firstChild;if(!e)return!1;i=e}let a=iR(e.doc,o,s,j_.empty);if(!a||a.from!=o||a instanceof KN&&a.slice.size>=s-o)return!1;if(n){let t=e.tr.step(a);t.setSelection(OR.create(t.doc,o)),n(t.scrollIntoView())}return!0}function pL(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}function fL(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function hL(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}function mL(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function gL(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function vL(e,t,n){let r,o,i=t.nodeBefore,s=t.nodeAfter;if(i.type.spec.isolating||s.type.spec.isolating)return!1;if(function(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,i=t.index();return!(!(r&&o&&r.type.compatibleContent(o.type))||(!r.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(i,i+1)||!o.isTextblock&&!tR(e.doc,t.pos)||(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;let a=t.parent.canReplace(t.index(),t.index()+1);if(a&&(r=(o=i.contentMatchAt(i.childCount)).findWrapping(s.type))&&o.matchType(r[0]||s.type).validEnd){if(n){let o=t.pos+s.nodeSize,a=N_.empty;for(let e=r.length-1;e>=0;e--)a=N_.from(r[e].create(null,a));a=N_.from(i.copy(a));let l=e.tr.step(new JN(t.pos-1,o,t.pos,o,new j_(a,1,0),r.length,!0)),c=o+2*r.length;tR(l.doc,c)&&l.join(c),n(l.scrollIntoView())}return!0}let l=wR.findFrom(t,1),c=l&&l.$from.blockRange(l.$to),u=c&&XN(c);if(null!=u&&u>=t.depth)return n&&n(e.tr.lift(c,u).scrollIntoView()),!0;if(a&&pL(s,"start",!0)&&pL(i,"end")){let r=i,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let a=s,l=1;for(;!a.isTextblock;a=a.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,a.content)){if(n){let r=N_.empty;for(let e=o.length-1;e>=0;e--)r=N_.from(o[e].copy(r));n(e.tr.step(new JN(t.pos-o.length,t.pos+s.nodeSize,t.pos+l,t.pos+s.nodeSize-l,new j_(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function yL(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(n&&n(t.tr.setSelection(OR.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}const bL=yL(-1),wL=yL(1);function xL(e,t=null){return function(n,r){let o=!1;for(let i=0;i<n.selection.ranges.length&&!o;i++){let{$from:{pos:r},$to:{pos:s}}=n.selection.ranges[i];n.doc.nodesBetween(r,s,((r,i)=>{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)o=!0;else{let t=n.doc.resolve(i),r=t.index();o=t.parent.canReplaceWith(r,r+1,e)}}))}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:i},$to:{pos:s}}=n.selection.ranges[r];o.setBlockType(i,s,e,t)}r(o.scrollIntoView())}return!0}}function SL(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(e)&&0==s.startIndex){if(0==o.index(s.depth-1))return!1;let e=n.doc.resolve(s.start-2);l=new Q_(e,e,s.depth),s.endIndex<s.parent.childCount&&(s=new Q_(o,n.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let c=ZN(l,e,t,s);return!!c&&(r&&r(function(e,t,n,r,o){let i=N_.empty;for(let u=n.length-1;u>=0;u--)i=N_.from(n[u].type.create(n[u].attrs,i));e.step(new JN(t.start-(r?2:0),t.end,t.start,t.end,new j_(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==o&&(s=u+1);let a=n.length-s,l=t.start+n.length-(r?2:0),c=t.parent;for(let u=t.startIndex,d=t.endIndex,p=!0;u<d;u++,p=!1)!p&&eR(e.doc,l,a)&&(e.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return e}(n.tr,s,c,a,e).scrollIntoView()),!0)}}function kL(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,(t=>t.childCount>0&&t.firstChild.type==e));return!!i&&(!n||(r.node(i.depth-1).type==e?function(e,t,n,r){let o=e.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new JN(i-1,s,i,s,new j_(N_.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Q_(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const a=XN(r);if(null==a)return!1;o.lift(r,a);let l=o.mapping.map(i,-1)-1;tR(o.doc,l)&&o.join(l);return t(o.scrollIntoView()),!0}(t,n,e,i):function(e,t,n){let r=e.tr,o=n.parent;for(let f=n.end,h=n.endIndex-1,m=n.startIndex;h>m;h--)f-=o.child(h).nodeSize,r.delete(f-1,f+1);let i=r.doc.resolve(n.start),s=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let a=0==n.startIndex,l=n.endIndex==o.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?N_.empty:N_.from(o))))return!1;let d=i.pos,p=d+s.nodeSize;return r.step(new JN(d-(a?1:0),p+(l?1:0),d+1,p-1,new j_((a?N_.empty:N_.from(o.copy(N_.empty))).append(l?N_.empty:N_.from(o.copy(N_.empty))),a?0:1,l?0:1),a?0:1)),t(r.scrollIntoView()),!0}(t,n,i)))}}function OL(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform();class EL{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(...e)=>{const n=t(...e)(i);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s=[],a=!!e,l=e||o.tr,c={...Object.fromEntries(Object.entries(n).map((([e,n])=>[e,(...e)=>{const r=this.buildProps(l,t),o=n(...e)(r);return s.push(o),c}]))),run:()=>(a||!t||l.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(l),s.every((e=>!0===e)))};return c}createCan(e){const{rawCommands:t,state:n}=this,r=e||n.tr,o=this.buildProps(r,false),i=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,(...e)=>t(...e)({...o,dispatch:void 0})])));return{...i,chain:()=>this.createChain(r,false)}}buildProps(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s={tr:e,editor:r,view:i,state:OL({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map((([e,t])=>[e,(...e)=>t(...e)(s)])))}};return s}}class CL{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach((e=>e.apply(this,t))),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter((e=>e!==t)):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function ML(e,t,n){if(void 0===e.config[t]&&e.parent)return ML(e.parent,t,n);if("function"==typeof e.config[t]){return e.config[t].bind({...n,parent:e.parent?ML(e.parent,t,n):null})}return e.config[t]}function AL(e){return{baseExtensions:e.filter((e=>"extension"===e.type)),nodeExtensions:e.filter((e=>"node"===e.type)),markExtensions:e.filter((e=>"mark"===e.type))}}function TL(e){const t=[],{nodeExtensions:n,markExtensions:r}=AL(e),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach((e=>{const n=ML(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage});if(!n)return;n().forEach((e=>{e.types.forEach((n=>{Object.entries(e.attributes).forEach((([e,r])=>{t.push({type:n,name:e,attribute:{...i,...r}})}))}))}))})),o.forEach((e=>{const n={name:e.name,options:e.options,storage:e.storage},r=ML(e,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach((([n,r])=>{const o={...i,...r};"function"==typeof(null==o?void 0:o.default)&&(o.default=o.default()),(null==o?void 0:o.isRequired)&&void 0===(null==o?void 0:o.default)&&delete o.default,t.push({type:e.name,name:n,attribute:o})}))})),t}function _L(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function NL(...e){return e.filter((e=>!!e)).reduce(((e,t)=>{const n={...e};return Object.entries(t).forEach((([e,t])=>{if(n[e])if("class"===e){const r=t?t.split(" "):[],o=n[e]?n[e].split(" "):[],i=r.filter((e=>!o.includes(e)));n[e]=[...o,...i].join(" ")}else n[e]="style"===e?[n[e],t].join("; "):t;else n[e]=t})),n}),{})}function RL(e,t){return t.filter((e=>e.attribute.rendered)).map((t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]})).reduce(((e,t)=>NL(e,t)),{})}function IL(e){return"function"==typeof e}function PL(e,t,...n){return IL(e)?t?e.bind(t)(...n):e(...n):e}function DL(e,t){return e.style?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;const o=t.reduce(((e,t)=>{const r=t.attribute.parseHTML?t.attribute.parseHTML(n):function(e){return"string"!=typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}(n.getAttribute(t.name));return null==r?e:{...e,[t.name]:r}}),{});return{...r,...o}}}}function LL(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>("attrs"!==e||!function(e={}){return 0===Object.keys(e).length&&e.constructor===Object}(t))&&null!=t)))}function jL(e,t){return t.nodes[e]||t.marks[e]||null}function BL(e,t){return Array.isArray(t)?t.some((t=>("string"==typeof t?t:t.name)===e.name)):t}function VL(e){return"[object RegExp]"===Object.prototype.toString.call(e)}class zL{constructor(e){this.find=e.find,this.handler=e.handler}}function FL(e){var t;const{editor:n,from:r,to:o,text:i,rules:s,plugin:a}=e,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(null===(t=c.nodeBefore||c.nodeAfter)||void 0===t?void 0:t.marks.find((e=>e.type.spec.code))))return!1;let u=!1;const d=((e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,((e,t,o,i)=>{var s,a;const l=(null===(a=(s=e.type.spec).toText)||void 0===a?void 0:a.call(s,{node:e,pos:t,parent:o,index:i}))||e.textContent||"%leaf%";n+=l.slice(0,Math.max(0,r-t))})),n})(c)+i;return s.forEach((e=>{if(u)return;const t=((e,t)=>{if(VL(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith),r.push(n.replaceWith)),r})(d,e.find);if(!t)return;const s=l.state.tr,c=OL({state:l.state,transaction:s}),p={from:r-(t[0].length-i.length),to:o},{commands:f,chain:h,can:m}=new EL({editor:n,state:c});null!==e.handler({state:c,range:p,match:t,commands:f,chain:h,can:m})&&s.steps.length&&(s.setMeta(a,{transform:s,from:r,to:o,text:i}),l.dispatch(s),u=!0)})),u}function $L(e){const{editor:t,rules:n}=e,r=new VR({state:{init:()=>null,apply(e,t){const n=e.getMeta(r);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:(e,o,i,s)=>FL({editor:t,from:o,to:i,text:s,rules:n,plugin:r}),handleDOMEvents:{compositionend:e=>(setTimeout((()=>{const{$cursor:o}=e.state.selection;o&&FL({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})})),!1)},handleKeyDown(e,o){if("Enter"!==o.key)return!1;const{$cursor:i}=e.state.selection;return!!i&&FL({editor:t,from:i.pos,to:i.pos,text:"\n",rules:n,plugin:r})}},isInputRules:!0});return r}class HL{constructor(e){this.find=e.find,this.handler=e.handler}}function UL(e){const{editor:t,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:a}=e,{commands:l,chain:c,can:u}=new EL({editor:t,state:n}),d=[];n.doc.nodesBetween(r,o,((e,t)=>{if(!e.isTextblock||e.type.spec.code)return;const p=Math.max(r,t),f=Math.min(o,t+e.content.size);((e,t,n)=>{if(VL(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map((t=>{const n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith),n.push(t.replaceWith)),n})):[]})(e.textBetween(p-t,f-t,void 0,""),i.find,s).forEach((e=>{if(void 0===e.index)return;const t=p+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=i.handler({state:n,range:o,match:e,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(f)}))}));return d.every((e=>null!==e))}function WL(e){const{editor:t,rules:n}=e;let r=null,o=!1,i=!1,s="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,a="undefined"!=typeof DragEvent?new DragEvent("drop"):null;return n.map((e=>new VR({view(e){const t=t=>{var n;r=(null===(n=e.dom.parentElement)||void 0===n?void 0:n.contains(t.target))?e.dom.parentElement:null};return window.addEventListener("dragstart",t),{destroy(){window.removeEventListener("dragstart",t)}}},props:{handleDOMEvents:{drop:(e,t)=>(i=r===e.dom.parentElement,a=t,!1),paste:(e,t)=>{var n;const r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/html");return s=t,o=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(n,r,l)=>{const c=n[0],u="paste"===c.getMeta("uiEvent")&&!o,d="drop"===c.getMeta("uiEvent")&&!i;if(!u&&!d)return;const p=r.doc.content.findDiffStart(l.doc.content),f=r.doc.content.findDiffEnd(l.doc.content);if("number"!=typeof p||!f||p===f.b)return;const h=l.tr,m=OL({state:l,transaction:h});return UL({editor:t,state:m,from:Math.max(p-1,0),to:f.b-1,rule:e,pasteEvent:s,dropEvent:a})&&h.steps.length?(a="undefined"!=typeof DragEvent?new DragEvent("drop"):null,s="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,h):void 0}})))}class qL{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=qL.resolve(e),this.schema=function(e,t){var n;const r=TL(e),{nodeExtensions:o,markExtensions:i}=AL(e),s=null===(n=o.find((e=>ML(e,"topNode"))))||void 0===n?void 0:n.name,a=Object.fromEntries(o.map((n=>{const o=r.filter((e=>e.type===n.name)),i={name:n.name,options:n.options,storage:n.storage,editor:t},s=LL({...e.reduce(((e,t)=>{const r=ML(t,"extendNodeSchema",i);return{...e,...r?r(n):{}}}),{}),content:PL(ML(n,"content",i)),marks:PL(ML(n,"marks",i)),group:PL(ML(n,"group",i)),inline:PL(ML(n,"inline",i)),atom:PL(ML(n,"atom",i)),selectable:PL(ML(n,"selectable",i)),draggable:PL(ML(n,"draggable",i)),code:PL(ML(n,"code",i)),defining:PL(ML(n,"defining",i)),isolating:PL(ML(n,"isolating",i)),attrs:Object.fromEntries(o.map((e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))}),a=PL(ML(n,"parseHTML",i));a&&(s.parseDOM=a.map((e=>DL(e,o))));const l=ML(n,"renderHTML",i);l&&(s.toDOM=e=>l({node:e,HTMLAttributes:RL(e,o)}));const c=ML(n,"renderText",i);return c&&(s.toText=c),[n.name,s]}))),l=Object.fromEntries(i.map((n=>{const o=r.filter((e=>e.type===n.name)),i={name:n.name,options:n.options,storage:n.storage,editor:t},s=LL({...e.reduce(((e,t)=>{const r=ML(t,"extendMarkSchema",i);return{...e,...r?r(n):{}}}),{}),inclusive:PL(ML(n,"inclusive",i)),excludes:PL(ML(n,"excludes",i)),group:PL(ML(n,"group",i)),spanning:PL(ML(n,"spanning",i)),code:PL(ML(n,"code",i)),attrs:Object.fromEntries(o.map((e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))}),a=PL(ML(n,"parseHTML",i));a&&(s.parseDOM=a.map((e=>DL(e,o))));const l=ML(n,"renderHTML",i);return l&&(s.toDOM=e=>l({mark:e,HTMLAttributes:RL(e,o)})),[n.name,s]})));return new bN({topNode:s,nodes:a,marks:l})}(this.extensions,t),this.extensions.forEach((e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:jL(e.name,this.schema)};if("mark"===e.type){(null===(t=PL(ML(e,"keepOnSplit",n)))||void 0===t||t)&&this.splittableMarks.push(e.name)}const r=ML(e,"onBeforeCreate",n);r&&this.editor.on("beforeCreate",r);const o=ML(e,"onCreate",n);o&&this.editor.on("create",o);const i=ML(e,"onUpdate",n);i&&this.editor.on("update",i);const s=ML(e,"onSelectionUpdate",n);s&&this.editor.on("selectionUpdate",s);const a=ML(e,"onTransaction",n);a&&this.editor.on("transaction",a);const l=ML(e,"onFocus",n);l&&this.editor.on("focus",l);const c=ML(e,"onBlur",n);c&&this.editor.on("blur",c);const u=ML(e,"onDestroy",n);u&&this.editor.on("destroy",u)}))}static resolve(e){const t=qL.sort(qL.flatten(e));return function(e){const t=e.filter(((t,n)=>e.indexOf(t)!==n));return[...new Set(t)]}(t.map((e=>e.name))).length,t}static flatten(e){return e.map((e=>{const t=ML(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return t?[e,...this.flatten(t())]:e})).flat(10)}static sort(e){return e.sort(((e,t)=>{const n=ML(e,"priority")||100,r=ML(t,"priority")||100;return n>r?-1:n<r?1:0}))}get commands(){return this.extensions.reduce(((e,t)=>{const n=ML(t,"addCommands",{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:jL(t.name,this.schema)});return n?{...e,...n()}:e}),{})}get plugins(){const{editor:e}=this,t=qL.sort([...this.extensions].reverse()),n=[],r=[],o=t.map((t=>{const o={name:t.name,options:t.options,storage:t.storage,editor:e,type:jL(t.name,this.schema)},i=[],s=ML(t,"addKeyboardShortcuts",o);let a={};if("mark"===t.type&&t.config.exitable&&(a.ArrowRight=()=>Vj.handleExit({editor:e,mark:t})),s){const t=Object.fromEntries(Object.entries(s()).map((([t,n])=>[t,()=>n({editor:e})])));a={...a,...t}}const l=new VR({props:{handleKeyDown:cL(a)}});i.push(l);const c=ML(t,"addInputRules",o);BL(t,e.options.enableInputRules)&&c&&n.push(...c());const u=ML(t,"addPasteRules",o);BL(t,e.options.enablePasteRules)&&u&&r.push(...u());const d=ML(t,"addProseMirrorPlugins",o);if(d){const e=d();i.push(...e)}return i})).flat();return[$L({editor:e,rules:n}),...WL({editor:e,rules:r}),...o]}get attributes(){return TL(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=AL(this.extensions);return Object.fromEntries(t.filter((e=>!!ML(e,"addNodeView"))).map((t=>{const n=this.attributes.filter((e=>e.type===t.name)),r={name:t.name,options:t.options,storage:t.storage,editor:e,type:_L(t.name,this.schema)},o=ML(t,"addNodeView",r);if(!o)return[];return[t.name,(r,i,s,a)=>{const l=RL(r,n);return o()({editor:e,node:r,getPos:s,decorations:a,HTMLAttributes:l,extension:t})}]})))}}function KL(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function JL(e,t){const n={...e};return KL(e)&&KL(t)&&Object.keys(t).forEach((r=>{KL(t[r])?r in e?n[r]=JL(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})})),n}class GL{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=PL(ML(this,"addOptions",{name:this.name}))),this.storage=PL(ML(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new GL(e)}configure(e={}){const t=this.extend();return t.options=JL(this.options,e),t.storage=PL(ML(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new GL({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions,t.options=PL(ML(t,"addOptions",{name:t.name})),t.storage=PL(ML(t,"addStorage",{name:t.name,options:t.options})),t}}function YL(e,t,n){const{from:r,to:o}=t,{blockSeparator:i="\n\n",textSerializers:s={}}=n||{};let a="",l=!0;return e.nodesBetween(r,o,((e,n,c,u)=>{var d;const p=null==s?void 0:s[e.type.name];p?(e.isBlock&&!l&&(a+=i,l=!0),c&&(a+=p({node:e,pos:n,parent:c,index:u,range:t}))):e.isText?(a+=null===(d=null==e?void 0:e.text)||void 0===d?void 0:d.slice(Math.max(r,n)-n,o-n),l=!1):e.isBlock&&!l&&(a+=i,l=!0)})),a}function XL(e){return Object.fromEntries(Object.entries(e.nodes).filter((([,e])=>e.spec.toText)).map((([e,t])=>[e,t.spec.toText])))}const ZL=GL.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new VR({key:new $R("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:i}=o;return YL(r,{from:Math.min(...i.map((e=>e.$from.pos))),to:Math.max(...i.map((e=>e.$to.pos)))},{textSerializers:XL(n)})}}})]}});function QL(e,t,n={strict:!0}){const r=Object.keys(t);return!r.length||r.every((r=>n.strict?t[r]===e[r]:VL(t[r])?t[r].test(e[r]):t[r]===e[r]))}function ej(e,t,n={}){return e.find((e=>e.type===t&&QL(e.attrs,n)))}function tj(e,t,n={}){return!!ej(e,t,n)}function nj(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(e.parentOffset===r.offset&&0!==r.offset&&(r=e.parent.childBefore(e.parentOffset)),!r.node)return;const o=ej([...r.node.marks],t,n);if(!o)return;let i=r.index,s=e.start()+r.offset,a=i+1,l=s+r.node.nodeSize;for(ej([...r.node.marks],t,n);i>0&&o.isInSet(e.parent.child(i-1).marks);)i-=1,s-=e.parent.child(i).nodeSize;for(;a<e.parent.childCount&&tj([...e.parent.child(a).marks],t,n);)l+=e.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function rj(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}function oj(e){return e instanceof OR}function ij(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function sj(e,t=null){if(!t)return null;const n=wR.atStart(e),r=wR.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;const o=n.from,i=r.to;return"all"===t?OR.create(e,ij(0,o,i),ij(e.content.size,o,i)):OR.create(e,ij(t,o,i),ij(t,o,i))}function aj(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const lj=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):1===r.nodeType&&lj(r)}return e};function cj(e){const t=`<body>${e}</body>`,n=(new window.DOMParser).parseFromString(t,"text/html").body;return lj(n)}function uj(e,t,n){if(n={slice:!0,parseOptions:{},...n},"object"==typeof e&&null!==e)try{return Array.isArray(e)&&e.length>0?N_.fromArray(e.map((e=>t.nodeFromJSON(e)))):t.nodeFromJSON(e)}catch(r){return uj("",t,n)}if("string"==typeof e){const r=xN.fromSchema(t);return n.slice?r.parseSlice(cj(e),n.parseOptions).content:r.parse(cj(e),n.parseOptions)}return uj("",t,n)}function dj(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function pj(e,t,n={}){const{from:r,to:o,empty:i}=e.selection,s=t?_L(t,e.schema):null,a=[];e.doc.nodesBetween(r,o,((e,t)=>{if(e.isText)return;const n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);a.push({node:e,from:n,to:i})}));const l=o-r,c=a.filter((e=>!s||s.name===e.node.type.name)).filter((e=>QL(e.node.attrs,n,{strict:!1})));if(i)return!!c.length;return c.reduce(((e,t)=>e+t.to-t.from),0)>=l}function fj(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function hj(e,t){const n="string"==typeof t?[t]:t;return Object.keys(e).reduce(((t,r)=>(n.includes(r)||(t[r]=e[r]),t)),{})}function mj(e,t,n={}){return uj(e,t,{slice:!1,parseOptions:n})}function gj(e,t){const n=rj(t,e.schema),{from:r,to:o,empty:i}=e.selection,s=[];i?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,(e=>{s.push(...e.marks)}));const a=s.find((e=>e.type.name===n.name));return a?{...a.attrs}:{}}function vj(e){return t=>function(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}(t.$from,e)}function yj(e,t){const n=fj("string"==typeof t?t:t.name,e.schema);return"node"===n?function(e,t){const n=_L(t,e.schema),{from:r,to:o}=e.selection,i=[];e.doc.nodesBetween(r,o,(e=>{i.push(e)}));const s=i.reverse().find((e=>e.type.name===n.name));return s?{...s.attrs}:{}}(e,t):"mark"===n?gj(e,t):{}}function bj(e){const t=function(e,t=JSON.stringify){const n={};return e.filter((e=>{const r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)}))}(e);return 1===t.length?t:t.filter(((e,n)=>{const r=t.filter(((e,t)=>t!==n));return!r.some((t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}))}function wj(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach((t=>{const o=nj(n.resolve(e-1),t.type);o&&r.push({mark:t,...o})})):n.nodesBetween(e,t,((e,t)=>{e&&void 0!==(null==e?void 0:e.nodeSize)&&r.push(...e.marks.map((n=>({from:t,to:t+e.nodeSize,mark:n}))))})),r}function xj(e,t,n){return Object.fromEntries(Object.entries(n).filter((([n])=>{const r=e.find((e=>e.type===t&&e.name===n));return!!r&&r.attribute.keepOnSplit})))}function Sj(e,t,n={}){const{empty:r,ranges:o}=e.selection,i=t?rj(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter((e=>!i||i.name===e.type.name)).find((e=>QL(e.attrs,n,{strict:!1})));let s=0;const a=[];if(o.forEach((({$from:t,$to:n})=>{const r=t.pos,o=n.pos;e.doc.nodesBetween(r,o,((e,t)=>{if(!e.isText&&!e.marks.length)return;const n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);s+=i-n,a.push(...e.marks.map((e=>({mark:e,from:n,to:i}))))}))})),0===s)return!1;const l=a.filter((e=>!i||i.name===e.mark.type.name)).filter((e=>QL(e.mark.attrs,n,{strict:!1}))).reduce(((e,t)=>e+t.to-t.from),0),c=a.filter((e=>!i||e.mark.type!==i&&e.mark.type.excludes(i))).reduce(((e,t)=>e+t.to-t.from),0);return(l>0?l+c:l)>=s}function kj(e,t){const{nodeExtensions:n}=AL(t),r=n.find((t=>t.name===e));if(!r)return!1;const o=PL(ML(r,"group",{name:r.name,options:r.options,storage:r.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function Oj(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter((e=>null==t?void 0:t.includes(e.type.name)));e.tr.ensureMarks(r)}}const Ej=(e,t)=>{const n=vj((e=>e.type===t))(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!tR(e.doc,n.pos)||(e.join(n.pos),!0)},Cj=(e,t)=>{const n=vj((e=>e.type===t))(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!tR(e.doc,r)||(e.join(r),!0)};var Mj=Object.freeze({__proto__:null,blur:()=>({editor:e,view:t})=>(requestAnimationFrame((()=>{var n;e.isDestroyed||(t.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())})),!0),clearContent:(e=!1)=>({commands:t})=>t.setContent("",e),clearNodes:()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:o}=r;return!n||(o.forEach((({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,((e,n)=>{if(e.type.isText)return;const{doc:r,mapping:o}=t,i=r.resolve(o.map(n)),s=r.resolve(o.map(n+e.nodeSize)),a=i.blockRange(s);if(!a)return;const l=XN(a);if(e.type.isTextblock){const{defaultType:e}=i.parent.contentMatchAt(i.index());t.setNodeMarkup(a.start,e)}(l||0===l)&&t.lift(a,l)}))})),!0)},command:e=>t=>e(t),createParagraphNear:()=>({state:e,dispatch:t})=>((e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof AR||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=gL(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let n=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,s=e.tr.insert(n,i.createAndFill());s.setSelection(OR.create(s.doc,n+1)),t(s.scrollIntoView())}return!0})(e,t),cut:(e,t)=>({editor:n,tr:r})=>{const{state:o}=n,i=o.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const s=r.mapping.map(t);return r.insert(s,i.content),r.setSelection(new OR(r.doc.resolve(s-1))),!0},deleteCurrentNode:()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const o=e.selection.$anchor;for(let i=o.depth;i>0;i-=1){if(o.node(i).type===r.type){if(t){const t=o.before(i),n=o.after(i);e.delete(t,n).scrollIntoView()}return!0}}return!1},deleteNode:e=>({tr:t,state:n,dispatch:r})=>{const o=_L(e,n.schema),i=t.selection.$anchor;for(let e=i.depth;e>0;e-=1){if(i.node(e).type===o){if(r){const n=i.before(e),r=i.after(e);t.delete(n,r).scrollIntoView()}return!0}}return!1},deleteRange:e=>({tr:t,dispatch:n})=>{const{from:r,to:o}=e;return n&&t.delete(r,o),!0},deleteSelection:()=>({state:e,dispatch:t})=>((e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0))(e,t),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),exitCode:()=>({state:e,dispatch:t})=>((e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),s=gL(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(t){let r=n.after(),o=e.tr.replaceWith(r,r,s.createAndFill());o.setSelection(wR.near(o.doc.resolve(r),1)),t(o.scrollIntoView())}return!0})(e,t),extendMarkRange:(e,t={})=>({tr:n,state:r,dispatch:o})=>{const i=rj(e,r.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(o){const e=nj(l,i,t);if(e&&e.from<=c&&e.to>=u){const t=OR.create(s,e.from,e.to);n.setSelection(t)}}return!0},first:e=>t=>{const n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1},focus:(e=null,t={})=>({editor:n,view:r,tr:o,dispatch:i})=>{t={scrollIntoView:!0,...t};const s=()=>{aj()&&r.dom.focus(),requestAnimationFrame((()=>{n.isDestroyed||(r.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())}))};if(r.hasFocus()&&null===e||!1===e)return!0;if(i&&null===e&&!oj(n.state.selection))return s(),!0;const a=sj(o.doc,e)||n.state.selection,l=n.state.selection.eq(a);return i&&(l||o.setSelection(a),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},forEach:(e,t)=>n=>e.every(((e,r)=>t(e,{...n,index:r}))),insertContent:(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),insertContentAt:(e,t,n)=>({tr:r,dispatch:o,editor:i})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const o=uj(t,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if("<>"===o.toString())return!0;let{from:s,to:a}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},l=!0,c=!0;if((o.toString().startsWith("<")?o:[o]).forEach((e=>{e.check(),l=!!l&&(e.isText&&0===e.marks.length),c=!!c&&e.isBlock})),s===a&&c){const{parent:e}=r.doc.resolve(s);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(s-=1,a+=1)}l?Array.isArray(t)?r.insertText(t.map((e=>e.text||"")).join(""),s,a):"object"==typeof t&&t&&t.text?r.insertText(t.text,s,a):r.insertText(t,s,a):r.replaceWith(s,a,o),n.updateSelection&&function(e,t,n){const r=e.steps.length-1;if(r<t)return;const o=e.steps[r];if(!(o instanceof KN||o instanceof JN))return;const i=e.mapping.maps[r];let s=0;i.forEach(((e,t,n,r)=>{0===s&&(s=r)})),e.setSelection(wR.near(e.doc.resolve(s),n))}(r,r.steps.length-1,-1)}return!0},joinUp:()=>({state:e,dispatch:t})=>((e,t)=>{let n,r=e.selection,o=r instanceof CR;if(o){if(r.node.isTextblock||!tR(e.doc,r.from))return!1;n=r.from}else if(n=rR(e.doc,r.from,-1),null==n)return!1;if(t){let r=e.tr.join(n);o&&r.setSelection(CR.create(r.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0})(e,t),joinDown:()=>({state:e,dispatch:t})=>((e,t)=>{let n,r=e.selection;if(r instanceof CR){if(r.node.isTextblock||!tR(e.doc,r.to))return!1;n=r.to}else if(n=rR(e.doc,r.to,1),null==n)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0})(e,t),joinBackward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=uL(e,n);if(!r)return!1;let o=fL(r);if(!o){let n=r.blockRange(),o=n&&XN(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&vL(e,o,t))return!0;if(0==r.parent.content.size&&(pL(i,"end")||CR.isSelectable(i))){let n=iR(e.doc,r.before(),r.after(),j_.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(pL(i,"end")?wR.findFrom(r.doc.resolve(r.mapping.map(o.pos,-1)),-1):CR.create(r.doc,o.pos-i.nodeSize)),t(r.scrollIntoView())}return!0}}return!(!i.isAtom||o.depth!=r.depth-1||(t&&t(e.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),0))})(e,t),joinForward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=hL(e,n);if(!r)return!1;let o=mL(r);if(!o)return!1;let i=o.nodeAfter;if(vL(e,o,t))return!0;if(0==r.parent.content.size&&(pL(i,"start")||CR.isSelectable(i))){let n=iR(e.doc,r.before(),r.after(),j_.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(pL(i,"start")?wR.findFrom(r.doc.resolve(r.mapping.map(o.pos)),1):CR.create(r.doc,r.mapping.map(o.pos))),t(r.scrollIntoView())}return!0}}return!(!i.isAtom||o.depth!=r.depth-1||(t&&t(e.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),0))})(e,t),joinItemBackward:()=>({tr:e,state:t,dispatch:n})=>{try{const r=rR(t.doc,t.selection.$from.pos,-1);return null!=r&&(e.join(r,2),n&&n(e),!0)}catch{return!1}},joinItemForward:()=>({state:e,dispatch:t,tr:n})=>{try{const r=rR(e.doc,e.selection.$from.pos,1);return null!=r&&(n.join(r,2),t&&t(n),!0)}catch(pF){return!1}},joinTextblockBackward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=uL(e,n);if(!r)return!1;let o=fL(r);return!!o&&dL(e,o,t)})(e,t),joinTextblockForward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=hL(e,n);if(!r)return!1;let o=mL(r);return!!o&&dL(e,o,t)})(e,t),keyboardShortcut:e=>({editor:t,view:n,tr:r,dispatch:o})=>{const i=function(e){const t=e.split(/-(?!$)/);let n,r,o,i,s=t[t.length-1];"Space"===s&&(s=" ");for(let a=0;a<t.length-1;a+=1){const e=t[a];if(/^(cmd|meta|m)$/i.test(e))i=!0;else if(/^a(lt)?$/i.test(e))n=!0;else if(/^(c|ctrl|control)$/i.test(e))r=!0;else if(/^s(hift)?$/i.test(e))o=!0;else{if(!/^mod$/i.test(e))throw new Error(`Unrecognized modifier name: ${e}`);aj()||dj()?i=!0:r=!0}}return n&&(s=`Alt-${s}`),r&&(s=`Ctrl-${s}`),i&&(s=`Meta-${s}`),o&&(s=`Shift-${s}`),s}(e).split(/-(?!$)/),s=i.find((e=>!["Alt","Ctrl","Meta","Shift"].includes(e))),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction((()=>{n.someProp("handleKeyDown",(e=>e(n,a)))}));return null==l||l.steps.forEach((e=>{const t=e.map(r.mapping);t&&o&&r.maybeStep(t)})),!0},lift:(e,t={})=>({state:n,dispatch:r})=>!!pj(n,_L(e,n.schema),t)&&((e,t)=>{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),i=o&&XN(o);return null!=i&&(t&&t(e.tr.lift(o,i).scrollIntoView()),!0)})(n,r),liftEmptyBlock:()=>({state:e,dispatch:t})=>((e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(eR(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&XN(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)})(e,t),liftListItem:e=>({state:t,dispatch:n})=>kL(_L(e,t.schema))(t,n),newlineInCode:()=>({state:e,dispatch:t})=>((e,t)=>{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r)||(t&&t(e.tr.insertText("\n").scrollIntoView()),0))})(e,t),resetAttributes:(e,t)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const a=fj("string"==typeof e?e:e.name,r.schema);return!!a&&("node"===a&&(i=_L(e,r.schema)),"mark"===a&&(s=rj(e,r.schema)),o&&n.selection.ranges.forEach((e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,((e,r)=>{i&&i===e.type&&n.setNodeMarkup(r,void 0,hj(e.attrs,t)),s&&e.marks.length&&e.marks.forEach((o=>{s===o.type&&n.addMark(r,r+e.nodeSize,s.create(hj(o.attrs,t)))}))}))})),!0)},scrollIntoView:()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),selectAll:()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),selectNodeBackward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;i=fL(r)}let s=i&&i.nodeBefore;return!(!s||!CR.isSelectable(s)||(t&&t(e.tr.setSelection(CR.create(e.doc,i.pos-s.nodeSize)).scrollIntoView()),0))})(e,t),selectNodeForward:()=>({state:e,dispatch:t})=>((e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;i=mL(r)}let s=i&&i.nodeAfter;return!(!s||!CR.isSelectable(s)||(t&&t(e.tr.setSelection(CR.create(e.doc,i.pos)).scrollIntoView()),0))})(e,t),selectParentNode:()=>({state:e,dispatch:t})=>((e,t)=>{let n,{$from:r,to:o}=e.selection,i=r.sharedDepth(o);return 0!=i&&(n=r.before(i),t&&t(e.tr.setSelection(CR.create(e.doc,n))),!0)})(e,t),selectTextblockEnd:()=>({state:e,dispatch:t})=>wL(e,t),selectTextblockStart:()=>({state:e,dispatch:t})=>bL(e,t),setContent:(e,t=!1,n={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,a=mj(e,o.schema,n);return i&&r.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!t),!0},setMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=rj(e,r.schema);if(o)if(s){const e=gj(r,l);n.addStoredMark(l.create({...e,...t}))}else a.forEach((e=>{const o=e.$from.pos,i=e.$to.pos;r.doc.nodesBetween(o,i,((e,r)=>{const s=Math.max(r,o),a=Math.min(r+e.nodeSize,i);e.marks.find((e=>e.type===l))?e.marks.forEach((e=>{l===e.type&&n.addMark(s,a,l.create({...e.attrs,...t}))})):n.addMark(s,a,l.create(t))}))}));return function(e,t,n){var r;const{selection:o}=t;let i=null;if(oj(o)&&(i=o.$cursor),i){const t=null!==(r=e.storedMarks)&&void 0!==r?r:i.marks();return!!n.isInSet(t)||!t.some((e=>e.type.excludes(n)))}const{ranges:s}=o;return s.some((({$from:t,$to:r})=>{let o=0===t.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,((e,t,r)=>{if(o)return!1;if(e.isInline){const t=!r||r.type.allowsMarkType(n),i=!!n.isInSet(e.marks)||!e.marks.some((e=>e.type.excludes(n)));o=t&&i}return!o})),o}))}(r,n,l)},setMeta:(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),setNode:(e,t={})=>({state:n,dispatch:r,chain:o})=>{const i=_L(e,n.schema);return!!i.isTextblock&&o().command((({commands:e})=>!!xL(i,t)(n)||e.clearNodes())).command((({state:e})=>xL(i,t)(e,r))).run()},setNodeSelection:e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,r=ij(e,0,n.content.size),o=CR.create(n,r);t.setSelection(o)}return!0},setTextSelection:e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,{from:r,to:o}="number"==typeof e?{from:e,to:e}:e,i=OR.atStart(n).from,s=OR.atEnd(n).to,a=ij(r,i,s),l=ij(o,i,s),c=OR.create(n,a,l);t.setSelection(c)}return!0},sinkListItem:e=>({state:t,dispatch:n})=>{const r=_L(e,t.schema);return(o=r,function(e,t){let{$from:n,$to:r}=e.selection,i=n.blockRange(r,(e=>e.childCount>0&&e.firstChild.type==o));if(!i)return!1;let s=i.startIndex;if(0==s)return!1;let a=i.parent,l=a.child(s-1);if(l.type!=o)return!1;if(t){let n=l.lastChild&&l.lastChild.type==a.type,r=N_.from(n?o.create():null),s=new j_(N_.from(o.create(null,N_.from(a.type.create(null,r)))),n?3:1,0),c=i.start,u=i.end;t(e.tr.step(new JN(c-(n?3:1),u,c,u,s,1,!0)).scrollIntoView())}return!0})(t,n);var o},splitBlock:({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=t,{$from:a,$to:l}=i,c=xj(o.extensionManager.attributes,a.node().type.name,a.node().attrs);if(i instanceof CR&&i.node.isBlock)return!(!a.parentOffset||!eR(s,a.pos))&&(r&&(e&&Oj(n,o.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(r){const r=l.parentOffset===l.parent.content.size;i instanceof OR&&t.deleteSelection();const s=0===a.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(a.node(-1).contentMatchAt(a.indexAfter(-1)));let u=r&&s?[{type:s,attrs:c}]:void 0,d=eR(t.doc,t.mapping.map(a.pos),1,u);if(u||d||!eR(t.doc,t.mapping.map(a.pos),1,s?[{type:s}]:void 0)||(d=!0,u=s?[{type:s,attrs:c}]:void 0),d&&(t.split(t.mapping.map(a.pos),1,u),s&&!r&&!a.parentOffset&&a.parent.type!==s)){const e=t.mapping.map(a.before()),n=t.doc.resolve(e);a.node(-1).canReplaceWith(n.index(),n.index()+1,s)&&t.setNodeMarkup(t.mapping.map(a.before()),s)}e&&Oj(n,o.extensionManager.splittableMarks),t.scrollIntoView()}return!0},splitListItem:e=>({tr:t,state:n,dispatch:r,editor:o})=>{var i;const s=_L(e,n.schema),{$from:a,$to:l}=n.selection,c=n.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;const u=a.node(-1);if(u.type!==s)return!1;const d=o.extensionManager.attributes;if(0===a.parent.content.size&&a.node(-1).childCount===a.indexAfter(-1)){if(2===a.depth||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(r){let e=N_.empty;const n=a.index(-1)?1:a.index(-2)?2:3;for(let t=a.depth-n;t>=a.depth-3;t-=1)e=N_.from(a.node(t).copy(e));const r=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,o=xj(d,a.node().type.name,a.node().attrs),l=(null===(i=s.contentMatch.defaultType)||void 0===i?void 0:i.createAndFill(o))||void 0;e=e.append(N_.from(s.createAndFill(null,l)||void 0));const c=a.before(a.depth-(n-1));t.replace(c,a.after(-r),new j_(e,4-n,0));let u=-1;t.doc.nodesBetween(c,t.doc.content.size,((e,t)=>{if(u>-1)return!1;e.isTextblock&&0===e.content.size&&(u=t+1)})),u>-1&&t.setSelection(OR.near(t.doc.resolve(u))),t.scrollIntoView()}return!0}const p=l.pos===a.end()?u.contentMatchAt(0).defaultType:null,f=xj(d,u.type.name,u.attrs),h=xj(d,a.node().type.name,a.node().attrs);t.delete(a.pos,l.pos);const m=p?[{type:s,attrs:f},{type:p,attrs:h}]:[{type:s,attrs:f}];if(!eR(t.doc,a.pos,2))return!1;if(r){const{selection:e,storedMarks:i}=n,{splittableMarks:s}=o.extensionManager,l=i||e.$to.parentOffset&&e.$from.marks();if(t.split(a.pos,2,m).scrollIntoView(),!l||!r)return!0;const c=l.filter((e=>s.includes(e.type.name)));t.ensureMarks(c)}return!0},toggleList:(e,t,n,r={})=>({editor:o,tr:i,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:p}=o.extensionManager,f=_L(e,s.schema),h=_L(t,s.schema),{selection:m,storedMarks:g}=s,{$from:v,$to:y}=m,b=v.blockRange(y),w=g||m.$to.parentOffset&&m.$from.marks();if(!b)return!1;const x=vj((e=>kj(e.type.name,d)))(m);if(b.depth>=1&&x&&b.depth-x.depth<=1){if(x.node.type===f)return c.liftListItem(h);if(kj(x.node.type.name,d)&&f.validContent(x.node.content)&&a)return l().command((()=>(i.setNodeMarkup(x.pos,f),!0))).command((()=>Ej(i,f))).command((()=>Cj(i,f))).run()}return n&&w&&a?l().command((()=>{const e=u().wrapInList(f,r),t=w.filter((e=>p.includes(e.type.name)));return i.ensureMarks(t),!!e||c.clearNodes()})).wrapInList(f,r).command((()=>Ej(i,f))).command((()=>Cj(i,f))).run():l().command((()=>!!u().wrapInList(f,r)||c.clearNodes())).wrapInList(f,r).command((()=>Ej(i,f))).command((()=>Cj(i,f))).run()},toggleMark:(e,t={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=rj(e,r.schema);return Sj(r,s,t)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,t)},toggleNode:(e,t,n={})=>({state:r,commands:o})=>{const i=_L(e,r.schema),s=_L(t,r.schema);return pj(r,i,n)?o.setNode(s):o.setNode(i,n)},toggleWrap:(e,t={})=>({state:n,commands:r})=>{const o=_L(e,n.schema);return pj(n,o,t)?r.lift(o):r.wrapIn(o,t)},undoInputRule:()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(e))){if(t){const t=e.tr,n=i.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(i.text){const n=t.doc.resolve(i.from).marks();t.replaceWith(i.from,i.to,e.schema.text(i.text,n))}else t.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:o}=n;return r||t&&o.forEach((t=>{e.removeMark(t.$from.pos,t.$to.pos)})),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=t,{selection:a}=n,l=rj(e,r.schema),{$from:c,empty:u,ranges:d}=a;if(!o)return!0;if(u&&s){let{from:e,to:t}=a;const r=null===(i=c.marks().find((e=>e.type===l)))||void 0===i?void 0:i.attrs,o=nj(c,l,r);o&&(e=o.from,t=o.to),n.removeMark(e,t,l)}else d.forEach((e=>{n.removeMark(e.$from.pos,e.$to.pos,l)}));return n.removeStoredMark(l),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const a=fj("string"==typeof e?e:e.name,r.schema);return!!a&&("node"===a&&(i=_L(e,r.schema)),"mark"===a&&(s=rj(e,r.schema)),o&&n.selection.ranges.forEach((e=>{const o=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(o,a,((e,r)=>{i&&i===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),s&&e.marks.length&&e.marks.forEach((i=>{if(s===i.type){const l=Math.max(r,o),c=Math.min(r+e.nodeSize,a);n.addMark(l,c,s.create({...i.attrs,...t}))}}))}))})),!0)},wrapIn:(e,t={})=>({state:n,dispatch:r})=>function(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),a=s&&ZN(s,e,t);return!!a&&(r&&r(n.tr.wrap(s,a).scrollIntoView()),!0)}}(_L(e,n.schema),t)(n,r),wrapInList:(e,t={})=>({state:n,dispatch:r})=>SL(_L(e,n.schema),t)(n,r)});const Aj=GL.create({name:"commands",addCommands:()=>({...Mj})}),Tj=GL.create({name:"editable",addProseMirrorPlugins(){return[new VR({key:new $R("editable"),props:{editable:()=>this.editor.options.editable}})]}}),_j=GL.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new VR({key:new $R("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),Nj=GL.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first((({commands:e})=>[()=>e.undoInputRule(),()=>e.command((({tr:t})=>{const{selection:n,doc:r}=t,{empty:o,$anchor:i}=n,{pos:s,parent:a}=i,l=i.parent.isTextblock?t.doc.resolve(s-1):i,c=l.parent.type.spec.isolating,u=i.pos-i.parentOffset,d=c&&1===l.parent.childCount?u===i.pos:wR.atStart(r).from===s;return!(!(o&&d&&a.type.isTextblock)||a.textContent.length)&&e.clearNodes()})),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()])),t=()=>this.editor.commands.first((({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()])),n={Enter:()=>this.editor.commands.first((({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()])),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},o={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return aj()||dj()?o:r},addProseMirrorPlugins(){return[new VR({key:new $R("clearDocument"),appendTransaction:(e,t,n)=>{if(!(e.some((e=>e.docChanged))&&!t.doc.eq(n.doc)))return;const{empty:r,from:o,to:i}=t.selection,s=wR.atStart(t.doc).from,a=wR.atEnd(t.doc).to;if(r||!(o===s&&i===a))return;if(!(0===n.doc.textBetween(0,n.doc.content.size," "," ").length))return;const l=n.tr,c=OL({state:n,transaction:l}),{commands:u}=new EL({editor:this.editor,state:c});return u.clearNodes(),l.steps.length?l:void 0}})]}}),Rj=GL.create({name:"tabindex",addProseMirrorPlugins(){return[new VR({key:new $R("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Ij=Object.freeze({__proto__:null,ClipboardTextSerializer:ZL,Commands:Aj,Editable:Tj,FocusEvents:_j,Keymap:Nj,Tabindex:Rj});class Pj{constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return null!==(e=this.actualDepth)&&void 0!==e?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(0===this.content.size)return;t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(0===this.depth)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new Pj(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Pj(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Pj(e,this.editor)}get children(){const e=[];return this.node.content.forEach(((t,n)=>{const r=t.isBlock&&!t.isTextblock,o=this.pos+n+(r?0:1),i=this.resolvedPos.doc.resolve(o);if(!r&&i.depth<=this.depth)return;const s=new Pj(i,this.editor,r,r?t:null);r&&(s.actualDepth=this.depth+1),e.push(new Pj(i,this.editor,r,r?t:null))})),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(t).length>0){const e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];if(e[o]!==t[o])break}}else n=r;r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];return this.isBlock||!this.children||0===this.children.length||this.children.forEach((o=>{if(o.node.type.name===e){if(Object.keys(t).length>0){const e=o.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];if(e[o]!==t[o])return}}if(r.push(o),n)return}r=r.concat(o.querySelectorAll(e))})),r}setAttribute(e){const t=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(t.from).run()}}let Dj=class extends CL{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(e,t,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(null!==r)return r;const o=document.createElement("style");return t&&o.setAttribute("nonce",t),o.setAttribute("data-tiptap-style"+(n?`-${n}`:""),""),o.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(o),o}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=IL(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e){if(this.isDestroyed)return;const t="string"==typeof e?`${e}$`:e.key,n=this.state.reconfigure({plugins:this.state.plugins.filter((e=>!e.key.startsWith(t)))});this.view.updateState(n)}createExtensionManager(){const e=[...this.options.enableCoreExtensions?Object.values(Ij):[],...this.options.extensions].filter((e=>["extension","node","mark"].includes(null==e?void 0:e.type)));this.extensionManager=new qL(e,this)}createCommandManager(){this.commandManager=new EL({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=mj(this.options.content,this.schema,this.options.parseOptions),t=sj(e,this.options.autofocus);this.view=new JD(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:jR.create({doc:e,selection:t||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach((e=>{var t;return null===(t=this.capturedTransaction)||void 0===t?void 0:t.step(e)})):void(this.capturedTransaction=e);const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),o=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return yj(this.state,e)}isActive(e,t){const n="string"==typeof e?e:null,r="string"==typeof e?t:e;return function(e,t,n={}){if(!t)return pj(e,null,n)||Sj(e,null,n);const r=fj(t,e.schema);return"node"===r?pj(e,t,n):"mark"===r&&Sj(e,t,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return function(e,t){const n=NN.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return function(e,t){return YL(e,{from:0,to:e.content.size},t)}(this.state.doc,{blockSeparator:t,textSerializers:{...XL(this.schema),...n}})}get isEmpty(){return function(e){var t;const n=null===(t=e.type.createAndFill())||void 0===t?void 0:t.toJSON(),r=e.toJSON();return JSON.stringify(n)===JSON.stringify(r)}(this.state.doc)}getCharacterCount(){return this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(null===(e=this.view)||void 0===e?void 0:e.docView)}$node(e,t){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Pj(t,this)}get $doc(){return this.$pos(0)}};function Lj(e){return new zL({find:e.find,handler:({state:t,range:n,match:r})=>{const o=PL(e.getAttributes,void 0,r);if(!1===o||null===o)return null;const{tr:i}=t,s=r[r.length-1],a=r[0];if(s){const r=a.search(/\S/),l=n.from+a.indexOf(s),c=l+s.length;if(wj(n.from,n.to,t.doc).filter((t=>t.mark.type.excluded.find((n=>n===e.type&&n!==t.mark.type)))).filter((e=>e.to>l)).length)return null;c<n.to&&i.delete(c,n.to),l>n.from&&i.delete(n.from+r,l);const u=n.from+r+s.length;i.addMark(n.from+r,u,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function jj(e){return new zL({find:e.find,handler:({state:t,range:n,match:r})=>{const o=t.doc.resolve(n.from),i=PL(e.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,i)}})}function Bj(e){return new zL({find:e.find,handler:({state:t,range:n,match:r,chain:o})=>{const i=PL(e.getAttributes,void 0,r)||{},s=t.tr.delete(n.from,n.to),a=s.doc.resolve(n.from).blockRange(),l=a&&ZN(a,e.type,i);if(!l)return null;if(s.wrap(a,l),e.keepMarks&&e.editor){const{selection:n,storedMarks:r}=t,{splittableMarks:o}=e.editor.extensionManager,i=r||n.$to.parentOffset&&n.$from.marks();if(i){const e=i.filter((e=>o.includes(e.type.name)));s.ensureMarks(e)}}if(e.keepAttributes){const t="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";o().updateAttributes(t,i).run()}const c=s.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&tR(s.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&s.join(n.from-1)}})}class Vj{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=PL(ML(this,"addOptions",{name:this.name}))),this.storage=PL(ML(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Vj(e)}configure(e={}){const t=this.extend();return t.options=JL(this.options,e),t.storage=PL(ML(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Vj({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions,t.options=PL(ML(t,"addOptions",{name:t.name})),t.storage=PL(ML(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const o=r.marks();if(!!!o.find((e=>(null==e?void 0:e.type.name)===t.name)))return!1;const i=o.find((e=>(null==e?void 0:e.type.name)===t.name));return i&&n.removeStoredMark(i),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}class zj{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=PL(ML(this,"addOptions",{name:this.name}))),this.storage=PL(ML(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new zj(e)}configure(e={}){const t=this.extend();return t.options=JL(this.options,e),t.storage=PL(ML(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new zj({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions,t.options=PL(ML(t,"addOptions",{name:t.name})),t.storage=PL(ML(t,"addStorage",{name:t.name,options:t.options})),t}}function Fj(e){return new HL({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:o})=>{const i=PL(e.getAttributes,void 0,r,o);if(!1===i||null===i)return null;const{tr:s}=t,a=r[r.length-1],l=r[0];let c=n.to;if(a){const r=l.search(/\S/),o=n.from+l.indexOf(a),u=o+a.length;if(wj(n.from,n.to,t.doc).filter((t=>t.mark.type.excluded.find((n=>n===e.type&&n!==t.mark.type)))).filter((e=>e.to>o)).length)return null;u<n.to&&s.delete(u,n.to),o>n.from&&s.delete(n.from+r,o),c=n.from+r+a.length,s.addMark(n.from+r,c,e.type.create(i||{})),s.removeStoredMark(e.type)}}})}function $j(e){return Dt(((t,n)=>({get:()=>(t(),e),set(t){e=t,requestAnimationFrame((()=>{requestAnimationFrame((()=>{n()}))}))}})))}class Hj extends Dj{constructor(e={}){return super(e),this.vueRenderers=ut(new Map),this.contentComponent=null,this.reactiveState=$j(this.view.state),this.reactiveExtensionStorage=$j(this.extensionStorage),this.on("transaction",(()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage})),bt(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const Uj=ur({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=Mt(),n=Mi();return Fn((()=>{const r=e.editor;r&&r.options.element&&t.value&&en((()=>{if(!t.value||!r.options.element.firstChild)return;const e=Nt(t.value);t.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,r.setOptions({element:e}),r.createNodeViews()}))})),_r((()=>{const t=e.editor;if(!t)return;if(t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null,!t.options.element.firstChild)return;const n=document.createElement("div");n.append(...t.options.element.childNodes),t.setOptions({element:n})})),{rootEl:t}},render(){const e=[];return this.editor&&this.editor.vueRenderers.forEach((t=>{const n=Hi(Wo,{to:t.teleportElement,key:t.id},Hi(t.component,{ref:t.id,...t.props}));e.push(n)})),Hi("div",{ref:e=>{this.rootEl=e}},...e)}}),Wj=Vj.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),qj=/^\s*>\s$/,Kj=zj.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Bj({find:qj,type:this.type})]}}),Jj=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,Gj=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,Yj=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,Xj=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,Zj=Vj.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],renderHTML({HTMLAttributes:e}){return["strong",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Lj({find:Jj,type:this.type}),Lj({find:Yj,type:this.type})]},addPasteRules(){return[Fj({find:Gj,type:this.type}),Fj({find:Xj,type:this.type})]}}),Qj=zj.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",NL(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),eB=Vj.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=gj(e,this.type);return!!Object.entries(n).some((([,e])=>!!e))||t.unsetMark(this.name)}}}}),tB=/^\s*([-+*])\s$/,nB=zj.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Qj.name,this.editor.getAttributes(eB.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=Bj({find:tB,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=Bj({find:tB,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(eB.name),editor:this.editor})),[e]}}),rB=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,oB=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,iB=Vj.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Lj({find:rB,type:this.type})]},addPasteRules(){return[Fj({find:oB,type:this.type})]}}),sB=/^```([a-z]+)?[\s\n]$/,aB=/^~~~([a-z]+)?[\s\n]$/,lB=zj.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options,r=[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter((e=>e.startsWith(n))).map((e=>e.replace(n,"")))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",NL(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!(!e||t.parent.type.name!==this.name)&&(!(!n&&t.parent.textContent.length)&&this.editor.commands.clearNodes())},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;const i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith("\n\n");return!(!i||!s)&&e.chain().command((({tr:e})=>(e.delete(r.pos-2,r.pos),!0))).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type)return!1;if(!(o.parentOffset===o.parent.nodeSize-2))return!1;const s=o.after();if(void 0===s)return!1;return!r.nodeAt(s)&&e.commands.exitCode()}}},addInputRules(){return[jj({find:sB,type:this.type,getAttributes:e=>({language:e[1]})}),jj({find:aB,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new VR({key:new $R("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=null==o?void 0:o.mode;if(!n||!i)return!1;const{tr:s}=e.state;return s.replaceSelectionWith(this.type.create({language:i})),s.setSelection(OR.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}}),cB=zj.create({name:"doc",topNode:!0,content:"block+"});function uB(e={}){return new VR({view:t=>new dB(t,e)})}class dB{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map((t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}}))}destroy(){this.handlers.forEach((({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t)))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent;if(n){let n=t.nodeBefore,r=t.nodeAfter;if(n||r){let t=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0));if(t){let o=t.getBoundingClientRect(),i=n?o.bottom:o.top;n&&r&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:o.left,right:o.right,top:i-this.width/2,bottom:i+this.width/2}}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos);e={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let r,o,i=this.editorView.dom.offsetParent;if(this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!i||i==document.body&&"static"==getComputedStyle(i).position)r=-pageXOffset,o=-pageYOffset;else{let e=i.getBoundingClientRect();r=e.left-i.scrollLeft,o=e.top-i.scrollTop}this.element.style.left=e.left-r+"px",this.element.style.top=e.top-o+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,t,e):r;if(t&&!o){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=oR(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}const pB=GL.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[uB(this.options)]}});class fB extends wR{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return fB.valid(n)?new fB(n):wR.near(n)}content(){return j_.empty}eq(e){return e instanceof fB&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new fB(e.resolve(t.pos))}getBookmark(){return new hB(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0!=n)for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){e:for(;;){if(!n&&fB.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let s=e.doc.resolve(r);if(fB.valid(s))return s}for(;;){let i=t>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!CR.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue e}break}o=i,r+=t;let s=e.doc.resolve(r);if(fB.valid(s))return s}return null}}}fB.prototype.visible=!1,fB.findFrom=fB.findGapCursorFrom,wR.jsonID("gapcursor",fB);class hB{constructor(e){this.pos=e}map(e){return new hB(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return fB.valid(t)?new fB(t):wR.near(t)}}const mB=cL({ArrowLeft:gB("horiz",-1),ArrowRight:gB("horiz",1),ArrowUp:gB("vert",-1),ArrowDown:gB("vert",1)});function gB(e,t){const n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let i=e.selection,s=t>0?i.$to:i.$from,a=i.empty;if(i instanceof OR){if(!o.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}let l=fB.findGapCursorFrom(s,t,a);return!!l&&(r&&r(e.tr.setSelection(new fB(l))),!0)}}function vB(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!fB.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&CR.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new fB(r))),!0)}function yB(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof fB))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=N_.empty;for(let s=r.length-1;s>=0;s--)o=N_.from(r[s].createAndFill(null,o));let i=e.state.tr.replace(n.pos,n.pos,new j_(o,0,0));return i.setSelection(OR.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function bB(e){if(!(e.selection instanceof fB))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",ED.create(e.doc,[SD.widget(e.selection.head,t,{key:"gapcursor"})])}const wB=GL.create({name:"gapCursor",addProseMirrorPlugins:()=>[new VR({props:{decorations:bB,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&fB.valid(n)?new fB(n):null,handleClick:vB,handleKeyDown:mB,handleDOMEvents:{beforeinput:yB}}})],extendNodeSchema(e){var t;return{allowGapCursor:null!==(t=PL(ML(e,"allowGapCursor",{name:e.name,options:e.options,storage:e.storage})))&&void 0!==t?t:null}}}),xB=zj.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",NL(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command((()=>{const{selection:e,storedMarks:o}=n;if(e.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:s}=r.extensionManager,a=o||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command((({tr:e,dispatch:t})=>{if(t&&a&&i){const t=a.filter((e=>s.includes(e.type.name)));e.ensureMarks(t)}return!0})).run()}))])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),SB=zj.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((e=>({tag:`h${e}`,attrs:{level:e}})))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,NL(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce(((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})})),{})},addInputRules(){return this.options.levels.map((e=>jj({find:new RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}})))}});var kB=200,OB=function(){};OB.prototype.append=function(e){return e.length?(e=OB.from(e),!this.length&&e||e.length<kB&&this.leafAppend(e)||this.length<kB&&e.leafPrepend(this)||this.appendInner(e)):this},OB.prototype.prepend=function(e){return e.length?OB.from(e).append(this):this},OB.prototype.appendInner=function(e){return new CB(this,e)},OB.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?OB.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},OB.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},OB.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},OB.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(t,n){return r.push(e(t,n))}),t,n),r},OB.from=function(e){return e instanceof OB?e:e&&e.length?new EB(e):OB.empty};var EB=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var o=t;o<n;o++)if(!1===e(this.values[o],r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],r+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=kB)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=kB)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(OB);OB.empty=new EB([]);var CB=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var o=this.left.length;return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(OB);class MB{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}t&&(n=this.remapping(o,this.items.length),r=n.maps.length);let i,s,a=e.tr,l=[],c=[];return this.items.forEach(((e,t)=>{if(!e.step)return n||(n=this.remapping(o,t+1),r=n.maps.length),r--,void c.push(e);if(n){c.push(new AB(e.map));let t,o=e.step.map(n.slice(r));o&&a.maybeStep(o).doc&&(t=a.mapping.maps[a.mapping.maps.length-1],l.push(new AB(t,void 0,void 0,l.length+c.length))),r--,t&&n.appendMap(t,r)}else a.maybeStep(e.step);return e.selection?(i=n?e.selection.map(n.slice(r)):e.selection,s=new MB(this.items.slice(0,o).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:i}}addTransform(e,t,n,r){let o=[],i=this.eventCount,s=this.items,a=!r&&s.length?s.get(s.length-1):null;for(let c=0;c<e.steps.length;c++){let n,l=e.steps[c].invert(e.docs[c]),u=new AB(e.mapping.maps[c],l,t);(n=a&&a.merge(u))&&(u=n,c?o.pop():s=s.slice(0,s.length-1)),o.push(u),t&&(i++,t=void 0),r||(a=u)}let l=i-n.depth;return l>_B&&(s=function(e,t){let n;return e.forEach(((e,r)=>{if(e.selection&&0==t--)return n=r,!1})),e.slice(n)}(s,l),i-=l),new MB(s.append(o),i)}remapping(e,t){let n=new BN;return this.items.forEach(((t,r)=>{let o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,o)}),e,t),n}addMaps(e){return 0==this.eventCount?this:new MB(this.items.append(e.map((e=>new AB(e)))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,s=this.eventCount;this.items.forEach((e=>{e.selection&&s--}),r);let a=t;this.items.forEach((t=>{let r=o.getMirror(--a);if(null==r)return;i=Math.min(i,r);let l=o.maps[r];if(t.step){let i=e.steps[r].invert(e.docs[r]),c=t.selection&&t.selection.map(o.slice(a+1,r));c&&s++,n.push(new AB(l,i,c))}else n.push(new AB(l))}),r);let l=[];for(let d=t;d<i;d++)l.push(new AB(o.maps[d]));let c=this.items.slice(0,r).append(l).append(n),u=new MB(c,s);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach((t=>{t.step||e++})),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach(((i,s)=>{if(s>=e)r.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(n)),s=e&&e.getMap();if(n--,s&&t.appendMap(s,n),e){let a=i.selection&&i.selection.map(t.slice(n));a&&o++;let l,c=new AB(s.invert(),e,a),u=r.length-1;(l=r.length&&r[u].merge(c))?r[u]=l:r.push(c)}}else i.map&&n--}),this.items.length,0),new MB(OB.from(r.reverse()),o)}}MB.empty=new MB(OB.empty,0);class AB{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new AB(t.getMap().invert(),t,this.selection)}}}class TB{constructor(e,t,n,r,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=o}}const _B=20;function NB(e){let t=[];return e.forEach(((e,n,r,o)=>t.push(r,o))),t}function RB(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let o=t.map(e[r],1),i=t.map(e[r+1],-1);o<=i&&n.push(o,i)}return n}function IB(e,t,n,r){let o=LB(t),i=jB.get(t).spec.config,s=(r?e.undone:e.done).popEvent(t,o);if(!s)return;let a=s.selection.resolve(s.transform.doc),l=(r?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),i,o),c=new TB(r?l:s.remaining,r?s.remaining:l,null,0,-1);n(s.transform.setSelection(a).setMeta(jB,{redo:r,historyState:c}).scrollIntoView())}let PB=!1,DB=null;function LB(e){let t=e.plugins;if(DB!=t){PB=!1,DB=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){PB=!0;break}}return PB}const jB=new $R("history"),BB=new $R("closeHistory");function VB(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new VR({key:jB,state:{init:()=>new TB(MB.empty,MB.empty,null,0,-1),apply:(t,n,r)=>function(e,t,n,r){let o,i=n.getMeta(jB);if(i)return i.historyState;n.getMeta(BB)&&(e=new TB(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(jB))return s.getMeta(jB).redo?new TB(e.done.addTransform(n,void 0,r,LB(t)),e.undone,NB(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new TB(e.done,e.undone.addTransform(n,void 0,r,LB(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new TB(e.done.rebased(n,o),e.undone.rebased(n,o),RB(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new TB(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),RB(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let o=n.getMeta("composition"),i=0==e.prevTime||!s&&e.prevComposition!=o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach(((e,r)=>{for(let o=0;o<t.length;o+=2)e<=t[o+1]&&r>=t[o]&&(n=!0)})),n}(n,e.prevRanges)),a=s?RB(e.prevRanges,n.mapping):NB(n.mapping.maps[n.steps.length-1]);return new TB(e.done.addTransform(n,i?t.selection.getBookmark():void 0,r,LB(t)),MB.empty,a,n.time,null==o?e.prevComposition:o)}}(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?zB:"historyRedo"==n?FB:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}const zB=(e,t)=>{let n=jB.getState(e);return!(!n||0==n.done.eventCount)&&(t&&IB(n,e,t,!1),!0)},FB=(e,t)=>{let n=jB.getState(e);return!(!n||0==n.undone.eventCount)&&(t&&IB(n,e,t,!0),!0)},$B=GL.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>zB(e,t),redo:()=>({state:e,dispatch:t})=>FB(e,t)}),addProseMirrorPlugins(){return[VB(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),HB=zj.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",NL(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{const{$to:n}=t.selection,r=e();return 0===n.parentOffset?r.insertContentAt(Math.max(n.pos-2,0),{type:this.name}):r.insertContent({type:this.name}),r.command((({tr:e,dispatch:t})=>{var n;if(t){const{$to:t}=e.selection,r=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(OR.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(CR.create(e.doc,t.pos)):e.setSelection(OR.create(e.doc,t.pos));else{const o=null===(n=t.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();o&&(e.insert(r,o),e.setSelection(OR.create(e.doc,r+1)))}e.scrollIntoView()}return!0})).run()}}},addInputRules(){return[(e={find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type},new zL({find:e.find,handler:({state:t,range:n,match:r})=>{const o=PL(e.getAttributes,void 0,r)||{},{tr:i}=t,s=n.from;let a=n.to;const l=e.type.create(o);if(r[1]){let e=s+r[0].lastIndexOf(r[1]);e>a?e=a:a=e+r[1].length;const t=r[0][r[0].length-1];i.insertText(t,s+r[0].length-1),i.replaceWith(e,a,l)}else r[0]&&i.insert(s-1,e.type.create(o)).delete(i.mapping.map(s),i.mapping.map(a));i.scrollIntoView()}}))];var e}}),UB=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,WB=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,qB=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,KB=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,JB=Vj.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Lj({find:UB,type:this.type}),Lj({find:qB,type:this.type})]},addPasteRules(){return[Fj({find:WB,type:this.type}),Fj({find:KB,type:this.type})]}}),GB=zj.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",NL(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),YB=zj.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",NL(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),XB=Vj.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=gj(e,this.type);return!!Object.entries(n).some((([,e])=>!!e))||t.unsetMark(this.name)}}}}),ZB=/^(\d+)\.\s$/,QB=zj.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return 1===t?["ol",NL(this.options.HTMLAttributes,n),0]:["ol",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(YB.name,this.editor.getAttributes(XB.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=Bj({find:ZB,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=Bj({find:ZB,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(XB.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),eV=zj.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),tV=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,nV=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,rV=Vj.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){const e={};return dj()?e["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():e["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),e},addInputRules(){return[Lj({find:tV,type:this.type})]},addPasteRules(){return[Fj({find:nV,type:this.type})]}}),oV=zj.create({name:"text",group:"inline"}),iV=GL.create({name:"starterKit",addExtensions(){var e,t,n,r,o,i,s,a,l,c,u,d,p,f,h,m,g,v;const y=[];return!1!==this.options.blockquote&&y.push(Kj.configure(null===(e=this.options)||void 0===e?void 0:e.blockquote)),!1!==this.options.bold&&y.push(Zj.configure(null===(t=this.options)||void 0===t?void 0:t.bold)),!1!==this.options.bulletList&&y.push(nB.configure(null===(n=this.options)||void 0===n?void 0:n.bulletList)),!1!==this.options.code&&y.push(iB.configure(null===(r=this.options)||void 0===r?void 0:r.code)),!1!==this.options.codeBlock&&y.push(lB.configure(null===(o=this.options)||void 0===o?void 0:o.codeBlock)),!1!==this.options.document&&y.push(cB.configure(null===(i=this.options)||void 0===i?void 0:i.document)),!1!==this.options.dropcursor&&y.push(pB.configure(null===(s=this.options)||void 0===s?void 0:s.dropcursor)),!1!==this.options.gapcursor&&y.push(wB.configure(null===(a=this.options)||void 0===a?void 0:a.gapcursor)),!1!==this.options.hardBreak&&y.push(xB.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&y.push(SB.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&y.push($B.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&y.push(HB.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&y.push(JB.configure(null===(p=this.options)||void 0===p?void 0:p.italic)),!1!==this.options.listItem&&y.push(GB.configure(null===(f=this.options)||void 0===f?void 0:f.listItem)),!1!==this.options.orderedList&&y.push(QB.configure(null===(h=this.options)||void 0===h?void 0:h.orderedList)),!1!==this.options.paragraph&&y.push(eV.configure(null===(m=this.options)||void 0===m?void 0:m.paragraph)),!1!==this.options.strike&&y.push(rV.configure(null===(g=this.options)||void 0===g?void 0:g.strike)),!1!==this.options.text&&y.push(oV.configure(null===(v=this.options)||void 0===v?void 0:v.text)),y}}),sV=(e,t)=>{for(const n in t)e[n]=t[n];return e},aV="numeric",lV="ascii",cV="alpha",uV="asciinumeric",dV="alphanumeric",pV="domain",fV="emoji",hV="whitespace";function mV(e,t){return e in t||(t[e]=[]),t[e]}function gV(e,t,n){t[aV]&&(t[uV]=!0,t[dV]=!0),t[lV]&&(t[uV]=!0,t[cV]=!0),t[uV]&&(t[dV]=!0),t[cV]&&(t[dV]=!0),t[dV]&&(t[pV]=!0),t[fV]&&(t[pV]=!0);for(const r in t){const t=mV(r,n);t.indexOf(e)<0&&t.push(e)}}function vV(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}vV.groups={},vV.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;r<t.jr.length;r++){const n=t.jr[r][0],o=t.jr[r][1];if(o&&n.test(e))return o}return t.jd},has(e,t){return void 0===t&&(t=!1),t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let o=0;o<e.length;o++)this.tt(e[o],t,n,r)},tr(e,t,n,r){let o;return r=r||vV.groups,t&&t.j?o=t:(o=new vV(t),n&&r&&gV(t,n,r)),this.jr.push([e,o]),o},ts(e,t,n,r){let o=this;const i=e.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(e[s]);return o.tt(e[i-1],t,n,r)},tt(e,t,n,r){r=r||vV.groups;const o=this;if(t&&t.j)return o.j[e]=t,t;const i=t;let s,a=o.go(e);if(a?(s=new vV,sV(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new vV,i){if(r)if(s.t&&"string"==typeof s.t){const e=sV(function(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(s.t,r),n);gV(i,e,r)}else n&&gV(i,n,r);s.t=i}return o.j[e]=s,s}};const yV=(e,t,n,r,o)=>e.ta(t,n,r,o),bV=(e,t,n,r,o)=>e.tr(t,n,r,o),wV=(e,t,n,r,o)=>e.ts(t,n,r,o),xV=(e,t,n,r,o)=>e.tt(t,n,r,o),SV="WORD",kV="UWORD",OV="LOCALHOST",EV="TLD",CV="UTLD",MV="SCHEME",AV="SLASH_SCHEME",TV="NUM",_V="NL",NV="OPENBRACE",RV="CLOSEBRACE",IV="OPENBRACKET",PV="CLOSEBRACKET",DV="OPENPAREN",LV="CLOSEPAREN",jV="OPENANGLEBRACKET",BV="CLOSEANGLEBRACKET",VV="FULLWIDTHLEFTPAREN",zV="FULLWIDTHRIGHTPAREN",FV="LEFTCORNERBRACKET",$V="RIGHTCORNERBRACKET",HV="LEFTWHITECORNERBRACKET",UV="RIGHTWHITECORNERBRACKET",WV="FULLWIDTHLESSTHAN",qV="FULLWIDTHGREATERTHAN",KV="AMPERSAND",JV="APOSTROPHE",GV="ASTERISK",YV="AT",XV="BACKSLASH",ZV="BACKTICK",QV="CARET",ez="COLON",tz="COMMA",nz="DOLLAR",rz="DOT",oz="EQUALS",iz="EXCLAMATION",sz="HYPHEN",az="PERCENT",lz="PIPE",cz="PLUS",uz="POUND",dz="QUERY",pz="QUOTE",fz="SEMI",hz="SLASH",mz="TILDE",gz="UNDERSCORE",vz="EMOJI",yz="SYM";var bz=Object.freeze({__proto__:null,WORD:SV,UWORD:kV,LOCALHOST:OV,TLD:EV,UTLD:CV,SCHEME:MV,SLASH_SCHEME:AV,NUM:TV,WS:"WS",NL:_V,OPENBRACE:NV,CLOSEBRACE:RV,OPENBRACKET:IV,CLOSEBRACKET:PV,OPENPAREN:DV,CLOSEPAREN:LV,OPENANGLEBRACKET:jV,CLOSEANGLEBRACKET:BV,FULLWIDTHLEFTPAREN:VV,FULLWIDTHRIGHTPAREN:zV,LEFTCORNERBRACKET:FV,RIGHTCORNERBRACKET:$V,LEFTWHITECORNERBRACKET:HV,RIGHTWHITECORNERBRACKET:UV,FULLWIDTHLESSTHAN:WV,FULLWIDTHGREATERTHAN:qV,AMPERSAND:KV,APOSTROPHE:JV,ASTERISK:GV,AT:YV,BACKSLASH:XV,BACKTICK:ZV,CARET:QV,COLON:ez,COMMA:tz,DOLLAR:nz,DOT:rz,EQUALS:oz,EXCLAMATION:iz,HYPHEN:sz,PERCENT:az,PIPE:lz,PLUS:cz,POUND:uz,QUERY:dz,QUOTE:pz,SEMI:fz,SLASH:hz,TILDE:mz,UNDERSCORE:gz,EMOJI:vz,SYM:yz});const wz=/[a-z]/,xz=new RegExp("\\p{L}","u"),Sz=new RegExp("\\p{Emoji}","u"),kz=/\d/,Oz=/\s/;let Ez=null,Cz=null;function Mz(e,t,n,r,o){let i;const s=t.length;for(let a=0;a<s-1;a++){const n=t[a];e.j[n]?i=e.j[n]:(i=new vV(r),i.jr=o.slice(),e.j[n]=i),e=i}return i=new vV(n),i.jr=o.slice(),e.j[t[s-1]]=i,i}function Az(e){const t=[],n=[];let r=0;for(;r<e.length;){let o=0;for(;"0123456789".indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+o),10);t>0;t--)n.pop();r+=o}else n.push(e[r]),r++}return t}const Tz={defaultProtocol:"http",events:null,format:Nz,formatHref:Nz,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function _z(e,t){void 0===t&&(t=null);let n=sV({},Tz);e&&(n=sV(n,e instanceof _z?e.o:e));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function Nz(e){return e}function Rz(e,t){this.t="token",this.v=e,this.tk=t}function Iz(e,t){class n extends Rz{constructor(t,n){super(t,n),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}_z.prototype={o:Tz,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let o=this.o[e];return o?("object"==typeof o?(o=n.t in o?o[n.t]:Tz[e],"function"==typeof o&&r&&(o=o(t,n))):"function"==typeof o&&r&&(o=o(t,n.t,n)),o):o},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},Rz.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=Tz.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),o=e.get("tagName",n,t),i=this.toFormattedString(e),s={},a=e.get("className",n,t),l=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return s.href=r,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&sV(s,u),{tagName:o,attributes:s,content:i,eventListeners:d}}};const Pz=Iz("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Dz=Iz("text"),Lz=Iz("nl"),jz=Iz("url",{isLink:!0,toHref(e){return void 0===e&&(e=Tz.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==OV&&e[1].t===ez}}),Bz=e=>new vV(e);function Vz(e,t,n){const r=n[0].s,o=n[n.length-1].e;return new e(t.slice(r,o),n)}const zz="undefined"!=typeof console&&console&&console.warn||(()=>{}),Fz={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function $z(e,t){if(void 0===t&&(t=!1),Fz.initialized&&zz(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error('linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or "-"\n2. Cannot start or end with "-"\n3. "-" cannot repeat');Fz.customSchemes.push([e,t])}function Hz(){Fz.scanner=function(e){void 0===e&&(e=[]);const t={};vV.groups=t;const n=new vV;null==Ez&&(Ez=Az("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==Cz&&(Cz=Az("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),xV(n,"'",JV),xV(n,"{",NV),xV(n,"}",RV),xV(n,"[",IV),xV(n,"]",PV),xV(n,"(",DV),xV(n,")",LV),xV(n,"<",jV),xV(n,">",BV),xV(n,"(",VV),xV(n,")",zV),xV(n,"「",FV),xV(n,"」",$V),xV(n,"『",HV),xV(n,"』",UV),xV(n,"<",WV),xV(n,">",qV),xV(n,"&",KV),xV(n,"*",GV),xV(n,"@",YV),xV(n,"`",ZV),xV(n,"^",QV),xV(n,":",ez),xV(n,",",tz),xV(n,"$",nz),xV(n,".",rz),xV(n,"=",oz),xV(n,"!",iz),xV(n,"-",sz),xV(n,"%",az),xV(n,"|",lz),xV(n,"+",cz),xV(n,"#",uz),xV(n,"?",dz),xV(n,'"',pz),xV(n,"/",hz),xV(n,";",fz),xV(n,"~",mz),xV(n,"_",gz),xV(n,"\\",XV);const r=bV(n,kz,TV,{[aV]:!0});bV(r,kz,r);const o=bV(n,wz,SV,{[lV]:!0});bV(o,wz,o);const i=bV(n,xz,kV,{[cV]:!0});bV(i,wz),bV(i,xz,i);const s=bV(n,Oz,"WS",{[hV]:!0});xV(n,"\n",_V,{[hV]:!0}),xV(s,"\n"),bV(s,Oz,s);const a=bV(n,Sz,vz,{[fV]:!0});bV(a,Sz,a),xV(a,"️",a);const l=xV(a,"");bV(l,Sz,a);const c=[[wz,o]],u=[[wz,null],[xz,i]];for(let d=0;d<Ez.length;d++)Mz(n,Ez[d],EV,SV,c);for(let d=0;d<Cz.length;d++)Mz(n,Cz[d],CV,kV,u);gV(EV,{tld:!0,ascii:!0},t),gV(CV,{utld:!0,alpha:!0},t),Mz(n,"file",MV,SV,c),Mz(n,"mailto",MV,SV,c),Mz(n,"http",AV,SV,c),Mz(n,"https",AV,SV,c),Mz(n,"ftp",AV,SV,c),Mz(n,"ftps",AV,SV,c),gV(MV,{scheme:!0,ascii:!0},t),gV(AV,{slashscheme:!0,ascii:!0},t),e=e.sort(((e,t)=>e[0]>t[0]?1:-1));for(let d=0;d<e.length;d++){const t=e[d][0],r=e[d][1]?{scheme:!0}:{slashscheme:!0};t.indexOf("-")>=0?r[pV]=!0:wz.test(t)?kz.test(t)?r[uV]=!0:r[lV]=!0:r[aV]=!0,wV(n,t,t,r)}return wV(n,"localhost",OV,{ascii:!0}),n.jd=new vV(yz),{start:n,tokens:sV({groups:t},bz)}}(Fz.customSchemes);for(let e=0;e<Fz.tokenQueue.length;e++)Fz.tokenQueue[e][1]({scanner:Fz.scanner});Fz.parser=function(e){let{groups:t}=e;const n=t.domain.concat([KV,GV,YV,XV,ZV,QV,nz,oz,sz,TV,az,lz,cz,uz,hz,yz,mz,gz]),r=[JV,ez,tz,rz,iz,dz,pz,fz,jV,BV,NV,RV,PV,IV,DV,LV,VV,zV,FV,$V,HV,UV,WV,qV],o=[KV,JV,GV,XV,ZV,QV,nz,oz,sz,NV,RV,az,lz,cz,uz,dz,hz,yz,mz,gz],i=Bz(),s=xV(i,mz);yV(s,o,s),yV(s,t.domain,s);const a=Bz(),l=Bz(),c=Bz();yV(i,t.domain,a),yV(i,t.scheme,l),yV(i,t.slashscheme,c),yV(a,o,s),yV(a,t.domain,a);const u=xV(a,YV);xV(s,YV,u),xV(l,YV,u),xV(c,YV,u);const d=xV(s,rz);yV(d,o,s),yV(d,t.domain,s);const p=Bz();yV(u,t.domain,p),yV(p,t.domain,p);const f=xV(p,rz);yV(f,t.domain,p);const h=Bz(Pz);yV(f,t.tld,h),yV(f,t.utld,h),xV(u,OV,h);const m=xV(p,sz);yV(m,t.domain,p),yV(h,t.domain,p),xV(h,rz,f),xV(h,sz,m);const g=xV(h,ez);yV(g,t.numeric,Pz);const v=xV(a,sz),y=xV(a,rz);yV(v,t.domain,a),yV(y,o,s),yV(y,t.domain,a);const b=Bz(jz);yV(y,t.tld,b),yV(y,t.utld,b),yV(b,t.domain,a),yV(b,o,s),xV(b,rz,y),xV(b,sz,v),xV(b,YV,u);const w=xV(b,ez),x=Bz(jz);yV(w,t.numeric,x);const S=Bz(jz),k=Bz();yV(S,n,S),yV(S,r,k),yV(k,n,S),yV(k,r,k),xV(b,hz,S),xV(x,hz,S);const O=xV(l,ez),E=xV(c,ez),C=xV(E,hz),M=xV(C,hz);yV(l,t.domain,a),xV(l,rz,y),xV(l,sz,v),yV(c,t.domain,a),xV(c,rz,y),xV(c,sz,v),yV(O,t.domain,S),xV(O,hz,S),yV(M,t.domain,S),yV(M,n,S),xV(M,hz,S);const A=[[NV,RV],[IV,PV],[DV,LV],[jV,BV],[VV,zV],[FV,$V],[HV,UV],[WV,qV]];for(let T=0;T<A.length;T++){const[e,t]=A[T],o=xV(S,e);xV(k,e,o),xV(o,t,S);const i=Bz(jz);yV(o,n,i);const s=Bz();yV(o,r),yV(i,n,i),yV(i,r,s),yV(s,n,i),yV(s,r,s),xV(i,t,S),xV(s,t,S)}return xV(i,OV,b),xV(i,_V,Lz),{start:i,tokens:bz}}(Fz.scanner.tokens);for(let e=0;e<Fz.pluginQueue.length;e++)Fz.pluginQueue[e][1]({scanner:Fz.scanner,parser:Fz.parser});Fz.initialized=!0}function Uz(e){return Fz.initialized||Hz(),function(e,t,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let a=e,l=null,c=null,u=0,d=null,p=-1;for(;o<r&&!(l=a.go(n[o].t));)s.push(n[o++]);for(;o<r&&(c=l||a.go(n[o].t));)l=null,a=c,a.accepts()?(p=0,d=a):p>=0&&p++,o++,u++;if(p<0)o-=u,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(Vz(Dz,t,s)),s=[]),o-=p,u-=p;const e=d.t,r=n.slice(o-u,o);i.push(Vz(e,t,r))}}return s.length>0&&i.push(Vz(Dz,t,s)),i}(Fz.parser.start,e,function(e,t){const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){let o,i=e.charCodeAt(r),s=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}(t.replace(/[A-Z]/g,(e=>e.toLowerCase()))),r=n.length,o=[];let i=0,s=0;for(;s<r;){let a=e,l=null,c=0,u=null,d=-1,p=-1;for(;s<r&&(l=a.go(n[s]));)a=l,a.accepts()?(d=0,p=0,u=a):d>=0&&(d+=n[s].length,p++),c+=n[s].length,i+=n[s].length,s++;i-=d,s-=p,c-=d,o.push({t:u.t,v:t.slice(i-c,i),s:i-c,e:i})}return o}(Fz.scanner.start,e))}function Wz(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new _z(n),o=Uz(e),i=[];for(let s=0;s<o.length;s++){const e=o[s];!e.isLink||t&&e.t!==t||!r.check(e)||i.push(e.toFormattedObject(r))}return i}function qz(e){return new VR({key:new $R("autolink"),appendTransaction:(t,n,r)=>{const o=t.some((e=>e.docChanged))&&!n.doc.eq(r.doc),i=t.some((e=>e.getMeta("preventAutolink")));if(!o||i)return;const{tr:s}=r,a=function(e,t){const n=new yR(e);return t.forEach((e=>{e.steps.forEach((e=>{n.step(e)}))})),n}(n.doc,[...t]),l=function(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach(((e,o)=>{const i=[];if(e.ranges.length)e.forEach(((e,t)=>{i.push({from:e,to:t})}));else{const{from:e,to:t}=n[o];if(void 0===e||void 0===t)return;i.push({from:e,to:t})}i.forEach((({from:e,to:n})=>{const i=t.slice(o).map(e,-1),s=t.slice(o).map(n),a=t.invert().map(i,-1),l=t.invert().map(s);r.push({oldRange:{from:a,to:l},newRange:{from:i,to:s}})}))})),bj(r)}(a);return l.forEach((({newRange:t})=>{const n=function(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,((e,t)=>{n(e)&&r.push({node:e,pos:t})})),r}(r.doc,t,(e=>e.isTextblock));let o,i;if(n.length>1?(o=n[0],i=r.doc.textBetween(o.pos,o.pos+o.node.nodeSize,void 0," ")):n.length&&r.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(o=n[0],i=r.doc.textBetween(o.pos,t.to,void 0," ")),o&&i){const t=i.split(" ").filter((e=>""!==e));if(t.length<=0)return!1;const n=t[t.length-1],a=o.pos+i.lastIndexOf(n);if(!n)return!1;Wz(n).filter((e=>e.isLink)).map((e=>({...e,from:a+e.start+1,to:a+e.end+1}))).filter((e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code))).filter((t=>!e.validate||e.validate(t.value))).forEach((t=>{wj(t.from,t.to,r.doc).some((t=>t.mark.type===e.type))||s.addMark(t.from,t.to,e.type.create({href:t.href}))}))}})),s.steps.length?s:void 0}})}const Kz=Vj.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach((e=>{"string"!=typeof e?$z(e.scheme,e.optionalSlashes):$z(e)}))},onDestroy(){vV.groups={},Fz.scanner=null,Fz.parser=null,Fz.tokenQueue=[],Fz.pluginQueue=[],Fz.customSchemes=[],Fz.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:e}){var t;return(null===(t=e.href)||void 0===t?void 0:t.startsWith("javascript:"))?["a",NL(this.options.HTMLAttributes,{...e,href:""}),0]:["a",NL(this.options.HTMLAttributes,e),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Fj({find:e=>{const t=[];if(e){const n=Wz(e).filter((e=>e.isLink));n.length&&n.forEach((e=>t.push({text:e.value,data:{href:e.href},index:e.start})))}return t},type:this.type,getAttributes:e=>{var t;return{href:null===(t=e.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[];var t;return this.options.autolink&&e.push(qz({type:this.type,validate:this.options.validate})),this.options.openOnClick&&e.push((t={type:this.type},new VR({key:new $R("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(0!==r.button)return!1;let s=r.target;const a=[];for(;"DIV"!==s.nodeName;)a.push(s),s=s.parentNode;if(!a.find((e=>"A"===e.nodeName)))return!1;const l=yj(e.state,t.type.name),c=r.target,u=null!==(o=null==c?void 0:c.href)&&void 0!==o?o:l.href,d=null!==(i=null==c?void 0:c.target)&&void 0!==i?i:l.target;return!(!c||!u||(window.open(u,d),0))}}}))),this.options.linkOnPaste&&e.push(function(e){return new VR({key:new $R("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{state:o}=t,{selection:i}=o,{empty:s}=i;if(s)return!1;let a="";r.content.forEach((e=>{a+=e.textContent}));const l=Wz(a).find((e=>e.isLink&&e.value===a));return!(!a||!l||(e.editor.commands.setMark(e.type,{href:l.href}),0))}}})}({editor:this.editor,type:this.type})),e}}),Jz={name:"MenuItemSvg"},Gz={"aria-hidden":"true",style:{position:"absolute",width:"0",height:"0",overflow:"hidden"},version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Yz=[gi('<defs><symbol viewBox="0 0 24 24" id="ri-bold"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M8 11h4.5a2.5 2.5 0 1 0 0-5H8v5zm10 4.5a4.5 4.5 0 0 1-4.5 4.5H6V4h6.5a4.5 4.5 0 0 1 3.256 7.606A4.498 4.498 0 0 1 18 15.5zM8 13v5h5.5a2.5 2.5 0 1 0 0-5H8z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-italic"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-strikethrough"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M17.154 14c.23.516.346 1.09.346 1.72 0 1.342-.524 2.392-1.571 3.147C14.88 19.622 13.433 20 11.586 20c-1.64 0-3.263-.381-4.87-1.144V16.6c1.52.877 3.075 1.316 4.666 1.316 2.551 0 3.83-.732 3.839-2.197a2.21 2.21 0 0 0-.648-1.603l-.12-.117H3v-2h18v2h-3.846zm-4.078-3H7.629a4.086 4.086 0 0 1-.481-.522C6.716 9.92 6.5 9.246 6.5 8.452c0-1.236.466-2.287 1.397-3.153C8.83 4.433 10.271 4 12.222 4c1.471 0 2.879.328 4.222.984v2.152c-1.2-.687-2.515-1.03-3.946-1.03-2.48 0-3.719.782-3.719 2.346 0 .42.218.786.654 1.099.436.313.974.562 1.613.75.62.18 1.297.414 2.03.699z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-code-view"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M16.95 8.464l1.414-1.414 4.95 4.95-4.95 4.95-1.414-1.414L20.485 12 16.95 8.464zm-9.9 0L3.515 12l3.535 3.536-1.414 1.414L.686 12l4.95-4.95L7.05 8.464z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-h-1"><g><path fill="none" d="M0 0H24V24H0z"></path><path d="M13 20h-2v-7H4v7H2V4h2v7h7V4h2v16zm8-12v12h-2v-9.796l-2 .536V8.67L19.5 8H21z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-h-2"><g><path fill="none" d="M0 0H24V24H0z"></path><path d="M4 4v7h7V4h2v16h-2v-7H4v7H2V4h2zm14.5 4c2.071 0 3.75 1.679 3.75 3.75 0 .857-.288 1.648-.772 2.28l-.148.18L18.034 18H22v2h-7v-1.556l4.82-5.546c.268-.307.43-.709.43-1.148 0-.966-.784-1.75-1.75-1.75-.918 0-1.671.707-1.744 1.606l-.006.144h-2C14.75 9.679 16.429 8 18.5 8z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-h-3"><g><path fill="none" d="M0 0H24V24H0z"></path><path d="M22 8l-.002 2-2.505 2.883c1.59.435 2.757 1.89 2.757 3.617 0 2.071-1.679 3.75-3.75 3.75-1.826 0-3.347-1.305-3.682-3.033l1.964-.382c.156.806.866 1.415 1.718 1.415.966 0 1.75-.784 1.75-1.75s-.784-1.75-1.75-1.75c-.286 0-.556.069-.794.19l-1.307-1.547L19.35 10H15V8h7zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-h-4"><g><path fill="none" d="M0 0H24V24H0z"></path><path d="M13 20h-2v-7H4v7H2V4h2v7h7V4h2v16zm9-12v8h1.5v2H22v2h-2v-2h-5.5v-1.34l5-8.66H22zm-2 3.133L17.19 16H20v-4.867z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-h-5"><g><path fill="none" d="M0 0H24V24H0z"></path><path d="M22 8v2h-4.323l-.464 2.636c.33-.089.678-.136 1.037-.136 2.21 0 4 1.79 4 4s-1.79 4-4 4c-1.827 0-3.367-1.224-3.846-2.897l1.923-.551c.24.836 1.01 1.448 1.923 1.448 1.105 0 2-.895 2-2s-.895-2-2-2c-.63 0-1.193.292-1.56.748l-1.81-.904L16 8h6zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-h-6"><g><path fill="none" d="M0 0H24V24H0z"></path><path d="M21.097 8l-2.598 4.5c2.21 0 4.001 1.79 4.001 4s-1.79 4-4 4-4-1.79-4-4c0-.736.199-1.426.546-2.019L18.788 8h2.309zM4 4v7h7V4h2v16h-2v-7H4v7H2V4h2zm14.5 10.5c-1.105 0-2 .895-2 2s.895 2 2 2 2-.895 2-2-.895-2-2-2z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-paragraph"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 6v15h-2v-5a6 6 0 1 1 0-12h10v2h-3v15h-2V6h-3zm-2 0a4 4 0 1 0 0 8V6z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-list-unordered"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M8 4h13v2H8V4zM4.5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 6.9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-list-ordered"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M8 4h13v2H8V4zM5 3v3h1v1H3V6h1V4H3V3h2zM3 14v-2.5h2V11H3v-1h3v2.5H4v.5h2v1H3zm2 5.5H3v-1h2V18H3v-1h3v4H3v-1h2v-.5zM8 11h13v2H8v-2zm0 7h13v2H8v-2z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-double-quotes-l"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M4.583 17.321C3.553 16.227 3 15 3 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179zm10 0C13.553 16.227 13 15 13 13.011c0-3.5 2.457-6.637 6.03-8.188l.893 1.378c-3.335 1.804-3.987 4.145-4.247 5.621.537-.278 1.24-.375 1.929-.311 1.804.167 3.226 1.648 3.226 3.489a3.5 3.5 0 0 1-3.5 3.5c-1.073 0-2.099-.49-2.748-1.179z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-text-wrap"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M15 18h1.5a2.5 2.5 0 1 0 0-5H3v-2h13.5a4.5 4.5 0 1 1 0 9H15v2l-4-3 4-3v2zM3 4h18v2H3V4zm6 14v2H3v-2h6z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-format-clear"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M12.651 14.065L11.605 20H9.574l1.35-7.661-7.41-7.41L4.93 3.515 20.485 19.07l-1.414 1.414-6.42-6.42zm-.878-6.535l.27-1.53h-1.8l-2-2H20v2h-5.927L13.5 9.257 11.773 7.53z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-arrow-go-back-line"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M5.828 7l2.536 2.536L6.95 10.95 2 6l4.95-4.95 1.414 1.414L5.828 5H13a8 8 0 1 1 0 16H4v-2h9a6 6 0 1 0 0-12H5.828z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-arrow-go-forward-line"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M18.172 7H11a6 6 0 1 0 0 12h9v2h-9a8 8 0 1 1 0-16h7.172l-2.536-2.536L17.05 1.05 22 6l-4.95 4.95-1.414-1.414L18.172 7z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-link"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M18.4 15.5 17 14.1l1.4-1.4a5 5 0 1 0-7.1-7L9.9 7 8.5 5.7l1.4-1.4a7 7 0 0 1 9.9 10l-1.4 1.3zm-2.9 2.9-1.4 1.4a7 7 0 0 1-9.9-10l1.4-1.3 1.5 1.4-1.5 1.4a5 5 0 1 0 7.1 7l1.4-1.3 1.4 1.4zm-.7-10.6 1.4 1.4-7 7-1.4-1.4 7-7z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-link-unlink"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M17 17h5v2h-3v3h-2v-5zM7 7H2V5h3V2h2v5zm11.4 8.5L17 14.1l1.4-1.4a5 5 0 1 0-7.1-7L9.9 7 8.5 5.7l1.4-1.4a7 7 0 0 1 9.9 10l-1.4 1.3zm-2.9 2.9-1.4 1.4a7 7 0 0 1-9.9-10l1.4-1.3 1.5 1.4-1.5 1.4a5 5 0 1 0 7.1 7l1.4-1.3 1.4 1.4zm-.7-10.6 1.4 1.4-7 7-1.4-1.4 7-7z"></path></g></symbol><symbol viewBox="0 0 24 24" id="ri-underline"><path fill="currentColor" d="M8 3v9a4 4 0 0 0 8 0V3h2v9a6 6 0 0 1-12 0V3h2ZM4 20h16v2H4v-2Z"></path></symbol></defs>',1)];const Xz={key:0,class:"tiptap-editor"};const Zz=Fg({name:"Tiptap",components:{EditorContent:Uj,MenuBar:M_,MenuItemSvg:Fg(Jz,[["render",function(e,t,n,r,o,i){return Qo(),oi("svg",Gz,Yz)}]]),Link:Kz,Underline:Wj},props:{modelValue:{default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:t}){const n=$i({get:()=>e.modelValue,set:e=>{t("update:modelValue",e)}}),r=((e={})=>{const t=At();return Mr((()=>{t.value=new Hj(e)})),_r((()=>{var e;null===(e=t.value)||void 0===e||e.destroy()})),t})({extensions:[iV,Wj,Kz.configure({openOnClick:!1})],content:e.modelValue,onUpdate:()=>{const e=r.value.getHTML();t("update:modelValue",e)}});_r((()=>{r.value.destroy()}));const o=Mt(!1);return{editor:r,codeMode:o,val:n}}},[["render",function(e,t,n,r,o,i){const s=M_,a=En("EditorContent"),l=Sk,c=En("MenuItemSvg");return r.editor?(Qo(),oi("div",Xz,[pi(s,{class:"editor__header",editor:r.editor,mode:r.codeMode,onChangemode:t[0]||(t[0]=e=>r.codeMode=!r.codeMode)},null,8,["editor","mode"]),r.codeMode?(Qo(),ii(l,{key:1,type:"textarea",modelValue:r.val,"onUpdate:modelValue":t[1]||(t[1]=e=>r.val=e)},null,8,["modelValue"])):(Qo(),ii(a,{key:0,editor:r.editor},null,8,["editor"])),pi(c)])):vi("",!0)}]]);const Qz=Fg({name:"HtmlEditor",components:{Tiptap:Zz},props:{modelValue:{default:()=>({})},cnf:{}},emits:["update:modelValue"],setup:(e,t)=>({htmlData:$i({get:()=>e.modelValue,set:e=>t.emit("update:modelValue",e)})})},[["render",function(e,t,n,r,o,i){const s=Zz;return Qo(),ii(s,{modelValue:r.htmlData,"onUpdate:modelValue":t[0]||(t[0]=e=>r.htmlData=e)},null,8,["modelValue"])}]]),eF=["innerHTML"];const tF=Fg({name:"AttrSwitch",components:{},props:["modelValue","attrs","size"],emits:["update:modelValue"],setup(e,{emit:t}){const n=$i({get:()=>e.modelValue,set:e=>{t("update:modelValue",e)}}),r=$i((()=>e.attrs&&e.attrs.remark?"string"==typeof e.attrs.remark?e.attrs.remark:e.attrs.remark[n.value]:""));return{val:n,remark:r}}},[["render",function(e,t,n,r,o,i){const s=aM;return Qo(),oi(Ko,null,[pi(s,xi({modelValue:r.val,"onUpdate:modelValue":t[0]||(t[0]=e=>r.val=e)},n.attrs,{size:n.size}),null,16,["modelValue","size"]),r.remark?(Qo(),oi("span",{key:0,class:"wbb-option-remark inline",innerHTML:r.remark},null,8,eF)):vi("",!0)],64)}]]),nF={key:0,class:"wbb-input-unit"};const rF=Fg({name:"AttrInputNumber",components:{},props:["modelValue","attrs","size","unit"],emits:["update:modelValue"],setup:(e,{emit:t})=>({val:$i({get:()=>e.modelValue,set:e=>{t("update:modelValue",e)}})})},[["render",function(e,t,n,r,o,i){const s=TC;return Qo(),oi(Ko,null,[pi(s,xi({modelValue:r.val,"onUpdate:modelValue":t[0]||(t[0]=e=>r.val=e)},n.attrs,{size:n.size}),null,16,["modelValue","size"]),n.unit?(Qo(),oi("span",nF,X(n.unit),1)):vi("",!0)],64)}]]),oF=["innerHTML"],iF={key:15,class:"wbb-type-selectors"},sF=["src","alt"];const aF=Fg({name:"OptionTypes",emits:["update:modelValue"],components:{FileUploader:d_,AttrInputNumber:rF,HtmlEditor:Qz,AttrRemark:xb,AttrSwitch:tF},props:{modelValue:{},field:{type:Object,default:{type:"",attrs:null}}},setup(e,t){const{wbsCnf:n}=Ta();return{assetsDir:n.wbb_assets_dir,val:$i({get:()=>e.modelValue,set:e=>t.emit("update:modelValue",e)}),elSize:""}}},[["render",function(e,t,n,r,o,i){const s=Sk,a=WC,l=UC,c=rF,u=tF,d=WE,p=UE,f=HE,h=CE,m=ME,g=xC,v=d_,y=Qz,b=v_,w=LT,x=xb;return Qo(),oi(Ko,null,["input"===n.field.type?(Qo(),ii(s,xi({key:0,modelValue:r.val,"onUpdate:modelValue":t[0]||(t[0]=e=>r.val=e)},n.field.attrs,{size:r.elSize}),null,16,["modelValue","size"])):"link"===n.field.type?(Qo(),ii(s,xi({key:1,modelValue:r.val,"onUpdate:modelValue":t[1]||(t[1]=e=>r.val=e)},n.field.attrs,{size:r.elSize}),null,16,["modelValue","size"])):"select"===n.field.type?(Qo(),ii(l,xi({key:2,modelValue:r.val,"onUpdate:modelValue":t[2]||(t[2]=e=>r.val=e)},n.field.attrs,{size:r.elSize}),{default:yn((()=>[(Qo(!0),oi(Ko,null,Lr(n.field.attrs.items,((e,t)=>(Qo(),ii(a,{value:e.value,key:n.field.slug+t},{default:yn((()=>[mi(X(e.label),1)])),_:2},1032,["value"])))),128))])),_:1},16,["modelValue","size"])):"input-number"===n.field.type?(Qo(),ii(c,{key:3,modelValue:r.val,"onUpdate:modelValue":t[3]||(t[3]=e=>r.val=e),attrs:n.field.attrs,size:r.elSize,unit:n.field.unit},null,8,["modelValue","attrs","size","unit"])):"textarea"===n.field.type?(Qo(),ii(s,xi({key:4,type:"textarea",modelValue:r.val,"onUpdate:modelValue":t[4]||(t[4]=e=>r.val=e)},n.field.attrs,{size:r.elSize}),null,16,["modelValue","size"])):"switch"===n.field.type?(Qo(),ii(u,{key:5,modelValue:r.val,"onUpdate:modelValue":t[5]||(t[5]=e=>r.val=e),attrs:n.field.attrs,size:r.elSize},null,8,["modelValue","attrs","size"])):"radio-button"===n.field.type?(Qo(),ii(p,{key:6,modelValue:r.val,"onUpdate:modelValue":t[6]||(t[6]=e=>r.val=e),size:r.elSize},{default:yn((()=>[(Qo(!0),oi(Ko,null,Lr(n.field.attrs.items,(e=>(Qo(),ii(d,{key:e.label,value:e.value},{default:yn((()=>[mi(X(e.label),1)])),_:2},1032,["value"])))),128))])),_:1},8,["modelValue","size"])):"radio"===n.field.type?(Qo(),ii(p,{key:7,modelValue:r.val,"onUpdate:modelValue":t[7]||(t[7]=e=>r.val=e),size:r.elSize},{default:yn((()=>[(Qo(!0),oi(Ko,null,Lr(n.field.attrs.items,(e=>(Qo(),ii(f,{key:e.label,value:e.value},{default:yn((()=>[mi(X(e.label),1)])),_:2},1032,["value"])))),128))])),_:1},8,["modelValue","size"])):"checkbox"===n.field.type?(Qo(),ii(m,{key:8,modelValue:r.val,"onUpdate:modelValue":t[8]||(t[8]=e=>r.val=e),size:r.elSize},{default:yn((()=>[(Qo(!0),oi(Ko,null,Lr(n.field.attrs.items,(e=>(Qo(),ii(h,{value:e.value},{default:yn((()=>[mi(X(e.label),1)])),_:2},1032,["value"])))),256))])),_:1},8,["modelValue","size"])):"color"===n.field.type?(Qo(),ii(g,xi({key:9,"show-alpha":"",modelValue:r.val,"onUpdate:modelValue":t[9]||(t[9]=e=>r.val=e)},n.field.attrs),null,16,["modelValue"])):"remark"===n.field.type?(Qo(),oi("div",{key:10,class:"wbb-remark-info",innerHTML:r.val},null,8,oF)):"upload"===n.field.type?(Qo(),ii(v,xi({key:11,modelValue:r.val,"onUpdate:modelValue":t[10]||(t[10]=e=>r.val=e)},n.field.attrs),null,16,["modelValue"])):"img"===n.field.type?(Qo(),ii(v,xi({key:12,modelValue:r.val,"onUpdate:modelValue":t[11]||(t[11]=e=>r.val=e)},n.field.attrs,{type:"img"}),null,16,["modelValue"])):"video"===n.field.type?(Qo(),ii(v,xi({key:13,modelValue:r.val,"onUpdate:modelValue":t[12]||(t[12]=e=>r.val=e)},n.field.attrs,{type:"video"}),null,16,["modelValue"])):"hidden"===n.field.type?Yn((Qo(),oi("input",{key:14,"onUpdate:modelValue":t[13]||(t[13]=e=>r.val=e),type:"hidden"},null,512)),[[ta,r.val]]):"custom-layout"===n.field.type?(Qo(),oi("div",iF,[pi(p,{modelValue:r.val,"onUpdate:modelValue":t[14]||(t[14]=e=>r.val=e)},{default:yn((()=>[(Qo(!0),oi(Ko,null,Lr(n.field.attrs.items,((e,t)=>(Qo(),ii(f,{key:n.field.slug+t,label:e.value,size:r.elSize},{default:yn((()=>[e.thumbUrl?(Qo(),oi("img",{key:0,class:"layout-img",src:r.assetsDir+e.thumbUrl,alt:e.label},null,8,sF)):vi("",!0)])),_:2},1032,["label","size"])))),128))])),_:1},8,["modelValue"])])):"html-editor"===n.field.type?(Qo(),ii(y,{key:16,modelValue:r.val,"onUpdate:modelValue":t[15]||(t[15]=e=>r.val=e),attrs:n.field.attrs,size:r.elSize},null,8,["modelValue","attrs","size"])):"social-setter"===n.field.type?(Qo(),ii(b,{key:17,modelValue:r.val,"onUpdate:modelValue":t[16]||(t[16]=e=>r.val=e),attrs:n.field.attrs,size:r.elSize},null,8,["modelValue","attrs","size"])):"floor-setter"===n.field.type?(Qo(),ii(w,{key:18,modelValue:r.val,"onUpdate:modelValue":t[17]||(t[17]=e=>r.val=e),attrs:n.field.attrs},null,8,["modelValue","attrs"])):vi("",!0),n.field.remark?(Qo(),ii(x,{key:19,class:"wbb-option-remark",attrs:n.field.remark},null,8,["attrs"])):vi("",!0)],64)}]]),lF={class:"wbs-footer"},cF={class:"wbsf-inner"};const uF=Fg({name:"FormCtrlBar",emits:["submit"],setup:(e,{emit:t})=>({doSubmit:()=>{t("submit",!0)}})},[["render",function(e,t,n,r,o,i){const s=oE;return Qo(),oi("div",lF,[di("div",cF,[pi(s,{type:"primary",onClick:r.doSubmit},{default:yn((()=>[mi("保存设置")])),_:1},8,["onClick"])])])}]]),dF=Oa(Tv);dF.config.globalProperties.wbsCnf=window.wb_js_cnf?window.wb_js_cnf:{},dF.use(yb),dF.component("FormCtrlBar",uF),dF.component("OptionTypes",aF),dF.mount("#app"),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll("#toplevel_page_wbs .wp-submenu li"),t=window.location.hash.replace(/-[a-z0-9]+$/,"");[].forEach.call(e,(n=>{let r=n.querySelector("a");r&&r.href.indexOf(t)>0&&n.classList.add("current"),n.addEventListener("click",(()=>{[].forEach.call(e,(e=>{e.classList.remove("current")})),n.classList.add("current"),window.scrollTo(0,0)}))}))}));export{Lt as $,Bg as A,aF as B,uF as C,Wm as D,HE as E,Ko as F,hg as G,gh as H,Wf as I,pg as J,qp as K,Wp as L,Uh as M,Ob as N,u as O,cw as P,nw as Q,NO as R,Sa as S,d as T,zh as U,y as V,Mi as W,Nt as X,$i as Y,Wn as Z,Fg as _,d_ as a,m as a$,dx as a0,en as a1,yg as a2,Ct as a3,ok as a4,ur as a5,CE as a6,_k as a7,sk as a8,bw as a9,Go as aA,tw as aB,_r as aC,g as aD,$w as aE,Uw as aF,gw as aG,kt as aH,yw as aI,mw as aJ,ie as aK,r as aL,Ww as aM,jw as aN,Dw as aO,lO as aP,Vw as aQ,Yw as aR,tk as aS,ut as aT,zw as aU,BS as aV,ha as aW,Mn as aX,ga as aY,rs as aZ,si as a_,xw as aa,lE as ab,sx as ac,An as ad,q as ae,Cr as af,Tr as ag,Nr as ah,po as ai,fw as aj,ow as ak,pw as al,hw as am,Hi as an,Fn as ao,Pb as ap,$b as aq,ck as ar,GS as as,rw as at,uo as au,jr as av,F as aw,aw as ax,ww as ay,Aw as az,Qo as b,Um as b0,Gw as b1,uw as b2,ak as b3,lk as b4,Ur as b5,_b as b6,Ks as b7,Bw as b8,Zw as b9,dt as ba,Nb as bb,Hw as bc,Oa as bd,_ as be,oi as c,di as d,ii as e,yn as f,pi as g,mi as h,vi as i,Lr as j,xs as k,UE as l,_g as m,Sk as n,Mr as o,aM as p,oE as q,Mt as r,hb as s,X as t,db as u,ta as v,Yn as w,En as x,pb as y,fb as z};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["./AdList-C8U8VrR3.js","./el-loading-C_URt9Q3.js","./el-loading-Uv12lkco.css","./el-form-item-cnpCS9xR.js","./el-form-item-Bbol9JFK.css","./el-table-column-CenkqzB9.js","./el-table-column-DfXH0ILT.css","./index-BfyIpsK4.js","./index-oRN0N-gp.js","./Env-nEq56lE6.js","./General-CWG711at.js","./LinkList-M_92gz0X.js","./More-qDs5kUNR.js"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}