@madgex/design-system-ce 5.3.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.4.0](https://github.com/projects/MDS/repos/mds-branding/compare/diff?targetBranch=refs/tags/@madgex/design-system-ce@5.3.0&sourceBranch=refs/tags/@madgex/design-system-ce@5.4.0) (2023-01-05)
7
+
8
+
9
+ ### Features
10
+
11
+ * CE combobox default enter key action if not expanded ([c1d7329](https://github.com/projects/MDS/repos/mds-branding/commits/c1d732995c364c7310522f4ca1f87e6466acd08a))
12
+
13
+
14
+
6
15
  ## [5.3.0](https://github.com/projects/MDS/repos/mds-branding/compare/diff?targetBranch=refs/tags/@madgex/design-system-ce@5.2.0&sourceBranch=refs/tags/@madgex/design-system-ce@5.3.0) (2022-11-25)
7
16
 
8
17
 
@@ -7,7 +7,7 @@
7
7
  @keydown.home="hiddenGuard(onKeyHome)"
8
8
  @keydown.end="hiddenGuard(onKeyEnd)"
9
9
  @keydown.esc="makeInactive"
10
- @keydown.enter.stop.prevent="chooseOption"
10
+ @keydown.enter="handleKeyDownEnter"
11
11
  >
12
12
  <input
13
13
  @input="handleInput"
@@ -248,6 +248,13 @@ export default {
248
248
  this.chosenOption = option;
249
249
  this.makeInactive();
250
250
  },
251
+ /* When expanded then enter key down selects an option, otherwise enter key will be native behaviour, eg submit form */
252
+ handleKeyDownEnter(event) {
253
+ if (this.expanded) {
254
+ event.preventDefault();
255
+ this.chooseOption();
256
+ }
257
+ },
251
258
  chooseOption() {
252
259
  this.chosenOption = this.selectedOption;
253
260
  this.makeInactive();
@@ -1 +1 @@
1
- import{_ as h,o as a,c as l,a as c,w as r,t as m,b as v,r as I,n as g,d as p,e as x,f as _,g as C,h as B,F as k,i as w,j as L}from"../plugin-vue_export-helper.js";const V={name:"ComboboxClear",inject:["iconPath","clearInput"]},S=["aria-label","title"],T={"aria-hidden":"true",focusable:"false",class:"mds-icon mds-icon--close mds-icon--sm"},M=["href"];function E(t,i,n,u,o,e){return a(),l("button",{class:"mds-combobox__clear mds-button mds-button--plain",type:"button",onClick:i[0]||(i[0]=d=>t.$emit("clear",d)),onKeydown:i[1]||(i[1]=r(d=>t.$emit("clear",d),["enter"])),"aria-label":e.clearInput,title:e.clearInput},[(a(),l("svg",T,[c("use",{href:`${e.iconPath}#icon-close`},null,8,M)]))],40,S)}var H=h(V,[["render",E]]);const K={name:"ListBox",props:{hidden:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!0},comboboxid:{type:String,required:!0}},inject:["iconPath","loadingText"]},F=["aria-labelledby","hidden"],A={key:0,class:"mds-combobox-loading"},q={"aria-hidden":"true",focusable:"true",class:"mds-icon mds-icon--spinner mds-icon--after"},G=["href"],P={class:"mds-visually-hidden"};function j(t,i,n,u,o,e){return a(),l("ul",{class:"mds-combobox__listbox",role:"listbox","aria-labelledby":`${n.comboboxid}-label`,hidden:n.hidden},[n.isLoading?(a(),l("li",A,[(a(),l("svg",q,[c("use",{href:`${e.iconPath}#icon-spinner`},null,8,G)])),c("span",P,m(e.loadingText),1)])):v("",!0),I(t.$slots,"default")],8,F)}var N=h(K,[["render",j]]);const D={name:"ListBoxOption",props:{option:{type:Object,required:!0},focused:{type:Boolean,default:!1},searchValue:{type:String,default:""}},watch:{searchValue(t){return t},focused(t){t&&this.$refs.listItem.scrollIntoView(!1)}},methods:{highlightOption(){return this.option.label.replace(new RegExp(this.searchValue,"gi"),i=>`<span class="mds-combobox__option--marked">${i}</span>`)}}},R=["aria-selected","innerHTML"];function U(t,i,n,u,o,e){return a(),l("li",{ref:"listItem",class:g(["mds-combobox__option",{"mds-combobox__option--focused":n.focused}]),role:"option","aria-selected":n.focused.toString(),onMousedown:i[0]||(i[0]=d=>t.$emit("mousedown",d)),innerHTML:e.highlightOption()},null,42,R)}var $=h(D,[["render",U]]);const z={name:"Combobox",components:{ComboboxClear:H,ListBox:N,ListBoxOption:$},emits:["search","select-option","clear-all"],props:{comboboxid:{type:String,required:!0},placeholder:{type:String,default:""},name:{type:[String,Boolean],default:!1},value:{type:String,default:""},options:{type:Array,default:()=>[]},filterOptions:{type:Boolean,default:!0},iconpath:{type:String,default:"/assets/icons.svg"},dataAriaInvalid:{type:String,default:""},i18n:{type:String,default:""}},data(){return{expanded:!1,selected:null,chosen:null,searchValue:this.$props.value,resultCountMessage:null}},provide(){return{iconPath:this.iconpath,loadingText:this.i18nText.loadingText,clearInput:this.i18nText.clearInput}},mounted(){var n,u,o,e;const t=(u=(n=this.$el.parentElement)==null?void 0:n.parentElement)==null?void 0:u.querySelector(".mds-form-element__fallback input"),i=(e=(o=this.$el.parentElement)==null?void 0:o.parentElement)==null?void 0:e.querySelector(".mds-form-element__fallback select");t&&t.remove(),i&&i.removeAttribute("id")},computed:{inputValue(){return this.chosenOption?this.chosenOption.label:this.searchValue},selectedOption:{get(){return this.selected},set(t){this.selected=t}},chosenOption:{get(){return this.chosen},set(t){this.chosen=t,this.selectedOption=t,this.$emit("select-option",this.chosen)}},visibleOptions(){return this.filterOptions?this.options.filter(t=>t.label.toLowerCase().includes(this.searchValue.toLowerCase())):this.options},listBoxId(){return`${this.comboboxid}-listbox`},optionId(){return`${this.comboboxid}-option`},describedBy(){return`${this.comboboxid}-assistiveHint`},isLoading(){return this.options.length===0&&this.expanded},selectedOptionId(){const t=this.visibleOptions.indexOf(this.selectedOption);if(t>-1)return`${this.optionId}-${t}`},listBoxHidden(){return!this.expanded},lastOptionIndex(){return this.visibleOptions.length-1},ariaExpanded(){return this.expanded?"true":"false"},ariaInvalid(){return this.dataAriaInvalid?"true":"false"},i18nText(){return this.i18n?JSON.parse(this.i18n):{loadingText:"Loading",describedByText:"When autocomplete results are available, use up and down arrows to review and enter to select.",resultsMessage:"{count} result available",resultsMessage_plural:"{count} results available",clearInput:"clear input"}}},methods:{makeActive(){this.expanded=!0},makeInactive(){this.expanded=!1},handleInput(t){this.chosenOption=null,this.searchValue=t.target?t.target.value:"",this.handleChange(),this.$emit("search",this.searchValue),this.visibleOptions.length>0&&this.updateCount()},handleChange(){this.searchValue.length===0&&this.clearField(),this.searchValue.length>1?(this.makeActive(),this.updateCount()):this.makeInactive()},handleFocus(){this.handleChange(),this.visibleOptions.length>1&&this.updateCount()},handleClear(){this.clearField(),this.$refs.comboInput.focus()},clearField(){this.searchValue="",this.chosenOption=null,this.$emit("clear-all")},clickOption(t=this.selectedOption){this.chosenOption=t,this.makeInactive()},chooseOption(){this.chosenOption=this.selectedOption,this.makeInactive(),this.clearCount()},hiddenGuard(t){this.listBoxHidden||t.call(this)},onInputBlur(){this.makeInactive(),this.clearCount()},onKeyDown(){if(this.selectedOption){const t=this.visibleOptions.findIndex(n=>n.value===this.selectedOption.value),i=t===this.lastOptionIndex?t:t+1;this.selectedOption=this.visibleOptions[i]}else[this.selectedOption]=this.visibleOptions},onKeyUp(){if(this.selectedOption){const t=this.visibleOptions.findIndex(n=>n.value===this.selectedOption.value),i=t===0?t:t-1;this.selectedOption=this.visibleOptions[i]}else this.selectedOption=this.visibleOptions[this.lastOptionIndex]},onKeyHome(){[this.selectedOption]=this.visibleOptions},onKeyEnd(){this.selectedOption=this.visibleOptions[this.lastOptionIndex]},updateCount(){this.clearCount(),setTimeout(()=>{const t=this.visibleOptions.length===1?this.i18nText.resultsMessage:this.i18nText.resultsMessage_plural;this.resultCountMessage=t.replace("{count}",this.visibleOptions.length)},1400)},clearCount(){this.resultCountMessage=null}}},J=["value","id","name","placeholder","aria-owns","aria-expanded","aria-activedescendant","aria-invalid","aria-describedby"],W={"aria-live":"polite",role:"status",class:"mds-visually-hidden"},Q=["id"];function X(t,i,n,u,o,e){const d=p("ComboboxClear"),O=p("ListBoxOption"),y=p("ListBox");return a(),l("div",{class:g(["mds-combobox",{"mds-combobox--active":!e.listBoxHidden}]),onKeydown:[i[4]||(i[4]=r(s=>e.hiddenGuard(e.onKeyDown),["down"])),i[5]||(i[5]=r(s=>e.hiddenGuard(e.onKeyUp),["up"])),i[6]||(i[6]=r(s=>e.hiddenGuard(e.onKeyHome),["home"])),i[7]||(i[7]=r(s=>e.hiddenGuard(e.onKeyEnd),["end"])),i[8]||(i[8]=r((...s)=>e.makeInactive&&e.makeInactive(...s),["esc"])),i[9]||(i[9]=r(B((...s)=>e.chooseOption&&e.chooseOption(...s),["stop","prevent"]),["enter"]))]},[c("input",{onInput:i[0]||(i[0]=(...s)=>e.handleInput&&e.handleInput(...s)),value:e.inputValue,class:"mds-form-control",autocomplete:"off",type:"text",role:"combobox",ref:"comboInput",id:n.comboboxid,name:n.name,placeholder:n.placeholder,"aria-owns":e.listBoxId,"aria-expanded":e.ariaExpanded,"aria-autocomplete":"list","aria-activedescendant":e.selectedOptionId,"aria-invalid":e.ariaInvalid,"aria-describedby":e.describedBy,onChange:i[1]||(i[1]=(...s)=>e.handleChange&&e.handleChange(...s)),onBlur:i[2]||(i[2]=(...s)=>e.onInputBlur&&e.onInputBlur(...s)),onFocus:i[3]||(i[3]=(...s)=>e.handleFocus&&e.handleFocus(...s))},null,40,J),o.searchValue.length>0?(a(),x(d,{key:0,onClear:e.handleClear},null,8,["onClear"])):v("",!0),_(y,{id:e.listBoxId,hidden:e.listBoxHidden,isLoading:e.isLoading,comboboxid:n.comboboxid},{default:C(()=>[(a(!0),l(k,null,w(e.visibleOptions,(s,b)=>{var f;return a(),x(O,{key:b,option:s,id:`${e.optionId}-${b}`,focused:((f=e.selectedOption)==null?void 0:f.value)===(s==null?void 0:s.value),onMousedown:Z=>e.clickOption(s),searchValue:o.searchValue},null,8,["option","id","focused","onMousedown","searchValue"])}),128))]),_:1},8,["id","hidden","isLoading","comboboxid"]),c("div",W,m(o.resultCountMessage),1),c("span",{id:e.describedBy,style:{display:"none"}},m(e.i18nText.describedByText),9,Q)],34)}var Y=h(z,[["render",X]]);const te=L(Y,{shadowRoot:!1});export{te as default};
1
+ import{_ as h,o as a,c as l,a as c,w as r,t as m,b as v,r as I,n as g,d as p,e as x,f as _,g as C,F as B,h as w,i as k}from"../plugin-vue_export-helper.js";const L={name:"ComboboxClear",inject:["iconPath","clearInput"]},V=["aria-label","title"],S={"aria-hidden":"true",focusable:"false",class:"mds-icon mds-icon--close mds-icon--sm"},T=["href"];function E(t,n,s,u,o,e){return a(),l("button",{class:"mds-combobox__clear mds-button mds-button--plain",type:"button",onClick:n[0]||(n[0]=d=>t.$emit("clear",d)),onKeydown:n[1]||(n[1]=r(d=>t.$emit("clear",d),["enter"])),"aria-label":e.clearInput,title:e.clearInput},[(a(),l("svg",S,[c("use",{href:`${e.iconPath}#icon-close`},null,8,T)]))],40,V)}var K=h(L,[["render",E]]);const M={name:"ListBox",props:{hidden:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!0},comboboxid:{type:String,required:!0}},inject:["iconPath","loadingText"]},H=["aria-labelledby","hidden"],F={key:0,class:"mds-combobox-loading"},D={"aria-hidden":"true",focusable:"true",class:"mds-icon mds-icon--spinner mds-icon--after"},A=["href"],q={class:"mds-visually-hidden"};function G(t,n,s,u,o,e){return a(),l("ul",{class:"mds-combobox__listbox",role:"listbox","aria-labelledby":`${s.comboboxid}-label`,hidden:s.hidden},[s.isLoading?(a(),l("li",F,[(a(),l("svg",D,[c("use",{href:`${e.iconPath}#icon-spinner`},null,8,A)])),c("span",q,m(e.loadingText),1)])):v("",!0),I(t.$slots,"default")],8,H)}var P=h(M,[["render",G]]);const N={name:"ListBoxOption",props:{option:{type:Object,required:!0},focused:{type:Boolean,default:!1},searchValue:{type:String,default:""}},watch:{searchValue(t){return t},focused(t){t&&this.$refs.listItem.scrollIntoView(!1)}},methods:{highlightOption(){return this.option.label.replace(new RegExp(this.searchValue,"gi"),n=>`<span class="mds-combobox__option--marked">${n}</span>`)}}},j=["aria-selected","innerHTML"];function R(t,n,s,u,o,e){return a(),l("li",{ref:"listItem",class:g(["mds-combobox__option",{"mds-combobox__option--focused":s.focused}]),role:"option","aria-selected":s.focused.toString(),onMousedown:n[0]||(n[0]=d=>t.$emit("mousedown",d)),innerHTML:e.highlightOption()},null,42,j)}var U=h(N,[["render",R]]);const $={name:"Combobox",components:{ComboboxClear:K,ListBox:P,ListBoxOption:U},emits:["search","select-option","clear-all"],props:{comboboxid:{type:String,required:!0},placeholder:{type:String,default:""},name:{type:[String,Boolean],default:!1},value:{type:String,default:""},options:{type:Array,default:()=>[]},filterOptions:{type:Boolean,default:!0},iconpath:{type:String,default:"/assets/icons.svg"},dataAriaInvalid:{type:String,default:""},i18n:{type:String,default:""}},data(){return{expanded:!1,selected:null,chosen:null,searchValue:this.$props.value,resultCountMessage:null}},provide(){return{iconPath:this.iconpath,loadingText:this.i18nText.loadingText,clearInput:this.i18nText.clearInput}},mounted(){var s,u,o,e;const t=(u=(s=this.$el.parentElement)==null?void 0:s.parentElement)==null?void 0:u.querySelector(".mds-form-element__fallback input"),n=(e=(o=this.$el.parentElement)==null?void 0:o.parentElement)==null?void 0:e.querySelector(".mds-form-element__fallback select");t&&t.remove(),n&&n.removeAttribute("id")},computed:{inputValue(){return this.chosenOption?this.chosenOption.label:this.searchValue},selectedOption:{get(){return this.selected},set(t){this.selected=t}},chosenOption:{get(){return this.chosen},set(t){this.chosen=t,this.selectedOption=t,this.$emit("select-option",this.chosen)}},visibleOptions(){return this.filterOptions?this.options.filter(t=>t.label.toLowerCase().includes(this.searchValue.toLowerCase())):this.options},listBoxId(){return`${this.comboboxid}-listbox`},optionId(){return`${this.comboboxid}-option`},describedBy(){return`${this.comboboxid}-assistiveHint`},isLoading(){return this.options.length===0&&this.expanded},selectedOptionId(){const t=this.visibleOptions.indexOf(this.selectedOption);if(t>-1)return`${this.optionId}-${t}`},listBoxHidden(){return!this.expanded},lastOptionIndex(){return this.visibleOptions.length-1},ariaExpanded(){return this.expanded?"true":"false"},ariaInvalid(){return this.dataAriaInvalid?"true":"false"},i18nText(){return this.i18n?JSON.parse(this.i18n):{loadingText:"Loading",describedByText:"When autocomplete results are available, use up and down arrows to review and enter to select.",resultsMessage:"{count} result available",resultsMessage_plural:"{count} results available",clearInput:"clear input"}}},methods:{makeActive(){this.expanded=!0},makeInactive(){this.expanded=!1},handleInput(t){this.chosenOption=null,this.searchValue=t.target?t.target.value:"",this.handleChange(),this.$emit("search",this.searchValue),this.visibleOptions.length>0&&this.updateCount()},handleChange(){this.searchValue.length===0&&this.clearField(),this.searchValue.length>1?(this.makeActive(),this.updateCount()):this.makeInactive()},handleFocus(){this.handleChange(),this.visibleOptions.length>1&&this.updateCount()},handleClear(){this.clearField(),this.$refs.comboInput.focus()},clearField(){this.searchValue="",this.chosenOption=null,this.$emit("clear-all")},clickOption(t=this.selectedOption){this.chosenOption=t,this.makeInactive()},handleKeyDownEnter(t){this.expanded&&(t.preventDefault(),this.chooseOption())},chooseOption(){this.chosenOption=this.selectedOption,this.makeInactive(),this.clearCount()},hiddenGuard(t){this.listBoxHidden||t.call(this)},onInputBlur(){this.makeInactive(),this.clearCount()},onKeyDown(){if(this.selectedOption){const t=this.visibleOptions.findIndex(s=>s.value===this.selectedOption.value),n=t===this.lastOptionIndex?t:t+1;this.selectedOption=this.visibleOptions[n]}else[this.selectedOption]=this.visibleOptions},onKeyUp(){if(this.selectedOption){const t=this.visibleOptions.findIndex(s=>s.value===this.selectedOption.value),n=t===0?t:t-1;this.selectedOption=this.visibleOptions[n]}else this.selectedOption=this.visibleOptions[this.lastOptionIndex]},onKeyHome(){[this.selectedOption]=this.visibleOptions},onKeyEnd(){this.selectedOption=this.visibleOptions[this.lastOptionIndex]},updateCount(){this.clearCount(),setTimeout(()=>{const t=this.visibleOptions.length===1?this.i18nText.resultsMessage:this.i18nText.resultsMessage_plural;this.resultCountMessage=t.replace("{count}",this.visibleOptions.length)},1400)},clearCount(){this.resultCountMessage=null}}},z=["value","id","name","placeholder","aria-owns","aria-expanded","aria-activedescendant","aria-invalid","aria-describedby"],J={"aria-live":"polite",role:"status",class:"mds-visually-hidden"},W=["id"];function Q(t,n,s,u,o,e){const d=p("ComboboxClear"),O=p("ListBoxOption"),y=p("ListBox");return a(),l("div",{class:g(["mds-combobox",{"mds-combobox--active":!e.listBoxHidden}]),onKeydown:[n[4]||(n[4]=r(i=>e.hiddenGuard(e.onKeyDown),["down"])),n[5]||(n[5]=r(i=>e.hiddenGuard(e.onKeyUp),["up"])),n[6]||(n[6]=r(i=>e.hiddenGuard(e.onKeyHome),["home"])),n[7]||(n[7]=r(i=>e.hiddenGuard(e.onKeyEnd),["end"])),n[8]||(n[8]=r((...i)=>e.makeInactive&&e.makeInactive(...i),["esc"])),n[9]||(n[9]=r((...i)=>e.handleKeyDownEnter&&e.handleKeyDownEnter(...i),["enter"]))]},[c("input",{onInput:n[0]||(n[0]=(...i)=>e.handleInput&&e.handleInput(...i)),value:e.inputValue,class:"mds-form-control",autocomplete:"off",type:"text",role:"combobox",ref:"comboInput",id:s.comboboxid,name:s.name,placeholder:s.placeholder,"aria-owns":e.listBoxId,"aria-expanded":e.ariaExpanded,"aria-autocomplete":"list","aria-activedescendant":e.selectedOptionId,"aria-invalid":e.ariaInvalid,"aria-describedby":e.describedBy,onChange:n[1]||(n[1]=(...i)=>e.handleChange&&e.handleChange(...i)),onBlur:n[2]||(n[2]=(...i)=>e.onInputBlur&&e.onInputBlur(...i)),onFocus:n[3]||(n[3]=(...i)=>e.handleFocus&&e.handleFocus(...i))},null,40,z),o.searchValue.length>0?(a(),x(d,{key:0,onClear:e.handleClear},null,8,["onClear"])):v("",!0),_(y,{id:e.listBoxId,hidden:e.listBoxHidden,isLoading:e.isLoading,comboboxid:s.comboboxid},{default:C(()=>[(a(!0),l(B,null,w(e.visibleOptions,(i,b)=>{var f;return a(),x(O,{key:b,option:i,id:`${e.optionId}-${b}`,focused:((f=e.selectedOption)==null?void 0:f.value)===(i==null?void 0:i.value),onMousedown:Y=>e.clickOption(i),searchValue:o.searchValue},null,8,["option","id","focused","onMousedown","searchValue"])}),128))]),_:1},8,["id","hidden","isLoading","comboboxid"]),c("div",J,m(o.resultCountMessage),1),c("span",{id:e.describedBy,style:{display:"none"}},m(e.i18nText.describedByText),9,W)],34)}var X=h($,[["render",Q]]);const ee=k(X,{shadowRoot:!1});export{ee as default};
@@ -1,4 +1,4 @@
1
- var _c=Object.defineProperty,Wc=Object.defineProperties;var Kc=Object.getOwnPropertyDescriptors;var Or=Object.getOwnPropertySymbols;var Bo=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable;var No=(n,e,t)=>e in n?_c(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,A=(n,e)=>{for(var t in e||(e={}))Bo.call(e,t)&&No(n,t,e[t]);if(Or)for(var t of Or(e))Ro.call(e,t)&&No(n,t,e[t]);return n},de=(n,e)=>Wc(n,Kc(e));var Io=(n,e)=>{var t={};for(var r in n)Bo.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Or)for(var r of Or(n))e.indexOf(r)<0&&Ro.call(n,r)&&(t[r]=n[r]);return t};import{k as Dr,l as $s,m as yl,p as _s,q as Kt,s as qc,u as Uc,v as Jc,x as Gc,y as Yc,T as Xc,z as Qc,A as Zc,_ as br,o as ct,c as wt,n as Dl,a as bl,t as ed,b as vl,d as lr,f as _r,F as td,i as nd,e as rd,w as Mr,j as id}from"../plugin-vue_export-helper.js";function se(n){this.content=n}se.prototype={constructor:se,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new se(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new se(t)},addToStart:function(n,e){return new se([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new se(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new se(i)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=se.from(n),n.size?new se(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=se.from(n),n.size?new se(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=se.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},get size(){return this.content.length>>1}};se.from=function(n){if(n instanceof se)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new se(e)};function kl(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)t++;return t}if(i.content.size||s.content.size){let o=kl(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function Cl(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),a=e.child(--s),l=o.nodeSize;if(o==a){t-=l,r-=l;continue}if(!o.sameMarkup(a))return{a:t,b:r};if(o.isText&&o.text!=a.text){let u=0,c=Math.min(o.text.length,a.text.length);for(;u<c&&o.text[o.text.length-u-1]==a.text[a.text.length-u-1];)u++,t--,r--;return{a:t,b:r}}if(o.content.size||a.content.size){let u=Cl(o.content,a.content,t-1,r-1);if(u)return u}t-=l,r-=l}}class k{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,s){for(let o=0,a=0;a<t;o++){let l=this.content[o],u=a+l.nodeSize;if(u>e&&r(l,i+a,s||null,o)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,t-c),r,i+c)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(a,l)=>{a.isText?(s+=a.text.slice(Math.max(e,l)-l,t-l),o=!r):a.isLeaf?(i?s+=typeof i=="function"?i(a):i:a.type.spec.leafText&&(s+=a.type.spec.leafText(a)),o=!r):!o&&a.isBlock&&(s+=r,o=!0)},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new k(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let a=this.content[s],l=o+a.nodeSize;l>e&&((o<e||l>t)&&(a.isText?a=a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a=a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),r.push(a),i+=a.nodeSize),o=l}return new k(r,i)}cutByIndex(e,t){return e==t?k.empty:e==0&&t==this.content.length?this:new k(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(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,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return kl(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Cl(this,e,t,r)}findIndex(e,t=-1){if(e==0)return Tr(0,e);if(e==this.size)return Tr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let s=this.child(r),o=i+s.nodeSize;if(o>=e)return o==e||t>0?Tr(r+1,o):Tr(r,i);i=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 k.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new k(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new k(t||e,r)}static from(e){if(!e)return k.empty;if(e instanceof k)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new k([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}k.empty=new k([],0);const $i={index:0,offset:0};function Tr(n,e){return $i.index=n,$i.offset=e,$i}function Wr(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Wr(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Wr(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}class ${constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||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&&Wr(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 r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return $.none;if(e instanceof $)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}}$.none=[];class ur extends Error{}class S{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=xl(this.content,e+this.openStart,t);return r&&new S(r,this.openStart,this.openEnd)}removeBetween(e,t){return new S(El(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 S.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new S(k.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new S(e,r,i)}}S.empty=new S(k.empty,0,0);function El(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:a}=n.findIndex(t);if(i==e||s.isText){if(a!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(El(s.content,e-i-1,t-i-1)))}function xl(n,e,t,r){let{index:i,offset:s}=n.findIndex(e),o=n.maybeChild(i);if(s==e||o.isText)return r&&!r.canReplace(i,i,t)?null:n.cut(0,e).append(t).append(n.cut(e));let a=xl(o.content,e-s-1,t);return a&&n.replaceChild(i,o.copy(a))}function sd(n,e,t){if(t.openStart>n.depth)throw new ur("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new ur("Inconsistent open depths");return Sl(n,e,t,0)}function Sl(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=Sl(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,a=o.content;return Ut(o,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:o,end:a}=od(t,n);return Ut(s,wl(n,o,a,e,r))}else return Ut(s,Kr(n,e,r))}function Al(n,e){if(!e.type.compatibleContent(n.type))throw new ur("Cannot join "+e.type.name+" onto "+n.type.name)}function bs(n,e,t){let r=n.node(t);return Al(r,e.node(t)),r}function qt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function Qn(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(qt(n.nodeAfter,r),s++));for(let a=s;a<o;a++)qt(i.child(a),r);e&&e.depth==t&&e.textOffset&&qt(e.nodeBefore,r)}function Ut(n,e){if(!n.type.validContent(e))throw new ur("Invalid content for node "+n.type.name);return n.copy(e)}function wl(n,e,t,r,i){let s=n.depth>i&&bs(n,e,i+1),o=r.depth>i&&bs(t,r,i+1),a=[];return Qn(null,n,i,a),s&&o&&e.index(i)==t.index(i)?(Al(s,o),qt(Ut(s,wl(n,e,t,r,i+1)),a)):(s&&qt(Ut(s,Kr(n,e,i+1)),a),Qn(e,t,i,a),o&&qt(Ut(o,Kr(t,r,i+1)),a)),Qn(r,null,i,a),new k(a)}function Kr(n,e,t){let r=[];if(Qn(null,n,t,r),n.depth>t){let i=bs(n,e,t+1);qt(Ut(i,Kr(n,e,t+1)),r)}return Qn(e,null,t,r),new k(r)}function od(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class cr{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?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[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].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 r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}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):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return $.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let a=r;r=i,i=a}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}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 r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new qr(this,e,r);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 r=[],i=0,s=t;for(let o=e;;){let{index:a,offset:l}=o.content.findIndex(s),u=s-l;if(r.push(o,a,i+l),!u||(o=o.child(a),o.isText))break;s=u-1,i+=l+1}return new cr(t,r,s)}static resolveCached(e,t){for(let i=0;i<_i.length;i++){let s=_i[i];if(s.pos==t&&s.doc==e)return s}let r=_i[Wi]=cr.resolve(e,t);return Wi=(Wi+1)%ad,r}}let _i=[],Wi=0,ad=12;class qr{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}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 ld=Object.create(null);class tt{constructor(e,t,r,i=$.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||k.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,r,i=0){this.content.nodesBetween(e,t,r,i,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,r,i){return this.content.textBetween(e,t,r,i)}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,r){return this.type==e&&Wr(this.attrs,t||e.defaultAttrs||ld)&&$.sameSet(this.marks,r||$.none)}copy(e=null){return e==this.content?this:new tt(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new tt(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return S.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),a=i.start(o),u=i.node(o).content.cut(i.pos-a,s.pos-a);return new S(u,i.depth-o,s.depth-o)}replace(e,t,r){return sd(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return cr.resolveCached(this,e)}resolveNoCache(e){return cr.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}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()+")"),Ol(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,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=i;l<s;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){if(!this.type.validContent(this.content))throw new RangeError(`Invalid content for node ${this.type.name}: ${this.content.toString().slice(0,50)}`);let e=$.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!$.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.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(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=k.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}}tt.prototype.text=void 0;class Ur extends tt{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ol(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 Ur(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ur(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&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 Ol(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class Yt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new ud(e,t);if(r.next==null)return Yt.empty;let i=Ml(r);r.next&&r.err("Unexpected trailing text");let s=gd(md(i));return yd(s,r),s}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,r=e.childCount){let i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return 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 r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function s(o,a){let l=o.matchFragment(e,r);if(l&&(!t||l.validEnd))return k.from(a.map(u=>u.createAndFill()));for(let u=0;u<o.next.length;u++){let{type:c,next:d}=o.next[u];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,a.concat(c));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let a=i;a.type;a=a.via)o.push(a.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:a,next:l}=s.next[o];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),t[a.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=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
1
+ var _c=Object.defineProperty,Wc=Object.defineProperties;var Kc=Object.getOwnPropertyDescriptors;var Or=Object.getOwnPropertySymbols;var Bo=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable;var No=(n,e,t)=>e in n?_c(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,A=(n,e)=>{for(var t in e||(e={}))Bo.call(e,t)&&No(n,t,e[t]);if(Or)for(var t of Or(e))Ro.call(e,t)&&No(n,t,e[t]);return n},de=(n,e)=>Wc(n,Kc(e));var Io=(n,e)=>{var t={};for(var r in n)Bo.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Or)for(var r of Or(n))e.indexOf(r)<0&&Ro.call(n,r)&&(t[r]=n[r]);return t};import{j as Dr,k as $s,l as yl,m as _s,p as Kt,q as qc,s as Uc,u as Jc,v as Gc,x as Yc,T as Xc,y as Qc,z as Zc,_ as br,o as ct,c as wt,n as Dl,a as bl,t as ed,b as vl,d as lr,f as _r,F as td,h as nd,e as rd,w as Mr,i as id}from"../plugin-vue_export-helper.js";function se(n){this.content=n}se.prototype={constructor:se,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new se(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new se(t)},addToStart:function(n,e){return new se([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new se(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new se(i)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=se.from(n),n.size?new se(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=se.from(n),n.size?new se(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=se.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},get size(){return this.content.length>>1}};se.from=function(n){if(n instanceof se)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new se(e)};function kl(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)t++;return t}if(i.content.size||s.content.size){let o=kl(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function Cl(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),a=e.child(--s),l=o.nodeSize;if(o==a){t-=l,r-=l;continue}if(!o.sameMarkup(a))return{a:t,b:r};if(o.isText&&o.text!=a.text){let u=0,c=Math.min(o.text.length,a.text.length);for(;u<c&&o.text[o.text.length-u-1]==a.text[a.text.length-u-1];)u++,t--,r--;return{a:t,b:r}}if(o.content.size||a.content.size){let u=Cl(o.content,a.content,t-1,r-1);if(u)return u}t-=l,r-=l}}class k{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,s){for(let o=0,a=0;a<t;o++){let l=this.content[o],u=a+l.nodeSize;if(u>e&&r(l,i+a,s||null,o)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,t-c),r,i+c)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(a,l)=>{a.isText?(s+=a.text.slice(Math.max(e,l)-l,t-l),o=!r):a.isLeaf?(i?s+=typeof i=="function"?i(a):i:a.type.spec.leafText&&(s+=a.type.spec.leafText(a)),o=!r):!o&&a.isBlock&&(s+=r,o=!0)},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new k(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let a=this.content[s],l=o+a.nodeSize;l>e&&((o<e||l>t)&&(a.isText?a=a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a=a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),r.push(a),i+=a.nodeSize),o=l}return new k(r,i)}cutByIndex(e,t){return e==t?k.empty:e==0&&t==this.content.length?this:new k(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(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,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return kl(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Cl(this,e,t,r)}findIndex(e,t=-1){if(e==0)return Tr(0,e);if(e==this.size)return Tr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let s=this.child(r),o=i+s.nodeSize;if(o>=e)return o==e||t>0?Tr(r+1,o):Tr(r,i);i=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 k.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new k(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new k(t||e,r)}static from(e){if(!e)return k.empty;if(e instanceof k)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new k([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}k.empty=new k([],0);const $i={index:0,offset:0};function Tr(n,e){return $i.index=n,$i.offset=e,$i}function Wr(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Wr(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Wr(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}class ${constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||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&&Wr(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 r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return $.none;if(e instanceof $)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}}$.none=[];class ur extends Error{}class S{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=xl(this.content,e+this.openStart,t);return r&&new S(r,this.openStart,this.openEnd)}removeBetween(e,t){return new S(El(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 S.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new S(k.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new S(e,r,i)}}S.empty=new S(k.empty,0,0);function El(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:a}=n.findIndex(t);if(i==e||s.isText){if(a!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(El(s.content,e-i-1,t-i-1)))}function xl(n,e,t,r){let{index:i,offset:s}=n.findIndex(e),o=n.maybeChild(i);if(s==e||o.isText)return r&&!r.canReplace(i,i,t)?null:n.cut(0,e).append(t).append(n.cut(e));let a=xl(o.content,e-s-1,t);return a&&n.replaceChild(i,o.copy(a))}function sd(n,e,t){if(t.openStart>n.depth)throw new ur("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new ur("Inconsistent open depths");return Sl(n,e,t,0)}function Sl(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=Sl(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,a=o.content;return Ut(o,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:o,end:a}=od(t,n);return Ut(s,wl(n,o,a,e,r))}else return Ut(s,Kr(n,e,r))}function Al(n,e){if(!e.type.compatibleContent(n.type))throw new ur("Cannot join "+e.type.name+" onto "+n.type.name)}function bs(n,e,t){let r=n.node(t);return Al(r,e.node(t)),r}function qt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function Qn(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(qt(n.nodeAfter,r),s++));for(let a=s;a<o;a++)qt(i.child(a),r);e&&e.depth==t&&e.textOffset&&qt(e.nodeBefore,r)}function Ut(n,e){if(!n.type.validContent(e))throw new ur("Invalid content for node "+n.type.name);return n.copy(e)}function wl(n,e,t,r,i){let s=n.depth>i&&bs(n,e,i+1),o=r.depth>i&&bs(t,r,i+1),a=[];return Qn(null,n,i,a),s&&o&&e.index(i)==t.index(i)?(Al(s,o),qt(Ut(s,wl(n,e,t,r,i+1)),a)):(s&&qt(Ut(s,Kr(n,e,i+1)),a),Qn(e,t,i,a),o&&qt(Ut(o,Kr(t,r,i+1)),a)),Qn(r,null,i,a),new k(a)}function Kr(n,e,t){let r=[];if(Qn(null,n,t,r),n.depth>t){let i=bs(n,e,t+1);qt(Ut(i,Kr(n,e,t+1)),r)}return Qn(e,null,t,r),new k(r)}function od(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class cr{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?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[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].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 r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}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):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return $.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let a=r;r=i,i=a}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].removeFromSet(r));return r}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 r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new qr(this,e,r);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 r=[],i=0,s=t;for(let o=e;;){let{index:a,offset:l}=o.content.findIndex(s),u=s-l;if(r.push(o,a,i+l),!u||(o=o.child(a),o.isText))break;s=u-1,i+=l+1}return new cr(t,r,s)}static resolveCached(e,t){for(let i=0;i<_i.length;i++){let s=_i[i];if(s.pos==t&&s.doc==e)return s}let r=_i[Wi]=cr.resolve(e,t);return Wi=(Wi+1)%ad,r}}let _i=[],Wi=0,ad=12;class qr{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}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 ld=Object.create(null);class tt{constructor(e,t,r,i=$.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||k.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,r,i=0){this.content.nodesBetween(e,t,r,i,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,r,i){return this.content.textBetween(e,t,r,i)}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,r){return this.type==e&&Wr(this.attrs,t||e.defaultAttrs||ld)&&$.sameSet(this.marks,r||$.none)}copy(e=null){return e==this.content?this:new tt(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new tt(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return S.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),a=i.start(o),u=i.node(o).content.cut(i.pos-a,s.pos-a);return new S(u,i.depth-o,s.depth-o)}replace(e,t,r){return sd(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return cr.resolveCached(this,e)}resolveNoCache(e){return cr.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}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()+")"),Ol(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,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=i;l<s;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){if(!this.type.validContent(this.content))throw new RangeError(`Invalid content for node ${this.type.name}: ${this.content.toString().slice(0,50)}`);let e=$.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!$.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.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(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=k.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}}tt.prototype.text=void 0;class Ur extends tt{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ol(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 Ur(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ur(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&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 Ol(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class Yt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new ud(e,t);if(r.next==null)return Yt.empty;let i=Ml(r);r.next&&r.err("Unexpected trailing text");let s=gd(md(i));return yd(s,r),s}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,r=e.childCount){let i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}get inlineContent(){return 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 r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function s(o,a){let l=o.matchFragment(e,r);if(l&&(!t||l.validEnd))return k.from(a.map(u=>u.createAndFill()));for(let u=0;u<o.next.length;u++){let{type:c,next:d}=o.next[u];if(!(c.isText||c.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=s(d,a.concat(c));if(f)return f}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let a=i;a.type;a=a.via)o.push(a.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:a,next:l}=s.next[o];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),t[a.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=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
2
2
  `)}}Yt.empty=new Yt(!0);class ud{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 Ml(n){let e=[];do e.push(cd(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function cd(n){let e=[];do e.push(dd(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function dd(n){let e=pd(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=fd(n,e);else break;return e}function Po(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function fd(n,e){let t=Po(n),r=t;return n.eat(",")&&(n.next!="}"?r=Po(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function hd(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let i=[];for(let s in t){let o=t[s];o.groups.indexOf(e)>-1&&i.push(o)}return i.length==0&&n.err("No node type or group '"+e+"' found"),i}function pd(n){if(n.eat("(")){let e=Ml(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=hd(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function md(n){let e=[[]];return i(s(n,0),t()),e;function t(){return e.push([])-1}function r(o,a,l){let u={term:l,to:a};return e[o].push(u),u}function i(o,a){o.forEach(l=>l.to=a)}function s(o,a){if(o.type=="choice")return o.exprs.reduce((l,u)=>l.concat(s(u,a)),[]);if(o.type=="seq")for(let l=0;;l++){let u=s(o.exprs[l],a);if(l==o.exprs.length-1)return u;i(u,a=t())}else if(o.type=="star"){let l=t();return r(a,l),i(s(o.expr,l),l),[r(l)]}else if(o.type=="plus"){let l=t();return i(s(o.expr,a),l),i(s(o.expr,l),l),[r(l)]}else{if(o.type=="opt")return[r(a)].concat(s(o.expr,a));if(o.type=="range"){let l=a;for(let u=0;u<o.min;u++){let c=t();i(s(o.expr,l),c),l=c}if(o.max==-1)i(s(o.expr,l),l);else for(let u=o.min;u<o.max;u++){let c=t();r(l,c),i(s(o.expr,l),c),l=c}return[r(l)]}else{if(o.type=="name")return[r(a,void 0,o.value)];throw new Error("Unknown expr type")}}}}function Tl(n,e){return e-n}function Lo(n,e){let t=[];return r(e),t.sort(Tl);function r(i){let s=n[i];if(s.length==1&&!s[0].term)return r(s[0].to);t.push(i);for(let o=0;o<s.length;o++){let{term:a,to:l}=s[o];!a&&t.indexOf(l)==-1&&r(l)}}}function gd(n){let e=Object.create(null);return t(Lo(n,0));function t(r){let i=[];r.forEach(o=>{n[o].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let c=0;c<i.length;c++)i[c][0]==a&&(u=i[c][1]);Lo(n,l).forEach(c=>{u||i.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let s=e[r.join(",")]=new Yt(r.indexOf(n.length-1)>-1);for(let o=0;o<i.length;o++){let a=i[o][1].sort(Tl);s.next.push({type:i[o][0],next:e[a.join(",")]||t(a)})}return s}}function yd(n,e){for(let t=0,r=[n];t<r.length;t++){let i=r[t],s=!i.validEnd,o=[];for(let a=0;a<i.next.length;a++){let{type:l,next:u}=i.next[a];o.push(l.name),s&&!(l.isText||l.hasRequiredAttrs())&&(s=!1),r.indexOf(u)==-1&&r.push(u)}s&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Fl(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function Nl(n,e){let t=Object.create(null);for(let r in n){let i=e&&e[r];if(i===void 0){let s=n[r];if(s.hasDefault)i=s.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=i}return t}function Bl(n){let e=Object.create(null);if(n)for(let t in n)e[t]=new Dd(n[t]);return e}class Jr{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Bl(r.attrs),this.defaultAttrs=Fl(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Yt.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:Nl(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new tt(this,this.computeAttrs(e),k.from(t),$.setFrom(r))}createChecked(e=null,t,r){if(t=k.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new tt(this,this.computeAttrs(e),t,$.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=k.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let i=this.contentMatch.matchFragment(t),s=i&&i.fillBefore(k.empty,!0);return s?new tt(this,e,t.append(s),$.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:$.none:e}static compile(e,t){let r=Object.create(null);e.forEach((s,o)=>r[s]=new Jr(s,t,o));let i=t.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}}class Dd{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Si{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=Bl(i.attrs),this.excluded=null;let s=Fl(this.attrs);this.instance=s?new $(this,s):null}create(e=null){return!e&&this.instance?this.instance:new $(this,Nl(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Si(s,i++,t,o)),r}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 bd{constructor(e){this.cached=Object.create(null),this.spec={nodes:se.from(e.nodes),marks:se.from(e.marks||{}),topNode:e.topNode},this.nodes=Jr.compile(this.spec.nodes,this),this.marks=Si.compile(this.spec.marks,this);let t=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 i=this.nodes[r],s=i.spec.content||"",o=i.spec.marks;i.contentMatch=t[s]||(t[s]=Yt.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=o=="_"?null:o?zo(this,o.split(" ")):o==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:zo(this,s.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,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Jr){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,i)}text(e,t){let r=this.nodes.text;return new Ur(r,r.defaultAttrs,e,$.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return tt.fromJSON(this,e)}markFromJSON(e){return $.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function zo(n,e){let t=[];for(let r=0;r<e.length;r++){let i=e[r],s=n.marks[i],o=s;if(s)t.push(s);else for(let a in n.marks){let l=n.marks[a];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&t.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}class Cn{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let r=new Ho(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Ho(this,t,!0);return r.addAll(e,t.from,t.to),S.maxOpen(r.finish())}matchTag(e,t,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let s=this.tags[i];if(Cd(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||t.matchesContext(s.context))){if(s.getAttrs){let o=s.getAttrs(e);if(o===!1)continue;s.attrs=o||void 0}return s}}}matchStyle(e,t,r,i){for(let s=i?this.styles.indexOf(i)+1:0;s<this.styles.length;s++){let o=this.styles[s],a=o.style;if(!(a.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(o.getAttrs){let l=o.getAttrs(t);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(e){let t=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o<t.length;o++){let a=t[o];if((a.priority==null?50:a.priority)<s)break}t.splice(o,0,i)}for(let i in e.marks){let s=e.marks[i].spec.parseDOM;s&&s.forEach(o=>{r(o=jo(o)),o.mark=i})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=jo(o)),o.node=i})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Cn(e,Cn.schemaRules(e)))}}const Rl={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},vd={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Il={ol:!0,ul:!0},Gr=1,Yr=2,Zn=4;function Vo(n,e,t){return e!=null?(e?Gr:0)|(e==="full"?Yr:0):n&&n.whitespace=="pre"?Gr|Yr:t&~Zn}class Fr{constructor(e,t,r,i,s,o,a){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=i,this.solid=s,this.options=a,this.content=[],this.activeMarks=$.none,this.stashMarks=[],this.match=o||(a&Zn?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(k.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Gr)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let t=k.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(k.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,r=this.pendingMarks;t<r.length;t++){let i=r[t];(this.type?this.type.allowsMarkType(i.type):xd(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Rl.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Ho{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let i=t.topNode,s,o=Vo(null,t.preserveWhitespace,0)|(r?Zn:0);i?s=new Fr(i.type,i.attrs,$.none,$.none,!0,t.topMatch||i.type.contentMatch,o):r?s=new Fr(null,null,$.none,$.none,!0,null,o):s=new Fr(e.schema.topNodeType,null,$.none,$.none,!0,null,o),this.nodes=[s],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){if(e.nodeType==3)this.addTextNode(e);else if(e.nodeType==1){let t=e.getAttribute("style"),r=t?this.readStyles(Ed(t)):null,i=this.top;if(r!=null)for(let s=0;s<r.length;s++)this.addPendingMark(r[s]);if(this.addElement(e),r!=null)for(let s=0;s<r.length;s++)this.removePendingMark(r[s],i)}}addTextNode(e){let t=e.nodeValue,r=this.top;if(r.options&Yr||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(r.options&Gr)r.options&Yr?t=t.replace(/\r\n?/g,`
3
3
  `):t=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 i=r.content[r.content.length-1],s=e.previousSibling;(!i||s&&s.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let r=e.nodeName.toLowerCase(),i;Il.hasOwnProperty(r)&&this.parser.normalizeLists&&kd(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,t));if(s?s.ignore:vd.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let o,a=this.top,l=this.needsBlock;if(Rl.hasOwnProperty(r))o=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}this.addAll(e),o&&this.sync(a),this.needsBlock=l}else this.addElementByRule(e,s,s.consuming===!1?i:void 0)}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
4
4
  `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=$.none;e:for(let r=0;r<e.length;r+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[r],e[r+1],this,i);if(!s)continue e;if(s.ignore)return null;if(t=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(t),s.consuming===!1)i=s;else break}return t}addElementByRule(e,t,r){let i,s,o;t.node?(s=this.parser.schema.nodes[t.node],s.isLeaf?this.insertNode(s.create(t.attrs))||this.leafFallback(e):i=this.enter(s,t.attrs||null,t.preserveWhitespace)):(o=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(o));let a=this.top;if(s&&s.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=e;typeof t.contentElement=="string"?l=e.querySelector(t.contentElement):typeof t.contentElement=="function"?l=t.contentElement(e):t.contentElement&&(l=t.contentElement),this.findAround(e,l,!0),this.addAll(l)}i&&this.sync(a)&&this.open--,o&&this.removePendingMark(o,a)}addAll(e,t,r){let i=t||0;for(let s=t?e.childNodes[t]:e.firstChild,o=r==null?null:e.childNodes[r];s!=o;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s);this.findAtPoint(e,i)}findPlace(e){let t,r;for(let i=this.open;i>=0;i--){let s=this.nodes[i],o=s.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,r=s,!o.length)||s.solid)break}if(!t)return!1;this.sync(r);for(let i=0;i<t.length;i++)this.enterInner(t[i],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let r=t.activeMarks;for(let i=0;i<e.marks.length;i++)(!t.type||t.type.allowsMarkType(e.marks[i].type))&&(r=e.marks[i].addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r){let i=this.findPlace(e.create(t));return i&&this.enterInner(e,t,!0,r),i}enterInner(e,t=null,r=!1,i){this.closeExtra();let s=this.top;s.applyPending(e),s.match=s.match&&s.match.matchType(e);let o=Vo(e,i,s.options);s.options&Zn&&s.content.length==0&&(o|=Zn),this.nodes.push(new Fr(e,t,s.activeMarks,s.pendingMarks,r,null,o)),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 r=this.nodes[t].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&t.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].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("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(a,l)=>{for(;a>=0;a--){let u=t[a];if(u==""){if(a==t.length-1||a==0)continue;for(;l>=s;l--)if(o(a-1,l))return!0;return!1}else{let c=l>0||l==0&&i?this.nodes[l].type:r&&l>=s?r.node(l-s).type:null;if(!c||c.name!=u&&c.groups.indexOf(u)==-1)return!1;l--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let t=Sd(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let r=this.open;r>=0;r--){let i=this.nodes[r];if(i.pendingMarks.lastIndexOf(e)>-1)i.pendingMarks=e.removeFromSet(i.pendingMarks);else{i.activeMarks=e.removeFromSet(i.activeMarks);let o=i.popFromStashMark(e);o&&i.type&&i.type.allowsMarkType(o.type)&&(i.activeMarks=o.addToSet(i.activeMarks))}if(i==t)break}}}function kd(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Il.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Cd(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Ed(n){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,t,r=[];for(;t=e.exec(n);)r.push(t[1],t[2].trim());return r}function jo(n){let e={};for(let t in n)e[t]=n[t];return e}function xd(n,e){let t=e.schema.nodes;for(let r in t){let i=t[r];if(!i.allowsMarkType(n))continue;let s=[],o=a=>{s.push(a);for(let l=0;l<a.edgeCount;l++){let{type:u,next:c}=a.edge(l);if(u==e||s.indexOf(c)<0&&o(c))return!0}};if(o(i.contentMatch))return!0}}function Sd(n,e){for(let t=0;t<e.length;t++)if(n.eq(e[t]))return e[t]}class Ze{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=Ki(t).createDocumentFragment());let i=r,s=[];return e.forEach(o=>{if(s.length||o.marks.length){let a=0,l=0;for(;a<s.length&&l<o.marks.length;){let u=o.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(s[a][0])||u.type.spec.spanning===!1)break;a++,l++}for(;a<s.length;)i=s.pop()[1];for(;l<o.marks.length;){let u=o.marks[l++],c=this.serializeMark(u,o.isInline,t);c&&(s.push([u,i]),i.appendChild(c.dom),i=c.contentDOM||c.dom)}}i.appendChild(this.serializeNodeInner(o,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:i}=Ze.renderSpec(Ki(t),this.nodes[e.type.name](e));if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,i)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let i=e.marks.length-1;i>=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,t);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,t,r={}){let i=this.marks[e.type.name];return i&&Ze.renderSpec(Ki(r),i(e,t))}static renderSpec(e,t,r=null){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let i=t[0],s=i.indexOf(" ");s>0&&(r=i.slice(0,s),i=i.slice(s+1));let o,a=r?e.createElementNS(r,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let c in l)if(l[c]!=null){let d=c.indexOf(" ");d>0?a.setAttributeNS(c.slice(0,d),c.slice(d+1),l[c]):a.setAttribute(c,l[c])}}for(let c=u;c<t.length;c++){let d=t[c];if(d===0){if(c<t.length-1||c>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:f,contentDOM:h}=Ze.renderSpec(e,d,r);if(a.appendChild(f),h){if(o)throw new RangeError("Multiple content holes");o=h}}}return{dom:a,contentDOM:o}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ze(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=$o(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return $o(e.marks)}}function $o(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Ki(n){return n.document||window.document}const Pl=65535,Ll=Math.pow(2,16);function Ad(n,e){return n+e*Ll}function _o(n){return n&Pl}function wd(n){return(n-(n&Pl))/Ll}const zl=1,Vl=2,zr=4,Hl=8;class vs{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&Hl)>0}get deletedBefore(){return(this.delInfo&(zl|zr))>0}get deletedAfter(){return(this.delInfo&(Vl|zr))>0}get deletedAcross(){return(this.delInfo&zr)>0}}class Be{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Be.empty)return Be.empty}recover(e){let t=0,r=_o(e);if(!this.inverted)for(let i=0;i<r;i++)t+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+t+wd(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let i=0,s=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?i:0);if(l>e)break;let u=this.ranges[a+s],c=this.ranges[a+o],d=l+u;if(e<=d){let f=u?e==l?-1:e==d?1:t:t,h=l+i+(f<0?0:c);if(r)return h;let p=e==(t<0?l:d)?null:Ad(a/3,e-l),m=e==l?Vl:e==d?zl:zr;return(t<0?e!=l:e!=d)&&(m|=Hl),new vs(h,m,p)}i+=c-u}return r?e+i:new vs(e+i,0,null)}touches(e,t){let r=0,i=_o(t),s=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let u=this.ranges[a+s],c=l+u;if(e<=c&&a==i*3)return!0;r+=this.ranges[a+o]-u}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i<this.ranges.length;i+=3){let o=this.ranges[i],a=o-(this.inverted?s:0),l=o+(this.inverted?0:s),u=this.ranges[i+t],c=this.ranges[i+r];e(a,a+u,l,l+c),s+=c-u}}invert(){return new Be(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Be.empty:new Be(e<0?[0,-e,0]:[0,0,e])}}Be.empty=new Be([]);class bn{constructor(e=[],t,r=0,i=e.length){this.maps=e,this.mirror=t,this.from=r,this.to=i}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),t!=null&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,r=this.maps.length;t<e.maps.length;t++){let i=e.getMirror(t);this.appendMap(e.maps[t],i!=null&&i<t?r+i: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,r=this.maps.length+e.maps.length;t>=0;t--){let i=e.getMirror(t);this.appendMap(e.maps[t].invert(),i!=null&&i>t?r-i-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 r=this.from;r<this.to;r++)e=this.maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let i=0;for(let s=this.from;s<this.to;s++){let o=this.maps[s],a=o.mapResult(e,t);if(a.recover!=null){let l=this.getMirror(s);if(l!=null&&l>s&&l<this.to){s=l,e=this.maps[l].recover(a.recover);continue}}i|=a.delInfo,e=a.pos}return r?e:new vs(e,i,null)}}const qi=Object.create(null);class xe{getMap(){return Be.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=qi[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in qi)throw new RangeError("Duplicate use of step JSON ID "+e);return qi[e]=t,t.prototype.jsonID=e,t}}class X{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new X(e,null)}static fail(e){return new X(null,e)}static fromReplace(e,t,r,i){try{return X.ok(e.replace(t,r,i))}catch(s){if(s instanceof ur)return X.fail(s.message);throw s}}}function Ws(n,e,t){let r=[];for(let i=0;i<n.childCount;i++){let s=n.child(i);s.content.size&&(s=s.copy(Ws(s.content,e,s))),s.isInline&&(s=e(s,t,i)),r.push(s)}return k.fromArray(r)}class xt extends xe{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new S(Ws(t.content,(o,a)=>!o.isAtom||!a.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),t.openStart,t.openEnd);return X.fromReplace(e,this.from,this.to,s)}invert(){return new et(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new xt(t.pos,r.pos,this.mark)}merge(e){return e instanceof xt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new xt(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(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new xt(t.from,t.to,e.markFromJSON(t.mark))}}xe.jsonID("addMark",xt);class et extends xe{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new S(Ws(t.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),t.openStart,t.openEnd);return X.fromReplace(e,this.from,this.to,r)}invert(){return new xt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new et(t.pos,r.pos,this.mark)}merge(e){return e instanceof et&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new et(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(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new et(t.from,t.to,e.markFromJSON(t.mark))}}xe.jsonID("removeMark",et);class St extends xe{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return X.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return X.fromReplace(e,this.pos,this.pos+1,new S(k.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let i=0;i<t.marks.length;i++)if(!t.marks[i].isInSet(r))return new St(this.pos,t.marks[i]);return new St(this.pos,this.mark)}}return new En(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new St(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new St(t.pos,e.markFromJSON(t.mark))}}xe.jsonID("addNodeMark",St);class En extends xe{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return X.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return X.fromReplace(e,this.pos,this.pos+1,new S(k.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new St(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new En(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new En(t.pos,e.markFromJSON(t.mark))}}xe.jsonID("removeNodeMark",En);class he extends xe{constructor(e,t,r,i=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=i}apply(e){return this.structure&&ks(e,this.from,this.to)?X.fail("Structure replace would overwrite content"):X.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Be([this.from,this.to-this.from,this.slice.size])}invert(e){return new he(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new he(t.pos,Math.max(t.pos,r.pos),this.slice)}merge(e){if(!(e instanceof he)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?S.empty:new S(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new he(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?S.empty:new S(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new he(e.from,this.to,t,this.structure)}else return null}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(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new he(t.from,t.to,S.fromJSON(e,t.slice),!!t.structure)}}xe.jsonID("replace",he);class ne extends xe{constructor(e,t,r,i,s,o,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=i,this.slice=s,this.insert=o,this.structure=a}apply(e){if(this.structure&&(ks(e,this.from,this.gapFrom)||ks(e,this.gapTo,this.to)))return X.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return X.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?X.fromReplace(e,this.from,this.to,r):X.fail("Content does not fit in gap")}getMap(){return new Be([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 ne(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),r=e.mapResult(this.to,-1),i=e.map(this.gapFrom,-1),s=e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||i<t.pos||s>r.pos?null:new ne(t.pos,r.pos,i,s,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(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ne(t.from,t.to,t.gapFrom,t.gapTo,S.fromJSON(e,t.slice),t.insert,!!t.structure)}}xe.jsonID("replaceAround",ne);function ks(n,e,t){let r=n.resolve(e),i=t-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function Od(n,e,t,r){let i=[],s=[],o,a;n.doc.nodesBetween(e,t,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let f=Math.max(u,e),h=Math.min(u+l.nodeSize,t),p=r.addToSet(d);for(let m=0;m<d.length;m++)d[m].isInSet(p)||(o&&o.to==f&&o.mark.eq(d[m])?o.to=h:i.push(o=new et(f,h,d[m])));a&&a.to==f?a.to=h:s.push(a=new xt(f,h,r))}}),i.forEach(l=>n.step(l)),s.forEach(l=>n.step(l))}function Md(n,e,t,r){let i=[],s=0;n.doc.nodesBetween(e,t,(o,a)=>{if(!o.isInline)return;s++;let l=null;if(r instanceof Si){let u=o.marks,c;for(;c=r.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(o.marks)&&(l=[r]):l=o.marks;if(l&&l.length){let u=Math.min(a+o.nodeSize,t);for(let c=0;c<l.length;c++){let d=l[c],f;for(let h=0;h<i.length;h++){let p=i[h];p.step==s-1&&d.eq(i[h].style)&&(f=p)}f?(f.to=u,f.step=s):i.push({style:d,from:Math.max(a,e),to:u,step:s})}}}),i.forEach(o=>n.step(new et(o.from,o.to,o.style)))}function Td(n,e,t,r=t.contentMatch){let i=n.doc.nodeAt(e),s=[],o=e+1;for(let a=0;a<i.childCount;a++){let l=i.child(a),u=o+l.nodeSize,c=r.matchType(l.type);if(!c)s.push(new he(o,u,S.empty));else{r=c;for(let d=0;d<l.marks.length;d++)t.allowsMarkType(l.marks[d].type)||n.step(new et(o,u,l.marks[d]))}o=u}if(!r.validEnd){let a=r.fillBefore(k.empty,!0);n.replace(o,o,new S(a,0,0))}for(let a=s.length-1;a>=0;a--)n.step(s[a])}function Fd(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Nn(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let i=n.$from.node(r),s=n.$from.index(r),o=n.$to.indexAfter(r);if(r<n.depth&&i.canReplace(s,o,t))return r;if(r==0||i.type.spec.isolating||!Fd(i,s,o))break}return null}function Nd(n,e,t){let{$from:r,$to:i,depth:s}=e,o=r.before(s+1),a=i.after(s+1),l=o,u=a,c=k.empty,d=0;for(let p=s,m=!1;p>t;p--)m||r.index(p)>0?(m=!0,c=k.from(r.node(p).copy(c)),d++):l--;let f=k.empty,h=0;for(let p=s,m=!1;p>t;p--)m||i.after(p+1)<i.end(p)?(m=!0,f=k.from(i.node(p).copy(f)),h++):u++;n.step(new ne(l,u,o,a,new S(c.append(f),d,h),c.size-d,!0))}function Ks(n,e,t=null,r=n){let i=Bd(n,e),s=i&&Rd(r,e);return s?i.map(Wo).concat({type:e,attrs:t}).concat(s.map(Wo)):null}function Wo(n){return{type:n,attrs:null}}function Bd(n,e){let{parent:t,startIndex:r,endIndex:i}=n,s=t.contentMatchAt(r).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return t.canReplaceWith(r,i,o)?s:null}function Rd(n,e){let{parent:t,startIndex:r,endIndex:i}=n,s=t.child(r),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:e).contentMatch;for(let u=r;l&&u<i;u++)l=l.matchType(t.child(u).type);return!l||!l.validEnd?null:o}function Id(n,e,t){let r=k.empty;for(let o=t.length-1;o>=0;o--){if(r.size){let a=t[o].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=k.from(t[o].type.create(t[o].attrs,r))}let i=e.start,s=e.end;n.step(new ne(i,s,i,s,new S(r,0,0),t.length,!0))}function Pd(n,e,t,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(e,t,(o,a)=>{if(o.isTextblock&&!o.hasMarkup(r,i)&&Ld(n.doc,n.mapping.slice(s).map(a),r)){n.clearIncompatible(n.mapping.slice(s).map(a,1),r);let l=n.mapping.slice(s),u=l.map(a,1),c=l.map(a+o.nodeSize,1);return n.step(new ne(u,c,u+1,c-1,new S(k.from(r.create(i,null,o.marks)),0,0),1,!0)),!1}})}function Ld(n,e,t){let r=n.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,t)}function zd(n,e,t,r,i){let s=n.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");t||(t=s.type);let o=t.create(r,null,i||s.marks);if(s.isLeaf)return n.replaceWith(e,e+s.nodeSize,o);if(!t.validContent(s.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new ne(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new S(k.from(o),0,0),1,!0))}function dt(n,e,t=1,r){let i=n.resolve(e),s=i.depth-t,o=r&&r[r.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let u=i.depth-1,c=t-2;u>s;u--,c--){let d=i.node(u),f=i.index(u);if(d.type.spec.isolating)return!1;let h=d.content.cutByIndex(f,d.childCount),p=r&&r[c]||d;if(p!=d&&(h=h.replaceChild(0,p.type.create(p.attrs))),!d.canReplace(f+1,d.childCount)||!p.type.validContent(h))return!1}let a=i.indexAfter(s),l=r&&r[0];return i.node(s).canReplaceWith(a,a,l?l.type:i.node(s+1).type)}function Vd(n,e,t=1,r){let i=n.doc.resolve(e),s=k.empty,o=k.empty;for(let a=i.depth,l=i.depth-t,u=t-1;a>l;a--,u--){s=k.from(i.node(a).copy(s));let c=r&&r[u];o=k.from(c?c.type.create(c.attrs,o):i.node(a).copy(o))}n.step(new he(e,e,new S(s.append(o),t,t),!0))}function Bn(n,e){let t=n.resolve(e),r=t.index();return Hd(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function Hd(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function jd(n,e,t){let r=new he(e-t,e+t,S.empty,!0);n.step(r)}function $d(n,e,t){let r=n.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),t))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let s=r.index(i);if(r.node(i).canReplaceWith(s,s,t))return r.before(i+1);if(s>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let s=r.indexAfter(i);if(r.node(i).canReplaceWith(s,s,t))return r.after(i+1);if(s<r.node(i).childCount)return null}return null}function jl(n,e,t){let r=n.resolve(e);if(!t.content.size)return e;let i=t.content;for(let s=0;s<t.openStart;s++)i=i.firstChild.content;for(let s=1;s<=(t.openStart==0&&t.size?2:1);s++)for(let o=r.depth;o>=0;o--){let a=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,l=r.index(o)+(a>0?1:0),u=r.node(o),c=!1;if(s==1)c=u.canReplace(l,l,i);else{let d=u.contentMatchAt(l).findWrapping(i.firstChild.type);c=d&&u.canReplaceWith(l,l,d[0])}if(c)return a==0?r.pos:a<0?r.before(o+1):r.after(o+1)}return null}function qs(n,e,t=e,r=S.empty){if(e==t&&!r.size)return null;let i=n.resolve(e),s=n.resolve(t);return $l(i,s,r)?new he(e,t,r):new _d(i,s,r).fit()}function $l(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class _d{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=k.empty;for(let i=0;i<=e.depth;i++){let s=e.node(i);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=k.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let s=this.placed,o=r.depth,a=i.depth;for(;o&&a&&s.childCount==1;)s=s.firstChild.content,o--,a--;let l=new S(s,o,a);return e>-1?new ne(r.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||r.pos!=this.$to.pos?new he(r.pos,i.pos,l):null}findFittable(){for(let e=1;e<=2;e++)for(let t=this.unplaced.openStart;t>=0;t--){let r,i=null;t?(i=Ui(this.unplaced.content,t-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let o=this.depth;o>=0;o--){let{type:a,match:l}=this.frontier[o],u,c=null;if(e==1&&(s?l.matchType(s.type)||(c=l.fillBefore(k.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:t,frontierDepth:o,parent:i,inject:c};if(e==2&&s&&(u=l.findWrapping(s.type)))return{sliceDepth:t,frontierDepth:o,parent:i,wrap:u};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=Ui(e,t);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new S(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=Ui(e,t);if(i.childCount<=1&&t>0){let s=e.size-t<=t+i.size;this.unplaced=new S(Gn(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new S(Gn(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:s}){for(;this.depth>t;)this.closeFrontierNode();if(s)for(let m=0;m<s.length;m++)this.openFrontierNode(s[m]);let o=this.unplaced,a=r?r.content:o.content,l=o.openStart-e,u=0,c=[],{match:d,type:f}=this.frontier[t];if(i){for(let m=0;m<i.childCount;m++)c.push(i.child(m));d=d.matchFragment(i)}let h=a.size+e-(o.content.size-o.openEnd);for(;u<a.childCount;){let m=a.child(u),y=d.matchType(m.type);if(!y)break;u++,(u>1||l==0||m.content.size)&&(d=y,c.push(_l(m.mark(f.allowedMarks(m.marks)),u==1?l:0,u==a.childCount?h:-1)))}let p=u==a.childCount;p||(h=-1),this.placed=Yn(this.placed,t,k.from(c)),this.frontier[t].match=d,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,y=a;m<h;m++){let D=y.lastChild;this.frontier.push({type:D.type,match:D.contentMatchAt(D.childCount)}),y=D.content}this.unplaced=p?e==0?S.empty:new S(Gn(o.content,e-1,1),e-1,h<0?o.openEnd:e-1):new S(Gn(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Ji(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:i}=this.frontier[t],s=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=Ji(e,t,i,r,s);if(!!o){for(let a=t-1;a>=0;a--){let{match:l,type:u}=this.frontier[a],c=Ji(e,a,u,l,!0);if(!c||c.childCount)continue e}return{depth:t,fit:o,move:s?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=Yn(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let i=e.node(r),s=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,s)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Yn(this.placed,this.depth,k.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(k.empty,!0);t.childCount&&(this.placed=Yn(this.placed,this.frontier.length,t))}}function Gn(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(Gn(n.firstChild.content,e-1,t)))}function Yn(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(Yn(n.lastChild.content,e-1,t)))}function Ui(n,e){for(let t=0;t<e;t++)n=n.firstChild.content;return n}function _l(n,e,t){if(e<=0)return n;let r=n.content;return e>1&&(r=r.replaceChild(0,_l(r.firstChild,e-1,r.childCount==1?t-1:0))),e>0&&(r=n.type.contentMatch.fillBefore(r).append(r),t<=0&&(r=r.append(n.type.contentMatch.matchFragment(r).fillBefore(k.empty,!0)))),n.copy(r)}function Ji(n,e,t,r,i){let s=n.node(e),o=i?n.indexAfter(e):n.index(e);if(o==s.childCount&&!t.compatibleContent(s.type))return null;let a=r.fillBefore(s.content,!0,o);return a&&!Wd(t,s.content,o)?a:null}function Wd(n,e,t){for(let r=t;r<e.childCount;r++)if(!n.allowsMarks(e.child(r).marks))return!0;return!1}function Kd(n){return n.spec.defining||n.spec.definingForContent}function qd(n,e,t,r){if(!r.size)return n.deleteRange(e,t);let i=n.doc.resolve(e),s=n.doc.resolve(t);if($l(i,s,r))return n.step(new he(e,t,r));let o=Kl(i,n.doc.resolve(t));o[o.length-1]==0&&o.pop();let a=-(i.depth+1);o.unshift(a);for(let f=i.depth,h=i.pos-1;f>0;f--,h--){let p=i.node(f).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;o.indexOf(f)>-1?a=f:i.before(f)==h&&o.splice(1,0,-f)}let l=o.indexOf(a),u=[],c=r.openStart;for(let f=r.content,h=0;;h++){let p=f.firstChild;if(u.push(p),h==r.openStart)break;f=p.content}for(let f=c-1;f>=0;f--){let h=u[f].type,p=Kd(h);if(p&&i.node(l).type!=h)c=f;else if(p||!h.isTextblock)break}for(let f=r.openStart;f>=0;f--){let h=(f+c+1)%(r.openStart+1),p=u[h];if(!!p)for(let m=0;m<o.length;m++){let y=o[(m+l)%o.length],D=!0;y<0&&(D=!1,y=-y);let v=i.node(y-1),w=i.index(y-1);if(v.canReplaceWith(w,w,p.type,p.marks))return n.replace(i.before(y),D?s.after(y):t,new S(Wl(r.content,0,r.openStart,h),h,r.openEnd))}}let d=n.steps.length;for(let f=o.length-1;f>=0&&(n.replace(e,t,r),!(n.steps.length>d));f--){let h=o[f];h<0||(e=i.before(h),t=s.after(h))}}function Wl(n,e,t,r,i){if(e<t){let s=n.firstChild;n=n.replaceChild(0,s.copy(Wl(s.content,e+1,t,r,s)))}if(e>r){let s=i.contentMatchAt(0),o=s.fillBefore(n).append(n);n=o.append(s.matchFragment(o).fillBefore(k.empty,!0))}return n}function Ud(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let i=$d(n.doc,e,r.type);i!=null&&(e=t=i)}n.replaceRange(e,t,new S(k.from(r),0,0))}function Jd(n,e,t){let r=n.doc.resolve(e),i=n.doc.resolve(t),s=Kl(r,i);for(let o=0;o<s.length;o++){let a=s[o],l=o==s.length-1;if(l&&a==0||r.node(a).type.contentMatch.validEnd)return n.delete(r.start(a),i.end(a));if(a>0&&(l||r.node(a-1).canReplace(r.index(a-1),i.indexAfter(a-1))))return n.delete(r.before(a),i.after(a))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(e-r.start(o)==r.depth-o&&t>r.end(o)&&i.end(o)-t!=i.depth-o)return n.delete(r.before(o),t);n.delete(e,t)}function Kl(n,e){let t=[],r=Math.min(n.depth,e.depth);for(let i=r;i>=0;i--){let s=n.start(i);if(s<n.pos-(n.depth-i)||e.end(i)>e.pos+(e.depth-i)||n.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(s==e.start(i)||i==n.depth&&i==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==s-1)&&t.push(i)}return t}class vn extends xe{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return X.fail("No node at attribute step's position");let r=Object.create(null);for(let s in t.attrs)r[s]=t.attrs[s];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return X.fromReplace(e,this.pos,this.pos+1,new S(k.from(i),0,t.isLeaf?0:1))}getMap(){return Be.empty}invert(e){return new vn(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 vn(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new vn(t.pos,t.attr,t.value)}}xe.jsonID("attr",vn);let xn=class extends Error{};xn=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t};xn.prototype=Object.create(Error.prototype);xn.prototype.constructor=xn;xn.prototype.name="TransformError";class ql{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 xn(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,r=S.empty){let i=qs(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new S(k.from(r),0,0))}delete(e,t){return this.replace(e,t,S.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return qd(this,e,t,r),this}replaceRangeWith(e,t,r){return Ud(this,e,t,r),this}deleteRange(e,t){return Jd(this,e,t),this}lift(e,t){return Nd(this,e,t),this}join(e,t=1){return jd(this,e,t),this}wrap(e,t){return Id(this,e,t),this}setBlockType(e,t=e,r,i=null){return Pd(this,e,t,r,i),this}setNodeMarkup(e,t,r=null,i=[]){return zd(this,e,t,r,i),this}setNodeAttribute(e,t,r){return this.step(new vn(e,t,r)),this}addNodeMark(e,t){return this.step(new St(e,t)),this}removeNodeMark(e,t){if(!(t instanceof $)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(t=t.isInSet(r.marks),!t)return this}return this.step(new En(e,t)),this}split(e,t=1,r){return Vd(this,e,t,r),this}addMark(e,t,r){return Od(this,e,t,r),this}removeMark(e,t,r){return Md(this,e,t,r),this}clearIncompatible(e,t,r){return Td(this,e,t,r),this}}const Gi=Object.create(null);class P{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new Gd(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=S.empty){let r=t.content.lastChild,i=null;for(let a=0;a<t.openEnd;a++)i=r,r=r.lastChild;let s=e.steps.length,o=this.ranges;for(let a=0;a<o.length;a++){let{$from:l,$to:u}=o[a],c=e.mapping.slice(s);e.replaceRange(c.map(l.pos),c.map(u.pos),a?S.empty:t),a==0&&Uo(e,s,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){let{$from:o,$to:a}=i[s],l=e.mapping.slice(r),u=l.map(o.pos),c=l.map(a.pos);s?e.deleteRange(u,c):(e.replaceRangeWith(u,c,t),Uo(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let i=e.parent.inlineContent?new L(e):an(e.node(0),e.parent,e.pos,e.index(),t,r);if(i)return i;for(let s=e.depth-1;s>=0;s--){let o=t<0?an(e.node(0),e.node(s),e.before(s+1),e.index(s),t,r):an(e.node(0),e.node(s),e.after(s+1),e.index(s)+1,t,r);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Oe(e.node(0))}static atStart(e){return an(e,e,0,0,1)||new Oe(e)}static atEnd(e){return an(e,e,e.content.size,e.childCount,-1)||new Oe(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Gi[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in Gi)throw new RangeError("Duplicate use of selection JSON ID "+e);return Gi[e]=t,t.prototype.jsonID=e,t}getBookmark(){return L.between(this.$anchor,this.$head).getBookmark()}}P.prototype.visible=!0;class Gd{constructor(e,t){this.$from=e,this.$to=t}}let Ko=!1;function qo(n){!Ko&&!n.parent.inlineContent&&(Ko=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class L extends P{constructor(e,t=e){qo(e),qo(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return P.near(r);let i=e.resolve(t.map(this.anchor));return new L(i.parent.inlineContent?i:r,r)}replace(e,t=S.empty){if(super.replace(e,t),t==S.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof L&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Ai(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new L(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let i=e.resolve(t);return new this(i,r==t?i:e.resolve(r))}static between(e,t,r){let i=e.pos-t.pos;if((!r||i)&&(r=i>=0?1:-1),!t.parent.inlineContent){let s=P.findFrom(t,r,!0)||P.findFrom(t,-r,!0);if(s)t=s.$head;else return P.near(t,r)}return e.parent.inlineContent||(i==0?e=t:(e=(P.findFrom(e,-r,!0)||P.findFrom(e,r,!0)).$anchor,e.pos<t.pos!=i<0&&(e=t))),new L(e,t)}}P.jsonID("text",L);class Ai{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Ai(e.map(this.anchor),e.map(this.head))}resolve(e){return L.between(e.resolve(this.anchor),e.resolve(this.head))}}class B extends P{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:i}=t.mapResult(this.anchor),s=e.resolve(i);return r?P.near(s):new B(s)}content(){return new S(k.from(this.node),0,0)}eq(e){return e instanceof B&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Us(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new B(e.resolve(t.anchor))}static create(e,t){return new B(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}B.prototype.visible=!1;P.jsonID("node",B);class Us{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new Ai(r,r):new Us(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&B.isSelectable(r)?new B(t):P.near(t)}}class Oe extends P{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=S.empty){if(t==S.empty){e.delete(0,e.doc.content.size);let r=P.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Oe(e)}map(e){return new Oe(e)}eq(e){return e instanceof Oe}getBookmark(){return Yd}}P.jsonID("all",Oe);const Yd={map(){return this},resolve(n){return new Oe(n)}};function an(n,e,t,r,i,s=!1){if(e.inlineContent)return L.create(n,t);for(let o=r-(i>0?0:1);i>0?o<e.childCount:o>=0;o+=i){let a=e.child(o);if(a.isAtom){if(!s&&B.isSelectable(a))return B.create(n,t-(i<0?a.nodeSize:0))}else{let l=an(n,a,t+i,i<0?a.childCount:0,i,s);if(l)return l}t+=a.nodeSize*i}return null}function Uo(n,e,t){let r=n.steps.length-1;if(r<e)return;let i=n.steps[r];if(!(i instanceof he||i instanceof ne))return;let s=n.mapping.maps[r],o;s.forEach((a,l,u,c)=>{o==null&&(o=c)}),n.setSelection(P.near(n.doc.resolve(o),t))}const Jo=1,Nr=2,Go=4;class Xd extends ql{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=(this.updated|Jo)&~Nr,this.storedMarks=null,this}get selectionSet(){return(this.updated&Jo)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Nr,this}ensureMarks(e){return $.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(this.updated&Nr)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~Nr,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||$.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let i=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=t),r=r==null?t:r,!e)return this.deleteRange(t,r);let s=this.storedMarks;if(!s){let o=this.doc.resolve(t);s=r==t?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,i.text(e,s)),this.selection.empty||this.setSelection(P.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Go,this}get scrolledIntoView(){return(this.updated&Go)>0}}function Yo(n,e){return!e||!n?n:n.bind(e)}class Xn{constructor(e,t,r){this.name=e,this.init=Yo(t.init,r),this.apply=Yo(t.apply,r)}}const Qd=[new Xn("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new Xn("selection",{init(n,e){return n.selection||P.atStart(e.doc)},apply(n){return n.selection}}),new Xn("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new Xn("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class Yi{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Qd.slice(),t&&t.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Xn(r.key,r.spec.state,r))})}}class cn{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 r=0;r<this.config.plugins.length;r++)if(r!=t){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),i=null;for(;;){let s=!1;for(let o=0;o<this.config.plugins.length;o++){let a=this.config.plugins[o];if(a.spec.appendTransaction){let l=i?i[o].n:0,u=i?i[o].state:this,c=l<t.length&&a.spec.appendTransaction.call(a,l?t.slice(l):t,u,r);if(c&&r.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!i){i=[];for(let d=0;d<this.config.plugins.length;d++)i.push(d<o?{state:r,n:t.length}:{state:this,n:0})}t.push(c),r=r.applyInner(c),s=!0}i&&(i[o]={state:r,n:t.length})}}if(!s)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new cn(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let s=r[i];t[s.name]=s.apply(e,this[s.name],this,t)}return t}get tr(){return new Xd(this)}static create(e){let t=new Yi(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new cn(t);for(let i=0;i<t.fields.length;i++)r[t.fields[i].name]=t.fields[i].init(e,r);return r}reconfigure(e){let t=new Yi(this.schema,e.plugins),r=t.fields,i=new cn(t);for(let s=0;s<r.length;s++){let o=r[s].name;i[o]=this.hasOwnProperty(o)?this[o]:r[s].init(e,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],s=i.spec.state;s&&s.toJSON&&(t[r]=s.toJSON.call(i,this[i.key]))}return t}static fromJSON(e,t,r){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new Yi(e.schema,e.plugins),s=new cn(i);return i.fields.forEach(o=>{if(o.name=="doc")s.doc=tt.fromJSON(e.schema,t.doc);else if(o.name=="selection")s.selection=P.fromJSON(s.doc,t.selection);else if(o.name=="storedMarks")t.storedMarks&&(s.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let a in r){let l=r[a],u=l.spec.state;if(l.key==o.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(t,a)){s[o.name]=u.fromJSON.call(l,e,t[a],s);return}}s[o.name]=o.init(e,s)}}),s}}function Ul(n,e,t){for(let r in n){let i=n[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=Ul(i,e,{})),t[r]=i}return t}class ue{constructor(e){this.spec=e,this.props={},e.props&&Ul(e.props,this,this.props),this.key=e.key?e.key.key:Jl("plugin")}getState(e){return e[this.key]}}const Xi=Object.create(null);function Jl(n){return n in Xi?n+"$"+ ++Xi[n]:(Xi[n]=0,n+"$")}class Me{constructor(e="key"){this.key=Jl(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const we=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},dr=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let Xo=null;const ot=function(n,e,t){let r=Xo||(Xo=document.createRange());return r.setEnd(n,t==null?n.nodeValue.length:t),r.setStart(n,e||0),r},Xt=function(n,e,t,r){return t&&(Qo(n,e,t,r,-1)||Qo(n,e,t,r,1))},Zd=/^(img|br|input|textarea|hr)$/i;function Qo(n,e,t,r,i){for(;;){if(n==t&&e==r)return!0;if(e==(i<0?0:Xe(n))){let s=n.parentNode;if(!s||s.nodeType!=1||tf(n)||Zd.test(n.nodeName)||n.contentEditable=="false")return!1;e=we(n)+(i<0?0:1),n=s}else if(n.nodeType==1){if(n=n.childNodes[e+(i<0?-1:0)],n.contentEditable=="false")return!1;e=i<0?Xe(n):0}else return!1}}function Xe(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function ef(n,e,t){for(let r=e==0,i=e==Xe(n);r||i;){if(n==t)return!0;let s=we(n);if(n=n.parentNode,!n)return!1;r=r&&s==0,i=i&&s==Xe(n)}}function tf(n){let e;for(let t=n;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==n||e.contentDOM==n)}const wi=function(n){return n.focusNode&&Xt(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function dn(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}function nf(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}const Nt=typeof navigator!="undefined"?navigator:null,Zo=typeof document!="undefined"?document:null,Rt=Nt&&Nt.userAgent||"",Cs=/Edge\/(\d+)/.exec(Rt),Gl=/MSIE \d/.exec(Rt),Es=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Rt),Ce=!!(Gl||Es||Cs),Ot=Gl?document.documentMode:Es?+Es[1]:Cs?+Cs[1]:0,$e=!Ce&&/gecko\/(\d+)/i.test(Rt);$e&&+(/Firefox\/(\d+)/.exec(Rt)||[0,0])[1];const xs=!Ce&&/Chrome\/(\d+)/.exec(Rt),ke=!!xs,rf=xs?+xs[1]:0,ye=!Ce&&!!Nt&&/Apple Computer/.test(Nt.vendor),Sn=ye&&(/Mobile\/\w+/.test(Rt)||!!Nt&&Nt.maxTouchPoints>2),Ne=Sn||(Nt?/Mac/.test(Nt.platform):!1),Qe=/Android \d/.test(Rt),Oi=!!Zo&&"webkitFontSmoothing"in Zo.documentElement.style,sf=Oi?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function of(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function yt(n,e){return typeof n=="number"?n:n[e]}function af(n){let e=n.getBoundingClientRect(),t=e.width/n.offsetWidth||1,r=e.height/n.offsetHeight||1;return{left:e.left,right:e.left+n.clientWidth*t,top:e.top,bottom:e.top+n.clientHeight*r}}function ea(n,e,t){let r=n.someProp("scrollThreshold")||0,i=n.someProp("scrollMargin")||5,s=n.dom.ownerDocument;for(let o=t||n.dom;o;o=dr(o)){if(o.nodeType!=1)continue;let a=o,l=a==s.body,u=l?of(s):af(a),c=0,d=0;if(e.top<u.top+yt(r,"top")?d=-(u.top-e.top+yt(i,"top")):e.bottom>u.bottom-yt(r,"bottom")&&(d=e.bottom-u.bottom+yt(i,"bottom")),e.left<u.left+yt(r,"left")?c=-(u.left-e.left+yt(i,"left")):e.right>u.right-yt(r,"right")&&(c=e.right-u.right+yt(i,"right")),c||d)if(l)s.defaultView.scrollBy(c,d);else{let f=a.scrollLeft,h=a.scrollTop;d&&(a.scrollTop+=d),c&&(a.scrollLeft+=c);let p=a.scrollLeft-f,m=a.scrollTop-h;e={left:e.left-p,top:e.top-m,right:e.right-p,bottom:e.bottom-m}}if(l)break}}function lf(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,i;for(let s=(e.left+e.right)/2,o=t+1;o<Math.min(innerHeight,e.bottom);o+=5){let a=n.root.elementFromPoint(s,o);if(!a||a==n.dom||!n.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=t-20){r=a,i=l.top;break}}return{refDOM:r,refTop:i,stack:Yl(n.dom)}}function Yl(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=dr(r));return e}function uf({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;Xl(t,r==0?0:r-e)}function Xl(n,e){for(let t=0;t<n.length;t++){let{dom:r,top:i,left:s}=n[t];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=s&&(r.scrollLeft=s)}}let on=null;function cf(n){if(n.setActive)return n.setActive();if(on)return n.focus(on);let e=Yl(n);n.focus(on==null?{get preventScroll(){return on={preventScroll:!0},!0}}:void 0),on||(on=!1,Xl(e,0))}function Ql(n,e){let t,r=2e8,i,s=0,o=e.top,a=e.top;for(let l=n.firstChild,u=0;l;l=l.nextSibling,u++){let c;if(l.nodeType==1)c=l.getClientRects();else if(l.nodeType==3)c=ot(l).getClientRects();else continue;for(let d=0;d<c.length;d++){let f=c[d];if(f.top<=o&&f.bottom>=a){o=Math.max(f.bottom,o),a=Math.min(f.top,a);let h=f.left>e.left?f.left-e.left:f.right<e.left?e.left-f.right:0;if(h<r){t=l,r=h,i=h&&t.nodeType==3?{left:f.right<e.left?f.right:f.left,top:e.top}:e,l.nodeType==1&&h&&(s=u+(e.left>=(f.left+f.right)/2?1:0));continue}}!t&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(s=u+1)}}return t&&t.nodeType==3?df(t,i):!t||r&&t.nodeType==1?{node:n,offset:s}:Ql(t,i)}function df(n,e){let t=n.nodeValue.length,r=document.createRange();for(let i=0;i<t;i++){r.setEnd(n,i+1),r.setStart(n,i);let s=Dt(r,1);if(s.top!=s.bottom&&Js(e,s))return{node:n,offset:i+(e.left>=(s.left+s.right)/2?1:0)}}return{node:n,offset:0}}function Js(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function ff(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<n.getBoundingClientRect().left?t:n}function hf(n,e,t){let{node:r,offset:i}=Ql(e,t),s=-1;if(r.nodeType==1&&!r.firstChild){let o=r.getBoundingClientRect();s=o.left!=o.right&&t.left>(o.left+o.right)/2?1:-1}return n.docView.posFromDOM(r,i,s)}function pf(n,e,t,r){let i=-1;for(let s=e;s!=n.dom;){let o=n.docView.nearestDesc(s,!0);if(!o)return null;if(o.node.isBlock&&o.parent){let a=o.dom.getBoundingClientRect();if(a.left>r.left||a.top>r.top)i=o.posBefore;else if(a.right<r.left||a.bottom<r.top)i=o.posAfter;else break}s=o.dom.parentNode}return i>-1?i:n.docView.posFromDOM(e,t,1)}function Zl(n,e,t){let r=n.childNodes.length;if(r&&t.top<t.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-t.top)/(t.bottom-t.top))-2)),s=i;;){let o=n.childNodes[s];if(o.nodeType==1){let a=o.getClientRects();for(let l=0;l<a.length;l++){let u=a[l];if(Js(e,u))return Zl(o,e,u)}}if((s=(s+1)%r)==i)break}return n}function mf(n,e){let t=n.dom.ownerDocument,r,i=0;if(t.caretPositionFromPoint)try{let l=t.caretPositionFromPoint(e.left,e.top);l&&({offsetNode:r,offset:i}=l)}catch{}if(!r&&t.caretRangeFromPoint){let l=t.caretRangeFromPoint(e.left,e.top);l&&({startContainer:r,startOffset:i}=l)}let s=(n.root.elementFromPoint?n.root:t).elementFromPoint(e.left,e.top),o;if(!s||!n.dom.contains(s.nodeType!=1?s.parentNode:s)){let l=n.dom.getBoundingClientRect();if(!Js(e,l)||(s=Zl(n.dom,e,l),!s))return null}if(ye)for(let l=s;r&&l;l=dr(l))l.draggable&&(r=void 0);if(s=ff(s,e),r){if($e&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let l=r.childNodes[i],u;l.nodeName=="IMG"&&(u=l.getBoundingClientRect()).right<=e.left&&u.bottom>e.top&&i++}r==n.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?o=n.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(o=pf(n,r,i,e))}o==null&&(o=hf(n,s,e));let a=n.docView.nearestDesc(s,!0);return{pos:o,inside:a?a.posAtStart-a.border:-1}}function Dt(n,e){let t=n.getClientRects();return t.length?t[e<0?0:t.length-1]:n.getBoundingClientRect()}const gf=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function eu(n,e,t){let{node:r,offset:i,atom:s}=n.docView.domFromPos(e,t<0?-1:1),o=Oi||$e;if(r.nodeType==3)if(o&&(gf.test(r.nodeValue)||(t<0?!i:i==r.nodeValue.length))){let l=Dt(ot(r,i,i),t);if($e&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let u=Dt(ot(r,i-1,i-1),-1);if(u.top==l.top){let c=Dt(ot(r,i,i+1),-1);if(c.top!=l.top)return $n(c,c.left<u.left)}}return l}else{let l=i,u=i,c=t<0?1:-1;return t<0&&!i?(u++,c=-1):t>=0&&i==r.nodeValue.length?(l--,c=1):t<0?l--:u++,$n(Dt(ot(r,l,u),1),c<0)}if(!n.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&i&&(t<0||i==Xe(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return Qi(l.getBoundingClientRect(),!1)}if(s==null&&i<Xe(r)){let l=r.childNodes[i];if(l.nodeType==1)return Qi(l.getBoundingClientRect(),!0)}return Qi(r.getBoundingClientRect(),t>=0)}if(s==null&&i&&(t<0||i==Xe(r))){let l=r.childNodes[i-1],u=l.nodeType==3?ot(l,Xe(l)-(o?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return $n(Dt(u,1),!1)}if(s==null&&i<Xe(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?ot(l,0,o?0:1):l.nodeType==1?l:null:null;if(u)return $n(Dt(u,-1),!0)}return $n(Dt(r.nodeType==3?ot(r):r,-t),t>=0)}function $n(n,e){if(n.width==0)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function Qi(n,e){if(n.height==0)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function tu(n,e,t){let r=n.state,i=n.root.activeElement;r!=e&&n.updateState(e),i!=n.dom&&n.focus();try{return t()}finally{r!=e&&n.updateState(r),i!=n.dom&&i&&i.focus()}}function yf(n,e,t){let r=e.selection,i=t=="up"?r.$from:r.$to;return tu(n,e,()=>{let{node:s}=n.docView.domFromPos(i.pos,t=="up"?-1:1);for(;;){let a=n.docView.nearestDesc(s,!0);if(!a)break;if(a.node.isBlock){s=a.dom;break}s=a.dom.parentNode}let o=eu(n,i.pos,1);for(let a=s.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=ot(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let c=l[u];if(c.bottom>c.top+1&&(t=="up"?o.top-c.top>(c.bottom-o.top)*2:c.bottom-o.bottom>(o.bottom-c.top)*2))return!1}}return!0})}const Df=/[\u0590-\u08ac]/;function bf(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,s=!i,o=i==r.parent.content.size,a=n.domSelection();return!Df.test(r.parent.textContent)||!a.modify?t=="left"||t=="backward"?s:o:tu(n,e,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:d}=n.domSelectionRange(),f=a.caretBidiLevel;a.modify("move",t,"character");let h=r.depth?n.docView.domAfterPos(r.before()):n.dom,{focusNode:p,focusOffset:m}=n.domSelectionRange(),y=p&&!h.contains(p.nodeType==1?p:p.parentNode)||l==p&&u==m;try{a.collapse(c,d),l&&(l!=c||u!=d)&&a.extend&&a.extend(l,u)}catch{}return f!=null&&(a.caretBidiLevel=f),y})}let ta=null,na=null,ra=!1;function vf(n,e,t){return ta==e&&na==t?ra:(ta=e,na=t,ra=t=="up"||t=="down"?yf(n,e,t):bf(n,e,t))}const je=0,ia=1,fn=2,rt=3;class vr{constructor(e,t,r,i){this.parent=e,this.children=t,this.dom=r,this.contentDOM=i,this.dirty=je,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){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,r=this.posAtStart;;t++){let i=this.children[t];if(i==e)return r;r+=i.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,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let s,o;if(e==this.contentDOM)s=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;s=e.previousSibling}for(;s&&!((o=s.pmViewDesc)&&o.parent==this);)s=s.previousSibling;return s?this.posBeforeChild(o)+o.size:this.posAtStart}else{let s,o;if(e==this.contentDOM)s=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;s=e.nextSibling}for(;s&&!((o=s.pmViewDesc)&&o.parent==this);)s=s.nextSibling;return s?this.posBeforeChild(o):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=t>we(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let s=e;;s=s.parentNode){if(s==this.dom){i=!1;break}if(s.previousSibling)break}if(i==null&&t==e.childNodes.length)for(let s=e;;s=s.parentNode){if(s==this.dom){i=!0;break}if(s.nextSibling)break}}return(i==null?r>0:i)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,i=e;i;i=i.parentNode){let s=this.getDesc(i),o;if(s&&(!t||s.node))if(r&&(o=s.nodeDOM)&&!(o.nodeType==1?o.contains(e.nodeType==1?e:e.parentNode):o==e))r=!1;else return s}}getDesc(e){let t=e.pmViewDesc;for(let r=t;r;r=r.parent)if(r==this)return t}posFromDOM(e,t,r){for(let i=e;i;i=i.parentNode){let s=this.getDesc(i);if(s)return s.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let i=this.children[t],s=r+i.size;if(r==e&&s!=r){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(e<s)return i.descAt(e-r-i.border);r=s}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let s=0;r<this.children.length;r++){let o=this.children[r],a=s+o.size;if(a>e||o instanceof ru){i=e-s;break}s=a}if(i)return this.children[r].domFromPos(i-this.children[r].border,t);for(let s;r&&!(s=this.children[r-1]).size&&s instanceof nu&&s.side>=0;r--);if(t<=0){let s,o=!0;for(;s=r?this.children[r-1]:null,!(!s||s.dom.parentNode==this.contentDOM);r--,o=!1);return s&&t&&o&&!s.border&&!s.domAtom?s.domFromPos(s.size,t):{node:this.contentDOM,offset:s?we(s.dom)+1:0}}else{let s,o=!0;for(;s=r<this.children.length?this.children[r]:null,!(!s||s.dom.parentNode==this.contentDOM);r++,o=!1);return s&&o&&!s.border&&!s.domAtom?s.domFromPos(0,t):{node:this.contentDOM,offset:s?we(s.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,s=-1;for(let o=r,a=0;;a++){let l=this.children[a],u=o+l.size;if(i==-1&&e<=u){let c=o+l.border;if(e>=c&&t<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,t,c);e=o;for(let d=a;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){i=we(f.dom)+1;break}e-=f.size}i==-1&&(i=0)}if(i>-1&&(u>t||a==this.children.length-1)){t=u;for(let c=a+1;c<this.children.length;c++){let d=this.children[c];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){s=we(d.dom);break}t+=d.size}s==-1&&(s=this.contentDOM.childNodes.length);break}o=u}return{node:this.contentDOM,from:e,to:t,fromOffset:i,toOffset:s}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:r}=this.domFromPos(e,0);if(t.nodeType!=1||r==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[r]}setSelection(e,t,r,i=!1){let s=Math.min(e,t),o=Math.max(e,t);for(let f=0,h=0;f<this.children.length;f++){let p=this.children[f],m=h+p.size;if(s>h&&o<m)return p.setSelection(e-h-p.border,t-h-p.border,r,i);h=m}let a=this.domFromPos(e,e?-1:1),l=t==e?a:this.domFromPos(t,t?-1:1),u=r.getSelection(),c=!1;if(($e||ye)&&e==t){let{node:f,offset:h}=a;if(f.nodeType==3){if(c=!!(h&&f.nodeValue[h-1]==`
@@ -1,2 +1,2 @@
1
1
  /*! (c) Andrea Giammarchi @webreflection ISC */(function(){var e=function(O,p){var x=function(S){for(var D=0,ee=S.length;D<ee;D++)F(S[D])},F=function(S){var D=S.target,ee=S.attributeName,ne=S.oldValue;D.attributeChangedCallback(ee,ne,D.getAttribute(ee))};return function(I,S){var D=I.constructor.observedAttributes;return D&&O(S).then(function(){new p(x).observe(I,{attributes:!0,attributeOldValue:!0,attributeFilter:D});for(var ee=0,ne=D.length;ee<ne;ee++)I.hasAttribute(D[ee])&&F({target:I,attributeName:D[ee],oldValue:null})}),I}};function t(O,p){if(!!O){if(typeof O=="string")return n(O,p);var x=Object.prototype.toString.call(O).slice(8,-1);if(x==="Object"&&O.constructor&&(x=O.constructor.name),x==="Map"||x==="Set")return Array.from(O);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return n(O,p)}}function n(O,p){(p==null||p>O.length)&&(p=O.length);for(var x=0,F=new Array(p);x<p;x++)F[x]=O[x];return F}function r(O,p){var x=typeof Symbol!="undefined"&&O[Symbol.iterator]||O["@@iterator"];if(!x){if(Array.isArray(O)||(x=t(O))||p&&O&&typeof O.length=="number"){x&&(O=x);var F=0,I=function(){};return{s:I,n:function(){return F>=O.length?{done:!0}:{done:!1,value:O[F++]}},e:function(ne){throw ne},f:I}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,D=!1,ee;return{s:function(){x=x.call(O)},n:function(){var ne=x.next();return S=ne.done,ne},e:function(ne){D=!0,ee=ne},f:function(){try{!S&&x.return!=null&&x.return()}finally{if(D)throw ee}}}}/*! (c) Andrea Giammarchi - ISC */var s=!0,o=!1,i="querySelectorAll",c=function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:MutationObserver,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:["*"],S=function ne(Ge,et,Ce,U,te,re){var Oe=r(Ge),yt;try{for(Oe.s();!(yt=Oe.n()).done;){var ae=yt.value;(re||i in ae)&&(te?Ce.has(ae)||(Ce.add(ae),U.delete(ae),p(ae,te)):U.has(ae)||(U.add(ae),Ce.delete(ae),p(ae,te)),re||ne(ae[i](et),et,Ce,U,te,s))}}catch(Tn){Oe.e(Tn)}finally{Oe.f()}},D=new F(function(ne){if(I.length){var Ge=I.join(","),et=new Set,Ce=new Set,U=r(ne),te;try{for(U.s();!(te=U.n()).done;){var re=te.value,Oe=re.addedNodes,yt=re.removedNodes;S(yt,Ge,et,Ce,o,o),S(Oe,Ge,et,Ce,s,o)}}catch(ae){U.e(ae)}finally{U.f()}}}),ee=D.observe;return(D.observe=function(ne){return ee.call(D,ne,{subtree:s,childList:s})})(x),D},f="querySelectorAll",a=self,d=a.document,v=a.Element,E=a.MutationObserver,M=a.Set,R=a.WeakMap,W=function(p){return f in p},L=[].filter,$=function(O){var p=new R,x=function(U){for(var te=0,re=U.length;te<re;te++)p.delete(U[te])},F=function(){for(var U=Ge.takeRecords(),te=0,re=U.length;te<re;te++)D(L.call(U[te].removedNodes,W),!1),D(L.call(U[te].addedNodes,W),!0)},I=function(U){return U.matches||U.webkitMatchesSelector||U.msMatchesSelector},S=function(U,te){var re;if(te)for(var Oe,yt=I(U),ae=0,Tn=ee.length;ae<Tn;ae++)yt.call(U,Oe=ee[ae])&&(p.has(U)||p.set(U,new M),re=p.get(U),re.has(Oe)||(re.add(Oe),O.handle(U,te,Oe)));else p.has(U)&&(re=p.get(U),p.delete(U),re.forEach(function(Vs){O.handle(U,te,Vs)}))},D=function(U){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,re=0,Oe=U.length;re<Oe;re++)S(U[re],te)},ee=O.query,ne=O.root||d,Ge=c(S,ne,E,ee),et=v.prototype.attachShadow;return et&&(v.prototype.attachShadow=function(Ce){var U=et.call(this,Ce);return Ge.observe(U),U}),ee.length&&D(ne[f](ee)),{drop:x,flush:F,observer:Ge,parse:D}},G=self,J=G.document,X=G.Map,ve=G.MutationObserver,pe=G.Object,ye=G.Set,we=G.WeakMap,fe=G.Element,Re=G.HTMLElement,xe=G.Node,Xe=G.Error,ct=G.TypeError,Yt=G.Reflect,le=pe.defineProperty,ue=pe.keys,Q=pe.getOwnPropertyNames,q=pe.setPrototypeOf,ge=!self.customElements,_t=function(p){for(var x=ue(p),F=[],I=x.length,S=0;S<I;S++)F[S]=p[x[S]],delete p[x[S]];return function(){for(var D=0;D<I;D++)p[x[D]]=F[D]}};if(ge){var qe=function(){var p=this.constructor;if(!Me.has(p))throw new ct("Illegal constructor");var x=Me.get(p);if(Qe)return l(Qe,x);var F=ze.call(J,x);return l(q(F,p.prototype),x)},ze=J.createElement,Me=new X,ft=new X,Vt=new X,ut=new X,Ie=[],vt=function(p,x,F){var I=Vt.get(F);if(x&&!I.isPrototypeOf(p)){var S=_t(p);Qe=q(p,I);try{new I.constructor}finally{Qe=null,S()}}var D="".concat(x?"":"dis","connectedCallback");D in I&&p[D]()},Xt=$({query:Ie,handle:vt}),Ze=Xt.parse,Qe=null,at=function(p){if(!ft.has(p)){var x,F=new Promise(function(I){x=I});ft.set(p,{$:F,_:x})}return ft.get(p).$},l=e(at,ve);le(self,"customElements",{configurable:!0,value:{define:function(p,x){if(ut.has(p))throw new Xe('the name "'.concat(p,'" has already been used with this registry'));Me.set(x,p),Vt.set(p,x.prototype),ut.set(p,x),Ie.push(p),at(p).then(function(){Ze(J.querySelectorAll(p))}),ft.get(p)._(x)},get:function(p){return ut.get(p)},whenDefined:at}}),le(qe.prototype=Re.prototype,"constructor",{value:qe}),le(self,"HTMLElement",{configurable:!0,value:qe}),le(J,"createElement",{configurable:!0,value:function(p,x){var F=x&&x.is,I=F?ut.get(F):ut.get(p);return I?new I:ze.call(J,p)}}),"isConnected"in xe.prototype||le(xe.prototype,"isConnected",{configurable:!0,get:function(){return!(this.ownerDocument.compareDocumentPosition(this)&this.DOCUMENT_POSITION_DISCONNECTED)}})}else try{var u=function O(){return self.Reflect.construct(HTMLLIElement,[],O)};u.prototype=HTMLLIElement.prototype;var h="extends-li";self.customElements.define("extends-li",u,{extends:"li"}),ge=J.createElement("li",{is:h}).outerHTML.indexOf(h)<0;var g=self.customElements,m=g.get,y=g.whenDefined;le(self.customElements,"whenDefined",{configurable:!0,value:function(p){var x=this;return y.call(this,p).then(function(F){return F||m.call(x,p)})}})}catch{ge=!ge}if(ge){var C=function(p){var x=K.get(p);Rt(x.querySelectorAll(this),p.isConnected)},_=self.customElements,w=J.createElement,b=_.define,A=_.get,T=_.upgrade,P=Yt||{construct:function(p){return p.call(this)}},N=P.construct,K=new we,z=new ye,k=new X,Y=new X,Ee=new X,je=new X,Nt=[],Ke=[],Ft=function(p){return je.get(p)||A.call(_,p)},me=function(p,x,F){var I=Ee.get(F);if(x&&!I.isPrototypeOf(p)){var S=_t(p);Zt=q(p,I);try{new I.constructor}finally{Zt=null,S()}}var D="".concat(x?"":"dis","connectedCallback");D in I&&p[D]()},Ne=$({query:Ke,handle:me}),Rt=Ne.parse,Js=$({query:Nt,handle:function(p,x){K.has(p)&&(x?z.add(p):z.delete(p),Ke.length&&C.call(Ke,p))}}),Ys=Js.parse,yr=fe.prototype.attachShadow;yr&&(fe.prototype.attachShadow=function(O){var p=yr.call(this,O);return K.set(this,p),p});var En=function(p){if(!Y.has(p)){var x,F=new Promise(function(I){x=I});Y.set(p,{$:F,_:x})}return Y.get(p).$},Cn=e(En,ve),Zt=null;Q(self).filter(function(O){return/^HTML.*Element$/.test(O)}).forEach(function(O){var p=self[O];function x(){var F=this.constructor;if(!k.has(F))throw new ct("Illegal constructor");var I=k.get(F),S=I.is,D=I.tag;if(S){if(Zt)return Cn(Zt,S);var ee=w.call(J,D);return ee.setAttribute("is",S),Cn(q(ee,F.prototype),S)}else return N.call(this,p,[],F)}le(x.prototype=p.prototype,"constructor",{value:x}),le(self,O,{value:x})}),le(J,"createElement",{configurable:!0,value:function(p,x){var F=x&&x.is;if(F){var I=je.get(F);if(I&&k.get(I).tag===p)return new I}var S=w.call(J,p);return F&&S.setAttribute("is",F),S}}),le(_,"get",{configurable:!0,value:Ft}),le(_,"whenDefined",{configurable:!0,value:En}),le(_,"upgrade",{configurable:!0,value:function(p){var x=p.getAttribute("is");if(x){var F=je.get(x);if(F){Cn(q(p,F.prototype),x);return}}T.call(_,p)}}),le(_,"define",{configurable:!0,value:function(p,x,F){if(Ft(p))throw new Xe("'".concat(p,"' has already been defined as a custom element"));var I,S=F&&F.extends;k.set(x,S?{is:p,tag:S}:{is:"",tag:p}),S?(I="".concat(S,'[is="').concat(p,'"]'),Ee.set(I,x.prototype),je.set(p,x),Ke.push(I)):(b.apply(_,arguments),Nt.push(I=p)),En(p).then(function(){S?(Rt(J.querySelectorAll(I)),z.forEach(C,[I])):Ys(J.querySelectorAll(I))}),Y.get(p)._(x)}})}})();function Vn(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Xs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zs=Vn(Xs);function Xr(e){return!!e||e===""}function Xn(e){if(j(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ie(r)?eo(r):Xn(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(ie(e))return e;if(se(e))return e}}const Qs=/;(?![^(]*\))/g,Gs=/:(.+)/;function eo(e){const t={};return e.split(Qs).forEach(n=>{if(n){const r=n.split(Gs);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Zn(e){let t="";if(ie(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){const r=Zn(e[n]);r&&(t+=r+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Al=e=>ie(e)?e:e==null?"":j(e)||se(e)&&(e.toString===es||!H(e.toString))?JSON.stringify(e,Zr,2):String(e),Zr=(e,t)=>t&&t.__v_isRef?Zr(e,t.value):Tt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Qr(t)?{[`Set(${t.size})`]:[...t.values()]}:se(t)&&!j(t)&&!ts(t)?String(t):t,Z={},Ct=[],He=()=>{},to=()=>!1,no=/^on[^a-z]/,dn=e=>no.test(e),Qn=e=>e.startsWith("onUpdate:"),ce=Object.assign,Gn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ro=Object.prototype.hasOwnProperty,B=(e,t)=>ro.call(e,t),j=Array.isArray,Tt=e=>pn(e)==="[object Map]",Qr=e=>pn(e)==="[object Set]",H=e=>typeof e=="function",ie=e=>typeof e=="string",er=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",Gr=e=>se(e)&&H(e.then)&&H(e.catch),es=Object.prototype.toString,pn=e=>es.call(e),so=e=>pn(e).slice(8,-1),ts=e=>pn(e)==="[object Object]",tr=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=Vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oo=/-(\w)/g,Fe=gn(e=>e.replace(oo,(t,n)=>n?n.toUpperCase():"")),io=/\B([A-Z])/g,ke=gn(e=>e.replace(io,"-$1").toLowerCase()),mn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),On=gn(e=>e?`on${mn(e)}`:""),Bt=(e,t)=>!Object.is(e,t),An=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ln=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Rn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let wr;const lo=()=>wr||(wr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Be;class co{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Be&&(this.parent=Be,this.index=(Be.scopes||(Be.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Be;try{return Be=this,t()}finally{Be=n}}}on(){Be=this}off(){Be=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.active=!1}}}function fo(e,t=Be){t&&t.active&&t.effects.push(e)}const nr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ns=e=>(e.w&it)>0,rs=e=>(e.n&it)>0,uo=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=it},ao=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];ns(s)&&!rs(s)?s.delete(e):t[n++]=s,s.w&=~it,s.n&=~it}t.length=n}},jn=new WeakMap;let Lt=0,it=1;const Ln=30;let $e;const mt=Symbol(""),$n=Symbol("");class rr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,fo(this,r)}run(){if(!this.active)return this.fn();let t=$e,n=st;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=$e,$e=this,st=!0,it=1<<++Lt,Lt<=Ln?uo(this):xr(this),this.fn()}finally{Lt<=Ln&&ao(this),it=1<<--Lt,$e=this.parent,st=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){$e===this?this.deferStop=!0:this.active&&(xr(this),this.onStop&&this.onStop(),this.active=!1)}}function xr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let st=!0;const ss=[];function Mt(){ss.push(st),st=!1}function It(){const e=ss.pop();st=e===void 0?!0:e}function Pe(e,t,n){if(st&&$e){let r=jn.get(e);r||jn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=nr()),os(s)}}function os(e,t){let n=!1;Lt<=Ln?rs(e)||(e.n|=it,n=!ns(e)):n=!e.has($e),n&&(e.add($e),$e.deps.push(e))}function Ye(e,t,n,r,s,o){const i=jn.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&j(e))i.forEach((f,a)=>{(a==="length"||a>=r)&&c.push(f)});else switch(n!==void 0&&c.push(i.get(n)),t){case"add":j(e)?tr(n)&&c.push(i.get("length")):(c.push(i.get(mt)),Tt(e)&&c.push(i.get($n)));break;case"delete":j(e)||(c.push(i.get(mt)),Tt(e)&&c.push(i.get($n)));break;case"set":Tt(e)&&c.push(i.get(mt));break}if(c.length===1)c[0]&&Sn(c[0]);else{const f=[];for(const a of c)a&&f.push(...a);Sn(nr(f))}}function Sn(e,t){const n=j(e)?e:[...e];for(const r of n)r.computed&&Er(r);for(const r of n)r.computed||Er(r)}function Er(e,t){(e!==$e||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ho=Vn("__proto__,__v_isRef,__isVue"),is=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(er)),po=sr(),go=sr(!1,!0),mo=sr(!0),Cr=bo();function bo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=V(this);for(let o=0,i=this.length;o<i;o++)Pe(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(V)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Mt();const r=V(this)[t].apply(this,n);return It(),r}}),e}function sr(e=!1,t=!1){return function(r,s,o){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&o===(e?t?Ro:as:t?us:fs).get(r))return r;const i=j(r);if(!e&&i&&B(Cr,s))return Reflect.get(Cr,s,o);const c=Reflect.get(r,s,o);return(er(s)?is.has(s):ho(s))||(e||Pe(r,"get",s),t)?c:he(c)?i&&tr(s)?c:c.value:se(c)?e?hs(c):lr(c):c}}const _o=ls(),vo=ls(!0);function ls(e=!1){return function(n,r,s,o){let i=n[r];if(Wt(i)&&he(i)&&!he(s))return!1;if(!e&&!Wt(s)&&(Hn(s)||(s=V(s),i=V(i)),!j(n)&&he(i)&&!he(s)))return i.value=s,!0;const c=j(n)&&tr(r)?Number(r)<n.length:B(n,r),f=Reflect.set(n,r,s,o);return n===V(o)&&(c?Bt(s,i)&&Ye(n,"set",r,s):Ye(n,"add",r,s)),f}}function yo(e,t){const n=B(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ye(e,"delete",t,void 0),r}function wo(e,t){const n=Reflect.has(e,t);return(!er(t)||!is.has(t))&&Pe(e,"has",t),n}function xo(e){return Pe(e,"iterate",j(e)?"length":mt),Reflect.ownKeys(e)}const cs={get:po,set:_o,deleteProperty:yo,has:wo,ownKeys:xo},Eo={get:mo,set(e,t){return!0},deleteProperty(e,t){return!0}},Co=ce({},cs,{get:go,set:vo}),or=e=>e,bn=e=>Reflect.getPrototypeOf(e);function Qt(e,t,n=!1,r=!1){e=e.__v_raw;const s=V(e),o=V(t);n||(t!==o&&Pe(s,"get",t),Pe(s,"get",o));const{has:i}=bn(s),c=r?or:n?fr:kt;if(i.call(s,t))return c(e.get(t));if(i.call(s,o))return c(e.get(o));e!==s&&e.get(t)}function Gt(e,t=!1){const n=this.__v_raw,r=V(n),s=V(e);return t||(e!==s&&Pe(r,"has",e),Pe(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function en(e,t=!1){return e=e.__v_raw,!t&&Pe(V(e),"iterate",mt),Reflect.get(e,"size",e)}function Tr(e){e=V(e);const t=V(this);return bn(t).has.call(t,e)||(t.add(e),Ye(t,"add",e,e)),this}function Or(e,t){t=V(t);const n=V(this),{has:r,get:s}=bn(n);let o=r.call(n,e);o||(e=V(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?Bt(t,i)&&Ye(n,"set",e,t):Ye(n,"add",e,t),this}function Ar(e){const t=V(this),{has:n,get:r}=bn(t);let s=n.call(t,e);s||(e=V(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Ye(t,"delete",e,void 0),o}function Pr(){const e=V(this),t=e.size!==0,n=e.clear();return t&&Ye(e,"clear",void 0,void 0),n}function tn(e,t){return function(r,s){const o=this,i=o.__v_raw,c=V(i),f=t?or:e?fr:kt;return!e&&Pe(c,"iterate",mt),i.forEach((a,d)=>r.call(s,f(a),f(d),o))}}function nn(e,t,n){return function(...r){const s=this.__v_raw,o=V(s),i=Tt(o),c=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,a=s[e](...r),d=n?or:t?fr:kt;return!t&&Pe(o,"iterate",f?$n:mt),{next(){const{value:v,done:E}=a.next();return E?{value:v,done:E}:{value:c?[d(v[0]),d(v[1])]:d(v),done:E}},[Symbol.iterator](){return this}}}}function tt(e){return function(...t){return e==="delete"?!1:this}}function To(){const e={get(o){return Qt(this,o)},get size(){return en(this)},has:Gt,add:Tr,set:Or,delete:Ar,clear:Pr,forEach:tn(!1,!1)},t={get(o){return Qt(this,o,!1,!0)},get size(){return en(this)},has:Gt,add:Tr,set:Or,delete:Ar,clear:Pr,forEach:tn(!1,!0)},n={get(o){return Qt(this,o,!0)},get size(){return en(this,!0)},has(o){return Gt.call(this,o,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:tn(!0,!1)},r={get(o){return Qt(this,o,!0,!0)},get size(){return en(this,!0)},has(o){return Gt.call(this,o,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:tn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=nn(o,!1,!1),n[o]=nn(o,!0,!1),t[o]=nn(o,!1,!0),r[o]=nn(o,!0,!0)}),[e,n,t,r]}const[Oo,Ao,Po,Mo]=To();function ir(e,t){const n=t?e?Mo:Po:e?Ao:Oo;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(B(n,s)&&s in r?n:r,s,o)}const Io={get:ir(!1,!1)},No={get:ir(!1,!0)},Fo={get:ir(!0,!1)},fs=new WeakMap,us=new WeakMap,as=new WeakMap,Ro=new WeakMap;function jo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lo(e){return e.__v_skip||!Object.isExtensible(e)?0:jo(so(e))}function lr(e){return Wt(e)?e:cr(e,!1,cs,Io,fs)}function $o(e){return cr(e,!1,Co,No,us)}function hs(e){return cr(e,!0,Eo,Fo,as)}function cr(e,t,n,r,s){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Lo(e);if(i===0)return e;const c=new Proxy(e,i===2?r:n);return s.set(e,c),c}function Ot(e){return Wt(e)?Ot(e.__v_raw):!!(e&&e.__v_isReactive)}function Wt(e){return!!(e&&e.__v_isReadonly)}function Hn(e){return!!(e&&e.__v_isShallow)}function ds(e){return Ot(e)||Wt(e)}function V(e){const t=e&&e.__v_raw;return t?V(t):e}function ps(e){return ln(e,"__v_skip",!0),e}const kt=e=>se(e)?lr(e):e,fr=e=>se(e)?hs(e):e;function ur(e){st&&$e&&(e=V(e),os(e.dep||(e.dep=nr())))}function ar(e,t){e=V(e),e.dep&&Sn(e.dep)}function he(e){return!!(e&&e.__v_isRef===!0)}function Pl(e){return So(e,!1)}function So(e,t){return he(e)?e:new Ho(e,t)}class Ho{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:V(t),this._value=n?t:kt(t)}get value(){return ur(this),this._value}set value(t){t=this.__v_isShallow?t:V(t),Bt(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:kt(t),ar(this))}}function Do(e){return he(e)?e.value:e}const Ko={get:(e,t,n)=>Do(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return he(s)&&!he(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function gs(e){return Ot(e)?e:new Proxy(e,Ko)}class Uo{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>ur(this),()=>ar(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Ml(e){return new Uo(e)}class Bo{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new rr(t,()=>{this._dirty||(this._dirty=!0,ar(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=V(this);return ur(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Wo(e,t,n=!1){let r,s;const o=H(e);return o?(r=e,s=He):(r=e.get,s=e.set),new Bo(r,s,o||!s,n)}function ot(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){_n(o,t,n)}return s}function De(e,t,n,r){if(H(e)){const o=ot(e,t,n,r);return o&&Gr(o)&&o.catch(i=>{_n(i,t,n)}),o}const s=[];for(let o=0;o<e.length;o++)s.push(De(e[o],t,n,r));return s}function _n(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,c=n;for(;o;){const a=o.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,c)===!1)return}o=o.parent}const f=t.appContext.config.errorHandler;if(f){ot(f,null,10,[e,i,c]);return}}ko(e,n,s,r)}function ko(e,t,n,r=!0){console.error(e)}let cn=!1,Dn=!1;const Ae=[];let Je=0;const St=[];let $t=null,wt=0;const Ht=[];let nt=null,xt=0;const ms=Promise.resolve();let hr=null,Kn=null;function bs(e){const t=hr||ms;return e?t.then(this?e.bind(this):e):t}function qo(e){let t=Je+1,n=Ae.length;for(;t<n;){const r=t+n>>>1;qt(Ae[r])<e?t=r+1:n=r}return t}function _s(e){(!Ae.length||!Ae.includes(e,cn&&e.allowRecurse?Je+1:Je))&&e!==Kn&&(e.id==null?Ae.push(e):Ae.splice(qo(e.id),0,e),vs())}function vs(){!cn&&!Dn&&(Dn=!0,hr=ms.then(xs))}function zo(e){const t=Ae.indexOf(e);t>Je&&Ae.splice(t,1)}function ys(e,t,n,r){j(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),vs()}function Jo(e){ys(e,$t,St,wt)}function Yo(e){ys(e,nt,Ht,xt)}function vn(e,t=null){if(St.length){for(Kn=t,$t=[...new Set(St)],St.length=0,wt=0;wt<$t.length;wt++)$t[wt]();$t=null,wt=0,Kn=null,vn(e,t)}}function ws(e){if(vn(),Ht.length){const t=[...new Set(Ht)];if(Ht.length=0,nt){nt.push(...t);return}for(nt=t,nt.sort((n,r)=>qt(n)-qt(r)),xt=0;xt<nt.length;xt++)nt[xt]();nt=null,xt=0}}const qt=e=>e.id==null?1/0:e.id;function xs(e){Dn=!1,cn=!0,vn(e),Ae.sort((n,r)=>qt(n)-qt(r));const t=He;try{for(Je=0;Je<Ae.length;Je++){const n=Ae[Je];n&&n.active!==!1&&ot(n,null,14)}}finally{Je=0,Ae.length=0,ws(),cn=!1,hr=null,(Ae.length||St.length||Ht.length)&&xs(e)}}function Vo(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Z;let s=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:v,trim:E}=r[d]||Z;E&&(s=n.map(M=>M.trim())),v&&(s=n.map(Rn))}let c,f=r[c=On(t)]||r[c=On(Fe(t))];!f&&o&&(f=r[c=On(ke(t))]),f&&De(f,e,6,s);const a=r[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,De(a,e,6,s)}}function Es(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},c=!1;if(!H(e)){const f=a=>{const d=Es(a,t,!0);d&&(c=!0,ce(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!c?(r.set(e,null),null):(j(o)?o.forEach(f=>i[f]=null):ce(i,o),r.set(e,i),i)}function yn(e,t){return!e||!dn(t)?!1:(t=t.slice(2).replace(/Once$/,""),B(e,t[0].toLowerCase()+t.slice(1))||B(e,ke(t))||B(e,t))}let _e=null,Cs=null;function fn(e){const t=_e;return _e=e,Cs=e&&e.type.__scopeId||null,t}function Xo(e,t=_e,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Dr(-1);const o=fn(t),i=e(...s);return fn(o),r._d&&Dr(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function Pn(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:c,attrs:f,emit:a,render:d,renderCache:v,data:E,setupState:M,ctx:R,inheritAttrs:W}=e;let L,$;const G=fn(e);try{if(n.shapeFlag&4){const X=s||r;L=We(d.call(X,X,v,o,M,E,R)),$=f}else{const X=t;L=We(X.length>1?X(o,{attrs:f,slots:c,emit:a}):X(o,null)),$=t.props?f:Zo(f)}}catch(X){Ut.length=0,_n(X,e,1),L=de(lt)}let J=L;if($&&W!==!1){const X=Object.keys($),{shapeFlag:ve}=J;X.length&&ve&7&&(i&&X.some(Qn)&&($=Qo($,i)),J=At(J,$))}return n.dirs&&(J=At(J),J.dirs=J.dirs?J.dirs.concat(n.dirs):n.dirs),n.transition&&(J.transition=n.transition),L=J,fn(G),L}const Zo=e=>{let t;for(const n in e)(n==="class"||n==="style"||dn(n))&&((t||(t={}))[n]=e[n]);return t},Qo=(e,t)=>{const n={};for(const r in e)(!Qn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Go(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:c,patchFlag:f}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?Mr(r,i,a):!!i;if(f&8){const d=t.dynamicProps;for(let v=0;v<d.length;v++){const E=d[v];if(i[E]!==r[E]&&!yn(a,E))return!0}}}else return(s||c)&&(!c||!c.$stable)?!0:r===i?!1:r?i?Mr(r,i,a):!0:!!i;return!1}function Mr(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!yn(n,o))return!0}return!1}function ei({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ti=e=>e.__isSuspense;function ni(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Yo(e)}function ri(e,t){if(oe){let n=oe.provides;const r=oe.parent&&oe.parent.provides;r===n&&(n=oe.provides=Object.create(r)),n[e]=t}}function Mn(e,t,n=!1){const r=oe||_e;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&H(t)?t.call(r.proxy):t}}function Il(e,t){return dr(e,null,t)}const Ir={};function In(e,t,n){return dr(e,t,n)}function dr(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:i}=Z){const c=oe;let f,a=!1,d=!1;if(he(e)?(f=()=>e.value,a=Hn(e)):Ot(e)?(f=()=>e,r=!0):j(e)?(d=!0,a=e.some($=>Ot($)||Hn($)),f=()=>e.map($=>{if(he($))return $.value;if(Ot($))return Et($);if(H($))return ot($,c,2)})):H(e)?t?f=()=>ot(e,c,2):f=()=>{if(!(c&&c.isUnmounted))return v&&v(),De(e,c,3,[E])}:f=He,t&&r){const $=f;f=()=>Et($())}let v,E=$=>{v=L.onStop=()=>{ot($,c,4)}};if(Jt)return E=He,t?n&&De(t,c,3,[f(),d?[]:void 0,E]):f(),He;let M=d?[]:Ir;const R=()=>{if(!!L.active)if(t){const $=L.run();(r||a||(d?$.some((G,J)=>Bt(G,M[J])):Bt($,M)))&&(v&&v(),De(t,c,3,[$,M===Ir?void 0:M,E]),M=$)}else L.run()};R.allowRecurse=!!t;let W;s==="sync"?W=R:s==="post"?W=()=>Te(R,c&&c.suspense):W=()=>Jo(R);const L=new rr(f,W);return t?n?R():M=L.run():s==="post"?Te(L.run.bind(L),c&&c.suspense):L.run(),()=>{L.stop(),c&&c.scope&&Gn(c.scope.effects,L)}}function si(e,t,n){const r=this.proxy,s=ie(e)?e.includes(".")?Ts(r,e):()=>r[e]:e.bind(r,r);let o;H(t)?o=t:(o=t.handler,n=t);const i=oe;Pt(this);const c=dr(s,o.bind(r),n);return i?Pt(i):bt(),c}function Ts(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Et(e,t){if(!se(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),he(e))Et(e.value,t);else if(j(e))for(let n=0;n<e.length;n++)Et(e[n],t);else if(Qr(e)||Tt(e))e.forEach(n=>{Et(n,t)});else if(ts(e))for(const n in e)Et(e[n],t);return e}function oi(e){return H(e)?{setup:e,name:e.name}:e}const Dt=e=>!!e.type.__asyncLoader,Os=e=>e.type.__isKeepAlive;function ii(e,t){As(e,"a",t)}function li(e,t){As(e,"da",t)}function As(e,t,n=oe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(wn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Os(s.parent.vnode)&&ci(r,t,n,s),s=s.parent}}function ci(e,t,n,r){const s=wn(t,e,r,!0);Ps(()=>{Gn(r[t],s)},n)}function wn(e,t,n=oe,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Mt(),Pt(n);const c=De(t,n,e,i);return bt(),It(),c});return r?s.unshift(o):s.push(o),o}}const Ve=e=>(t,n=oe)=>(!Jt||e==="sp")&&wn(e,t,n),fi=Ve("bm"),ui=Ve("m"),ai=Ve("bu"),hi=Ve("u"),di=Ve("bum"),Ps=Ve("um"),pi=Ve("sp"),gi=Ve("rtg"),mi=Ve("rtc");function bi(e,t=oe){wn("ec",e,t)}function ht(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const c=s[i];o&&(c.oldValue=o[i].value);let f=c.dir[r];f&&(Mt(),De(f,n,8,[e.el,c,e,t]),It())}}const Ms="components";function Nl(e,t){return vi(Ms,e,!0,t)||e}const _i=Symbol();function vi(e,t,n=!0,r=!1){const s=_e||oe;if(s){const o=s.type;if(e===Ms){const c=Zi(o,!1);if(c&&(c===t||c===Fe(t)||c===mn(Fe(t))))return o}const i=Nr(s[e]||o[e],t)||Nr(s.appContext[e],t);return!i&&r?o:i}}function Nr(e,t){return e&&(e[t]||e[Fe(t)]||e[mn(Fe(t))])}function Fl(e,t,n,r){let s;const o=n&&n[r];if(j(e)||ie(e)){s=new Array(e.length);for(let i=0,c=e.length;i<c;i++)s[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o&&o[i])}else if(se(e))if(e[Symbol.iterator])s=Array.from(e,(i,c)=>t(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);s=new Array(i.length);for(let c=0,f=i.length;c<f;c++){const a=i[c];s[c]=t(e[a],a,c,o&&o[c])}}else s=[];return n&&(n[r]=s),s}function Rl(e,t,n={},r,s){if(_e.isCE||_e.parent&&Dt(_e.parent)&&_e.parent.isCE)return de("slot",t==="default"?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),Ds();const i=o&&Is(o(n)),c=Us(Le,{key:n.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!s&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function Is(e){return e.some(t=>hn(t)?!(t.type===lt||t.type===Le&&!Is(t.children)):!0)?e:null}const Un=e=>e?ks(e)?_r(e)||e.proxy:Un(e.parent):null,un=ce(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=>Un(e.parent),$root:e=>Un(e.root),$emit:e=>e.emit,$options:e=>Fs(e),$forceUpdate:e=>e.f||(e.f=()=>_s(e.update)),$nextTick:e=>e.n||(e.n=bs.bind(e.proxy)),$watch:e=>si.bind(e)}),yi={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:c,appContext:f}=e;let a;if(t[0]!=="$"){const M=i[t];if(M!==void 0)switch(M){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(r!==Z&&B(r,t))return i[t]=1,r[t];if(s!==Z&&B(s,t))return i[t]=2,s[t];if((a=e.propsOptions[0])&&B(a,t))return i[t]=3,o[t];if(n!==Z&&B(n,t))return i[t]=4,n[t];Bn&&(i[t]=0)}}const d=un[t];let v,E;if(d)return t==="$attrs"&&Pe(e,"get",t),d(e);if((v=c.__cssModules)&&(v=v[t]))return v;if(n!==Z&&B(n,t))return i[t]=4,n[t];if(E=f.config.globalProperties,B(E,t))return E[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return s!==Z&&B(s,t)?(s[t]=n,!0):r!==Z&&B(r,t)?(r[t]=n,!0):B(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let c;return!!n[i]||e!==Z&&B(e,i)||t!==Z&&B(t,i)||(c=o[0])&&B(c,i)||B(r,i)||B(un,i)||B(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:B(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Bn=!0;function wi(e){const t=Fs(e),n=e.proxy,r=e.ctx;Bn=!1,t.beforeCreate&&Fr(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:c,provide:f,inject:a,created:d,beforeMount:v,mounted:E,beforeUpdate:M,updated:R,activated:W,deactivated:L,beforeDestroy:$,beforeUnmount:G,destroyed:J,unmounted:X,render:ve,renderTracked:pe,renderTriggered:ye,errorCaptured:we,serverPrefetch:fe,expose:Re,inheritAttrs:xe,components:Xe,directives:ct,filters:Yt}=t;if(a&&xi(a,r,null,e.appContext.config.unwrapInjectedRef),i)for(const Q in i){const q=i[Q];H(q)&&(r[Q]=q.bind(n))}if(s){const Q=s.call(n,n);se(Q)&&(e.data=lr(Q))}if(Bn=!0,o)for(const Q in o){const q=o[Q],ge=H(q)?q.bind(n,n):H(q.get)?q.get.bind(n,n):He,_t=!H(q)&&H(q.set)?q.set.bind(n):He,qe=Gi({get:ge,set:_t});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>qe.value,set:ze=>qe.value=ze})}if(c)for(const Q in c)Ns(c[Q],r,n,Q);if(f){const Q=H(f)?f.call(n):f;Reflect.ownKeys(Q).forEach(q=>{ri(q,Q[q])})}d&&Fr(d,e,"c");function ue(Q,q){j(q)?q.forEach(ge=>Q(ge.bind(n))):q&&Q(q.bind(n))}if(ue(fi,v),ue(ui,E),ue(ai,M),ue(hi,R),ue(ii,W),ue(li,L),ue(bi,we),ue(mi,pe),ue(gi,ye),ue(di,G),ue(Ps,X),ue(pi,fe),j(Re))if(Re.length){const Q=e.exposed||(e.exposed={});Re.forEach(q=>{Object.defineProperty(Q,q,{get:()=>n[q],set:ge=>n[q]=ge})})}else e.exposed||(e.exposed={});ve&&e.render===He&&(e.render=ve),xe!=null&&(e.inheritAttrs=xe),Xe&&(e.components=Xe),ct&&(e.directives=ct)}function xi(e,t,n=He,r=!1){j(e)&&(e=Wn(e));for(const s in e){const o=e[s];let i;se(o)?"default"in o?i=Mn(o.from||s,o.default,!0):i=Mn(o.from||s):i=Mn(o),he(i)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[s]=i}}function Fr(e,t,n){De(j(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ns(e,t,n,r){const s=r.includes(".")?Ts(n,r):()=>n[r];if(ie(e)){const o=t[e];H(o)&&In(s,o)}else if(H(e))In(s,e.bind(n));else if(se(e))if(j(e))e.forEach(o=>Ns(o,t,n,r));else{const o=H(e.handler)?e.handler.bind(n):t[e.handler];H(o)&&In(s,o,e)}}function Fs(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let f;return c?f=c:!s.length&&!n&&!r?f=t:(f={},s.length&&s.forEach(a=>an(f,a,i,!0)),an(f,t,i)),o.set(t,f),f}function an(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&an(e,o,n,!0),s&&s.forEach(i=>an(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const c=Ei[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ei={data:Rr,props:pt,emits:pt,methods:pt,computed:pt,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:pt,directives:pt,watch:Ti,provide:Rr,inject:Ci};function Rr(e,t){return t?e?function(){return ce(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function Ci(e,t){return pt(Wn(e),Wn(t))}function Wn(e){if(j(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function be(e,t){return e?[...new Set([].concat(e,t))]:t}function pt(e,t){return e?ce(ce(Object.create(null),e),t):t}function Ti(e,t){if(!e)return t;if(!t)return e;const n=ce(Object.create(null),e);for(const r in t)n[r]=be(e[r],t[r]);return n}function Oi(e,t,n,r=!1){const s={},o={};ln(o,xn,1),e.propsDefaults=Object.create(null),Rs(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:$o(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Ai(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,c=V(s),[f]=e.propsOptions;let a=!1;if((r||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let v=0;v<d.length;v++){let E=d[v];if(yn(e.emitsOptions,E))continue;const M=t[E];if(f)if(B(o,E))M!==o[E]&&(o[E]=M,a=!0);else{const R=Fe(E);s[R]=kn(f,c,R,M,e,!1)}else M!==o[E]&&(o[E]=M,a=!0)}}}else{Rs(e,t,s,o)&&(a=!0);let d;for(const v in c)(!t||!B(t,v)&&((d=ke(v))===v||!B(t,d)))&&(f?n&&(n[v]!==void 0||n[d]!==void 0)&&(s[v]=kn(f,c,v,void 0,e,!0)):delete s[v]);if(o!==c)for(const v in o)(!t||!B(t,v)&&!0)&&(delete o[v],a=!0)}a&&Ye(e,"set","$attrs")}function Rs(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,c;if(t)for(let f in t){if(sn(f))continue;const a=t[f];let d;s&&B(s,d=Fe(f))?!o||!o.includes(d)?n[d]=a:(c||(c={}))[d]=a:yn(e.emitsOptions,f)||(!(f in r)||a!==r[f])&&(r[f]=a,i=!0)}if(o){const f=V(n),a=c||Z;for(let d=0;d<o.length;d++){const v=o[d];n[v]=kn(s,f,v,a[v],e,!B(a,v))}}return i}function kn(e,t,n,r,s,o){const i=e[n];if(i!=null){const c=B(i,"default");if(c&&r===void 0){const f=i.default;if(i.type!==Function&&H(f)){const{propsDefaults:a}=s;n in a?r=a[n]:(Pt(s),r=a[n]=f.call(null,t),bt())}else r=f}i[0]&&(o&&!c?r=!1:i[1]&&(r===""||r===ke(n))&&(r=!0))}return r}function js(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},c=[];let f=!1;if(!H(e)){const d=v=>{f=!0;const[E,M]=js(v,t,!0);ce(i,E),M&&c.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!f)return r.set(e,Ct),Ct;if(j(o))for(let d=0;d<o.length;d++){const v=Fe(o[d]);jr(v)&&(i[v]=Z)}else if(o)for(const d in o){const v=Fe(d);if(jr(v)){const E=o[d],M=i[v]=j(E)||H(E)?{type:E}:E;if(M){const R=Sr(Boolean,M.type),W=Sr(String,M.type);M[0]=R>-1,M[1]=W<0||R<W,(R>-1||B(M,"default"))&&c.push(v)}}}const a=[i,c];return r.set(e,a),a}function jr(e){return e[0]!=="$"}function Lr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function $r(e,t){return Lr(e)===Lr(t)}function Sr(e,t){return j(t)?t.findIndex(n=>$r(n,e)):H(t)&&$r(t,e)?0:-1}const Ls=e=>e[0]==="_"||e==="$stable",pr=e=>j(e)?e.map(We):[We(e)],Pi=(e,t,n)=>{if(t._n)return t;const r=Xo((...s)=>pr(t(...s)),n);return r._c=!1,r},$s=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ls(s))continue;const o=e[s];if(H(o))t[s]=Pi(s,o,r);else if(o!=null){const i=pr(o);t[s]=()=>i}}},Ss=(e,t)=>{const n=pr(t);e.slots.default=()=>n},Mi=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=V(t),ln(t,"_",n)):$s(t,e.slots={})}else e.slots={},t&&Ss(e,t);ln(e.slots,xn,1)},Ii=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=Z;if(r.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(ce(s,t),!n&&c===1&&delete s._):(o=!t.$stable,$s(t,s)),i=t}else t&&(Ss(e,t),i={default:1});if(o)for(const c in s)!Ls(c)&&!(c in i)&&delete s[c]};function Hs(){return{app:null,config:{isNativeTag:to,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 Ni=0;function Fi(e,t){return function(r,s=null){H(r)||(r=Object.assign({},r)),s!=null&&!se(s)&&(s=null);const o=Hs(),i=new Set;let c=!1;const f=o.app={_uid:Ni++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:el,get config(){return o.config},set config(a){},use(a,...d){return i.has(a)||(a&&H(a.install)?(i.add(a),a.install(f,...d)):H(a)&&(i.add(a),a(f,...d))),f},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),f},component(a,d){return d?(o.components[a]=d,f):o.components[a]},directive(a,d){return d?(o.directives[a]=d,f):o.directives[a]},mount(a,d,v){if(!c){const E=de(r,s);return E.appContext=o,d&&t?t(E,a):e(E,a,v),c=!0,f._container=a,a.__vue_app__=f,_r(E.component)||E.component.proxy}},unmount(){c&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,d){return o.provides[a]=d,f}};return f}}function qn(e,t,n,r,s=!1){if(j(e)){e.forEach((E,M)=>qn(E,t&&(j(t)?t[M]:t),n,r,s));return}if(Dt(r)&&!s)return;const o=r.shapeFlag&4?_r(r.component)||r.component.proxy:r.el,i=s?null:o,{i:c,r:f}=e,a=t&&t.r,d=c.refs===Z?c.refs={}:c.refs,v=c.setupState;if(a!=null&&a!==f&&(ie(a)?(d[a]=null,B(v,a)&&(v[a]=null)):he(a)&&(a.value=null)),H(f))ot(f,c,12,[i,d]);else{const E=ie(f),M=he(f);if(E||M){const R=()=>{if(e.f){const W=E?d[f]:f.value;s?j(W)&&Gn(W,o):j(W)?W.includes(o)||W.push(o):E?(d[f]=[o],B(v,f)&&(v[f]=d[f])):(f.value=[o],e.k&&(d[e.k]=f.value))}else E?(d[f]=i,B(v,f)&&(v[f]=i)):M&&(f.value=i,e.k&&(d[e.k]=i))};i?(R.id=-1,Te(R,n)):R()}}}const Te=ni;function Ri(e){return ji(e)}function ji(e,t){const n=lo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:c,createComment:f,setText:a,setElementText:d,parentNode:v,nextSibling:E,setScopeId:M=He,cloneNode:R,insertStaticContent:W}=e,L=(l,u,h,g=null,m=null,y=null,C=!1,_=null,w=!!u.dynamicChildren)=>{if(l===u)return;l&&!jt(l,u)&&(g=vt(l),Me(l,m,y,!0),l=null),u.patchFlag===-2&&(w=!1,u.dynamicChildren=null);const{type:b,ref:A,shapeFlag:T}=u;switch(b){case mr:$(l,u,h,g);break;case lt:G(l,u,h,g);break;case Nn:l==null&&J(u,h,g,C);break;case Le:ct(l,u,h,g,m,y,C,_,w);break;default:T&1?pe(l,u,h,g,m,y,C,_,w):T&6?Yt(l,u,h,g,m,y,C,_,w):(T&64||T&128)&&b.process(l,u,h,g,m,y,C,_,w,Ze)}A!=null&&m&&qn(A,l&&l.ref,y,u||l,!u)},$=(l,u,h,g)=>{if(l==null)r(u.el=c(u.children),h,g);else{const m=u.el=l.el;u.children!==l.children&&a(m,u.children)}},G=(l,u,h,g)=>{l==null?r(u.el=f(u.children||""),h,g):u.el=l.el},J=(l,u,h,g)=>{[l.el,l.anchor]=W(l.children,u,h,g,l.el,l.anchor)},X=({el:l,anchor:u},h,g)=>{let m;for(;l&&l!==u;)m=E(l),r(l,h,g),l=m;r(u,h,g)},ve=({el:l,anchor:u})=>{let h;for(;l&&l!==u;)h=E(l),s(l),l=h;s(u)},pe=(l,u,h,g,m,y,C,_,w)=>{C=C||u.type==="svg",l==null?ye(u,h,g,m,y,C,_,w):Re(l,u,m,y,C,_,w)},ye=(l,u,h,g,m,y,C,_)=>{let w,b;const{type:A,props:T,shapeFlag:P,transition:N,patchFlag:K,dirs:z}=l;if(l.el&&R!==void 0&&K===-1)w=l.el=R(l.el);else{if(w=l.el=i(l.type,y,T&&T.is,T),P&8?d(w,l.children):P&16&&fe(l.children,w,null,g,m,y&&A!=="foreignObject",C,_),z&&ht(l,null,g,"created"),T){for(const Y in T)Y!=="value"&&!sn(Y)&&o(w,Y,null,T[Y],y,l.children,g,m,Ie);"value"in T&&o(w,"value",null,T.value),(b=T.onVnodeBeforeMount)&&Ue(b,g,l)}we(w,l,l.scopeId,C,g)}z&&ht(l,null,g,"beforeMount");const k=(!m||m&&!m.pendingBranch)&&N&&!N.persisted;k&&N.beforeEnter(w),r(w,u,h),((b=T&&T.onVnodeMounted)||k||z)&&Te(()=>{b&&Ue(b,g,l),k&&N.enter(w),z&&ht(l,null,g,"mounted")},m)},we=(l,u,h,g,m)=>{if(h&&M(l,h),g)for(let y=0;y<g.length;y++)M(l,g[y]);if(m){let y=m.subTree;if(u===y){const C=m.vnode;we(l,C,C.scopeId,C.slotScopeIds,m.parent)}}},fe=(l,u,h,g,m,y,C,_,w=0)=>{for(let b=w;b<l.length;b++){const A=l[b]=_?rt(l[b]):We(l[b]);L(null,A,u,h,g,m,y,C,_)}},Re=(l,u,h,g,m,y,C)=>{const _=u.el=l.el;let{patchFlag:w,dynamicChildren:b,dirs:A}=u;w|=l.patchFlag&16;const T=l.props||Z,P=u.props||Z;let N;h&&dt(h,!1),(N=P.onVnodeBeforeUpdate)&&Ue(N,h,u,l),A&&ht(u,l,h,"beforeUpdate"),h&&dt(h,!0);const K=m&&u.type!=="foreignObject";if(b?xe(l.dynamicChildren,b,_,h,g,K,y):C||ge(l,u,_,null,h,g,K,y,!1),w>0){if(w&16)Xe(_,u,T,P,h,g,m);else if(w&2&&T.class!==P.class&&o(_,"class",null,P.class,m),w&4&&o(_,"style",T.style,P.style,m),w&8){const z=u.dynamicProps;for(let k=0;k<z.length;k++){const Y=z[k],Ee=T[Y],je=P[Y];(je!==Ee||Y==="value")&&o(_,Y,Ee,je,m,l.children,h,g,Ie)}}w&1&&l.children!==u.children&&d(_,u.children)}else!C&&b==null&&Xe(_,u,T,P,h,g,m);((N=P.onVnodeUpdated)||A)&&Te(()=>{N&&Ue(N,h,u,l),A&&ht(u,l,h,"updated")},g)},xe=(l,u,h,g,m,y,C)=>{for(let _=0;_<u.length;_++){const w=l[_],b=u[_],A=w.el&&(w.type===Le||!jt(w,b)||w.shapeFlag&70)?v(w.el):h;L(w,b,A,null,g,m,y,C,!0)}},Xe=(l,u,h,g,m,y,C)=>{if(h!==g){for(const _ in g){if(sn(_))continue;const w=g[_],b=h[_];w!==b&&_!=="value"&&o(l,_,b,w,C,u.children,m,y,Ie)}if(h!==Z)for(const _ in h)!sn(_)&&!(_ in g)&&o(l,_,h[_],null,C,u.children,m,y,Ie);"value"in g&&o(l,"value",h.value,g.value)}},ct=(l,u,h,g,m,y,C,_,w)=>{const b=u.el=l?l.el:c(""),A=u.anchor=l?l.anchor:c("");let{patchFlag:T,dynamicChildren:P,slotScopeIds:N}=u;N&&(_=_?_.concat(N):N),l==null?(r(b,h,g),r(A,h,g),fe(u.children,h,A,m,y,C,_,w)):T>0&&T&64&&P&&l.dynamicChildren?(xe(l.dynamicChildren,P,h,m,y,C,_),(u.key!=null||m&&u===m.subTree)&&gr(l,u,!0)):ge(l,u,h,A,m,y,C,_,w)},Yt=(l,u,h,g,m,y,C,_,w)=>{u.slotScopeIds=_,l==null?u.shapeFlag&512?m.ctx.activate(u,h,g,C,w):le(u,h,g,m,y,C,w):ue(l,u,w)},le=(l,u,h,g,m,y,C)=>{const _=l.component=zi(l,g,m);if(Os(l)&&(_.ctx.renderer=Ze),Ji(_),_.asyncDep){if(m&&m.registerDep(_,Q),!l.el){const w=_.subTree=de(lt);G(null,w,u,h)}return}Q(_,l,u,h,m,y,C)},ue=(l,u,h)=>{const g=u.component=l.component;if(Go(l,u,h))if(g.asyncDep&&!g.asyncResolved){q(g,u,h);return}else g.next=u,zo(g.update),g.update();else u.el=l.el,g.vnode=u},Q=(l,u,h,g,m,y,C)=>{const _=()=>{if(l.isMounted){let{next:A,bu:T,u:P,parent:N,vnode:K}=l,z=A,k;dt(l,!1),A?(A.el=K.el,q(l,A,C)):A=K,T&&An(T),(k=A.props&&A.props.onVnodeBeforeUpdate)&&Ue(k,N,A,K),dt(l,!0);const Y=Pn(l),Ee=l.subTree;l.subTree=Y,L(Ee,Y,v(Ee.el),vt(Ee),l,m,y),A.el=Y.el,z===null&&ei(l,Y.el),P&&Te(P,m),(k=A.props&&A.props.onVnodeUpdated)&&Te(()=>Ue(k,N,A,K),m)}else{let A;const{el:T,props:P}=u,{bm:N,m:K,parent:z}=l,k=Dt(u);if(dt(l,!1),N&&An(N),!k&&(A=P&&P.onVnodeBeforeMount)&&Ue(A,z,u),dt(l,!0),T&&at){const Y=()=>{l.subTree=Pn(l),at(T,l.subTree,l,m,null)};k?u.type.__asyncLoader().then(()=>!l.isUnmounted&&Y()):Y()}else{const Y=l.subTree=Pn(l);L(null,Y,h,g,l,m,y),u.el=Y.el}if(K&&Te(K,m),!k&&(A=P&&P.onVnodeMounted)){const Y=u;Te(()=>Ue(A,z,Y),m)}(u.shapeFlag&256||z&&Dt(z.vnode)&&z.vnode.shapeFlag&256)&&l.a&&Te(l.a,m),l.isMounted=!0,u=h=g=null}},w=l.effect=new rr(_,()=>_s(b),l.scope),b=l.update=()=>w.run();b.id=l.uid,dt(l,!0),b()},q=(l,u,h)=>{u.component=l;const g=l.vnode.props;l.vnode=u,l.next=null,Ai(l,u.props,g,h),Ii(l,u.children,h),Mt(),vn(void 0,l.update),It()},ge=(l,u,h,g,m,y,C,_,w=!1)=>{const b=l&&l.children,A=l?l.shapeFlag:0,T=u.children,{patchFlag:P,shapeFlag:N}=u;if(P>0){if(P&128){qe(b,T,h,g,m,y,C,_,w);return}else if(P&256){_t(b,T,h,g,m,y,C,_,w);return}}N&8?(A&16&&Ie(b,m,y),T!==b&&d(h,T)):A&16?N&16?qe(b,T,h,g,m,y,C,_,w):Ie(b,m,y,!0):(A&8&&d(h,""),N&16&&fe(T,h,g,m,y,C,_,w))},_t=(l,u,h,g,m,y,C,_,w)=>{l=l||Ct,u=u||Ct;const b=l.length,A=u.length,T=Math.min(b,A);let P;for(P=0;P<T;P++){const N=u[P]=w?rt(u[P]):We(u[P]);L(l[P],N,h,null,m,y,C,_,w)}b>A?Ie(l,m,y,!0,!1,T):fe(u,h,g,m,y,C,_,w,T)},qe=(l,u,h,g,m,y,C,_,w)=>{let b=0;const A=u.length;let T=l.length-1,P=A-1;for(;b<=T&&b<=P;){const N=l[b],K=u[b]=w?rt(u[b]):We(u[b]);if(jt(N,K))L(N,K,h,null,m,y,C,_,w);else break;b++}for(;b<=T&&b<=P;){const N=l[T],K=u[P]=w?rt(u[P]):We(u[P]);if(jt(N,K))L(N,K,h,null,m,y,C,_,w);else break;T--,P--}if(b>T){if(b<=P){const N=P+1,K=N<A?u[N].el:g;for(;b<=P;)L(null,u[b]=w?rt(u[b]):We(u[b]),h,K,m,y,C,_,w),b++}}else if(b>P)for(;b<=T;)Me(l[b],m,y,!0),b++;else{const N=b,K=b,z=new Map;for(b=K;b<=P;b++){const me=u[b]=w?rt(u[b]):We(u[b]);me.key!=null&&z.set(me.key,b)}let k,Y=0;const Ee=P-K+1;let je=!1,Nt=0;const Ke=new Array(Ee);for(b=0;b<Ee;b++)Ke[b]=0;for(b=N;b<=T;b++){const me=l[b];if(Y>=Ee){Me(me,m,y,!0);continue}let Ne;if(me.key!=null)Ne=z.get(me.key);else for(k=K;k<=P;k++)if(Ke[k-K]===0&&jt(me,u[k])){Ne=k;break}Ne===void 0?Me(me,m,y,!0):(Ke[Ne-K]=b+1,Ne>=Nt?Nt=Ne:je=!0,L(me,u[Ne],h,null,m,y,C,_,w),Y++)}const Ft=je?Li(Ke):Ct;for(k=Ft.length-1,b=Ee-1;b>=0;b--){const me=K+b,Ne=u[me],Rt=me+1<A?u[me+1].el:g;Ke[b]===0?L(null,Ne,h,Rt,m,y,C,_,w):je&&(k<0||b!==Ft[k]?ze(Ne,h,Rt,2):k--)}}},ze=(l,u,h,g,m=null)=>{const{el:y,type:C,transition:_,children:w,shapeFlag:b}=l;if(b&6){ze(l.component.subTree,u,h,g);return}if(b&128){l.suspense.move(u,h,g);return}if(b&64){C.move(l,u,h,Ze);return}if(C===Le){r(y,u,h);for(let T=0;T<w.length;T++)ze(w[T],u,h,g);r(l.anchor,u,h);return}if(C===Nn){X(l,u,h);return}if(g!==2&&b&1&&_)if(g===0)_.beforeEnter(y),r(y,u,h),Te(()=>_.enter(y),m);else{const{leave:T,delayLeave:P,afterLeave:N}=_,K=()=>r(y,u,h),z=()=>{T(y,()=>{K(),N&&N()})};P?P(y,K,z):z()}else r(y,u,h)},Me=(l,u,h,g=!1,m=!1)=>{const{type:y,props:C,ref:_,children:w,dynamicChildren:b,shapeFlag:A,patchFlag:T,dirs:P}=l;if(_!=null&&qn(_,null,h,l,!0),A&256){u.ctx.deactivate(l);return}const N=A&1&&P,K=!Dt(l);let z;if(K&&(z=C&&C.onVnodeBeforeUnmount)&&Ue(z,u,l),A&6)ut(l.component,h,g);else{if(A&128){l.suspense.unmount(h,g);return}N&&ht(l,null,u,"beforeUnmount"),A&64?l.type.remove(l,u,h,m,Ze,g):b&&(y!==Le||T>0&&T&64)?Ie(b,u,h,!1,!0):(y===Le&&T&384||!m&&A&16)&&Ie(w,u,h),g&&ft(l)}(K&&(z=C&&C.onVnodeUnmounted)||N)&&Te(()=>{z&&Ue(z,u,l),N&&ht(l,null,u,"unmounted")},h)},ft=l=>{const{type:u,el:h,anchor:g,transition:m}=l;if(u===Le){Vt(h,g);return}if(u===Nn){ve(l);return}const y=()=>{s(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(l.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:_}=m,w=()=>C(h,y);_?_(l.el,y,w):w()}else y()},Vt=(l,u)=>{let h;for(;l!==u;)h=E(l),s(l),l=h;s(u)},ut=(l,u,h)=>{const{bum:g,scope:m,update:y,subTree:C,um:_}=l;g&&An(g),m.stop(),y&&(y.active=!1,Me(C,l,u,h)),_&&Te(_,u),Te(()=>{l.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&l.asyncDep&&!l.asyncResolved&&l.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Ie=(l,u,h,g=!1,m=!1,y=0)=>{for(let C=y;C<l.length;C++)Me(l[C],u,h,g,m)},vt=l=>l.shapeFlag&6?vt(l.component.subTree):l.shapeFlag&128?l.suspense.next():E(l.anchor||l.el),Xt=(l,u,h)=>{l==null?u._vnode&&Me(u._vnode,null,null,!0):L(u._vnode||null,l,u,null,null,null,h),ws(),u._vnode=l},Ze={p:L,um:Me,m:ze,r:ft,mt:le,mc:fe,pc:ge,pbc:xe,n:vt,o:e};let Qe,at;return t&&([Qe,at]=t(Ze)),{render:Xt,hydrate:Qe,createApp:Fi(Xt,Qe)}}function dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function gr(e,t,n=!1){const r=e.children,s=t.children;if(j(r)&&j(s))for(let o=0;o<r.length;o++){const i=r[o];let c=s[o];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=s[o]=rt(s[o]),c.el=i.el),n||gr(i,c))}}function Li(e){const t=e.slice(),n=[0];let r,s,o,i,c;const f=e.length;for(r=0;r<f;r++){const a=e[r];if(a!==0){if(s=n[n.length-1],e[s]<a){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)c=o+i>>1,e[n[c]]<a?o=c+1:i=c;a<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const $i=e=>e.__isTeleport,Kt=e=>e&&(e.disabled||e.disabled===""),Hr=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,zn=(e,t)=>{const n=e&&e.to;return ie(n)?t?t(n):null:n},Si={__isTeleport:!0,process(e,t,n,r,s,o,i,c,f,a){const{mc:d,pc:v,pbc:E,o:{insert:M,querySelector:R,createText:W,createComment:L}}=a,$=Kt(t.props);let{shapeFlag:G,children:J,dynamicChildren:X}=t;if(e==null){const ve=t.el=W(""),pe=t.anchor=W("");M(ve,n,r),M(pe,n,r);const ye=t.target=zn(t.props,R),we=t.targetAnchor=W("");ye&&(M(we,ye),i=i||Hr(ye));const fe=(Re,xe)=>{G&16&&d(J,Re,xe,s,o,i,c,f)};$?fe(n,pe):ye&&fe(ye,we)}else{t.el=e.el;const ve=t.anchor=e.anchor,pe=t.target=e.target,ye=t.targetAnchor=e.targetAnchor,we=Kt(e.props),fe=we?n:pe,Re=we?ve:ye;if(i=i||Hr(pe),X?(E(e.dynamicChildren,X,fe,s,o,i,c),gr(e,t,!0)):f||v(e,t,fe,Re,s,o,i,c,!1),$)we||rn(t,n,ve,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const xe=t.target=zn(t.props,R);xe&&rn(t,xe,null,a,0)}else we&&rn(t,pe,ye,a,1)}},remove(e,t,n,r,{um:s,o:{remove:o}},i){const{shapeFlag:c,children:f,anchor:a,targetAnchor:d,target:v,props:E}=e;if(v&&o(d),(i||!Kt(E))&&(o(a),c&16))for(let M=0;M<f.length;M++){const R=f[M];s(R,t,n,!0,!!R.dynamicChildren)}},move:rn,hydrate:Hi};function rn(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:f,children:a,props:d}=e,v=o===2;if(v&&r(i,t,n),(!v||Kt(d))&&f&16)for(let E=0;E<a.length;E++)s(a[E],t,n,2);v&&r(c,t,n)}function Hi(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:c,querySelector:f}},a){const d=t.target=zn(t.props,f);if(d){const v=d._lpa||d.firstChild;if(t.shapeFlag&16)if(Kt(t.props))t.anchor=a(i(e),t,c(e),n,r,s,o),t.targetAnchor=v;else{t.anchor=i(e);let E=v;for(;E;)if(E=i(E),E&&E.nodeType===8&&E.data==="teleport anchor"){t.targetAnchor=E,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(v,t,d,n,r,s,o)}}return t.anchor&&i(t.anchor)}const jl=Si,Le=Symbol(void 0),mr=Symbol(void 0),lt=Symbol(void 0),Nn=Symbol(void 0),Ut=[];let Se=null;function Ds(e=!1){Ut.push(Se=e?null:[])}function Di(){Ut.pop(),Se=Ut[Ut.length-1]||null}let zt=1;function Dr(e){zt+=e}function Ks(e){return e.dynamicChildren=zt>0?Se||Ct:null,Di(),zt>0&&Se&&Se.push(e),e}function Ll(e,t,n,r,s,o){return Ks(Ws(e,t,n,r,s,o,!0))}function Us(e,t,n,r,s){return Ks(de(e,t,n,r,s,!0))}function hn(e){return e?e.__v_isVNode===!0:!1}function jt(e,t){return e.type===t.type&&e.key===t.key}const xn="__vInternal",Bs=({key:e})=>e!=null?e:null,on=({ref:e,ref_key:t,ref_for:n})=>e!=null?ie(e)||he(e)||H(e)?{i:_e,r:e,k:t,f:!!n}:e:null;function Ws(e,t=null,n=null,r=0,s=null,o=e===Le?0:1,i=!1,c=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bs(t),ref:t&&on(t),scopeId:Cs,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:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};return c?(br(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=ie(n)?8:16),zt>0&&!i&&Se&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&Se.push(f),f}const de=Ki;function Ki(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===_i)&&(e=lt),hn(e)){const c=At(e,t,!0);return n&&br(c,n),zt>0&&!o&&Se&&(c.shapeFlag&6?Se[Se.indexOf(e)]=c:Se.push(c)),c.patchFlag|=-2,c}if(Qi(e)&&(e=e.__vccOpts),t){t=Ui(t);let{class:c,style:f}=t;c&&!ie(c)&&(t.class=Zn(c)),se(f)&&(ds(f)&&!j(f)&&(f=ce({},f)),t.style=Xn(f))}const i=ie(e)?1:ti(e)?128:$i(e)?64:se(e)?4:H(e)?2:0;return Ws(e,t,n,r,s,i,o,!0)}function Ui(e){return e?ds(e)||xn in e?ce({},e):e:null}function At(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,c=t?Wi(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Bs(c),ref:t&&t.ref?n&&s?j(s)?s.concat(on(t)):[s,on(t)]:on(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&At(e.ssContent),ssFallback:e.ssFallback&&At(e.ssFallback),el:e.el,anchor:e.anchor}}function Bi(e=" ",t=0){return de(mr,null,e,t)}function $l(e="",t=!1){return t?(Ds(),Us(lt,null,e)):de(lt,null,e)}function We(e){return e==null||typeof e=="boolean"?de(lt):j(e)?de(Le,null,e.slice()):typeof e=="object"?rt(e):de(mr,null,String(e))}function rt(e){return e.el===null||e.memo?e:At(e)}function br(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),br(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(xn in t)?t._ctx=_e:s===3&&_e&&(_e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else H(t)?(t={default:t,_ctx:_e},n=32):(t=String(t),r&64?(n=16,t=[Bi(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wi(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Zn([t.class,r.class]));else if(s==="style")t.style=Xn([t.style,r.style]);else if(dn(s)){const o=t[s],i=r[s];i&&o!==i&&!(j(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function Ue(e,t,n,r=null){De(e,t,7,[n,r])}const ki=Hs();let qi=0;function zi(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ki,o={uid:qi++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new co(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:js(r,s),emitsOptions:Es(r,s),emit:null,emitted:null,propsDefaults:Z,inheritAttrs:r.inheritAttrs,ctx:Z,data:Z,props:Z,attrs:Z,slots:Z,refs:Z,setupState:Z,setupContext:null,suspense:n,suspenseId:n?n.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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Vo.bind(null,o),e.ce&&e.ce(o),o}let oe=null;const Sl=()=>oe||_e,Pt=e=>{oe=e,e.scope.on()},bt=()=>{oe&&oe.scope.off(),oe=null};function ks(e){return e.vnode.shapeFlag&4}let Jt=!1;function Ji(e,t=!1){Jt=t;const{props:n,children:r}=e.vnode,s=ks(e);Oi(e,n,s,t),Mi(e,r);const o=s?Yi(e,t):void 0;return Jt=!1,o}function Yi(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,yi));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Xi(e):null;Pt(e),Mt();const o=ot(r,e,0,[e.props,s]);if(It(),bt(),Gr(o)){if(o.then(bt,bt),t)return o.then(i=>{Kr(e,i,t)}).catch(i=>{_n(i,e,0)});e.asyncDep=o}else Kr(e,o,t)}else qs(e,t)}function Kr(e,t,n){H(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=gs(t)),qs(e,n)}let Ur;function qs(e,t,n){const r=e.type;if(!e.render){if(!t&&Ur&&!r.render){const s=r.template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:f}=r,a=ce(ce({isCustomElement:o,delimiters:c},i),f);r.render=Ur(s,a)}}e.render=r.render||He}Pt(e),Mt(),wi(e),It(),bt()}function Vi(e){return new Proxy(e.attrs,{get(t,n){return Pe(e,"get","$attrs"),t[n]}})}function Xi(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Vi(e))},slots:e.slots,emit:e.emit,expose:t}}function _r(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gs(ps(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in un)return un[n](e)}}))}function Zi(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e){return H(e)&&"__vccOpts"in e}const Gi=(e,t)=>Wo(e,t,Jt);function Hl(e,t,n){const r=arguments.length;return r===2?se(t)&&!j(t)?hn(t)?de(e,null,[t]):de(e,t):de(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&hn(n)&&(n=[n]),de(e,t,n))}const el="3.2.37";/*! (c) Andrea Giammarchi - ISC */const tl=(()=>{const e="DOMContentLoaded",t=new WeakMap,n=[],r=i=>{do if(i.nextSibling)return!0;while(i=i.parentNode);return!1},s=()=>{n.splice(0).forEach(i=>{t.get(i[0])!==!0&&(t.set(i[0],!0),i[0][i[1]]())})};document.addEventListener(e,s);class o extends HTMLElement{static withParsedCallback(c,f="parsed"){const{prototype:a}=c,{connectedCallback:d}=a,v=f+"Callback",E=(R,W,L,$)=>{W.disconnect(),L.removeEventListener(e,$),M(R)},M=R=>{n.length||requestAnimationFrame(s),n.push([R,v])};return Object.defineProperties(a,{connectedCallback:{configurable:!0,writable:!0,value(){if(d&&d.apply(this,arguments),v in this&&!t.has(this)){const R=this,{ownerDocument:W}=R;if(t.set(R,!1),W.readyState==="complete"||r(R))M(R);else{const L=()=>E(R,$,W,L);W.addEventListener(e,L);const $=new MutationObserver(()=>{r(R)&&E(R,$,W,L)});$.observe(R.parentNode,{childList:!0,subtree:!0})}}}},[f]:{configurable:!0,get(){return t.get(this)===!0}}}),c}}return o.withParsedCallback(o)})(),nl="http://www.w3.org/2000/svg",gt=typeof document!="undefined"?document:null,Br=gt&&gt.createElement("template"),rl={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 s=t?gt.createElementNS(nl,e):gt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Br.innerHTML=r?`<svg>${e}</svg>`:e;const c=Br.content;if(r){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function sl(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ol(e,t,n){const r=e.style,s=ie(n);if(n&&!s){for(const o in n)Jn(r,o,n[o]);if(t&&!ie(t))for(const o in t)n[o]==null&&Jn(r,o,"")}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Wr=/\s*!important$/;function Jn(e,t,n){if(j(n))n.forEach(r=>Jn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=il(e,t);Wr.test(n)?e.setProperty(ke(r),n.replace(Wr,""),"important"):e[r]=n}}const kr=["Webkit","Moz","ms"],Fn={};function il(e,t){const n=Fn[t];if(n)return n;let r=Fe(t);if(r!=="filter"&&r in e)return Fn[t]=r;r=mn(r);for(let s=0;s<kr.length;s++){const o=kr[s]+r;if(o in e)return Fn[t]=o}return t}const qr="http://www.w3.org/1999/xlink";function ll(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(qr,t.slice(6,t.length)):e.setAttributeNS(qr,t,n);else{const o=Zs(t);n==null||o&&!Xr(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function cl(e,t,n,r,s,o,i){if(t==="innerHTML"||t==="textContent"){r&&i(r,s,o),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const f=n==null?"":n;(e.value!==f||e.tagName==="OPTION")&&(e.value=f),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=Xr(n):n==null&&f==="string"?(n="",c=!0):f==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}const[zs,fl]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Yn=0;const ul=Promise.resolve(),al=()=>{Yn=0},hl=()=>Yn||(ul.then(al),Yn=zs());function dl(e,t,n,r){e.addEventListener(t,n,r)}function pl(e,t,n,r){e.removeEventListener(t,n,r)}function gl(e,t,n,r,s=null){const o=e._vei||(e._vei={}),i=o[t];if(r&&i)i.value=r;else{const[c,f]=ml(t);if(r){const a=o[t]=bl(r,s);dl(e,c,a,f)}else i&&(pl(e,c,i,f),o[t]=void 0)}}const zr=/(?:Once|Passive|Capture)$/;function ml(e){let t;if(zr.test(e)){t={};let n;for(;n=e.match(zr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[ke(e.slice(2)),t]}function bl(e,t){const n=r=>{const s=r.timeStamp||zs();(fl||s>=n.attached-1)&&De(_l(r,n.value),t,5,[r])};return n.value=e,n.attached=hl(),n}function _l(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Jr=/^on[a-z]/,vl=(e,t,n,r,s=!1,o,i,c,f)=>{t==="class"?sl(e,r,s):t==="style"?ol(e,n,r):dn(t)?Qn(t)||gl(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yl(e,t,r,s))?cl(e,t,r,o,i,c,f):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ll(e,t,r,s))};function yl(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Jr.test(t)&&H(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Jr.test(t)&&ie(n)?!1:t in e}const wl=["ctrl","shift","alt","meta"],xl={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>wl.some(n=>e[`${n}Key`]&&!t.includes(n))},Dl=(e,t)=>(n,...r)=>{for(let s=0;s<t.length;s++){const o=xl[t[s]];if(o&&o(n,t))return}return e(n,...r)},El={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Kl=(e,t)=>n=>{if(!("key"in n))return;const r=ke(n.key);if(t.some(s=>s===r||El[s]===r))return e(n)},Cl=ce({patchProp:vl},rl);let Yr;function Tl(){return Yr||(Yr=Ri(Cl))}const Vr=(...e)=>{Tl().render(...e)},Ol=typeof HTMLElement!="undefined"?tl:class{};class vr extends Ol{constructor(t,n={},r={},s){super(),this._def=t,this._props=n,this._config=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._config=ce({shadowRoot:!0},this._config),this._config.shadowRoot?this.shadowRoot&&s?s(this._createVNode(),this._root):this.attachShadow({mode:"open"}):s&&s(this._createVNode(),this._root)}get _root(){return this._config.shadowRoot?this.shadowRoot:this}connectedCallback(){this._config.shadowRoot?this._connect():super.connectedCallback()}parsedCallback(){this._config.shadowRoot||this._connect()}_connect(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,bs(()=>{this._connected||(Vr(null,this._root),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}).observe(this,{attributes:!0});const t=r=>{const{props:s,styles:o}=r,i=!j(s),c=s?i?Object.keys(s):s:[];let f;if(i&&s)for(const a in this._props){const d=s[a];(d===Number||d&&d.type===Number)&&(this._props[a]=Rn(this._props[a]),(f||(f=Object.create(null)))[a]=!0)}this._numberProps=f;for(const a of Object.keys(this))a[0]!=="_"&&this._setProp(a,this[a],!0,!1);for(const a of c.map(Fe))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(d){this._setProp(a,d)}});this._config.shadowRoot||(this._slots=Array.from(this.children).map(a=>a.cloneNode(!0)),this.replaceChildren()),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=Rn(n)),this._setProp(Fe(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!0){n!==this._props[t]&&(this._props[t]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(ke(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ke(t),`${n}`):n||this.removeAttribute(ke(t))))}_update(){Vr(this._createVNode(),this._root)}_createVNode(){let t=null;this._config.shadowRoot||(t=()=>{const r=s=>{const o={};for(let i=0,c=s.length;i<c;i++){const f=s[i];o[f.nodeName]=f.nodeValue}return o};return this._slots.map(s=>{const o=s.attributes?r(s.attributes):{};return o.innerHTML=s.innerHTML,de(s.tagName,o,null)})});const n=de(this._def,ce({},this._props),t);return this._instance||(n.ce=r=>{this._instance=r,this._config.shadowRoot&&(r.isCE=!0),r.emit=(o,...i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof vr){r.parent=s._instance;break}}),n}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this._root.appendChild(r)})}}function Ul(e,t,n){const r=oi(e);class s extends vr{constructor(i){super(r,i,t,n)}}return s.def=r,s}var Bl=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};export{Do as A,Le as F,jl as T,Bl as _,Ws as a,$l as b,Ll as c,Nl as d,Us as e,de as f,Xo as g,Dl as h,Fl as i,Ul as j,oi as k,Pl as l,ui as m,Zn as n,Ds as o,di as p,Hl as q,Rl as r,lr as s,Al as t,Ml as u,ps as v,Kl as w,Sl as x,Il as y,bs as z};
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,D=!1,ee;return{s:function(){x=x.call(O)},n:function(){var ne=x.next();return S=ne.done,ne},e:function(ne){D=!0,ee=ne},f:function(){try{!S&&x.return!=null&&x.return()}finally{if(D)throw ee}}}}/*! (c) Andrea Giammarchi - ISC */var s=!0,o=!1,i="querySelectorAll",c=function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:MutationObserver,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:["*"],S=function ne(Ge,et,Ce,B,te,re){var Oe=r(Ge),yt;try{for(Oe.s();!(yt=Oe.n()).done;){var ae=yt.value;(re||i in ae)&&(te?Ce.has(ae)||(Ce.add(ae),B.delete(ae),p(ae,te)):B.has(ae)||(B.add(ae),Ce.delete(ae),p(ae,te)),re||ne(ae[i](et),et,Ce,B,te,s))}}catch(Tn){Oe.e(Tn)}finally{Oe.f()}},D=new F(function(ne){if(I.length){var Ge=I.join(","),et=new Set,Ce=new Set,B=r(ne),te;try{for(B.s();!(te=B.n()).done;){var re=te.value,Oe=re.addedNodes,yt=re.removedNodes;S(yt,Ge,et,Ce,o,o),S(Oe,Ge,et,Ce,s,o)}}catch(ae){B.e(ae)}finally{B.f()}}}),ee=D.observe;return(D.observe=function(ne){return ee.call(D,ne,{subtree:s,childList:s})})(x),D},f="querySelectorAll",a=self,d=a.document,v=a.Element,E=a.MutationObserver,M=a.Set,R=a.WeakMap,W=function(p){return f in p},L=[].filter,$=function(O){var p=new R,x=function(B){for(var te=0,re=B.length;te<re;te++)p.delete(B[te])},F=function(){for(var B=Ge.takeRecords(),te=0,re=B.length;te<re;te++)D(L.call(B[te].removedNodes,W),!1),D(L.call(B[te].addedNodes,W),!0)},I=function(B){return B.matches||B.webkitMatchesSelector||B.msMatchesSelector},S=function(B,te){var re;if(te)for(var Oe,yt=I(B),ae=0,Tn=ee.length;ae<Tn;ae++)yt.call(B,Oe=ee[ae])&&(p.has(B)||p.set(B,new M),re=p.get(B),re.has(Oe)||(re.add(Oe),O.handle(B,te,Oe)));else p.has(B)&&(re=p.get(B),p.delete(B),re.forEach(function(Vs){O.handle(B,te,Vs)}))},D=function(B){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,re=0,Oe=B.length;re<Oe;re++)S(B[re],te)},ee=O.query,ne=O.root||d,Ge=c(S,ne,E,ee),et=v.prototype.attachShadow;return et&&(v.prototype.attachShadow=function(Ce){var B=et.call(this,Ce);return Ge.observe(B),B}),ee.length&&D(ne[f](ee)),{drop:x,flush:F,observer:Ge,parse:D}},G=self,J=G.document,X=G.Map,ve=G.MutationObserver,pe=G.Object,ye=G.Set,we=G.WeakMap,fe=G.Element,Re=G.HTMLElement,xe=G.Node,Xe=G.Error,ct=G.TypeError,Yt=G.Reflect,le=pe.defineProperty,ue=pe.keys,Q=pe.getOwnPropertyNames,q=pe.setPrototypeOf,ge=!self.customElements,bt=function(p){for(var x=ue(p),F=[],I=x.length,S=0;S<I;S++)F[S]=p[x[S]],delete p[x[S]];return function(){for(var D=0;D<I;D++)p[x[D]]=F[D]}};if(ge){var qe=function(){var p=this.constructor;if(!Me.has(p))throw new ct("Illegal constructor");var x=Me.get(p);if(Qe)return l(Qe,x);var F=ze.call(J,x);return l(q(F,p.prototype),x)},ze=J.createElement,Me=new X,ft=new X,Vt=new X,ut=new X,Ie=[],vt=function(p,x,F){var I=Vt.get(F);if(x&&!I.isPrototypeOf(p)){var S=bt(p);Qe=q(p,I);try{new I.constructor}finally{Qe=null,S()}}var D="".concat(x?"":"dis","connectedCallback");D in I&&p[D]()},Xt=$({query:Ie,handle:vt}),Ze=Xt.parse,Qe=null,at=function(p){if(!ft.has(p)){var x,F=new Promise(function(I){x=I});ft.set(p,{$:F,_:x})}return ft.get(p).$},l=e(at,ve);le(self,"customElements",{configurable:!0,value:{define:function(p,x){if(ut.has(p))throw new Xe('the name "'.concat(p,'" has already been used with this registry'));Me.set(x,p),Vt.set(p,x.prototype),ut.set(p,x),Ie.push(p),at(p).then(function(){Ze(J.querySelectorAll(p))}),ft.get(p)._(x)},get:function(p){return ut.get(p)},whenDefined:at}}),le(qe.prototype=Re.prototype,"constructor",{value:qe}),le(self,"HTMLElement",{configurable:!0,value:qe}),le(J,"createElement",{configurable:!0,value:function(p,x){var F=x&&x.is,I=F?ut.get(F):ut.get(p);return I?new I:ze.call(J,p)}}),"isConnected"in xe.prototype||le(xe.prototype,"isConnected",{configurable:!0,get:function(){return!(this.ownerDocument.compareDocumentPosition(this)&this.DOCUMENT_POSITION_DISCONNECTED)}})}else try{var u=function O(){return self.Reflect.construct(HTMLLIElement,[],O)};u.prototype=HTMLLIElement.prototype;var h="extends-li";self.customElements.define("extends-li",u,{extends:"li"}),ge=J.createElement("li",{is:h}).outerHTML.indexOf(h)<0;var g=self.customElements,m=g.get,y=g.whenDefined;le(self.customElements,"whenDefined",{configurable:!0,value:function(p){var x=this;return y.call(this,p).then(function(F){return F||m.call(x,p)})}})}catch{ge=!ge}if(ge){var C=function(p){var x=U.get(p);Rt(x.querySelectorAll(this),p.isConnected)},b=self.customElements,w=J.createElement,_=b.define,A=b.get,T=b.upgrade,P=Yt||{construct:function(p){return p.call(this)}},N=P.construct,U=new we,z=new ye,k=new X,Y=new X,Ee=new X,je=new X,Nt=[],Ue=[],Ft=function(p){return je.get(p)||A.call(b,p)},me=function(p,x,F){var I=Ee.get(F);if(x&&!I.isPrototypeOf(p)){var S=bt(p);Zt=q(p,I);try{new I.constructor}finally{Zt=null,S()}}var D="".concat(x?"":"dis","connectedCallback");D in I&&p[D]()},Ne=$({query:Ue,handle:me}),Rt=Ne.parse,Js=$({query:Nt,handle:function(p,x){U.has(p)&&(x?z.add(p):z.delete(p),Ue.length&&C.call(Ue,p))}}),Ys=Js.parse,yr=fe.prototype.attachShadow;yr&&(fe.prototype.attachShadow=function(O){var p=yr.call(this,O);return U.set(this,p),p});var En=function(p){if(!Y.has(p)){var x,F=new Promise(function(I){x=I});Y.set(p,{$:F,_:x})}return Y.get(p).$},Cn=e(En,ve),Zt=null;Q(self).filter(function(O){return/^HTML.*Element$/.test(O)}).forEach(function(O){var p=self[O];function x(){var F=this.constructor;if(!k.has(F))throw new ct("Illegal constructor");var I=k.get(F),S=I.is,D=I.tag;if(S){if(Zt)return Cn(Zt,S);var ee=w.call(J,D);return ee.setAttribute("is",S),Cn(q(ee,F.prototype),S)}else return N.call(this,p,[],F)}le(x.prototype=p.prototype,"constructor",{value:x}),le(self,O,{value:x})}),le(J,"createElement",{configurable:!0,value:function(p,x){var F=x&&x.is;if(F){var I=je.get(F);if(I&&k.get(I).tag===p)return new I}var S=w.call(J,p);return F&&S.setAttribute("is",F),S}}),le(b,"get",{configurable:!0,value:Ft}),le(b,"whenDefined",{configurable:!0,value:En}),le(b,"upgrade",{configurable:!0,value:function(p){var x=p.getAttribute("is");if(x){var F=je.get(x);if(F){Cn(q(p,F.prototype),x);return}}T.call(b,p)}}),le(b,"define",{configurable:!0,value:function(p,x,F){if(Ft(p))throw new Xe("'".concat(p,"' has already been defined as a custom element"));var I,S=F&&F.extends;k.set(x,S?{is:p,tag:S}:{is:"",tag:p}),S?(I="".concat(S,'[is="').concat(p,'"]'),Ee.set(I,x.prototype),je.set(p,x),Ue.push(I)):(_.apply(b,arguments),Nt.push(I=p)),En(p).then(function(){S?(Rt(J.querySelectorAll(I)),z.forEach(C,[I])):Ys(J.querySelectorAll(I))}),Y.get(p)._(x)}})}})();function Vn(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Xs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zs=Vn(Xs);function Xr(e){return!!e||e===""}function Xn(e){if(j(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ie(r)?eo(r):Xn(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(ie(e))return e;if(se(e))return e}}const Qs=/;(?![^(]*\))/g,Gs=/:(.+)/;function eo(e){const t={};return e.split(Qs).forEach(n=>{if(n){const r=n.split(Gs);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Zn(e){let t="";if(ie(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){const r=Zn(e[n]);r&&(t+=r+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Tl=e=>ie(e)?e:e==null?"":j(e)||se(e)&&(e.toString===es||!H(e.toString))?JSON.stringify(e,Zr,2):String(e),Zr=(e,t)=>t&&t.__v_isRef?Zr(e,t.value):Tt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Qr(t)?{[`Set(${t.size})`]:[...t.values()]}:se(t)&&!j(t)&&!ts(t)?String(t):t,Z={},Ct=[],He=()=>{},to=()=>!1,no=/^on[^a-z]/,dn=e=>no.test(e),Qn=e=>e.startsWith("onUpdate:"),ce=Object.assign,Gn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ro=Object.prototype.hasOwnProperty,K=(e,t)=>ro.call(e,t),j=Array.isArray,Tt=e=>pn(e)==="[object Map]",Qr=e=>pn(e)==="[object Set]",H=e=>typeof e=="function",ie=e=>typeof e=="string",er=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",Gr=e=>se(e)&&H(e.then)&&H(e.catch),es=Object.prototype.toString,pn=e=>es.call(e),so=e=>pn(e).slice(8,-1),ts=e=>pn(e)==="[object Object]",tr=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=Vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oo=/-(\w)/g,Fe=gn(e=>e.replace(oo,(t,n)=>n?n.toUpperCase():"")),io=/\B([A-Z])/g,ke=gn(e=>e.replace(io,"-$1").toLowerCase()),mn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),On=gn(e=>e?`on${mn(e)}`:""),Kt=(e,t)=>!Object.is(e,t),An=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ln=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Rn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let wr;const lo=()=>wr||(wr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Ke;class co{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Ke&&(this.parent=Ke,this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.active=!1}}}function fo(e,t=Ke){t&&t.active&&t.effects.push(e)}const nr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ns=e=>(e.w&it)>0,rs=e=>(e.n&it)>0,uo=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=it},ao=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];ns(s)&&!rs(s)?s.delete(e):t[n++]=s,s.w&=~it,s.n&=~it}t.length=n}},jn=new WeakMap;let Lt=0,it=1;const Ln=30;let $e;const mt=Symbol(""),$n=Symbol("");class rr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,fo(this,r)}run(){if(!this.active)return this.fn();let t=$e,n=st;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=$e,$e=this,st=!0,it=1<<++Lt,Lt<=Ln?uo(this):xr(this),this.fn()}finally{Lt<=Ln&&ao(this),it=1<<--Lt,$e=this.parent,st=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){$e===this?this.deferStop=!0:this.active&&(xr(this),this.onStop&&this.onStop(),this.active=!1)}}function xr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let st=!0;const ss=[];function Mt(){ss.push(st),st=!1}function It(){const e=ss.pop();st=e===void 0?!0:e}function Pe(e,t,n){if(st&&$e){let r=jn.get(e);r||jn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=nr()),os(s)}}function os(e,t){let n=!1;Lt<=Ln?rs(e)||(e.n|=it,n=!ns(e)):n=!e.has($e),n&&(e.add($e),$e.deps.push(e))}function Ye(e,t,n,r,s,o){const i=jn.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&j(e))i.forEach((f,a)=>{(a==="length"||a>=r)&&c.push(f)});else switch(n!==void 0&&c.push(i.get(n)),t){case"add":j(e)?tr(n)&&c.push(i.get("length")):(c.push(i.get(mt)),Tt(e)&&c.push(i.get($n)));break;case"delete":j(e)||(c.push(i.get(mt)),Tt(e)&&c.push(i.get($n)));break;case"set":Tt(e)&&c.push(i.get(mt));break}if(c.length===1)c[0]&&Sn(c[0]);else{const f=[];for(const a of c)a&&f.push(...a);Sn(nr(f))}}function Sn(e,t){const n=j(e)?e:[...e];for(const r of n)r.computed&&Er(r);for(const r of n)r.computed||Er(r)}function Er(e,t){(e!==$e||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ho=Vn("__proto__,__v_isRef,__isVue"),is=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(er)),po=sr(),go=sr(!1,!0),mo=sr(!0),Cr=_o();function _o(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=V(this);for(let o=0,i=this.length;o<i;o++)Pe(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(V)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Mt();const r=V(this)[t].apply(this,n);return It(),r}}),e}function sr(e=!1,t=!1){return function(r,s,o){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&o===(e?t?Ro:as:t?us:fs).get(r))return r;const i=j(r);if(!e&&i&&K(Cr,s))return Reflect.get(Cr,s,o);const c=Reflect.get(r,s,o);return(er(s)?is.has(s):ho(s))||(e||Pe(r,"get",s),t)?c:he(c)?i&&tr(s)?c:c.value:se(c)?e?hs(c):lr(c):c}}const bo=ls(),vo=ls(!0);function ls(e=!1){return function(n,r,s,o){let i=n[r];if(Wt(i)&&he(i)&&!he(s))return!1;if(!e&&!Wt(s)&&(Hn(s)||(s=V(s),i=V(i)),!j(n)&&he(i)&&!he(s)))return i.value=s,!0;const c=j(n)&&tr(r)?Number(r)<n.length:K(n,r),f=Reflect.set(n,r,s,o);return n===V(o)&&(c?Kt(s,i)&&Ye(n,"set",r,s):Ye(n,"add",r,s)),f}}function yo(e,t){const n=K(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ye(e,"delete",t,void 0),r}function wo(e,t){const n=Reflect.has(e,t);return(!er(t)||!is.has(t))&&Pe(e,"has",t),n}function xo(e){return Pe(e,"iterate",j(e)?"length":mt),Reflect.ownKeys(e)}const cs={get:po,set:bo,deleteProperty:yo,has:wo,ownKeys:xo},Eo={get:mo,set(e,t){return!0},deleteProperty(e,t){return!0}},Co=ce({},cs,{get:go,set:vo}),or=e=>e,_n=e=>Reflect.getPrototypeOf(e);function Qt(e,t,n=!1,r=!1){e=e.__v_raw;const s=V(e),o=V(t);n||(t!==o&&Pe(s,"get",t),Pe(s,"get",o));const{has:i}=_n(s),c=r?or:n?fr:kt;if(i.call(s,t))return c(e.get(t));if(i.call(s,o))return c(e.get(o));e!==s&&e.get(t)}function Gt(e,t=!1){const n=this.__v_raw,r=V(n),s=V(e);return t||(e!==s&&Pe(r,"has",e),Pe(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function en(e,t=!1){return e=e.__v_raw,!t&&Pe(V(e),"iterate",mt),Reflect.get(e,"size",e)}function Tr(e){e=V(e);const t=V(this);return _n(t).has.call(t,e)||(t.add(e),Ye(t,"add",e,e)),this}function Or(e,t){t=V(t);const n=V(this),{has:r,get:s}=_n(n);let o=r.call(n,e);o||(e=V(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?Kt(t,i)&&Ye(n,"set",e,t):Ye(n,"add",e,t),this}function Ar(e){const t=V(this),{has:n,get:r}=_n(t);let s=n.call(t,e);s||(e=V(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Ye(t,"delete",e,void 0),o}function Pr(){const e=V(this),t=e.size!==0,n=e.clear();return t&&Ye(e,"clear",void 0,void 0),n}function tn(e,t){return function(r,s){const o=this,i=o.__v_raw,c=V(i),f=t?or:e?fr:kt;return!e&&Pe(c,"iterate",mt),i.forEach((a,d)=>r.call(s,f(a),f(d),o))}}function nn(e,t,n){return function(...r){const s=this.__v_raw,o=V(s),i=Tt(o),c=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,a=s[e](...r),d=n?or:t?fr:kt;return!t&&Pe(o,"iterate",f?$n:mt),{next(){const{value:v,done:E}=a.next();return E?{value:v,done:E}:{value:c?[d(v[0]),d(v[1])]:d(v),done:E}},[Symbol.iterator](){return this}}}}function tt(e){return function(...t){return e==="delete"?!1:this}}function To(){const e={get(o){return Qt(this,o)},get size(){return en(this)},has:Gt,add:Tr,set:Or,delete:Ar,clear:Pr,forEach:tn(!1,!1)},t={get(o){return Qt(this,o,!1,!0)},get size(){return en(this)},has:Gt,add:Tr,set:Or,delete:Ar,clear:Pr,forEach:tn(!1,!0)},n={get(o){return Qt(this,o,!0)},get size(){return en(this,!0)},has(o){return Gt.call(this,o,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:tn(!0,!1)},r={get(o){return Qt(this,o,!0,!0)},get size(){return en(this,!0)},has(o){return Gt.call(this,o,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:tn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=nn(o,!1,!1),n[o]=nn(o,!0,!1),t[o]=nn(o,!1,!0),r[o]=nn(o,!0,!0)}),[e,n,t,r]}const[Oo,Ao,Po,Mo]=To();function ir(e,t){const n=t?e?Mo:Po:e?Ao:Oo;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(K(n,s)&&s in r?n:r,s,o)}const Io={get:ir(!1,!1)},No={get:ir(!1,!0)},Fo={get:ir(!0,!1)},fs=new WeakMap,us=new WeakMap,as=new WeakMap,Ro=new WeakMap;function jo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lo(e){return e.__v_skip||!Object.isExtensible(e)?0:jo(so(e))}function lr(e){return Wt(e)?e:cr(e,!1,cs,Io,fs)}function $o(e){return cr(e,!1,Co,No,us)}function hs(e){return cr(e,!0,Eo,Fo,as)}function cr(e,t,n,r,s){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Lo(e);if(i===0)return e;const c=new Proxy(e,i===2?r:n);return s.set(e,c),c}function Ot(e){return Wt(e)?Ot(e.__v_raw):!!(e&&e.__v_isReactive)}function Wt(e){return!!(e&&e.__v_isReadonly)}function Hn(e){return!!(e&&e.__v_isShallow)}function ds(e){return Ot(e)||Wt(e)}function V(e){const t=e&&e.__v_raw;return t?V(t):e}function ps(e){return ln(e,"__v_skip",!0),e}const kt=e=>se(e)?lr(e):e,fr=e=>se(e)?hs(e):e;function ur(e){st&&$e&&(e=V(e),os(e.dep||(e.dep=nr())))}function ar(e,t){e=V(e),e.dep&&Sn(e.dep)}function he(e){return!!(e&&e.__v_isRef===!0)}function Ol(e){return So(e,!1)}function So(e,t){return he(e)?e:new Ho(e,t)}class Ho{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:V(t),this._value=n?t:kt(t)}get value(){return ur(this),this._value}set value(t){t=this.__v_isShallow?t:V(t),Kt(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:kt(t),ar(this))}}function Do(e){return he(e)?e.value:e}const Uo={get:(e,t,n)=>Do(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return he(s)&&!he(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function gs(e){return Ot(e)?e:new Proxy(e,Uo)}class Bo{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>ur(this),()=>ar(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Al(e){return new Bo(e)}class Ko{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new rr(t,()=>{this._dirty||(this._dirty=!0,ar(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=V(this);return ur(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Wo(e,t,n=!1){let r,s;const o=H(e);return o?(r=e,s=He):(r=e.get,s=e.set),new Ko(r,s,o||!s,n)}function ot(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){bn(o,t,n)}return s}function De(e,t,n,r){if(H(e)){const o=ot(e,t,n,r);return o&&Gr(o)&&o.catch(i=>{bn(i,t,n)}),o}const s=[];for(let o=0;o<e.length;o++)s.push(De(e[o],t,n,r));return s}function bn(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,c=n;for(;o;){const a=o.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,c)===!1)return}o=o.parent}const f=t.appContext.config.errorHandler;if(f){ot(f,null,10,[e,i,c]);return}}ko(e,n,s,r)}function ko(e,t,n,r=!0){console.error(e)}let cn=!1,Dn=!1;const Ae=[];let Je=0;const St=[];let $t=null,wt=0;const Ht=[];let nt=null,xt=0;const ms=Promise.resolve();let hr=null,Un=null;function _s(e){const t=hr||ms;return e?t.then(this?e.bind(this):e):t}function qo(e){let t=Je+1,n=Ae.length;for(;t<n;){const r=t+n>>>1;qt(Ae[r])<e?t=r+1:n=r}return t}function bs(e){(!Ae.length||!Ae.includes(e,cn&&e.allowRecurse?Je+1:Je))&&e!==Un&&(e.id==null?Ae.push(e):Ae.splice(qo(e.id),0,e),vs())}function vs(){!cn&&!Dn&&(Dn=!0,hr=ms.then(xs))}function zo(e){const t=Ae.indexOf(e);t>Je&&Ae.splice(t,1)}function ys(e,t,n,r){j(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),vs()}function Jo(e){ys(e,$t,St,wt)}function Yo(e){ys(e,nt,Ht,xt)}function vn(e,t=null){if(St.length){for(Un=t,$t=[...new Set(St)],St.length=0,wt=0;wt<$t.length;wt++)$t[wt]();$t=null,wt=0,Un=null,vn(e,t)}}function ws(e){if(vn(),Ht.length){const t=[...new Set(Ht)];if(Ht.length=0,nt){nt.push(...t);return}for(nt=t,nt.sort((n,r)=>qt(n)-qt(r)),xt=0;xt<nt.length;xt++)nt[xt]();nt=null,xt=0}}const qt=e=>e.id==null?1/0:e.id;function xs(e){Dn=!1,cn=!0,vn(e),Ae.sort((n,r)=>qt(n)-qt(r));const t=He;try{for(Je=0;Je<Ae.length;Je++){const n=Ae[Je];n&&n.active!==!1&&ot(n,null,14)}}finally{Je=0,Ae.length=0,ws(),cn=!1,hr=null,(Ae.length||St.length||Ht.length)&&xs(e)}}function Vo(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Z;let s=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:v,trim:E}=r[d]||Z;E&&(s=n.map(M=>M.trim())),v&&(s=n.map(Rn))}let c,f=r[c=On(t)]||r[c=On(Fe(t))];!f&&o&&(f=r[c=On(ke(t))]),f&&De(f,e,6,s);const a=r[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,De(a,e,6,s)}}function Es(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},c=!1;if(!H(e)){const f=a=>{const d=Es(a,t,!0);d&&(c=!0,ce(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!c?(r.set(e,null),null):(j(o)?o.forEach(f=>i[f]=null):ce(i,o),r.set(e,i),i)}function yn(e,t){return!e||!dn(t)?!1:(t=t.slice(2).replace(/Once$/,""),K(e,t[0].toLowerCase()+t.slice(1))||K(e,ke(t))||K(e,t))}let be=null,Cs=null;function fn(e){const t=be;return be=e,Cs=e&&e.type.__scopeId||null,t}function Xo(e,t=be,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Dr(-1);const o=fn(t),i=e(...s);return fn(o),r._d&&Dr(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function Pn(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:c,attrs:f,emit:a,render:d,renderCache:v,data:E,setupState:M,ctx:R,inheritAttrs:W}=e;let L,$;const G=fn(e);try{if(n.shapeFlag&4){const X=s||r;L=We(d.call(X,X,v,o,M,E,R)),$=f}else{const X=t;L=We(X.length>1?X(o,{attrs:f,slots:c,emit:a}):X(o,null)),$=t.props?f:Zo(f)}}catch(X){Bt.length=0,bn(X,e,1),L=de(lt)}let J=L;if($&&W!==!1){const X=Object.keys($),{shapeFlag:ve}=J;X.length&&ve&7&&(i&&X.some(Qn)&&($=Qo($,i)),J=At(J,$))}return n.dirs&&(J=At(J),J.dirs=J.dirs?J.dirs.concat(n.dirs):n.dirs),n.transition&&(J.transition=n.transition),L=J,fn(G),L}const Zo=e=>{let t;for(const n in e)(n==="class"||n==="style"||dn(n))&&((t||(t={}))[n]=e[n]);return t},Qo=(e,t)=>{const n={};for(const r in e)(!Qn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Go(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:c,patchFlag:f}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?Mr(r,i,a):!!i;if(f&8){const d=t.dynamicProps;for(let v=0;v<d.length;v++){const E=d[v];if(i[E]!==r[E]&&!yn(a,E))return!0}}}else return(s||c)&&(!c||!c.$stable)?!0:r===i?!1:r?i?Mr(r,i,a):!0:!!i;return!1}function Mr(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!yn(n,o))return!0}return!1}function ei({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ti=e=>e.__isSuspense;function ni(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Yo(e)}function ri(e,t){if(oe){let n=oe.provides;const r=oe.parent&&oe.parent.provides;r===n&&(n=oe.provides=Object.create(r)),n[e]=t}}function Mn(e,t,n=!1){const r=oe||be;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&H(t)?t.call(r.proxy):t}}function Pl(e,t){return dr(e,null,t)}const Ir={};function In(e,t,n){return dr(e,t,n)}function dr(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:i}=Z){const c=oe;let f,a=!1,d=!1;if(he(e)?(f=()=>e.value,a=Hn(e)):Ot(e)?(f=()=>e,r=!0):j(e)?(d=!0,a=e.some($=>Ot($)||Hn($)),f=()=>e.map($=>{if(he($))return $.value;if(Ot($))return Et($);if(H($))return ot($,c,2)})):H(e)?t?f=()=>ot(e,c,2):f=()=>{if(!(c&&c.isUnmounted))return v&&v(),De(e,c,3,[E])}:f=He,t&&r){const $=f;f=()=>Et($())}let v,E=$=>{v=L.onStop=()=>{ot($,c,4)}};if(Jt)return E=He,t?n&&De(t,c,3,[f(),d?[]:void 0,E]):f(),He;let M=d?[]:Ir;const R=()=>{if(!!L.active)if(t){const $=L.run();(r||a||(d?$.some((G,J)=>Kt(G,M[J])):Kt($,M)))&&(v&&v(),De(t,c,3,[$,M===Ir?void 0:M,E]),M=$)}else L.run()};R.allowRecurse=!!t;let W;s==="sync"?W=R:s==="post"?W=()=>Te(R,c&&c.suspense):W=()=>Jo(R);const L=new rr(f,W);return t?n?R():M=L.run():s==="post"?Te(L.run.bind(L),c&&c.suspense):L.run(),()=>{L.stop(),c&&c.scope&&Gn(c.scope.effects,L)}}function si(e,t,n){const r=this.proxy,s=ie(e)?e.includes(".")?Ts(r,e):()=>r[e]:e.bind(r,r);let o;H(t)?o=t:(o=t.handler,n=t);const i=oe;Pt(this);const c=dr(s,o.bind(r),n);return i?Pt(i):_t(),c}function Ts(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Et(e,t){if(!se(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),he(e))Et(e.value,t);else if(j(e))for(let n=0;n<e.length;n++)Et(e[n],t);else if(Qr(e)||Tt(e))e.forEach(n=>{Et(n,t)});else if(ts(e))for(const n in e)Et(e[n],t);return e}function oi(e){return H(e)?{setup:e,name:e.name}:e}const Dt=e=>!!e.type.__asyncLoader,Os=e=>e.type.__isKeepAlive;function ii(e,t){As(e,"a",t)}function li(e,t){As(e,"da",t)}function As(e,t,n=oe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(wn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Os(s.parent.vnode)&&ci(r,t,n,s),s=s.parent}}function ci(e,t,n,r){const s=wn(t,e,r,!0);Ps(()=>{Gn(r[t],s)},n)}function wn(e,t,n=oe,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Mt(),Pt(n);const c=De(t,n,e,i);return _t(),It(),c});return r?s.unshift(o):s.push(o),o}}const Ve=e=>(t,n=oe)=>(!Jt||e==="sp")&&wn(e,t,n),fi=Ve("bm"),ui=Ve("m"),ai=Ve("bu"),hi=Ve("u"),di=Ve("bum"),Ps=Ve("um"),pi=Ve("sp"),gi=Ve("rtg"),mi=Ve("rtc");function _i(e,t=oe){wn("ec",e,t)}function ht(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const c=s[i];o&&(c.oldValue=o[i].value);let f=c.dir[r];f&&(Mt(),De(f,n,8,[e.el,c,e,t]),It())}}const Ms="components";function Ml(e,t){return vi(Ms,e,!0,t)||e}const bi=Symbol();function vi(e,t,n=!0,r=!1){const s=be||oe;if(s){const o=s.type;if(e===Ms){const c=Zi(o,!1);if(c&&(c===t||c===Fe(t)||c===mn(Fe(t))))return o}const i=Nr(s[e]||o[e],t)||Nr(s.appContext[e],t);return!i&&r?o:i}}function Nr(e,t){return e&&(e[t]||e[Fe(t)]||e[mn(Fe(t))])}function Il(e,t,n,r){let s;const o=n&&n[r];if(j(e)||ie(e)){s=new Array(e.length);for(let i=0,c=e.length;i<c;i++)s[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o&&o[i])}else if(se(e))if(e[Symbol.iterator])s=Array.from(e,(i,c)=>t(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);s=new Array(i.length);for(let c=0,f=i.length;c<f;c++){const a=i[c];s[c]=t(e[a],a,c,o&&o[c])}}else s=[];return n&&(n[r]=s),s}function Nl(e,t,n={},r,s){if(be.isCE||be.parent&&Dt(be.parent)&&be.parent.isCE)return de("slot",t==="default"?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),Ds();const i=o&&Is(o(n)),c=Bs(Le,{key:n.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!s&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function Is(e){return e.some(t=>hn(t)?!(t.type===lt||t.type===Le&&!Is(t.children)):!0)?e:null}const Bn=e=>e?ks(e)?br(e)||e.proxy:Bn(e.parent):null,un=ce(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=>Bn(e.parent),$root:e=>Bn(e.root),$emit:e=>e.emit,$options:e=>Fs(e),$forceUpdate:e=>e.f||(e.f=()=>bs(e.update)),$nextTick:e=>e.n||(e.n=_s.bind(e.proxy)),$watch:e=>si.bind(e)}),yi={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:c,appContext:f}=e;let a;if(t[0]!=="$"){const M=i[t];if(M!==void 0)switch(M){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(r!==Z&&K(r,t))return i[t]=1,r[t];if(s!==Z&&K(s,t))return i[t]=2,s[t];if((a=e.propsOptions[0])&&K(a,t))return i[t]=3,o[t];if(n!==Z&&K(n,t))return i[t]=4,n[t];Kn&&(i[t]=0)}}const d=un[t];let v,E;if(d)return t==="$attrs"&&Pe(e,"get",t),d(e);if((v=c.__cssModules)&&(v=v[t]))return v;if(n!==Z&&K(n,t))return i[t]=4,n[t];if(E=f.config.globalProperties,K(E,t))return E[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return s!==Z&&K(s,t)?(s[t]=n,!0):r!==Z&&K(r,t)?(r[t]=n,!0):K(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let c;return!!n[i]||e!==Z&&K(e,i)||t!==Z&&K(t,i)||(c=o[0])&&K(c,i)||K(r,i)||K(un,i)||K(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:K(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Kn=!0;function wi(e){const t=Fs(e),n=e.proxy,r=e.ctx;Kn=!1,t.beforeCreate&&Fr(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:c,provide:f,inject:a,created:d,beforeMount:v,mounted:E,beforeUpdate:M,updated:R,activated:W,deactivated:L,beforeDestroy:$,beforeUnmount:G,destroyed:J,unmounted:X,render:ve,renderTracked:pe,renderTriggered:ye,errorCaptured:we,serverPrefetch:fe,expose:Re,inheritAttrs:xe,components:Xe,directives:ct,filters:Yt}=t;if(a&&xi(a,r,null,e.appContext.config.unwrapInjectedRef),i)for(const Q in i){const q=i[Q];H(q)&&(r[Q]=q.bind(n))}if(s){const Q=s.call(n,n);se(Q)&&(e.data=lr(Q))}if(Kn=!0,o)for(const Q in o){const q=o[Q],ge=H(q)?q.bind(n,n):H(q.get)?q.get.bind(n,n):He,bt=!H(q)&&H(q.set)?q.set.bind(n):He,qe=Gi({get:ge,set:bt});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>qe.value,set:ze=>qe.value=ze})}if(c)for(const Q in c)Ns(c[Q],r,n,Q);if(f){const Q=H(f)?f.call(n):f;Reflect.ownKeys(Q).forEach(q=>{ri(q,Q[q])})}d&&Fr(d,e,"c");function ue(Q,q){j(q)?q.forEach(ge=>Q(ge.bind(n))):q&&Q(q.bind(n))}if(ue(fi,v),ue(ui,E),ue(ai,M),ue(hi,R),ue(ii,W),ue(li,L),ue(_i,we),ue(mi,pe),ue(gi,ye),ue(di,G),ue(Ps,X),ue(pi,fe),j(Re))if(Re.length){const Q=e.exposed||(e.exposed={});Re.forEach(q=>{Object.defineProperty(Q,q,{get:()=>n[q],set:ge=>n[q]=ge})})}else e.exposed||(e.exposed={});ve&&e.render===He&&(e.render=ve),xe!=null&&(e.inheritAttrs=xe),Xe&&(e.components=Xe),ct&&(e.directives=ct)}function xi(e,t,n=He,r=!1){j(e)&&(e=Wn(e));for(const s in e){const o=e[s];let i;se(o)?"default"in o?i=Mn(o.from||s,o.default,!0):i=Mn(o.from||s):i=Mn(o),he(i)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[s]=i}}function Fr(e,t,n){De(j(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ns(e,t,n,r){const s=r.includes(".")?Ts(n,r):()=>n[r];if(ie(e)){const o=t[e];H(o)&&In(s,o)}else if(H(e))In(s,e.bind(n));else if(se(e))if(j(e))e.forEach(o=>Ns(o,t,n,r));else{const o=H(e.handler)?e.handler.bind(n):t[e.handler];H(o)&&In(s,o,e)}}function Fs(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let f;return c?f=c:!s.length&&!n&&!r?f=t:(f={},s.length&&s.forEach(a=>an(f,a,i,!0)),an(f,t,i)),o.set(t,f),f}function an(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&an(e,o,n,!0),s&&s.forEach(i=>an(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const c=Ei[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ei={data:Rr,props:pt,emits:pt,methods:pt,computed:pt,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:pt,directives:pt,watch:Ti,provide:Rr,inject:Ci};function Rr(e,t){return t?e?function(){return ce(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function Ci(e,t){return pt(Wn(e),Wn(t))}function Wn(e){if(j(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _e(e,t){return e?[...new Set([].concat(e,t))]:t}function pt(e,t){return e?ce(ce(Object.create(null),e),t):t}function Ti(e,t){if(!e)return t;if(!t)return e;const n=ce(Object.create(null),e);for(const r in t)n[r]=_e(e[r],t[r]);return n}function Oi(e,t,n,r=!1){const s={},o={};ln(o,xn,1),e.propsDefaults=Object.create(null),Rs(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:$o(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Ai(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,c=V(s),[f]=e.propsOptions;let a=!1;if((r||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let v=0;v<d.length;v++){let E=d[v];if(yn(e.emitsOptions,E))continue;const M=t[E];if(f)if(K(o,E))M!==o[E]&&(o[E]=M,a=!0);else{const R=Fe(E);s[R]=kn(f,c,R,M,e,!1)}else M!==o[E]&&(o[E]=M,a=!0)}}}else{Rs(e,t,s,o)&&(a=!0);let d;for(const v in c)(!t||!K(t,v)&&((d=ke(v))===v||!K(t,d)))&&(f?n&&(n[v]!==void 0||n[d]!==void 0)&&(s[v]=kn(f,c,v,void 0,e,!0)):delete s[v]);if(o!==c)for(const v in o)(!t||!K(t,v)&&!0)&&(delete o[v],a=!0)}a&&Ye(e,"set","$attrs")}function Rs(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,c;if(t)for(let f in t){if(sn(f))continue;const a=t[f];let d;s&&K(s,d=Fe(f))?!o||!o.includes(d)?n[d]=a:(c||(c={}))[d]=a:yn(e.emitsOptions,f)||(!(f in r)||a!==r[f])&&(r[f]=a,i=!0)}if(o){const f=V(n),a=c||Z;for(let d=0;d<o.length;d++){const v=o[d];n[v]=kn(s,f,v,a[v],e,!K(a,v))}}return i}function kn(e,t,n,r,s,o){const i=e[n];if(i!=null){const c=K(i,"default");if(c&&r===void 0){const f=i.default;if(i.type!==Function&&H(f)){const{propsDefaults:a}=s;n in a?r=a[n]:(Pt(s),r=a[n]=f.call(null,t),_t())}else r=f}i[0]&&(o&&!c?r=!1:i[1]&&(r===""||r===ke(n))&&(r=!0))}return r}function js(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},c=[];let f=!1;if(!H(e)){const d=v=>{f=!0;const[E,M]=js(v,t,!0);ce(i,E),M&&c.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!f)return r.set(e,Ct),Ct;if(j(o))for(let d=0;d<o.length;d++){const v=Fe(o[d]);jr(v)&&(i[v]=Z)}else if(o)for(const d in o){const v=Fe(d);if(jr(v)){const E=o[d],M=i[v]=j(E)||H(E)?{type:E}:E;if(M){const R=Sr(Boolean,M.type),W=Sr(String,M.type);M[0]=R>-1,M[1]=W<0||R<W,(R>-1||K(M,"default"))&&c.push(v)}}}const a=[i,c];return r.set(e,a),a}function jr(e){return e[0]!=="$"}function Lr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function $r(e,t){return Lr(e)===Lr(t)}function Sr(e,t){return j(t)?t.findIndex(n=>$r(n,e)):H(t)&&$r(t,e)?0:-1}const Ls=e=>e[0]==="_"||e==="$stable",pr=e=>j(e)?e.map(We):[We(e)],Pi=(e,t,n)=>{if(t._n)return t;const r=Xo((...s)=>pr(t(...s)),n);return r._c=!1,r},$s=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ls(s))continue;const o=e[s];if(H(o))t[s]=Pi(s,o,r);else if(o!=null){const i=pr(o);t[s]=()=>i}}},Ss=(e,t)=>{const n=pr(t);e.slots.default=()=>n},Mi=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=V(t),ln(t,"_",n)):$s(t,e.slots={})}else e.slots={},t&&Ss(e,t);ln(e.slots,xn,1)},Ii=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=Z;if(r.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(ce(s,t),!n&&c===1&&delete s._):(o=!t.$stable,$s(t,s)),i=t}else t&&(Ss(e,t),i={default:1});if(o)for(const c in s)!Ls(c)&&!(c in i)&&delete s[c]};function Hs(){return{app:null,config:{isNativeTag:to,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 Ni=0;function Fi(e,t){return function(r,s=null){H(r)||(r=Object.assign({},r)),s!=null&&!se(s)&&(s=null);const o=Hs(),i=new Set;let c=!1;const f=o.app={_uid:Ni++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:el,get config(){return o.config},set config(a){},use(a,...d){return i.has(a)||(a&&H(a.install)?(i.add(a),a.install(f,...d)):H(a)&&(i.add(a),a(f,...d))),f},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),f},component(a,d){return d?(o.components[a]=d,f):o.components[a]},directive(a,d){return d?(o.directives[a]=d,f):o.directives[a]},mount(a,d,v){if(!c){const E=de(r,s);return E.appContext=o,d&&t?t(E,a):e(E,a,v),c=!0,f._container=a,a.__vue_app__=f,br(E.component)||E.component.proxy}},unmount(){c&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,d){return o.provides[a]=d,f}};return f}}function qn(e,t,n,r,s=!1){if(j(e)){e.forEach((E,M)=>qn(E,t&&(j(t)?t[M]:t),n,r,s));return}if(Dt(r)&&!s)return;const o=r.shapeFlag&4?br(r.component)||r.component.proxy:r.el,i=s?null:o,{i:c,r:f}=e,a=t&&t.r,d=c.refs===Z?c.refs={}:c.refs,v=c.setupState;if(a!=null&&a!==f&&(ie(a)?(d[a]=null,K(v,a)&&(v[a]=null)):he(a)&&(a.value=null)),H(f))ot(f,c,12,[i,d]);else{const E=ie(f),M=he(f);if(E||M){const R=()=>{if(e.f){const W=E?d[f]:f.value;s?j(W)&&Gn(W,o):j(W)?W.includes(o)||W.push(o):E?(d[f]=[o],K(v,f)&&(v[f]=d[f])):(f.value=[o],e.k&&(d[e.k]=f.value))}else E?(d[f]=i,K(v,f)&&(v[f]=i)):M&&(f.value=i,e.k&&(d[e.k]=i))};i?(R.id=-1,Te(R,n)):R()}}}const Te=ni;function Ri(e){return ji(e)}function ji(e,t){const n=lo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:c,createComment:f,setText:a,setElementText:d,parentNode:v,nextSibling:E,setScopeId:M=He,cloneNode:R,insertStaticContent:W}=e,L=(l,u,h,g=null,m=null,y=null,C=!1,b=null,w=!!u.dynamicChildren)=>{if(l===u)return;l&&!jt(l,u)&&(g=vt(l),Me(l,m,y,!0),l=null),u.patchFlag===-2&&(w=!1,u.dynamicChildren=null);const{type:_,ref:A,shapeFlag:T}=u;switch(_){case mr:$(l,u,h,g);break;case lt:G(l,u,h,g);break;case Nn:l==null&&J(u,h,g,C);break;case Le:ct(l,u,h,g,m,y,C,b,w);break;default:T&1?pe(l,u,h,g,m,y,C,b,w):T&6?Yt(l,u,h,g,m,y,C,b,w):(T&64||T&128)&&_.process(l,u,h,g,m,y,C,b,w,Ze)}A!=null&&m&&qn(A,l&&l.ref,y,u||l,!u)},$=(l,u,h,g)=>{if(l==null)r(u.el=c(u.children),h,g);else{const m=u.el=l.el;u.children!==l.children&&a(m,u.children)}},G=(l,u,h,g)=>{l==null?r(u.el=f(u.children||""),h,g):u.el=l.el},J=(l,u,h,g)=>{[l.el,l.anchor]=W(l.children,u,h,g,l.el,l.anchor)},X=({el:l,anchor:u},h,g)=>{let m;for(;l&&l!==u;)m=E(l),r(l,h,g),l=m;r(u,h,g)},ve=({el:l,anchor:u})=>{let h;for(;l&&l!==u;)h=E(l),s(l),l=h;s(u)},pe=(l,u,h,g,m,y,C,b,w)=>{C=C||u.type==="svg",l==null?ye(u,h,g,m,y,C,b,w):Re(l,u,m,y,C,b,w)},ye=(l,u,h,g,m,y,C,b)=>{let w,_;const{type:A,props:T,shapeFlag:P,transition:N,patchFlag:U,dirs:z}=l;if(l.el&&R!==void 0&&U===-1)w=l.el=R(l.el);else{if(w=l.el=i(l.type,y,T&&T.is,T),P&8?d(w,l.children):P&16&&fe(l.children,w,null,g,m,y&&A!=="foreignObject",C,b),z&&ht(l,null,g,"created"),T){for(const Y in T)Y!=="value"&&!sn(Y)&&o(w,Y,null,T[Y],y,l.children,g,m,Ie);"value"in T&&o(w,"value",null,T.value),(_=T.onVnodeBeforeMount)&&Be(_,g,l)}we(w,l,l.scopeId,C,g)}z&&ht(l,null,g,"beforeMount");const k=(!m||m&&!m.pendingBranch)&&N&&!N.persisted;k&&N.beforeEnter(w),r(w,u,h),((_=T&&T.onVnodeMounted)||k||z)&&Te(()=>{_&&Be(_,g,l),k&&N.enter(w),z&&ht(l,null,g,"mounted")},m)},we=(l,u,h,g,m)=>{if(h&&M(l,h),g)for(let y=0;y<g.length;y++)M(l,g[y]);if(m){let y=m.subTree;if(u===y){const C=m.vnode;we(l,C,C.scopeId,C.slotScopeIds,m.parent)}}},fe=(l,u,h,g,m,y,C,b,w=0)=>{for(let _=w;_<l.length;_++){const A=l[_]=b?rt(l[_]):We(l[_]);L(null,A,u,h,g,m,y,C,b)}},Re=(l,u,h,g,m,y,C)=>{const b=u.el=l.el;let{patchFlag:w,dynamicChildren:_,dirs:A}=u;w|=l.patchFlag&16;const T=l.props||Z,P=u.props||Z;let N;h&&dt(h,!1),(N=P.onVnodeBeforeUpdate)&&Be(N,h,u,l),A&&ht(u,l,h,"beforeUpdate"),h&&dt(h,!0);const U=m&&u.type!=="foreignObject";if(_?xe(l.dynamicChildren,_,b,h,g,U,y):C||ge(l,u,b,null,h,g,U,y,!1),w>0){if(w&16)Xe(b,u,T,P,h,g,m);else if(w&2&&T.class!==P.class&&o(b,"class",null,P.class,m),w&4&&o(b,"style",T.style,P.style,m),w&8){const z=u.dynamicProps;for(let k=0;k<z.length;k++){const Y=z[k],Ee=T[Y],je=P[Y];(je!==Ee||Y==="value")&&o(b,Y,Ee,je,m,l.children,h,g,Ie)}}w&1&&l.children!==u.children&&d(b,u.children)}else!C&&_==null&&Xe(b,u,T,P,h,g,m);((N=P.onVnodeUpdated)||A)&&Te(()=>{N&&Be(N,h,u,l),A&&ht(u,l,h,"updated")},g)},xe=(l,u,h,g,m,y,C)=>{for(let b=0;b<u.length;b++){const w=l[b],_=u[b],A=w.el&&(w.type===Le||!jt(w,_)||w.shapeFlag&70)?v(w.el):h;L(w,_,A,null,g,m,y,C,!0)}},Xe=(l,u,h,g,m,y,C)=>{if(h!==g){for(const b in g){if(sn(b))continue;const w=g[b],_=h[b];w!==_&&b!=="value"&&o(l,b,_,w,C,u.children,m,y,Ie)}if(h!==Z)for(const b in h)!sn(b)&&!(b in g)&&o(l,b,h[b],null,C,u.children,m,y,Ie);"value"in g&&o(l,"value",h.value,g.value)}},ct=(l,u,h,g,m,y,C,b,w)=>{const _=u.el=l?l.el:c(""),A=u.anchor=l?l.anchor:c("");let{patchFlag:T,dynamicChildren:P,slotScopeIds:N}=u;N&&(b=b?b.concat(N):N),l==null?(r(_,h,g),r(A,h,g),fe(u.children,h,A,m,y,C,b,w)):T>0&&T&64&&P&&l.dynamicChildren?(xe(l.dynamicChildren,P,h,m,y,C,b),(u.key!=null||m&&u===m.subTree)&&gr(l,u,!0)):ge(l,u,h,A,m,y,C,b,w)},Yt=(l,u,h,g,m,y,C,b,w)=>{u.slotScopeIds=b,l==null?u.shapeFlag&512?m.ctx.activate(u,h,g,C,w):le(u,h,g,m,y,C,w):ue(l,u,w)},le=(l,u,h,g,m,y,C)=>{const b=l.component=zi(l,g,m);if(Os(l)&&(b.ctx.renderer=Ze),Ji(b),b.asyncDep){if(m&&m.registerDep(b,Q),!l.el){const w=b.subTree=de(lt);G(null,w,u,h)}return}Q(b,l,u,h,m,y,C)},ue=(l,u,h)=>{const g=u.component=l.component;if(Go(l,u,h))if(g.asyncDep&&!g.asyncResolved){q(g,u,h);return}else g.next=u,zo(g.update),g.update();else u.el=l.el,g.vnode=u},Q=(l,u,h,g,m,y,C)=>{const b=()=>{if(l.isMounted){let{next:A,bu:T,u:P,parent:N,vnode:U}=l,z=A,k;dt(l,!1),A?(A.el=U.el,q(l,A,C)):A=U,T&&An(T),(k=A.props&&A.props.onVnodeBeforeUpdate)&&Be(k,N,A,U),dt(l,!0);const Y=Pn(l),Ee=l.subTree;l.subTree=Y,L(Ee,Y,v(Ee.el),vt(Ee),l,m,y),A.el=Y.el,z===null&&ei(l,Y.el),P&&Te(P,m),(k=A.props&&A.props.onVnodeUpdated)&&Te(()=>Be(k,N,A,U),m)}else{let A;const{el:T,props:P}=u,{bm:N,m:U,parent:z}=l,k=Dt(u);if(dt(l,!1),N&&An(N),!k&&(A=P&&P.onVnodeBeforeMount)&&Be(A,z,u),dt(l,!0),T&&at){const Y=()=>{l.subTree=Pn(l),at(T,l.subTree,l,m,null)};k?u.type.__asyncLoader().then(()=>!l.isUnmounted&&Y()):Y()}else{const Y=l.subTree=Pn(l);L(null,Y,h,g,l,m,y),u.el=Y.el}if(U&&Te(U,m),!k&&(A=P&&P.onVnodeMounted)){const Y=u;Te(()=>Be(A,z,Y),m)}(u.shapeFlag&256||z&&Dt(z.vnode)&&z.vnode.shapeFlag&256)&&l.a&&Te(l.a,m),l.isMounted=!0,u=h=g=null}},w=l.effect=new rr(b,()=>bs(_),l.scope),_=l.update=()=>w.run();_.id=l.uid,dt(l,!0),_()},q=(l,u,h)=>{u.component=l;const g=l.vnode.props;l.vnode=u,l.next=null,Ai(l,u.props,g,h),Ii(l,u.children,h),Mt(),vn(void 0,l.update),It()},ge=(l,u,h,g,m,y,C,b,w=!1)=>{const _=l&&l.children,A=l?l.shapeFlag:0,T=u.children,{patchFlag:P,shapeFlag:N}=u;if(P>0){if(P&128){qe(_,T,h,g,m,y,C,b,w);return}else if(P&256){bt(_,T,h,g,m,y,C,b,w);return}}N&8?(A&16&&Ie(_,m,y),T!==_&&d(h,T)):A&16?N&16?qe(_,T,h,g,m,y,C,b,w):Ie(_,m,y,!0):(A&8&&d(h,""),N&16&&fe(T,h,g,m,y,C,b,w))},bt=(l,u,h,g,m,y,C,b,w)=>{l=l||Ct,u=u||Ct;const _=l.length,A=u.length,T=Math.min(_,A);let P;for(P=0;P<T;P++){const N=u[P]=w?rt(u[P]):We(u[P]);L(l[P],N,h,null,m,y,C,b,w)}_>A?Ie(l,m,y,!0,!1,T):fe(u,h,g,m,y,C,b,w,T)},qe=(l,u,h,g,m,y,C,b,w)=>{let _=0;const A=u.length;let T=l.length-1,P=A-1;for(;_<=T&&_<=P;){const N=l[_],U=u[_]=w?rt(u[_]):We(u[_]);if(jt(N,U))L(N,U,h,null,m,y,C,b,w);else break;_++}for(;_<=T&&_<=P;){const N=l[T],U=u[P]=w?rt(u[P]):We(u[P]);if(jt(N,U))L(N,U,h,null,m,y,C,b,w);else break;T--,P--}if(_>T){if(_<=P){const N=P+1,U=N<A?u[N].el:g;for(;_<=P;)L(null,u[_]=w?rt(u[_]):We(u[_]),h,U,m,y,C,b,w),_++}}else if(_>P)for(;_<=T;)Me(l[_],m,y,!0),_++;else{const N=_,U=_,z=new Map;for(_=U;_<=P;_++){const me=u[_]=w?rt(u[_]):We(u[_]);me.key!=null&&z.set(me.key,_)}let k,Y=0;const Ee=P-U+1;let je=!1,Nt=0;const Ue=new Array(Ee);for(_=0;_<Ee;_++)Ue[_]=0;for(_=N;_<=T;_++){const me=l[_];if(Y>=Ee){Me(me,m,y,!0);continue}let Ne;if(me.key!=null)Ne=z.get(me.key);else for(k=U;k<=P;k++)if(Ue[k-U]===0&&jt(me,u[k])){Ne=k;break}Ne===void 0?Me(me,m,y,!0):(Ue[Ne-U]=_+1,Ne>=Nt?Nt=Ne:je=!0,L(me,u[Ne],h,null,m,y,C,b,w),Y++)}const Ft=je?Li(Ue):Ct;for(k=Ft.length-1,_=Ee-1;_>=0;_--){const me=U+_,Ne=u[me],Rt=me+1<A?u[me+1].el:g;Ue[_]===0?L(null,Ne,h,Rt,m,y,C,b,w):je&&(k<0||_!==Ft[k]?ze(Ne,h,Rt,2):k--)}}},ze=(l,u,h,g,m=null)=>{const{el:y,type:C,transition:b,children:w,shapeFlag:_}=l;if(_&6){ze(l.component.subTree,u,h,g);return}if(_&128){l.suspense.move(u,h,g);return}if(_&64){C.move(l,u,h,Ze);return}if(C===Le){r(y,u,h);for(let T=0;T<w.length;T++)ze(w[T],u,h,g);r(l.anchor,u,h);return}if(C===Nn){X(l,u,h);return}if(g!==2&&_&1&&b)if(g===0)b.beforeEnter(y),r(y,u,h),Te(()=>b.enter(y),m);else{const{leave:T,delayLeave:P,afterLeave:N}=b,U=()=>r(y,u,h),z=()=>{T(y,()=>{U(),N&&N()})};P?P(y,U,z):z()}else r(y,u,h)},Me=(l,u,h,g=!1,m=!1)=>{const{type:y,props:C,ref:b,children:w,dynamicChildren:_,shapeFlag:A,patchFlag:T,dirs:P}=l;if(b!=null&&qn(b,null,h,l,!0),A&256){u.ctx.deactivate(l);return}const N=A&1&&P,U=!Dt(l);let z;if(U&&(z=C&&C.onVnodeBeforeUnmount)&&Be(z,u,l),A&6)ut(l.component,h,g);else{if(A&128){l.suspense.unmount(h,g);return}N&&ht(l,null,u,"beforeUnmount"),A&64?l.type.remove(l,u,h,m,Ze,g):_&&(y!==Le||T>0&&T&64)?Ie(_,u,h,!1,!0):(y===Le&&T&384||!m&&A&16)&&Ie(w,u,h),g&&ft(l)}(U&&(z=C&&C.onVnodeUnmounted)||N)&&Te(()=>{z&&Be(z,u,l),N&&ht(l,null,u,"unmounted")},h)},ft=l=>{const{type:u,el:h,anchor:g,transition:m}=l;if(u===Le){Vt(h,g);return}if(u===Nn){ve(l);return}const y=()=>{s(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(l.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:b}=m,w=()=>C(h,y);b?b(l.el,y,w):w()}else y()},Vt=(l,u)=>{let h;for(;l!==u;)h=E(l),s(l),l=h;s(u)},ut=(l,u,h)=>{const{bum:g,scope:m,update:y,subTree:C,um:b}=l;g&&An(g),m.stop(),y&&(y.active=!1,Me(C,l,u,h)),b&&Te(b,u),Te(()=>{l.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&l.asyncDep&&!l.asyncResolved&&l.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Ie=(l,u,h,g=!1,m=!1,y=0)=>{for(let C=y;C<l.length;C++)Me(l[C],u,h,g,m)},vt=l=>l.shapeFlag&6?vt(l.component.subTree):l.shapeFlag&128?l.suspense.next():E(l.anchor||l.el),Xt=(l,u,h)=>{l==null?u._vnode&&Me(u._vnode,null,null,!0):L(u._vnode||null,l,u,null,null,null,h),ws(),u._vnode=l},Ze={p:L,um:Me,m:ze,r:ft,mt:le,mc:fe,pc:ge,pbc:xe,n:vt,o:e};let Qe,at;return t&&([Qe,at]=t(Ze)),{render:Xt,hydrate:Qe,createApp:Fi(Xt,Qe)}}function dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function gr(e,t,n=!1){const r=e.children,s=t.children;if(j(r)&&j(s))for(let o=0;o<r.length;o++){const i=r[o];let c=s[o];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=s[o]=rt(s[o]),c.el=i.el),n||gr(i,c))}}function Li(e){const t=e.slice(),n=[0];let r,s,o,i,c;const f=e.length;for(r=0;r<f;r++){const a=e[r];if(a!==0){if(s=n[n.length-1],e[s]<a){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)c=o+i>>1,e[n[c]]<a?o=c+1:i=c;a<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const $i=e=>e.__isTeleport,Ut=e=>e&&(e.disabled||e.disabled===""),Hr=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,zn=(e,t)=>{const n=e&&e.to;return ie(n)?t?t(n):null:n},Si={__isTeleport:!0,process(e,t,n,r,s,o,i,c,f,a){const{mc:d,pc:v,pbc:E,o:{insert:M,querySelector:R,createText:W,createComment:L}}=a,$=Ut(t.props);let{shapeFlag:G,children:J,dynamicChildren:X}=t;if(e==null){const ve=t.el=W(""),pe=t.anchor=W("");M(ve,n,r),M(pe,n,r);const ye=t.target=zn(t.props,R),we=t.targetAnchor=W("");ye&&(M(we,ye),i=i||Hr(ye));const fe=(Re,xe)=>{G&16&&d(J,Re,xe,s,o,i,c,f)};$?fe(n,pe):ye&&fe(ye,we)}else{t.el=e.el;const ve=t.anchor=e.anchor,pe=t.target=e.target,ye=t.targetAnchor=e.targetAnchor,we=Ut(e.props),fe=we?n:pe,Re=we?ve:ye;if(i=i||Hr(pe),X?(E(e.dynamicChildren,X,fe,s,o,i,c),gr(e,t,!0)):f||v(e,t,fe,Re,s,o,i,c,!1),$)we||rn(t,n,ve,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const xe=t.target=zn(t.props,R);xe&&rn(t,xe,null,a,0)}else we&&rn(t,pe,ye,a,1)}},remove(e,t,n,r,{um:s,o:{remove:o}},i){const{shapeFlag:c,children:f,anchor:a,targetAnchor:d,target:v,props:E}=e;if(v&&o(d),(i||!Ut(E))&&(o(a),c&16))for(let M=0;M<f.length;M++){const R=f[M];s(R,t,n,!0,!!R.dynamicChildren)}},move:rn,hydrate:Hi};function rn(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:f,children:a,props:d}=e,v=o===2;if(v&&r(i,t,n),(!v||Ut(d))&&f&16)for(let E=0;E<a.length;E++)s(a[E],t,n,2);v&&r(c,t,n)}function Hi(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:c,querySelector:f}},a){const d=t.target=zn(t.props,f);if(d){const v=d._lpa||d.firstChild;if(t.shapeFlag&16)if(Ut(t.props))t.anchor=a(i(e),t,c(e),n,r,s,o),t.targetAnchor=v;else{t.anchor=i(e);let E=v;for(;E;)if(E=i(E),E&&E.nodeType===8&&E.data==="teleport anchor"){t.targetAnchor=E,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(v,t,d,n,r,s,o)}}return t.anchor&&i(t.anchor)}const Fl=Si,Le=Symbol(void 0),mr=Symbol(void 0),lt=Symbol(void 0),Nn=Symbol(void 0),Bt=[];let Se=null;function Ds(e=!1){Bt.push(Se=e?null:[])}function Di(){Bt.pop(),Se=Bt[Bt.length-1]||null}let zt=1;function Dr(e){zt+=e}function Us(e){return e.dynamicChildren=zt>0?Se||Ct:null,Di(),zt>0&&Se&&Se.push(e),e}function Rl(e,t,n,r,s,o){return Us(Ws(e,t,n,r,s,o,!0))}function Bs(e,t,n,r,s){return Us(de(e,t,n,r,s,!0))}function hn(e){return e?e.__v_isVNode===!0:!1}function jt(e,t){return e.type===t.type&&e.key===t.key}const xn="__vInternal",Ks=({key:e})=>e!=null?e:null,on=({ref:e,ref_key:t,ref_for:n})=>e!=null?ie(e)||he(e)||H(e)?{i:be,r:e,k:t,f:!!n}:e:null;function Ws(e,t=null,n=null,r=0,s=null,o=e===Le?0:1,i=!1,c=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ks(t),ref:t&&on(t),scopeId:Cs,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:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};return c?(_r(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=ie(n)?8:16),zt>0&&!i&&Se&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&Se.push(f),f}const de=Ui;function Ui(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===bi)&&(e=lt),hn(e)){const c=At(e,t,!0);return n&&_r(c,n),zt>0&&!o&&Se&&(c.shapeFlag&6?Se[Se.indexOf(e)]=c:Se.push(c)),c.patchFlag|=-2,c}if(Qi(e)&&(e=e.__vccOpts),t){t=Bi(t);let{class:c,style:f}=t;c&&!ie(c)&&(t.class=Zn(c)),se(f)&&(ds(f)&&!j(f)&&(f=ce({},f)),t.style=Xn(f))}const i=ie(e)?1:ti(e)?128:$i(e)?64:se(e)?4:H(e)?2:0;return Ws(e,t,n,r,s,i,o,!0)}function Bi(e){return e?ds(e)||xn in e?ce({},e):e:null}function At(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,c=t?Wi(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ks(c),ref:t&&t.ref?n&&s?j(s)?s.concat(on(t)):[s,on(t)]:on(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&At(e.ssContent),ssFallback:e.ssFallback&&At(e.ssFallback),el:e.el,anchor:e.anchor}}function Ki(e=" ",t=0){return de(mr,null,e,t)}function jl(e="",t=!1){return t?(Ds(),Bs(lt,null,e)):de(lt,null,e)}function We(e){return e==null||typeof e=="boolean"?de(lt):j(e)?de(Le,null,e.slice()):typeof e=="object"?rt(e):de(mr,null,String(e))}function rt(e){return e.el===null||e.memo?e:At(e)}function _r(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),_r(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(xn in t)?t._ctx=be:s===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else H(t)?(t={default:t,_ctx:be},n=32):(t=String(t),r&64?(n=16,t=[Ki(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wi(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Zn([t.class,r.class]));else if(s==="style")t.style=Xn([t.style,r.style]);else if(dn(s)){const o=t[s],i=r[s];i&&o!==i&&!(j(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function Be(e,t,n,r=null){De(e,t,7,[n,r])}const ki=Hs();let qi=0;function zi(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ki,o={uid:qi++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new co(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:js(r,s),emitsOptions:Es(r,s),emit:null,emitted:null,propsDefaults:Z,inheritAttrs:r.inheritAttrs,ctx:Z,data:Z,props:Z,attrs:Z,slots:Z,refs:Z,setupState:Z,setupContext:null,suspense:n,suspenseId:n?n.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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Vo.bind(null,o),e.ce&&e.ce(o),o}let oe=null;const Ll=()=>oe||be,Pt=e=>{oe=e,e.scope.on()},_t=()=>{oe&&oe.scope.off(),oe=null};function ks(e){return e.vnode.shapeFlag&4}let Jt=!1;function Ji(e,t=!1){Jt=t;const{props:n,children:r}=e.vnode,s=ks(e);Oi(e,n,s,t),Mi(e,r);const o=s?Yi(e,t):void 0;return Jt=!1,o}function Yi(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,yi));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Xi(e):null;Pt(e),Mt();const o=ot(r,e,0,[e.props,s]);if(It(),_t(),Gr(o)){if(o.then(_t,_t),t)return o.then(i=>{Ur(e,i,t)}).catch(i=>{bn(i,e,0)});e.asyncDep=o}else Ur(e,o,t)}else qs(e,t)}function Ur(e,t,n){H(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=gs(t)),qs(e,n)}let Br;function qs(e,t,n){const r=e.type;if(!e.render){if(!t&&Br&&!r.render){const s=r.template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:f}=r,a=ce(ce({isCustomElement:o,delimiters:c},i),f);r.render=Br(s,a)}}e.render=r.render||He}Pt(e),Mt(),wi(e),It(),_t()}function Vi(e){return new Proxy(e.attrs,{get(t,n){return Pe(e,"get","$attrs"),t[n]}})}function Xi(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Vi(e))},slots:e.slots,emit:e.emit,expose:t}}function br(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gs(ps(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in un)return un[n](e)}}))}function Zi(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e){return H(e)&&"__vccOpts"in e}const Gi=(e,t)=>Wo(e,t,Jt);function $l(e,t,n){const r=arguments.length;return r===2?se(t)&&!j(t)?hn(t)?de(e,null,[t]):de(e,t):de(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&hn(n)&&(n=[n]),de(e,t,n))}const el="3.2.37";/*! (c) Andrea Giammarchi - ISC */const tl=(()=>{const e="DOMContentLoaded",t=new WeakMap,n=[],r=i=>{do if(i.nextSibling)return!0;while(i=i.parentNode);return!1},s=()=>{n.splice(0).forEach(i=>{t.get(i[0])!==!0&&(t.set(i[0],!0),i[0][i[1]]())})};document.addEventListener(e,s);class o extends HTMLElement{static withParsedCallback(c,f="parsed"){const{prototype:a}=c,{connectedCallback:d}=a,v=f+"Callback",E=(R,W,L,$)=>{W.disconnect(),L.removeEventListener(e,$),M(R)},M=R=>{n.length||requestAnimationFrame(s),n.push([R,v])};return Object.defineProperties(a,{connectedCallback:{configurable:!0,writable:!0,value(){if(d&&d.apply(this,arguments),v in this&&!t.has(this)){const R=this,{ownerDocument:W}=R;if(t.set(R,!1),W.readyState==="complete"||r(R))M(R);else{const L=()=>E(R,$,W,L);W.addEventListener(e,L);const $=new MutationObserver(()=>{r(R)&&E(R,$,W,L)});$.observe(R.parentNode,{childList:!0,subtree:!0})}}}},[f]:{configurable:!0,get(){return t.get(this)===!0}}}),c}}return o.withParsedCallback(o)})(),nl="http://www.w3.org/2000/svg",gt=typeof document!="undefined"?document:null,Kr=gt&&gt.createElement("template"),rl={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 s=t?gt.createElementNS(nl,e):gt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Kr.innerHTML=r?`<svg>${e}</svg>`:e;const c=Kr.content;if(r){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function sl(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ol(e,t,n){const r=e.style,s=ie(n);if(n&&!s){for(const o in n)Jn(r,o,n[o]);if(t&&!ie(t))for(const o in t)n[o]==null&&Jn(r,o,"")}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Wr=/\s*!important$/;function Jn(e,t,n){if(j(n))n.forEach(r=>Jn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=il(e,t);Wr.test(n)?e.setProperty(ke(r),n.replace(Wr,""),"important"):e[r]=n}}const kr=["Webkit","Moz","ms"],Fn={};function il(e,t){const n=Fn[t];if(n)return n;let r=Fe(t);if(r!=="filter"&&r in e)return Fn[t]=r;r=mn(r);for(let s=0;s<kr.length;s++){const o=kr[s]+r;if(o in e)return Fn[t]=o}return t}const qr="http://www.w3.org/1999/xlink";function ll(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(qr,t.slice(6,t.length)):e.setAttributeNS(qr,t,n);else{const o=Zs(t);n==null||o&&!Xr(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function cl(e,t,n,r,s,o,i){if(t==="innerHTML"||t==="textContent"){r&&i(r,s,o),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const f=n==null?"":n;(e.value!==f||e.tagName==="OPTION")&&(e.value=f),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=Xr(n):n==null&&f==="string"?(n="",c=!0):f==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}const[zs,fl]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Yn=0;const ul=Promise.resolve(),al=()=>{Yn=0},hl=()=>Yn||(ul.then(al),Yn=zs());function dl(e,t,n,r){e.addEventListener(t,n,r)}function pl(e,t,n,r){e.removeEventListener(t,n,r)}function gl(e,t,n,r,s=null){const o=e._vei||(e._vei={}),i=o[t];if(r&&i)i.value=r;else{const[c,f]=ml(t);if(r){const a=o[t]=_l(r,s);dl(e,c,a,f)}else i&&(pl(e,c,i,f),o[t]=void 0)}}const zr=/(?:Once|Passive|Capture)$/;function ml(e){let t;if(zr.test(e)){t={};let n;for(;n=e.match(zr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[ke(e.slice(2)),t]}function _l(e,t){const n=r=>{const s=r.timeStamp||zs();(fl||s>=n.attached-1)&&De(bl(r,n.value),t,5,[r])};return n.value=e,n.attached=hl(),n}function bl(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Jr=/^on[a-z]/,vl=(e,t,n,r,s=!1,o,i,c,f)=>{t==="class"?sl(e,r,s):t==="style"?ol(e,n,r):dn(t)?Qn(t)||gl(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yl(e,t,r,s))?cl(e,t,r,o,i,c,f):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ll(e,t,r,s))};function yl(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Jr.test(t)&&H(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Jr.test(t)&&ie(n)?!1:t in e}const wl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Sl=(e,t)=>n=>{if(!("key"in n))return;const r=ke(n.key);if(t.some(s=>s===r||wl[s]===r))return e(n)},xl=ce({patchProp:vl},rl);let Yr;function El(){return Yr||(Yr=Ri(xl))}const Vr=(...e)=>{El().render(...e)},Cl=typeof HTMLElement!="undefined"?tl:class{};class vr extends Cl{constructor(t,n={},r={},s){super(),this._def=t,this._props=n,this._config=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._config=ce({shadowRoot:!0},this._config),this._config.shadowRoot?this.shadowRoot&&s?s(this._createVNode(),this._root):this.attachShadow({mode:"open"}):s&&s(this._createVNode(),this._root)}get _root(){return this._config.shadowRoot?this.shadowRoot:this}connectedCallback(){this._config.shadowRoot?this._connect():super.connectedCallback()}parsedCallback(){this._config.shadowRoot||this._connect()}_connect(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,_s(()=>{this._connected||(Vr(null,this._root),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}).observe(this,{attributes:!0});const t=r=>{const{props:s,styles:o}=r,i=!j(s),c=s?i?Object.keys(s):s:[];let f;if(i&&s)for(const a in this._props){const d=s[a];(d===Number||d&&d.type===Number)&&(this._props[a]=Rn(this._props[a]),(f||(f=Object.create(null)))[a]=!0)}this._numberProps=f;for(const a of Object.keys(this))a[0]!=="_"&&this._setProp(a,this[a],!0,!1);for(const a of c.map(Fe))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(d){this._setProp(a,d)}});this._config.shadowRoot||(this._slots=Array.from(this.children).map(a=>a.cloneNode(!0)),this.replaceChildren()),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=Rn(n)),this._setProp(Fe(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!0){n!==this._props[t]&&(this._props[t]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(ke(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ke(t),`${n}`):n||this.removeAttribute(ke(t))))}_update(){Vr(this._createVNode(),this._root)}_createVNode(){let t=null;this._config.shadowRoot||(t=()=>{const r=s=>{const o={};for(let i=0,c=s.length;i<c;i++){const f=s[i];o[f.nodeName]=f.nodeValue}return o};return this._slots.map(s=>{const o=s.attributes?r(s.attributes):{};return o.innerHTML=s.innerHTML,de(s.tagName,o,null)})});const n=de(this._def,ce({},this._props),t);return this._instance||(n.ce=r=>{this._instance=r,this._config.shadowRoot&&(r.isCE=!0),r.emit=(o,...i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof vr){r.parent=s._instance;break}}),n}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this._root.appendChild(r)})}}function Hl(e,t,n){const r=oi(e);class s extends vr{constructor(i){super(r,i,t,n)}}return s.def=r,s}var Dl=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};export{Le as F,Fl as T,Dl as _,Ws as a,jl as b,Rl as c,Ml as d,Bs as e,de as f,Xo as g,Il as h,Hl as i,oi as j,Ol as k,ui as l,di as m,Zn as n,Ds as o,$l as p,lr as q,Nl as r,Al as s,Tl as t,ps as u,Ll as v,Sl as w,Pl as x,_s as y,Do as z};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madgex/design-system-ce",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "Custom Elements built in Vue3",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -40,5 +40,5 @@
40
40
  },
41
41
  "author": "",
42
42
  "license": "UNLICENSED",
43
- "gitHead": "076f8c264f4958501d1fb1ade740190514742da9"
43
+ "gitHead": "f0a889d41deb3f991e29e2a1b31825742e4eb099"
44
44
  }