diff --git a/index.html b/index.html index 7f0bdba..48eeab5 100644 --- a/index.html +++ b/index.html @@ -1,2 +1,2 @@ Untitled | Willow

{{ name }}

checkRepresentation: {{ $store.state.tree.checkRepresentation() }}, leaves: {{ [...$store.state.tree.leaves] }}, treeOptions: {{ JSON.stringify($store.state.tree.options) }}

{{ selectedNode.getFeedback() }}
\ No newline at end of file +const assignment = undefined ?? undefined;

{{ name }}

checkRepresentation: {{ $store.state.tree.checkRepresentation() }}, leaves: {{ [...$store.state.tree.leaves] }}, treeOptions: {{ JSON.stringify($store.state.tree.options) }}

{{ selectedNode.getFeedback() }}
\ No newline at end of file diff --git a/js/index.js b/js/index.js index b227331..9612979 100644 --- a/js/index.js +++ b/js/index.js @@ -1,2 +1,2 @@ /*! For license information please see index.js.LICENSE.txt */ -var index;(()=>{"use strict";var e={515:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var o="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function s(e,t){for(var n=t.slice(0,t.length-1),o=0;o=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var c={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":o?173:189,"=":o?61:187,";":o?59:186,"'":222,"[":219,"]":221,"\\":220},l={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},a={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},u={16:!1,18:!1,17:!1,91:!1},d={},p=1;p<20;p++)c["f".concat(p)]=111+p;var h=[],f="all",m=[],g=function(e){return c[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function v(e){f=e||"all"}function y(){return f||"all"}var b=function(e){var t=e.key,n=e.scope,o=e.method,r=e.splitKey,c=void 0===r?"+":r;i(t).forEach((function(e){var t=e.split(c),r=t.length,i=t[r-1],a="*"===i?"*":g(i);if(d[a]){n||(n=y());var u=r>1?s(l,t):[];d[a]=d[a].map((function(e){return o&&e.method!==o||e.scope!==n||!function(e,t){for(var n=e.length>=t.length?e:t,o=e.length>=t.length?t:e,r=!0,s=0;s0,u)Object.prototype.hasOwnProperty.call(u,r)&&(!u[r]&&t.mods.indexOf(+r)>-1||u[r]&&-1===t.mods.indexOf(+r))&&(o=!1);(0!==t.mods.length||u[16]||u[18]||u[17]||u[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function S(e){var t=d["*"],n=e.keyCode||e.which||e.charCode;if(w.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===h.indexOf(n)&&229!==n&&h.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=a[t];e[t]&&-1===h.indexOf(n)?h.push(n):!e[t]&&h.indexOf(n)>-1?h.splice(h.indexOf(n),1):"metaKey"===t&&e[t]&&3===h.length&&(e.ctrlKey||e.shiftKey||e.altKey||(h=h.slice(h.indexOf(n))))})),n in u){for(var o in u[n]=!0,l)l[o]===n&&(w[o]=!0);if(!t)return}for(var r in u)Object.prototype.hasOwnProperty.call(u,r)&&(u[r]=e[a[r]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===h.indexOf(17)&&h.push(17),-1===h.indexOf(18)&&h.push(18),u[17]=!0,u[18]=!0);var s=y();if(t)for(var i=0;i1&&(c=s(l,e)),(e="*"===(e=e[e.length-1])?"*":g(e))in d||(d[e]=[]),d[e].push({keyup:v,keydown:y,scope:a,mods:c,shortcut:o[f],method:n,key:o[f],splitKey:b});void 0!==p&&!function(e){return m.indexOf(e)>-1}(p)&&window&&(m.push(p),r(p,"keydown",(function(e){S(e)})),r(window,"focus",(function(){h=[]})),r(p,"keyup",(function(e){S(e),function(e){var t=e.keyCode||e.which||e.charCode,n=h.indexOf(t);if(n>=0&&h.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&h.splice(0,h.length),93!==t&&224!==t||(t=91),t in u)for(var o in u[t]=!1,l)l[o]===t&&(w[o]=!1)}(e)})))}var x={setScope:v,getScope:y,deleteScope:function(e,t){var n,o;for(var r in e||(e=y()),d)if(Object.prototype.hasOwnProperty.call(d,r))for(n=d[r],o=0;o1?t-1:0),o=1;o{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyRecorder=void 0;const o=n(515),r=n(798);o.default.filter=e=>{const t=e.target??e.srcElement;return!(t instanceof Element&&t.classList.contains("key-recorder"))},t.KeyRecorder=(0,r.defineComponent)({name:"key-recorder",props:{event:{type:String,required:!0},default:Array},emits:["on-pressed"],data(){return{pressed:new Set,keyFilter:new Set(["OS"]),keyMap:{ArrowUp:"Up",ArrowDown:"Down",ArrowLeft:"Left",ArrowRight:"Right"},recorded:JSON.parse(localStorage.getItem(`shortcuts.${this.event}`)??"null")??this.default??[],bound:!1}},computed:{shortcuts(){return this.$store.state.shortcuts},hasConflict(){const e=this.recorded;if(0===e.length)return!1;for(const[t,n]of Object.entries(this.shortcuts))if(t!==this.event&&n===this.toUniqueString(e))return!0;return!1}},methods:{onKeyDown(e){e.preventDefault(),this.pressed.add(e.key),this.recorded=Array.from(this.pressed).filter((e=>!this.keyFilter.has(e))).map((e=>e in this.keyMap?this.keyMap[e]:e))},onKeyUp(e){this.pressed.delete(e.key)},toHotkeysString:e=>e.join("+").toLowerCase(),toUniqueString:e=>Array.from(e).sort().join("+").toLowerCase()},watch:{recorded:{handler(e,t){void 0!==t&&t.length>0&&this.bound&&(o.default.unbind(this.toHotkeysString(t)),this.bound=!1),e.length>0&&!this.hasConflict&&((0,o.default)(this.toHotkeysString(e),(e=>{e.preventDefault(),this.$emit("on-pressed")})),this.bound=!0),this.shortcuts[this.event]=this.toUniqueString(e),localStorage.setItem(`shortcuts.${this.event}`,JSON.stringify(e))},immediate:!0}},template:'\n \n\t\t\n\t\t\n '})},831:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubstitutionRecorder=void 0;const o=n(798);t.SubstitutionRecorder=(0,o.defineComponent)({name:"substitution-recorder",props:{symbol:{type:String,required:!0},default:String},data(){return{text:JSON.parse(localStorage.getItem(`substitutions.${this.symbol}`)??"null")??this.default??""}},watch:{text:{handler(e){this.$store.commit("setSubstitution",{symbol:this.symbol,text:e}),localStorage.setItem(`substitutions.${this.symbol}`,JSON.stringify(e))},immediate:!0}},template:'\n \n '})},244:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TruthTreeBranchComponent=void 0;const o=n(798),r=n(197);t.TruthTreeBranchComponent=(0,o.defineComponent)({name:"truth-tree-branch",components:{"truth-tree-node":r.TruthTreeNodeComponent},props:{head:{type:Number,required:!0}},data:()=>({expanded:!0,childBranches:[]}),beforeUpdate(){this.childBranches=[]},computed:{tree(){return this.$store.state.tree},selected(){return this.$store.state.selected},selectedNode(){return this.$store.getters.selectedNode},headNode(){return this.tree.nodes[this.head]},branch(){const e=[this.head];for(;1===this.tree.nodes[e[e.length-1]].children.length;)e.push(this.tree.nodes[e[e.length-1]].children[0]);return e}},methods:{addChildBranchRef(e){e&&this.childBranches.push(e)},modifyDecomposition(e){const t=this.$store.getters.selectedNode;if(null!==t&&t.id!==e){if(t.isTerminator())t.decomposition.has(e)?t.decomposition.delete(e):t.decomposition.add(e);else if(t.isAncestorOf(e)){const n=this.$store.state.tree.nodes[e];if(t.decomposition.has(e))t.decomposition.delete(e),n.antecedent=null;else{if(t.decomposition.add(e),null!==n.antecedent){const t=this.$store.state.tree.nodes[n.antecedent];t.decomposition.delete(e),t.correctDecomposition=null}n.antecedent=t.id}n.correctDecomposition=null}else{const n=this.$store.state.tree.nodes[e];t.antecedent===e?(t.antecedent=null,n.decomposition.delete(t.id)):(null!==t.antecedent&&this.$store.state.tree.nodes[t.antecedent].decomposition.delete(t.id),t.antecedent=e,n.decomposition.add(t.id)),n.correctDecomposition=null}t.correctDecomposition=null}},toggleBranchExpansion(){if(null===this.selected)return alert("You must select a statement before doing this.");if(this.branch.includes(this.selected))this.expanded=!this.expanded;else for(const e of this.childBranches)e.toggleBranchExpansion()},collapseAllBranches(){for(const e of this.childBranches)e.collapseAllBranches();this.expanded=!1},expandAllBranches(){this.expanded=!0;for(const e of this.childBranches)e.expandAllBranches()},collapseTerminatedBranches(){if(0===this.childBranches.length){if(this.tree.nodes[this.branch[this.branch.length-1]].isTerminator())return this.expanded=!1,!0}else{let e=!0;for(const t of this.childBranches)t.collapseTerminatedBranches()||(e=!1);if(e)return this.expanded=!1,!0}return!1}},template:'\n
    \n \n
  • \n \n
  • \n
\n '})},197:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TruthTreeNodeComponent=t.getNodeIconClasses=void 0;const o=n(798),r=n(810);function s(e){const t=e.isValid();return t instanceof r.CorrectnessError&&"not_parsable"===t.errorCode?["fas","fa-exclamation-triangle","statement-error"]:!0===t&&!0===e.isDecomposed()?["fas","fa-check","statement-correct"]:["fas","fa-times","statement-incorrect"]}function i(e,t,n){if(null===n)return;const o=document.getElementById(e),r=document.getElementById(t);null!==o&&null!==r&&(r.textContent=n,o.style.width=`${r.scrollWidth}px`)}t.getNodeIconClasses=s,t.TruthTreeNodeComponent=(0,o.defineComponent)({name:"truth-tree-node",props:{id:{type:Number,required:!0}},computed:{node(){const e=this.id,t=this.$store.state.tree;return e in t.nodes?t.nodes[e]:null}},methods:{getNodeIconClasses:s,makeSubstitutions(e){if(null===this.node)return;let t=0;const n=e.target;n instanceof HTMLInputElement&&(t=n.selectionStart??0);let o=this.node.text.substring(0,t),r=this.node.text.substring(t);for(const[e,t]of Object.entries(this.$store.state.substitutions))0!==t.length&&(o=o?.replace(t,e),r=r?.replace(t,e));this.node.text=o+r,t=o?.length??0,n instanceof HTMLInputElement&&setTimeout((()=>n.setSelectionRange(t,t)),0)}},updated(){const e=this.id,t=this.node;null!==t&&(i(`node${e}`,`bbox-node${e}`,t.text),i(`comment${e}`,`bbox-comment${e}`,t.comment))},template:'\n \n id: {{ id }},\n valid: {{ node.isValid() }},\n decomposed: {{ node.isDecomposed() }},\n universe: {{\n JSON.stringify(node.universe.map(formula => formula.toString()))\n }}\n \n \n \n\t\t\n\t\t\n\t\t\n

Premise

\n '})},232:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Formula=t.REPLACEMENT_SYMBOL=void 0,t.REPLACEMENT_SYMBOL=".";class n{constructor(e,t=null,n=!1){this.isPredicate=!1,this.name=e,this.args=t,this.isPredicate=n}equals(e){return new o(this,e).checkEquivalence()}getConstants(e=[]){const t=[];if(null===this.args){if(this.isPredicate)return t;e.some((e=>e.equals(this)))||t.push(this)}else{let n=0;for(const o of this.args){let r=!1;for(const n of o.getConstants(e)){let e=!1;for(const o of t)if(o.equals(n)){e=!0;break}e||(t.push(n),r=!0)}r&&++n}if(n===this.args.length&&!this.isPredicate){let e=!1;for(const n of t)if(n.equals(this)){e=!0;break}e||t.push(this)}}return t}isMappedEquals(e,t){return new o(this,e,t).checkEquivalence()}symbolized(e,t){let o=this.name;return e.some((e=>e.name===this.name))&&(o=`${t}${this.name}`),new n(o,this.args?.map((n=>n.symbolized(e,t))),this.isPredicate)}toString(){return null===this.args?this.name:`${this.name}(${this.args.join(",")})`}}t.Formula=n;class o{constructor(e,t,n={}){this.lhs=e,this.rhs=t,this.assignment=n}checkEquivalence(){return this.checkEquivalenceHelper(this.lhs,this.rhs)}checkEquivalenceHelper(e,t){const n=this.getReplacement(e,t);return null!==n&&(!0===n||(!1!==n||e.name===t.name)&&(null===e.args||null===t.args?e.args===t.args:e.args.length===t.args.length&&e.args.every(((e,n)=>this.checkEquivalenceHelper(e,t.args[n])))))}getReplacement(e,n){let o=null,r=null;for(const s of[e,n]){const e=s.name;e.startsWith(t.REPLACEMENT_SYMBOL)?o=e.slice(t.REPLACEMENT_SYMBOL.length):r=s}if(null!==o&&null!==r)if(Object.keys(this.assignment).includes(o)){if(!this.assignment[o].equals(r))return null}else this.assignment[o]=r;return null!==o&&null!==r}}},587:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FirstOrderLogicParser=t.PropositionalLogicParser=void 0;const o=n(683),r=n(232);class s extends Error{constructor(e,t){super(`${t} at position ${e}`),this.position=e,this.message=t,Object.setPrototypeOf(this,s.prototype)}}class i extends class{constructor(){this.cache={},this.text="",this.position=0}parse(e){this.text=e;const t=this.start();return this.assertEnd(),t}assertEnd(){if(this.position=e[n+2])throw new Error("Bad character range");t.push(e.slice(n,n+3)),n+=3}else t.push(e[n]),n++;return this.cache[e]=t,t}char(e=null){if(this.position>=this.text.length)throw new s(this.position,`Expected ${e} but got end of string`);const t=this.text[this.position];if(null===e)return++this.position,t;for(const n of this.splitCharRanges(e))if(1===n.length){if(t===n)return++this.position,t}else if(n[0]<=t&&t<=n[2])return++this.position,t;throw new s(this.position,`Expected ${e} but got end of string`)}keyword(...e){if(this.consumeWhitespace(),this.position>=this.text.length)throw new s(this.position,`Expected ${e.join(",")} but got end of string`);for(const t of e){const e=this.position,n=e+t.length;if(this.text.slice(e,n)===t)return this.position+=t.length,this.consumeWhitespace(),t}throw new s(this.position,`Expected ${e.join(",")} but got ${this.text[this.position]}`)}match(...e){this.consumeWhitespace();let t,n=0,o=[];for(const r of e){const e=this.position;try{const e=this[r]();return this.consumeWhitespace(),e}catch(s){this.position=e,s.position>n?(t=s,n=s.position,o=[r]):s.position===n&&o.push(r)}}if(1===o.length)throw t;throw new s(n,`Expected ${o.join(",")} but got ${this.text[n]}`)}maybeChar(e=null){try{return this.char(e)}catch(e){return null}}maybeKeyword(...e){try{return this.keyword(...e)}catch(e){return null}}maybeMatch(...e){try{return this.match(...e)}catch(e){return null}}}{start(){return this.expressionGenerator()}expressionGenerator(){const e=this.match("orExprGenerator"),t=this.match("expression");if(null===t)return e;const n=t[0],r=t[1];if(i.OPERATORS.iff.includes(n))return new o.BiconditionalStatement(e,r);if(i.OPERATORS.implies.includes(n))return new o.ConditionalStatement(e,r);throw new s(this.position,`Expected biconditional/conditional operator but got ${this.text[this.position]}`)}expression(){const e=this.maybeKeyword(...i.OPERATORS.iff,...i.OPERATORS.implies);if(null===e)return null;const t=this.match("orExprGenerator"),n=this.match("expression");if(null===n)return[e,t];const r=n[0],c=n[1];if(i.OPERATORS.iff.includes(r))return new o.BiconditionalStatement(t,c);if(i.OPERATORS.implies.includes(r))return new o.ConditionalStatement(t,c);throw new s(this.position,`Expected biconditional/conditional operator but got ${this.text[this.position]}`)}orExprGenerator(){const e=this.match("andExpressionGenerator"),t=this.match("orExpression");return null===t?e:t instanceof o.OrStatement?new o.OrStatement(e,...t.operands):new o.OrStatement(e,t)}orExpression(){if(null===this.maybeKeyword(...i.OPERATORS.or))return null;const e=this.match("andExpressionGenerator"),t=this.match("orExpression");return null===t?e:t instanceof o.OrStatement?new o.OrStatement(e,...t.operands):new o.OrStatement(e,t)}andExpressionGenerator(){const e=this.match("unaryExpression"),t=this.match("andExpression");return null===t?e:t instanceof o.AndStatement?new o.AndStatement(e,...t.operands):new o.AndStatement(e,t)}andExpression(){if(null===this.maybeKeyword(...i.OPERATORS.and))return null;const e=this.match("unaryExpression"),t=this.match("andExpression");return null===t?e:t instanceof o.AndStatement?new o.AndStatement(e,...t.operands):new o.AndStatement(e,t)}unaryExpression(){if(this.maybeKeyword(...i.OPERATORS.not)){const e=this.match("unaryExpression");return new o.NotStatement(e)}if(this.maybeKeyword("(")){const e=this.match("expressionGenerator");return this.keyword(")"),e}return new o.AtomicStatement(this.match("predicateName"))}predicateName(){const e="0-9A-Za-z",t=[this.char("A-Z")];let n=this.maybeChar(e);for(;null!==n;)t.push(n),n=this.maybeChar(e);return t.join("")}symbolName(){const e="0-9A-Za-z",t=[this.char("a-z")];let n=this.maybeChar(e);for(;null!==n;)t.push(n),n=this.maybeChar(e);return t.join("")}}t.PropositionalLogicParser=i,i.OPERATORS={iff:["↔","<->","%","iff","equiv"],implies:["→","->","$","implies","only if"],and:["∧","&","and"],or:["∨","|","or"],not:["¬","!","~","not"]};class c extends i{unaryExpression(){if(this.maybeKeyword(...c.OPERATORS.not)){const e=this.match("unaryExpression");return new o.NotStatement(e)}if(this.maybeKeyword(...c.OPERATORS.forall)){const e=this.match("symbolNameList"),t=this.match("unaryExpression");return new o.UniversalStatement(e,t)}if(this.maybeKeyword(...c.OPERATORS.exists)){const e=this.match("symbolNameList"),t=this.match("unaryExpression");return new o.ExistenceStatement(e,t)}if(this.maybeKeyword("(")){const e=this.match("expressionGenerator");return this.keyword(")"),e}return new o.AtomicStatement(this.match("predicate"))}predicate(){const e=this.match("predicateName"),t=this.match("formulaTail");return new r.Formula(e,t,!0)}formula(){const e=this.match("symbolName"),t=this.match("formulaTail");return new r.Formula(e,t)}formulaTail(){if(null===this.maybeKeyword("("))return null;const e=this.match("formulaList");return this.keyword(")"),e}formulaList(){return[this.match("formula"),...this.match("formulaListTail")]}formulaListTail(){return null===this.maybeKeyword(",")?[]:[this.match("formula"),...this.match("formulaListTail")]}symbolNameList(){const e=this.match("symbolName"),t=this.match("symbolNameListTail");return[new r.Formula(e),...t]}symbolNameListTail(){if(null===this.maybeKeyword(","))return[];const e=this.match("symbolName"),t=this.match("symbolNameListTail");return[new r.Formula(e),...t]}}t.FirstOrderLogicParser=c,c.OPERATORS={forall:["∀","forall"],exists:["∃","exists"],iff:["↔","<->","%","iff","equiv"],implies:["→","->","$","implies","only if"],and:["∧","&","and"],or:["∨","|","or"],not:["¬","!","~","not"]}},683:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniversalStatement=t.ExistenceStatement=t.QuantifierStatement=t.OrStatement=t.AndStatement=t.CommutativeStatement=t.BiconditionalStatement=t.ConditionalStatement=t.BinaryStatement=t.NotStatement=t.UnaryStatement=t.AtomicStatement=t.Contradiction=t.Tautology=t.Statement=void 0;const o=n(232);class r{isLiteral(){return this instanceof c||this instanceof a&&this.operand instanceof c}equals(e){return new b(this,e).checkEquivalence()}getEqualsMap(e){const t=new b(this,e);return!!t.checkEquivalence()&&t.assignment}getNewConstants(e){const t=this.getConstants([]);for(const n of e)for(let e=0;e[new a(e)])):this.operand instanceof m?[this.operand.operands.map((e=>new a(e)))]:this.operand instanceof d?[[this.operand.lhs,new a(this.operand.rhs)]]:this.operand instanceof p?[[this.operand.lhs,new a(this.operand.rhs)],[new a(this.operand.lhs),this.operand.rhs]]:this.operand instanceof v?[[new y(this.operand.variables,new a(this.operand.formula))]]:this.operand instanceof y?[[new v(this.operand.variables,new a(this.operand.formula))]]:[]}symbolized(e,t){return new a(this.operand.symbolized(e,t))}toString(){return`¬${this.operand}`}}t.NotStatement=a;class u extends r{constructor(e,t){super(),this.lhs=e,this.rhs=t}getConstants(e=[]){const t=this.lhs.getConstants(e);for(const n of this.rhs.getConstants(e))t.some((e=>e.equals(n)))||t.push(n);return t}}t.BinaryStatement=u;class d extends u{constructor(e,t){super(e,t)}decompose(){return[[new a(this.lhs)],[this.rhs]]}symbolized(e,t){return new d(this.lhs.symbolized(e,t),this.rhs.symbolized(e,t))}toString(){return`(${this.lhs} → ${this.rhs})`}}t.ConditionalStatement=d;class p extends u{constructor(e,t){super(e,t)}decompose(){return[[this.lhs,this.rhs],[new a(this.lhs),new a(this.rhs)]]}symbolized(e,t){return new p(this.lhs.symbolized(e,t),this.rhs.symbolized(e,t))}toString(){return`(${this.lhs} ↔ ${this.rhs})`}}t.BiconditionalStatement=p;class h extends r{constructor(...e){super(),this.operands=e}getConstants(e=[]){const t=[];for(const n of this.operands)for(const o of n.getConstants(e))t.some((e=>e.equals(o)))||t.push(o);return t}}t.CommutativeStatement=h;class f extends h{constructor(...e){super(...e)}decompose(){return[this.operands]}symbolized(e,t){return new f(...this.operands.map((n=>n.symbolized(e,t))))}toString(){return`(${this.operands.join(" ∧ ")})`}}t.AndStatement=f;class m extends h{constructor(...e){super(...e)}decompose(){return this.operands.map((e=>[e]))}symbolized(e,t){return new m(...this.operands.map((n=>n.symbolized(e,t))))}toString(){return`(${this.operands.join(" ∨ ")})`}}t.OrStatement=m;class g extends r{constructor(e,t){super(),this.variables=e,this.formula=t}getConstants(e=[]){const t=e;for(const e of this.variables)t.some((t=>t.equals(e)))||t.push(e);return this.formula.getConstants(t)}symbolized(){return this.formula.symbolized(this.variables,o.REPLACEMENT_SYMBOL)}}t.QuantifierStatement=g;class v extends g{constructor(e,t){super(e,t)}decompose(){return[[this.symbolized()]]}symbolized(e=[]){return 0===e.length?this.formula.symbolized(this.variables,o.REPLACEMENT_SYMBOL):new v(this.variables,this.formula.symbolized(e,o.REPLACEMENT_SYMBOL))}toString(){return`(∃${this.variables.join(",")} ${this.formula})`}}t.ExistenceStatement=v;class y extends g{constructor(e,t){super(e,t)}decompose(){return[[this.symbolized()]]}symbolized(e=[]){return 0===e.length?this.formula.symbolized(this.variables,o.REPLACEMENT_SYMBOL):new y(this.variables,this.formula.symbolized(e,o.REPLACEMENT_SYMBOL))}toString(){return`(∀${this.variables.join(",")} ${this.formula})`}}t.UniversalStatement=y;class b{constructor(e,t){this.assignment={},this.lhs=e,this.rhs=t}checkEquivalence(){return this.checkEquivalenceHelper(this.lhs,this.rhs)}checkEquivalenceHelper(e,t){return e instanceof c&&t instanceof c?e.formula.isMappedEquals(t.formula,this.assignment):e instanceof a&&t instanceof a?this.checkEquivalenceHelper(e.operand,t.operand):e instanceof d&&t instanceof d||e instanceof p&&t instanceof p?this.checkEquivalenceHelper(e.lhs,t.lhs)&&this.checkEquivalenceHelper(e.rhs,t.rhs):e instanceof f&&t instanceof f||e instanceof m&&t instanceof m?e.operands.every(((e,n)=>this.checkEquivalenceHelper(e,t.operands[n]))):(e instanceof v&&t instanceof v||e instanceof y&&t instanceof y)&&e.variables.every(((e,n)=>e.equals(t.variables[n])))&&this.checkEquivalenceHelper(e.formula,t.formula)}}},810:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TruthTree=t.TruthTreeNode=t.CorrectnessError=void 0;const o=n(587),r=n(232),s=n(683),i=n(420);class c{constructor(e,t=null){this.errorCode=e,this.extras=t}toString(){return this.errorCode}getErrorMessage(){switch(this.errorCode){case"not_parsable":return"This statement is not parsable.";case"not_logical_consequence":return"This statement is not a logical consequence of a statement that occurs before it.";case"invalid_instantiation":return"This statement does not instantiate the statement it references";case"existence_instantiation_length":return"Each variable in an existence statement must instantiate a new constant.";case"open_decomposed":return"An open terminator must reference no statements.";case"open_contradiction":return"This branch contains a contradiction.";case"open_invalid_ancestor":return"This branch contains an invalid statement.";case"closed_reference_length":return"A closing terminator must reference exactly two statements.";case"closed_reference_invalid":return"The referenced statements must be valid.";case"closed_not_atomic":return"The referenced statements must consist of a literal and its negation.";case"closed_not_ancestor":return"A closing terminator must only reference statements that occur before it.";case"closed_not_contradiction":return"The referenced statements must consist of a statement and its negation.";case"terminator_not_last":return"No statements can occur in a branch after a terminator.";case"reference_not_after":return"A statement must decompose into statements that occur after it.";case"invalid_decomposition":return"This statement is not decomposed correctly.";case"universal_decompose_length":return"A universal statement must be decomposed at least once.";case"universal_domain_not_decomposed":return`A universal statement must instantiate every variable in the universe of discourse (${this.extras} not instantiated).`;case"universal_variables_length":return"Universals with multiple variables cannot be evaluated yet; please split into multiple universal statements."}return"Unknown error code. Contact a developer :)"}}t.CorrectnessError=c;class l{constructor(e,t){this._text="",this._statement=null,this.premise=!1,this.comment=null,this.parent=null,this.children=[],this.antecedent=null,this.decomposition=new Set,this._correctDecomposition=null,this._universe=void 0,this.id=e,this.tree=t}clone(e){const t=new l(this.id,e);return t.text=this.text,t.premise=this.premise,t.comment=this.comment,t.parent=this.parent,t.children=[...this.children],t.antecedent=this.antecedent,t.decomposition=new Set(this.decomposition),t}static fromJSON(e,t){if(!("id"in t)||"number"!=typeof t.id)throw new Error("TruthTreeNode#fromJSON: id not found.");const n=new l(t.id,e);if(!("text"in t)||"string"!=typeof t.text)throw new Error("TruthTreeNode#fromJSON: text not found.");if(n.text=t.text,!("children"in t)||"object"!=typeof t.children||!Array.isArray(t.children))throw new Error("TruthTreeNode#fromJSON: children not found.");if(n.children=t.children,!("decomposition"in t&&"object"==typeof t.decomposition&&Array.isArray(t.decomposition)&&t.decomposition.every((e=>"number"==typeof e))))throw new Error("TruthTreeNode#fromJSON: decomposition not found.");return n.decomposition=new Set(t.decomposition),"premise"in t&&"boolean"==typeof t.premise&&(n.premise=t.premise),"comment"in t&&"string"==typeof t.comment&&(n.comment=t.comment),"parent"in t&&"number"==typeof t.parent&&(n.parent=t.parent),"antecedent"in t&&"number"==typeof t.antecedent&&(n.antecedent=t.antecedent),n}get text(){return this._text}set text(e){this._text=e;try{this.statement=(new o.FirstOrderLogicParser).parse(this.text)}catch(e){this.statement=null}}get statement(){return this._statement}set statement(e){this._statement=e,this._correctDecomposition=null,null!==this.antecedent&&(this.tree.nodes[this.antecedent]._correctDecomposition=null),!0===this.tree.initialized&&this.calculateUniverse()}get universe(){return void 0===this._universe?(console.log("ERROR: Got an undefined universe."),null):null===this._universe?null===this.parent?(console.log("WARNING: Root has no universe! If you see this error, try saving the file and opening it in a new tab."),[]):this.tree.nodes[this.parent].universe:Array.from(this._universe)}set universe(e){if(this._universe=e,this.statement instanceof s.QuantifierStatement&&(this._correctDecomposition=null),null!==this.antecedent){const e=this.tree.nodes[this.antecedent];e.statement instanceof s.QuantifierStatement&&(e._correctDecomposition=null)}}getInstantiations(){if(null===this.statement)return[];let e=[];return null!==this.parent&&(e=this.tree.nodes[this.parent].universe),console.log(this.statement.getNewConstants(e)),this.statement.getNewConstants(e)}calculateUniverse(){this.calculateUniverseHelper(null)}calculateUniverseHelper(e=null){if(null===e&&(e=null!==this.parent?this.tree.nodes[this.parent].universe:[]),void 0===this._universe&&(this._universe=e),null!==this.statement){const t=this.statement.getNewConstants(e);for(const n of t)e.push(n);t.length>0||null===this.parent?this.universe=e:this.universe=null}else null===this.parent?this.universe=[]:this.universe=null;for(const t of this.children)this.tree.nodes[t].calculateUniverseHelper(Array.from(e))}get correctDecomposition(){if(null===this.statement)return new Set;if(this.statement instanceof s.UniversalStatement)return console.error("This error can likely be ignored: Universal statements do not have correct decompositions"),new Set;if(null!==this._correctDecomposition)return this._correctDecomposition;this._correctDecomposition=new Set;const e=new Set;for(const t of this.decomposition){if(e.has(t))continue;const n=this.tree.nodes[t];if(null===n.parent)throw new Error(`The result of a decomposition has no parent. See node ${t}`);if(this.decomposition.has(n.parent)){e.add(t);continue}const o=[];let r=!0;for(const t of this.tree.nodes[n.parent].children){if(e.has(t))throw new Error("Reached an already visited node in child branch.");const n=[];let s=this.tree.nodes[t],i=1!==s.children.length;for(;(1===s.children.length||i)&&(this.decomposition.has(s.id)&&(e.add(s.id),null===s.statement?r=!1:r&&n.push(s.id)),!i);)s=this.tree.nodes[s.children[0]],i=1!==s.children.length;r&&o.push(n)}if(!r)continue;let i=!1;if(this.statement instanceof s.ExistenceStatement)for(const e of o){if(1!==e.length){i=!1;break}this.tree.nodes[e[0]].getInstantiations().length>=this.statement.variables.length&&(i=!0)}else{const e=[];for(const t of o){const n=[];for(const e of t)n.push(this.tree.nodes[e].statement);e.push(n)}i=this.statement.hasDecomposition(e)}if(i)for(const e of o)for(const t of e)this._correctDecomposition.add(t)}return this._correctDecomposition}set correctDecomposition(e){this._correctDecomposition=e}togglePremise(){this.premise=!this.premise}isTerminator(){return a.TERMINATORS.includes(this.text.trim())}isOpenTerminator(){return a.OPEN_TERMINATOR===this.text.trim()}isClosedTerminator(){return a.CLOSED_TERMINATOR===this.text.trim()}isValid(){if(this.isTerminator())return this.children.length>0?new c("terminator_not_last"):this.isOpenTerminator()?this.isOpenTerminatorValid():this.isClosedTerminatorValid();if(null===this.statement)return 0===this.text.trim().length||new c("not_parsable");if(this.premise)return!0;if(null===this.antecedent||!(this.antecedent in this.tree.nodes))return new c("not_logical_consequence");const e=this.tree.nodes[this.antecedent];return null===e.statement?new c("not_logical_consequence"):this.getAncestorBranch().has(this.antecedent)?e.statement instanceof s.QuantifierStatement?!!e.statement.symbolized().equals(this.statement)||new c("invalid_instantiation"):!!e.correctDecomposition.has(this.id)||new c("not_logical_consequence"):new c("not_logical_consequence")}isOpenTerminatorValid(){const e=new Set;if(0!==this.decomposition.size)return new c("open_decomposed");for(const t of this.getAncestorBranch()){const n=this.tree.nodes[t],o=n.statement;if(o instanceof s.AtomicStatement||o instanceof s.NotStatement&&o.operand instanceof s.AtomicStatement){if(e.has(o.toString()))return new c("open_contradiction");o instanceof s.AtomicStatement?e.add(new s.NotStatement(o).toString()):e.add(o.operand.toString())}if(!0!==n.isValid())return new c("open_invalid_ancestor");if(!0!==n.isDecomposed())return new c("open_invalid_ancestor")}return!0}isClosedTerminatorValid(){if(2!==this.decomposition.size)return new c("closed_reference_length");const e=[...this.decomposition].map((e=>this.tree.nodes[e].statement));for(let t=0;t<2;++t){const n=e[t],o=e[1-t];if(null===n||null===o)return new c("closed_reference_invalid");if(n instanceof s.NotStatement&&n.operand.equals(o)){if(this.tree.options.requireAtomicContradiction&&!(o instanceof s.AtomicStatement))return new c("closed_not_atomic");const e=this.getAncestorBranch();for(const t of this.decomposition)if(!e.has(t))return new c("closed_not_ancestor");return!0}}return new c("closed_not_contradiction")}isDecomposed(){if(null===this.statement)return 0===this.text.trim().length||!!this.isTerminator()||new c("not_parsable");if(0===this.statement.decompose().length)return!0;for(const e of this.decomposition)if(!this.isAncestorOf(e))return new c("reference_not_after");let e=null;for(const t of this.tree.leaves){const n=this.tree.nodes[t];let o=null;if(!(this.statement instanceof s.ExistenceStatement)&&n.isClosedTerminator())continue;if(!this.isAncestorOf(t)&&this.id!==t)continue;const l=n.getAncestorBranch(!0);if(this.statement instanceof s.UniversalStatement){const t=new Set;for(const e of this.decomposition)l.has(e)&&t.add(e);if(0===t.size){e=new c("universal_decompose_length");continue}const s=this.statement.symbolized(),a=(0,i.createNDimensionalMapping)(this.statement.variables.length,n.universe);for(const e of t){const t=this.tree.nodes[e];if(null===t.statement){o=new c("invalid_decomposition");break}const l=s.getEqualsMap(t.statement);if(!1===l){o=new c("invalid_decomposition");break}if(Object.keys(l).length!==this.statement.variables.length){let e;e=n.universe.length>0?n.universe.values().next().value:new r.Formula("x");for(const t of this.statement.variables)Object.keys(l).includes(t.toString())||(l[t.toString()]=e)}(0,i.deleteMapping)(a,l,this.statement.variables)}if(null!==o){e=o;continue}if(0!==Object.keys(a).length){const e=(0,i.getFirstUnassigned)(a);o=new c("universal_domain_not_decomposed",e)}}else{let e=!1;for(const t of this.correctDecomposition)if(l.has(t)){e=!0;break}e||(o=this.statement instanceof s.ExistenceStatement?new c("existence_instantiation_length"):new c("invalid_decomposition"))}if(null===o){if(n.isOpenTerminator()&&!this.tree.options.requireAllBranchesTerminated)return!0}else e=o}return null===e||e}getFeedback(){const e=this.isValid();if(!0!==e)return e.getErrorMessage();const t=this.isDecomposed();return!0!==t?t.getErrorMessage():this.premise?"This statement is a premise.":this.isTerminator()?this.isOpenTerminator()?"This open branch represents a valid assignment.":"This branch is successfully closed.":"This statement is a logical consequence and is decomposed correctly."}getAncestorBranch(e=!1){const t=new Set;e&&t.add(this.id);let n=this.tree.nodes[this.id];for(;null!==n.parent;)t.add(n.parent),n=this.tree.nodes[n.parent];return t}isAncestorOf(e){let t=this.tree.nodes[e];for(;null!==t.parent;)if(t=this.tree.nodes[t.parent],t.id===this.id)return!0;return!1}}t.TruthTreeNode=l;class a{constructor(){this.nodes={},this.leaves=new Set,this.initialized=!0,this.options={requireAtomicContradiction:!0,requireAllBranchesTerminated:!0,lockedOptions:!1}}get root(){if(void 0===this._root)throw new Error("Undefined root");return this._root}set root(e){this._root=e}clone(){const e=new a;e.initialized=!1;for(const t of Object.values(this.nodes))e.nodes[t.id]=t.clone(e);return e.root=this.root,e.leaves=new Set(this.leaves),e.options={requireAtomicContradiction:this.options.requireAtomicContradiction,requireAllBranchesTerminated:this.options.requireAllBranchesTerminated,lockedOptions:this.options.lockedOptions},e.calculateUniverse(),e.initialized=!0,e}static empty(){const e=new a;return e.nodes[0]=new l(0,e),e.nodes[0].calculateUniverse(),e.root=0,e.leaves.add(0),e}static deserialize(e){const t=new a;t.initialized=!1;const n=JSON.parse(e);if("object"!=typeof n)throw new Error("TruthTree#deserialize: This file is not in JSON.");const o=n.nodes;if(!("object"==typeof o&&Array.isArray(o)&&o.length>0))throw new Error("TruthTree#deserialize: The tree is empty.");try{for(const e of o){const n=l.fromJSON(t,e);if(0===n.children.length&&t.leaves.add(n.id),null===n.parent){if(void 0!==t._root)throw new Error("TruthTree#deserialize: Tree has multiple roots.");t._root=n.id}t.nodes[n.id]=n}if(void 0===t._root)throw new Error("TruthTree#deserialize: Tree has no root.")}catch(e){throw new Error(`TruthTree#deserialize: The tree does not match the format: ${e.message}`)}return t.options=n.options,t.calculateUniverse(),t.initialized=!0,t}serialize(){const e=[];for(const t of Object.values(this.nodes)){const n={id:t.id,text:t.text,children:t.children,decomposition:[...t.decomposition]};t.premise&&(n.premise=t.premise),null!==t.comment&&(n.comment=t.comment),null!==t.parent&&(n.parent=t.parent),null!==t.antecedent&&(n.antecedent=t.antecedent),e.push(n)}const t={};return t.nodes=e,t.options=this.options,JSON.stringify(t)}getNode(e){return null!=e&&e in this.nodes?this.nodes[e]:null}getBranchHead(e){let t=this.getNode(e);if(null===t)return null;for(;null!==t.parent&&1===this.nodes[t.parent].children.length;)t=this.nodes[t.parent];return t.id}getBranchTail(e){let t=this.getNode(e);if(null===t)return null;for(;1===t.children.length;)t=this.nodes[t.children[0]];return t.id}branchContainsPremise(e){if("number"!=typeof e)return!1;let t=[e];for(;t.length>0;){const e=this.getNode(t.shift());if(null!==e){if(e.premise)return!0;t=t.concat(e.children)}}return!1}leftmostNode(e){let t="number"==typeof e?this.getNode(e):this.getNode(this.root);if(null===t)return null;for(;t.children.length>0;)t=this.nodes[t.children[0]];return t}rightmostNode(e){let t="number"==typeof e?this.getNode(e):this.getNode(this.root);if(null===t)return null;for(;t.children.length>0;)t=this.nodes[t.children[t.children.length-1]];return t}getNextId(){return Math.max(...Object.keys(this.nodes).map((e=>parseInt(e))))+1}addNodeBefore(e){const t=this.getNode(e);if(null===t)return console.log("TruthTree#addNodeBefore: Attempted to add node before null node."),null;const n=this.getNextId();this.nodes[n]=new l(n,this);const o=this.nodes[n];o.parent=t.parent,o.children=[e];const r=this.getNode(t.parent);if(null!==r){const t=r.children.indexOf(e);-1===t?console.log("TruthTree#addNodeBefore: Parent does not contain child."):r.children[t]=n}return t.parent=n,this.root===e&&(this.root=n),o.calculateUniverse(),n}addNodeAfter(e,t){const n=this.getNode(e);if(null===n)return console.log("TruthTree#addNodeAfter: Attempted to add node after null node."),null;const o=this.getNextId();this.nodes[o]=new l(o,this);const r=this.nodes[o];if(r.parent=e,this.leaves.has(e)&&(this.leaves.delete(e),this.leaves.add(o)),t)return n.children.push(o),this.leaves.add(o),r.calculateUniverse(),o;this.nodes[o].children=n.children;for(const e of n.children){const t=this.getNode(e);null!==t?t.parent=o:console.log("TruthTree#addNodeAfter: Referenced child does not exist.")}return n.children=[o],r.calculateUniverse(),o}deleteNode(e){if(!(e in this.nodes))return console.error("TruthTree#deleteNode: Could not delete a node that does not exist"),null;const t=this.nodes[e];if(null===t.parent){if(1!==t.children.length)return null;this.nodes[t.children[0]].parent=null,this._root=t.children[0]}else{const n=this.nodes[t.parent];if(1!==n.children.length){if(t.children.length>1)return null;const o=n.children.indexOf(e);1===t.children.length?(n.children[o]=t.children[0],this.nodes[t.children[0]].parent=t.parent):(n.children.splice(o,1),this.leaves.delete(e))}else{n.children=t.children;for(const e of t.children)this.nodes[e].parent=t.parent;0===t.children.length&&(this.leaves.delete(e),this.leaves.add(n.id))}}if(null!==t.antecedent){const e=this.nodes[t.antecedent];e.decomposition.delete(t.id),e.correctDecomposition=null}if(!t.isTerminator())for(const e of t.decomposition)this.nodes[e].antecedent=null;for(const t of this.leaves){const n=this.nodes[t];n.isClosedTerminator()&&n.decomposition.delete(e)}if(delete this.nodes[e],null!==t.statement)for(const e of t.children)this.nodes[e].calculateUniverse();return 1===t.children.length?t.children[0]:t.parent}deleteBranch(e){const t=this.nodes[e];if(null===t.parent)return null;for(let e=t.children.length-1;e>=0;--e)this.deleteBranch(t.children[e]);return this.deleteNode(e),t.parent}isCorrect(){if(!this.checkRepresentation())return{value:!1,message:"This tree is malformed -- please save this tree and contact a developer."};this.calculateUniverse();let e=!1;for(const t of Object.values(this.nodes)){if(!0!==t.isValid())return{value:!1,message:"This tree is incorrect."};if(this.leaves.has(t.id))if(this.options.requireAllBranchesTerminated){if(!t.isTerminator())return{value:!1,message:"Every branch must be terminated."}}else t.isOpenTerminator()&&(e=!0)}if(e)return{value:!0,message:"This tree is correct!"};for(const e of this.leaves)if(!this.nodes[e].isTerminator())return this.options.requireAllBranchesTerminated?{value:!1,message:"Every branch must be closed or there must be at least one open branch."}:{value:!1,message:"Every branch must be terminated."};return{value:!0,message:"This tree is correct!"}}extends(e){return!!Object.keys(this.options).every((t=>this.options[t]===e.options[t]))&&this.extendsHelper(this.root,e.root,e)}extendsHelper(e,t,n){let o=this.getNode(e),r=n.getNode(t),s=null===r,i=1!==o.children.length;for(;1===o.children.length||i;){if(null!==o.statement)if(!s&&null!==r&&o.statement.equals(r.statement)){if(o.premise!==r.premise)return!1;1===r.children.length?r=n.getNode(r.children[0]):s=!0}else if(o.premise)return!1;i?i=!1:(o=this.getNode(o.children[0]),i=1!==o.children.length)}if(!s)return!1;if(null===r||0===r.children.length){for(const e of o.children)if(!this.extendsHelper(e,null,n))return!1}else{if(r.children.length!==o.children.length)return!1;for(let e=0;e{function n(e,t,o,r){const s=t[o[r].toString()].toString();s in e&&(r{function o(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.r(t),n.d(t,{BaseTransition:()=>ro,Comment:()=>Pr,EffectScope:()=>se,Fragment:()=>Rr,KeepAlive:()=>vo,ReactiveEffect:()=>be,Static:()=>Br,Suspense:()=>Fn,Teleport:()=>Tr,Text:()=>Mr,Transition:()=>Ni,TransitionGroup:()=>Ki,VueElement:()=>xi,callWithAsyncErrorHandling:()=>Yt,callWithErrorHandling:()=>Jt,camelize:()=>W,capitalize:()=>Q,cloneVNode:()=>es,compatUtils:()=>oi,compile:()=>Ju,computed:()=>js,createApp:()=>xc,createBlock:()=>zr,createCommentVNode:()=>os,createElementBlock:()=>Hr,createElementVNode:()=>Qr,createHydrationRenderer:()=>vr,createPropsRestProxy:()=>Ks,createRenderer:()=>gr,createSSRApp:()=>Cc,createSlots:()=>us,createStaticVNode:()=>ns,createTextVNode:()=>ts,createVNode:()=>Zr,customRef:()=>Vt,defineAsyncComponent:()=>fo,defineComponent:()=>po,defineCustomElement:()=>_i,defineEmits:()=>Fs,defineExpose:()=>Vs,defineProps:()=>Is,defineSSRCustomElement:()=>Si,devtools:()=>Sn,effect:()=>Se,effectScope:()=>ie,getCurrentInstance:()=>Ss,getCurrentScope:()=>le,getTransitionRawChildren:()=>uo,guardReactiveProps:()=>Xr,h:()=>Ws,handleError:()=>Qt,hydrate:()=>wc,initCustomFormatter:()=>Qs,initDirectivesForSSR:()=>kc,inject:()=>Kn,isMemoSame:()=>Xs,isProxy:()=>xt,isReactive:()=>_t,isReadonly:()=>St,isRef:()=>At,isRuntimeOnly:()=>As,isShallow:()=>wt,isVNode:()=>qr,markRaw:()=>Tt,mergeDefaults:()=>qs,mergeProps:()=>cs,nextTick:()=>pn,normalizeClass:()=>d,normalizeProps:()=>p,normalizeStyle:()=>c,onActivated:()=>bo,onBeforeMount:()=>Eo,onBeforeUnmount:()=>$o,onBeforeUpdate:()=>Oo,onDeactivated:()=>_o,onErrorCaptured:()=>Lo,onMounted:()=>No,onRenderTracked:()=>Bo,onRenderTriggered:()=>Po,onScopeDispose:()=>ae,onServerPrefetch:()=>Mo,onUnmounted:()=>Ro,onUpdated:()=>Ao,openBlock:()=>Ir,popScopeId:()=>$n,provide:()=>qn,proxyRefs:()=>It,pushScopeId:()=>An,queuePostFlushCb:()=>gn,reactive:()=>mt,readonly:()=>vt,ref:()=>$t,registerRuntimeCompiler:()=>Os,render:()=>Sc,renderList:()=>as,renderSlot:()=>ds,resolveComponent:()=>kr,resolveDirective:()=>Or,resolveDynamicComponent:()=>Nr,resolveFilter:()=>ni,resolveTransitionHooks:()=>io,setBlockTracking:()=>Ur,setDevtoolsHook:()=>xn,setTransitionHooks:()=>ao,shallowReactive:()=>gt,shallowReadonly:()=>yt,shallowRef:()=>Rt,ssrContextKey:()=>Js,ssrUtils:()=>ti,stop:()=>we,toDisplayString:()=>y,toHandlerKey:()=>Z,toHandlers:()=>hs,toRaw:()=>Ct,toRef:()=>Ht,toRefs:()=>Ut,transformVNodeArgs:()=>Gr,triggerRef:()=>Bt,unref:()=>Lt,useAttrs:()=>Hs,useCssModule:()=>Ci,useCssVars:()=>Ti,useSSRContext:()=>Ys,useSlots:()=>Ds,useTransitionState:()=>no,vModelCheckbox:()=>ec,vModelDynamic:()=>cc,vModelRadio:()=>nc,vModelSelect:()=>oc,vModelText:()=>Xi,vShow:()=>fc,version:()=>ei,warn:()=>Kt,watch:()=>Qn,watchEffect:()=>Gn,watchPostEffect:()=>Wn,watchSyncEffect:()=>Jn,withAsyncContext:()=>Gs,withCtx:()=>Mn,withDefaults:()=>Us,withDirectives:()=>sr,withKeys:()=>hc,withMemo:()=>Zs,withModifiers:()=>dc,withScopeId:()=>Rn});const r=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),s=o("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function i(e){return!!e||""===e}function c(e){if($(e)){const t={};for(let n=0;n{if(e){const n=e.split(a);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function d(e){let t="";if(L(e))t=e;else if($(e))for(let n=0;ng(e,t)))}const y=e=>L(e)?e:null==e?"":$(e)||I(e)&&(e.toString===V||!B(e.toString))?JSON.stringify(e,b,2):String(e),b=(e,t)=>t&&t.__v_isRef?b(e,t.value):R(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:M(t)?{[`Set(${t.size})`]:[...t.values()]}:!I(t)||$(t)||D(t)?t:String(t),_={},S=[],w=()=>{},x=()=>!1,C=/^on[^a-z]/,T=e=>C.test(e),k=e=>e.startsWith("onUpdate:"),E=Object.assign,N=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},O=Object.prototype.hasOwnProperty,A=(e,t)=>O.call(e,t),$=Array.isArray,R=e=>"[object Map]"===U(e),M=e=>"[object Set]"===U(e),P=e=>e instanceof Date,B=e=>"function"==typeof e,L=e=>"string"==typeof e,j=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,F=e=>I(e)&&B(e.then)&&B(e.catch),V=Object.prototype.toString,U=e=>V.call(e),D=e=>"[object Object]"===U(e),H=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,z=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),q=o("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),K=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},G=/-(\w)/g,W=K((e=>e.replace(G,((e,t)=>t?t.toUpperCase():"")))),J=/\B([A-Z])/g,Y=K((e=>e.replace(J,"-$1").toLowerCase())),Q=K((e=>e.charAt(0).toUpperCase()+e.slice(1))),Z=K((e=>e?`on${Q(e)}`:"")),X=(e,t)=>!Object.is(e,t),ee=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ne=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let oe,re;class se{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&re&&(this.parent=re,this.index=(re.scopes||(re.scopes=[])).push(this)-1)}run(e){if(this.active)try{return re=this,e()}finally{re=this.parent}}on(){re=this}off(){re=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},de=e=>(e.w&ge)>0,pe=e=>(e.n&ge)>0,he=new WeakMap;let fe,me=0,ge=1;const ve=Symbol(""),ye=Symbol("");class be{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,ce(this,n)}run(){if(!this.active)return this.fn();let e=fe,t=xe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=fe,fe=this,xe=!0,ge=1<<++me,me<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===t||t>=o)&&c.push(e)}));else switch(void 0!==n&&c.push(i.get(n)),t){case"add":$(e)?H(n)&&c.push(i.get("length")):(c.push(i.get(ve)),R(e)&&c.push(i.get(ye)));break;case"delete":$(e)||(c.push(i.get(ve)),R(e)&&c.push(i.get(ye)));break;case"set":R(e)&&c.push(i.get(ve))}if(1===c.length)c[0]&&Ae(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);Ae(ue(e))}}function Ae(e,t){for(const t of $(e)?e:[...e])(t!==fe||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const $e=o("__proto__,__v_isRef,__isVue"),Re=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(j)),Me=Ie(),Pe=Ie(!1,!0),Be=Ie(!0),Le=Ie(!0,!0),je=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ct(this);for(let e=0,t=this.length;e{e[t]=function(...e){Te();const n=Ct(this)[t].apply(this,e);return ke(),n}})),e}();function Ie(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?ft:ht:t?pt:dt).get(n))return n;const s=$(n);if(!e&&s&&A(je,o))return Reflect.get(je,o,r);const i=Reflect.get(n,o,r);return(j(o)?Re.has(o):$e(o))?i:(e||Ee(n,0,o),t?i:At(i)?s&&H(o)?i:i.value:I(i)?e?vt(i):mt(i):i)}}function Fe(e=!1){return function(t,n,o,r){let s=t[n];if(St(s)&&At(s)&&!At(o))return!1;if(!e&&!St(o)&&(wt(o)||(o=Ct(o),s=Ct(s)),!$(t)&&At(s)&&!At(o)))return s.value=o,!0;const i=$(t)&&H(n)?Number(n)!0,deleteProperty:(e,t)=>!0},De=E({},Ve,{get:Pe,set:Fe(!0)}),He=E({},Ue,{get:Le}),ze=e=>e,qe=e=>Reflect.getPrototypeOf(e);function Ke(e,t,n=!1,o=!1){const r=Ct(e=e.__v_raw),s=Ct(t);t!==s&&!n&&Ee(r,0,t),!n&&Ee(r,0,s);const{has:i}=qe(r),c=o?ze:n?Et:kt;return i.call(r,t)?c(e.get(t)):i.call(r,s)?c(e.get(s)):void(e!==r&&e.get(t))}function Ge(e,t=!1){const n=this.__v_raw,o=Ct(n),r=Ct(e);return e!==r&&!t&&Ee(o,0,e),!t&&Ee(o,0,r),e===r?n.has(e):n.has(e)||n.has(r)}function We(e,t=!1){return e=e.__v_raw,!t&&Ee(Ct(e),0,ve),Reflect.get(e,"size",e)}function Je(e){e=Ct(e);const t=Ct(this);return qe(t).has.call(t,e)||(t.add(e),Oe(t,"add",e,e)),this}function Ye(e,t){t=Ct(t);const n=Ct(this),{has:o,get:r}=qe(n);let s=o.call(n,e);s||(e=Ct(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?X(t,i)&&Oe(n,"set",e,t):Oe(n,"add",e,t),this}function Qe(e){const t=Ct(this),{has:n,get:o}=qe(t);let r=n.call(t,e);r||(e=Ct(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&Oe(t,"delete",e,void 0),s}function Ze(){const e=Ct(this),t=0!==e.size,n=e.clear();return t&&Oe(e,"clear",void 0,void 0),n}function Xe(e,t){return function(n,o){const r=this,s=r.__v_raw,i=Ct(s),c=t?ze:e?Et:kt;return!e&&Ee(i,0,ve),s.forEach(((e,t)=>n.call(o,c(e),c(t),r)))}}function et(e,t,n){return function(...o){const r=this.__v_raw,s=Ct(r),i=R(s),c="entries"===e||e===Symbol.iterator&&i,l="keys"===e&&i,a=r[e](...o),u=n?ze:t?Et:kt;return!t&&Ee(s,0,l?ye:ve),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:c?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function tt(e){return function(...t){return"delete"!==e&&this}}const[nt,ot,rt,st]=function(){const e={get(e){return Ke(this,e)},get size(){return We(this)},has:Ge,add:Je,set:Ye,delete:Qe,clear:Ze,forEach:Xe(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return We(this)},has:Ge,add:Je,set:Ye,delete:Qe,clear:Ze,forEach:Xe(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return We(this,!0)},has(e){return Ge.call(this,e,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Xe(!0,!1)},o={get(e){return Ke(this,e,!0,!0)},get size(){return We(this,!0)},has(e){return Ge.call(this,e,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=et(r,!1,!1),n[r]=et(r,!0,!1),t[r]=et(r,!1,!0),o[r]=et(r,!0,!0)})),[e,n,t,o]}();function it(e,t){const n=t?e?st:rt:e?ot:nt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(A(n,o)&&o in t?n:t,o,r)}const ct={get:it(!1,!1)},lt={get:it(!1,!0)},at={get:it(!0,!1)},ut={get:it(!0,!0)},dt=new WeakMap,pt=new WeakMap,ht=new WeakMap,ft=new WeakMap;function mt(e){return St(e)?e:bt(e,!1,Ve,ct,dt)}function gt(e){return bt(e,!1,De,lt,pt)}function vt(e){return bt(e,!0,Ue,at,ht)}function yt(e){return bt(e,!0,He,ut,ft)}function bt(e,t,n,o,r){if(!I(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=function(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>U(e).slice(8,-1))(e))}(e);if(0===i)return e;const c=new Proxy(e,2===i?o:n);return r.set(e,c),c}function _t(e){return St(e)?_t(e.__v_raw):!(!e||!e.__v_isReactive)}function St(e){return!(!e||!e.__v_isReadonly)}function wt(e){return!(!e||!e.__v_isShallow)}function xt(e){return _t(e)||St(e)}function Ct(e){const t=e&&e.__v_raw;return t?Ct(t):e}function Tt(e){return te(e,"__v_skip",!0),e}const kt=e=>I(e)?mt(e):e,Et=e=>I(e)?vt(e):e;function Nt(e){xe&&fe&&Ne((e=Ct(e)).dep||(e.dep=ue()))}function Ot(e,t){(e=Ct(e)).dep&&Ae(e.dep)}function At(e){return!(!e||!0!==e.__v_isRef)}function $t(e){return Mt(e,!1)}function Rt(e){return Mt(e,!0)}function Mt(e,t){return At(e)?e:new Pt(e,t)}class Pt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ct(e),this._value=t?e:kt(e)}get value(){return Nt(this),this._value}set value(e){e=this.__v_isShallow?e:Ct(e),X(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:kt(e),Ot(this))}}function Bt(e){Ot(e)}function Lt(e){return At(e)?e.value:e}const jt={get:(e,t,n)=>Lt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return At(r)&&!At(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function It(e){return _t(e)?e:new Proxy(e,jt)}class Ft{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Nt(this)),(()=>Ot(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Vt(e){return new Ft(e)}function Ut(e){const t=$(e)?new Array(e.length):{};for(const n in e)t[n]=Ht(e,n);return t}class Dt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Ht(e,t,n){const o=e[t];return At(o)?o:new Dt(e,t,n)}class zt{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new be(e,(()=>{this._dirty||(this._dirty=!0,Ot(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Ct(this);return Nt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}const qt=[];function Kt(e,...t){Te();const n=qt.length?qt[qt.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=qt[qt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)Jt(o,n,11,[e+t.join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${Ls(n,e.type)}>`)).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=` at <${Ls(e.component,e.type,!!e.component&&null==e.component.parent)}`,r=">"+n;return e.props?[o,...Gt(e.props),r]:[o+r]}(e))})),t}(r)),console.warn(...n)}ke()}function Gt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Wt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Wt(e,t,n){return L(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:At(t)?(t=Wt(e,Ct(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):B(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ct(t),n?t:[`${e}=`,t])}function Jt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Qt(e,t,n)}return r}function Yt(e,t,n,o){if(B(e)){const r=Jt(e,t,n,o);return r&&F(r)&&r.catch((e=>{Qt(e,t,n)})),r}const r=[];for(let s=0;s>>1;bn(en[o])bn(e)-bn(t))),ln=0;lnnull==e.id?1/0:e.id;function _n(e){Xt=!1,Zt=!0,vn(e),en.sort(((e,t)=>bn(e)-bn(t)));try{for(tn=0;tnSn.emit(e,...t))),wn=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null===(o=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===o?void 0:o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{xn(e,t)})),setTimeout((()=>{Sn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,wn=[])}),3e3)):wn=[]}function Cn(e,t,...n){const o=e.vnode.props||_;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:t,trim:s}=o[e]||_;s?r=n.map((e=>e.trim())):t&&(r=n.map(ne))}let c,l=o[c=Z(t)]||o[c=Z(W(t))];!l&&s&&(l=o[c=Z(Y(t))]),l&&Yt(l,e,6,r);const a=o[c+"Once"];if(a){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,Yt(a,e,6,r)}}function Tn(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let i={},c=!1;if(!B(e)){const o=e=>{const n=Tn(e,t,!0);n&&(c=!0,E(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||c?($(s)?s.forEach((e=>i[e]=null)):E(i,s),o.set(e,i),i):(o.set(e,null),null)}function kn(e,t){return!(!e||!T(t))&&(t=t.slice(2).replace(/Once$/,""),A(e,t[0].toLowerCase()+t.slice(1))||A(e,Y(t))||A(e,t))}let En=null,Nn=null;function On(e){const t=En;return En=e,Nn=e&&e.type.__scopeId||null,t}function An(e){Nn=e}function $n(){Nn=null}const Rn=e=>Mn;function Mn(e,t=En,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Ur(-1);const r=On(t),s=e(...n);return On(r),o._d&&Ur(1),s};return o._n=!0,o._c=!0,o._d=!0,o}function Pn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:c,attrs:l,emit:a,render:u,renderCache:d,data:p,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const y=On(e);try{if(4&n.shapeFlag){const e=r||o;g=rs(u.call(e,e,d,s,h,p,f)),v=l}else g=rs(t(s,t.length>1?{attrs:l,slots:c,emit:a}:null)),v=t.props?l:Bn(l)}catch(t){Lr.length=0,Qt(t,e,1),g=Zr(Pr)}let b=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(i&&e.some(k)&&(v=Ln(v,i)),b=es(b,v))}return n.dirs&&(b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,On(y),g}const Bn=e=>{let t;for(const n in e)("class"===n||"style"===n||T(n))&&((t||(t={}))[n]=e[n]);return t},Ln=(e,t)=>{const n={};for(const o in e)k(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function jn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r0?(Vn(e,"onPending"),Vn(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,s,i),zn(p,e.ssFallback)):p.resolve()}(t,n,o,r,s,i,c,l,a):function(e,t,n,o,r,s,i,c,{p:l,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,Kr(p,m)?(l(m,p,d.hiddenContainer,null,r,d,s,i,c),d.deps<=0?d.resolve():g&&(l(f,h,n,o,r,null,s,i,c),zn(d,h))):(d.pendingId++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,p,d.hiddenContainer,null,r,d,s,i,c),d.deps<=0?d.resolve():(l(f,h,n,o,r,null,s,i,c),zn(d,h))):f&&Kr(p,f)?(l(f,p,n,o,r,d,s,i,c),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,r,d,s,i,c),d.deps<=0&&d.resolve()));else if(f&&Kr(p,f))l(f,p,n,o,r,d,s,i,c),zn(d,p);else if(Vn(t,"onPending"),d.pendingBranch=p,d.pendingId++,l(null,p,d.hiddenContainer,null,r,d,s,i,c),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,i,c,l,a)},hydrate:function(e,t,n,o,r,s,i,c,l){const a=t.suspense=Un(t,o,n,e.parentNode,document.createElement("div"),null,r,s,i,c,!0),u=l(e,a.pendingBranch=t.ssContent,n,a,s,i);return 0===a.deps&&a.resolve(),u},create:Un,normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=Dn(o?n.default:n),e.ssFallback=o?Dn(n.fallback):Zr(Pr)}};function Vn(e,t){const n=e.props&&e.props[t];B(n)&&n()}function Un(e,t,n,o,r,s,i,c,l,a,u=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:m,remove:g}}=a,v=ne(e.props&&e.props.timeout),y={vnode:e,parent:t,parentComponent:n,isSVG:i,container:o,hiddenContainer:r,anchor:s,deps:0,pendingId:0,timeout:"number"==typeof v?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:o,pendingId:r,effects:s,parentComponent:i,container:c}=y;if(y.isHydrating)y.isHydrating=!1;else if(!e){const e=n&&o.transition&&"out-in"===o.transition.mode;e&&(n.transition.afterLeave=()=>{r===y.pendingId&&p(o,c,t,0)});let{anchor:t}=y;n&&(t=f(n),h(n,i,y,!0)),e||p(o,c,t,0)}zn(y,o),y.pendingBranch=null,y.isInFallback=!1;let l=y.parent,a=!1;for(;l;){if(l.pendingBranch){l.effects.push(...s),a=!0;break}l=l.parent}a||gn(s),y.effects=[],Vn(t,"onResolve")},fallback(e){if(!y.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,isSVG:s}=y;Vn(t,"onFallback");const i=f(n),a=()=>{y.isInFallback&&(d(null,e,r,i,o,null,s,c,l),zn(y,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),y.isInFallback=!0,h(n,o,null,!0),u||a()},move(e,t,n){y.activeBranch&&p(y.activeBranch,e,t,n),y.container=e},next:()=>y.activeBranch&&f(y.activeBranch),registerDep(e,t){const n=!!y.pendingBranch;n&&y.deps++;const o=e.vnode.el;e.asyncDep.catch((t=>{Qt(t,e,0)})).then((r=>{if(e.isUnmounted||y.isUnmounted||y.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Ns(e,r,!1),o&&(s.el=o);const c=!o&&e.subTree.el;t(e,s,m(o||e.subTree.el),o?null:f(e.subTree),y,i,l),c&&g(c),In(e,s.el),n&&0==--y.deps&&y.resolve()}))},unmount(e,t){y.isUnmounted=!0,y.activeBranch&&h(y.activeBranch,n,e,t),y.pendingBranch&&h(y.pendingBranch,n,e,t)}};return y}function Dn(e){let t;if(B(e)){const n=Vr&&e._c;n&&(e._d=!1,Ir()),e=e(),n&&(e._d=!0,t=jr,Fr())}if($(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function Hn(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):gn(e)}function zn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,r=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=r,In(o,r))}function qn(e,t){if(_s){let n=_s.provides;const o=_s.parent&&_s.parent.provides;o===n&&(n=_s.provides=Object.create(o)),n[e]=t}}function Kn(e,t,n=!1){const o=_s||En;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&B(t)?t.call(o.proxy):t}}function Gn(e,t){return Zn(e,null,t)}function Wn(e,t){return Zn(e,null,{flush:"post"})}function Jn(e,t){return Zn(e,null,{flush:"sync"})}const Yn={};function Qn(e,t,n){return Zn(e,t,n)}function Zn(e,t,{immediate:n,deep:o,flush:r}=_){const s=_s;let i,c,l=!1,a=!1;if(At(e)?(i=()=>e.value,l=wt(e)):_t(e)?(i=()=>e,o=!0):$(e)?(a=!0,l=e.some(_t),i=()=>e.map((e=>At(e)?e.value:_t(e)?to(e):B(e)?Jt(e,s,2):void 0))):i=B(e)?t?()=>Jt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Yt(e,s,3,[u])}:w,t&&o){const e=i;i=()=>to(e())}let u=e=>{c=f.onStop=()=>{Jt(e,s,4)}},d=a?[]:Yn;const p=()=>{if(f.active)if(t){const e=f.run();(o||l||(a?e.some(((e,t)=>X(e,d[t]))):X(e,d)))&&(c&&c(),Yt(t,s,3,[e,d===Yn?void 0:d,u]),d=e)}else f.run()};let h;p.allowRecurse=!!t,h="sync"===r?p:"post"===r?()=>mr(p,s&&s.suspense):()=>{!s||s.isMounted?function(e){mn(e,on,nn,rn)}(p):p()};const f=new be(i,h);return t?n?p():d=f.run():"post"===r?mr(f.run.bind(f),s&&s.suspense):f.run(),()=>{f.stop(),s&&s.scope&&N(s.scope.effects,f)}}function Xn(e,t,n){const o=this.proxy,r=L(e)?e.includes(".")?eo(o,e):()=>o[e]:e.bind(o,o);let s;B(t)?s=t:(s=t.handler,n=t);const i=_s;ws(this);const c=Zn(r,s.bind(o),n);return i?ws(i):xs(),c}function eo(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{to(e,t)}));else if(D(e))for(const n in e)to(e[n],t);return e}function no(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return No((()=>{e.isMounted=!0})),$o((()=>{e.isUnmounting=!0})),e}const oo=[Function,Array],ro={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:oo,onEnter:oo,onAfterEnter:oo,onEnterCancelled:oo,onBeforeLeave:oo,onLeave:oo,onAfterLeave:oo,onLeaveCancelled:oo,onBeforeAppear:oo,onAppear:oo,onAfterAppear:oo,onAppearCancelled:oo},setup(e,{slots:t}){const n=Ss(),o=no();let r;return()=>{const s=t.default&&uo(t.default(),!0);if(!s||!s.length)return;const i=Ct(e),{mode:c}=i,l=s[0];if(o.isLeaving)return co(l);const a=lo(l);if(!a)return co(l);const u=io(a,i,o,n);ao(a,u);const d=n.subTree,p=d&&lo(d);let h=!1;const{getTransitionKey:f}=a.type;if(f){const e=f();void 0===r?r=e:e!==r&&(r=e,h=!0)}if(p&&p.type!==Pr&&(!Kr(a,p)||h)){const e=io(p,i,o,n);if(ao(p,e),"out-in"===c)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},co(l);"in-out"===c&&a.type!==Pr&&(e.delayLeave=(e,t,n)=>{so(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return l}}};function so(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function io(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:a,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),_=so(n,e),S=(e,t)=>{e&&Yt(e,o,9,t)},w={mode:s,persisted:i,beforeEnter(t){let o=c;if(!n.isMounted){if(!r)return;o=m||c}t._leaveCb&&t._leaveCb(!0);const s=_[b];s&&Kr(e,s)&&s.el._leaveCb&&s.el._leaveCb(),S(o,[t])},enter(e){let t=l,o=a,s=u;if(!n.isMounted){if(!r)return;t=g||l,o=v||a,s=y||u}let i=!1;const c=e._enterCb=t=>{i||(i=!0,S(t?s:o,[e]),w.delayedLeave&&w.delayedLeave(),e._enterCb=void 0)};t?(t(e,c),t.length<=1&&c()):c()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();S(d,[t]);let s=!1;const i=t._leaveCb=n=>{s||(s=!0,o(),S(n?f:h,[t]),t._leaveCb=void 0,_[r]===e&&delete _[r])};_[r]=e,p?(p(t,i),p.length<=1&&i()):i()},clone:e=>io(e,t,n,o)};return w}function co(e){if(go(e))return(e=es(e)).children=null,e}function lo(e){return go(e)?e.children?e.children[0]:void 0:e}function ao(e,t){6&e.shapeFlag&&e.component?ao(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function uo(e,t=!1){let n=[],o=0;for(let r=0;r1)for(let e=0;e!!e.type.__asyncLoader;function fo(e){B(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:i=!0,onError:c}=e;let l,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise(((t,n)=>{c(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return po({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=_s;if(l)return()=>mo(l,e);const t=t=>{a=null,Qt(t,e,13,!o)};if(i&&e.suspense)return d().then((t=>()=>mo(t,e))).catch((e=>(t(e),()=>o?Zr(o,{error:e}):null)));const c=$t(!1),u=$t(),p=$t(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),d().then((()=>{c.value=!0,e.parent&&go(e.parent.vnode)&&hn(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>c.value&&l?mo(l,e):u.value&&o?Zr(o,{error:u.value}):n&&!p.value?Zr(n):void 0}})}function mo(e,{vnode:{ref:t,props:n,children:o}}){const r=Zr(e,n,o);return r.ref=t,r}const go=e=>e.type.__isKeepAlive,vo={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ss(),o=n.ctx;if(!o.renderer)return t.default;const r=new Map,s=new Set;let i=null;const c=n.suspense,{renderer:{p:l,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function h(e){xo(e),u(e,n,c,!0)}function f(e){r.forEach(((t,n)=>{const o=Bs(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);i&&t.type===i.type?i&&xo(i):h(t),r.delete(e),s.delete(e)}o.activate=(e,t,n,o,r)=>{const s=e.component;a(e,t,n,0,c),l(s.vnode,e,t,n,s,c,o,e.slotScopeIds,r),mr((()=>{s.isDeactivated=!1,s.a&&ee(s.a);const t=e.props&&e.props.onVnodeMounted;t&&ls(t,s.parent,e)}),c)},o.deactivate=e=>{const t=e.component;a(e,p,null,1,c),mr((()=>{t.da&&ee(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ls(n,t.parent,e),t.isDeactivated=!0}),c)},Qn((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>yo(e,t))),t&&f((e=>!yo(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&r.set(g,Co(n.subTree))};return No(v),Ao(v),$o((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=Co(t);if(e.type!==r.type)h(e);else{xo(r);const e=r.component.da;e&&mr(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!qr(o)||!(4&o.shapeFlag||128&o.shapeFlag))return i=null,o;let c=Co(o);const l=c.type,a=Bs(ho(c)?c.type.__asyncResolved||{}:l),{include:u,exclude:d,max:p}=e;if(u&&(!a||!yo(u,a))||d&&a&&yo(d,a))return i=c,o;const h=null==c.key?l:c.key,f=r.get(h);return c.el&&(c=es(c),128&o.shapeFlag&&(o.ssContent=c)),g=h,f?(c.el=f.el,c.component=f.component,c.transition&&ao(c,c.transition),c.shapeFlag|=512,s.delete(h),s.add(h)):(s.add(h),p&&s.size>parseInt(p,10)&&m(s.values().next().value)),c.shapeFlag|=256,i=c,o}}};function yo(e,t){return $(e)?e.some((e=>yo(e,t))):L(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function bo(e,t){So(e,"a",t)}function _o(e,t){So(e,"da",t)}function So(e,t,n=_s){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(To(t,o,n),n){let e=n.parent;for(;e&&e.parent;)go(e.parent.vnode)&&wo(o,t,n,e),e=e.parent}}function wo(e,t,n,o){const r=To(t,e,o,!0);Ro((()=>{N(o[t],r)}),n)}function xo(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Co(e){return 128&e.shapeFlag?e.ssContent:e}function To(e,t,n=_s,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Te(),ws(n);const r=Yt(t,n,e,o);return xs(),ke(),r});return o?r.unshift(s):r.push(s),s}}const ko=e=>(t,n=_s)=>(!Es||"sp"===e)&&To(e,t,n),Eo=ko("bm"),No=ko("m"),Oo=ko("bu"),Ao=ko("u"),$o=ko("bum"),Ro=ko("um"),Mo=ko("sp"),Po=ko("rtg"),Bo=ko("rtc");function Lo(e,t=_s){To("ec",e,t)}let jo=!0;function Io(e,t,n){Yt($(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Fo(e,t,n,o){const r=o.includes(".")?eo(n,o):()=>n[o];if(L(e)){const n=t[e];B(n)&&Qn(r,n)}else if(B(e))Qn(r,e.bind(n));else if(I(e))if($(e))e.forEach((e=>Fo(e,t,n,o)));else{const o=B(e.handler)?e.handler.bind(n):t[e.handler];B(o)&&Qn(r,o,e)}}function Vo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let l;return c?l=c:r.length||n||o?(l={},r.length&&r.forEach((e=>Uo(l,e,i,!0))),Uo(l,t,i)):l=t,s.set(t,l),l}function Uo(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Uo(e,s,n,!0),r&&r.forEach((t=>Uo(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=Do[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const Do={data:Ho,props:Ko,emits:Ko,methods:Ko,computed:Ko,beforeCreate:qo,created:qo,beforeMount:qo,mounted:qo,beforeUpdate:qo,updated:qo,beforeDestroy:qo,beforeUnmount:qo,destroyed:qo,unmounted:qo,activated:qo,deactivated:qo,errorCaptured:qo,serverPrefetch:qo,components:Ko,directives:Ko,watch:function(e,t){if(!e)return t;if(!t)return e;const n=E(Object.create(null),e);for(const o in t)n[o]=qo(e[o],t[o]);return n},provide:Ho,inject:function(e,t){return Ko(zo(e),zo(t))}};function Ho(e,t){return t?e?function(){return E(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function zo(e){if($(e)){const t={};for(let n=0;n{l=!0;const[n,o]=Jo(e,t,!0);E(i,n),o&&c.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!l)return o.set(e,S),S;if($(s))for(let e=0;e-1,o[1]=n<0||e-1||A(o,"default"))&&c.push(t)}}}const a=[i,c];return o.set(e,a),a}function Yo(e){return"$"!==e[0]}function Qo(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Zo(e,t){return Qo(e)===Qo(t)}function Xo(e,t){return $(t)?t.findIndex((t=>Zo(t,e))):B(t)&&Zo(t,e)?0:-1}const er=e=>"_"===e[0]||"$stable"===e,tr=e=>$(e)?e.map(rs):[rs(e)],nr=(e,t,n)=>{const o=Mn(((...e)=>tr(t(...e))),n);return o._c=!1,o},or=(e,t,n)=>{const o=e._ctx;for(const n in e){if(er(n))continue;const r=e[n];if(B(r))t[n]=nr(0,r,o);else if(null!=r){const e=tr(r);t[n]=()=>e}}},rr=(e,t)=>{const n=tr(t);e.slots.default=()=>n};function sr(e,t){if(null===En)return e;const n=En.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e(s.has(e)||(e&&B(e.install)?(s.add(e),e.install(c,...t)):B(e)&&(s.add(e),e(c,...t))),c),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),c),component:(e,t)=>t?(r.components[e]=t,c):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,c):r.directives[e],mount(s,l,a){if(!i){const u=Zr(n,o);return u.appContext=r,l&&t?t(u,s):e(u,s,a),i=!0,c._container=s,s.__vue_app__=c,Ms(u.component)||u.component.proxy}},unmount(){i&&(e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,c)};return c}}function ur(e,t,n,o,r=!1){if($(e))return void e.forEach(((e,s)=>ur(e,t&&($(t)?t[s]:t),n,o,r)));if(ho(o)&&!r)return;const s=4&o.shapeFlag?Ms(o.component)||o.component.proxy:o.el,i=r?null:s,{i:c,r:l}=e,a=t&&t.r,u=c.refs===_?c.refs={}:c.refs,d=c.setupState;if(null!=a&&a!==l&&(L(a)?(u[a]=null,A(d,a)&&(d[a]=null)):At(a)&&(a.value=null)),B(l))Jt(l,c,12,[i,u]);else{const t=L(l),o=At(l);if(t||o){const o=()=>{if(e.f){const n=t?u[l]:l.value;r?$(n)&&N(n,s):$(n)?n.includes(s)||n.push(s):t?u[l]=[s]:(l.value=[s],e.k&&(u[e.k]=l.value))}else t?(u[l]=i,A(d,l)&&(d[l]=i)):At(l)&&(l.value=i,e.k&&(u[e.k]=i))};i?(o.id=-1,mr(o,n)):o()}}}let dr=!1;const pr=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,hr=e=>8===e.nodeType;function fr(e){const{mt:t,p:n,o:{patchProp:o,nextSibling:r,parentNode:s,remove:i,insert:c,createComment:l}}=e,a=(n,o,i,c,l,m=!1)=>{const g=hr(n)&&"["===n.data,v=()=>h(n,o,i,c,l,g),{type:y,ref:b,shapeFlag:_}=o,S=n.nodeType;o.el=n;let w=null;switch(y){case Mr:3!==S?w=v():(n.data!==o.children&&(dr=!0,n.data=o.children),w=r(n));break;case Pr:w=8!==S||g?v():r(n);break;case Br:if(1===S){w=n;const e=!o.children.length;for(let t=0;t{c=c||!!t.dynamicChildren;const{type:l,props:a,patchFlag:u,shapeFlag:p,dirs:h}=t,f="input"===l&&h||"option"===l;if(f||-1!==u){if(h&&ir(t,null,n,"created"),a)if(f||!c||48&u)for(const t in a)(f&&t.endsWith("value")||T(t)&&!z(t))&&o(e,t,null,a[t],!1,void 0,n);else a.onClick&&o(e,"onClick",null,a.onClick,!1,void 0,n);let l;if((l=a&&a.onVnodeBeforeMount)&&ls(l,n,t),h&&ir(t,null,n,"beforeMount"),((l=a&&a.onVnodeMounted)||h)&&Hn((()=>{l&&ls(l,n,t),h&&ir(t,null,n,"mounted")}),r),16&p&&(!a||!a.innerHTML&&!a.textContent)){let o=d(e.firstChild,t,e,n,r,s,c);for(;o;){dr=!0;const e=o;o=o.nextSibling,i(e)}}else 8&p&&e.textContent!==t.children&&(dr=!0,e.textContent=t.children)}return e.nextSibling},d=(e,t,o,r,s,i,c)=>{c=c||!!t.dynamicChildren;const l=t.children,u=l.length;for(let t=0;t{const{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);const p=s(e),h=d(r(e),t,p,n,o,i,a);return h&&hr(h)&&"]"===h.data?r(t.anchor=h):(dr=!0,c(t.anchor=l("]"),p,h),h)},h=(e,t,o,c,l,a)=>{if(dr=!0,t.el=null,a){const t=f(e);for(;;){const n=r(e);if(!n||n===t)break;i(n)}}const u=r(e),d=s(e);return i(e),n(null,t,d,u,o,c,pr(d),l),u},f=e=>{let t=0;for(;e;)if((e=r(e))&&hr(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return r(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),void yn();dr=!1,a(t.firstChild,e,null,null,null),yn(),dr&&console.error("Hydration completed but contains mismatches.")},a]}const mr=Hn;function gr(e){return yr(e)}function vr(e){return yr(e,fr)}function yr(e,t){(oe||(oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{})).__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:c,createComment:l,setText:a,setElementText:u,parentNode:d,nextSibling:p,setScopeId:h=w,cloneNode:f,insertStaticContent:m}=e,g=(e,t,n,o=null,r=null,s=null,i=!1,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Kr(e,t)&&(o=Q(e),H(e,r,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Mr:v(e,t,n,o);break;case Pr:y(e,t,n,o);break;case Br:null==e&&b(t,n,o,i);break;case Rr:R(e,t,n,o,r,s,i,c,l);break;default:1&d?x(e,t,n,o,r,s,i,c,l):6&d?M(e,t,n,o,r,s,i,c,l):(64&d||128&d)&&a.process(e,t,n,o,r,s,i,c,l,X)}null!=u&&r&&ur(u,e&&e.ref,s,t||e,!t)},v=(e,t,n,r)=>{if(null==e)o(t.el=c(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},y=(e,t,n,r)=>{null==e?o(t.el=l(t.children||""),n,r):t.el=e.el},b=(e,t,n,o)=>{[e.el,e.anchor]=m(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,s,i,c,l)=>{i=i||"svg"===t.type,null==e?C(t,n,o,r,s,i,c,l):N(e,t,r,s,i,c,l)},C=(e,t,n,r,c,l,a,d)=>{let p,h;const{type:m,props:g,shapeFlag:v,transition:y,patchFlag:b,dirs:_}=e;if(e.el&&void 0!==f&&-1===b)p=e.el=f(e.el);else{if(p=e.el=i(e.type,l,g&&g.is,g),8&v?u(p,e.children):16&v&&k(e.children,p,null,r,c,l&&"foreignObject"!==m,a,d),_&&ir(e,null,r,"created"),g){for(const t in g)"value"===t||z(t)||s(p,t,null,g[t],l,e.children,r,c,J);"value"in g&&s(p,"value",null,g.value),(h=g.onVnodeBeforeMount)&&ls(h,r,e)}T(p,e,e.scopeId,a,r)}_&&ir(e,null,r,"beforeMount");const S=(!c||c&&!c.pendingBranch)&&y&&!y.persisted;S&&y.beforeEnter(p),o(p,t,n),((h=g&&g.onVnodeMounted)||S||_)&&mr((()=>{h&&ls(h,r,e),S&&y.enter(p),_&&ir(e,null,r,"mounted")}),c)},T=(e,t,n,o,r)=>{if(n&&h(e,n),o)for(let t=0;t{for(let a=l;a{const l=t.el=e.el;let{patchFlag:a,dynamicChildren:d,dirs:p}=t;a|=16&e.patchFlag;const h=e.props||_,f=t.props||_;let m;n&&br(n,!1),(m=f.onVnodeBeforeUpdate)&&ls(m,n,t,e),p&&ir(t,e,n,"beforeUpdate"),n&&br(n,!0);const g=r&&"foreignObject"!==t.type;if(d?O(e.dynamicChildren,d,l,n,o,g,i):c||I(e,t,l,null,n,o,g,i,!1),a>0){if(16&a)$(l,t,h,f,n,o,r);else if(2&a&&h.class!==f.class&&s(l,"class",null,f.class,r),4&a&&s(l,"style",h.style,f.style,r),8&a){const i=t.dynamicProps;for(let t=0;t{m&&ls(m,n,t,e),p&&ir(t,e,n,"updated")}),o)},O=(e,t,n,o,r,s,i)=>{for(let c=0;c{if(n!==o){for(const l in o){if(z(l))continue;const a=o[l],u=n[l];a!==u&&"value"!==l&&s(e,l,u,a,c,t.children,r,i,J)}if(n!==_)for(const l in n)z(l)||l in o||s(e,l,n[l],null,c,t.children,r,i,J);"value"in o&&s(e,"value",n.value,o.value)}},R=(e,t,n,r,s,i,l,a,u)=>{const d=t.el=e?e.el:c(""),p=t.anchor=e?e.anchor:c("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(o(d,n,r),o(p,n,r),k(t.children,n,p,s,i,l,a,u)):h>0&&64&h&&f&&e.dynamicChildren?(O(e.dynamicChildren,f,n,s,i,l,a),(null!=t.key||s&&t===s.subTree)&&_r(e,t,!0)):I(e,t,n,p,s,i,l,a,u)},M=(e,t,n,o,r,s,i,c,l)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,l):P(t,n,o,r,s,i,l):B(e,t,l)},P=(e,t,n,o,r,s,i)=>{const c=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||ys,s={uid:bs++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new se(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jo(o,r),emitsOptions:Tn(o,r),emit:null,emitted:null,propsDefaults:_,inheritAttrs:o.inheritAttrs,ctx:_,data:_,props:_,attrs:_,slots:_,refs:_,setupState:_,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Cn.bind(null,s),e.ce&&e.ce(s),s}(e,o,r);if(go(e)&&(c.ctx.renderer=X),function(e,t=!1){Es=t;const{props:n,children:o}=e.vnode,r=Cs(e);(function(e,t,n,o=!1){const r={},s={};te(s,Wr,1),e.propsDefaults=Object.create(null),Go(e,t,r,s);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);e.props=n?o?r:gt(r):e.type.props?r:s,e.attrs=s})(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Ct(t),te(t,"_",n)):or(t,e.slots={})}else e.slots={},t&&rr(e,t);te(e.slots,Wr,1)})(e,o),r&&function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Tt(new Proxy(e.ctx,gs));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Rs(e):null;ws(e),Te();const r=Jt(o,e,0,[e.props,n]);if(ke(),xs(),F(r)){if(r.then(xs,xs),t)return r.then((n=>{Ns(e,n,t)})).catch((t=>{Qt(t,e,0)}));e.asyncDep=r}else Ns(e,r,t)}else $s(e,t)}(e,t),Es=!1}(c),c.asyncDep){if(r&&r.registerDep(c,L),!e.el){const e=c.subTree=Zr(Pr);y(null,e,t,n)}}else L(c,e,t,n,r,s,i)},B=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:c,patchFlag:l}=t,a=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!c||c&&c.$stable)||o!==i&&(o?!i||jn(o,i,a):!!i);if(1024&l)return!0;if(16&l)return o?jn(o,i,a):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;ttn&&en.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},L=(e,t,n,o,r,s,i)=>{const c=e.effect=new be((()=>{if(e.isMounted){let t,{next:n,bu:o,u:c,parent:l,vnode:a}=e,u=n;br(e,!1),n?(n.el=a.el,j(e,n,i)):n=a,o&&ee(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ls(t,l,n,a),br(e,!0);const p=Pn(e),h=e.subTree;e.subTree=p,g(h,p,d(h.el),Q(h),e,r,s),n.el=p.el,null===u&&In(e,p.el),c&&mr(c,r),(t=n.props&&n.props.onVnodeUpdated)&&mr((()=>ls(t,l,n,a)),r)}else{let i;const{el:c,props:l}=t,{bm:a,m:u,parent:d}=e,p=ho(t);if(br(e,!1),a&&ee(a),!p&&(i=l&&l.onVnodeBeforeMount)&&ls(i,d,t),br(e,!0),c&&re){const n=()=>{e.subTree=Pn(e),re(c,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Pn(e);g(null,i,n,o,e,r,s),t.el=i.el}if(u&&mr(u,r),!p&&(i=l&&l.onVnodeMounted)){const e=t;mr((()=>ls(i,d,e)),r)}256&t.shapeFlag&&e.a&&mr(e.a,r),e.isMounted=!0,t=n=o=null}}),(()=>hn(e.update)),e.scope),l=e.update=c.run.bind(c);l.id=e.uid,br(e,!0),l()},j=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,c=Ct(r),[l]=e.propsOptions;let a=!1;if(!(o||i>0)||16&i){let o;Go(e,t,r,s)&&(a=!0);for(const s in c)t&&(A(t,s)||(o=Y(s))!==s&&A(t,o))||(l?!n||void 0===n[s]&&void 0===n[o]||(r[s]=Wo(l,c,s,void 0,e,!0)):delete r[s]);if(s!==c)for(const e in s)t&&A(t,e)||(delete s[e],a=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:o,slots:r}=e;let s=!0,i=_;if(32&o.shapeFlag){const e=t._;e?n&&1===e?s=!1:(E(r,t),n||1!==e||delete r._):(s=!t.$stable,or(t,r)),i=t}else t&&(rr(e,t),i={default:1});if(s)for(const e in r)er(e)||e in i||delete r[e]})(e,t.children,n),Te(),vn(void 0,e.update),ke()},I=(e,t,n,o,r,s,i,c,l=!1)=>{const a=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void U(a,p,n,o,r,s,i,c,l);if(256&h)return void V(a,p,n,o,r,s,i,c,l)}8&f?(16&d&&J(a,r,s),p!==a&&u(n,p)):16&d?16&f?U(a,p,n,o,r,s,i,c,l):J(a,r,s,!0):(8&d&&u(n,""),16&f&&k(p,n,o,r,s,i,c,l))},V=(e,t,n,o,r,s,i,c,l)=>{const a=(e=e||S).length,u=(t=t||S).length,d=Math.min(a,u);let p;for(p=0;pu?J(e,r,s,!0,!1,d):k(t,n,o,r,s,i,c,l,d)},U=(e,t,n,o,r,s,i,c,l)=>{let a=0;const u=t.length;let d=e.length-1,p=u-1;for(;a<=d&&a<=p;){const o=e[a],u=t[a]=l?ss(t[a]):rs(t[a]);if(!Kr(o,u))break;g(o,u,n,null,r,s,i,c,l),a++}for(;a<=d&&a<=p;){const o=e[d],a=t[p]=l?ss(t[p]):rs(t[p]);if(!Kr(o,a))break;g(o,a,n,null,r,s,i,c,l),d--,p--}if(a>d){if(a<=p){const e=p+1,d=ep)for(;a<=d;)H(e[a],r,s,!0),a++;else{const h=a,f=a,m=new Map;for(a=f;a<=p;a++){const e=t[a]=l?ss(t[a]):rs(t[a]);null!=e.key&&m.set(e.key,a)}let v,y=0;const b=p-f+1;let _=!1,w=0;const x=new Array(b);for(a=0;a=b){H(o,r,s,!0);continue}let u;if(null!=o.key)u=m.get(o.key);else for(v=f;v<=p;v++)if(0===x[v-f]&&Kr(o,t[v])){u=v;break}void 0===u?H(o,r,s,!0):(x[u-f]=a+1,u>=w?w=u:_=!0,g(o,t[u],n,null,r,s,i,c,l),y++)}const C=_?function(e){const t=e.slice(),n=[0];let o,r,s,i,c;const l=e.length;for(o=0;o>1,e[n[c]]0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}(x):S;for(v=C.length-1,a=b-1;a>=0;a--){const e=f+a,d=t[e],p=e+1{const{el:i,type:c,transition:l,children:a,shapeFlag:u}=e;if(6&u)D(e.component.subTree,t,n,r);else if(128&u)e.suspense.move(t,n,r);else if(64&u)c.move(e,t,n,X);else if(c!==Rr)if(c!==Br)if(2!==r&&1&u&&l)if(0===r)l.beforeEnter(i),o(i,t,n),mr((()=>l.enter(i)),s);else{const{leave:e,delayLeave:r,afterLeave:s}=l,c=()=>o(i,t,n),a=()=>{e(i,(()=>{c(),s&&s()}))};r?r(i,c,a):a()}else o(i,t,n);else(({el:e,anchor:t},n,r)=>{let s;for(;e&&e!==t;)s=p(e),o(e,n,r),e=s;o(t,n,r)})(e,t,n);else{o(i,t,n);for(let e=0;e{const{type:s,props:i,ref:c,children:l,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=c&&ur(c,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!ho(e);let m;if(f&&(m=i&&i.onVnodeBeforeUnmount)&&ls(m,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&ir(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,X,o):a&&(s!==Rr||d>0&&64&d)?J(a,t,n,!1,!0):(s===Rr&&384&d||!r&&16&u)&&J(l,t,n),o&&q(e)}(f&&(m=i&&i.onVnodeUnmounted)||h)&&mr((()=>{m&&ls(m,t,e),h&&ir(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:o,transition:s}=e;if(t===Rr)return void K(n,o);if(t===Br)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),r(e),e=n;r(t)})(e);const i=()=>{r(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:o}=s,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},K=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:s,subTree:i,um:c}=e;o&&ee(o),r.stop(),s&&(s.active=!1,H(i,e,t,n)),c&&mr(c,t),mr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,o=!1,r=!1,s=0)=>{for(let i=s;i6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),Z=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),yn(),t._vnode=e},X={p:g,um:H,m:D,r:q,mt:P,mc:k,pc:I,pbc:O,n:Q,o:e};let ne,re;return t&&([ne,re]=t(X)),{render:Z,hydrate:ne,createApp:ar(Z,ne)}}function br({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function _r(e,t,n=!1){const o=e.children,r=t.children;if($(o)&&$(r))for(let e=0;ee&&(e.disabled||""===e.disabled),wr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,xr=(e,t)=>{const n=e&&e.to;return L(n)?t?t(n):null:n};function Cr(e,t,n,{o:{insert:o},m:r},s=2){0===s&&o(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:l,children:a,props:u}=e,d=2===s;if(d&&o(i,t,n),(!d||Sr(u))&&16&l)for(let e=0;e{16&v&&u(y,e,t,r,s,i,c,l)};g?b(n,a):d&&b(d,p)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Sr(e.props),v=m?n:u,y=m?o:h;if(i=i||wr(u),b?(p(e.dynamicChildren,b,v,r,s,i,c),_r(e,t,!0)):l||d(e,t,v,y,r,s,i,c,!1),g)m||Cr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=xr(t.props,f);e&&Cr(t,e,null,a,0)}else m&&Cr(t,u,h,a,1)}},remove(e,t,n,o,{um:r,o:{remove:s}},i){const{shapeFlag:c,children:l,anchor:a,targetAnchor:u,target:d,props:p}=e;if(d&&s(u),(i||!Sr(p))&&(s(a),16&c))for(let e=0;e0?jr||S:null,Fr(),Vr>0&&jr&&jr.push(e),e}function Hr(e,t,n,o,r,s){return Dr(Qr(e,t,n,o,r,s,!0))}function zr(e,t,n,o,r){return Dr(Zr(e,t,n,o,r,!0))}function qr(e){return!!e&&!0===e.__v_isVNode}function Kr(e,t){return e.type===t.type&&e.key===t.key}function Gr(e){}const Wr="__vInternal",Jr=({key:e})=>null!=e?e:null,Yr=({ref:e,ref_key:t,ref_for:n})=>null!=e?L(e)||At(e)||B(e)?{i:En,r:e,k:t,f:!!n}:e:null;function Qr(e,t=null,n=null,o=0,r=null,s=(e===Rr?0:1),i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jr(t),ref:t&&Yr(t),scopeId:Nn,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return c?(is(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=L(n)?8:16),Vr>0&&!i&&jr&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&jr.push(l),l}const Zr=function(e,t=null,n=null,o=0,r=null,s=!1){if(e&&e!==Er||(e=Pr),qr(e)){const o=es(e,t,!0);return n&&is(o,n),o}var i;if(B(i=e)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=Xr(t);let{class:e,style:n}=t;e&&!L(e)&&(t.class=d(e)),I(n)&&(xt(n)&&!$(n)&&(n=E({},n)),t.style=c(n))}return Qr(e,t,n,o,r,L(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:I(e)?4:B(e)?2:0,s,!0)};function Xr(e){return e?xt(e)||Wr in e?E({},e):e:null}function es(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,c=t?cs(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Jr(c),ref:t&&t.ref?n&&r?$(r)?r.concat(Yr(t)):[r,Yr(t)]:Yr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Rr?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&es(e.ssContent),ssFallback:e.ssFallback&&es(e.ssFallback),el:e.el,anchor:e.anchor}}function ts(e=" ",t=0){return Zr(Mr,null,e,t)}function ns(e,t){const n=Zr(Br,null,e);return n.staticCount=t,n}function os(e="",t=!1){return t?(Ir(),zr(Pr,null,e)):Zr(Pr,null,e)}function rs(e){return null==e||"boolean"==typeof e?Zr(Pr):$(e)?Zr(Rr,null,e.slice()):"object"==typeof e?ss(e):Zr(Mr,null,String(e))}function ss(e){return null===e.el||e.memo?e:es(e)}function is(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if($(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),is(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Wr in t?3===o&&En&&(1===En.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=En}}else B(t)?(t={default:t,_ctx:En},n=32):(t=String(t),64&o?(n=16,t=[ts(t)]):n=8);e.children=t,e.shapeFlag|=n}function cs(...e){const t={};for(let n=0;nt(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;o!qr(e)||e.type!==Pr&&!(e.type===Rr&&!ps(e.children))))?e:null}function hs(e){const t={};for(const n in e)t[Z(n)]=e[n];return t}const fs=e=>e?Cs(e)?Ms(e)||e.proxy:fs(e.parent):null,ms=E(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=>fs(e.parent),$root:e=>fs(e.root),$emit:e=>e.emit,$options:e=>Vo(e),$forceUpdate:e=>()=>hn(e.update),$nextTick:e=>pn.bind(e.proxy),$watch:e=>Xn.bind(e)}),gs={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:c,appContext:l}=e;let a;if("$"!==t[0]){const c=i[t];if(void 0!==c)switch(c){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(o!==_&&A(o,t))return i[t]=1,o[t];if(r!==_&&A(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&A(a,t))return i[t]=3,s[t];if(n!==_&&A(n,t))return i[t]=4,n[t];jo&&(i[t]=0)}}const u=ms[t];let d,p;return u?("$attrs"===t&&Ee(e,0,t),u(e)):(d=c.__cssModules)&&(d=d[t])?d:n!==_&&A(n,t)?(i[t]=4,n[t]):(p=l.config.globalProperties,A(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return r!==_&&A(r,t)?(r[t]=n,!0):o!==_&&A(o,t)?(o[t]=n,!0):!(A(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let c;return!!n[i]||e!==_&&A(e,i)||t!==_&&A(t,i)||(c=s[0])&&A(c,i)||A(o,i)||A(ms,i)||A(r.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?this.set(e,t,n.get(),null):null!=n.value&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},vs=E({},gs,{get(e,t){if(t!==Symbol.unscopables)return gs.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!r(t)}),ys=cr();let bs=0,_s=null;const Ss=()=>_s||En,ws=e=>{_s=e,e.scope.on()},xs=()=>{_s&&_s.scope.off(),_s=null};function Cs(e){return 4&e.vnode.shapeFlag}let Ts,ks,Es=!1;function Ns(e,t,n){B(t)?e.render=t:I(t)&&(e.setupState=It(t)),$s(e,n)}function Os(e){Ts=e,ks=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,vs))}}const As=()=>!Ts;function $s(e,t,n){const o=e.type;if(!e.render){if(!t&&Ts&&!o.render){const t=o.template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:i}=o,c=E(E({isCustomElement:n,delimiters:s},r),i);o.render=Ts(t,c)}}e.render=o.render||w,ks&&ks(e)}ws(e),Te(),function(e){const t=Vo(e),n=e.proxy,o=e.ctx;jo=!1,t.beforeCreate&&Io(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:c,provide:l,inject:a,created:u,beforeMount:d,mounted:p,beforeUpdate:h,updated:f,activated:m,deactivated:g,beforeUnmount:v,unmounted:y,render:b,renderTracked:_,renderTriggered:S,errorCaptured:x,serverPrefetch:C,expose:T,inheritAttrs:k,components:E,directives:N}=t;if(a&&function(e,t,n=w,o=!1){$(e)&&(e=zo(e));for(const n in e){const r=e[n];let s;s=I(r)?"default"in r?Kn(r.from||n,r.default,!0):Kn(r.from||n):Kn(r),At(s)&&o?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(a,o,null,e.appContext.config.unwrapInjectedRef),i)for(const e in i){const t=i[e];B(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);I(t)&&(e.data=mt(t))}if(jo=!0,s)for(const e in s){const t=s[e],r=B(t)?t.bind(n,n):B(t.get)?t.get.bind(n,n):w,i=!B(t)&&B(t.set)?t.set.bind(n):w,c=js({get:r,set:i});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)Fo(c[e],o,n,e);if(l){const e=B(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{qn(t,e[t])}))}function O(e,t){$(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Io(u,e,"c"),O(Eo,d),O(No,p),O(Oo,h),O(Ao,f),O(bo,m),O(_o,g),O(Lo,x),O(Bo,_),O(Po,S),O($o,v),O(Ro,y),O(Mo,C),$(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});b&&e.render===w&&(e.render=b),null!=k&&(e.inheritAttrs=k),E&&(e.components=E),N&&(e.directives=N)}(e),ke(),xs()}function Rs(e){let t;return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Ee(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ms(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(It(Tt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in ms?ms[n](e):void 0}))}const Ps=/(?:^|[-_])(\w)/g;function Bs(e){return B(e)&&e.displayName||e.name}function Ls(e,t,n=!1){let o=Bs(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?o.replace(Ps,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}const js=(e,t)=>function(e,t,n=!1){let o,r;const s=B(e);return s?(o=e,r=w):(o=e.get,r=e.set),new zt(o,r,s||!r,n)}(e,0,Es);function Is(){return null}function Fs(){return null}function Vs(e){}function Us(e,t){return null}function Ds(){return zs().slots}function Hs(){return zs().attrs}function zs(){const e=Ss();return e.setupContext||(e.setupContext=Rs(e))}function qs(e,t){const n=$(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const o=n[e];o?$(o)||B(o)?n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(n[e]={default:t[e]})}return n}function Ks(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function Gs(e){const t=Ss();let n=e();return xs(),F(n)&&(n=n.catch((e=>{throw ws(t),e}))),[n,()=>ws(t)]}function Ws(e,t,n){const o=arguments.length;return 2===o?I(t)&&!$(t)?qr(t)?Zr(e,null,[t]):Zr(e,t):Zr(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&qr(n)&&(n=[n]),Zr(e,t,n))}const Js=Symbol(""),Ys=()=>{{const e=Kn(Js);return e||Kt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Qs(){}function Zs(e,t,n,o){const r=n[o];if(r&&Xs(r,e))return r;const s=t();return s.memo=e.slice(),n[o]=s}function Xs(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&jr&&jr.push(e),!0}const ei="3.2.31",ti=null,ni=null,oi=null,ri="undefined"!=typeof document?document:null,si=ri&&ri.createElement("template"),ii={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?ri.createElementNS("http://www.w3.org/2000/svg",e):ri.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>ri.createTextNode(e),createComment:e=>ri.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ri.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,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==s&&(r=r.nextSibling););else{si.innerHTML=o?`${e}`:e;const r=si.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ci=/\s*!important$/;function li(e,t,n){if($(n))n.forEach((n=>li(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=ui[t];if(n)return n;let o=W(t);if("filter"!==o&&o in e)return ui[t]=o;o=Q(o);for(let n=0;ndocument.createEvent("Event").timeStamp&&(pi=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);hi=!!(e&&Number(e[1])<=53)}let fi=0;const mi=Promise.resolve(),gi=()=>{fi=0};function vi(e,t,n,o){e.addEventListener(t,n,o)}const yi=/(?:Once|Passive|Capture)$/,bi=/^on[a-z]/;function _i(e,t){const n=po(e);class o extends xi{constructor(e){super(n,e,t)}}return o.def=n,o}const Si=e=>_i(e,wc),wi="undefined"!=typeof HTMLElement?HTMLElement:class{};class xi extends wi{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,pn((()=>{this._connected||(Sc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:n}=e,o=!$(t),r=t?o?Object.keys(t):t:[];let s;if(o)for(const e in this._props){const n=t[e];(n===Number||n&&n.type===Number)&&(this._props[e]=ne(this._props[e]),(s||(s=Object.create(null)))[e]=!0)}this._numberProps=s;for(const e of Object.keys(this))"_"!==e[0]&&this._setProp(e,this[e],!0,!1);for(const e of r.map(W))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}});this._applyStyles(n),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=ne(t)),this._setProp(W(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(Y(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(Y(e),t+""):t||this.removeAttribute(Y(e))))}_update(){Sc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Zr(this._def,E({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof xi){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Ci(e="$style"){{const t=Ss();if(!t)return _;const n=t.type.__cssModules;return n&&n[e]||_}}function Ti(e){const t=Ss();if(!t)return;const n=()=>ki(t.subTree,e(t.proxy));Wn(n),No((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),Ro((()=>e.disconnect()))}))}function ki(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{ki(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Ei(e.el,t);else if(e.type===Rr)e.children.forEach((e=>ki(e,t)));else if(e.type===Br){let{el:n,anchor:o}=e;for(;n&&(Ei(n,t),n!==o);)n=n.nextSibling}}function Ei(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const Ni=(e,{slots:t})=>Ws(ro,Mi(e),t);Ni.displayName="Transition";const Oi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ai=Ni.props=E({},ro.props,Oi),$i=(e,t=[])=>{$(e)?e.forEach((e=>e(...t))):e&&e(...t)},Ri=e=>!!e&&($(e)?e.some((e=>e.length>1)):e.length>1);function Mi(e){const t={};for(const n in e)n in Oi||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:a=i,appearToClass:u=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(I(e))return[Pi(e.enter),Pi(e.leave)];{const t=Pi(e);return[t,t]}}(r),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:_,onLeaveCancelled:S,onBeforeAppear:w=v,onAppear:x=y,onAppearCancelled:C=b}=t,T=(e,t,n)=>{Li(e,t?u:c),Li(e,t?a:i),n&&n()},k=(e,t)=>{Li(e,h),Li(e,p),t&&t()},N=e=>(t,n)=>{const r=e?x:y,i=()=>T(t,e,n);$i(r,[t,i]),ji((()=>{Li(t,e?l:s),Bi(t,e?u:c),Ri(r)||Fi(t,o,m,i)}))};return E(t,{onBeforeEnter(e){$i(v,[e]),Bi(e,s),Bi(e,i)},onBeforeAppear(e){$i(w,[e]),Bi(e,l),Bi(e,a)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){const n=()=>k(e,t);Bi(e,d),Hi(),Bi(e,p),ji((()=>{Li(e,d),Bi(e,h),Ri(_)||Fi(e,o,g,n)})),$i(_,[e,n])},onEnterCancelled(e){T(e,!1),$i(b,[e])},onAppearCancelled(e){T(e,!0),$i(C,[e])},onLeaveCancelled(e){k(e),$i(S,[e])}})}function Pi(e){return ne(e)}function Bi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Li(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ji(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Ii=0;function Fi(e,t,n,o){const r=e._endId=++Ii,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:c,propCount:l}=Vi(e,t);if(!i)return o();const a=i+"end";let u=0;const d=()=>{e.removeEventListener(a,p),s()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o("transitionDelay"),s=o("transitionDuration"),i=Ui(r,s),c=o("animationDelay"),l=o("animationDuration"),a=Ui(c,l);let u=null,d=0,p=0;return"transition"===t?i>0&&(u="transition",d=i,p=s.length):"animation"===t?a>0&&(u="animation",d=a,p=l.length):(d=Math.max(i,a),u=d>0?i>a?"transition":"animation":null,p=u?"transition"===u?s.length:l.length:0),{type:u,timeout:d,propCount:p,hasTransform:"transition"===u&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function Ui(e,t){for(;e.lengthDi(t)+Di(e[n]))))}function Di(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Hi(){return document.body.offsetHeight}const zi=new WeakMap,qi=new WeakMap,Ki={name:"TransitionGroup",props:E({},Ai,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ss(),o=no();let r,s;return Ao((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(o);const{hasTransform:s}=Vi(o);return r.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(Gi),r.forEach(Wi);const o=r.filter(Ji);Hi(),o.forEach((e=>{const n=e.el,o=n.style;Bi(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n._moveCb=null,Li(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const i=Ct(e),c=Mi(i);let l=i.tag||Rr;r=s,s=t.default?uo(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"];return $(t)?e=>ee(t,e):t};function Qi(e){e.target.composing=!0}function Zi(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const Xi={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Yi(r);const s=o||r.props&&"number"===r.props.type;vi(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n?o=o.trim():s&&(o=ne(o)),e._assign(o)})),n&&vi(e,"change",(()=>{e.value=e.value.trim()})),t||(vi(e,"compositionstart",Qi),vi(e,"compositionend",Zi),vi(e,"change",Zi))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Yi(s),e.composing)return;if(document.activeElement===e){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&ne(e.value)===t)return}const i=null==t?"":t;e.value!==i&&(e.value=i)}},ec={deep:!0,created(e,t,n){e._assign=Yi(n),vi(e,"change",(()=>{const t=e._modelValue,n=sc(e),o=e.checked,r=e._assign;if($(t)){const e=v(t,n),s=-1!==e;if(o&&!s)r(t.concat(n));else if(!o&&s){const n=[...t];n.splice(e,1),r(n)}}else if(M(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(ic(e,o))}))},mounted:tc,beforeUpdate(e,t,n){e._assign=Yi(n),tc(e,t,n)}};function tc(e,{value:t,oldValue:n},o){e._modelValue=t,$(t)?e.checked=v(t,o.props.value)>-1:M(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=g(t,ic(e,!0)))}const nc={created(e,{value:t},n){e.checked=g(t,n.props.value),e._assign=Yi(n),vi(e,"change",(()=>{e._assign(sc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=Yi(o),t!==n&&(e.checked=g(t,o.props.value))}},oc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=M(t);vi(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ne(sc(e)):sc(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=Yi(o)},mounted(e,{value:t}){rc(e,t)},beforeUpdate(e,t,n){e._assign=Yi(n)},updated(e,{value:t}){rc(e,t)}};function rc(e,t){const n=e.multiple;if(!n||$(t)||M(t)){for(let o=0,r=e.options.length;o-1:t.has(s);else if(g(sc(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function sc(e){return"_value"in e?e._value:e.value}function ic(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const cc={created(e,t,n){lc(e,t,n,null,"created")},mounted(e,t,n){lc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){lc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){lc(e,t,n,o,"updated")}};function lc(e,t,n,o,r){let s;switch(e.tagName){case"SELECT":s=oc;break;case"TEXTAREA":s=Xi;break;default:switch(n.props&&n.props.type){case"checkbox":s=ec;break;case"radio":s=nc;break;default:s=Xi}}const i=s[r];i&&i(e,t,n,o)}const ac=["ctrl","shift","alt","meta"],uc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ac.some((n=>e[`${n}Key`]&&!t.includes(n)))},dc=(e,t)=>(n,...o)=>{for(let e=0;en=>{if(!("key"in n))return;const o=Y(n.key);return t.some((e=>e===o||pc[e]===o))?e(n):void 0},fc={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):mc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),mc(e,!0),o.enter(e)):o.leave(e,(()=>{mc(e,!1)})):mc(e,t))},beforeUnmount(e,{value:t}){mc(e,t)}};function mc(e,t){e.style.display=t?e._vod:"none"}const gc=E({patchProp:(e,t,n,o,r=!1,c,l,a,u)=>{"class"===t?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=L(n);if(n&&!r){for(const e in n)li(o,e,n[e]);if(t&&!L(t))for(const e in t)null==n[e]&&li(o,e,"")}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}(e,n,o):T(t)?k(t)||function(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[n,c]=function(e){let t;if(yi.test(e)){let n;for(t={};n=e.match(yi);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Y(e.slice(2)),t]}(t);if(o){const i=s[t]=function(e,t){const n=e=>{const o=e.timeStamp||pi();(hi||o>=n.attached-1)&&Yt(function(e,t){if($(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=fi||(mi.then(gi),fi=pi()),n}(o,r);vi(e,n,i,c)}else i&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,c),s[t]=void 0)}}(e,t,0,o,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&bi.test(t)&&B(n)):!("spellcheck"===t||"draggable"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName||bi.test(t)&&L(n)||!(t in e))}(e,t,o,r))?function(e,t,n,o,r,s,c){if("innerHTML"===t||"textContent"===t)return o&&c(o,r,s),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if("boolean"===o)return void(e[t]=i(n));if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,t,o,c,l,a,u):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(di,t.slice(6,t.length)):e.setAttributeNS(di,t,n);else{const o=s(t);null==n||o&&!i(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},ii);let vc,yc=!1;function bc(){return vc||(vc=gr(gc))}function _c(){return vc=yc?vc:vr(gc),yc=!0,vc}const Sc=(...e)=>{bc().render(...e)},wc=(...e)=>{_c().hydrate(...e)},xc=(...e)=>{const t=bc().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Tc(e);if(!o)return;const r=t._component;B(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},Cc=(...e)=>{const t=_c().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Tc(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function Tc(e){return L(e)?document.querySelector(e):e}const kc=w;var Ec=Object.freeze({__proto__:null,render:Sc,hydrate:wc,createApp:xc,createSSRApp:Cc,initDirectivesForSSR:kc,defineCustomElement:_i,defineSSRCustomElement:Si,VueElement:xi,useCssModule:Ci,useCssVars:Ti,Transition:Ni,TransitionGroup:Ki,vModelText:Xi,vModelCheckbox:ec,vModelRadio:nc,vModelSelect:oc,vModelDynamic:cc,withModifiers:dc,withKeys:hc,vShow:fc,reactive:mt,ref:$t,readonly:vt,unref:Lt,proxyRefs:It,isRef:At,toRef:Ht,toRefs:Ut,isProxy:xt,isReactive:_t,isReadonly:St,isShallow:wt,customRef:Vt,triggerRef:Bt,shallowRef:Rt,shallowReactive:gt,shallowReadonly:yt,markRaw:Tt,toRaw:Ct,effect:Se,stop:we,ReactiveEffect:be,effectScope:ie,EffectScope:se,getCurrentScope:le,onScopeDispose:ae,computed:js,watch:Qn,watchEffect:Gn,watchPostEffect:Wn,watchSyncEffect:Jn,onBeforeMount:Eo,onMounted:No,onBeforeUpdate:Oo,onUpdated:Ao,onBeforeUnmount:$o,onUnmounted:Ro,onActivated:bo,onDeactivated:_o,onRenderTracked:Bo,onRenderTriggered:Po,onErrorCaptured:Lo,onServerPrefetch:Mo,provide:qn,inject:Kn,nextTick:pn,defineComponent:po,defineAsyncComponent:fo,useAttrs:Hs,useSlots:Ds,defineProps:Is,defineEmits:Fs,defineExpose:Vs,withDefaults:Us,mergeDefaults:qs,createPropsRestProxy:Ks,withAsyncContext:Gs,getCurrentInstance:Ss,h:Ws,createVNode:Zr,cloneVNode:es,mergeProps:cs,isVNode:qr,Fragment:Rr,Text:Mr,Comment:Pr,Static:Br,Teleport:Tr,Suspense:Fn,KeepAlive:vo,BaseTransition:ro,withDirectives:sr,useSSRContext:Ys,ssrContextKey:Js,createRenderer:gr,createHydrationRenderer:vr,queuePostFlushCb:gn,warn:Kt,handleError:Qt,callWithErrorHandling:Jt,callWithAsyncErrorHandling:Yt,resolveComponent:kr,resolveDirective:Or,resolveDynamicComponent:Nr,registerRuntimeCompiler:Os,isRuntimeOnly:As,useTransitionState:no,resolveTransitionHooks:io,setTransitionHooks:ao,getTransitionRawChildren:uo,initCustomFormatter:Qs,get devtools(){return Sn},setDevtoolsHook:xn,withCtx:Mn,pushScopeId:An,popScopeId:$n,withScopeId:Rn,renderList:as,toHandlers:hs,renderSlot:ds,createSlots:us,withMemo:Zs,isMemoSame:Xs,openBlock:Ir,createBlock:zr,setBlockTracking:Ur,createTextVNode:ts,createCommentVNode:os,createStaticVNode:ns,createElementVNode:Qr,createElementBlock:Hr,guardReactiveProps:Xr,toDisplayString:y,camelize:W,capitalize:Q,toHandlerKey:Z,normalizeProps:p,normalizeClass:d,normalizeStyle:c,transformVNodeArgs:Gr,version:ei,ssrUtils:null,resolveFilter:null,compatUtils:null});function Nc(e){throw e}function Oc(e){}function Ac(e,t,n,o){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const $c=Symbol(""),Rc=Symbol(""),Mc=Symbol(""),Pc=Symbol(""),Bc=Symbol(""),Lc=Symbol(""),jc=Symbol(""),Ic=Symbol(""),Fc=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),Dc=Symbol(""),Hc=Symbol(""),zc=Symbol(""),qc=Symbol(""),Kc=Symbol(""),Gc=Symbol(""),Wc=Symbol(""),Jc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),Xc=Symbol(""),el=Symbol(""),tl=Symbol(""),nl=Symbol(""),ol=Symbol(""),rl=Symbol(""),sl=Symbol(""),il=Symbol(""),cl=Symbol(""),ll=Symbol(""),al=Symbol(""),ul=Symbol(""),dl=Symbol(""),pl=Symbol(""),hl=Symbol(""),fl=Symbol(""),ml=Symbol(""),gl={[$c]:"Fragment",[Rc]:"Teleport",[Mc]:"Suspense",[Pc]:"KeepAlive",[Bc]:"BaseTransition",[Lc]:"openBlock",[jc]:"createBlock",[Ic]:"createElementBlock",[Fc]:"createVNode",[Vc]:"createElementVNode",[Uc]:"createCommentVNode",[Dc]:"createTextVNode",[Hc]:"createStaticVNode",[zc]:"resolveComponent",[qc]:"resolveDynamicComponent",[Kc]:"resolveDirective",[Gc]:"resolveFilter",[Wc]:"withDirectives",[Jc]:"renderList",[Yc]:"renderSlot",[Qc]:"createSlots",[Zc]:"toDisplayString",[Xc]:"mergeProps",[el]:"normalizeClass",[tl]:"normalizeStyle",[nl]:"normalizeProps",[ol]:"guardReactiveProps",[rl]:"toHandlers",[sl]:"camelize",[il]:"capitalize",[cl]:"toHandlerKey",[ll]:"setBlockTracking",[al]:"pushScopeId",[ul]:"popScopeId",[dl]:"withCtx",[pl]:"unref",[hl]:"isRef",[fl]:"withMemo",[ml]:"isMemoSame"},vl={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function yl(e,t,n,o,r,s,i,c=!1,l=!1,a=!1,u=vl){return e&&(c?(e.helper(Lc),e.helper(Gl(e.inSSR,a))):e.helper(Kl(e.inSSR,a)),i&&e.helper(Wc)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:i,isBlock:c,disableTracking:l,isComponent:a,loc:u}}function bl(e,t=vl){return{type:17,loc:t,elements:e}}function _l(e,t=vl){return{type:15,loc:t,properties:e}}function Sl(e,t){return{type:16,loc:vl,key:L(e)?wl(e,!0):e,value:t}}function wl(e,t=!1,n=vl,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function xl(e,t=vl){return{type:8,loc:t,children:e}}function Cl(e,t=[],n=vl){return{type:14,loc:n,callee:e,arguments:t}}function Tl(e,t,n=!1,o=!1,r=vl){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function kl(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:vl}}const El=e=>4===e.type&&e.isStatic,Nl=(e,t)=>e===t||e===Y(t);function Ol(e){return Nl(e,"Teleport")?Rc:Nl(e,"Suspense")?Mc:Nl(e,"KeepAlive")?Pc:Nl(e,"BaseTransition")?Bc:void 0}const Al=/^\d|[^\$\w]/,$l=e=>!Al.test(e),Rl=/[A-Za-z_$\xA0-\uFFFF]/,Ml=/[\.\?\w$\xA0-\uFFFF]/,Pl=/\s+[.[]\s*|\s*[.[]\s+/g,Bl=e=>{e=e.trim().replace(Pl,(e=>e.trim()));let t=0,n=[],o=0,r=0,s=null;for(let i=0;i4===e.key.type&&e.key.content===n))}e||s.properties.unshift(t),o=s}else o=Cl(n.helper(Xc),[_l([t]),s]),r&&r.callee===ol&&(r=i[i.length-2]);13===e.type?r?r.arguments[0]=o:e.props=o:r?r.arguments[0]=o:e.arguments[2]=o}function Ql(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function Zl(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Kl(o,e.isComponent)),t(Lc),t(Gl(o,e.isComponent)))}const Xl=/&(gt|lt|amp|apos|quot);/g,ea={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},ta={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:x,isPreTag:x,isCustomElement:x,decodeEntities:e=>e.replace(Xl,((e,t)=>ea[t])),onError:Nc,onWarn:Oc,comments:!1};function na(e,t,n){const o=va(n),r=o?o.ns:0,s=[];for(;!wa(e,t,n);){const i=e.source;let c;if(0===t||1===t)if(!e.inVPre&&ya(i,e.options.delimiters[0]))c=pa(e,t);else if(0===t&&"<"===i[0])if(1===i.length);else if("!"===i[1])c=ya(i,"\x3c!--")?sa(e):ya(i,""===i[2]){ba(e,3);continue}if(/[a-z]/i.test(i[2])){aa(e,1,o);continue}c=ia(e)}else/[a-z]/i.test(i[1])?c=ca(e,n):"?"===i[1]&&(c=ia(e));if(c||(c=ha(e,t)),$(c))for(let e=0;e/.exec(e.source);if(o){n=e.source.slice(4,o.index);const t=e.source.slice(0,o.index);let r=1,s=0;for(;-1!==(s=t.indexOf("\x3c!--",r));)ba(e,s-r+1),r=s+1;ba(e,o.index+o[0].length-r+1)}else n=e.source.slice(4),ba(e,e.source.length);return{type:3,content:n,loc:ga(e,t)}}function ia(e){const t=ma(e),n="?"===e.source[1]?1:2;let o;const r=e.source.indexOf(">");return-1===r?(o=e.source.slice(n),ba(e,e.source.length)):(o=e.source.slice(n,r),ba(e,r+1)),{type:3,content:o,loc:ga(e,t)}}function ca(e,t){const n=e.inPre,o=e.inVPre,r=va(t),s=aa(e,0,r),i=e.inPre&&!n,c=e.inVPre&&!o;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return i&&(e.inPre=!1),c&&(e.inVPre=!1),s;t.push(s);const l=e.options.getTextMode(s,r),a=na(e,l,t);if(t.pop(),s.children=a,xa(e.source,s.tag))aa(e,1,r);else if(0===e.source.length&&"script"===s.tag.toLowerCase()){const e=a[0];e&&ya(e.loc.source,"\x3c!--")}return s.loc=ga(e,s.loc.start),i&&(e.inPre=!1),c&&(e.inVPre=!1),s}const la=o("if,else,else-if,for,slot");function aa(e,t,n){const o=ma(e),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=r[1],i=e.options.getNamespace(s,n);ba(e,r[0].length),_a(e);const c=ma(e),l=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let a=ua(e,t);0===t&&!e.inVPre&&a.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,E(e,c),e.source=l,a=ua(e,t).filter((e=>"v-pre"!==e.name)));let u=!1;if(0===e.source.length||(u=ya(e.source,"/>"),ba(e,u?2:1)),1===t)return;let d=0;return e.inVPre||("slot"===s?d=2:"template"===s?a.some((e=>7===e.type&&la(e.name)))&&(d=3):function(e,t,n){const o=n.options;if(o.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||Ol(e)||o.isBuiltInComponent&&o.isBuiltInComponent(e)||o.isNativeTag&&!o.isNativeTag(e))return!0;for(let e=0;e0&&!ya(e.source,">")&&!ya(e.source,"/>");){if(ya(e.source,"/")){ba(e,1),_a(e);continue}const r=da(e,o);6===r.type&&r.value&&"class"===r.name&&(r.value.content=r.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(r),/^[^\t\r\n\f />]/.test(e.source),_a(e)}return n}function da(e,t){const n=ma(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o),t.add(o);{const e=/["'<]/g;let t;for(;t=e.exec(o););}let r;ba(e,o.length),/^[\t\r\n\f ]*=/.test(e.source)&&(_a(e),ba(e,1),_a(e),r=function(e){const t=ma(e);let n;const o=e.source[0],r='"'===o||"'"===o;if(r){ba(e,1);const t=e.source.indexOf(o);-1===t?n=fa(e,e.source.length,4):(n=fa(e,t,4),ba(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const o=/["'<=`]/g;let r;for(;r=o.exec(t[0]););n=fa(e,t[0].length,4)}return{content:n,isQuoted:r,loc:ga(e,t)}}(e));const s=ga(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let i,c=ya(o,"."),l=t[1]||(c||ya(o,":")?"bind":ya(o,"@")?"on":"slot");if(t[2]){const r="slot"===l,s=o.lastIndexOf(t[2]),c=ga(e,Sa(e,n,s),Sa(e,n,s+t[2].length+(r&&t[3]||"").length));let a=t[2],u=!0;a.startsWith("[")?(u=!1,a=a.endsWith("]")?a.slice(1,a.length-1):a.slice(1)):r&&(a+=t[3]||""),i={type:4,content:a,isStatic:u,constType:u?3:0,loc:c}}if(r&&r.isQuoted){const e=r.loc;e.start.offset++,e.start.column++,e.end=jl(e.start,r.content),e.source=e.source.slice(1,-1)}const a=t[3]?t[3].slice(1).split("."):[];return c&&a.push("prop"),{type:7,name:l,exp:r&&{type:4,content:r.content,isStatic:!1,constType:0,loc:r.loc},arg:i,modifiers:a,loc:s}}return!e.inVPre&&ya(o,"v-"),{type:6,name:o,value:r&&{type:2,content:r.content,loc:r.loc},loc:s}}function pa(e,t){const[n,o]=e.options.delimiters,r=e.source.indexOf(o,n.length);if(-1===r)return;const s=ma(e);ba(e,n.length);const i=ma(e),c=ma(e),l=r-n.length,a=e.source.slice(0,l),u=fa(e,l,t),d=u.trim(),p=u.indexOf(d);return p>0&&Il(i,a,p),Il(c,a,l-(u.length-d.length-p)),ba(e,o.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:d,loc:ga(e,i,c)},loc:ga(e,s)}}function ha(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let o=e.source.length;for(let t=0;tr&&(o=r)}const r=ma(e);return{type:2,content:fa(e,o,t),loc:ga(e,r)}}function fa(e,t,n){const o=e.source.slice(0,t);return ba(e,t),2!==n&&3!==n&&o.includes("&")?e.options.decodeEntities(o,4===n):o}function ma(e){const{column:t,line:n,offset:o}=e;return{column:t,line:n,offset:o}}function ga(e,t,n){return{start:t,end:n=n||ma(e),source:e.originalSource.slice(t.offset,n.offset)}}function va(e){return e[e.length-1]}function ya(e,t){return e.startsWith(t)}function ba(e,t){const{source:n}=e;Il(e,n,t),e.source=n.slice(t)}function _a(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&ba(e,t[0].length)}function Sa(e,t,n){return jl(t,e.originalSource.slice(t.offset,n),n)}function wa(e,t,n){const o=e.source;switch(t){case 0:if(ya(o,"=0;--e)if(xa(o,n[e].tag))return!0;break;case 1:case 2:{const e=va(n);if(e&&xa(o,e.tag))return!0;break}case 3:if(ya(o,"]]>"))return!0}return!o}function xa(e,t){return ya(e,"]/.test(e[2+t.length]||">")}function Ca(e,t){ka(e,t,Ta(e,e.children[0]))}function Ta(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!ql(t)}function ka(e,t,n=!1){const{children:o}=e,r=o.length;let s=0;for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),s++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=Ra(e);if((!n||512===n||1===n)&&Aa(r,t)>=2){const n=$a(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}else 12===r.type&&Ea(r.content,t)>=2&&(r.codegenNode=t.hoist(r.codegenNode),s++);if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,ka(r,t),e&&t.scopes.vSlot--}else if(11===r.type)ka(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(Hl))return;const s=[];for(let i=0;i3||!1;t.push("["),n&&t.indent(),ja(e,t,n),n&&t.deindent(),t.push("]")}function ja(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let i=0;ie||"null"))}([s,i,c,l,a]),t),n(")"),d&&n(")"),u&&(n(", "),Ia(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=L(e.callee)?e.callee:o(e.callee);r&&n("/*#__PURE__*/"),n(s+"(",e),ja(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",e);const c=i.length>1||!1;n(c?"{":"{ "),c&&o();for(let e=0;e "),(l||c)&&(n("{"),o()),i?(l&&n("return "),$(i)?La(i,t):Ia(i,t)):c&&Ia(c,t),(l||c)&&(r(),n("}")),a&&n(")")}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:i,indent:c,deindent:l,newline:a}=t;if(4===n.type){const e=!$l(n.content);e&&i("("),Fa(n,t),e&&i(")")}else i("("),Ia(n,t),i(")");s&&c(),t.indentLevel++,s||i(" "),i("? "),Ia(o,t),t.indentLevel--,s&&a(),s||i(" "),i(": ");const u=19===r.type;u||t.indentLevel++,Ia(r,t),u||t.indentLevel--,s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(`${o(ll)}(-1),`),i()),n(`_cache[${e.index}] = `),Ia(e.value,t),e.isVNode&&(n(","),i(),n(`${o(ll)}(1),`),i(),n(`_cache[${e.index}]`),s()),n(")")}(e,t);break;case 21:ja(e.body,t,!0,!1)}}function Fa(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,e)}function Va(e,t){for(let n=0;nfunction(e,t,n,o){if("else"===t.name||t.exp&&t.exp.content.trim()||(t.exp=wl("true",!1,t.exp?t.exp.loc:e.loc)),"if"===t.name){const r=Ha(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const i=r[s];if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){n.removeNode();const r=Ha(e,t);i.branches.push(r);const s=o&&o(i,r,!1);Ma(r,n),s&&s(),n.currentNode=null}break}n.removeNode(i)}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),i=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(o)e.codegenNode=za(t,i,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=za(t,i+e.branches.length-1,n)}}}))));function Ha(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||Fl(e,"for")?[e]:e.children,userKey:Vl(e,"key")}}function za(e,t,n){return e.condition?kl(e.condition,qa(e,t,n),Cl(n.helper(Uc),['""',"true"])):qa(e,t,n)}function qa(e,t,n){const{helper:o}=n,r=Sl("key",wl(`${t}`,!1,vl,2)),{children:s}=e,i=s[0];if(1!==s.length||1!==i.type){if(1===s.length&&11===i.type){const e=i.codegenNode;return Yl(e,r,n),e}{let t=64;return yl(n,o($c),_l([r]),s,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(c=e).type&&c.callee===fl?c.arguments[1].returns:c;return 13===t.type&&Zl(t,n),Yl(t,r,n),e}var c}const Ka=Pa("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return;const r=Ya(t.exp);if(!r)return;const{scopes:s}=n,{source:i,value:c,key:l,index:a}=r,u={type:11,loc:t.loc,source:i,valueAlias:c,keyAlias:l,objectIndexAlias:a,parseResult:r,children:zl(e)?e.children:[e]};n.replaceNode(u),s.vFor++;const d=o&&o(u);return()=>{s.vFor--,d&&d()}}(e,t,n,(t=>{const s=Cl(o(Jc),[t.source]),i=zl(e),c=Fl(e,"memo"),l=Vl(e,"key"),a=l&&(6===l.type?wl(l.value.content,!0):l.exp),u=l?Sl("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:l?128:256;return t.codegenNode=yl(n,o($c),void 0,s,p+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let l;const{children:p}=t,h=1!==p.length||1!==p[0].type,f=ql(e)?e:i&&1===e.children.length&&ql(e.children[0])?e.children[0]:null;if(f?(l=f.codegenNode,i&&u&&Yl(l,u,n)):h?l=yl(n,o($c),u?_l([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(l=p[0].codegenNode,i&&u&&Yl(l,u,n),l.isBlock!==!d&&(l.isBlock?(r(Lc),r(Gl(n.inSSR,l.isComponent))):r(Kl(n.inSSR,l.isComponent))),l.isBlock=!d,l.isBlock?(o(Lc),o(Gl(n.inSSR,l.isComponent))):o(Kl(n.inSSR,l.isComponent))),c){const e=Tl(Za(t.parseResult,[wl("_cached")]));e.body={type:21,body:[xl(["const _memo = (",c.exp,")"]),xl(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(ml)}(_cached, _memo)) return _cached`]),xl(["const _item = ",l]),wl("_item.memo = _memo"),wl("return _item")],loc:vl},s.arguments.push(e,wl("_cache"),wl(String(n.cached++)))}else s.arguments.push(Tl(Za(t.parseResult),l,!0))}}))})),Ga=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Wa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ja=/^\(|\)$/g;function Ya(e,t){const n=e.loc,o=e.content,r=o.match(Ga);if(!r)return;const[,s,i]=r,c={source:Qa(n,i.trim(),o.indexOf(i,s.length)),value:void 0,key:void 0,index:void 0};let l=s.trim().replace(Ja,"").trim();const a=s.indexOf(l),u=l.match(Wa);if(u){l=l.replace(Wa,"").trim();const e=u[1].trim();let t;if(e&&(t=o.indexOf(e,a+l.length),c.key=Qa(n,e,t)),u[2]){const r=u[2].trim();r&&(c.index=Qa(n,r,o.indexOf(r,c.key?t+e.length:a+l.length)))}}return l&&(c.value=Qa(n,l,a)),c}function Qa(e,t,n){return wl(t,!1,Ll(e,n,t.length))}function Za({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||wl("_".repeat(t+1),!1)))}([e,t,n,...o])}const Xa=wl("undefined",!1),eu=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)&&Fl(e,"slot"))return t.scopes.vSlot++,()=>{t.scopes.vSlot--}},tu=(e,t,n)=>Tl(e,t,!1,!0,t.length?t[0].loc:n);function nu(e,t,n=tu){t.helper(dl);const{children:o,loc:r}=e,s=[],i=[];let c=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Fl(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!El(e)&&(c=!0),s.push(Sl(e||wl("default",!0),n(t,o,r)))}let a=!1,u=!1;const d=[],p=new Set;for(let e=0;eSl("default",n(e,t,r));a?d.length&&d.some((e=>su(e)))&&(u||s.push(e(void 0,d))):s.push(e(void 0,o))}const h=c?2:ru(e.children)?3:1;let f=_l(s.concat(Sl("_",wl(h+"",!1))),r);return i.length&&(f=Cl(t.helper(Qc),[f,bl(i)])),{slots:f,hasDynamicSlots:c}}function ou(e,t){return _l([Sl("name",e),Sl("fn",t)])}function ru(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let s,i,c,l,a,u,d=r?function(e,t,n=!1){let{tag:o}=e;const r=du(o),s=Vl(e,"is");if(s)if(r){const e=6===s.type?s.value&&wl(s.value.content,!0):s.exp;if(e)return Cl(t.helper(qc),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(o=s.value.content.slice(4));const i=!r&&Fl(e,"is");if(i&&i.exp)return Cl(t.helper(qc),[i.exp]);const c=Ol(o)||t.isBuiltInComponent(o);return c?(n||t.helper(c),c):(t.helper(zc),t.components.add(o),Ql(o,"component"))}(e,t):`"${n}"`,p=0,h=I(d)&&d.callee===qc||d===Rc||d===Mc||!r&&("svg"===n||"foreignObject"===n);if(o.length>0){const n=lu(e,t);s=n.props,p=n.patchFlag,a=n.dynamicPropNames;const o=n.directives;u=o&&o.length?bl(o.map((e=>function(e,t){const n=[],o=iu.get(e);o?n.push(t.helperString(o)):(t.helper(Kc),t.directives.add(e.name),n.push(Ql(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=wl("true",!1,r);n.push(_l(e.modifiers.map((e=>Sl(e,t))),r))}return bl(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0)if(d===Pc&&(h=!0,p|=1024),r&&d!==Rc&&d!==Pc){const{slots:n,hasDynamicSlots:o}=nu(e,t);i=n,o&&(p|=1024)}else if(1===e.children.length&&d!==Rc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Ea(n,t)&&(p|=1),i=r||2===o?n:e.children}else i=e.children;0!==p&&(c=String(p),a&&a.length&&(l=function(e){let t="[";for(let n=0,o=e.length;n0;let p=!1,h=0,f=!1,m=!1,g=!1,v=!1,y=!1,b=!1;const _=[],S=({key:e,value:n})=>{if(El(e)){const o=e.content,r=T(o);if(c||!r||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||z(o)||(v=!0),r&&z(o)&&(b=!0),20===n.type||(4===n.type||8===n.type)&&Ea(n,t)>0)return;"ref"===o?f=!0:"class"===o?m=!0:"style"===o?g=!0:"key"===o||_.includes(o)||_.push(o),!c||"class"!==o&&"style"!==o||_.includes(o)||_.push(o)}else y=!0};for(let i=0;i0&&l.push(Sl(wl("ref_for",!0),wl("true")))),"is"===n&&(du(r)||o&&o.content.startsWith("vue:")))continue;l.push(Sl(wl(n,!0,Ll(e,0,n.length)),wl(o?o.content:"",s,o?o.loc:e)))}else{const{name:n,arg:i,exp:h,loc:f}=c,m="bind"===n,g="on"===n;if("slot"===n)continue;if("once"===n||"memo"===n)continue;if("is"===n||m&&Ul(i,"is")&&du(r))continue;if(g&&o)continue;if((m&&Ul(i,"key")||g&&d&&Ul(i,"vue:before-update"))&&(p=!0),m&&Ul(i,"ref")&&t.scopes.vFor>0&&l.push(Sl(wl("ref_for",!0),wl("true"))),!i&&(m||g)){y=!0,h&&(l.length&&(a.push(_l(au(l),s)),l=[]),a.push(m?h:{type:14,loc:f,callee:t.helper(rl),arguments:[h]}));continue}const v=t.directiveTransforms[n];if(v){const{props:n,needRuntime:r}=v(c,e,t);!o&&n.forEach(S),l.push(...n),r&&(u.push(c),j(r)&&iu.set(c,r))}else q(n)||(u.push(c),d&&(p=!0))}}let w;if(a.length?(l.length&&a.push(_l(au(l),s)),w=a.length>1?Cl(t.helper(Xc),a,s):a[0]):l.length&&(w=_l(au(l),s)),y?h|=16:(m&&!c&&(h|=2),g&&!c&&(h|=4),_.length&&(h|=8),v&&(h|=32)),p||0!==h&&32!==h||!(f||b||u.length>0)||(h|=512),!t.inSSR&&w)switch(w.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(ql(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:s}=lu(e,t,r);n=o}return{slotName:o,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let c=2;s&&(i[2]=s,c=3),n.length&&(i[3]=Tl([],n,!1,!1,o),c=4),t.scopeId&&!t.slotted&&(c=5),i.splice(c),e.codegenNode=Cl(t.helper(Yc),i,o)}},hu=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,fu=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:i}=e;let c;if(4===i.type)if(i.isStatic){let e=i.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),c=wl(Z(W(e)),!0,i.loc)}else c=xl([`${n.helperString(cl)}(`,i,")"]);else c=i,c.children.unshift(`${n.helperString(cl)}(`),c.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let a=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=Bl(l.content),t=!(e||hu.test(l.content)),n=l.content.includes(";");(t||a&&e)&&(l=xl([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[Sl(c,l||wl("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},mu=(e,t,n)=>{const{exp:o,modifiers:r,loc:s}=e,i=e.arg;return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),r.includes("camel")&&(4===i.type?i.content=i.isStatic?W(i.content):`${n.helperString(sl)}(${i.content})`:(i.children.unshift(`${n.helperString(sl)}(`),i.children.push(")"))),n.inSSR||(r.includes("prop")&&gu(i,"."),r.includes("attr")&&gu(i,"^")),!o||4===o.type&&!o.content.trim()?{props:[Sl(i,wl("",!0,s))]}:{props:[Sl(i,o)]}},gu=(e,t)=>{4===e.type?e.content=e.isStatic?t+e.content:`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},vu=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name])))))for(let e=0;e{if(1===e.type&&Fl(e,"once",!0)){if(yu.has(e)||t.inVOnce)return;return yu.add(e),t.inVOnce=!0,t.helper(ll),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},_u=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return Su();const s=o.loc.source,i=4===o.type?o.content:s;if(!i.trim()||!Bl(i))return Su();const c=r||wl("modelValue",!0),l=r?El(r)?`onUpdate:${r.content}`:xl(['"onUpdate:" + ',r]):"onUpdate:modelValue";let a;a=xl([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const u=[Sl(c,e.exp),Sl(l,a)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>($l(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?El(r)?`${r.content}Modifiers`:xl([r,' + "Modifiers"']):"modelModifiers";u.push(Sl(n,wl(`{ ${t} }`,!1,e.loc,2)))}return Su(u)};function Su(e=[]){return{props:e}}const wu=new WeakSet,xu=(e,t)=>{if(1===e.type){const n=Fl(e,"memo");if(!n||wu.has(e))return;return wu.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Zl(o,t),e.codegenNode=Cl(t.helper(fl),[n.exp,Tl(void 0,o),"_cache",String(t.cached++)]))}}};function Cu(e,t={}){const n=t.onError||Nc,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ac(46)):o&&n(Ac(47)),t.cacheHandlers&&n(Ac(48)),t.scopeId&&!o&&n(Ac(49));const r=L(e)?function(e,t={}){const n=function(e,t){const n=E({},ta);let o;for(o in t)n[o]=void 0===t[o]?ta[o]:t[o];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),o=ma(n);return function(e,t=vl){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(na(n,0,[]),ga(n,o))}(e,t):e,[s,i]=[[bu,Da,xu,Ka,pu,cu,eu,vu],{on:fu,bind:mu,model:_u}];return function(e,t){const n=function(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,cacheHandlers:r=!1,nodeTransforms:s=[],directiveTransforms:i={},transformHoist:c=null,isBuiltInComponent:l=w,isCustomElement:a=w,expressionPlugins:u=[],scopeId:d=null,slotted:p=!0,ssr:h=!1,inSSR:f=!1,ssrCssVars:m="",bindingMetadata:g=_,inline:v=!1,isTS:y=!1,onError:b=Nc,onWarn:S=Oc,compatConfig:x}){const C=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),T={selfName:C&&Q(W(C[1])),prefixIdentifiers:n,hoistStatic:o,cacheHandlers:r,nodeTransforms:s,directiveTransforms:i,transformHoist:c,isBuiltInComponent:l,isCustomElement:a,expressionPlugins:u,scopeId:d,slotted:p,ssr:h,inSSR:f,ssrCssVars:m,bindingMetadata:g,inline:v,isTS:y,onError:b,onWarn:S,compatConfig:x,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=T.helpers.get(e)||0;return T.helpers.set(e,t+1),e},removeHelper(e){const t=T.helpers.get(e);if(t){const n=t-1;n?T.helpers.set(e,n):T.helpers.delete(e)}},helperString:e=>`_${gl[T.helper(e)]}`,replaceNode(e){T.parent.children[T.childIndex]=T.currentNode=e},removeNode(e){const t=e?T.parent.children.indexOf(e):T.currentNode?T.childIndex:-1;e&&e!==T.currentNode?T.childIndex>t&&(T.childIndex--,T.onNodeRemoved()):(T.currentNode=null,T.onNodeRemoved()),T.parent.children.splice(t,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){L(e)&&(e=wl(e)),T.hoists.push(e);const t=wl(`_hoisted_${T.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:vl}}(T.cached++,e,t)};return T}(e,t);Ma(e,n),t.hoistStatic&&Ca(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Ta(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Zl(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;e.codegenNode=yl(t,n($c),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached}(r,E({},t,{prefixIdentifiers:!1,nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:E({},i,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:c="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:s,optimizeImports:i,runtimeGlobalName:c,runtimeModuleName:l,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${gl[e]}`,push(e,t){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e))}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:i,deindent:c,newline:l,ssr:a}=n,u=e.helpers.length>0,d=!s&&"module"!==o;if(function(e,t){const{push:n,newline:o,runtimeGlobalName:r}=t,s=r;e.helpers.length>0&&(n(`const _Vue = ${s}\n`),e.hoists.length)&&n(`const { ${[Fc,Vc,Uc,Dc,Hc].filter((t=>e.helpers.includes(t))).map((e=>`${gl[e]}: _${gl[e]}`)).join(", ")} } = _Vue\n`),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o();for(let r=0;r`${gl[e]}: _${gl[e]}`)).join(", ")} } = _Vue`),r("\n"),l())),e.components.length&&(Ba(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Ba(e.directives,"directive",n),e.temps>0&&l()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n"),l()),a||r("return "),e.codegenNode?Ia(e.codegenNode,n):r("null"),d&&(c(),r("}")),c(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(r,E({},t,{prefixIdentifiers:!1}))}const Tu=Symbol(""),ku=Symbol(""),Eu=Symbol(""),Nu=Symbol(""),Ou=Symbol(""),Au=Symbol(""),$u=Symbol(""),Ru=Symbol(""),Mu=Symbol(""),Pu=Symbol("");var Bu;let Lu;Bu={[Tu]:"vModelRadio",[ku]:"vModelCheckbox",[Eu]:"vModelText",[Nu]:"vModelSelect",[Ou]:"vModelDynamic",[Au]:"withModifiers",[$u]:"withKeys",[Ru]:"vShow",[Mu]:"Transition",[Pu]:"TransitionGroup"},Object.getOwnPropertySymbols(Bu).forEach((e=>{gl[e]=Bu[e]}));const ju=o("style,iframe,script,noscript",!0),Iu={isVoidTag:m,isNativeTag:e=>h(e)||f(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Lu||(Lu=document.createElement("div")),t?(Lu.innerHTML=`
`,Lu.children[0].getAttribute("foo")):(Lu.innerHTML=e,Lu.textContent)},isBuiltInComponent:e=>Nl(e,"Transition")?Mu:Nl(e,"TransitionGroup")?Pu:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(ju(e))return 2}return 0}},Fu=(e,t)=>{const n=u(e);return wl(JSON.stringify(n),!1,t,3)},Vu=o("passive,once,capture"),Uu=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Du=o("left,right"),Hu=o("onkeyup,onkeydown,onkeypress",!0),zu=(e,t)=>El(e)&&"onclick"===e.content.toLowerCase()?wl(t,!0):4!==e.type?xl(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,qu=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Ku=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:wl("style",!0,t.loc),exp:Fu(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Gu={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[Sl(wl("innerHTML",!0,r),o||wl("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[Sl(wl("textContent",!0),o?Cl(n.helperString(Zc),[o],r):wl("",!0))]}},model:(e,t,n)=>{const o=_u(e,t,n);if(!o.props.length||1===t.tagType)return o;const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let e=Eu,i=!1;if("input"===r||s){const n=Vl(t,"type");if(n){if(7===n.type)e=Ou;else if(n.value)switch(n.value.content){case"radio":e=Tu;break;case"checkbox":e=ku;break;case"file":i=!0}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(e=Ou)}else"select"===r&&(e=Nu);i||(o.needRuntime=n.helper(e))}return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>fu(e,0,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:c,eventOptionModifiers:l}=((e,t,n,o)=>{const r=[],s=[],i=[];for(let n=0;n({props:[],needRuntime:n.helper(Ru)})},Wu=Object.create(null);function Ju(e,t){if(!L(e)){if(!e.nodeType)return w;e=e.innerHTML}const n=e,o=Wu[n];if(o)return o;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const{code:r}=function(e,t={}){return Cu(e,E({},Iu,t,{nodeTransforms:[qu,...Ku,...t.nodeTransforms||[]],directiveTransforms:E({},Gu,t.directiveTransforms||{}),transformHoist:null}))}(e,E({hoistStatic:!0,onError:void 0,onWarn:w},t)),s=new Function("Vue",r)(Ec);return s._rc=!0,Wu[n]=s}Os(Ju)},989:(e,t,n)=>{n.r(t),n.d(t,{Store:()=>j,createLogger:()=>G,createNamespacedHelpers:()=>H,createStore:()=>L,default:()=>Z,mapActions:()=>D,mapGetters:()=>U,mapMutations:()=>V,mapState:()=>F,storeKey:()=>a,useStore:()=>u});var o=n(798);function r(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==n.g?n.g:{}}const s="function"==typeof Proxy;let i,c;class l{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const o={};if(e.settings)for(const t in e.settings){const n=e.settings[t];o[t]=n.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let s=Object.assign({},o);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(s,t)}catch(e){}this.fallbacks={getSettings:()=>s,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}s=e},now:()=>{return void 0!==i||("undefined"!=typeof window&&window.performance?(i=!0,c=window.performance):void 0!==n.g&&(null===(e=n.g.perf_hooks)||void 0===e?void 0:e.performance)?(i=!0,c=n.g.perf_hooks.performance):i=!1),i?c.now():Date.now();var e}},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}var a="store";function u(e){return void 0===e&&(e=null),(0,o.inject)(null!==e?e:a)}function d(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,o=(n=function(t){return t.original===e},t.filter(n)[0]);if(o)return o.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=d(e[n],t)})),r}function p(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function h(e){return null!==e&&"object"==typeof e}function f(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function m(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;v(e,n,[],e._modules.root,!0),g(e,n,t)}function g(e,t,n){var r=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,i={};p(s,(function(t,n){i[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return i[n]()},enumerable:!0})})),e._state=(0,o.reactive)({data:t}),e.strict&&function(e){(0,o.watch)((function(){return e._state.data}),(function(){}),{deep:!0,flush:"sync"})}(e),r&&n&&e._withCommit((function(){r.data=null}))}function v(e,t,n,o,r){var s=!n.length,i=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=o),!s&&!r){var c=b(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){c[l]=o.state}))}var a=o.context=function(e,t,n){var o=""===t,r={dispatch:o?e.dispatch:function(n,o,r){var s=_(n,o,r),i=s.payload,c=s.options,l=s.type;return c&&c.root||(l=t+l),e.dispatch(l,i)},commit:o?e.commit:function(n,o,r){var s=_(n,o,r),i=s.payload,c=s.options,l=s.type;c&&c.root||(l=t+l),e.commit(l,i,c)}};return Object.defineProperties(r,{getters:{get:o?function(){return e.getters}:function(){return y(e,t)}},state:{get:function(){return b(e.state,n)}}}),r}(e,i,n);o.forEachMutation((function(t,n){!function(e,t,n,o){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,o.state,t)}))}(e,i+n,t,a)})),o.forEachAction((function(t,n){var o=t.root?n:i+n,r=t.handler||t;!function(e,t,n,o){(e._actions[t]||(e._actions[t]=[])).push((function(t){var r,s=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},t);return(r=s)&&"function"==typeof r.then||(s=Promise.resolve(s)),e._devtoolHook?s.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):s}))}(e,o,r,a)})),o.forEachGetter((function(t,n){!function(e,t,n,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(o.state,o.getters,e.state,e.getters)})}(e,i+n,t,a)})),o.forEachChild((function(o,s){v(e,t,n.concat(s),o,r)}))}function y(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,o)===t){var s=r.slice(o);Object.defineProperty(n,s,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function b(e,t){return t.reduce((function(e,t){return e[t]}),e)}function _(e,t,n){return h(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var S="vuex:mutations",w="vuex:actions",x="vuex",C=0;function T(e,t){!function(e,t){const n=e,o=r(),i=r().__VUE_DEVTOOLS_GLOBAL_HOOK__,c=s&&n.enableEarlyProxy;if(!i||!o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&c){const e=c?new l(n,i):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else i.emit("devtools-plugin:setup",e,t)}({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(n){n.addTimelineLayer({id:S,label:"Vuex Mutations",color:k}),n.addTimelineLayer({id:w,label:"Vuex Actions",color:k}),n.addInspector({id:x,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===x)if(n.filter){var o=[];A(o,t._modules.root,n.filter,""),n.rootNodes=o}else n.rootNodes=[O(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===x){var o=n.nodeId;y(t,o),n.state=function(e,t,n){t="root"===n?t:t[n];var o=Object.keys(t),r={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(o.length){var s=function(e){var t={};return Object.keys(e).forEach((function(n){var o=n.split("/");if(o.length>1){var r=t,s=o.pop();o.forEach((function(e){r[e]||(r[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),r=r[e]._custom.value})),r[s]=$((function(){return e[n]}))}else t[n]=$((function(){return e[n]}))})),t}(t);r.getters=Object.keys(s).map((function(e){return{key:e.endsWith("/")?N(e):e,editable:!1,value:$((function(){return s[e]}))}}))}return r}((r=t._modules,(i=(s=o).split("/").filter((function(e){return e}))).reduce((function(e,t,n){var o=e[t];if(!o)throw new Error('Missing module "'+t+'" for path "'+s+'".');return n===i.length-1?o:o._children}),"root"===s?r:r.root._children)),"root"===o?t.getters:t._makeLocalGettersCache,o)}var r,s,i})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===x){var o=n.nodeId,r=n.path;"root"!==o&&(r=o.split("/").filter(Boolean).concat(r)),t._withCommit((function(){n.set(t._state.data,r,n.state.value)}))}})),t.subscribe((function(e,t){var o={};e.payload&&(o.payload=e.payload),o.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(x),n.sendInspectorState(x),n.addTimelineEvent({layerId:S,event:{time:Date.now(),title:e.type,data:o}})})),t.subscribeAction({before:function(e,t){var o={};e.payload&&(o.payload=e.payload),e._id=C++,e._time=Date.now(),o.state=t,n.addTimelineEvent({layerId:w,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:o}})},after:function(e,t){var o={},r=Date.now()-e._time;o.duration={_custom:{type:"duration",display:r+"ms",tooltip:"Action duration",value:r}},e.payload&&(o.payload=e.payload),o.state=t,n.addTimelineEvent({layerId:w,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:o}})}})}))}var k=8702998,E={label:"namespaced",textColor:16777215,backgroundColor:6710886};function N(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function O(e,t){return{id:t||"root",label:N(t),tags:e.namespaced?[E]:[],children:Object.keys(e._children).map((function(n){return O(e._children[n],t+n+"/")}))}}function A(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[E]:[]}),Object.keys(t._children).forEach((function(r){A(e,t._children[r],n,o+r+"/")}))}function $(e){try{return e()}catch(e){return e}}var R=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},M={namespaced:{configurable:!0}};M.namespaced.get=function(){return!!this._rawModule.namespaced},R.prototype.addChild=function(e,t){this._children[e]=t},R.prototype.removeChild=function(e){delete this._children[e]},R.prototype.getChild=function(e){return this._children[e]},R.prototype.hasChild=function(e){return e in this._children},R.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},R.prototype.forEachChild=function(e){p(this._children,e)},R.prototype.forEachGetter=function(e){this._rawModule.getters&&p(this._rawModule.getters,e)},R.prototype.forEachAction=function(e){this._rawModule.actions&&p(this._rawModule.actions,e)},R.prototype.forEachMutation=function(e){this._rawModule.mutations&&p(this._rawModule.mutations,e)},Object.defineProperties(R.prototype,M);var P=function(e){this.register([],e,!1)};function B(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return;B(e.concat(o),t.getChild(o),n.modules[o])}}function L(e){return new j(e)}P.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},P.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},P.prototype.update=function(e){B([],this.root,e)},P.prototype.register=function(e,t,n){var o=this;void 0===n&&(n=!0);var r=new R(t,n);0===e.length?this.root=r:this.get(e.slice(0,-1)).addChild(e[e.length-1],r),t.modules&&p(t.modules,(function(t,r){o.register(e.concat(r),t,n)}))},P.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],o=t.getChild(n);o&&o.runtime&&t.removeChild(n)},P.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var j=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1);var r=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new P(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=r;var s=this,i=this.dispatch,c=this.commit;this.dispatch=function(e,t){return i.call(s,e,t)},this.commit=function(e,t,n){return c.call(s,e,t,n)},this.strict=o;var l=this._modules.root.state;v(this,l,[],this._modules.root),g(this,l),n.forEach((function(e){return e(t)}))},I={state:{configurable:!0}};j.prototype.install=function(e,t){e.provide(t||a,this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&T(e,this)},I.state.get=function(){return this._state.data},I.state.set=function(e){},j.prototype.commit=function(e,t,n){var o=this,r=_(e,t,n),s=r.type,i=r.payload,c=(r.options,{type:s,payload:i}),l=this._mutations[s];l&&(this._withCommit((function(){l.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(c,o.state)})))},j.prototype.dispatch=function(e,t){var n=this,o=_(e,t),r=o.type,s=o.payload,i={type:r,payload:s},c=this._actions[r];if(c){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,n.state)}))}catch(e){}var l=c.length>1?Promise.all(c.map((function(e){return e(s)}))):c[0](s);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,n.state)}))}catch(e){}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,n.state,e)}))}catch(e){}t(e)}))}))}},j.prototype.subscribe=function(e,t){return f(e,this._subscribers,t)},j.prototype.subscribeAction=function(e,t){return f("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},j.prototype.watch=function(e,t,n){var r=this;return(0,o.watch)((function(){return e(r.state,r.getters)}),t,Object.assign({},n))},j.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},j.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),n.preserveState),g(this,this.state)},j.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete b(t.state,e.slice(0,-1))[e[e.length-1]]})),m(this)},j.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},j.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},j.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(j.prototype,I);var F=q((function(e,t){var n={};return z(t).forEach((function(t){var o=t.key,r=t.val;n[o]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var o=K(this.$store,0,e);if(!o)return;t=o.context.state,n=o.context.getters}return"function"==typeof r?r.call(this,t,n):t[r]},n[o].vuex=!0})),n})),V=q((function(e,t){var n={};return z(t).forEach((function(t){var o=t.key,r=t.val;n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var o=this.$store.commit;if(e){var s=K(this.$store,0,e);if(!s)return;o=s.context.commit}return"function"==typeof r?r.apply(this,[o].concat(t)):o.apply(this.$store,[r].concat(t))}})),n})),U=q((function(e,t){var n={};return z(t).forEach((function(t){var o=t.key,r=t.val;r=e+r,n[o]=function(){if(!e||K(this.$store,0,e))return this.$store.getters[r]},n[o].vuex=!0})),n})),D=q((function(e,t){var n={};return z(t).forEach((function(t){var o=t.key,r=t.val;n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var o=this.$store.dispatch;if(e){var s=K(this.$store,0,e);if(!s)return;o=s.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(t)):o.apply(this.$store,[r].concat(t))}})),n})),H=function(e){return{mapState:F.bind(null,e),mapGetters:U.bind(null,e),mapMutations:V.bind(null,e),mapActions:D.bind(null,e)}};function z(e){return function(e){return Array.isArray(e)||h(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function q(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function K(e,t,n){return e._modulesNamespaceMap[n]}function G(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var o=e.transformer;void 0===o&&(o=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var s=e.actionFilter;void 0===s&&(s=function(e,t){return!0});var i=e.actionTransformer;void 0===i&&(i=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var l=e.logActions;void 0===l&&(l=!0);var a=e.logger;return void 0===a&&(a=console),function(e){var u=d(e.state);void 0!==a&&(c&&e.subscribe((function(e,s){var i=d(s);if(n(e,u,i)){var c=Y(),l=r(e),p="mutation "+e.type+c;W(a,p,t),a.log("%c prev state","color: #9E9E9E; font-weight: bold",o(u)),a.log("%c mutation","color: #03A9F4; font-weight: bold",l),a.log("%c next state","color: #4CAF50; font-weight: bold",o(i)),J(a)}u=i})),l&&e.subscribeAction((function(e,n){if(s(e,n)){var o=Y(),r=i(e),c="action "+e.type+o;W(a,c,t),a.log("%c action","color: #03A9F4; font-weight: bold",r),J(a)}})))}}function W(e,t,n){var o=n?e.groupCollapsed:e.group;try{o.call(e,t)}catch(n){e.log(t)}}function J(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function Y(){var e=new Date;return" @ "+Q(e.getHours(),2)+":"+Q(e.getMinutes(),2)+":"+Q(e.getSeconds(),2)+"."+Q(e.getMilliseconds(),3)}function Q(e,t){return"0",n=t-e.toString().length,new Array(n+1).join("0")+e;var n}const Z={version:"4.0.2",Store:j,storeKey:a,createStore:L,useStore:u,mapState:F,mapMutations:V,mapGetters:U,mapActions:D,createNamespacedHelpers:H,createLogger:G}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.instance=void 0;const t=n(798),r=n(989),s=n(810),i=n(383),c=n(831),l=n(244),a=n(197);function u(e){if("number"!=typeof e)return;const t=document.getElementById(`node${e}`);t instanceof HTMLInputElement&&t.focus()}e.instance=t.createApp({components:{"key-recorder":i.KeyRecorder,"substitution-recorder":c.SubstitutionRecorder,"truth-tree-branch":l.TruthTreeBranchComponent},data:function(){return{assignment,name:assignment?.name??"Untitled",assignmentsByCourse,courseName:assignment?.courseName??"",assignmentName:assignment?.name??"",undoStack:[],redoStack:[]}},computed:{tree(){return this.$store.state.tree},selected(){return this.$store.state.selected},selectedNode(){return this.$store.getters.selectedNode}},methods:{getNodeIconClasses:a.getNodeIconClasses,openFile(){confirm("Opening a file will overwrite the current truth tree. Are you sure that you would like to do this?")&&document.querySelector("#open-file")?.click()},loadFile(e){const t=e.target;if(!(t instanceof HTMLInputElement))return alert("An error occurred while opening the file.");const n=t.files?.[0];if(void 0===n)return alert("You must select a file to open.");const o=new FileReader;o.readAsText(n,"UTF-8"),o.onload=e=>{const t=n.name.endsWith(".willow")?n.name.substring(0,n.name.length-".willow".length):n.name,o=e.target?.result;if("string"!=typeof o)return alert("The selected file does not contain a truth tree. Perhaps you selected the wrong file, or the file has been corrupted.");try{this.undoStack=[],this.redoStack=[],this.$store.commit("select",{id:null}),this.$store.commit("setTree",s.TruthTree.deserialize(o)),this.name=t}catch(e){alert("The selected file does not contain a truth tree. Perhaps you selected the wrong file, or the file has been corrupted."),console.error(e)}}},saveFile(){const e=document.createElement("a");e.href=URL.createObjectURL(new Blob([this.tree.serialize()],{type:"text/plain"})),e.download=`${this.name}.willow`,document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(e.href)},saveFileAs(){const e=prompt("Save as...");null!==e&&(this.name=e,this.saveFile())},recordState(){this.undoStack.push({tree:this.tree.clone(),selected:this.selected}),this.redoStack=[]},undo(){const e=this.undoStack;if(0===e.length)return alert("There is nothing to undo.");this.redoStack.push({tree:this.tree.clone(),selected:this.selected}),this.$store.commit("select",{id:null});const t=e.pop();this.$store.commit("setTree",t.tree),this.$store.commit("select",{id:t.selected,delay:!0})},redo(){const e=this.redoStack;if(0===e.length)return alert("There is nothing to redo.");this.undoStack.push({tree:this.tree.clone(),selected:this.selected}),this.$store.commit("select",{id:null});const t=e.pop();this.$store.commit("setTree",t.tree),this.$store.commit("select",{id:t.selected,delay:!0})},toggleComment(){const e=this.selectedNode;if(null===e)return alert("You must select a statement before doing this.");this.recordState(),e.comment=null===e.comment?"":null},togglePremise(){const e=this.selectedNode;return null===e?alert("You must select a statement before doing this."):this.tree.options.lockedOptions?alert("You may not toggle premises while they are locked."):(this.recordState(),void e.togglePremise())},addStatementBefore(){const e=this.tree;this.recordState(),this.$store.commit("select",{id:e.addNodeBefore("number"==typeof this.selected?this.selected:e.root),delay:!0})},addStatementAfter(){const e=this.tree;this.recordState(),this.$store.commit("select",{id:e.addNodeAfter("number"==typeof this.selected?this.selected:e.rightmostNode()?.id,!1),delay:!0})},createBranch(){const e=this.tree;this.recordState();const t="number"==typeof this.selected?this.selected:e.rightmostNode()?.id;if(null===e.addNodeAfter(t,!0))return alert("You must select a node to perform this action; if there are no nodes then try creating a new tree. If this issue persists, please contact an instructor.");this.$store.commit("select",{id:t,delay:!0})},deleteStatement(){const e=this.tree,t=this.selected;if(null===t)return;if(e.nodes[t].premise&&e.options.lockedOptions)return alert("You may not delete premises while they are locked.");this.recordState();const n=e.deleteNode(t);null!==n?this.$store.commit("select",{id:n,delay:!0}):alert("You may not delete the only statement in a branch.")},deleteBranch(){const e=this.tree,t=this.selected;if(null===t)return;const n=e.getBranchHead(t);if(null===n)return;if(e.branchContainsPremise(n)&&e.options.lockedOptions)return alert("You may not delete branches that contain premises while premises are locked.");this.recordState();const o=e.deleteBranch(n);if(null===o)return alert("You may not delete the root branch.");this.$store.commit("select",{id:o,delay:!0})},moveUp(){const e=this.$store.state.tree,t=this.$store.getters.selectedNode??e.nodes[e.root],n=e.getNode(t.parent);if(null===n)this.$store.commit("select",{id:e.root});else if(n.children.length>1){const o=n.children.indexOf(t.id);o>0?this.$store.commit("select",{id:e.rightmostNode(n.children[o-1])?.id}):this.$store.commit("select",{id:n.id})}else this.$store.commit("select",{id:n.id})},moveDown(){const e=this.$store.state.tree,t=this.$store.getters.selectedNode??e.nodes[e.root];if(t.children.length>0)this.$store.commit("select",{id:t.children[0]});else{let n=t,o=e.getNode(n.parent);for(;null!==o&&o.children[o.children.length-1]===n.id;)n=o,o=e.getNode(n.parent);if(null===o)return;const r=o.children.indexOf(n.id);this.$store.commit("select",{id:o.children[r+1]})}},moveUpBranch(){this.moveUp(),this.$store.commit("select",{id:this.tree.getBranchHead(this.selected)})},moveDownBranch(){this.moveDown(),this.$store.commit("select",{id:this.tree.getBranchTail(this.selected)})},moveUpTree(){this.$store.commit("select",{id:this.tree.root})},moveDownTree(){this.$store.commit("select",{id:this.tree.rightmostNode()?.id})},toggleBranchExpansion(){this.$refs.rootBranch.toggleBranchExpansion()},collapseAllBranches(){this.$refs.rootBranch.collapseAllBranches()},expandAllBranches(){this.$refs.rootBranch.expandAllBranches()},collapseTerminatedBranches(){this.$refs.rootBranch.collapseTerminatedBranches()},checkStatement(){const e=this.selectedNode;if(null===e)return alert("You must select a statement before doing this.");alert(e.getFeedback())},checkTree(){alert(this.tree.isCorrect().message)},toggleDeveloperMode(){this.$store.commit("toggleDeveloperMode")}},mounted:function(){const e=this.assignment?.tree;if(void 0!==e)try{this.$store.commit("setTree",s.TruthTree.deserialize(JSON.stringify(assignment?.tree)))}catch(e){alert("The assigned tree could not be opened. Contact your instructor to resolve this issue."),console.error(e)}},watch:{name(e){window.document.title=`${e} | Willow`}}}).use(r.createStore({state:{shortcuts:{},substitutions:{},developerMode:!1,tree:s.TruthTree.empty(),selected:null},getters:{selectedNode:e=>e.tree.getNode(e.selected)},mutations:{toggleDeveloperMode(e){e.developerMode=!e.developerMode},select(e,t){t={focus:!0,delay:!1,...t},e.selected=t.id,t.focus&&(t.delay?setTimeout((()=>u(t.id)),0):u(t.id))},setSubstitution(e,t){e.substitutions[t.symbol]=t.text},setTree(e,t){e.tree=t}}})).mount("#content")})(),index=o})(); \ No newline at end of file +var index;(()=>{"use strict";var e={515:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var o="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function s(e,t){for(var n=t.slice(0,t.length-1),o=0;o=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var c={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":o?173:189,"=":o?61:187,";":o?59:186,"'":222,"[":219,"]":221,"\\":220},l={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},a={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},u={16:!1,18:!1,17:!1,91:!1},d={},p=1;p<20;p++)c["f".concat(p)]=111+p;var h=[],f="all",m=[],g=function(e){return c[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function v(e){f=e||"all"}function y(){return f||"all"}var b=function(e){var t=e.key,n=e.scope,o=e.method,r=e.splitKey,c=void 0===r?"+":r;i(t).forEach((function(e){var t=e.split(c),r=t.length,i=t[r-1],a="*"===i?"*":g(i);if(d[a]){n||(n=y());var u=r>1?s(l,t):[];d[a]=d[a].map((function(e){return o&&e.method!==o||e.scope!==n||!function(e,t){for(var n=e.length>=t.length?e:t,o=e.length>=t.length?t:e,r=!0,s=0;s0,u)Object.prototype.hasOwnProperty.call(u,r)&&(!u[r]&&t.mods.indexOf(+r)>-1||u[r]&&-1===t.mods.indexOf(+r))&&(o=!1);(0!==t.mods.length||u[16]||u[18]||u[17]||u[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function S(e){var t=d["*"],n=e.keyCode||e.which||e.charCode;if(w.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===h.indexOf(n)&&229!==n&&h.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=a[t];e[t]&&-1===h.indexOf(n)?h.push(n):!e[t]&&h.indexOf(n)>-1?h.splice(h.indexOf(n),1):"metaKey"===t&&e[t]&&3===h.length&&(e.ctrlKey||e.shiftKey||e.altKey||(h=h.slice(h.indexOf(n))))})),n in u){for(var o in u[n]=!0,l)l[o]===n&&(w[o]=!0);if(!t)return}for(var r in u)Object.prototype.hasOwnProperty.call(u,r)&&(u[r]=e[a[r]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===h.indexOf(17)&&h.push(17),-1===h.indexOf(18)&&h.push(18),u[17]=!0,u[18]=!0);var s=y();if(t)for(var i=0;i1&&(c=s(l,e)),(e="*"===(e=e[e.length-1])?"*":g(e))in d||(d[e]=[]),d[e].push({keyup:v,keydown:y,scope:a,mods:c,shortcut:o[f],method:n,key:o[f],splitKey:b});void 0!==p&&!function(e){return m.indexOf(e)>-1}(p)&&window&&(m.push(p),r(p,"keydown",(function(e){S(e)})),r(window,"focus",(function(){h=[]})),r(p,"keyup",(function(e){S(e),function(e){var t=e.keyCode||e.which||e.charCode,n=h.indexOf(t);if(n>=0&&h.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&h.splice(0,h.length),93!==t&&224!==t||(t=91),t in u)for(var o in u[t]=!1,l)l[o]===t&&(w[o]=!1)}(e)})))}var x={setScope:v,getScope:y,deleteScope:function(e,t){var n,o;for(var r in e||(e=y()),d)if(Object.prototype.hasOwnProperty.call(d,r))for(n=d[r],o=0;o1?t-1:0),o=1;o{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyRecorder=void 0;const o=n(515),r=n(798);o.default.filter=e=>{const t=e.target??e.srcElement;return!(t instanceof Element&&t.classList.contains("key-recorder"))},t.KeyRecorder=(0,r.defineComponent)({name:"key-recorder",props:{event:{type:String,required:!0},default:Array},emits:["on-pressed"],data(){return{pressed:new Set,keyFilter:new Set(["OS"]),keyMap:{ArrowUp:"Up",ArrowDown:"Down",ArrowLeft:"Left",ArrowRight:"Right"},recorded:JSON.parse(localStorage.getItem(`shortcuts.${this.event}`)??"null")??this.default??[],bound:!1}},computed:{shortcuts(){return this.$store.state.shortcuts},hasConflict(){const e=this.recorded;if(0===e.length)return!1;for(const[t,n]of Object.entries(this.shortcuts))if(t!==this.event&&n===this.toUniqueString(e))return!0;return!1}},methods:{onKeyDown(e){e.preventDefault(),this.pressed.add(e.key),this.recorded=Array.from(this.pressed).filter((e=>!this.keyFilter.has(e))).map((e=>e in this.keyMap?this.keyMap[e]:e))},onKeyUp(e){this.pressed.delete(e.key)},toHotkeysString:e=>e.join("+").toLowerCase(),toUniqueString:e=>Array.from(e).sort().join("+").toLowerCase()},watch:{recorded:{handler(e,t){void 0!==t&&t.length>0&&this.bound&&(o.default.unbind(this.toHotkeysString(t)),this.bound=!1),e.length>0&&!this.hasConflict&&((0,o.default)(this.toHotkeysString(e),(e=>{e.preventDefault(),this.$emit("on-pressed")})),this.bound=!0),this.shortcuts[this.event]=this.toUniqueString(e),localStorage.setItem(`shortcuts.${this.event}`,JSON.stringify(e))},immediate:!0}},template:'\n \n\t\t\n\t\t\n '})},831:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubstitutionRecorder=void 0;const o=n(798);t.SubstitutionRecorder=(0,o.defineComponent)({name:"substitution-recorder",props:{symbol:{type:String,required:!0},default:String},data(){return{text:JSON.parse(localStorage.getItem(`substitutions.${this.symbol}`)??"null")??this.default??""}},watch:{text:{handler(e){this.$store.commit("setSubstitution",{symbol:this.symbol,text:e}),localStorage.setItem(`substitutions.${this.symbol}`,JSON.stringify(e))},immediate:!0}},template:'\n \n '})},244:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TruthTreeBranchComponent=void 0;const o=n(798),r=n(197);t.TruthTreeBranchComponent=(0,o.defineComponent)({name:"truth-tree-branch",components:{"truth-tree-node":r.TruthTreeNodeComponent},props:{head:{type:Number,required:!0}},data:()=>({expanded:!0,childBranches:[]}),beforeUpdate(){this.childBranches=[]},computed:{tree(){return this.$store.state.tree},selected(){return this.$store.state.selected},selectedNode(){return this.$store.getters.selectedNode},headNode(){return this.tree.nodes[this.head]},branch(){const e=[this.head];for(;1===this.tree.nodes[e[e.length-1]].children.length;)e.push(this.tree.nodes[e[e.length-1]].children[0]);return e}},methods:{addChildBranchRef(e){e&&this.childBranches.push(e)},modifyDecomposition(e){const t=this.$store.getters.selectedNode;if(null!==t&&t.id!==e){if(t.isTerminator())t.decomposition.has(e)?t.decomposition.delete(e):t.decomposition.add(e);else if(t.isAncestorOf(e)){const n=this.$store.state.tree.nodes[e];if(t.decomposition.has(e))t.decomposition.delete(e),n.antecedent=null;else{if(t.decomposition.add(e),null!==n.antecedent){const t=this.$store.state.tree.nodes[n.antecedent];t.decomposition.delete(e),t.correctDecomposition=null}n.antecedent=t.id}n.correctDecomposition=null}else{const n=this.$store.state.tree.nodes[e];t.antecedent===e?(t.antecedent=null,n.decomposition.delete(t.id)):(null!==t.antecedent&&this.$store.state.tree.nodes[t.antecedent].decomposition.delete(t.id),t.antecedent=e,n.decomposition.add(t.id)),n.correctDecomposition=null}t.correctDecomposition=null}},toggleBranchExpansion(){if(null===this.selected)return alert("You must select a statement before doing this.");if(this.branch.includes(this.selected))this.expanded=!this.expanded;else for(const e of this.childBranches)e.toggleBranchExpansion()},collapseAllBranches(){for(const e of this.childBranches)e.collapseAllBranches();this.expanded=!1},expandAllBranches(){this.expanded=!0;for(const e of this.childBranches)e.expandAllBranches()},collapseTerminatedBranches(){if(0===this.childBranches.length){if(this.tree.nodes[this.branch[this.branch.length-1]].isTerminator())return this.expanded=!1,!0}else{let e=!0;for(const t of this.childBranches)t.collapseTerminatedBranches()||(e=!1);if(e)return this.expanded=!1,!0}return!1}},template:'\n
    \n \n
  • \n \n
  • \n
\n '})},197:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TruthTreeNodeComponent=t.getNodeIconClasses=void 0;const o=n(798),r=n(810);function s(e){const t=e.isValid();return t instanceof r.CorrectnessError&&"not_parsable"===t.errorCode?["fas","fa-exclamation-triangle","statement-error"]:!0===t&&!0===e.isDecomposed()?["fas","fa-check","statement-correct"]:["fas","fa-times","statement-incorrect"]}function i(e,t,n){if(null===n)return;const o=document.getElementById(e),r=document.getElementById(t);null!==o&&null!==r&&(r.textContent=n,o.style.width=`${r.scrollWidth}px`)}t.getNodeIconClasses=s,t.TruthTreeNodeComponent=(0,o.defineComponent)({name:"truth-tree-node",props:{id:{type:Number,required:!0}},computed:{node(){const e=this.id,t=this.$store.state.tree;return e in t.nodes?t.nodes[e]:null}},methods:{getNodeIconClasses:s,makeSubstitutions(e){if(null===this.node)return;let t=0;const n=e.target;n instanceof HTMLInputElement&&(t=n.selectionStart??0);let o=this.node.text.substring(0,t),r=this.node.text.substring(t);for(const[e,t]of Object.entries(this.$store.state.substitutions))0!==t.length&&(o=o?.replace(t,e),r=r?.replace(t,e));this.node.text=o+r,t=o?.length??0,n instanceof HTMLInputElement&&setTimeout((()=>n.setSelectionRange(t,t)),0)}},updated(){const e=this.id,t=this.node;null!==t&&(i(`node${e}`,`bbox-node${e}`,t.text),i(`comment${e}`,`bbox-comment${e}`,t.comment))},template:'\n \n id: {{ id }},\n valid: {{ node.isValid() }},\n decomposed: {{ node.isDecomposed() }},\n universe: {{\n JSON.stringify(node.universe.map(formula => formula.toString()))\n }}\n \n \n \n\t\t\n\t\t\n\t\t\n

Premise

\n '})},232:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Formula=t.REPLACEMENT_SYMBOL=void 0,t.REPLACEMENT_SYMBOL=".";class n{constructor(e,t=null,n=!1){this.isPredicate=!1,this.name=e,this.args=t,this.isPredicate=n}equals(e){return new o(this,e).checkEquivalence()}getConstants(e=[]){const t=[];if(null===this.args){if(this.isPredicate)return t;e.some((e=>e.equals(this)))||t.push(this)}else{let n=0;for(const o of this.args){let r=!1;for(const n of o.getConstants(e)){let e=!1;for(const o of t)if(o.equals(n)){e=!0;break}e||(t.push(n),r=!0)}r&&++n}if(n===this.args.length&&!this.isPredicate){let e=!1;for(const n of t)if(n.equals(this)){e=!0;break}e||t.push(this)}}return t}isMappedEquals(e,t){return new o(this,e,t).checkEquivalence()}symbolized(e,t){let o=this.name;return e.some((e=>e.name===this.name))&&(o=`${t}${this.name}`),new n(o,this.args?.map((n=>n.symbolized(e,t))),this.isPredicate)}toString(){return null===this.args?this.name:`${this.name}(${this.args.join(",")})`}}t.Formula=n;class o{constructor(e,t,n={}){this.lhs=e,this.rhs=t,this.assignment=n}checkEquivalence(){return this.checkEquivalenceHelper(this.lhs,this.rhs)}checkEquivalenceHelper(e,t){const n=this.getReplacement(e,t);return null!==n&&(!0===n||(!1!==n||e.name===t.name)&&(null===e.args||null===t.args?e.args===t.args:e.args.length===t.args.length&&e.args.every(((e,n)=>this.checkEquivalenceHelper(e,t.args[n])))))}getReplacement(e,n){let o=null,r=null;for(const s of[e,n]){const e=s.name;e.startsWith(t.REPLACEMENT_SYMBOL)?o=e.slice(t.REPLACEMENT_SYMBOL.length):r=s}if(null!==o&&null!==r)if(Object.keys(this.assignment).includes(o)){if(!this.assignment[o].equals(r))return null}else this.assignment[o]=r;return null!==o&&null!==r}}},587:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FirstOrderLogicParser=t.PropositionalLogicParser=void 0;const o=n(683),r=n(232);class s extends Error{constructor(e,t){super(`${t} at position ${e}`),this.position=e,this.message=t,Object.setPrototypeOf(this,s.prototype)}}class i extends class{constructor(){this.cache={},this.text="",this.position=0}parse(e){this.text=e;const t=this.start();return this.assertEnd(),t}assertEnd(){if(this.position=e[n+2])throw new Error("Bad character range");t.push(e.slice(n,n+3)),n+=3}else t.push(e[n]),n++;return this.cache[e]=t,t}char(e=null){if(this.position>=this.text.length)throw new s(this.position,`Expected ${e} but got end of string`);const t=this.text[this.position];if(null===e)return++this.position,t;for(const n of this.splitCharRanges(e))if(1===n.length){if(t===n)return++this.position,t}else if(n[0]<=t&&t<=n[2])return++this.position,t;throw new s(this.position,`Expected ${e} but got end of string`)}keyword(...e){if(this.consumeWhitespace(),this.position>=this.text.length)throw new s(this.position,`Expected ${e.join(",")} but got end of string`);for(const t of e){const e=this.position,n=e+t.length;if(this.text.slice(e,n)===t)return this.position+=t.length,this.consumeWhitespace(),t}throw new s(this.position,`Expected ${e.join(",")} but got ${this.text[this.position]}`)}match(...e){this.consumeWhitespace();let t,n=0,o=[];for(const r of e){const e=this.position;try{const e=this[r]();return this.consumeWhitespace(),e}catch(s){this.position=e,s.position>n?(t=s,n=s.position,o=[r]):s.position===n&&o.push(r)}}if(1===o.length)throw t;throw new s(n,`Expected ${o.join(",")} but got ${this.text[n]}`)}maybeChar(e=null){try{return this.char(e)}catch(e){return null}}maybeKeyword(...e){try{return this.keyword(...e)}catch(e){return null}}maybeMatch(...e){try{return this.match(...e)}catch(e){return null}}}{start(){return this.expressionGenerator()}expressionGenerator(){const e=this.match("orExprGenerator"),t=this.match("expression");if(null===t)return e;const n=t[0],r=t[1];if(i.OPERATORS.iff.includes(n))return new o.BiconditionalStatement(e,r);if(i.OPERATORS.implies.includes(n))return new o.ConditionalStatement(e,r);throw new s(this.position,`Expected biconditional/conditional operator but got ${this.text[this.position]}`)}expression(){const e=this.maybeKeyword(...i.OPERATORS.iff,...i.OPERATORS.implies);if(null===e)return null;const t=this.match("orExprGenerator"),n=this.match("expression");if(null===n)return[e,t];const r=n[0],c=n[1];if(i.OPERATORS.iff.includes(r))return new o.BiconditionalStatement(t,c);if(i.OPERATORS.implies.includes(r))return new o.ConditionalStatement(t,c);throw new s(this.position,`Expected biconditional/conditional operator but got ${this.text[this.position]}`)}orExprGenerator(){const e=this.match("andExpressionGenerator"),t=this.match("orExpression");return null===t?e:t instanceof o.OrStatement?new o.OrStatement(e,...t.operands):new o.OrStatement(e,t)}orExpression(){if(null===this.maybeKeyword(...i.OPERATORS.or))return null;const e=this.match("andExpressionGenerator"),t=this.match("orExpression");return null===t?e:t instanceof o.OrStatement?new o.OrStatement(e,...t.operands):new o.OrStatement(e,t)}andExpressionGenerator(){const e=this.match("unaryExpression"),t=this.match("andExpression");return null===t?e:t instanceof o.AndStatement?new o.AndStatement(e,...t.operands):new o.AndStatement(e,t)}andExpression(){if(null===this.maybeKeyword(...i.OPERATORS.and))return null;const e=this.match("unaryExpression"),t=this.match("andExpression");return null===t?e:t instanceof o.AndStatement?new o.AndStatement(e,...t.operands):new o.AndStatement(e,t)}unaryExpression(){if(this.maybeKeyword(...i.OPERATORS.not)){const e=this.match("unaryExpression");return new o.NotStatement(e)}if(this.maybeKeyword("(")){const e=this.match("expressionGenerator");return this.keyword(")"),e}return new o.AtomicStatement(this.match("predicateName"))}predicateName(){const e="0-9A-Za-z",t=[this.char("A-Z")];let n=this.maybeChar(e);for(;null!==n;)t.push(n),n=this.maybeChar(e);return t.join("")}symbolName(){const e="0-9A-Za-z",t=[this.char("a-z")];let n=this.maybeChar(e);for(;null!==n;)t.push(n),n=this.maybeChar(e);return t.join("")}}t.PropositionalLogicParser=i,i.OPERATORS={iff:["↔","<->","%","iff","equiv"],implies:["→","->","$","implies","only if"],and:["∧","&","and"],or:["∨","|","or"],not:["¬","!","~","not"]};class c extends i{unaryExpression(){if(this.maybeKeyword(...c.OPERATORS.not)){const e=this.match("unaryExpression");return new o.NotStatement(e)}if(this.maybeKeyword(...c.OPERATORS.forall)){const e=this.match("symbolNameList"),t=this.match("unaryExpression");return new o.UniversalStatement(e,t)}if(this.maybeKeyword(...c.OPERATORS.exists)){const e=this.match("symbolNameList"),t=this.match("unaryExpression");return new o.ExistenceStatement(e,t)}if(this.maybeKeyword("(")){const e=this.match("expressionGenerator");return this.keyword(")"),e}return new o.AtomicStatement(this.match("predicate"))}predicate(){const e=this.match("predicateName"),t=this.match("formulaTail");return new r.Formula(e,t,!0)}formula(){const e=this.match("symbolName"),t=this.match("formulaTail");return new r.Formula(e,t)}formulaTail(){if(null===this.maybeKeyword("("))return null;const e=this.match("formulaList");return this.keyword(")"),e}formulaList(){return[this.match("formula"),...this.match("formulaListTail")]}formulaListTail(){return null===this.maybeKeyword(",")?[]:[this.match("formula"),...this.match("formulaListTail")]}symbolNameList(){const e=this.match("symbolName"),t=this.match("symbolNameListTail");return[new r.Formula(e),...t]}symbolNameListTail(){if(null===this.maybeKeyword(","))return[];const e=this.match("symbolName"),t=this.match("symbolNameListTail");return[new r.Formula(e),...t]}}t.FirstOrderLogicParser=c,c.OPERATORS={forall:["∀","forall"],exists:["∃","exists"],iff:["↔","<->","%","iff","equiv"],implies:["→","->","$","implies","only if"],and:["∧","&","and"],or:["∨","|","or"],not:["¬","!","~","not"]}},683:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UniversalStatement=t.ExistenceStatement=t.QuantifierStatement=t.OrStatement=t.AndStatement=t.CommutativeStatement=t.BiconditionalStatement=t.ConditionalStatement=t.BinaryStatement=t.NotStatement=t.UnaryStatement=t.AtomicStatement=t.Contradiction=t.Tautology=t.Statement=void 0;const o=n(232);class r{isLiteral(){return this instanceof c||this instanceof a&&this.operand instanceof c}equals(e){return new b(this,e).checkEquivalence()}getEqualsMap(e){const t=new b(this,e);return!!t.checkEquivalence()&&t.assignment}getNewConstants(e){const t=this.getConstants([]);for(const n of e)for(let e=0;e[new a(e)])):this.operand instanceof m?[this.operand.operands.map((e=>new a(e)))]:this.operand instanceof d?[[this.operand.lhs,new a(this.operand.rhs)]]:this.operand instanceof p?[[this.operand.lhs,new a(this.operand.rhs)],[new a(this.operand.lhs),this.operand.rhs]]:this.operand instanceof v?[[new y(this.operand.variables,new a(this.operand.formula))]]:this.operand instanceof y?[[new v(this.operand.variables,new a(this.operand.formula))]]:[]}symbolized(e,t){return new a(this.operand.symbolized(e,t))}toString(){return`¬${this.operand}`}}t.NotStatement=a;class u extends r{constructor(e,t){super(),this.lhs=e,this.rhs=t}getConstants(e=[]){const t=this.lhs.getConstants(e);for(const n of this.rhs.getConstants(e))t.some((e=>e.equals(n)))||t.push(n);return t}}t.BinaryStatement=u;class d extends u{constructor(e,t){super(e,t)}decompose(){return[[new a(this.lhs)],[this.rhs]]}symbolized(e,t){return new d(this.lhs.symbolized(e,t),this.rhs.symbolized(e,t))}toString(){return`(${this.lhs} → ${this.rhs})`}}t.ConditionalStatement=d;class p extends u{constructor(e,t){super(e,t)}decompose(){return[[this.lhs,this.rhs],[new a(this.lhs),new a(this.rhs)]]}symbolized(e,t){return new p(this.lhs.symbolized(e,t),this.rhs.symbolized(e,t))}toString(){return`(${this.lhs} ↔ ${this.rhs})`}}t.BiconditionalStatement=p;class h extends r{constructor(...e){super(),this.operands=e}getConstants(e=[]){const t=[];for(const n of this.operands)for(const o of n.getConstants(e))t.some((e=>e.equals(o)))||t.push(o);return t}}t.CommutativeStatement=h;class f extends h{constructor(...e){super(...e)}decompose(){return[this.operands]}symbolized(e,t){return new f(...this.operands.map((n=>n.symbolized(e,t))))}toString(){return`(${this.operands.join(" ∧ ")})`}}t.AndStatement=f;class m extends h{constructor(...e){super(...e)}decompose(){return this.operands.map((e=>[e]))}symbolized(e,t){return new m(...this.operands.map((n=>n.symbolized(e,t))))}toString(){return`(${this.operands.join(" ∨ ")})`}}t.OrStatement=m;class g extends r{constructor(e,t){super(),this.variables=e,this.formula=t}getConstants(e=[]){const t=e;for(const e of this.variables)t.some((t=>t.equals(e)))||t.push(e);return this.formula.getConstants(t)}symbolized(){return this.formula.symbolized(this.variables,o.REPLACEMENT_SYMBOL)}}t.QuantifierStatement=g;class v extends g{constructor(e,t){super(e,t)}decompose(){return[[this.symbolized()]]}symbolized(e=[]){return 0===e.length?this.formula.symbolized(this.variables,o.REPLACEMENT_SYMBOL):new v(this.variables,this.formula.symbolized(e,o.REPLACEMENT_SYMBOL))}toString(){return`(∃${this.variables.join(",")} ${this.formula})`}}t.ExistenceStatement=v;class y extends g{constructor(e,t){super(e,t)}decompose(){return[[this.symbolized()]]}symbolized(e=[]){return 0===e.length?this.formula.symbolized(this.variables,o.REPLACEMENT_SYMBOL):new y(this.variables,this.formula.symbolized(e,o.REPLACEMENT_SYMBOL))}toString(){return`(∀${this.variables.join(",")} ${this.formula})`}}t.UniversalStatement=y;class b{constructor(e,t){this.assignment={},this.lhs=e,this.rhs=t}checkEquivalence(){return this.checkEquivalenceHelper(this.lhs,this.rhs)}checkEquivalenceHelper(e,t){return e instanceof c&&t instanceof c?e.formula.isMappedEquals(t.formula,this.assignment):e instanceof a&&t instanceof a?this.checkEquivalenceHelper(e.operand,t.operand):e instanceof d&&t instanceof d||e instanceof p&&t instanceof p?this.checkEquivalenceHelper(e.lhs,t.lhs)&&this.checkEquivalenceHelper(e.rhs,t.rhs):e instanceof f&&t instanceof f||e instanceof m&&t instanceof m?e.operands.every(((e,n)=>this.checkEquivalenceHelper(e,t.operands[n]))):(e instanceof v&&t instanceof v||e instanceof y&&t instanceof y)&&e.variables.every(((e,n)=>e.equals(t.variables[n])))&&this.checkEquivalenceHelper(e.formula,t.formula)}}},810:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TruthTree=t.TruthTreeNode=t.CorrectnessError=void 0;const o=n(587),r=n(232),s=n(683),i=n(420);class c{constructor(e,t=null){this.errorCode=e,this.extras=t}toString(){return this.errorCode}getErrorMessage(){switch(this.errorCode){case"not_parsable":return"This statement is not parsable.";case"not_logical_consequence":return"This statement is not a logical consequence of a statement that occurs before it.";case"invalid_instantiation":return"This statement does not instantiate the statement it references";case"existence_instantiation_length":return"Each variable in an existence statement must instantiate a new constant.";case"existence_instantiation_violation":return"This statement was decomposed multiple times within the same branch.";case"open_decomposed":return"An open terminator must reference no statements.";case"open_contradiction":return"This branch contains a contradiction.";case"open_invalid_ancestor":return"This branch contains an invalid statement.";case"closed_reference_length":return"A closing terminator must reference exactly two statements.";case"closed_reference_invalid":return"The referenced statements must be valid.";case"closed_not_atomic":return"The referenced statements must consist of a literal and its negation.";case"closed_not_ancestor":return"A closing terminator must only reference statements that occur before it.";case"closed_not_contradiction":return"The referenced statements must consist of a statement and its negation.";case"terminator_not_last":return"No statements can occur in a branch after a terminator.";case"reference_not_after":return"A statement must decompose into statements that occur after it.";case"invalid_decomposition":return"This statement is not decomposed correctly.";case"universal_decompose_length":return"A universal statement must be decomposed at least once.";case"universal_domain_not_decomposed":return`A universal statement must instantiate every variable in the universe of discourse (${this.extras} not instantiated).`;case"universal_variables_length":return"Universals with multiple variables cannot be evaluated yet; please split into multiple universal statements."}return"Unknown error code. Contact a developer :)"}}t.CorrectnessError=c;class l{constructor(e,t){this._text="",this._statement=null,this.premise=!1,this.comment=null,this.parent=null,this.children=[],this.antecedent=null,this.decomposition=new Set,this._correctDecomposition=null,this._universe=void 0,this.id=e,this.tree=t}clone(e){const t=new l(this.id,e);return t.text=this.text,t.premise=this.premise,t.comment=this.comment,t.parent=this.parent,t.children=[...this.children],t.antecedent=this.antecedent,t.decomposition=new Set(this.decomposition),t}static fromJSON(e,t){if(!("id"in t)||"number"!=typeof t.id)throw new Error("TruthTreeNode#fromJSON: id not found.");const n=new l(t.id,e);if(!("text"in t)||"string"!=typeof t.text)throw new Error("TruthTreeNode#fromJSON: text not found.");if(n.text=t.text,!("children"in t)||"object"!=typeof t.children||!Array.isArray(t.children))throw new Error("TruthTreeNode#fromJSON: children not found.");if(n.children=t.children,!("decomposition"in t&&"object"==typeof t.decomposition&&Array.isArray(t.decomposition)&&t.decomposition.every((e=>"number"==typeof e))))throw new Error("TruthTreeNode#fromJSON: decomposition not found.");return n.decomposition=new Set(t.decomposition),"premise"in t&&"boolean"==typeof t.premise&&(n.premise=t.premise),"comment"in t&&"string"==typeof t.comment&&(n.comment=t.comment),"parent"in t&&"number"==typeof t.parent&&(n.parent=t.parent),"antecedent"in t&&"number"==typeof t.antecedent&&(n.antecedent=t.antecedent),n}get text(){return this._text}set text(e){this._text=e;try{this.statement=(new o.FirstOrderLogicParser).parse(this.text)}catch(e){this.statement=null}}get statement(){return this._statement}set statement(e){this._statement=e,this._correctDecomposition=null,null!==this.antecedent&&(this.tree.nodes[this.antecedent]._correctDecomposition=null),!0===this.tree.initialized&&this.calculateUniverse()}get universe(){return void 0===this._universe?(console.log("ERROR: Got an undefined universe."),null):null===this._universe?null===this.parent?(console.log("WARNING: Root has no universe! If you see this error, try saving the file and opening it in a new tab."),[]):this.tree.nodes[this.parent].universe:Array.from(this._universe)}set universe(e){if(this._universe=e,this.statement instanceof s.QuantifierStatement&&(this._correctDecomposition=null),null!==this.antecedent){const e=this.tree.nodes[this.antecedent];e.statement instanceof s.QuantifierStatement&&(e._correctDecomposition=null)}}getInstantiations(){if(null===this.statement)return[];let e=[];return null!==this.parent&&(e=this.tree.nodes[this.parent].universe),console.log(this.statement.getNewConstants(e)),this.statement.getNewConstants(e)}calculateUniverse(){this.calculateUniverseHelper(null)}calculateUniverseHelper(e=null){if(null===e&&(e=null!==this.parent?this.tree.nodes[this.parent].universe:[]),void 0===this._universe&&(this._universe=e),null!==this.statement){const t=this.statement.getNewConstants(e);for(const n of t)e.push(n);t.length>0||null===this.parent?this.universe=e:this.universe=null}else null===this.parent?this.universe=[]:this.universe=null;for(const t of this.children)this.tree.nodes[t].calculateUniverseHelper(Array.from(e))}get correctDecomposition(){if(null===this.statement)return new Set;if(this.statement instanceof s.UniversalStatement)return console.error("This error can likely be ignored: Universal statements do not have correct decompositions"),new Set;if(null!==this._correctDecomposition)return this._correctDecomposition;this._correctDecomposition=new Set;const e=new Set;for(const t of this.decomposition){if(e.has(t))continue;const n=this.tree.nodes[t];if(null===n.parent)throw new Error(`The result of a decomposition has no parent. See node ${t}`);if(this.decomposition.has(n.parent)){e.add(t);continue}const o=[];let r=!0;for(const t of this.tree.nodes[n.parent].children){if(e.has(t))throw new Error("Reached an already visited node in child branch.");const n=[];let s=this.tree.nodes[t],i=1!==s.children.length;for(;(1===s.children.length||i)&&(this.decomposition.has(s.id)&&(e.add(s.id),null===s.statement?r=!1:r&&n.push(s.id)),!i);)s=this.tree.nodes[s.children[0]],i=1!==s.children.length;r&&o.push(n)}if(!r)continue;let i=!1;if(this.statement instanceof s.ExistenceStatement)for(const e of o){if(1!==e.length){i=!1;break}this.tree.nodes[e[0]].getInstantiations().length>=this.statement.variables.length&&(i=!0)}else{const e=[];for(const t of o){const n=[];for(const e of t)n.push(this.tree.nodes[e].statement);e.push(n)}i=this.statement.hasDecomposition(e)}if(i)for(const e of o)for(const t of e)this._correctDecomposition.add(t)}return this._correctDecomposition}set correctDecomposition(e){this._correctDecomposition=e}togglePremise(){this.premise=!this.premise}isTerminator(){return a.TERMINATORS.includes(this.text.trim())}isOpenTerminator(){return a.OPEN_TERMINATOR===this.text.trim()}isClosedTerminator(){return a.CLOSED_TERMINATOR===this.text.trim()}isValid(){if(this.isTerminator())return this.children.length>0?new c("terminator_not_last"):this.isOpenTerminator()?this.isOpenTerminatorValid():this.isClosedTerminatorValid();if(null===this.statement)return 0===this.text.trim().length||new c("not_parsable");if(this.premise)return!0;if(null===this.antecedent||!(this.antecedent in this.tree.nodes))return new c("not_logical_consequence");const e=this.tree.nodes[this.antecedent];return null===e.statement?new c("not_logical_consequence"):this.getAncestorBranch().has(this.antecedent)?e.statement instanceof s.QuantifierStatement?!!e.statement.symbolized().equals(this.statement)||new c("invalid_instantiation"):!!e.correctDecomposition.has(this.id)||new c("not_logical_consequence"):new c("not_logical_consequence")}isOpenTerminatorValid(){const e=new Set;if(0!==this.decomposition.size)return new c("open_decomposed");for(const t of this.getAncestorBranch()){const n=this.tree.nodes[t],o=n.statement;if(o instanceof s.AtomicStatement||o instanceof s.NotStatement&&o.operand instanceof s.AtomicStatement){if(e.has(o.toString()))return new c("open_contradiction");o instanceof s.AtomicStatement?e.add(new s.NotStatement(o).toString()):e.add(o.operand.toString())}if(!0!==n.isValid())return new c("open_invalid_ancestor");if(!0!==n.isDecomposed())return new c("open_invalid_ancestor")}return!0}isClosedTerminatorValid(){if(2!==this.decomposition.size)return new c("closed_reference_length");const e=[...this.decomposition].map((e=>this.tree.nodes[e].statement));for(let t=0;t<2;++t){const n=e[t],o=e[1-t];if(null===n||null===o)return new c("closed_reference_invalid");if(n instanceof s.NotStatement&&n.operand.equals(o)){if(this.tree.options.requireAtomicContradiction&&!(o instanceof s.AtomicStatement))return new c("closed_not_atomic");const e=this.getAncestorBranch();for(const t of this.decomposition)if(!e.has(t))return new c("closed_not_ancestor");return!0}}return new c("closed_not_contradiction")}isDecomposed(){if(null===this.statement)return 0===this.text.trim().length||!!this.isTerminator()||new c("not_parsable");if(0===this.statement.decompose().length)return!0;for(const e of this.decomposition)if(!this.isAncestorOf(e))return new c("reference_not_after");let e=null;for(const t of this.tree.leaves){const n=this.tree.nodes[t];let o=null;if(!(this.statement instanceof s.ExistenceStatement)&&n.isClosedTerminator())continue;if(!this.isAncestorOf(t)&&this.id!==t)continue;const l=n.getAncestorBranch(!0);if(this.statement instanceof s.UniversalStatement){const t=new Set;for(const e of this.decomposition)l.has(e)&&t.add(e);if(0===t.size){e=new c("universal_decompose_length");continue}const s=this.statement.symbolized(),a=(0,i.createNDimensionalMapping)(this.statement.variables.length,n.universe);for(const e of t){const t=this.tree.nodes[e];if(null===t.statement){o=new c("invalid_decomposition");break}const l=s.getEqualsMap(t.statement);if(!1===l){o=new c("invalid_decomposition");break}if(Object.keys(l).length!==this.statement.variables.length){let e;e=n.universe.length>0?n.universe.values().next().value:new r.Formula("x");for(const t of this.statement.variables)Object.keys(l).includes(t.toString())||(l[t.toString()]=e)}(0,i.deleteMapping)(a,l,this.statement.variables)}if(null!==o){e=o;continue}if(0!==Object.keys(a).length){const e=(0,i.getFirstUnassigned)(a);o=new c("universal_domain_not_decomposed",e)}}else{let e=!1;for(const t of this.correctDecomposition)if(l.has(t)){e=!0;break}e?this.decomposition.size>this.correctDecomposition.size&&(o=new c("existence_instantiation_violation")):o=this.statement instanceof s.ExistenceStatement?new c("existence_instantiation_length"):new c("invalid_decomposition")}if(null===o){if(n.isOpenTerminator()&&!this.tree.options.requireAllBranchesTerminated)return!0}else e=o}return null===e||e}getFeedback(){const e=this.isValid();if(!0!==e)return e.getErrorMessage();const t=this.isDecomposed();return!0!==t?t.getErrorMessage():this.premise?"This statement is a premise.":this.isTerminator()?this.isOpenTerminator()?"This open branch represents a valid assignment.":"This branch is successfully closed.":"This statement is a logical consequence and is decomposed correctly."}getAncestorBranch(e=!1){const t=new Set;e&&t.add(this.id);let n=this.tree.nodes[this.id];for(;null!==n.parent;)t.add(n.parent),n=this.tree.nodes[n.parent];return t}isAncestorOf(e){let t=this.tree.nodes[e];for(;null!==t.parent;)if(t=this.tree.nodes[t.parent],t.id===this.id)return!0;return!1}}t.TruthTreeNode=l;class a{constructor(){this.nodes={},this.leaves=new Set,this.initialized=!0,this.options={requireAtomicContradiction:!0,requireAllBranchesTerminated:!0,lockedOptions:!1}}get root(){if(void 0===this._root)throw new Error("Undefined root");return this._root}set root(e){this._root=e}clone(){const e=new a;e.initialized=!1;for(const t of Object.values(this.nodes))e.nodes[t.id]=t.clone(e);return e.root=this.root,e.leaves=new Set(this.leaves),e.options={requireAtomicContradiction:this.options.requireAtomicContradiction,requireAllBranchesTerminated:this.options.requireAllBranchesTerminated,lockedOptions:this.options.lockedOptions},e.calculateUniverse(),e.initialized=!0,e}static empty(){const e=new a;return e.nodes[0]=new l(0,e),e.nodes[0].calculateUniverse(),e.root=0,e.leaves.add(0),e}static deserialize(e){const t=new a;t.initialized=!1;const n=JSON.parse(e);if("object"!=typeof n)throw new Error("TruthTree#deserialize: This file is not in JSON.");const o=n.nodes;if(!("object"==typeof o&&Array.isArray(o)&&o.length>0))throw new Error("TruthTree#deserialize: The tree is empty.");try{for(const e of o){const n=l.fromJSON(t,e);if(0===n.children.length&&t.leaves.add(n.id),null===n.parent){if(void 0!==t._root)throw new Error("TruthTree#deserialize: Tree has multiple roots.");t._root=n.id}t.nodes[n.id]=n}if(void 0===t._root)throw new Error("TruthTree#deserialize: Tree has no root.")}catch(e){throw new Error(`TruthTree#deserialize: The tree does not match the format: ${e.message}`)}return t.options=n.options,t.calculateUniverse(),t.initialized=!0,t}serialize(){const e=[];for(const t of Object.values(this.nodes)){const n={id:t.id,text:t.text,children:t.children,decomposition:[...t.decomposition]};t.premise&&(n.premise=t.premise),null!==t.comment&&(n.comment=t.comment),null!==t.parent&&(n.parent=t.parent),null!==t.antecedent&&(n.antecedent=t.antecedent),e.push(n)}const t={};return t.nodes=e,t.options=this.options,JSON.stringify(t)}getNode(e){return null!=e&&e in this.nodes?this.nodes[e]:null}getBranchHead(e){let t=this.getNode(e);if(null===t)return null;for(;null!==t.parent&&1===this.nodes[t.parent].children.length;)t=this.nodes[t.parent];return t.id}getBranchTail(e){let t=this.getNode(e);if(null===t)return null;for(;1===t.children.length;)t=this.nodes[t.children[0]];return t.id}branchContainsPremise(e){if("number"!=typeof e)return!1;let t=[e];for(;t.length>0;){const e=this.getNode(t.shift());if(null!==e){if(e.premise)return!0;t=t.concat(e.children)}}return!1}leftmostNode(e){let t="number"==typeof e?this.getNode(e):this.getNode(this.root);if(null===t)return null;for(;t.children.length>0;)t=this.nodes[t.children[0]];return t}rightmostNode(e){let t="number"==typeof e?this.getNode(e):this.getNode(this.root);if(null===t)return null;for(;t.children.length>0;)t=this.nodes[t.children[t.children.length-1]];return t}getNextId(){return Math.max(...Object.keys(this.nodes).map((e=>parseInt(e))))+1}addNodeBefore(e){const t=this.getNode(e);if(null===t)return console.log("TruthTree#addNodeBefore: Attempted to add node before null node."),null;const n=this.getNextId();this.nodes[n]=new l(n,this);const o=this.nodes[n];o.parent=t.parent,o.children=[e];const r=this.getNode(t.parent);if(null!==r){const t=r.children.indexOf(e);-1===t?console.log("TruthTree#addNodeBefore: Parent does not contain child."):r.children[t]=n}return t.parent=n,this.root===e&&(this.root=n),o.calculateUniverse(),n}addNodeAfter(e,t){const n=this.getNode(e);if(null===n)return console.log("TruthTree#addNodeAfter: Attempted to add node after null node."),null;const o=this.getNextId();this.nodes[o]=new l(o,this);const r=this.nodes[o];if(r.parent=e,this.leaves.has(e)&&(this.leaves.delete(e),this.leaves.add(o)),t)return n.children.push(o),this.leaves.add(o),r.calculateUniverse(),o;this.nodes[o].children=n.children;for(const e of n.children){const t=this.getNode(e);null!==t?t.parent=o:console.log("TruthTree#addNodeAfter: Referenced child does not exist.")}return n.children=[o],r.calculateUniverse(),o}deleteNode(e){if(!(e in this.nodes))return console.error("TruthTree#deleteNode: Could not delete a node that does not exist"),null;const t=this.nodes[e];if(null===t.parent){if(1!==t.children.length)return null;this.nodes[t.children[0]].parent=null,this._root=t.children[0]}else{const n=this.nodes[t.parent];if(1!==n.children.length){if(t.children.length>1)return null;const o=n.children.indexOf(e);1===t.children.length?(n.children[o]=t.children[0],this.nodes[t.children[0]].parent=t.parent):(n.children.splice(o,1),this.leaves.delete(e))}else{n.children=t.children;for(const e of t.children)this.nodes[e].parent=t.parent;0===t.children.length&&(this.leaves.delete(e),this.leaves.add(n.id))}}if(null!==t.antecedent){const e=this.nodes[t.antecedent];e.decomposition.delete(t.id),e.correctDecomposition=null}if(!t.isTerminator())for(const e of t.decomposition)this.nodes[e].antecedent=null;for(const t of this.leaves){const n=this.nodes[t];n.isClosedTerminator()&&n.decomposition.delete(e)}if(delete this.nodes[e],null!==t.statement)for(const e of t.children)this.nodes[e].calculateUniverse();return 1===t.children.length?t.children[0]:t.parent}deleteBranch(e){const t=this.nodes[e];if(null===t.parent)return null;for(let e=t.children.length-1;e>=0;--e)this.deleteBranch(t.children[e]);return this.deleteNode(e),t.parent}isCorrect(){if(!this.checkRepresentation())return{value:!1,message:"This tree is malformed -- please save this tree and contact a developer."};this.calculateUniverse();let e=!1;for(const t of Object.values(this.nodes)){if(!0!==t.isValid())return{value:!1,message:"This tree is incorrect."};if(this.leaves.has(t.id))if(this.options.requireAllBranchesTerminated){if(!t.isTerminator())return{value:!1,message:"Every branch must be terminated."}}else t.isOpenTerminator()&&(e=!0)}if(e)return{value:!0,message:"This tree is correct!"};for(const e of this.leaves)if(!this.nodes[e].isTerminator())return this.options.requireAllBranchesTerminated?{value:!1,message:"Every branch must be closed or there must be at least one open branch."}:{value:!1,message:"Every branch must be terminated."};return{value:!0,message:"This tree is correct!"}}extends(e){return!!Object.keys(this.options).every((t=>this.options[t]===e.options[t]))&&this.extendsHelper(this.root,e.root,e)}extendsHelper(e,t,n){let o=this.getNode(e),r=n.getNode(t),s=null===r,i=1!==o.children.length;for(;1===o.children.length||i;){if(null!==o.statement)if(!s&&null!==r&&o.statement.equals(r.statement)){if(o.premise!==r.premise)return!1;1===r.children.length?r=n.getNode(r.children[0]):s=!0}else if(o.premise)return!1;i?i=!1:(o=this.getNode(o.children[0]),i=1!==o.children.length)}if(!s)return!1;if(null===r||0===r.children.length){for(const e of o.children)if(!this.extendsHelper(e,null,n))return!1}else{if(r.children.length!==o.children.length)return!1;for(let e=0;e{function n(e,t,o,r){const s=t[o[r].toString()].toString();s in e&&(r{function o(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.r(t),n.d(t,{BaseTransition:()=>ro,Comment:()=>Pr,EffectScope:()=>se,Fragment:()=>Rr,KeepAlive:()=>vo,ReactiveEffect:()=>be,Static:()=>Br,Suspense:()=>Fn,Teleport:()=>Tr,Text:()=>Mr,Transition:()=>Ni,TransitionGroup:()=>Ki,VueElement:()=>xi,callWithAsyncErrorHandling:()=>Yt,callWithErrorHandling:()=>Jt,camelize:()=>W,capitalize:()=>Q,cloneVNode:()=>es,compatUtils:()=>oi,compile:()=>Ju,computed:()=>js,createApp:()=>xc,createBlock:()=>zr,createCommentVNode:()=>os,createElementBlock:()=>Hr,createElementVNode:()=>Qr,createHydrationRenderer:()=>vr,createPropsRestProxy:()=>Ks,createRenderer:()=>gr,createSSRApp:()=>Cc,createSlots:()=>us,createStaticVNode:()=>ns,createTextVNode:()=>ts,createVNode:()=>Zr,customRef:()=>Vt,defineAsyncComponent:()=>fo,defineComponent:()=>po,defineCustomElement:()=>_i,defineEmits:()=>Fs,defineExpose:()=>Vs,defineProps:()=>Is,defineSSRCustomElement:()=>Si,devtools:()=>Sn,effect:()=>Se,effectScope:()=>ie,getCurrentInstance:()=>Ss,getCurrentScope:()=>le,getTransitionRawChildren:()=>uo,guardReactiveProps:()=>Xr,h:()=>Ws,handleError:()=>Qt,hydrate:()=>wc,initCustomFormatter:()=>Qs,initDirectivesForSSR:()=>kc,inject:()=>Kn,isMemoSame:()=>Xs,isProxy:()=>xt,isReactive:()=>_t,isReadonly:()=>St,isRef:()=>At,isRuntimeOnly:()=>As,isShallow:()=>wt,isVNode:()=>qr,markRaw:()=>Tt,mergeDefaults:()=>qs,mergeProps:()=>cs,nextTick:()=>pn,normalizeClass:()=>d,normalizeProps:()=>p,normalizeStyle:()=>c,onActivated:()=>bo,onBeforeMount:()=>Eo,onBeforeUnmount:()=>$o,onBeforeUpdate:()=>Oo,onDeactivated:()=>_o,onErrorCaptured:()=>Lo,onMounted:()=>No,onRenderTracked:()=>Bo,onRenderTriggered:()=>Po,onScopeDispose:()=>ae,onServerPrefetch:()=>Mo,onUnmounted:()=>Ro,onUpdated:()=>Ao,openBlock:()=>Ir,popScopeId:()=>$n,provide:()=>qn,proxyRefs:()=>It,pushScopeId:()=>An,queuePostFlushCb:()=>gn,reactive:()=>mt,readonly:()=>vt,ref:()=>$t,registerRuntimeCompiler:()=>Os,render:()=>Sc,renderList:()=>as,renderSlot:()=>ds,resolveComponent:()=>kr,resolveDirective:()=>Or,resolveDynamicComponent:()=>Nr,resolveFilter:()=>ni,resolveTransitionHooks:()=>io,setBlockTracking:()=>Ur,setDevtoolsHook:()=>xn,setTransitionHooks:()=>ao,shallowReactive:()=>gt,shallowReadonly:()=>yt,shallowRef:()=>Rt,ssrContextKey:()=>Js,ssrUtils:()=>ti,stop:()=>we,toDisplayString:()=>y,toHandlerKey:()=>Z,toHandlers:()=>hs,toRaw:()=>Ct,toRef:()=>Ht,toRefs:()=>Ut,transformVNodeArgs:()=>Gr,triggerRef:()=>Bt,unref:()=>Lt,useAttrs:()=>Hs,useCssModule:()=>Ci,useCssVars:()=>Ti,useSSRContext:()=>Ys,useSlots:()=>Ds,useTransitionState:()=>no,vModelCheckbox:()=>ec,vModelDynamic:()=>cc,vModelRadio:()=>nc,vModelSelect:()=>oc,vModelText:()=>Xi,vShow:()=>fc,version:()=>ei,warn:()=>Kt,watch:()=>Qn,watchEffect:()=>Gn,watchPostEffect:()=>Wn,watchSyncEffect:()=>Jn,withAsyncContext:()=>Gs,withCtx:()=>Mn,withDefaults:()=>Us,withDirectives:()=>sr,withKeys:()=>hc,withMemo:()=>Zs,withModifiers:()=>dc,withScopeId:()=>Rn});const r=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),s=o("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function i(e){return!!e||""===e}function c(e){if($(e)){const t={};for(let n=0;n{if(e){const n=e.split(a);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function d(e){let t="";if(L(e))t=e;else if($(e))for(let n=0;ng(e,t)))}const y=e=>L(e)?e:null==e?"":$(e)||I(e)&&(e.toString===V||!B(e.toString))?JSON.stringify(e,b,2):String(e),b=(e,t)=>t&&t.__v_isRef?b(e,t.value):R(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:M(t)?{[`Set(${t.size})`]:[...t.values()]}:!I(t)||$(t)||D(t)?t:String(t),_={},S=[],w=()=>{},x=()=>!1,C=/^on[^a-z]/,T=e=>C.test(e),k=e=>e.startsWith("onUpdate:"),E=Object.assign,N=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},O=Object.prototype.hasOwnProperty,A=(e,t)=>O.call(e,t),$=Array.isArray,R=e=>"[object Map]"===U(e),M=e=>"[object Set]"===U(e),P=e=>e instanceof Date,B=e=>"function"==typeof e,L=e=>"string"==typeof e,j=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,F=e=>I(e)&&B(e.then)&&B(e.catch),V=Object.prototype.toString,U=e=>V.call(e),D=e=>"[object Object]"===U(e),H=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,z=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),q=o("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),K=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},G=/-(\w)/g,W=K((e=>e.replace(G,((e,t)=>t?t.toUpperCase():"")))),J=/\B([A-Z])/g,Y=K((e=>e.replace(J,"-$1").toLowerCase())),Q=K((e=>e.charAt(0).toUpperCase()+e.slice(1))),Z=K((e=>e?`on${Q(e)}`:"")),X=(e,t)=>!Object.is(e,t),ee=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ne=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let oe,re;class se{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&re&&(this.parent=re,this.index=(re.scopes||(re.scopes=[])).push(this)-1)}run(e){if(this.active)try{return re=this,e()}finally{re=this.parent}}on(){re=this}off(){re=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},de=e=>(e.w&ge)>0,pe=e=>(e.n&ge)>0,he=new WeakMap;let fe,me=0,ge=1;const ve=Symbol(""),ye=Symbol("");class be{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,ce(this,n)}run(){if(!this.active)return this.fn();let e=fe,t=xe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=fe,fe=this,xe=!0,ge=1<<++me,me<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===t||t>=o)&&c.push(e)}));else switch(void 0!==n&&c.push(i.get(n)),t){case"add":$(e)?H(n)&&c.push(i.get("length")):(c.push(i.get(ve)),R(e)&&c.push(i.get(ye)));break;case"delete":$(e)||(c.push(i.get(ve)),R(e)&&c.push(i.get(ye)));break;case"set":R(e)&&c.push(i.get(ve))}if(1===c.length)c[0]&&Ae(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);Ae(ue(e))}}function Ae(e,t){for(const t of $(e)?e:[...e])(t!==fe||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const $e=o("__proto__,__v_isRef,__isVue"),Re=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(j)),Me=Ie(),Pe=Ie(!1,!0),Be=Ie(!0),Le=Ie(!0,!0),je=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ct(this);for(let e=0,t=this.length;e{e[t]=function(...e){Te();const n=Ct(this)[t].apply(this,e);return ke(),n}})),e}();function Ie(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?ft:ht:t?pt:dt).get(n))return n;const s=$(n);if(!e&&s&&A(je,o))return Reflect.get(je,o,r);const i=Reflect.get(n,o,r);return(j(o)?Re.has(o):$e(o))?i:(e||Ee(n,0,o),t?i:At(i)?s&&H(o)?i:i.value:I(i)?e?vt(i):mt(i):i)}}function Fe(e=!1){return function(t,n,o,r){let s=t[n];if(St(s)&&At(s)&&!At(o))return!1;if(!e&&!St(o)&&(wt(o)||(o=Ct(o),s=Ct(s)),!$(t)&&At(s)&&!At(o)))return s.value=o,!0;const i=$(t)&&H(n)?Number(n)!0,deleteProperty:(e,t)=>!0},De=E({},Ve,{get:Pe,set:Fe(!0)}),He=E({},Ue,{get:Le}),ze=e=>e,qe=e=>Reflect.getPrototypeOf(e);function Ke(e,t,n=!1,o=!1){const r=Ct(e=e.__v_raw),s=Ct(t);t!==s&&!n&&Ee(r,0,t),!n&&Ee(r,0,s);const{has:i}=qe(r),c=o?ze:n?Et:kt;return i.call(r,t)?c(e.get(t)):i.call(r,s)?c(e.get(s)):void(e!==r&&e.get(t))}function Ge(e,t=!1){const n=this.__v_raw,o=Ct(n),r=Ct(e);return e!==r&&!t&&Ee(o,0,e),!t&&Ee(o,0,r),e===r?n.has(e):n.has(e)||n.has(r)}function We(e,t=!1){return e=e.__v_raw,!t&&Ee(Ct(e),0,ve),Reflect.get(e,"size",e)}function Je(e){e=Ct(e);const t=Ct(this);return qe(t).has.call(t,e)||(t.add(e),Oe(t,"add",e,e)),this}function Ye(e,t){t=Ct(t);const n=Ct(this),{has:o,get:r}=qe(n);let s=o.call(n,e);s||(e=Ct(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?X(t,i)&&Oe(n,"set",e,t):Oe(n,"add",e,t),this}function Qe(e){const t=Ct(this),{has:n,get:o}=qe(t);let r=n.call(t,e);r||(e=Ct(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&Oe(t,"delete",e,void 0),s}function Ze(){const e=Ct(this),t=0!==e.size,n=e.clear();return t&&Oe(e,"clear",void 0,void 0),n}function Xe(e,t){return function(n,o){const r=this,s=r.__v_raw,i=Ct(s),c=t?ze:e?Et:kt;return!e&&Ee(i,0,ve),s.forEach(((e,t)=>n.call(o,c(e),c(t),r)))}}function et(e,t,n){return function(...o){const r=this.__v_raw,s=Ct(r),i=R(s),c="entries"===e||e===Symbol.iterator&&i,l="keys"===e&&i,a=r[e](...o),u=n?ze:t?Et:kt;return!t&&Ee(s,0,l?ye:ve),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:c?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function tt(e){return function(...t){return"delete"!==e&&this}}const[nt,ot,rt,st]=function(){const e={get(e){return Ke(this,e)},get size(){return We(this)},has:Ge,add:Je,set:Ye,delete:Qe,clear:Ze,forEach:Xe(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return We(this)},has:Ge,add:Je,set:Ye,delete:Qe,clear:Ze,forEach:Xe(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return We(this,!0)},has(e){return Ge.call(this,e,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Xe(!0,!1)},o={get(e){return Ke(this,e,!0,!0)},get size(){return We(this,!0)},has(e){return Ge.call(this,e,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=et(r,!1,!1),n[r]=et(r,!0,!1),t[r]=et(r,!1,!0),o[r]=et(r,!0,!0)})),[e,n,t,o]}();function it(e,t){const n=t?e?st:rt:e?ot:nt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(A(n,o)&&o in t?n:t,o,r)}const ct={get:it(!1,!1)},lt={get:it(!1,!0)},at={get:it(!0,!1)},ut={get:it(!0,!0)},dt=new WeakMap,pt=new WeakMap,ht=new WeakMap,ft=new WeakMap;function mt(e){return St(e)?e:bt(e,!1,Ve,ct,dt)}function gt(e){return bt(e,!1,De,lt,pt)}function vt(e){return bt(e,!0,Ue,at,ht)}function yt(e){return bt(e,!0,He,ut,ft)}function bt(e,t,n,o,r){if(!I(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=function(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>U(e).slice(8,-1))(e))}(e);if(0===i)return e;const c=new Proxy(e,2===i?o:n);return r.set(e,c),c}function _t(e){return St(e)?_t(e.__v_raw):!(!e||!e.__v_isReactive)}function St(e){return!(!e||!e.__v_isReadonly)}function wt(e){return!(!e||!e.__v_isShallow)}function xt(e){return _t(e)||St(e)}function Ct(e){const t=e&&e.__v_raw;return t?Ct(t):e}function Tt(e){return te(e,"__v_skip",!0),e}const kt=e=>I(e)?mt(e):e,Et=e=>I(e)?vt(e):e;function Nt(e){xe&&fe&&Ne((e=Ct(e)).dep||(e.dep=ue()))}function Ot(e,t){(e=Ct(e)).dep&&Ae(e.dep)}function At(e){return!(!e||!0!==e.__v_isRef)}function $t(e){return Mt(e,!1)}function Rt(e){return Mt(e,!0)}function Mt(e,t){return At(e)?e:new Pt(e,t)}class Pt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ct(e),this._value=t?e:kt(e)}get value(){return Nt(this),this._value}set value(e){e=this.__v_isShallow?e:Ct(e),X(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:kt(e),Ot(this))}}function Bt(e){Ot(e)}function Lt(e){return At(e)?e.value:e}const jt={get:(e,t,n)=>Lt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return At(r)&&!At(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function It(e){return _t(e)?e:new Proxy(e,jt)}class Ft{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Nt(this)),(()=>Ot(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Vt(e){return new Ft(e)}function Ut(e){const t=$(e)?new Array(e.length):{};for(const n in e)t[n]=Ht(e,n);return t}class Dt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Ht(e,t,n){const o=e[t];return At(o)?o:new Dt(e,t,n)}class zt{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new be(e,(()=>{this._dirty||(this._dirty=!0,Ot(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Ct(this);return Nt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}const qt=[];function Kt(e,...t){Te();const n=qt.length?qt[qt.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=qt[qt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)Jt(o,n,11,[e+t.join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${Ls(n,e.type)}>`)).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=` at <${Ls(e.component,e.type,!!e.component&&null==e.component.parent)}`,r=">"+n;return e.props?[o,...Gt(e.props),r]:[o+r]}(e))})),t}(r)),console.warn(...n)}ke()}function Gt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Wt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Wt(e,t,n){return L(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:At(t)?(t=Wt(e,Ct(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):B(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ct(t),n?t:[`${e}=`,t])}function Jt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Qt(e,t,n)}return r}function Yt(e,t,n,o){if(B(e)){const r=Jt(e,t,n,o);return r&&F(r)&&r.catch((e=>{Qt(e,t,n)})),r}const r=[];for(let s=0;s>>1;bn(en[o])bn(e)-bn(t))),ln=0;lnnull==e.id?1/0:e.id;function _n(e){Xt=!1,Zt=!0,vn(e),en.sort(((e,t)=>bn(e)-bn(t)));try{for(tn=0;tnSn.emit(e,...t))),wn=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null===(o=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===o?void 0:o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{xn(e,t)})),setTimeout((()=>{Sn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,wn=[])}),3e3)):wn=[]}function Cn(e,t,...n){const o=e.vnode.props||_;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:t,trim:s}=o[e]||_;s?r=n.map((e=>e.trim())):t&&(r=n.map(ne))}let c,l=o[c=Z(t)]||o[c=Z(W(t))];!l&&s&&(l=o[c=Z(Y(t))]),l&&Yt(l,e,6,r);const a=o[c+"Once"];if(a){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,Yt(a,e,6,r)}}function Tn(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let i={},c=!1;if(!B(e)){const o=e=>{const n=Tn(e,t,!0);n&&(c=!0,E(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||c?($(s)?s.forEach((e=>i[e]=null)):E(i,s),o.set(e,i),i):(o.set(e,null),null)}function kn(e,t){return!(!e||!T(t))&&(t=t.slice(2).replace(/Once$/,""),A(e,t[0].toLowerCase()+t.slice(1))||A(e,Y(t))||A(e,t))}let En=null,Nn=null;function On(e){const t=En;return En=e,Nn=e&&e.type.__scopeId||null,t}function An(e){Nn=e}function $n(){Nn=null}const Rn=e=>Mn;function Mn(e,t=En,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Ur(-1);const r=On(t),s=e(...n);return On(r),o._d&&Ur(1),s};return o._n=!0,o._c=!0,o._d=!0,o}function Pn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:c,attrs:l,emit:a,render:u,renderCache:d,data:p,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const y=On(e);try{if(4&n.shapeFlag){const e=r||o;g=rs(u.call(e,e,d,s,h,p,f)),v=l}else g=rs(t(s,t.length>1?{attrs:l,slots:c,emit:a}:null)),v=t.props?l:Bn(l)}catch(t){Lr.length=0,Qt(t,e,1),g=Zr(Pr)}let b=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(i&&e.some(k)&&(v=Ln(v,i)),b=es(b,v))}return n.dirs&&(b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,On(y),g}const Bn=e=>{let t;for(const n in e)("class"===n||"style"===n||T(n))&&((t||(t={}))[n]=e[n]);return t},Ln=(e,t)=>{const n={};for(const o in e)k(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function jn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r0?(Vn(e,"onPending"),Vn(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,s,i),zn(p,e.ssFallback)):p.resolve()}(t,n,o,r,s,i,c,l,a):function(e,t,n,o,r,s,i,c,{p:l,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,Kr(p,m)?(l(m,p,d.hiddenContainer,null,r,d,s,i,c),d.deps<=0?d.resolve():g&&(l(f,h,n,o,r,null,s,i,c),zn(d,h))):(d.pendingId++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,p,d.hiddenContainer,null,r,d,s,i,c),d.deps<=0?d.resolve():(l(f,h,n,o,r,null,s,i,c),zn(d,h))):f&&Kr(p,f)?(l(f,p,n,o,r,d,s,i,c),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,r,d,s,i,c),d.deps<=0&&d.resolve()));else if(f&&Kr(p,f))l(f,p,n,o,r,d,s,i,c),zn(d,p);else if(Vn(t,"onPending"),d.pendingBranch=p,d.pendingId++,l(null,p,d.hiddenContainer,null,r,d,s,i,c),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,i,c,l,a)},hydrate:function(e,t,n,o,r,s,i,c,l){const a=t.suspense=Un(t,o,n,e.parentNode,document.createElement("div"),null,r,s,i,c,!0),u=l(e,a.pendingBranch=t.ssContent,n,a,s,i);return 0===a.deps&&a.resolve(),u},create:Un,normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=Dn(o?n.default:n),e.ssFallback=o?Dn(n.fallback):Zr(Pr)}};function Vn(e,t){const n=e.props&&e.props[t];B(n)&&n()}function Un(e,t,n,o,r,s,i,c,l,a,u=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:m,remove:g}}=a,v=ne(e.props&&e.props.timeout),y={vnode:e,parent:t,parentComponent:n,isSVG:i,container:o,hiddenContainer:r,anchor:s,deps:0,pendingId:0,timeout:"number"==typeof v?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:o,pendingId:r,effects:s,parentComponent:i,container:c}=y;if(y.isHydrating)y.isHydrating=!1;else if(!e){const e=n&&o.transition&&"out-in"===o.transition.mode;e&&(n.transition.afterLeave=()=>{r===y.pendingId&&p(o,c,t,0)});let{anchor:t}=y;n&&(t=f(n),h(n,i,y,!0)),e||p(o,c,t,0)}zn(y,o),y.pendingBranch=null,y.isInFallback=!1;let l=y.parent,a=!1;for(;l;){if(l.pendingBranch){l.effects.push(...s),a=!0;break}l=l.parent}a||gn(s),y.effects=[],Vn(t,"onResolve")},fallback(e){if(!y.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,isSVG:s}=y;Vn(t,"onFallback");const i=f(n),a=()=>{y.isInFallback&&(d(null,e,r,i,o,null,s,c,l),zn(y,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),y.isInFallback=!0,h(n,o,null,!0),u||a()},move(e,t,n){y.activeBranch&&p(y.activeBranch,e,t,n),y.container=e},next:()=>y.activeBranch&&f(y.activeBranch),registerDep(e,t){const n=!!y.pendingBranch;n&&y.deps++;const o=e.vnode.el;e.asyncDep.catch((t=>{Qt(t,e,0)})).then((r=>{if(e.isUnmounted||y.isUnmounted||y.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Ns(e,r,!1),o&&(s.el=o);const c=!o&&e.subTree.el;t(e,s,m(o||e.subTree.el),o?null:f(e.subTree),y,i,l),c&&g(c),In(e,s.el),n&&0==--y.deps&&y.resolve()}))},unmount(e,t){y.isUnmounted=!0,y.activeBranch&&h(y.activeBranch,n,e,t),y.pendingBranch&&h(y.pendingBranch,n,e,t)}};return y}function Dn(e){let t;if(B(e)){const n=Vr&&e._c;n&&(e._d=!1,Ir()),e=e(),n&&(e._d=!0,t=jr,Fr())}if($(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function Hn(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):gn(e)}function zn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,r=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=r,In(o,r))}function qn(e,t){if(_s){let n=_s.provides;const o=_s.parent&&_s.parent.provides;o===n&&(n=_s.provides=Object.create(o)),n[e]=t}}function Kn(e,t,n=!1){const o=_s||En;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&B(t)?t.call(o.proxy):t}}function Gn(e,t){return Zn(e,null,t)}function Wn(e,t){return Zn(e,null,{flush:"post"})}function Jn(e,t){return Zn(e,null,{flush:"sync"})}const Yn={};function Qn(e,t,n){return Zn(e,t,n)}function Zn(e,t,{immediate:n,deep:o,flush:r}=_){const s=_s;let i,c,l=!1,a=!1;if(At(e)?(i=()=>e.value,l=wt(e)):_t(e)?(i=()=>e,o=!0):$(e)?(a=!0,l=e.some(_t),i=()=>e.map((e=>At(e)?e.value:_t(e)?to(e):B(e)?Jt(e,s,2):void 0))):i=B(e)?t?()=>Jt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Yt(e,s,3,[u])}:w,t&&o){const e=i;i=()=>to(e())}let u=e=>{c=f.onStop=()=>{Jt(e,s,4)}},d=a?[]:Yn;const p=()=>{if(f.active)if(t){const e=f.run();(o||l||(a?e.some(((e,t)=>X(e,d[t]))):X(e,d)))&&(c&&c(),Yt(t,s,3,[e,d===Yn?void 0:d,u]),d=e)}else f.run()};let h;p.allowRecurse=!!t,h="sync"===r?p:"post"===r?()=>mr(p,s&&s.suspense):()=>{!s||s.isMounted?function(e){mn(e,on,nn,rn)}(p):p()};const f=new be(i,h);return t?n?p():d=f.run():"post"===r?mr(f.run.bind(f),s&&s.suspense):f.run(),()=>{f.stop(),s&&s.scope&&N(s.scope.effects,f)}}function Xn(e,t,n){const o=this.proxy,r=L(e)?e.includes(".")?eo(o,e):()=>o[e]:e.bind(o,o);let s;B(t)?s=t:(s=t.handler,n=t);const i=_s;ws(this);const c=Zn(r,s.bind(o),n);return i?ws(i):xs(),c}function eo(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{to(e,t)}));else if(D(e))for(const n in e)to(e[n],t);return e}function no(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return No((()=>{e.isMounted=!0})),$o((()=>{e.isUnmounting=!0})),e}const oo=[Function,Array],ro={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:oo,onEnter:oo,onAfterEnter:oo,onEnterCancelled:oo,onBeforeLeave:oo,onLeave:oo,onAfterLeave:oo,onLeaveCancelled:oo,onBeforeAppear:oo,onAppear:oo,onAfterAppear:oo,onAppearCancelled:oo},setup(e,{slots:t}){const n=Ss(),o=no();let r;return()=>{const s=t.default&&uo(t.default(),!0);if(!s||!s.length)return;const i=Ct(e),{mode:c}=i,l=s[0];if(o.isLeaving)return co(l);const a=lo(l);if(!a)return co(l);const u=io(a,i,o,n);ao(a,u);const d=n.subTree,p=d&&lo(d);let h=!1;const{getTransitionKey:f}=a.type;if(f){const e=f();void 0===r?r=e:e!==r&&(r=e,h=!0)}if(p&&p.type!==Pr&&(!Kr(a,p)||h)){const e=io(p,i,o,n);if(ao(p,e),"out-in"===c)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},co(l);"in-out"===c&&a.type!==Pr&&(e.delayLeave=(e,t,n)=>{so(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return l}}};function so(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function io(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:a,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),_=so(n,e),S=(e,t)=>{e&&Yt(e,o,9,t)},w={mode:s,persisted:i,beforeEnter(t){let o=c;if(!n.isMounted){if(!r)return;o=m||c}t._leaveCb&&t._leaveCb(!0);const s=_[b];s&&Kr(e,s)&&s.el._leaveCb&&s.el._leaveCb(),S(o,[t])},enter(e){let t=l,o=a,s=u;if(!n.isMounted){if(!r)return;t=g||l,o=v||a,s=y||u}let i=!1;const c=e._enterCb=t=>{i||(i=!0,S(t?s:o,[e]),w.delayedLeave&&w.delayedLeave(),e._enterCb=void 0)};t?(t(e,c),t.length<=1&&c()):c()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();S(d,[t]);let s=!1;const i=t._leaveCb=n=>{s||(s=!0,o(),S(n?f:h,[t]),t._leaveCb=void 0,_[r]===e&&delete _[r])};_[r]=e,p?(p(t,i),p.length<=1&&i()):i()},clone:e=>io(e,t,n,o)};return w}function co(e){if(go(e))return(e=es(e)).children=null,e}function lo(e){return go(e)?e.children?e.children[0]:void 0:e}function ao(e,t){6&e.shapeFlag&&e.component?ao(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function uo(e,t=!1){let n=[],o=0;for(let r=0;r1)for(let e=0;e!!e.type.__asyncLoader;function fo(e){B(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:i=!0,onError:c}=e;let l,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise(((t,n)=>{c(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return po({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=_s;if(l)return()=>mo(l,e);const t=t=>{a=null,Qt(t,e,13,!o)};if(i&&e.suspense)return d().then((t=>()=>mo(t,e))).catch((e=>(t(e),()=>o?Zr(o,{error:e}):null)));const c=$t(!1),u=$t(),p=$t(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),d().then((()=>{c.value=!0,e.parent&&go(e.parent.vnode)&&hn(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>c.value&&l?mo(l,e):u.value&&o?Zr(o,{error:u.value}):n&&!p.value?Zr(n):void 0}})}function mo(e,{vnode:{ref:t,props:n,children:o}}){const r=Zr(e,n,o);return r.ref=t,r}const go=e=>e.type.__isKeepAlive,vo={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ss(),o=n.ctx;if(!o.renderer)return t.default;const r=new Map,s=new Set;let i=null;const c=n.suspense,{renderer:{p:l,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function h(e){xo(e),u(e,n,c,!0)}function f(e){r.forEach(((t,n)=>{const o=Bs(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);i&&t.type===i.type?i&&xo(i):h(t),r.delete(e),s.delete(e)}o.activate=(e,t,n,o,r)=>{const s=e.component;a(e,t,n,0,c),l(s.vnode,e,t,n,s,c,o,e.slotScopeIds,r),mr((()=>{s.isDeactivated=!1,s.a&&ee(s.a);const t=e.props&&e.props.onVnodeMounted;t&&ls(t,s.parent,e)}),c)},o.deactivate=e=>{const t=e.component;a(e,p,null,1,c),mr((()=>{t.da&&ee(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ls(n,t.parent,e),t.isDeactivated=!0}),c)},Qn((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>yo(e,t))),t&&f((e=>!yo(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&r.set(g,Co(n.subTree))};return No(v),Ao(v),$o((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=Co(t);if(e.type!==r.type)h(e);else{xo(r);const e=r.component.da;e&&mr(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!qr(o)||!(4&o.shapeFlag||128&o.shapeFlag))return i=null,o;let c=Co(o);const l=c.type,a=Bs(ho(c)?c.type.__asyncResolved||{}:l),{include:u,exclude:d,max:p}=e;if(u&&(!a||!yo(u,a))||d&&a&&yo(d,a))return i=c,o;const h=null==c.key?l:c.key,f=r.get(h);return c.el&&(c=es(c),128&o.shapeFlag&&(o.ssContent=c)),g=h,f?(c.el=f.el,c.component=f.component,c.transition&&ao(c,c.transition),c.shapeFlag|=512,s.delete(h),s.add(h)):(s.add(h),p&&s.size>parseInt(p,10)&&m(s.values().next().value)),c.shapeFlag|=256,i=c,o}}};function yo(e,t){return $(e)?e.some((e=>yo(e,t))):L(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function bo(e,t){So(e,"a",t)}function _o(e,t){So(e,"da",t)}function So(e,t,n=_s){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(To(t,o,n),n){let e=n.parent;for(;e&&e.parent;)go(e.parent.vnode)&&wo(o,t,n,e),e=e.parent}}function wo(e,t,n,o){const r=To(t,e,o,!0);Ro((()=>{N(o[t],r)}),n)}function xo(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Co(e){return 128&e.shapeFlag?e.ssContent:e}function To(e,t,n=_s,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Te(),ws(n);const r=Yt(t,n,e,o);return xs(),ke(),r});return o?r.unshift(s):r.push(s),s}}const ko=e=>(t,n=_s)=>(!Es||"sp"===e)&&To(e,t,n),Eo=ko("bm"),No=ko("m"),Oo=ko("bu"),Ao=ko("u"),$o=ko("bum"),Ro=ko("um"),Mo=ko("sp"),Po=ko("rtg"),Bo=ko("rtc");function Lo(e,t=_s){To("ec",e,t)}let jo=!0;function Io(e,t,n){Yt($(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Fo(e,t,n,o){const r=o.includes(".")?eo(n,o):()=>n[o];if(L(e)){const n=t[e];B(n)&&Qn(r,n)}else if(B(e))Qn(r,e.bind(n));else if(I(e))if($(e))e.forEach((e=>Fo(e,t,n,o)));else{const o=B(e.handler)?e.handler.bind(n):t[e.handler];B(o)&&Qn(r,o,e)}}function Vo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let l;return c?l=c:r.length||n||o?(l={},r.length&&r.forEach((e=>Uo(l,e,i,!0))),Uo(l,t,i)):l=t,s.set(t,l),l}function Uo(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Uo(e,s,n,!0),r&&r.forEach((t=>Uo(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=Do[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const Do={data:Ho,props:Ko,emits:Ko,methods:Ko,computed:Ko,beforeCreate:qo,created:qo,beforeMount:qo,mounted:qo,beforeUpdate:qo,updated:qo,beforeDestroy:qo,beforeUnmount:qo,destroyed:qo,unmounted:qo,activated:qo,deactivated:qo,errorCaptured:qo,serverPrefetch:qo,components:Ko,directives:Ko,watch:function(e,t){if(!e)return t;if(!t)return e;const n=E(Object.create(null),e);for(const o in t)n[o]=qo(e[o],t[o]);return n},provide:Ho,inject:function(e,t){return Ko(zo(e),zo(t))}};function Ho(e,t){return t?e?function(){return E(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function zo(e){if($(e)){const t={};for(let n=0;n{l=!0;const[n,o]=Jo(e,t,!0);E(i,n),o&&c.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!l)return o.set(e,S),S;if($(s))for(let e=0;e-1,o[1]=n<0||e-1||A(o,"default"))&&c.push(t)}}}const a=[i,c];return o.set(e,a),a}function Yo(e){return"$"!==e[0]}function Qo(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Zo(e,t){return Qo(e)===Qo(t)}function Xo(e,t){return $(t)?t.findIndex((t=>Zo(t,e))):B(t)&&Zo(t,e)?0:-1}const er=e=>"_"===e[0]||"$stable"===e,tr=e=>$(e)?e.map(rs):[rs(e)],nr=(e,t,n)=>{const o=Mn(((...e)=>tr(t(...e))),n);return o._c=!1,o},or=(e,t,n)=>{const o=e._ctx;for(const n in e){if(er(n))continue;const r=e[n];if(B(r))t[n]=nr(0,r,o);else if(null!=r){const e=tr(r);t[n]=()=>e}}},rr=(e,t)=>{const n=tr(t);e.slots.default=()=>n};function sr(e,t){if(null===En)return e;const n=En.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e(s.has(e)||(e&&B(e.install)?(s.add(e),e.install(c,...t)):B(e)&&(s.add(e),e(c,...t))),c),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),c),component:(e,t)=>t?(r.components[e]=t,c):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,c):r.directives[e],mount(s,l,a){if(!i){const u=Zr(n,o);return u.appContext=r,l&&t?t(u,s):e(u,s,a),i=!0,c._container=s,s.__vue_app__=c,Ms(u.component)||u.component.proxy}},unmount(){i&&(e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,c)};return c}}function ur(e,t,n,o,r=!1){if($(e))return void e.forEach(((e,s)=>ur(e,t&&($(t)?t[s]:t),n,o,r)));if(ho(o)&&!r)return;const s=4&o.shapeFlag?Ms(o.component)||o.component.proxy:o.el,i=r?null:s,{i:c,r:l}=e,a=t&&t.r,u=c.refs===_?c.refs={}:c.refs,d=c.setupState;if(null!=a&&a!==l&&(L(a)?(u[a]=null,A(d,a)&&(d[a]=null)):At(a)&&(a.value=null)),B(l))Jt(l,c,12,[i,u]);else{const t=L(l),o=At(l);if(t||o){const o=()=>{if(e.f){const n=t?u[l]:l.value;r?$(n)&&N(n,s):$(n)?n.includes(s)||n.push(s):t?u[l]=[s]:(l.value=[s],e.k&&(u[e.k]=l.value))}else t?(u[l]=i,A(d,l)&&(d[l]=i)):At(l)&&(l.value=i,e.k&&(u[e.k]=i))};i?(o.id=-1,mr(o,n)):o()}}}let dr=!1;const pr=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,hr=e=>8===e.nodeType;function fr(e){const{mt:t,p:n,o:{patchProp:o,nextSibling:r,parentNode:s,remove:i,insert:c,createComment:l}}=e,a=(n,o,i,c,l,m=!1)=>{const g=hr(n)&&"["===n.data,v=()=>h(n,o,i,c,l,g),{type:y,ref:b,shapeFlag:_}=o,S=n.nodeType;o.el=n;let w=null;switch(y){case Mr:3!==S?w=v():(n.data!==o.children&&(dr=!0,n.data=o.children),w=r(n));break;case Pr:w=8!==S||g?v():r(n);break;case Br:if(1===S){w=n;const e=!o.children.length;for(let t=0;t{c=c||!!t.dynamicChildren;const{type:l,props:a,patchFlag:u,shapeFlag:p,dirs:h}=t,f="input"===l&&h||"option"===l;if(f||-1!==u){if(h&&ir(t,null,n,"created"),a)if(f||!c||48&u)for(const t in a)(f&&t.endsWith("value")||T(t)&&!z(t))&&o(e,t,null,a[t],!1,void 0,n);else a.onClick&&o(e,"onClick",null,a.onClick,!1,void 0,n);let l;if((l=a&&a.onVnodeBeforeMount)&&ls(l,n,t),h&&ir(t,null,n,"beforeMount"),((l=a&&a.onVnodeMounted)||h)&&Hn((()=>{l&&ls(l,n,t),h&&ir(t,null,n,"mounted")}),r),16&p&&(!a||!a.innerHTML&&!a.textContent)){let o=d(e.firstChild,t,e,n,r,s,c);for(;o;){dr=!0;const e=o;o=o.nextSibling,i(e)}}else 8&p&&e.textContent!==t.children&&(dr=!0,e.textContent=t.children)}return e.nextSibling},d=(e,t,o,r,s,i,c)=>{c=c||!!t.dynamicChildren;const l=t.children,u=l.length;for(let t=0;t{const{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);const p=s(e),h=d(r(e),t,p,n,o,i,a);return h&&hr(h)&&"]"===h.data?r(t.anchor=h):(dr=!0,c(t.anchor=l("]"),p,h),h)},h=(e,t,o,c,l,a)=>{if(dr=!0,t.el=null,a){const t=f(e);for(;;){const n=r(e);if(!n||n===t)break;i(n)}}const u=r(e),d=s(e);return i(e),n(null,t,d,u,o,c,pr(d),l),u},f=e=>{let t=0;for(;e;)if((e=r(e))&&hr(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return r(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),void yn();dr=!1,a(t.firstChild,e,null,null,null),yn(),dr&&console.error("Hydration completed but contains mismatches.")},a]}const mr=Hn;function gr(e){return yr(e)}function vr(e){return yr(e,fr)}function yr(e,t){(oe||(oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{})).__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:c,createComment:l,setText:a,setElementText:u,parentNode:d,nextSibling:p,setScopeId:h=w,cloneNode:f,insertStaticContent:m}=e,g=(e,t,n,o=null,r=null,s=null,i=!1,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Kr(e,t)&&(o=Q(e),H(e,r,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Mr:v(e,t,n,o);break;case Pr:y(e,t,n,o);break;case Br:null==e&&b(t,n,o,i);break;case Rr:R(e,t,n,o,r,s,i,c,l);break;default:1&d?x(e,t,n,o,r,s,i,c,l):6&d?M(e,t,n,o,r,s,i,c,l):(64&d||128&d)&&a.process(e,t,n,o,r,s,i,c,l,X)}null!=u&&r&&ur(u,e&&e.ref,s,t||e,!t)},v=(e,t,n,r)=>{if(null==e)o(t.el=c(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},y=(e,t,n,r)=>{null==e?o(t.el=l(t.children||""),n,r):t.el=e.el},b=(e,t,n,o)=>{[e.el,e.anchor]=m(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,s,i,c,l)=>{i=i||"svg"===t.type,null==e?C(t,n,o,r,s,i,c,l):N(e,t,r,s,i,c,l)},C=(e,t,n,r,c,l,a,d)=>{let p,h;const{type:m,props:g,shapeFlag:v,transition:y,patchFlag:b,dirs:_}=e;if(e.el&&void 0!==f&&-1===b)p=e.el=f(e.el);else{if(p=e.el=i(e.type,l,g&&g.is,g),8&v?u(p,e.children):16&v&&k(e.children,p,null,r,c,l&&"foreignObject"!==m,a,d),_&&ir(e,null,r,"created"),g){for(const t in g)"value"===t||z(t)||s(p,t,null,g[t],l,e.children,r,c,J);"value"in g&&s(p,"value",null,g.value),(h=g.onVnodeBeforeMount)&&ls(h,r,e)}T(p,e,e.scopeId,a,r)}_&&ir(e,null,r,"beforeMount");const S=(!c||c&&!c.pendingBranch)&&y&&!y.persisted;S&&y.beforeEnter(p),o(p,t,n),((h=g&&g.onVnodeMounted)||S||_)&&mr((()=>{h&&ls(h,r,e),S&&y.enter(p),_&&ir(e,null,r,"mounted")}),c)},T=(e,t,n,o,r)=>{if(n&&h(e,n),o)for(let t=0;t{for(let a=l;a{const l=t.el=e.el;let{patchFlag:a,dynamicChildren:d,dirs:p}=t;a|=16&e.patchFlag;const h=e.props||_,f=t.props||_;let m;n&&br(n,!1),(m=f.onVnodeBeforeUpdate)&&ls(m,n,t,e),p&&ir(t,e,n,"beforeUpdate"),n&&br(n,!0);const g=r&&"foreignObject"!==t.type;if(d?O(e.dynamicChildren,d,l,n,o,g,i):c||I(e,t,l,null,n,o,g,i,!1),a>0){if(16&a)$(l,t,h,f,n,o,r);else if(2&a&&h.class!==f.class&&s(l,"class",null,f.class,r),4&a&&s(l,"style",h.style,f.style,r),8&a){const i=t.dynamicProps;for(let t=0;t{m&&ls(m,n,t,e),p&&ir(t,e,n,"updated")}),o)},O=(e,t,n,o,r,s,i)=>{for(let c=0;c{if(n!==o){for(const l in o){if(z(l))continue;const a=o[l],u=n[l];a!==u&&"value"!==l&&s(e,l,u,a,c,t.children,r,i,J)}if(n!==_)for(const l in n)z(l)||l in o||s(e,l,n[l],null,c,t.children,r,i,J);"value"in o&&s(e,"value",n.value,o.value)}},R=(e,t,n,r,s,i,l,a,u)=>{const d=t.el=e?e.el:c(""),p=t.anchor=e?e.anchor:c("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(o(d,n,r),o(p,n,r),k(t.children,n,p,s,i,l,a,u)):h>0&&64&h&&f&&e.dynamicChildren?(O(e.dynamicChildren,f,n,s,i,l,a),(null!=t.key||s&&t===s.subTree)&&_r(e,t,!0)):I(e,t,n,p,s,i,l,a,u)},M=(e,t,n,o,r,s,i,c,l)=>{t.slotScopeIds=c,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,l):P(t,n,o,r,s,i,l):B(e,t,l)},P=(e,t,n,o,r,s,i)=>{const c=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||ys,s={uid:bs++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new se(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jo(o,r),emitsOptions:Tn(o,r),emit:null,emitted:null,propsDefaults:_,inheritAttrs:o.inheritAttrs,ctx:_,data:_,props:_,attrs:_,slots:_,refs:_,setupState:_,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Cn.bind(null,s),e.ce&&e.ce(s),s}(e,o,r);if(go(e)&&(c.ctx.renderer=X),function(e,t=!1){Es=t;const{props:n,children:o}=e.vnode,r=Cs(e);(function(e,t,n,o=!1){const r={},s={};te(s,Wr,1),e.propsDefaults=Object.create(null),Go(e,t,r,s);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);e.props=n?o?r:gt(r):e.type.props?r:s,e.attrs=s})(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Ct(t),te(t,"_",n)):or(t,e.slots={})}else e.slots={},t&&rr(e,t);te(e.slots,Wr,1)})(e,o),r&&function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Tt(new Proxy(e.ctx,gs));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Rs(e):null;ws(e),Te();const r=Jt(o,e,0,[e.props,n]);if(ke(),xs(),F(r)){if(r.then(xs,xs),t)return r.then((n=>{Ns(e,n,t)})).catch((t=>{Qt(t,e,0)}));e.asyncDep=r}else Ns(e,r,t)}else $s(e,t)}(e,t),Es=!1}(c),c.asyncDep){if(r&&r.registerDep(c,L),!e.el){const e=c.subTree=Zr(Pr);y(null,e,t,n)}}else L(c,e,t,n,r,s,i)},B=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:c,patchFlag:l}=t,a=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!c||c&&c.$stable)||o!==i&&(o?!i||jn(o,i,a):!!i);if(1024&l)return!0;if(16&l)return o?jn(o,i,a):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;ttn&&en.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},L=(e,t,n,o,r,s,i)=>{const c=e.effect=new be((()=>{if(e.isMounted){let t,{next:n,bu:o,u:c,parent:l,vnode:a}=e,u=n;br(e,!1),n?(n.el=a.el,j(e,n,i)):n=a,o&&ee(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ls(t,l,n,a),br(e,!0);const p=Pn(e),h=e.subTree;e.subTree=p,g(h,p,d(h.el),Q(h),e,r,s),n.el=p.el,null===u&&In(e,p.el),c&&mr(c,r),(t=n.props&&n.props.onVnodeUpdated)&&mr((()=>ls(t,l,n,a)),r)}else{let i;const{el:c,props:l}=t,{bm:a,m:u,parent:d}=e,p=ho(t);if(br(e,!1),a&&ee(a),!p&&(i=l&&l.onVnodeBeforeMount)&&ls(i,d,t),br(e,!0),c&&re){const n=()=>{e.subTree=Pn(e),re(c,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Pn(e);g(null,i,n,o,e,r,s),t.el=i.el}if(u&&mr(u,r),!p&&(i=l&&l.onVnodeMounted)){const e=t;mr((()=>ls(i,d,e)),r)}256&t.shapeFlag&&e.a&&mr(e.a,r),e.isMounted=!0,t=n=o=null}}),(()=>hn(e.update)),e.scope),l=e.update=c.run.bind(c);l.id=e.uid,br(e,!0),l()},j=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,c=Ct(r),[l]=e.propsOptions;let a=!1;if(!(o||i>0)||16&i){let o;Go(e,t,r,s)&&(a=!0);for(const s in c)t&&(A(t,s)||(o=Y(s))!==s&&A(t,o))||(l?!n||void 0===n[s]&&void 0===n[o]||(r[s]=Wo(l,c,s,void 0,e,!0)):delete r[s]);if(s!==c)for(const e in s)t&&A(t,e)||(delete s[e],a=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:o,slots:r}=e;let s=!0,i=_;if(32&o.shapeFlag){const e=t._;e?n&&1===e?s=!1:(E(r,t),n||1!==e||delete r._):(s=!t.$stable,or(t,r)),i=t}else t&&(rr(e,t),i={default:1});if(s)for(const e in r)er(e)||e in i||delete r[e]})(e,t.children,n),Te(),vn(void 0,e.update),ke()},I=(e,t,n,o,r,s,i,c,l=!1)=>{const a=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void U(a,p,n,o,r,s,i,c,l);if(256&h)return void V(a,p,n,o,r,s,i,c,l)}8&f?(16&d&&J(a,r,s),p!==a&&u(n,p)):16&d?16&f?U(a,p,n,o,r,s,i,c,l):J(a,r,s,!0):(8&d&&u(n,""),16&f&&k(p,n,o,r,s,i,c,l))},V=(e,t,n,o,r,s,i,c,l)=>{const a=(e=e||S).length,u=(t=t||S).length,d=Math.min(a,u);let p;for(p=0;pu?J(e,r,s,!0,!1,d):k(t,n,o,r,s,i,c,l,d)},U=(e,t,n,o,r,s,i,c,l)=>{let a=0;const u=t.length;let d=e.length-1,p=u-1;for(;a<=d&&a<=p;){const o=e[a],u=t[a]=l?ss(t[a]):rs(t[a]);if(!Kr(o,u))break;g(o,u,n,null,r,s,i,c,l),a++}for(;a<=d&&a<=p;){const o=e[d],a=t[p]=l?ss(t[p]):rs(t[p]);if(!Kr(o,a))break;g(o,a,n,null,r,s,i,c,l),d--,p--}if(a>d){if(a<=p){const e=p+1,d=ep)for(;a<=d;)H(e[a],r,s,!0),a++;else{const h=a,f=a,m=new Map;for(a=f;a<=p;a++){const e=t[a]=l?ss(t[a]):rs(t[a]);null!=e.key&&m.set(e.key,a)}let v,y=0;const b=p-f+1;let _=!1,w=0;const x=new Array(b);for(a=0;a=b){H(o,r,s,!0);continue}let u;if(null!=o.key)u=m.get(o.key);else for(v=f;v<=p;v++)if(0===x[v-f]&&Kr(o,t[v])){u=v;break}void 0===u?H(o,r,s,!0):(x[u-f]=a+1,u>=w?w=u:_=!0,g(o,t[u],n,null,r,s,i,c,l),y++)}const C=_?function(e){const t=e.slice(),n=[0];let o,r,s,i,c;const l=e.length;for(o=0;o>1,e[n[c]]0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}(x):S;for(v=C.length-1,a=b-1;a>=0;a--){const e=f+a,d=t[e],p=e+1{const{el:i,type:c,transition:l,children:a,shapeFlag:u}=e;if(6&u)D(e.component.subTree,t,n,r);else if(128&u)e.suspense.move(t,n,r);else if(64&u)c.move(e,t,n,X);else if(c!==Rr)if(c!==Br)if(2!==r&&1&u&&l)if(0===r)l.beforeEnter(i),o(i,t,n),mr((()=>l.enter(i)),s);else{const{leave:e,delayLeave:r,afterLeave:s}=l,c=()=>o(i,t,n),a=()=>{e(i,(()=>{c(),s&&s()}))};r?r(i,c,a):a()}else o(i,t,n);else(({el:e,anchor:t},n,r)=>{let s;for(;e&&e!==t;)s=p(e),o(e,n,r),e=s;o(t,n,r)})(e,t,n);else{o(i,t,n);for(let e=0;e{const{type:s,props:i,ref:c,children:l,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=c&&ur(c,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!ho(e);let m;if(f&&(m=i&&i.onVnodeBeforeUnmount)&&ls(m,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&ir(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,X,o):a&&(s!==Rr||d>0&&64&d)?J(a,t,n,!1,!0):(s===Rr&&384&d||!r&&16&u)&&J(l,t,n),o&&q(e)}(f&&(m=i&&i.onVnodeUnmounted)||h)&&mr((()=>{m&&ls(m,t,e),h&&ir(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:o,transition:s}=e;if(t===Rr)return void K(n,o);if(t===Br)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),r(e),e=n;r(t)})(e);const i=()=>{r(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:o}=s,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},K=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:s,subTree:i,um:c}=e;o&&ee(o),r.stop(),s&&(s.active=!1,H(i,e,t,n)),c&&mr(c,t),mr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,o=!1,r=!1,s=0)=>{for(let i=s;i6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),Z=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),yn(),t._vnode=e},X={p:g,um:H,m:D,r:q,mt:P,mc:k,pc:I,pbc:O,n:Q,o:e};let ne,re;return t&&([ne,re]=t(X)),{render:Z,hydrate:ne,createApp:ar(Z,ne)}}function br({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function _r(e,t,n=!1){const o=e.children,r=t.children;if($(o)&&$(r))for(let e=0;ee&&(e.disabled||""===e.disabled),wr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,xr=(e,t)=>{const n=e&&e.to;return L(n)?t?t(n):null:n};function Cr(e,t,n,{o:{insert:o},m:r},s=2){0===s&&o(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:l,children:a,props:u}=e,d=2===s;if(d&&o(i,t,n),(!d||Sr(u))&&16&l)for(let e=0;e{16&v&&u(y,e,t,r,s,i,c,l)};g?b(n,a):d&&b(d,p)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Sr(e.props),v=m?n:u,y=m?o:h;if(i=i||wr(u),b?(p(e.dynamicChildren,b,v,r,s,i,c),_r(e,t,!0)):l||d(e,t,v,y,r,s,i,c,!1),g)m||Cr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=xr(t.props,f);e&&Cr(t,e,null,a,0)}else m&&Cr(t,u,h,a,1)}},remove(e,t,n,o,{um:r,o:{remove:s}},i){const{shapeFlag:c,children:l,anchor:a,targetAnchor:u,target:d,props:p}=e;if(d&&s(u),(i||!Sr(p))&&(s(a),16&c))for(let e=0;e0?jr||S:null,Fr(),Vr>0&&jr&&jr.push(e),e}function Hr(e,t,n,o,r,s){return Dr(Qr(e,t,n,o,r,s,!0))}function zr(e,t,n,o,r){return Dr(Zr(e,t,n,o,r,!0))}function qr(e){return!!e&&!0===e.__v_isVNode}function Kr(e,t){return e.type===t.type&&e.key===t.key}function Gr(e){}const Wr="__vInternal",Jr=({key:e})=>null!=e?e:null,Yr=({ref:e,ref_key:t,ref_for:n})=>null!=e?L(e)||At(e)||B(e)?{i:En,r:e,k:t,f:!!n}:e:null;function Qr(e,t=null,n=null,o=0,r=null,s=(e===Rr?0:1),i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jr(t),ref:t&&Yr(t),scopeId:Nn,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return c?(is(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=L(n)?8:16),Vr>0&&!i&&jr&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&jr.push(l),l}const Zr=function(e,t=null,n=null,o=0,r=null,s=!1){if(e&&e!==Er||(e=Pr),qr(e)){const o=es(e,t,!0);return n&&is(o,n),o}var i;if(B(i=e)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=Xr(t);let{class:e,style:n}=t;e&&!L(e)&&(t.class=d(e)),I(n)&&(xt(n)&&!$(n)&&(n=E({},n)),t.style=c(n))}return Qr(e,t,n,o,r,L(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:I(e)?4:B(e)?2:0,s,!0)};function Xr(e){return e?xt(e)||Wr in e?E({},e):e:null}function es(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,c=t?cs(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Jr(c),ref:t&&t.ref?n&&r?$(r)?r.concat(Yr(t)):[r,Yr(t)]:Yr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Rr?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&es(e.ssContent),ssFallback:e.ssFallback&&es(e.ssFallback),el:e.el,anchor:e.anchor}}function ts(e=" ",t=0){return Zr(Mr,null,e,t)}function ns(e,t){const n=Zr(Br,null,e);return n.staticCount=t,n}function os(e="",t=!1){return t?(Ir(),zr(Pr,null,e)):Zr(Pr,null,e)}function rs(e){return null==e||"boolean"==typeof e?Zr(Pr):$(e)?Zr(Rr,null,e.slice()):"object"==typeof e?ss(e):Zr(Mr,null,String(e))}function ss(e){return null===e.el||e.memo?e:es(e)}function is(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if($(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),is(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Wr in t?3===o&&En&&(1===En.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=En}}else B(t)?(t={default:t,_ctx:En},n=32):(t=String(t),64&o?(n=16,t=[ts(t)]):n=8);e.children=t,e.shapeFlag|=n}function cs(...e){const t={};for(let n=0;nt(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;o!qr(e)||e.type!==Pr&&!(e.type===Rr&&!ps(e.children))))?e:null}function hs(e){const t={};for(const n in e)t[Z(n)]=e[n];return t}const fs=e=>e?Cs(e)?Ms(e)||e.proxy:fs(e.parent):null,ms=E(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=>fs(e.parent),$root:e=>fs(e.root),$emit:e=>e.emit,$options:e=>Vo(e),$forceUpdate:e=>()=>hn(e.update),$nextTick:e=>pn.bind(e.proxy),$watch:e=>Xn.bind(e)}),gs={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:c,appContext:l}=e;let a;if("$"!==t[0]){const c=i[t];if(void 0!==c)switch(c){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(o!==_&&A(o,t))return i[t]=1,o[t];if(r!==_&&A(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&A(a,t))return i[t]=3,s[t];if(n!==_&&A(n,t))return i[t]=4,n[t];jo&&(i[t]=0)}}const u=ms[t];let d,p;return u?("$attrs"===t&&Ee(e,0,t),u(e)):(d=c.__cssModules)&&(d=d[t])?d:n!==_&&A(n,t)?(i[t]=4,n[t]):(p=l.config.globalProperties,A(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return r!==_&&A(r,t)?(r[t]=n,!0):o!==_&&A(o,t)?(o[t]=n,!0):!(A(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let c;return!!n[i]||e!==_&&A(e,i)||t!==_&&A(t,i)||(c=s[0])&&A(c,i)||A(o,i)||A(ms,i)||A(r.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?this.set(e,t,n.get(),null):null!=n.value&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},vs=E({},gs,{get(e,t){if(t!==Symbol.unscopables)return gs.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!r(t)}),ys=cr();let bs=0,_s=null;const Ss=()=>_s||En,ws=e=>{_s=e,e.scope.on()},xs=()=>{_s&&_s.scope.off(),_s=null};function Cs(e){return 4&e.vnode.shapeFlag}let Ts,ks,Es=!1;function Ns(e,t,n){B(t)?e.render=t:I(t)&&(e.setupState=It(t)),$s(e,n)}function Os(e){Ts=e,ks=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,vs))}}const As=()=>!Ts;function $s(e,t,n){const o=e.type;if(!e.render){if(!t&&Ts&&!o.render){const t=o.template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:i}=o,c=E(E({isCustomElement:n,delimiters:s},r),i);o.render=Ts(t,c)}}e.render=o.render||w,ks&&ks(e)}ws(e),Te(),function(e){const t=Vo(e),n=e.proxy,o=e.ctx;jo=!1,t.beforeCreate&&Io(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:c,provide:l,inject:a,created:u,beforeMount:d,mounted:p,beforeUpdate:h,updated:f,activated:m,deactivated:g,beforeUnmount:v,unmounted:y,render:b,renderTracked:_,renderTriggered:S,errorCaptured:x,serverPrefetch:C,expose:T,inheritAttrs:k,components:E,directives:N}=t;if(a&&function(e,t,n=w,o=!1){$(e)&&(e=zo(e));for(const n in e){const r=e[n];let s;s=I(r)?"default"in r?Kn(r.from||n,r.default,!0):Kn(r.from||n):Kn(r),At(s)&&o?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(a,o,null,e.appContext.config.unwrapInjectedRef),i)for(const e in i){const t=i[e];B(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);I(t)&&(e.data=mt(t))}if(jo=!0,s)for(const e in s){const t=s[e],r=B(t)?t.bind(n,n):B(t.get)?t.get.bind(n,n):w,i=!B(t)&&B(t.set)?t.set.bind(n):w,c=js({get:r,set:i});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)Fo(c[e],o,n,e);if(l){const e=B(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{qn(t,e[t])}))}function O(e,t){$(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Io(u,e,"c"),O(Eo,d),O(No,p),O(Oo,h),O(Ao,f),O(bo,m),O(_o,g),O(Lo,x),O(Bo,_),O(Po,S),O($o,v),O(Ro,y),O(Mo,C),$(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});b&&e.render===w&&(e.render=b),null!=k&&(e.inheritAttrs=k),E&&(e.components=E),N&&(e.directives=N)}(e),ke(),xs()}function Rs(e){let t;return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Ee(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ms(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(It(Tt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in ms?ms[n](e):void 0}))}const Ps=/(?:^|[-_])(\w)/g;function Bs(e){return B(e)&&e.displayName||e.name}function Ls(e,t,n=!1){let o=Bs(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?o.replace(Ps,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}const js=(e,t)=>function(e,t,n=!1){let o,r;const s=B(e);return s?(o=e,r=w):(o=e.get,r=e.set),new zt(o,r,s||!r,n)}(e,0,Es);function Is(){return null}function Fs(){return null}function Vs(e){}function Us(e,t){return null}function Ds(){return zs().slots}function Hs(){return zs().attrs}function zs(){const e=Ss();return e.setupContext||(e.setupContext=Rs(e))}function qs(e,t){const n=$(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const o=n[e];o?$(o)||B(o)?n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(n[e]={default:t[e]})}return n}function Ks(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function Gs(e){const t=Ss();let n=e();return xs(),F(n)&&(n=n.catch((e=>{throw ws(t),e}))),[n,()=>ws(t)]}function Ws(e,t,n){const o=arguments.length;return 2===o?I(t)&&!$(t)?qr(t)?Zr(e,null,[t]):Zr(e,t):Zr(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&qr(n)&&(n=[n]),Zr(e,t,n))}const Js=Symbol(""),Ys=()=>{{const e=Kn(Js);return e||Kt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Qs(){}function Zs(e,t,n,o){const r=n[o];if(r&&Xs(r,e))return r;const s=t();return s.memo=e.slice(),n[o]=s}function Xs(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&jr&&jr.push(e),!0}const ei="3.2.31",ti=null,ni=null,oi=null,ri="undefined"!=typeof document?document:null,si=ri&&ri.createElement("template"),ii={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?ri.createElementNS("http://www.w3.org/2000/svg",e):ri.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>ri.createTextNode(e),createComment:e=>ri.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ri.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,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==s&&(r=r.nextSibling););else{si.innerHTML=o?`${e}`:e;const r=si.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ci=/\s*!important$/;function li(e,t,n){if($(n))n.forEach((n=>li(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=ui[t];if(n)return n;let o=W(t);if("filter"!==o&&o in e)return ui[t]=o;o=Q(o);for(let n=0;ndocument.createEvent("Event").timeStamp&&(pi=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);hi=!!(e&&Number(e[1])<=53)}let fi=0;const mi=Promise.resolve(),gi=()=>{fi=0};function vi(e,t,n,o){e.addEventListener(t,n,o)}const yi=/(?:Once|Passive|Capture)$/,bi=/^on[a-z]/;function _i(e,t){const n=po(e);class o extends xi{constructor(e){super(n,e,t)}}return o.def=n,o}const Si=e=>_i(e,wc),wi="undefined"!=typeof HTMLElement?HTMLElement:class{};class xi extends wi{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,pn((()=>{this._connected||(Sc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:n}=e,o=!$(t),r=t?o?Object.keys(t):t:[];let s;if(o)for(const e in this._props){const n=t[e];(n===Number||n&&n.type===Number)&&(this._props[e]=ne(this._props[e]),(s||(s=Object.create(null)))[e]=!0)}this._numberProps=s;for(const e of Object.keys(this))"_"!==e[0]&&this._setProp(e,this[e],!0,!1);for(const e of r.map(W))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}});this._applyStyles(n),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=ne(t)),this._setProp(W(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(Y(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(Y(e),t+""):t||this.removeAttribute(Y(e))))}_update(){Sc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Zr(this._def,E({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof xi){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Ci(e="$style"){{const t=Ss();if(!t)return _;const n=t.type.__cssModules;return n&&n[e]||_}}function Ti(e){const t=Ss();if(!t)return;const n=()=>ki(t.subTree,e(t.proxy));Wn(n),No((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),Ro((()=>e.disconnect()))}))}function ki(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{ki(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Ei(e.el,t);else if(e.type===Rr)e.children.forEach((e=>ki(e,t)));else if(e.type===Br){let{el:n,anchor:o}=e;for(;n&&(Ei(n,t),n!==o);)n=n.nextSibling}}function Ei(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const Ni=(e,{slots:t})=>Ws(ro,Mi(e),t);Ni.displayName="Transition";const Oi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ai=Ni.props=E({},ro.props,Oi),$i=(e,t=[])=>{$(e)?e.forEach((e=>e(...t))):e&&e(...t)},Ri=e=>!!e&&($(e)?e.some((e=>e.length>1)):e.length>1);function Mi(e){const t={};for(const n in e)n in Oi||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:a=i,appearToClass:u=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(I(e))return[Pi(e.enter),Pi(e.leave)];{const t=Pi(e);return[t,t]}}(r),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:_,onLeaveCancelled:S,onBeforeAppear:w=v,onAppear:x=y,onAppearCancelled:C=b}=t,T=(e,t,n)=>{Li(e,t?u:c),Li(e,t?a:i),n&&n()},k=(e,t)=>{Li(e,h),Li(e,p),t&&t()},N=e=>(t,n)=>{const r=e?x:y,i=()=>T(t,e,n);$i(r,[t,i]),ji((()=>{Li(t,e?l:s),Bi(t,e?u:c),Ri(r)||Fi(t,o,m,i)}))};return E(t,{onBeforeEnter(e){$i(v,[e]),Bi(e,s),Bi(e,i)},onBeforeAppear(e){$i(w,[e]),Bi(e,l),Bi(e,a)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){const n=()=>k(e,t);Bi(e,d),Hi(),Bi(e,p),ji((()=>{Li(e,d),Bi(e,h),Ri(_)||Fi(e,o,g,n)})),$i(_,[e,n])},onEnterCancelled(e){T(e,!1),$i(b,[e])},onAppearCancelled(e){T(e,!0),$i(C,[e])},onLeaveCancelled(e){k(e),$i(S,[e])}})}function Pi(e){return ne(e)}function Bi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Li(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ji(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Ii=0;function Fi(e,t,n,o){const r=e._endId=++Ii,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:c,propCount:l}=Vi(e,t);if(!i)return o();const a=i+"end";let u=0;const d=()=>{e.removeEventListener(a,p),s()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o("transitionDelay"),s=o("transitionDuration"),i=Ui(r,s),c=o("animationDelay"),l=o("animationDuration"),a=Ui(c,l);let u=null,d=0,p=0;return"transition"===t?i>0&&(u="transition",d=i,p=s.length):"animation"===t?a>0&&(u="animation",d=a,p=l.length):(d=Math.max(i,a),u=d>0?i>a?"transition":"animation":null,p=u?"transition"===u?s.length:l.length:0),{type:u,timeout:d,propCount:p,hasTransform:"transition"===u&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function Ui(e,t){for(;e.lengthDi(t)+Di(e[n]))))}function Di(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Hi(){return document.body.offsetHeight}const zi=new WeakMap,qi=new WeakMap,Ki={name:"TransitionGroup",props:E({},Ai,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ss(),o=no();let r,s;return Ao((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(o);const{hasTransform:s}=Vi(o);return r.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(Gi),r.forEach(Wi);const o=r.filter(Ji);Hi(),o.forEach((e=>{const n=e.el,o=n.style;Bi(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n._moveCb=null,Li(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const i=Ct(e),c=Mi(i);let l=i.tag||Rr;r=s,s=t.default?uo(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"];return $(t)?e=>ee(t,e):t};function Qi(e){e.target.composing=!0}function Zi(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const Xi={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Yi(r);const s=o||r.props&&"number"===r.props.type;vi(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n?o=o.trim():s&&(o=ne(o)),e._assign(o)})),n&&vi(e,"change",(()=>{e.value=e.value.trim()})),t||(vi(e,"compositionstart",Qi),vi(e,"compositionend",Zi),vi(e,"change",Zi))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Yi(s),e.composing)return;if(document.activeElement===e){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&ne(e.value)===t)return}const i=null==t?"":t;e.value!==i&&(e.value=i)}},ec={deep:!0,created(e,t,n){e._assign=Yi(n),vi(e,"change",(()=>{const t=e._modelValue,n=sc(e),o=e.checked,r=e._assign;if($(t)){const e=v(t,n),s=-1!==e;if(o&&!s)r(t.concat(n));else if(!o&&s){const n=[...t];n.splice(e,1),r(n)}}else if(M(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(ic(e,o))}))},mounted:tc,beforeUpdate(e,t,n){e._assign=Yi(n),tc(e,t,n)}};function tc(e,{value:t,oldValue:n},o){e._modelValue=t,$(t)?e.checked=v(t,o.props.value)>-1:M(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=g(t,ic(e,!0)))}const nc={created(e,{value:t},n){e.checked=g(t,n.props.value),e._assign=Yi(n),vi(e,"change",(()=>{e._assign(sc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=Yi(o),t!==n&&(e.checked=g(t,o.props.value))}},oc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=M(t);vi(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ne(sc(e)):sc(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=Yi(o)},mounted(e,{value:t}){rc(e,t)},beforeUpdate(e,t,n){e._assign=Yi(n)},updated(e,{value:t}){rc(e,t)}};function rc(e,t){const n=e.multiple;if(!n||$(t)||M(t)){for(let o=0,r=e.options.length;o-1:t.has(s);else if(g(sc(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function sc(e){return"_value"in e?e._value:e.value}function ic(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const cc={created(e,t,n){lc(e,t,n,null,"created")},mounted(e,t,n){lc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){lc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){lc(e,t,n,o,"updated")}};function lc(e,t,n,o,r){let s;switch(e.tagName){case"SELECT":s=oc;break;case"TEXTAREA":s=Xi;break;default:switch(n.props&&n.props.type){case"checkbox":s=ec;break;case"radio":s=nc;break;default:s=Xi}}const i=s[r];i&&i(e,t,n,o)}const ac=["ctrl","shift","alt","meta"],uc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ac.some((n=>e[`${n}Key`]&&!t.includes(n)))},dc=(e,t)=>(n,...o)=>{for(let e=0;en=>{if(!("key"in n))return;const o=Y(n.key);return t.some((e=>e===o||pc[e]===o))?e(n):void 0},fc={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):mc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),mc(e,!0),o.enter(e)):o.leave(e,(()=>{mc(e,!1)})):mc(e,t))},beforeUnmount(e,{value:t}){mc(e,t)}};function mc(e,t){e.style.display=t?e._vod:"none"}const gc=E({patchProp:(e,t,n,o,r=!1,c,l,a,u)=>{"class"===t?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=L(n);if(n&&!r){for(const e in n)li(o,e,n[e]);if(t&&!L(t))for(const e in t)null==n[e]&&li(o,e,"")}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}(e,n,o):T(t)?k(t)||function(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[n,c]=function(e){let t;if(yi.test(e)){let n;for(t={};n=e.match(yi);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Y(e.slice(2)),t]}(t);if(o){const i=s[t]=function(e,t){const n=e=>{const o=e.timeStamp||pi();(hi||o>=n.attached-1)&&Yt(function(e,t){if($(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=fi||(mi.then(gi),fi=pi()),n}(o,r);vi(e,n,i,c)}else i&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,c),s[t]=void 0)}}(e,t,0,o,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&bi.test(t)&&B(n)):!("spellcheck"===t||"draggable"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName||bi.test(t)&&L(n)||!(t in e))}(e,t,o,r))?function(e,t,n,o,r,s,c){if("innerHTML"===t||"textContent"===t)return o&&c(o,r,s),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if("boolean"===o)return void(e[t]=i(n));if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,t,o,c,l,a,u):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(di,t.slice(6,t.length)):e.setAttributeNS(di,t,n);else{const o=s(t);null==n||o&&!i(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},ii);let vc,yc=!1;function bc(){return vc||(vc=gr(gc))}function _c(){return vc=yc?vc:vr(gc),yc=!0,vc}const Sc=(...e)=>{bc().render(...e)},wc=(...e)=>{_c().hydrate(...e)},xc=(...e)=>{const t=bc().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Tc(e);if(!o)return;const r=t._component;B(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},Cc=(...e)=>{const t=_c().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Tc(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function Tc(e){return L(e)?document.querySelector(e):e}const kc=w;var Ec=Object.freeze({__proto__:null,render:Sc,hydrate:wc,createApp:xc,createSSRApp:Cc,initDirectivesForSSR:kc,defineCustomElement:_i,defineSSRCustomElement:Si,VueElement:xi,useCssModule:Ci,useCssVars:Ti,Transition:Ni,TransitionGroup:Ki,vModelText:Xi,vModelCheckbox:ec,vModelRadio:nc,vModelSelect:oc,vModelDynamic:cc,withModifiers:dc,withKeys:hc,vShow:fc,reactive:mt,ref:$t,readonly:vt,unref:Lt,proxyRefs:It,isRef:At,toRef:Ht,toRefs:Ut,isProxy:xt,isReactive:_t,isReadonly:St,isShallow:wt,customRef:Vt,triggerRef:Bt,shallowRef:Rt,shallowReactive:gt,shallowReadonly:yt,markRaw:Tt,toRaw:Ct,effect:Se,stop:we,ReactiveEffect:be,effectScope:ie,EffectScope:se,getCurrentScope:le,onScopeDispose:ae,computed:js,watch:Qn,watchEffect:Gn,watchPostEffect:Wn,watchSyncEffect:Jn,onBeforeMount:Eo,onMounted:No,onBeforeUpdate:Oo,onUpdated:Ao,onBeforeUnmount:$o,onUnmounted:Ro,onActivated:bo,onDeactivated:_o,onRenderTracked:Bo,onRenderTriggered:Po,onErrorCaptured:Lo,onServerPrefetch:Mo,provide:qn,inject:Kn,nextTick:pn,defineComponent:po,defineAsyncComponent:fo,useAttrs:Hs,useSlots:Ds,defineProps:Is,defineEmits:Fs,defineExpose:Vs,withDefaults:Us,mergeDefaults:qs,createPropsRestProxy:Ks,withAsyncContext:Gs,getCurrentInstance:Ss,h:Ws,createVNode:Zr,cloneVNode:es,mergeProps:cs,isVNode:qr,Fragment:Rr,Text:Mr,Comment:Pr,Static:Br,Teleport:Tr,Suspense:Fn,KeepAlive:vo,BaseTransition:ro,withDirectives:sr,useSSRContext:Ys,ssrContextKey:Js,createRenderer:gr,createHydrationRenderer:vr,queuePostFlushCb:gn,warn:Kt,handleError:Qt,callWithErrorHandling:Jt,callWithAsyncErrorHandling:Yt,resolveComponent:kr,resolveDirective:Or,resolveDynamicComponent:Nr,registerRuntimeCompiler:Os,isRuntimeOnly:As,useTransitionState:no,resolveTransitionHooks:io,setTransitionHooks:ao,getTransitionRawChildren:uo,initCustomFormatter:Qs,get devtools(){return Sn},setDevtoolsHook:xn,withCtx:Mn,pushScopeId:An,popScopeId:$n,withScopeId:Rn,renderList:as,toHandlers:hs,renderSlot:ds,createSlots:us,withMemo:Zs,isMemoSame:Xs,openBlock:Ir,createBlock:zr,setBlockTracking:Ur,createTextVNode:ts,createCommentVNode:os,createStaticVNode:ns,createElementVNode:Qr,createElementBlock:Hr,guardReactiveProps:Xr,toDisplayString:y,camelize:W,capitalize:Q,toHandlerKey:Z,normalizeProps:p,normalizeClass:d,normalizeStyle:c,transformVNodeArgs:Gr,version:ei,ssrUtils:null,resolveFilter:null,compatUtils:null});function Nc(e){throw e}function Oc(e){}function Ac(e,t,n,o){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const $c=Symbol(""),Rc=Symbol(""),Mc=Symbol(""),Pc=Symbol(""),Bc=Symbol(""),Lc=Symbol(""),jc=Symbol(""),Ic=Symbol(""),Fc=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),Dc=Symbol(""),Hc=Symbol(""),zc=Symbol(""),qc=Symbol(""),Kc=Symbol(""),Gc=Symbol(""),Wc=Symbol(""),Jc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),Xc=Symbol(""),el=Symbol(""),tl=Symbol(""),nl=Symbol(""),ol=Symbol(""),rl=Symbol(""),sl=Symbol(""),il=Symbol(""),cl=Symbol(""),ll=Symbol(""),al=Symbol(""),ul=Symbol(""),dl=Symbol(""),pl=Symbol(""),hl=Symbol(""),fl=Symbol(""),ml=Symbol(""),gl={[$c]:"Fragment",[Rc]:"Teleport",[Mc]:"Suspense",[Pc]:"KeepAlive",[Bc]:"BaseTransition",[Lc]:"openBlock",[jc]:"createBlock",[Ic]:"createElementBlock",[Fc]:"createVNode",[Vc]:"createElementVNode",[Uc]:"createCommentVNode",[Dc]:"createTextVNode",[Hc]:"createStaticVNode",[zc]:"resolveComponent",[qc]:"resolveDynamicComponent",[Kc]:"resolveDirective",[Gc]:"resolveFilter",[Wc]:"withDirectives",[Jc]:"renderList",[Yc]:"renderSlot",[Qc]:"createSlots",[Zc]:"toDisplayString",[Xc]:"mergeProps",[el]:"normalizeClass",[tl]:"normalizeStyle",[nl]:"normalizeProps",[ol]:"guardReactiveProps",[rl]:"toHandlers",[sl]:"camelize",[il]:"capitalize",[cl]:"toHandlerKey",[ll]:"setBlockTracking",[al]:"pushScopeId",[ul]:"popScopeId",[dl]:"withCtx",[pl]:"unref",[hl]:"isRef",[fl]:"withMemo",[ml]:"isMemoSame"},vl={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function yl(e,t,n,o,r,s,i,c=!1,l=!1,a=!1,u=vl){return e&&(c?(e.helper(Lc),e.helper(Gl(e.inSSR,a))):e.helper(Kl(e.inSSR,a)),i&&e.helper(Wc)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:i,isBlock:c,disableTracking:l,isComponent:a,loc:u}}function bl(e,t=vl){return{type:17,loc:t,elements:e}}function _l(e,t=vl){return{type:15,loc:t,properties:e}}function Sl(e,t){return{type:16,loc:vl,key:L(e)?wl(e,!0):e,value:t}}function wl(e,t=!1,n=vl,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function xl(e,t=vl){return{type:8,loc:t,children:e}}function Cl(e,t=[],n=vl){return{type:14,loc:n,callee:e,arguments:t}}function Tl(e,t,n=!1,o=!1,r=vl){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function kl(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:vl}}const El=e=>4===e.type&&e.isStatic,Nl=(e,t)=>e===t||e===Y(t);function Ol(e){return Nl(e,"Teleport")?Rc:Nl(e,"Suspense")?Mc:Nl(e,"KeepAlive")?Pc:Nl(e,"BaseTransition")?Bc:void 0}const Al=/^\d|[^\$\w]/,$l=e=>!Al.test(e),Rl=/[A-Za-z_$\xA0-\uFFFF]/,Ml=/[\.\?\w$\xA0-\uFFFF]/,Pl=/\s+[.[]\s*|\s*[.[]\s+/g,Bl=e=>{e=e.trim().replace(Pl,(e=>e.trim()));let t=0,n=[],o=0,r=0,s=null;for(let i=0;i4===e.key.type&&e.key.content===n))}e||s.properties.unshift(t),o=s}else o=Cl(n.helper(Xc),[_l([t]),s]),r&&r.callee===ol&&(r=i[i.length-2]);13===e.type?r?r.arguments[0]=o:e.props=o:r?r.arguments[0]=o:e.arguments[2]=o}function Ql(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function Zl(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Kl(o,e.isComponent)),t(Lc),t(Gl(o,e.isComponent)))}const Xl=/&(gt|lt|amp|apos|quot);/g,ea={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},ta={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:x,isPreTag:x,isCustomElement:x,decodeEntities:e=>e.replace(Xl,((e,t)=>ea[t])),onError:Nc,onWarn:Oc,comments:!1};function na(e,t,n){const o=va(n),r=o?o.ns:0,s=[];for(;!wa(e,t,n);){const i=e.source;let c;if(0===t||1===t)if(!e.inVPre&&ya(i,e.options.delimiters[0]))c=pa(e,t);else if(0===t&&"<"===i[0])if(1===i.length);else if("!"===i[1])c=ya(i,"\x3c!--")?sa(e):ya(i,""===i[2]){ba(e,3);continue}if(/[a-z]/i.test(i[2])){aa(e,1,o);continue}c=ia(e)}else/[a-z]/i.test(i[1])?c=ca(e,n):"?"===i[1]&&(c=ia(e));if(c||(c=ha(e,t)),$(c))for(let e=0;e/.exec(e.source);if(o){n=e.source.slice(4,o.index);const t=e.source.slice(0,o.index);let r=1,s=0;for(;-1!==(s=t.indexOf("\x3c!--",r));)ba(e,s-r+1),r=s+1;ba(e,o.index+o[0].length-r+1)}else n=e.source.slice(4),ba(e,e.source.length);return{type:3,content:n,loc:ga(e,t)}}function ia(e){const t=ma(e),n="?"===e.source[1]?1:2;let o;const r=e.source.indexOf(">");return-1===r?(o=e.source.slice(n),ba(e,e.source.length)):(o=e.source.slice(n,r),ba(e,r+1)),{type:3,content:o,loc:ga(e,t)}}function ca(e,t){const n=e.inPre,o=e.inVPre,r=va(t),s=aa(e,0,r),i=e.inPre&&!n,c=e.inVPre&&!o;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return i&&(e.inPre=!1),c&&(e.inVPre=!1),s;t.push(s);const l=e.options.getTextMode(s,r),a=na(e,l,t);if(t.pop(),s.children=a,xa(e.source,s.tag))aa(e,1,r);else if(0===e.source.length&&"script"===s.tag.toLowerCase()){const e=a[0];e&&ya(e.loc.source,"\x3c!--")}return s.loc=ga(e,s.loc.start),i&&(e.inPre=!1),c&&(e.inVPre=!1),s}const la=o("if,else,else-if,for,slot");function aa(e,t,n){const o=ma(e),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=r[1],i=e.options.getNamespace(s,n);ba(e,r[0].length),_a(e);const c=ma(e),l=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let a=ua(e,t);0===t&&!e.inVPre&&a.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,E(e,c),e.source=l,a=ua(e,t).filter((e=>"v-pre"!==e.name)));let u=!1;if(0===e.source.length||(u=ya(e.source,"/>"),ba(e,u?2:1)),1===t)return;let d=0;return e.inVPre||("slot"===s?d=2:"template"===s?a.some((e=>7===e.type&&la(e.name)))&&(d=3):function(e,t,n){const o=n.options;if(o.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||Ol(e)||o.isBuiltInComponent&&o.isBuiltInComponent(e)||o.isNativeTag&&!o.isNativeTag(e))return!0;for(let e=0;e0&&!ya(e.source,">")&&!ya(e.source,"/>");){if(ya(e.source,"/")){ba(e,1),_a(e);continue}const r=da(e,o);6===r.type&&r.value&&"class"===r.name&&(r.value.content=r.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(r),/^[^\t\r\n\f />]/.test(e.source),_a(e)}return n}function da(e,t){const n=ma(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o),t.add(o);{const e=/["'<]/g;let t;for(;t=e.exec(o););}let r;ba(e,o.length),/^[\t\r\n\f ]*=/.test(e.source)&&(_a(e),ba(e,1),_a(e),r=function(e){const t=ma(e);let n;const o=e.source[0],r='"'===o||"'"===o;if(r){ba(e,1);const t=e.source.indexOf(o);-1===t?n=fa(e,e.source.length,4):(n=fa(e,t,4),ba(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const o=/["'<=`]/g;let r;for(;r=o.exec(t[0]););n=fa(e,t[0].length,4)}return{content:n,isQuoted:r,loc:ga(e,t)}}(e));const s=ga(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let i,c=ya(o,"."),l=t[1]||(c||ya(o,":")?"bind":ya(o,"@")?"on":"slot");if(t[2]){const r="slot"===l,s=o.lastIndexOf(t[2]),c=ga(e,Sa(e,n,s),Sa(e,n,s+t[2].length+(r&&t[3]||"").length));let a=t[2],u=!0;a.startsWith("[")?(u=!1,a=a.endsWith("]")?a.slice(1,a.length-1):a.slice(1)):r&&(a+=t[3]||""),i={type:4,content:a,isStatic:u,constType:u?3:0,loc:c}}if(r&&r.isQuoted){const e=r.loc;e.start.offset++,e.start.column++,e.end=jl(e.start,r.content),e.source=e.source.slice(1,-1)}const a=t[3]?t[3].slice(1).split("."):[];return c&&a.push("prop"),{type:7,name:l,exp:r&&{type:4,content:r.content,isStatic:!1,constType:0,loc:r.loc},arg:i,modifiers:a,loc:s}}return!e.inVPre&&ya(o,"v-"),{type:6,name:o,value:r&&{type:2,content:r.content,loc:r.loc},loc:s}}function pa(e,t){const[n,o]=e.options.delimiters,r=e.source.indexOf(o,n.length);if(-1===r)return;const s=ma(e);ba(e,n.length);const i=ma(e),c=ma(e),l=r-n.length,a=e.source.slice(0,l),u=fa(e,l,t),d=u.trim(),p=u.indexOf(d);return p>0&&Il(i,a,p),Il(c,a,l-(u.length-d.length-p)),ba(e,o.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:d,loc:ga(e,i,c)},loc:ga(e,s)}}function ha(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let o=e.source.length;for(let t=0;tr&&(o=r)}const r=ma(e);return{type:2,content:fa(e,o,t),loc:ga(e,r)}}function fa(e,t,n){const o=e.source.slice(0,t);return ba(e,t),2!==n&&3!==n&&o.includes("&")?e.options.decodeEntities(o,4===n):o}function ma(e){const{column:t,line:n,offset:o}=e;return{column:t,line:n,offset:o}}function ga(e,t,n){return{start:t,end:n=n||ma(e),source:e.originalSource.slice(t.offset,n.offset)}}function va(e){return e[e.length-1]}function ya(e,t){return e.startsWith(t)}function ba(e,t){const{source:n}=e;Il(e,n,t),e.source=n.slice(t)}function _a(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&ba(e,t[0].length)}function Sa(e,t,n){return jl(t,e.originalSource.slice(t.offset,n),n)}function wa(e,t,n){const o=e.source;switch(t){case 0:if(ya(o,"=0;--e)if(xa(o,n[e].tag))return!0;break;case 1:case 2:{const e=va(n);if(e&&xa(o,e.tag))return!0;break}case 3:if(ya(o,"]]>"))return!0}return!o}function xa(e,t){return ya(e,"]/.test(e[2+t.length]||">")}function Ca(e,t){ka(e,t,Ta(e,e.children[0]))}function Ta(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!ql(t)}function ka(e,t,n=!1){const{children:o}=e,r=o.length;let s=0;for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),s++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=Ra(e);if((!n||512===n||1===n)&&Aa(r,t)>=2){const n=$a(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}else 12===r.type&&Ea(r.content,t)>=2&&(r.codegenNode=t.hoist(r.codegenNode),s++);if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,ka(r,t),e&&t.scopes.vSlot--}else if(11===r.type)ka(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(Hl))return;const s=[];for(let i=0;i3||!1;t.push("["),n&&t.indent(),ja(e,t,n),n&&t.deindent(),t.push("]")}function ja(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let i=0;ie||"null"))}([s,i,c,l,a]),t),n(")"),d&&n(")"),u&&(n(", "),Ia(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=L(e.callee)?e.callee:o(e.callee);r&&n("/*#__PURE__*/"),n(s+"(",e),ja(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",e);const c=i.length>1||!1;n(c?"{":"{ "),c&&o();for(let e=0;e "),(l||c)&&(n("{"),o()),i?(l&&n("return "),$(i)?La(i,t):Ia(i,t)):c&&Ia(c,t),(l||c)&&(r(),n("}")),a&&n(")")}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:i,indent:c,deindent:l,newline:a}=t;if(4===n.type){const e=!$l(n.content);e&&i("("),Fa(n,t),e&&i(")")}else i("("),Ia(n,t),i(")");s&&c(),t.indentLevel++,s||i(" "),i("? "),Ia(o,t),t.indentLevel--,s&&a(),s||i(" "),i(": ");const u=19===r.type;u||t.indentLevel++,Ia(r,t),u||t.indentLevel--,s&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(`${o(ll)}(-1),`),i()),n(`_cache[${e.index}] = `),Ia(e.value,t),e.isVNode&&(n(","),i(),n(`${o(ll)}(1),`),i(),n(`_cache[${e.index}]`),s()),n(")")}(e,t);break;case 21:ja(e.body,t,!0,!1)}}function Fa(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,e)}function Va(e,t){for(let n=0;nfunction(e,t,n,o){if("else"===t.name||t.exp&&t.exp.content.trim()||(t.exp=wl("true",!1,t.exp?t.exp.loc:e.loc)),"if"===t.name){const r=Ha(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const i=r[s];if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){n.removeNode();const r=Ha(e,t);i.branches.push(r);const s=o&&o(i,r,!1);Ma(r,n),s&&s(),n.currentNode=null}break}n.removeNode(i)}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),i=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(o)e.codegenNode=za(t,i,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=za(t,i+e.branches.length-1,n)}}}))));function Ha(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||Fl(e,"for")?[e]:e.children,userKey:Vl(e,"key")}}function za(e,t,n){return e.condition?kl(e.condition,qa(e,t,n),Cl(n.helper(Uc),['""',"true"])):qa(e,t,n)}function qa(e,t,n){const{helper:o}=n,r=Sl("key",wl(`${t}`,!1,vl,2)),{children:s}=e,i=s[0];if(1!==s.length||1!==i.type){if(1===s.length&&11===i.type){const e=i.codegenNode;return Yl(e,r,n),e}{let t=64;return yl(n,o($c),_l([r]),s,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(c=e).type&&c.callee===fl?c.arguments[1].returns:c;return 13===t.type&&Zl(t,n),Yl(t,r,n),e}var c}const Ka=Pa("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return;const r=Ya(t.exp);if(!r)return;const{scopes:s}=n,{source:i,value:c,key:l,index:a}=r,u={type:11,loc:t.loc,source:i,valueAlias:c,keyAlias:l,objectIndexAlias:a,parseResult:r,children:zl(e)?e.children:[e]};n.replaceNode(u),s.vFor++;const d=o&&o(u);return()=>{s.vFor--,d&&d()}}(e,t,n,(t=>{const s=Cl(o(Jc),[t.source]),i=zl(e),c=Fl(e,"memo"),l=Vl(e,"key"),a=l&&(6===l.type?wl(l.value.content,!0):l.exp),u=l?Sl("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:l?128:256;return t.codegenNode=yl(n,o($c),void 0,s,p+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let l;const{children:p}=t,h=1!==p.length||1!==p[0].type,f=ql(e)?e:i&&1===e.children.length&&ql(e.children[0])?e.children[0]:null;if(f?(l=f.codegenNode,i&&u&&Yl(l,u,n)):h?l=yl(n,o($c),u?_l([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(l=p[0].codegenNode,i&&u&&Yl(l,u,n),l.isBlock!==!d&&(l.isBlock?(r(Lc),r(Gl(n.inSSR,l.isComponent))):r(Kl(n.inSSR,l.isComponent))),l.isBlock=!d,l.isBlock?(o(Lc),o(Gl(n.inSSR,l.isComponent))):o(Kl(n.inSSR,l.isComponent))),c){const e=Tl(Za(t.parseResult,[wl("_cached")]));e.body={type:21,body:[xl(["const _memo = (",c.exp,")"]),xl(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(ml)}(_cached, _memo)) return _cached`]),xl(["const _item = ",l]),wl("_item.memo = _memo"),wl("return _item")],loc:vl},s.arguments.push(e,wl("_cache"),wl(String(n.cached++)))}else s.arguments.push(Tl(Za(t.parseResult),l,!0))}}))})),Ga=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Wa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ja=/^\(|\)$/g;function Ya(e,t){const n=e.loc,o=e.content,r=o.match(Ga);if(!r)return;const[,s,i]=r,c={source:Qa(n,i.trim(),o.indexOf(i,s.length)),value:void 0,key:void 0,index:void 0};let l=s.trim().replace(Ja,"").trim();const a=s.indexOf(l),u=l.match(Wa);if(u){l=l.replace(Wa,"").trim();const e=u[1].trim();let t;if(e&&(t=o.indexOf(e,a+l.length),c.key=Qa(n,e,t)),u[2]){const r=u[2].trim();r&&(c.index=Qa(n,r,o.indexOf(r,c.key?t+e.length:a+l.length)))}}return l&&(c.value=Qa(n,l,a)),c}function Qa(e,t,n){return wl(t,!1,Ll(e,n,t.length))}function Za({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||wl("_".repeat(t+1),!1)))}([e,t,n,...o])}const Xa=wl("undefined",!1),eu=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)&&Fl(e,"slot"))return t.scopes.vSlot++,()=>{t.scopes.vSlot--}},tu=(e,t,n)=>Tl(e,t,!1,!0,t.length?t[0].loc:n);function nu(e,t,n=tu){t.helper(dl);const{children:o,loc:r}=e,s=[],i=[];let c=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Fl(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!El(e)&&(c=!0),s.push(Sl(e||wl("default",!0),n(t,o,r)))}let a=!1,u=!1;const d=[],p=new Set;for(let e=0;eSl("default",n(e,t,r));a?d.length&&d.some((e=>su(e)))&&(u||s.push(e(void 0,d))):s.push(e(void 0,o))}const h=c?2:ru(e.children)?3:1;let f=_l(s.concat(Sl("_",wl(h+"",!1))),r);return i.length&&(f=Cl(t.helper(Qc),[f,bl(i)])),{slots:f,hasDynamicSlots:c}}function ou(e,t){return _l([Sl("name",e),Sl("fn",t)])}function ru(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let s,i,c,l,a,u,d=r?function(e,t,n=!1){let{tag:o}=e;const r=du(o),s=Vl(e,"is");if(s)if(r){const e=6===s.type?s.value&&wl(s.value.content,!0):s.exp;if(e)return Cl(t.helper(qc),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(o=s.value.content.slice(4));const i=!r&&Fl(e,"is");if(i&&i.exp)return Cl(t.helper(qc),[i.exp]);const c=Ol(o)||t.isBuiltInComponent(o);return c?(n||t.helper(c),c):(t.helper(zc),t.components.add(o),Ql(o,"component"))}(e,t):`"${n}"`,p=0,h=I(d)&&d.callee===qc||d===Rc||d===Mc||!r&&("svg"===n||"foreignObject"===n);if(o.length>0){const n=lu(e,t);s=n.props,p=n.patchFlag,a=n.dynamicPropNames;const o=n.directives;u=o&&o.length?bl(o.map((e=>function(e,t){const n=[],o=iu.get(e);o?n.push(t.helperString(o)):(t.helper(Kc),t.directives.add(e.name),n.push(Ql(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=wl("true",!1,r);n.push(_l(e.modifiers.map((e=>Sl(e,t))),r))}return bl(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0)if(d===Pc&&(h=!0,p|=1024),r&&d!==Rc&&d!==Pc){const{slots:n,hasDynamicSlots:o}=nu(e,t);i=n,o&&(p|=1024)}else if(1===e.children.length&&d!==Rc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Ea(n,t)&&(p|=1),i=r||2===o?n:e.children}else i=e.children;0!==p&&(c=String(p),a&&a.length&&(l=function(e){let t="[";for(let n=0,o=e.length;n0;let p=!1,h=0,f=!1,m=!1,g=!1,v=!1,y=!1,b=!1;const _=[],S=({key:e,value:n})=>{if(El(e)){const o=e.content,r=T(o);if(c||!r||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||z(o)||(v=!0),r&&z(o)&&(b=!0),20===n.type||(4===n.type||8===n.type)&&Ea(n,t)>0)return;"ref"===o?f=!0:"class"===o?m=!0:"style"===o?g=!0:"key"===o||_.includes(o)||_.push(o),!c||"class"!==o&&"style"!==o||_.includes(o)||_.push(o)}else y=!0};for(let i=0;i0&&l.push(Sl(wl("ref_for",!0),wl("true")))),"is"===n&&(du(r)||o&&o.content.startsWith("vue:")))continue;l.push(Sl(wl(n,!0,Ll(e,0,n.length)),wl(o?o.content:"",s,o?o.loc:e)))}else{const{name:n,arg:i,exp:h,loc:f}=c,m="bind"===n,g="on"===n;if("slot"===n)continue;if("once"===n||"memo"===n)continue;if("is"===n||m&&Ul(i,"is")&&du(r))continue;if(g&&o)continue;if((m&&Ul(i,"key")||g&&d&&Ul(i,"vue:before-update"))&&(p=!0),m&&Ul(i,"ref")&&t.scopes.vFor>0&&l.push(Sl(wl("ref_for",!0),wl("true"))),!i&&(m||g)){y=!0,h&&(l.length&&(a.push(_l(au(l),s)),l=[]),a.push(m?h:{type:14,loc:f,callee:t.helper(rl),arguments:[h]}));continue}const v=t.directiveTransforms[n];if(v){const{props:n,needRuntime:r}=v(c,e,t);!o&&n.forEach(S),l.push(...n),r&&(u.push(c),j(r)&&iu.set(c,r))}else q(n)||(u.push(c),d&&(p=!0))}}let w;if(a.length?(l.length&&a.push(_l(au(l),s)),w=a.length>1?Cl(t.helper(Xc),a,s):a[0]):l.length&&(w=_l(au(l),s)),y?h|=16:(m&&!c&&(h|=2),g&&!c&&(h|=4),_.length&&(h|=8),v&&(h|=32)),p||0!==h&&32!==h||!(f||b||u.length>0)||(h|=512),!t.inSSR&&w)switch(w.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(ql(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:s}=lu(e,t,r);n=o}return{slotName:o,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let c=2;s&&(i[2]=s,c=3),n.length&&(i[3]=Tl([],n,!1,!1,o),c=4),t.scopeId&&!t.slotted&&(c=5),i.splice(c),e.codegenNode=Cl(t.helper(Yc),i,o)}},hu=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,fu=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:i}=e;let c;if(4===i.type)if(i.isStatic){let e=i.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),c=wl(Z(W(e)),!0,i.loc)}else c=xl([`${n.helperString(cl)}(`,i,")"]);else c=i,c.children.unshift(`${n.helperString(cl)}(`),c.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let a=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=Bl(l.content),t=!(e||hu.test(l.content)),n=l.content.includes(";");(t||a&&e)&&(l=xl([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[Sl(c,l||wl("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},mu=(e,t,n)=>{const{exp:o,modifiers:r,loc:s}=e,i=e.arg;return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),r.includes("camel")&&(4===i.type?i.content=i.isStatic?W(i.content):`${n.helperString(sl)}(${i.content})`:(i.children.unshift(`${n.helperString(sl)}(`),i.children.push(")"))),n.inSSR||(r.includes("prop")&&gu(i,"."),r.includes("attr")&&gu(i,"^")),!o||4===o.type&&!o.content.trim()?{props:[Sl(i,wl("",!0,s))]}:{props:[Sl(i,o)]}},gu=(e,t)=>{4===e.type?e.content=e.isStatic?t+e.content:`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},vu=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name])))))for(let e=0;e{if(1===e.type&&Fl(e,"once",!0)){if(yu.has(e)||t.inVOnce)return;return yu.add(e),t.inVOnce=!0,t.helper(ll),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},_u=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return Su();const s=o.loc.source,i=4===o.type?o.content:s;if(!i.trim()||!Bl(i))return Su();const c=r||wl("modelValue",!0),l=r?El(r)?`onUpdate:${r.content}`:xl(['"onUpdate:" + ',r]):"onUpdate:modelValue";let a;a=xl([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const u=[Sl(c,e.exp),Sl(l,a)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>($l(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?El(r)?`${r.content}Modifiers`:xl([r,' + "Modifiers"']):"modelModifiers";u.push(Sl(n,wl(`{ ${t} }`,!1,e.loc,2)))}return Su(u)};function Su(e=[]){return{props:e}}const wu=new WeakSet,xu=(e,t)=>{if(1===e.type){const n=Fl(e,"memo");if(!n||wu.has(e))return;return wu.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Zl(o,t),e.codegenNode=Cl(t.helper(fl),[n.exp,Tl(void 0,o),"_cache",String(t.cached++)]))}}};function Cu(e,t={}){const n=t.onError||Nc,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ac(46)):o&&n(Ac(47)),t.cacheHandlers&&n(Ac(48)),t.scopeId&&!o&&n(Ac(49));const r=L(e)?function(e,t={}){const n=function(e,t){const n=E({},ta);let o;for(o in t)n[o]=void 0===t[o]?ta[o]:t[o];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),o=ma(n);return function(e,t=vl){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(na(n,0,[]),ga(n,o))}(e,t):e,[s,i]=[[bu,Da,xu,Ka,pu,cu,eu,vu],{on:fu,bind:mu,model:_u}];return function(e,t){const n=function(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,cacheHandlers:r=!1,nodeTransforms:s=[],directiveTransforms:i={},transformHoist:c=null,isBuiltInComponent:l=w,isCustomElement:a=w,expressionPlugins:u=[],scopeId:d=null,slotted:p=!0,ssr:h=!1,inSSR:f=!1,ssrCssVars:m="",bindingMetadata:g=_,inline:v=!1,isTS:y=!1,onError:b=Nc,onWarn:S=Oc,compatConfig:x}){const C=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),T={selfName:C&&Q(W(C[1])),prefixIdentifiers:n,hoistStatic:o,cacheHandlers:r,nodeTransforms:s,directiveTransforms:i,transformHoist:c,isBuiltInComponent:l,isCustomElement:a,expressionPlugins:u,scopeId:d,slotted:p,ssr:h,inSSR:f,ssrCssVars:m,bindingMetadata:g,inline:v,isTS:y,onError:b,onWarn:S,compatConfig:x,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=T.helpers.get(e)||0;return T.helpers.set(e,t+1),e},removeHelper(e){const t=T.helpers.get(e);if(t){const n=t-1;n?T.helpers.set(e,n):T.helpers.delete(e)}},helperString:e=>`_${gl[T.helper(e)]}`,replaceNode(e){T.parent.children[T.childIndex]=T.currentNode=e},removeNode(e){const t=e?T.parent.children.indexOf(e):T.currentNode?T.childIndex:-1;e&&e!==T.currentNode?T.childIndex>t&&(T.childIndex--,T.onNodeRemoved()):(T.currentNode=null,T.onNodeRemoved()),T.parent.children.splice(t,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){L(e)&&(e=wl(e)),T.hoists.push(e);const t=wl(`_hoisted_${T.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:vl}}(T.cached++,e,t)};return T}(e,t);Ma(e,n),t.hoistStatic&&Ca(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Ta(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Zl(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;e.codegenNode=yl(t,n($c),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached}(r,E({},t,{prefixIdentifiers:!1,nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:E({},i,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:c="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:s,optimizeImports:i,runtimeGlobalName:c,runtimeModuleName:l,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${gl[e]}`,push(e,t){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e))}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:i,deindent:c,newline:l,ssr:a}=n,u=e.helpers.length>0,d=!s&&"module"!==o;if(function(e,t){const{push:n,newline:o,runtimeGlobalName:r}=t,s=r;e.helpers.length>0&&(n(`const _Vue = ${s}\n`),e.hoists.length)&&n(`const { ${[Fc,Vc,Uc,Dc,Hc].filter((t=>e.helpers.includes(t))).map((e=>`${gl[e]}: _${gl[e]}`)).join(", ")} } = _Vue\n`),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o();for(let r=0;r`${gl[e]}: _${gl[e]}`)).join(", ")} } = _Vue`),r("\n"),l())),e.components.length&&(Ba(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Ba(e.directives,"directive",n),e.temps>0&&l()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n"),l()),a||r("return "),e.codegenNode?Ia(e.codegenNode,n):r("null"),d&&(c(),r("}")),c(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(r,E({},t,{prefixIdentifiers:!1}))}const Tu=Symbol(""),ku=Symbol(""),Eu=Symbol(""),Nu=Symbol(""),Ou=Symbol(""),Au=Symbol(""),$u=Symbol(""),Ru=Symbol(""),Mu=Symbol(""),Pu=Symbol("");var Bu;let Lu;Bu={[Tu]:"vModelRadio",[ku]:"vModelCheckbox",[Eu]:"vModelText",[Nu]:"vModelSelect",[Ou]:"vModelDynamic",[Au]:"withModifiers",[$u]:"withKeys",[Ru]:"vShow",[Mu]:"Transition",[Pu]:"TransitionGroup"},Object.getOwnPropertySymbols(Bu).forEach((e=>{gl[e]=Bu[e]}));const ju=o("style,iframe,script,noscript",!0),Iu={isVoidTag:m,isNativeTag:e=>h(e)||f(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Lu||(Lu=document.createElement("div")),t?(Lu.innerHTML=`
`,Lu.children[0].getAttribute("foo")):(Lu.innerHTML=e,Lu.textContent)},isBuiltInComponent:e=>Nl(e,"Transition")?Mu:Nl(e,"TransitionGroup")?Pu:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(ju(e))return 2}return 0}},Fu=(e,t)=>{const n=u(e);return wl(JSON.stringify(n),!1,t,3)},Vu=o("passive,once,capture"),Uu=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Du=o("left,right"),Hu=o("onkeyup,onkeydown,onkeypress",!0),zu=(e,t)=>El(e)&&"onclick"===e.content.toLowerCase()?wl(t,!0):4!==e.type?xl(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,qu=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Ku=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:wl("style",!0,t.loc),exp:Fu(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Gu={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[Sl(wl("innerHTML",!0,r),o||wl("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return t.children.length&&(t.children.length=0),{props:[Sl(wl("textContent",!0),o?Cl(n.helperString(Zc),[o],r):wl("",!0))]}},model:(e,t,n)=>{const o=_u(e,t,n);if(!o.props.length||1===t.tagType)return o;const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let e=Eu,i=!1;if("input"===r||s){const n=Vl(t,"type");if(n){if(7===n.type)e=Ou;else if(n.value)switch(n.value.content){case"radio":e=Tu;break;case"checkbox":e=ku;break;case"file":i=!0}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(e=Ou)}else"select"===r&&(e=Nu);i||(o.needRuntime=n.helper(e))}return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>fu(e,0,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:c,eventOptionModifiers:l}=((e,t,n,o)=>{const r=[],s=[],i=[];for(let n=0;n({props:[],needRuntime:n.helper(Ru)})},Wu=Object.create(null);function Ju(e,t){if(!L(e)){if(!e.nodeType)return w;e=e.innerHTML}const n=e,o=Wu[n];if(o)return o;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const{code:r}=function(e,t={}){return Cu(e,E({},Iu,t,{nodeTransforms:[qu,...Ku,...t.nodeTransforms||[]],directiveTransforms:E({},Gu,t.directiveTransforms||{}),transformHoist:null}))}(e,E({hoistStatic:!0,onError:void 0,onWarn:w},t)),s=new Function("Vue",r)(Ec);return s._rc=!0,Wu[n]=s}Os(Ju)},989:(e,t,n)=>{n.r(t),n.d(t,{Store:()=>j,createLogger:()=>G,createNamespacedHelpers:()=>H,createStore:()=>L,default:()=>Z,mapActions:()=>D,mapGetters:()=>U,mapMutations:()=>V,mapState:()=>F,storeKey:()=>a,useStore:()=>u});var o=n(798);function r(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==n.g?n.g:{}}const s="function"==typeof Proxy;let i,c;class l{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const o={};if(e.settings)for(const t in e.settings){const n=e.settings[t];o[t]=n.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let s=Object.assign({},o);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(s,t)}catch(e){}this.fallbacks={getSettings:()=>s,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}s=e},now:()=>{return void 0!==i||("undefined"!=typeof window&&window.performance?(i=!0,c=window.performance):void 0!==n.g&&(null===(e=n.g.perf_hooks)||void 0===e?void 0:e.performance)?(i=!0,c=n.g.perf_hooks.performance):i=!1),i?c.now():Date.now();var e}},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}var a="store";function u(e){return void 0===e&&(e=null),(0,o.inject)(null!==e?e:a)}function d(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,o=(n=function(t){return t.original===e},t.filter(n)[0]);if(o)return o.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=d(e[n],t)})),r}function p(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function h(e){return null!==e&&"object"==typeof e}function f(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function m(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;v(e,n,[],e._modules.root,!0),g(e,n,t)}function g(e,t,n){var r=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,i={};p(s,(function(t,n){i[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return i[n]()},enumerable:!0})})),e._state=(0,o.reactive)({data:t}),e.strict&&function(e){(0,o.watch)((function(){return e._state.data}),(function(){}),{deep:!0,flush:"sync"})}(e),r&&n&&e._withCommit((function(){r.data=null}))}function v(e,t,n,o,r){var s=!n.length,i=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=o),!s&&!r){var c=b(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){c[l]=o.state}))}var a=o.context=function(e,t,n){var o=""===t,r={dispatch:o?e.dispatch:function(n,o,r){var s=_(n,o,r),i=s.payload,c=s.options,l=s.type;return c&&c.root||(l=t+l),e.dispatch(l,i)},commit:o?e.commit:function(n,o,r){var s=_(n,o,r),i=s.payload,c=s.options,l=s.type;c&&c.root||(l=t+l),e.commit(l,i,c)}};return Object.defineProperties(r,{getters:{get:o?function(){return e.getters}:function(){return y(e,t)}},state:{get:function(){return b(e.state,n)}}}),r}(e,i,n);o.forEachMutation((function(t,n){!function(e,t,n,o){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,o.state,t)}))}(e,i+n,t,a)})),o.forEachAction((function(t,n){var o=t.root?n:i+n,r=t.handler||t;!function(e,t,n,o){(e._actions[t]||(e._actions[t]=[])).push((function(t){var r,s=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},t);return(r=s)&&"function"==typeof r.then||(s=Promise.resolve(s)),e._devtoolHook?s.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):s}))}(e,o,r,a)})),o.forEachGetter((function(t,n){!function(e,t,n,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(o.state,o.getters,e.state,e.getters)})}(e,i+n,t,a)})),o.forEachChild((function(o,s){v(e,t,n.concat(s),o,r)}))}function y(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,o)===t){var s=r.slice(o);Object.defineProperty(n,s,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function b(e,t){return t.reduce((function(e,t){return e[t]}),e)}function _(e,t,n){return h(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var S="vuex:mutations",w="vuex:actions",x="vuex",C=0;function T(e,t){!function(e,t){const n=e,o=r(),i=r().__VUE_DEVTOOLS_GLOBAL_HOOK__,c=s&&n.enableEarlyProxy;if(!i||!o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&c){const e=c?new l(n,i):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else i.emit("devtools-plugin:setup",e,t)}({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(n){n.addTimelineLayer({id:S,label:"Vuex Mutations",color:k}),n.addTimelineLayer({id:w,label:"Vuex Actions",color:k}),n.addInspector({id:x,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===x)if(n.filter){var o=[];A(o,t._modules.root,n.filter,""),n.rootNodes=o}else n.rootNodes=[O(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===x){var o=n.nodeId;y(t,o),n.state=function(e,t,n){t="root"===n?t:t[n];var o=Object.keys(t),r={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(o.length){var s=function(e){var t={};return Object.keys(e).forEach((function(n){var o=n.split("/");if(o.length>1){var r=t,s=o.pop();o.forEach((function(e){r[e]||(r[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),r=r[e]._custom.value})),r[s]=$((function(){return e[n]}))}else t[n]=$((function(){return e[n]}))})),t}(t);r.getters=Object.keys(s).map((function(e){return{key:e.endsWith("/")?N(e):e,editable:!1,value:$((function(){return s[e]}))}}))}return r}((r=t._modules,(i=(s=o).split("/").filter((function(e){return e}))).reduce((function(e,t,n){var o=e[t];if(!o)throw new Error('Missing module "'+t+'" for path "'+s+'".');return n===i.length-1?o:o._children}),"root"===s?r:r.root._children)),"root"===o?t.getters:t._makeLocalGettersCache,o)}var r,s,i})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===x){var o=n.nodeId,r=n.path;"root"!==o&&(r=o.split("/").filter(Boolean).concat(r)),t._withCommit((function(){n.set(t._state.data,r,n.state.value)}))}})),t.subscribe((function(e,t){var o={};e.payload&&(o.payload=e.payload),o.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(x),n.sendInspectorState(x),n.addTimelineEvent({layerId:S,event:{time:Date.now(),title:e.type,data:o}})})),t.subscribeAction({before:function(e,t){var o={};e.payload&&(o.payload=e.payload),e._id=C++,e._time=Date.now(),o.state=t,n.addTimelineEvent({layerId:w,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:o}})},after:function(e,t){var o={},r=Date.now()-e._time;o.duration={_custom:{type:"duration",display:r+"ms",tooltip:"Action duration",value:r}},e.payload&&(o.payload=e.payload),o.state=t,n.addTimelineEvent({layerId:w,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:o}})}})}))}var k=8702998,E={label:"namespaced",textColor:16777215,backgroundColor:6710886};function N(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function O(e,t){return{id:t||"root",label:N(t),tags:e.namespaced?[E]:[],children:Object.keys(e._children).map((function(n){return O(e._children[n],t+n+"/")}))}}function A(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[E]:[]}),Object.keys(t._children).forEach((function(r){A(e,t._children[r],n,o+r+"/")}))}function $(e){try{return e()}catch(e){return e}}var R=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},M={namespaced:{configurable:!0}};M.namespaced.get=function(){return!!this._rawModule.namespaced},R.prototype.addChild=function(e,t){this._children[e]=t},R.prototype.removeChild=function(e){delete this._children[e]},R.prototype.getChild=function(e){return this._children[e]},R.prototype.hasChild=function(e){return e in this._children},R.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},R.prototype.forEachChild=function(e){p(this._children,e)},R.prototype.forEachGetter=function(e){this._rawModule.getters&&p(this._rawModule.getters,e)},R.prototype.forEachAction=function(e){this._rawModule.actions&&p(this._rawModule.actions,e)},R.prototype.forEachMutation=function(e){this._rawModule.mutations&&p(this._rawModule.mutations,e)},Object.defineProperties(R.prototype,M);var P=function(e){this.register([],e,!1)};function B(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return;B(e.concat(o),t.getChild(o),n.modules[o])}}function L(e){return new j(e)}P.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},P.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},P.prototype.update=function(e){B([],this.root,e)},P.prototype.register=function(e,t,n){var o=this;void 0===n&&(n=!0);var r=new R(t,n);0===e.length?this.root=r:this.get(e.slice(0,-1)).addChild(e[e.length-1],r),t.modules&&p(t.modules,(function(t,r){o.register(e.concat(r),t,n)}))},P.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],o=t.getChild(n);o&&o.runtime&&t.removeChild(n)},P.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var j=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1);var r=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new P(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=r;var s=this,i=this.dispatch,c=this.commit;this.dispatch=function(e,t){return i.call(s,e,t)},this.commit=function(e,t,n){return c.call(s,e,t,n)},this.strict=o;var l=this._modules.root.state;v(this,l,[],this._modules.root),g(this,l),n.forEach((function(e){return e(t)}))},I={state:{configurable:!0}};j.prototype.install=function(e,t){e.provide(t||a,this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&T(e,this)},I.state.get=function(){return this._state.data},I.state.set=function(e){},j.prototype.commit=function(e,t,n){var o=this,r=_(e,t,n),s=r.type,i=r.payload,c=(r.options,{type:s,payload:i}),l=this._mutations[s];l&&(this._withCommit((function(){l.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(c,o.state)})))},j.prototype.dispatch=function(e,t){var n=this,o=_(e,t),r=o.type,s=o.payload,i={type:r,payload:s},c=this._actions[r];if(c){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,n.state)}))}catch(e){}var l=c.length>1?Promise.all(c.map((function(e){return e(s)}))):c[0](s);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,n.state)}))}catch(e){}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,n.state,e)}))}catch(e){}t(e)}))}))}},j.prototype.subscribe=function(e,t){return f(e,this._subscribers,t)},j.prototype.subscribeAction=function(e,t){return f("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},j.prototype.watch=function(e,t,n){var r=this;return(0,o.watch)((function(){return e(r.state,r.getters)}),t,Object.assign({},n))},j.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},j.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),n.preserveState),g(this,this.state)},j.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete b(t.state,e.slice(0,-1))[e[e.length-1]]})),m(this)},j.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},j.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},j.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(j.prototype,I);var F=q((function(e,t){var n={};return z(t).forEach((function(t){var o=t.key,r=t.val;n[o]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var o=K(this.$store,0,e);if(!o)return;t=o.context.state,n=o.context.getters}return"function"==typeof r?r.call(this,t,n):t[r]},n[o].vuex=!0})),n})),V=q((function(e,t){var n={};return z(t).forEach((function(t){var o=t.key,r=t.val;n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var o=this.$store.commit;if(e){var s=K(this.$store,0,e);if(!s)return;o=s.context.commit}return"function"==typeof r?r.apply(this,[o].concat(t)):o.apply(this.$store,[r].concat(t))}})),n})),U=q((function(e,t){var n={};return z(t).forEach((function(t){var o=t.key,r=t.val;r=e+r,n[o]=function(){if(!e||K(this.$store,0,e))return this.$store.getters[r]},n[o].vuex=!0})),n})),D=q((function(e,t){var n={};return z(t).forEach((function(t){var o=t.key,r=t.val;n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var o=this.$store.dispatch;if(e){var s=K(this.$store,0,e);if(!s)return;o=s.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(t)):o.apply(this.$store,[r].concat(t))}})),n})),H=function(e){return{mapState:F.bind(null,e),mapGetters:U.bind(null,e),mapMutations:V.bind(null,e),mapActions:D.bind(null,e)}};function z(e){return function(e){return Array.isArray(e)||h(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function q(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function K(e,t,n){return e._modulesNamespaceMap[n]}function G(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var o=e.transformer;void 0===o&&(o=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var s=e.actionFilter;void 0===s&&(s=function(e,t){return!0});var i=e.actionTransformer;void 0===i&&(i=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var l=e.logActions;void 0===l&&(l=!0);var a=e.logger;return void 0===a&&(a=console),function(e){var u=d(e.state);void 0!==a&&(c&&e.subscribe((function(e,s){var i=d(s);if(n(e,u,i)){var c=Y(),l=r(e),p="mutation "+e.type+c;W(a,p,t),a.log("%c prev state","color: #9E9E9E; font-weight: bold",o(u)),a.log("%c mutation","color: #03A9F4; font-weight: bold",l),a.log("%c next state","color: #4CAF50; font-weight: bold",o(i)),J(a)}u=i})),l&&e.subscribeAction((function(e,n){if(s(e,n)){var o=Y(),r=i(e),c="action "+e.type+o;W(a,c,t),a.log("%c action","color: #03A9F4; font-weight: bold",r),J(a)}})))}}function W(e,t,n){var o=n?e.groupCollapsed:e.group;try{o.call(e,t)}catch(n){e.log(t)}}function J(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function Y(){var e=new Date;return" @ "+Q(e.getHours(),2)+":"+Q(e.getMinutes(),2)+":"+Q(e.getSeconds(),2)+"."+Q(e.getMilliseconds(),3)}function Q(e,t){return"0",n=t-e.toString().length,new Array(n+1).join("0")+e;var n}const Z={version:"4.0.2",Store:j,storeKey:a,createStore:L,useStore:u,mapState:F,mapMutations:V,mapGetters:U,mapActions:D,createNamespacedHelpers:H,createLogger:G}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.instance=void 0;const t=n(798),r=n(989),s=n(810),i=n(383),c=n(831),l=n(244),a=n(197);function u(e){if("number"!=typeof e)return;const t=document.getElementById(`node${e}`);t instanceof HTMLInputElement&&t.focus()}e.instance=t.createApp({components:{"key-recorder":i.KeyRecorder,"substitution-recorder":c.SubstitutionRecorder,"truth-tree-branch":l.TruthTreeBranchComponent},data:function(){return{assignment,name:assignment?.name??"Untitled",assignmentsByCourse,courseName:assignment?.courseName??"",assignmentName:assignment?.name??"",undoStack:[],redoStack:[]}},computed:{tree(){return this.$store.state.tree},selected(){return this.$store.state.selected},selectedNode(){return this.$store.getters.selectedNode}},methods:{getNodeIconClasses:a.getNodeIconClasses,openFile(){confirm("Opening a file will overwrite the current truth tree. Are you sure that you would like to do this?")&&document.querySelector("#open-file")?.click()},loadFile(e){const t=e.target;if(!(t instanceof HTMLInputElement))return alert("An error occurred while opening the file.");const n=t.files?.[0];if(void 0===n)return alert("You must select a file to open.");const o=new FileReader;o.readAsText(n,"UTF-8"),o.onload=e=>{const t=n.name.endsWith(".willow")?n.name.substring(0,n.name.length-".willow".length):n.name,o=e.target?.result;if("string"!=typeof o)return alert("The selected file does not contain a truth tree. Perhaps you selected the wrong file, or the file has been corrupted.");try{this.undoStack=[],this.redoStack=[],this.$store.commit("select",{id:null}),this.$store.commit("setTree",s.TruthTree.deserialize(o)),this.name=t}catch(e){alert("The selected file does not contain a truth tree. Perhaps you selected the wrong file, or the file has been corrupted."),console.error(e)}}},saveFile(){const e=document.createElement("a");e.href=URL.createObjectURL(new Blob([this.tree.serialize()],{type:"text/plain"})),e.download=`${this.name}.willow`,document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(e.href)},saveFileAs(){const e=prompt("Save as...");null!==e&&(this.name=e,this.saveFile())},recordState(){this.undoStack.push({tree:this.tree.clone(),selected:this.selected}),this.redoStack=[]},undo(){const e=this.undoStack;if(0===e.length)return alert("There is nothing to undo.");this.redoStack.push({tree:this.tree.clone(),selected:this.selected}),this.$store.commit("select",{id:null});const t=e.pop();this.$store.commit("setTree",t.tree),this.$store.commit("select",{id:t.selected,delay:!0})},redo(){const e=this.redoStack;if(0===e.length)return alert("There is nothing to redo.");this.undoStack.push({tree:this.tree.clone(),selected:this.selected}),this.$store.commit("select",{id:null});const t=e.pop();this.$store.commit("setTree",t.tree),this.$store.commit("select",{id:t.selected,delay:!0})},toggleComment(){const e=this.selectedNode;if(null===e)return alert("You must select a statement before doing this.");this.recordState(),e.comment=null===e.comment?"":null},togglePremise(){const e=this.selectedNode;return null===e?alert("You must select a statement before doing this."):this.tree.options.lockedOptions?alert("You may not toggle premises while they are locked."):(this.recordState(),void e.togglePremise())},addStatementBefore(){const e=this.tree;this.recordState(),this.$store.commit("select",{id:e.addNodeBefore("number"==typeof this.selected?this.selected:e.root),delay:!0})},addStatementAfter(){const e=this.tree;this.recordState(),this.$store.commit("select",{id:e.addNodeAfter("number"==typeof this.selected?this.selected:e.rightmostNode()?.id,!1),delay:!0})},createBranch(){const e=this.tree;this.recordState();const t="number"==typeof this.selected?this.selected:e.rightmostNode()?.id;if(null===e.addNodeAfter(t,!0))return alert("You must select a node to perform this action; if there are no nodes then try creating a new tree. If this issue persists, please contact an instructor.");this.$store.commit("select",{id:t,delay:!0})},deleteStatement(){const e=this.tree,t=this.selected;if(null===t)return;if(e.nodes[t].premise&&e.options.lockedOptions)return alert("You may not delete premises while they are locked.");this.recordState();const n=e.deleteNode(t);null!==n?this.$store.commit("select",{id:n,delay:!0}):alert("You may not delete the only statement in a branch.")},deleteBranch(){const e=this.tree,t=this.selected;if(null===t)return;const n=e.getBranchHead(t);if(null===n)return;if(e.branchContainsPremise(n)&&e.options.lockedOptions)return alert("You may not delete branches that contain premises while premises are locked.");this.recordState();const o=e.deleteBranch(n);if(null===o)return alert("You may not delete the root branch.");this.$store.commit("select",{id:o,delay:!0})},moveUp(){const e=this.$store.state.tree,t=this.$store.getters.selectedNode??e.nodes[e.root],n=e.getNode(t.parent);if(null===n)this.$store.commit("select",{id:e.root});else if(n.children.length>1){const o=n.children.indexOf(t.id);o>0?this.$store.commit("select",{id:e.rightmostNode(n.children[o-1])?.id}):this.$store.commit("select",{id:n.id})}else this.$store.commit("select",{id:n.id})},moveDown(){const e=this.$store.state.tree,t=this.$store.getters.selectedNode??e.nodes[e.root];if(t.children.length>0)this.$store.commit("select",{id:t.children[0]});else{let n=t,o=e.getNode(n.parent);for(;null!==o&&o.children[o.children.length-1]===n.id;)n=o,o=e.getNode(n.parent);if(null===o)return;const r=o.children.indexOf(n.id);this.$store.commit("select",{id:o.children[r+1]})}},moveUpBranch(){this.moveUp(),this.$store.commit("select",{id:this.tree.getBranchHead(this.selected)})},moveDownBranch(){this.moveDown(),this.$store.commit("select",{id:this.tree.getBranchTail(this.selected)})},moveUpTree(){this.$store.commit("select",{id:this.tree.root})},moveDownTree(){this.$store.commit("select",{id:this.tree.rightmostNode()?.id})},toggleBranchExpansion(){this.$refs.rootBranch.toggleBranchExpansion()},collapseAllBranches(){this.$refs.rootBranch.collapseAllBranches()},expandAllBranches(){this.$refs.rootBranch.expandAllBranches()},collapseTerminatedBranches(){this.$refs.rootBranch.collapseTerminatedBranches()},checkStatement(){const e=this.selectedNode;if(null===e)return alert("You must select a statement before doing this.");alert(e.getFeedback())},checkTree(){alert(this.tree.isCorrect().message)},toggleDeveloperMode(){this.$store.commit("toggleDeveloperMode")}},mounted:function(){const e=this.assignment?.tree;if(void 0!==e)try{this.$store.commit("setTree",s.TruthTree.deserialize(JSON.stringify(assignment?.tree)))}catch(e){alert("The assigned tree could not be opened. Contact your instructor to resolve this issue."),console.error(e)}},watch:{name(e){window.document.title=`${e} | Willow`}}}).use(r.createStore({state:{shortcuts:{},substitutions:{},developerMode:!1,tree:s.TruthTree.empty(),selected:null},getters:{selectedNode:e=>e.tree.getNode(e.selected)},mutations:{toggleDeveloperMode(e){e.developerMode=!e.developerMode},select(e,t){t={focus:!0,delay:!1,...t},e.selected=t.id,t.focus&&(t.delay?setTimeout((()=>u(t.id)),0):u(t.id))},setSubstitution(e,t){e.substitutions[t.symbol]=t.text},setTree(e,t){e.tree=t}}})).mount("#content")})(),index=o})(); \ No newline at end of file