diff --git a/LICENSE.md b/LICENSE.md index 1461c0a..45c217c 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,9 +1,9 @@ **Academic Innovation Protection License 1.1** -**学术创新保护许可证 1.1 (AIPL-1.1)** +**学术创新保护许可证 1.1 (AIPL-1.1)** **版权所有 (C) 2025 SheepChef** -**序言** +**序言** 在开放源代码软件项目遭到严重抄袭和滥用,大量作者的权益遭受侵犯的背景下,本《学术创新保护许可证》(AIPL)旨在遏制开源作品遭到不正当的使用,与此同时保证大多数正常用户,开源作者和协作者的权利。 @@ -13,13 +13,13 @@ 针对商业利用,本许可证限制被授权人依赖受保护项目获取直接或间接经济利益,参加商业竞赛,获得第三方投资等。特别地,针对媒体和艺术衍生作品,被授权人享有创作、发布和盈利自由,但著作权人保留终止协议的权利。 -本许可证为独立授权框架,与现有主流开源协议体系 (GPL等) 不兼容,使用者应知悉其特殊限制属性。使用本许可证保护的项目,不再是符合开源精神的项目,不符合开源定义(Open Source Definition)。 +本许可证为独立授权框架,与现有主流开源协议体系 (GPL 等) 不兼容,使用者应知悉其特殊限制属性。使用本许可证保护的项目,不再是符合开源精神的项目,不符合开源定义(Open Source Definition)。 第三方组件的权利与义务由其原始许可证独立管辖,本协议仅约束著作权人声明的原创内容。 --- -**第1条 定义** +**第 1 条 定义** 1.1 "本作品"指由著作权人依本许可证发布的原创性代码、文档及相关材料,不含明确标注的第三方组件。 1.2 "衍生作品"指符合下列任一情形的作品: @@ -30,114 +30,110 @@   - 以软件即服务(SaaS)形式提供本作品核心功能;  (c) 任何实质上完全依赖本作品技术方案的成果,包括但不限于:   - 通过反编译/反汇编获得的功能等效实现; -1.3 "学术发表"指在任何具有ISSN/ISBN/DOI等标识的正式学术渠道中,或在任何可能被正式学术渠道引用的平台(包括但不限于arXiv)中,或在第1.7条中定义的学术竞赛中,公开发表包含本作品或其衍生作品的任何内容的行为。 +1.3 "学术发表"指在任何具有 ISSN/ISBN/DOI 等标识的正式学术渠道中,或在任何可能被正式学术渠道引用的平台(包括但不限于 arXiv)中,或在第 1.7 条中定义的学术竞赛中,公开发表包含本作品或其衍生作品的任何内容的行为。 1.4 "著作权人"指对本作品拥有**著作人格权**的自然人、法人或其他法律实体。 -  - 如果本作品作为一个整体由多个不同的著作权人共同完成, -  - 则他们都是本作品的著作权人。 -1.5 "被授权人"指符合下列全部条件的自然人、法人或其他法律实体: - (a) 未处于许可终止状态; - (b) 不是本作品的著作权人。 +1.5 "被授权人"指根据本许可证条款获得使用、修改、分发代码等权利的主体。 1.6 "商业竞赛"指由任何商业实体作为主办、承办、出资或冠名单位的竞赛。 1.7 "学术竞赛"指符合以下任一条件的竞赛:  (a) 由任何获得所在国家或地区主管部门认可的社会组织或学术机构(包括但不限于大学,研究院,科学协会等)作为主办、承办、出资或冠名单位的竞赛。  (b) 由所在国家或地区的市级以上教育主管部门作为主办、承办、出资或冠名单位的竞赛。 -1.8 "本许可证"指AIPL学术创新保护许可证第1.1版。 -1.9 作品的 "源代码" 指对作品进行修改所首选的作品形式。 +1.8 "本许可证"指 AIPL 学术创新保护许可证第 1.1 版。 +1.9 作品的 "源代码" 指对作品进行修改所首选的作品形式。 --- -**第2条 基础授权** +**第 2 条 基础授权** 2.1 在不违反本许可证条款的前提下,被授权人享有以下非独占权利:  (a) 复制、修改、执行本作品; - (b) 在遵守本许可证第6条的前提下,使用本作品进行学术研究; - (c) 依本许可证第3条分发衍生作品。 + (b) 在遵守本许可证第 6 条的前提下,使用本作品进行学术研究; + (c) 依本许可证第 3 条分发衍生作品。 -2.2 著作权人享有自由使用本作品而不受本许可证限制的权利。 -  - 如果本作品作为一个整体由多个不同的著作权人共同完成, -  - 则任何不受本许可证限制的使用,需要得到所有著作权人的同意。 +2.2 著作权人可自由使用其在本作品中的原创内容,不受本许可证限制。若本作品为多位著作权人的合作作品,则: + (a) 各方对自身创作部分保留上述自由使用权; + (b) 使用他人创作内容时,仍须以被授权人身份遵守本许可证条款。 --- -**第3条 分发** +**第 3 条 分发** 3.1 被授权人分发本作品或其衍生作品**必须**同时满足:  (a) 以显著方式提供完整的原始版权声明。  (b) 公开提供完整的对应源代码,并确保不得采用混淆、加密或其他阻碍技术审查的手段。  (c) 以显著方式标注本许可证名称及版本号。 - (d) 采用AIPL-1.1许可证。 + (d) 采用 AIPL-1.1 许可证。 -3.2 被授权人**不得**以提供互联网服务为由,拒绝以可获取的方式提供本作品或其衍生作品的全部对应源代码。 +3.2 被授权人**不得**以提供互联网服务为由,拒绝以可获取的方式提供本作品或其衍生作品的全部对应源代码。 -3.3 禁止被授权人附加任何额外限制条款。 +3.3 禁止被授权人附加任何额外限制条款。 --- -**第4条 商业活动限制** +**第 4 条 商业活动限制** 4.1 未经著作权人书面授权,**禁止**被授权人将本作品或其衍生作品用于:  (a) 直接或间接获取经济利益;  (b) 商业产品开发或服务运营;  (c) 提升企业资产价值;  (d) 竞标,投标等商业竞争行为; - (e) 第1.6条中定义的商业竞赛; + (e) 第 1.6 条中定义的商业竞赛;  (f) 获取任意形式的第三方投资; - (g) 其他任何具有商业性质的行为。 + (g) 其他任何具有商业性质的行为。 4.2 被授权人使用本作品或其衍生作品创作媒体或艺术作品,遵守以下全部条款的,无论是否获得经济利益,无需提前获得商业授权。著作权人保留对相关被授权人终止许可的权利: - (a) 不得使用相关作品参加第1.6条中定义的商业竞赛; - (b) 不得以任何方式损害著作权人的合法权益; + (a) 不得使用相关作品参加第 1.6 条中定义的商业竞赛; + (b) 不得以任何方式损害著作权人的合法权益; -4.3 被授权人将本作品用于第4.1条规定的商业用途前,必须取得著作权人签署的纸质许可文件。 +4.3 被授权人将本作品用于第 4.1 条规定的商业用途前,必须取得著作权人签署的纸质许可文件。 4.4 被授权人若将本作品集成至商业产品中,须自行履行相关法律规定的安全评估义务,包括但不限于向监管部门备案、配合执法机关依法调取数据等法定义务。 --- -**第5条 专利权限制** +**第 5 条 专利权限制** -5.1 被授权人使用本作品,即视为被授权人承诺不就本作品技术方案主张专利保护。 +5.1 被授权人使用本作品,即视为被授权人承诺不就本作品技术方案主张专利保护。 5.2 若被授权人持有与本作品相关的有效专利,应:  (a) 授予所有本作品使用者免许可费的实施权; - (b) 不得主张专利侵权。 + (b) 不得主张专利侵权。 5.3 任何由被授权人发起的针对本作品的专利侵权诉讼,将导致本许可终止。 --- -**第6条 竞争性学术使用限制** +**第 6 条 竞争性学术使用限制** 6.1 未经书面"竞争性学术使用"授权,在本作品著作财产权有效期内,**禁止**被授权人将本作品或其衍生作品用于:  (a) 任何为被授权人获取学术荣誉或资格的行为,如撰写学位论文,完成毕业设计等; - (b) 参加第1.7条中定义的学术竞赛; - (c) 进行第1.3条中定义的学术发表; + (b) 参加第 1.7 条中定义的学术竞赛; + (c) 进行第 1.3 条中定义的学术发表; 6.2 被授权人取得"竞争性学术使用"授权,必须满足以下所有条件:  (a) 提交《竞争性学术使用申请书》,包含:   - 个人的身份证明或组织的资质证明; -  - 拟使用本作品的范围,以及详细用途。 +  - 拟使用本作品的范围,以及详细用途。  (b) 收到著作权人作出的书面许可; - (c) 被授权人获得"竞争性学术使用"授权后,仍须依本许可证第3条分发衍生作品。 + (c) 被授权人获得"竞争性学术使用"授权后,仍须依本许可证第 3 条分发衍生作品。 -6.3 在遵守第6.1条的前提下,被授权人将本作品或其衍生作品用于其他学术用途 (例如:授课,布置作业等),不受限制。 +6.3 在遵守第 6.1 条的前提下,被授权人将本作品或其衍生作品用于其他学术用途 (例如:授课,布置作业等),不受限制。 --- -**第7条 适用排除** +**第 7 条 适用排除** -7.1 本许可证不适用于明确标注不在本许可证保护范围内的内容。 +7.1 本许可证不适用于明确标注不在本许可证保护范围内的内容。 -7.2 不在本许可证保护范围内的内容,遵守其原始许可证条款。 +7.2 不在本许可证保护范围内的内容,遵守其原始许可证条款。 --- -**第8条 法律责任** +**第 8 条 法律责任** 8.1 **禁止**被授权人将本作品或其衍生作品用于违反中华人民共和国法律的用途,包括但不限于:  (a) 网络诈骗;  (b) 洗钱; - (c) 其他违法行为。 + (c) 其他违法行为。 8.2 在使用本作品及其衍生作品前,被授权人需承诺其应用场景符合相关法律法规。 @@ -146,33 +142,32 @@ 8.4 著作权人有权对被授权人的违法滥用行为采取反制措施,包括但不限于:  (a) 法律追诉;  (b) 终止本许可证授予的权利; - (c) 依法向有关部门举报。 - -8.5 本作品"按原样"提供,不包含任何形式的明示或默示保证,包括但不限于适销性、特定目的适用性及不侵权的保证。在任何情况下,无论是在合同、侵权或其他案件中,著作权人均不对因本作品、或因本作品的使用或其他利用而引起的、引发的或与之相关的任何权利主张、损害赔偿或其他责任承担责任。 + (c) 依法向有关部门举报。 +8.5 本作品"按原样"提供,不包含任何形式的明示或默示保证,包括但不限于适销性、特定目的适用性及不侵权的保证。在任何情况下,无论是在合同、侵权或其他案件中,著作权人均不对因本作品、或因本作品的使用或其他利用而引起的、引发的或与之相关的任何权利主张、损害赔偿或其他责任承担责任。 --- -**第9条 许可终止** +**第 9 条 许可终止** 9.1 被授权人违反本许可证的任一条款将自动导致许可终止,且必须:  (a) 销毁所有作品副本;  (b) 撤回已发布的衍生作品;  (c) 撤回已发布的相关媒体或艺术作品;  (d) 在相关学术数据库发布撤销声明; - (e) 向相关竞赛组委会/学术机构提交违规使用告知函; + (e) 向相关竞赛组委会/学术机构提交违规使用告知函;  (f) 如涉嫌违法或侵权,自行承担相关法律责任。 -9.2 第5条所规定的专利条款的效力,不因许可终止而失效。 +9.2 第 5 条所规定的专利条款的效力,不因许可终止而失效。 --- -**第10条 法律管辖和溯及力** +**第 10 条 法律管辖和溯及力** -10.1 本许可证适用中华人民共和国法律,排除其国际私法。 +10.1 本许可证适用中华人民共和国法律,排除其国际私法。 -10.2 本许可证适用于本作品自 2024年9月1日 以来公开发布的所有版本和衍生版本。对于版本发布时使用不同许可证的,以本许可证为准。 +10.2 本许可证适用于本作品自 2024 年 9 月 1 日 以来公开发布的所有版本和衍生版本。对于版本发布时使用不同许可证的,以本许可证为准。 --- -本许可证文本以 CC-NC-ND 4.0 协议许可 \ No newline at end of file +本许可证文本以 CC-NC-ND 4.0 协议许可 diff --git a/docs/assets/index-D1EP5wIh.js b/docs/assets/index-Y14zB65A.js similarity index 81% rename from docs/assets/index-D1EP5wIh.js rename to docs/assets/index-Y14zB65A.js index 6cc50c7..df40ce3 100644 --- a/docs/assets/index-D1EP5wIh.js +++ b/docs/assets/index-Y14zB65A.js @@ -2,41 +2,41 @@ * @vue/shared v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Gi(e,t){const i=new Set(e.split(","));return t?r=>i.has(r.toLowerCase()):r=>i.has(r)}const Fe={},wo=[],Rt=()=>{},xc=()=>!1,Zs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),kp=e=>e.startsWith("onUpdate:"),Be=Object.assign,Cp=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},V4=Object.prototype.hasOwnProperty,Ve=(e,t)=>V4.call(e,t),ne=Array.isArray,_o=e=>ra(e)==="[object Map]",Gs=e=>ra(e)==="[object Set]",lm=e=>ra(e)==="[object Date]",F4=e=>ra(e)==="[object RegExp]",ge=e=>typeof e=="function",Ae=e=>typeof e=="string",dr=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Ap=e=>(We(e)||ge(e))&&ge(e.then)&&ge(e.catch),Lv=Object.prototype.toString,ra=e=>Lv.call(e),z4=e=>ra(e).slice(8,-1),Bv=e=>ra(e)==="[object Object]",Ep=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=Gi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),H4=Gi("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Rd=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},U4=/-(\w)/g,lt=Rd(e=>e.replace(U4,(t,i)=>i?i.toUpperCase():"")),K4=/\B([A-Z])/g,Wi=Rd(e=>e.replace(K4,"-$1").toLowerCase()),Qs=Rd(e=>e.charAt(0).toUpperCase()+e.slice(1)),ko=Rd(e=>e?`on${Qs(e)}`:""),Cr=(e,t)=>!Object.is(e,t),Co=(e,...t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})},Hc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Uc=e=>{const t=Ae(e)?Number(e):NaN;return isNaN(t)?e:t};let cm;const Mv=()=>cm||(cm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),W4="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",q4=Gi(W4);function Os(e){if(ne(e)){const t={};for(let i=0;i{if(i){const r=i.split(Y4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Il(e){let t="";if(Ae(e))t=e;else if(ne(e))for(let i=0;iVn(i,t))}const zv=e=>Ae(e)?e:e==null?"":ne(e)||We(e)&&(e.toString===Lv||!ge(e.toString))?JSON.stringify(e,Hv,2):String(e),Hv=(e,t)=>t&&t.__v_isRef?Hv(e,t.value):_o(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[r,n],s)=>(i[lu(r,s)+" =>"]=n,i),{})}:Gs(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>lu(i))}:dr(t)?lu(t):We(t)&&!ne(t)&&!Bv(t)?String(t):t,lu=(e,t="")=>{var i;return dr(e)?`Symbol(${(i=e.description)!=null?i:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function Gi(e,t){const i=new Set(e.split(","));return t?r=>i.has(r.toLowerCase()):r=>i.has(r)}const Fe={},wo=[],Nt=()=>{},xc=()=>!1,Zs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),kp=e=>e.startsWith("onUpdate:"),Be=Object.assign,Cp=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},M4=Object.prototype.hasOwnProperty,Ve=(e,t)=>M4.call(e,t),ne=Array.isArray,_o=e=>ra(e)==="[object Map]",Gs=e=>ra(e)==="[object Set]",lm=e=>ra(e)==="[object Date]",V4=e=>ra(e)==="[object RegExp]",ge=e=>typeof e=="function",Ae=e=>typeof e=="string",dr=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Ap=e=>(We(e)||ge(e))&&ge(e.then)&&ge(e.catch),Lv=Object.prototype.toString,ra=e=>Lv.call(e),F4=e=>ra(e).slice(8,-1),Bv=e=>ra(e)==="[object Object]",Ep=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=Gi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),z4=Gi("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Nd=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},H4=/-(\w)/g,lt=Nd(e=>e.replace(H4,(t,i)=>i?i.toUpperCase():"")),U4=/\B([A-Z])/g,Wi=Nd(e=>e.replace(U4,"-$1").toLowerCase()),Qs=Nd(e=>e.charAt(0).toUpperCase()+e.slice(1)),ko=Nd(e=>e?`on${Qs(e)}`:""),Cr=(e,t)=>!Object.is(e,t),Co=(e,...t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})},Hc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Uc=e=>{const t=Ae(e)?Number(e):NaN;return isNaN(t)?e:t};let cm;const Mv=()=>cm||(cm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),K4="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",W4=Gi(K4);function Os(e){if(ne(e)){const t={};for(let i=0;i{if(i){const r=i.split(j4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Il(e){let t="";if(Ae(e))t=e;else if(ne(e))for(let i=0;iVn(i,t))}const zv=e=>Ae(e)?e:e==null?"":ne(e)||We(e)&&(e.toString===Lv||!ge(e.toString))?JSON.stringify(e,Hv,2):String(e),Hv=(e,t)=>t&&t.__v_isRef?Hv(e,t.value):_o(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((i,[r,n],s)=>(i[lu(r,s)+" =>"]=n,i),{})}:Gs(t)?{[`Set(${t.size})`]:[...t.values()].map(i=>lu(i))}:dr(t)?lu(t):We(t)&&!ne(t)&&!Bv(t)?String(t):t,lu=(e,t="")=>{var i;return dr(e)?`Symbol(${(i=e.description)!=null?i:t})`:e};/** * @vue/reactivity v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Hi;class xp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Hi,!t&&Hi&&(this.index=(Hi.scopes||(Hi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const i=Hi;try{return Hi=this,t()}finally{Hi=i}}}on(){Hi=this}off(){Hi=this.parent}stop(t){if(this._active){let i,r;for(i=0,r=this.effects.length;i=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),jn()}return this._dirtyLevel>=5}set dirty(t){this._dirtyLevel=t?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Pn,i=Rs;try{return Pn=!0,Rs=this,this._runnings++,dm(this),this.fn()}finally{um(this),this._runnings--,Rs=i,Pn=t}}stop(){this.active&&(dm(this),um(this),this.onStop&&this.onStop(),this.active=!1)}}function d3(e){return e.value}function dm(e){e._trackId++,e._depsLength=0}function um(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{i.dirty&&i.run()});t&&(Be(i,t),t.scope&&Uv(i,t.scope)),(!t||!t.lazy)&&i.run();const r=i.run.bind(i);return r.effect=i,r}function h3(e){e.effect.stop()}let Pn=!0,Lh=0;const qv=[];function qn(){qv.push(Pn),Pn=!1}function jn(){const e=qv.pop();Pn=e===void 0?!0:e}function Sp(){Lh++}function Tp(){for(Lh--;!Lh&&Bh.length;)Bh.shift()()}function jv(e,t,i){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Wv(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Bh=[];function Yv(e,t,i){Sp();for(const r of e.keys()){if(!e.computed&&r.computed&&e.get(r)===r._trackId&&r._runnings>0){r._dirtyLevel=2;continue}let n;r._dirtyLevel{const i=new Map;return i.cleanup=e,i.computed=t,i},Kc=new WeakMap,Ns=Symbol(""),Oh=Symbol("");function Pi(e,t,i){if(Pn&&Rs){let r=Kc.get(e);r||Kc.set(e,r=new Map);let n=r.get(i);n||r.set(i,n=Xv(()=>r.delete(i))),jv(Rs,n)}}function nn(e,t,i,r,n,s){const o=Kc.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(i==="length"&&ne(e)){const l=Number(r);o.forEach((c,d)=>{(d==="length"||!dr(d)&&d>=l)&&a.push(c)})}else switch(i!==void 0&&a.push(o.get(i)),t){case"add":ne(e)?Ep(i)&&a.push(o.get("length")):(a.push(o.get(Ns)),_o(e)&&a.push(o.get(Oh)));break;case"delete":ne(e)||(a.push(o.get(Ns)),_o(e)&&a.push(o.get(Oh)));break;case"set":_o(e)&&a.push(o.get(Ns));break}Sp();for(const l of a)l&&Yv(l,5);Tp()}function f3(e,t){const i=Kc.get(e);return i&&i.get(t)}const p3=Gi("__proto__,__v_isRef,__isVue"),Zv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dr)),hm=m3();function m3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const r=Oe(this);for(let s=0,o=this.length;s{e[t]=function(...i){qn(),Sp();const r=Oe(this)[t].apply(this,i);return Tp(),jn(),r}}),e}function g3(e){dr(e)||(e=String(e));const t=Oe(this);return Pi(t,"has",e),t.hasOwnProperty(e)}class Gv{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,r){const n=this._isReadonly,s=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return s;if(i==="__v_raw")return r===(n?s?r2:i2:s?t2:e2).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=ne(t);if(!n){if(o&&Ve(hm,i))return Reflect.get(hm,i,r);if(i==="hasOwnProperty")return g3}const a=Reflect.get(t,i,r);return(dr(i)?Zv.has(i):p3(i))||(n||Pi(t,"get",i),s)?a:Xt(a)?o&&Ep(i)?a:a.value:We(a)?n?Np(a):Pd(a):a}}class Qv extends Gv{constructor(t=!1){super(!1,t)}set(t,i,r,n){let s=t[i];if(!this._isShallow){const l=Bo(s);if(!Ga(r)&&!Bo(r)&&(s=Oe(s),r=Oe(r)),!ne(t)&&Xt(s)&&!Xt(r))return l?!1:(s.value=r,!0)}const o=ne(t)&&Ep(i)?Number(i)e,Id=e=>Reflect.getPrototypeOf(e);function Ql(e,t,i=!1,r=!1){e=e.__v_raw;const n=Oe(e),s=Oe(t);i||(Cr(t,s)&&Pi(n,"get",t),Pi(n,"get",s));const{has:o}=Id(n),a=r?Rp:i?$p:Qa;if(o.call(n,t))return a(e.get(t));if(o.call(n,s))return a(e.get(s));e!==n&&e.get(t)}function Jl(e,t=!1){const i=this.__v_raw,r=Oe(i),n=Oe(e);return t||(Cr(e,n)&&Pi(r,"has",e),Pi(r,"has",n)),e===n?i.has(e):i.has(e)||i.has(n)}function ec(e,t=!1){return e=e.__v_raw,!t&&Pi(Oe(e),"iterate",Ns),Reflect.get(e,"size",e)}function fm(e){e=Oe(e);const t=Oe(this);return Id(t).has.call(t,e)||(t.add(e),nn(t,"add",e,e)),this}function pm(e,t){t=Oe(t);const i=Oe(this),{has:r,get:n}=Id(i);let s=r.call(i,e);s||(e=Oe(e),s=r.call(i,e));const o=n.call(i,e);return i.set(e,t),s?Cr(t,o)&&nn(i,"set",e,t):nn(i,"add",e,t),this}function mm(e){const t=Oe(this),{has:i,get:r}=Id(t);let n=i.call(t,e);n||(e=Oe(e),n=i.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return n&&nn(t,"delete",e,void 0),s}function gm(){const e=Oe(this),t=e.size!==0,i=e.clear();return t&&nn(e,"clear",void 0,void 0),i}function tc(e,t){return function(r,n){const s=this,o=s.__v_raw,a=Oe(o),l=t?Rp:e?$p:Qa;return!e&&Pi(a,"iterate",Ns),o.forEach((c,d)=>r.call(n,l(c),l(d),s))}}function ic(e,t,i){return function(...r){const n=this.__v_raw,s=Oe(n),o=_o(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=n[e](...r),d=i?Rp:t?$p:Qa;return!t&&Pi(s,"iterate",l?Oh:Ns),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function yn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _3(){const e={get(s){return Ql(this,s)},get size(){return ec(this)},has:Jl,add:fm,set:pm,delete:mm,clear:gm,forEach:tc(!1,!1)},t={get(s){return Ql(this,s,!1,!0)},get size(){return ec(this)},has:Jl,add:fm,set:pm,delete:mm,clear:gm,forEach:tc(!1,!0)},i={get(s){return Ql(this,s,!0)},get size(){return ec(this,!0)},has(s){return Jl.call(this,s,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:tc(!0,!1)},r={get(s){return Ql(this,s,!0,!0)},get size(){return ec(this,!0)},has(s){return Jl.call(this,s,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:tc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=ic(s,!1,!1),i[s]=ic(s,!0,!1),t[s]=ic(s,!1,!0),r[s]=ic(s,!0,!0)}),[e,i,t,r]}const[k3,C3,A3,E3]=_3();function $d(e,t){const i=t?e?E3:A3:e?C3:k3;return(r,n,s)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(Ve(i,n)&&n in r?i:r,n,s)}const x3={get:$d(!1,!1)},S3={get:$d(!1,!0)},T3={get:$d(!0,!1)},R3={get:$d(!0,!0)},e2=new WeakMap,t2=new WeakMap,i2=new WeakMap,r2=new WeakMap;function N3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function I3(e){return e.__v_skip||!Object.isExtensible(e)?0:N3(z4(e))}function Pd(e){return Bo(e)?e:Dd(e,!1,v3,x3,e2)}function n2(e){return Dd(e,!1,b3,S3,t2)}function Np(e){return Dd(e,!0,y3,T3,i2)}function $3(e){return Dd(e,!0,w3,R3,r2)}function Dd(e,t,i,r,n){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=n.get(e);if(s)return s;const o=I3(e);if(o===0)return e;const a=new Proxy(e,o===2?r:i);return n.set(e,a),a}function Ao(e){return Bo(e)?Ao(e.__v_raw):!!(e&&e.__v_isReactive)}function Bo(e){return!!(e&&e.__v_isReadonly)}function Ga(e){return!!(e&&e.__v_isShallow)}function Ip(e){return e?!!e.__v_raw:!1}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}function s2(e){return Object.isExtensible(e)&&Ov(e,"__v_skip",!0),e}const Qa=e=>We(e)?Pd(e):e,$p=e=>We(e)?Np(e):e;class o2{constructor(t,i,r,n){this.getter=t,this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Lo(()=>t(this._value),()=>Eo(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=r}get value(){const t=Oe(this);return(!t._cacheable||t.effect.dirty)&&Cr(t._value,t._value=t.effect.run())&&Eo(t,5),Pp(t),t.effect._dirtyLevel>=2&&Eo(t,3),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function P3(e,t,i=!1){let r,n;const s=ge(e);return s?(r=e,n=Rt):(r=e.get,n=e.set),new o2(r,n,s||!n,i)}function Pp(e){var t;Pn&&Rs&&(e=Oe(e),jv(Rs,(t=e.dep)!=null?t:e.dep=Xv(()=>e.dep=void 0,e instanceof o2?e:void 0)))}function Eo(e,t=5,i,r){e=Oe(e);const n=e.dep;n&&Yv(n,t)}function Xt(e){return!!(e&&e.__v_isRef===!0)}function dt(e){return a2(e,!1)}function D3(e){return a2(e,!0)}function a2(e,t){return Xt(e)?e:new L3(e,t)}class L3{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:Oe(t),this._value=i?t:Qa(t)}get value(){return Pp(this),this._value}set value(t){const i=this.__v_isShallow||Ga(t)||Bo(t);t=i?t:Oe(t),Cr(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=i?t:Qa(t),Eo(this,5))}}function B3(e){Eo(e,5)}function Dp(e){return Xt(e)?e.value:e}function O3(e){return ge(e)?e():Dp(e)}const M3={get:(e,t,i)=>Dp(Reflect.get(e,t,i)),set:(e,t,i,r)=>{const n=e[t];return Xt(n)&&!Xt(i)?(n.value=i,!0):Reflect.set(e,t,i,r)}};function Lp(e){return Ao(e)?e:new Proxy(e,M3)}class V3{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:i,set:r}=t(()=>Pp(this),()=>Eo(this));this._get=i,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function l2(e){return new V3(e)}function F3(e){const t=ne(e)?new Array(e.length):{};for(const i in e)t[i]=c2(e,i);return t}class z3{constructor(t,i,r){this._object=t,this._key=i,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return f3(Oe(this._object),this._key)}}class H3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function U3(e,t,i){return Xt(e)?e:ge(e)?new H3(e):We(e)&&arguments.length>1?c2(e,t,i):dt(e)}function c2(e,t,i){const r=e[t];return Xt(r)?r:new z3(e,t,i)}const K3={GET:"get",HAS:"has",ITERATE:"iterate"},W3={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** +**/let Hi;class xp{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Hi,!t&&Hi&&(this.index=(Hi.scopes||(Hi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const i=Hi;try{return Hi=this,t()}finally{Hi=i}}}on(){Hi=this}off(){Hi=this.parent}stop(t){if(this._active){let i,r;for(i=0,r=this.effects.length;i=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),jn()}return this._dirtyLevel>=5}set dirty(t){this._dirtyLevel=t?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Pn,i=Ns;try{return Pn=!0,Ns=this,this._runnings++,dm(this),this.fn()}finally{um(this),this._runnings--,Ns=i,Pn=t}}stop(){this.active&&(dm(this),um(this),this.onStop&&this.onStop(),this.active=!1)}}function c3(e){return e.value}function dm(e){e._trackId++,e._depsLength=0}function um(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{i.dirty&&i.run()});t&&(Be(i,t),t.scope&&Uv(i,t.scope)),(!t||!t.lazy)&&i.run();const r=i.run.bind(i);return r.effect=i,r}function u3(e){e.effect.stop()}let Pn=!0,Lh=0;const qv=[];function qn(){qv.push(Pn),Pn=!1}function jn(){const e=qv.pop();Pn=e===void 0?!0:e}function Sp(){Lh++}function Tp(){for(Lh--;!Lh&&Bh.length;)Bh.shift()()}function jv(e,t,i){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Wv(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Bh=[];function Yv(e,t,i){Sp();for(const r of e.keys()){if(!e.computed&&r.computed&&e.get(r)===r._trackId&&r._runnings>0){r._dirtyLevel=2;continue}let n;r._dirtyLevel{const i=new Map;return i.cleanup=e,i.computed=t,i},Kc=new WeakMap,Rs=Symbol(""),Oh=Symbol("");function Pi(e,t,i){if(Pn&&Ns){let r=Kc.get(e);r||Kc.set(e,r=new Map);let n=r.get(i);n||r.set(i,n=Xv(()=>r.delete(i))),jv(Ns,n)}}function nn(e,t,i,r,n,s){const o=Kc.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(i==="length"&&ne(e)){const l=Number(r);o.forEach((c,d)=>{(d==="length"||!dr(d)&&d>=l)&&a.push(c)})}else switch(i!==void 0&&a.push(o.get(i)),t){case"add":ne(e)?Ep(i)&&a.push(o.get("length")):(a.push(o.get(Rs)),_o(e)&&a.push(o.get(Oh)));break;case"delete":ne(e)||(a.push(o.get(Rs)),_o(e)&&a.push(o.get(Oh)));break;case"set":_o(e)&&a.push(o.get(Rs));break}Sp();for(const l of a)l&&Yv(l,5);Tp()}function h3(e,t){const i=Kc.get(e);return i&&i.get(t)}const f3=Gi("__proto__,__v_isRef,__isVue"),Zv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dr)),hm=p3();function p3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const r=Oe(this);for(let s=0,o=this.length;s{e[t]=function(...i){qn(),Sp();const r=Oe(this)[t].apply(this,i);return Tp(),jn(),r}}),e}function m3(e){dr(e)||(e=String(e));const t=Oe(this);return Pi(t,"has",e),t.hasOwnProperty(e)}class Gv{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,r){const n=this._isReadonly,s=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return s;if(i==="__v_raw")return r===(n?s?r2:i2:s?t2:e2).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=ne(t);if(!n){if(o&&Ve(hm,i))return Reflect.get(hm,i,r);if(i==="hasOwnProperty")return m3}const a=Reflect.get(t,i,r);return(dr(i)?Zv.has(i):f3(i))||(n||Pi(t,"get",i),s)?a:Xt(a)?o&&Ep(i)?a:a.value:We(a)?n?Rp(a):Pd(a):a}}class Qv extends Gv{constructor(t=!1){super(!1,t)}set(t,i,r,n){let s=t[i];if(!this._isShallow){const l=Bo(s);if(!Ga(r)&&!Bo(r)&&(s=Oe(s),r=Oe(r)),!ne(t)&&Xt(s)&&!Xt(r))return l?!1:(s.value=r,!0)}const o=ne(t)&&Ep(i)?Number(i)e,Id=e=>Reflect.getPrototypeOf(e);function Ql(e,t,i=!1,r=!1){e=e.__v_raw;const n=Oe(e),s=Oe(t);i||(Cr(t,s)&&Pi(n,"get",t),Pi(n,"get",s));const{has:o}=Id(n),a=r?Np:i?$p:Qa;if(o.call(n,t))return a(e.get(t));if(o.call(n,s))return a(e.get(s));e!==n&&e.get(t)}function Jl(e,t=!1){const i=this.__v_raw,r=Oe(i),n=Oe(e);return t||(Cr(e,n)&&Pi(r,"has",e),Pi(r,"has",n)),e===n?i.has(e):i.has(e)||i.has(n)}function ec(e,t=!1){return e=e.__v_raw,!t&&Pi(Oe(e),"iterate",Rs),Reflect.get(e,"size",e)}function fm(e){e=Oe(e);const t=Oe(this);return Id(t).has.call(t,e)||(t.add(e),nn(t,"add",e,e)),this}function pm(e,t){t=Oe(t);const i=Oe(this),{has:r,get:n}=Id(i);let s=r.call(i,e);s||(e=Oe(e),s=r.call(i,e));const o=n.call(i,e);return i.set(e,t),s?Cr(t,o)&&nn(i,"set",e,t):nn(i,"add",e,t),this}function mm(e){const t=Oe(this),{has:i,get:r}=Id(t);let n=i.call(t,e);n||(e=Oe(e),n=i.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return n&&nn(t,"delete",e,void 0),s}function gm(){const e=Oe(this),t=e.size!==0,i=e.clear();return t&&nn(e,"clear",void 0,void 0),i}function tc(e,t){return function(r,n){const s=this,o=s.__v_raw,a=Oe(o),l=t?Np:e?$p:Qa;return!e&&Pi(a,"iterate",Rs),o.forEach((c,d)=>r.call(n,l(c),l(d),s))}}function ic(e,t,i){return function(...r){const n=this.__v_raw,s=Oe(n),o=_o(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=n[e](...r),d=i?Np:t?$p:Qa;return!t&&Pi(s,"iterate",l?Oh:Rs),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function yn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function w3(){const e={get(s){return Ql(this,s)},get size(){return ec(this)},has:Jl,add:fm,set:pm,delete:mm,clear:gm,forEach:tc(!1,!1)},t={get(s){return Ql(this,s,!1,!0)},get size(){return ec(this)},has:Jl,add:fm,set:pm,delete:mm,clear:gm,forEach:tc(!1,!0)},i={get(s){return Ql(this,s,!0)},get size(){return ec(this,!0)},has(s){return Jl.call(this,s,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:tc(!0,!1)},r={get(s){return Ql(this,s,!0,!0)},get size(){return ec(this,!0)},has(s){return Jl.call(this,s,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:tc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=ic(s,!1,!1),i[s]=ic(s,!0,!1),t[s]=ic(s,!1,!0),r[s]=ic(s,!0,!0)}),[e,i,t,r]}const[_3,k3,C3,A3]=w3();function $d(e,t){const i=t?e?A3:C3:e?k3:_3;return(r,n,s)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(Ve(i,n)&&n in r?i:r,n,s)}const E3={get:$d(!1,!1)},x3={get:$d(!1,!0)},S3={get:$d(!0,!1)},T3={get:$d(!0,!0)},e2=new WeakMap,t2=new WeakMap,i2=new WeakMap,r2=new WeakMap;function N3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function R3(e){return e.__v_skip||!Object.isExtensible(e)?0:N3(F4(e))}function Pd(e){return Bo(e)?e:Dd(e,!1,g3,E3,e2)}function n2(e){return Dd(e,!1,y3,x3,t2)}function Rp(e){return Dd(e,!0,v3,S3,i2)}function I3(e){return Dd(e,!0,b3,T3,r2)}function Dd(e,t,i,r,n){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=n.get(e);if(s)return s;const o=R3(e);if(o===0)return e;const a=new Proxy(e,o===2?r:i);return n.set(e,a),a}function Ao(e){return Bo(e)?Ao(e.__v_raw):!!(e&&e.__v_isReactive)}function Bo(e){return!!(e&&e.__v_isReadonly)}function Ga(e){return!!(e&&e.__v_isShallow)}function Ip(e){return e?!!e.__v_raw:!1}function Oe(e){const t=e&&e.__v_raw;return t?Oe(t):e}function s2(e){return Object.isExtensible(e)&&Ov(e,"__v_skip",!0),e}const Qa=e=>We(e)?Pd(e):e,$p=e=>We(e)?Rp(e):e;class o2{constructor(t,i,r,n){this.getter=t,this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Lo(()=>t(this._value),()=>Eo(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=r}get value(){const t=Oe(this);return(!t._cacheable||t.effect.dirty)&&Cr(t._value,t._value=t.effect.run())&&Eo(t,5),Pp(t),t.effect._dirtyLevel>=2&&Eo(t,3),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function $3(e,t,i=!1){let r,n;const s=ge(e);return s?(r=e,n=Nt):(r=e.get,n=e.set),new o2(r,n,s||!n,i)}function Pp(e){var t;Pn&&Ns&&(e=Oe(e),jv(Ns,(t=e.dep)!=null?t:e.dep=Xv(()=>e.dep=void 0,e instanceof o2?e:void 0)))}function Eo(e,t=5,i,r){e=Oe(e);const n=e.dep;n&&Yv(n,t)}function Xt(e){return!!(e&&e.__v_isRef===!0)}function dt(e){return a2(e,!1)}function P3(e){return a2(e,!0)}function a2(e,t){return Xt(e)?e:new D3(e,t)}class D3{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:Oe(t),this._value=i?t:Qa(t)}get value(){return Pp(this),this._value}set value(t){const i=this.__v_isShallow||Ga(t)||Bo(t);t=i?t:Oe(t),Cr(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=i?t:Qa(t),Eo(this,5))}}function L3(e){Eo(e,5)}function Dp(e){return Xt(e)?e.value:e}function B3(e){return ge(e)?e():Dp(e)}const O3={get:(e,t,i)=>Dp(Reflect.get(e,t,i)),set:(e,t,i,r)=>{const n=e[t];return Xt(n)&&!Xt(i)?(n.value=i,!0):Reflect.set(e,t,i,r)}};function Lp(e){return Ao(e)?e:new Proxy(e,O3)}class M3{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:i,set:r}=t(()=>Pp(this),()=>Eo(this));this._get=i,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function l2(e){return new M3(e)}function V3(e){const t=ne(e)?new Array(e.length):{};for(const i in e)t[i]=c2(e,i);return t}class F3{constructor(t,i,r){this._object=t,this._key=i,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return h3(Oe(this._object),this._key)}}class z3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function H3(e,t,i){return Xt(e)?e:ge(e)?new z3(e):We(e)&&arguments.length>1?c2(e,t,i):dt(e)}function c2(e,t,i){const r=e[t];return Xt(r)?r:new F3(e,t,i)}const U3={GET:"get",HAS:"has",ITERATE:"iterate"},K3={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** * @vue/runtime-core v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function q3(e,t){}const j3={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},Y3={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function sn(e,t,i,r){try{return r?e(...r):e()}catch(n){Js(n,t,i)}}function ji(e,t,i,r){if(ge(e)){const n=sn(e,t,i,r);return n&&Ap(n)&&n.catch(s=>{Js(s,t,i)}),n}if(ne(e)){const n=[];for(let s=0;s>>1,n=ai[r],s=el(n);sIr&&ai.splice(t,1)}function Wc(e){ne(e)?xo.push(...e):(!Cn||!Cn.includes(e,e.allowRecurse?os+1:os))&&xo.push(e),u2()}function vm(e,t,i=Ja?Ir+1:0){for(;iel(i)-el(r));if(xo.length=0,Cn){Cn.push(...t);return}for(Cn=t,os=0;ose.id==null?1/0:e.id,Q3=(e,t)=>{const i=el(e)-el(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function h2(e){Mh=!1,Ja=!0,ai.sort(Q3);try{for(Ir=0;Irgo.emit(n,...s)),rc=[]):typeof window<"u"&&window.HTMLElement&&!((r=(i=window.navigator)==null?void 0:i.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{f2(s,t)}),setTimeout(()=>{go||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,rc=[])},3e3)):rc=[]}function J3(e,t,...i){if(e.isUnmounted)return;const r=e.vnode.props||Fe;let n=i;const s=t.startsWith("update:"),o=s&&t.slice(7);if(o&&o in r){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:h}=r[d]||Fe;h&&(n=i.map(f=>Ae(f)?f.trim():f)),u&&(n=i.map(Hc))}let a,l=r[a=ko(t)]||r[a=ko(lt(t))];!l&&s&&(l=r[a=ko(Wi(t))]),l&&ji(l,e,6,n);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ji(c,e,6,n)}}function p2(e,t,i=!1){const r=t.emitsCache,n=r.get(e);if(n!==void 0)return n;const s=e.emits;let o={},a=!1;if(!ge(e)){const l=c=>{const d=p2(c,t,!0);d&&(a=!0,Be(o,d))};!i&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(We(e)&&r.set(e,null),null):(ne(s)?s.forEach(l=>o[l]=null):Be(o,s),We(e)&&r.set(e,o),o)}function Od(e,t){return!e||!Zs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ve(e,t[0].toLowerCase()+t.slice(1))||Ve(e,Wi(t))||Ve(e,t))}let Nt=null,Md=null;function tl(e){const t=Nt;return Nt=e,Md=e&&e.type.__scopeId||null,t}function e6(e){Md=e}function t6(){Md=null}const i6=e=>ls;function ls(e,t=Nt,i){if(!t||e._n)return e;const r=(...n)=>{r._d&&jh(-1);const s=tl(t);let o;try{o=e(...n)}finally{tl(s),r._d&&jh(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Sc(e){const{type:t,vnode:i,proxy:r,withProxy:n,propsOptions:[s],slots:o,attrs:a,emit:l,render:c,renderCache:d,props:u,data:h,setupState:f,ctx:m,inheritAttrs:b}=e,w=tl(e);let _,g;try{if(i.shapeFlag&4){const y=n||r,C=y;_=Ki(c.call(C,y,d,u,f,h,m)),g=a}else{const y=t;_=Ki(y.length>1?y(u,{attrs:a,slots:o,emit:l}):y(u,null)),g=t.props?a:n6(a)}}catch(y){$a.length=0,Js(y,e,1),_=Ue(zt)}let p=_;if(g&&b!==!1){const y=Object.keys(g),{shapeFlag:C}=p;y.length&&C&7&&(s&&y.some(kp)&&(g=s6(g,s)),p=Br(p,g,!1,!0))}return i.dirs&&(p=Br(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(i.dirs):i.dirs),i.transition&&(p.transition=i.transition),_=p,tl(w),_}function r6(e,t=!0){let i;for(let r=0;r{let t;for(const i in e)(i==="class"||i==="style"||Zs(i))&&((t||(t={}))[i]=e[i]);return t},s6=(e,t)=>{const i={};for(const r in e)(!kp(r)||!(r.slice(9)in t))&&(i[r]=e[r]);return i};function o6(e,t,i){const{props:r,children:n,component:s}=e,{props:o,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return r?ym(r,o,c):!!o;if(l&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;let Fh=0;const u6={name:"Suspense",__isSuspense:!0,process(e,t,i,r,n,s,o,a,l,c){if(e==null)f6(t,i,r,n,s,o,a,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}p6(e,t,i,r,n,o,a,l,c)}},hydrate:m6,create:Fp,normalize:g6},h6=u6;function il(e,t){const i=e.props&&e.props[t];ge(i)&&i()}function f6(e,t,i,r,n,s,o,a,l){const{p:c,o:{createElement:d}}=l,u=d("div"),h=e.suspense=Fp(e,n,r,t,u,i,s,o,a,l);c(null,h.pendingBranch=e.ssContent,u,null,r,h,s,o),h.deps>0?(il(e,"onPending"),il(e,"onFallback"),c(null,e.ssFallback,t,i,r,null,s,o),So(h,e.ssFallback)):h.resolve(!1,!0)}function p6(e,t,i,r,n,s,o,a,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const h=t.ssContent,f=t.ssFallback,{activeBranch:m,pendingBranch:b,isInFallback:w,isHydrating:_}=u;if(b)u.pendingBranch=h,wr(h,b)?(l(b,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():w&&(_||(l(m,f,i,r,n,null,s,o,a),So(u,f)))):(u.pendingId=Fh++,_?(u.isHydrating=!1,u.activeBranch=b):c(b,n,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),w?(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():(l(m,f,i,r,n,null,s,o,a),So(u,f))):m&&wr(h,m)?(l(m,h,i,r,n,u,s,o,a),u.resolve(!0)):(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0&&u.resolve()));else if(m&&wr(h,m))l(m,h,i,r,n,u,s,o,a),So(u,h);else if(il(t,"onPending"),u.pendingBranch=h,h.shapeFlag&512?u.pendingId=h.component.suspenseId:u.pendingId=Fh++,l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0)u.resolve();else{const{timeout:g,pendingId:p}=u;g>0?setTimeout(()=>{u.pendingId===p&&u.fallback(f)},g):g===0&&u.fallback(f)}}function Fp(e,t,i,r,n,s,o,a,l,c,d=!1){const{p:u,m:h,um:f,n:m,o:{parentNode:b,remove:w}}=c;let _;const g=v6(e);g&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const p=e.props?Uc(e.props.timeout):void 0,y=s,C={vnode:e,parent:t,parentComponent:i,namespace:o,container:r,hiddenContainer:n,deps:0,pendingId:Fh++,timeout:typeof p=="number"?p:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(E=!1,A=!1){const{vnode:S,activeBranch:x,pendingBranch:k,pendingId:T,effects:N,parentComponent:I,container:P}=C;let B=!1;C.isHydrating?C.isHydrating=!1:E||(B=x&&k.transition&&k.transition.mode==="out-in",B&&(x.transition.afterLeave=()=>{T===C.pendingId&&(h(k,P,s===y?m(x):s,0),Wc(N))}),x&&(b(x.el)!==C.hiddenContainer&&(s=m(x)),f(x,I,C,!0)),B||h(k,P,s,0)),So(C,k),C.pendingBranch=null,C.isInFallback=!1;let O=C.parent,H=!1;for(;O;){if(O.pendingBranch){O.effects.push(...N),H=!0;break}O=O.parent}!H&&!B&&Wc(N),C.effects=[],g&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),il(S,"onResolve")},fallback(E){if(!C.pendingBranch)return;const{vnode:A,activeBranch:S,parentComponent:x,container:k,namespace:T}=C;il(A,"onFallback");const N=m(S),I=()=>{C.isInFallback&&(u(null,E,k,N,x,null,T,a,l),So(C,E))},P=E.transition&&E.transition.mode==="out-in";P&&(S.transition.afterLeave=I),C.isInFallback=!0,f(S,x,null,!0),P||I()},move(E,A,S){C.activeBranch&&h(C.activeBranch,E,A,S),C.container=E},next(){return C.activeBranch&&m(C.activeBranch)},registerDep(E,A,S){const x=!!C.pendingBranch;x&&C.deps++;const k=E.vnode.el;E.asyncDep.catch(T=>{Js(T,E,0)}).then(T=>{if(E.isUnmounted||C.isUnmounted||C.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:N}=E;Zh(E,T,!1),k&&(N.el=k);const I=!k&&E.subTree.el;A(E,N,b(k||E.subTree.el),k?null:m(E.subTree),C,o,S),I&&w(I),Op(E,N.el),x&&--C.deps===0&&C.resolve()})},unmount(E,A){C.isUnmounted=!0,C.activeBranch&&f(C.activeBranch,i,E,A),C.pendingBranch&&f(C.pendingBranch,i,E,A)}};return C}function m6(e,t,i,r,n,s,o,a,l){const c=t.suspense=Fp(t,r,i,e.parentNode,document.createElement("div"),null,n,s,o,a,!0),d=l(e,c.pendingBranch=t.ssContent,i,c,s,o);return c.deps===0&&c.resolve(!1,!0),d}function g6(e){const{shapeFlag:t,children:i}=e,r=t&32;e.ssContent=wm(r?i.default:i),e.ssFallback=r?wm(i.fallback):Ue(zt)}function wm(e){let t;if(ge(e)){const i=Vs&&e._c;i&&(e._d=!1,vi()),e=e(),i&&(e._d=!0,t=Ri,J2())}return ne(e)&&(e=r6(e)),e=Ki(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(i=>i!==e)),e}function g2(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):Wc(e)}function So(e,t){e.activeBranch=t;const{vnode:i,parentComponent:r}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;i.el=n,r&&r.subTree===i&&(r.vnode.el=n,Op(r,n))}function v6(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function Vd(e,t,i=Tt,r=!1){if(i){const n=i[e]||(i[e]=[]),s=t.__weh||(t.__weh=(...o)=>{qn();const a=Fs(i),l=ji(t,i,e,o);return a(),jn(),l});return r?n.unshift(s):n.push(s),s}}const un=e=>(t,i=Tt)=>{(!Ll||e==="sp")&&Vd(e,(...r)=>t(...r),i)},zp=un("bm"),hn=un("m"),v2=un("bu"),Fd=un("u"),$l=un("bum"),zd=un("um"),y2=un("sp"),b2=un("rtg"),w2=un("rtc");function _2(e,t=Tt){Vd("ec",e,t)}function y6(e,t){if(Nt===null)return e;const i=Bl(Nt),r=e.dirs||(e.dirs=[]);for(let n=0;nt(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);n=new Array(o.length);for(let a=0,l=o.length;a{const s=r.fn(...n);return s&&(s.key=r.key),s}:r.fn)}return e}/*! #__NO_SIDE_EFFECTS__ */function Hp(e,t){return ge(e)?Be({name:e.name},t,{setup:e}):e}const Is=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function _6(e){ge(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:r,delay:n=200,timeout:s,suspensible:o=!0,onError:a}=e;let l=null,c,d=0;const u=()=>(d++,l=null,h()),h=()=>{let f;return l||(f=l=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),a)return new Promise((b,w)=>{a(m,()=>b(u()),()=>w(m),d+1)});throw m}).then(m=>f!==l&&l?l:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return Hp({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const f=Tt;if(c)return()=>cu(c,f);const m=g=>{l=null,Js(g,f,13,!r)};if(o&&f.suspense||Ll)return h().then(g=>()=>cu(g,f)).catch(g=>(m(g),()=>r?Ue(r,{error:g}):null));const b=dt(!1),w=dt(),_=dt(!!n);return n&&setTimeout(()=>{_.value=!1},n),s!=null&&setTimeout(()=>{if(!b.value&&!w.value){const g=new Error(`Async component timed out after ${s}ms.`);m(g),w.value=g}},s),h().then(()=>{b.value=!0,f.parent&&Dl(f.parent.vnode)&&(f.parent.effect.dirty=!0,Bd(f.parent.update))}).catch(g=>{m(g),w.value=g}),()=>{if(b.value&&c)return cu(c,f);if(w.value&&r)return Ue(r,{error:w.value});if(i&&!_.value)return Ue(i)}}})}function cu(e,t){const{ref:i,props:r,children:n,ce:s}=t.vnode,o=Ue(e,r,n);return o.ref=i,o.ce=s,delete t.vnode.ce,o}function k2(e,t,i={},r,n){if(Nt.isCE||Nt.parent&&Is(Nt.parent)&&Nt.parent.isCE)return t!=="default"&&(i.name=t),Ue("slot",i,r&&r());let s=e[t];s&&s._c&&(s._d=!1),vi();const o=s&&C2(s(i)),a=nl(xt,{key:i.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!n&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function C2(e){return e.some(t=>zn(t)?!(t.type===zt||t.type===xt&&!C2(t.children)):!0)?e:null}function k6(e,t){const i={};for(const r in e)i[t&&/[A-Z]/.test(r)?`on:${r}`:ko(r)]=e[r];return i}const zh=e=>e?sy(e)?Bl(e):zh(e.parent):null,Ra=Be(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=>zh(e.parent),$root:e=>zh(e.root),$emit:e=>e.emit,$options:e=>Up(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Bd(e.update)}),$nextTick:e=>e.n||(e.n=Ld.bind(e.proxy)),$watch:e=>t8.bind(e)}),du=(e,t)=>e!==Fe&&!e.__isScriptSetup&&Ve(e,t),Hh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:r,data:n,props:s,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return i[t];case 3:return s[t]}else{if(du(r,t))return o[t]=1,r[t];if(n!==Fe&&Ve(n,t))return o[t]=2,n[t];if((c=e.propsOptions[0])&&Ve(c,t))return o[t]=3,s[t];if(i!==Fe&&Ve(i,t))return o[t]=4,i[t];Uh&&(o[t]=0)}}const d=Ra[t];let u,h;if(d)return t==="$attrs"&&Pi(e.attrs,"get",""),d(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(i!==Fe&&Ve(i,t))return o[t]=4,i[t];if(h=l.config.globalProperties,Ve(h,t))return h[t]},set({_:e},t,i){const{data:r,setupState:n,ctx:s}=e;return du(n,t)?(n[t]=i,!0):r!==Fe&&Ve(r,t)?(r[t]=i,!0):Ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:n,propsOptions:s}},o){let a;return!!i[o]||e!==Fe&&Ve(e,o)||du(t,o)||(a=s[0])&&Ve(a,o)||Ve(r,o)||Ve(Ra,o)||Ve(n.config.globalProperties,o)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Ve(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}},C6=Be({},Hh,{get(e,t){if(t!==Symbol.unscopables)return Hh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!q4(t)}});function A6(){return null}function E6(){return null}function x6(e){}function S6(e){}function T6(){return null}function R6(){}function N6(e,t){return null}function I6(){return A2().slots}function $6(){return A2().attrs}function A2(){const e=fn();return e.setupContext||(e.setupContext=cy(e))}function rl(e){return ne(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function P6(e,t){const i=rl(e);for(const r in t){if(r.startsWith("__skip"))continue;let n=i[r];n?ne(n)||ge(n)?n=i[r]={type:n,default:t[r]}:n.default=t[r]:n===null&&(n=i[r]={default:t[r]}),n&&t[`__skip_${r}`]&&(n.skipFactory=!0)}return i}function D6(e,t){return!e||!t?e||t:ne(e)&&ne(t)?e.concat(t):Be({},rl(e),rl(t))}function L6(e,t){const i={};for(const r in e)t.includes(r)||Object.defineProperty(i,r,{enumerable:!0,get:()=>e[r]});return i}function B6(e){const t=fn();let i=e();return Xh(),Ap(i)&&(i=i.catch(r=>{throw Fs(t),r})),[i,()=>Fs(t)]}let Uh=!0;function O6(e){const t=Up(e),i=e.proxy,r=e.ctx;Uh=!1,t.beforeCreate&&_m(t.beforeCreate,e,"bc");const{data:n,computed:s,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:m,activated:b,deactivated:w,beforeDestroy:_,beforeUnmount:g,destroyed:p,unmounted:y,render:C,renderTracked:E,renderTriggered:A,errorCaptured:S,serverPrefetch:x,expose:k,inheritAttrs:T,components:N,directives:I,filters:P}=t;if(c&&M6(c,r,null),o)for(const H in o){const U=o[H];ge(U)&&(r[H]=U.bind(i))}if(n){const H=n.call(i,i);We(H)&&(e.data=Pd(H))}if(Uh=!0,s)for(const H in s){const U=s[H],oe=ge(U)?U.bind(i,i):ge(U.get)?U.get.bind(i,i):Rt,ye=!ge(U)&&ge(U.set)?U.set.bind(i):Rt,F=dy({get:oe,set:ye});Object.defineProperty(r,H,{enumerable:!0,configurable:!0,get:()=>F.value,set:W=>F.value=W})}if(a)for(const H in a)E2(a[H],r,i,H);if(l){const H=ge(l)?l.call(i):l;Reflect.ownKeys(H).forEach(U=>{S2(U,H[U])})}d&&_m(d,e,"c");function O(H,U){ne(U)?U.forEach(oe=>H(oe.bind(i))):U&&H(U.bind(i))}if(O(zp,u),O(hn,h),O(v2,f),O(Fd,m),O(q2,b),O(j2,w),O(_2,S),O(w2,E),O(b2,A),O($l,g),O(zd,y),O(y2,x),ne(k))if(k.length){const H=e.exposed||(e.exposed={});k.forEach(U=>{Object.defineProperty(H,U,{get:()=>i[U],set:oe=>i[U]=oe})})}else e.exposed||(e.exposed={});C&&e.render===Rt&&(e.render=C),T!=null&&(e.inheritAttrs=T),N&&(e.components=N),I&&(e.directives=I)}function M6(e,t,i=Rt){ne(e)&&(e=Kh(e));for(const r in e){const n=e[r];let s;We(n)?"default"in n?s=Na(n.from||r,n.default,!0):s=Na(n.from||r):s=Na(n),Xt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function _m(e,t,i){ji(ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,i)}function E2(e,t,i,r){const n=r.includes(".")?W2(i,r):()=>i[r];if(Ae(e)){const s=t[e];ge(s)&&Ro(n,s)}else if(ge(e))Ro(n,e.bind(i));else if(We(e))if(ne(e))e.forEach(s=>E2(s,t,i,r));else{const s=ge(e.handler)?e.handler.bind(i):t[e.handler];ge(s)&&Ro(n,s,e)}}function Up(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:n,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!n.length&&!i&&!r?l=t:(l={},n.length&&n.forEach(c=>jc(l,c,o,!0)),jc(l,t,o)),We(t)&&s.set(t,l),l}function jc(e,t,i,r=!1){const{mixins:n,extends:s}=t;s&&jc(e,s,i,!0),n&&n.forEach(o=>jc(e,o,i,!0));for(const o in t)if(!(r&&o==="expose")){const a=V6[o]||i&&i[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const V6={data:km,props:Cm,emits:Cm,methods:wa,computed:wa,beforeCreate:pi,created:pi,beforeMount:pi,mounted:pi,beforeUpdate:pi,updated:pi,beforeDestroy:pi,beforeUnmount:pi,destroyed:pi,unmounted:pi,activated:pi,deactivated:pi,errorCaptured:pi,serverPrefetch:pi,components:wa,directives:wa,watch:z6,provide:km,inject:F6};function km(e,t){return t?e?function(){return Be(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function F6(e,t){return wa(Kh(e),Kh(t))}function Kh(e){if(ne(e)){const t={};for(let i=0;i1)return i&&ge(t)?t.call(r&&r.proxy):t}}function K6(){return!!(Tt||Nt||To)}const T2={},R2=()=>Object.create(T2),N2=e=>Object.getPrototypeOf(e)===T2;function W6(e,t,i,r=!1){const n={},s=R2();e.propsDefaults=Object.create(null),I2(e,t,n,s);for(const o in e.propsOptions[0])o in n||(n[o]=void 0);i?e.props=r?n:n2(n):e.type.props?e.props=n:e.props=s,e.attrs=s}function q6(e,t,i,r){const{props:n,attrs:s,vnode:{patchFlag:o}}=e,a=Oe(n),[l]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,f]=$2(u,t,!0);Be(o,h),f&&a.push(...f)};!i&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!l)return We(e)&&r.set(e,wo),wo;if(ne(s))for(let d=0;d-1,f[1]=b<0||m-1||Ve(f,"default"))&&a.push(u)}}}const c=[o,a];return We(e)&&r.set(e,c),c}function Am(e){return e[0]!=="$"&&!$n(e)}function Em(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function xm(e,t){return Em(e)===Em(t)}function Sm(e,t){return ne(t)?t.findIndex(i=>xm(i,e)):ge(t)&&xm(t,e)?0:-1}const P2=e=>e[0]==="_"||e==="$stable",Kp=e=>ne(e)?e.map(Ki):[Ki(e)],j6=(e,t,i)=>{if(t._n)return t;const r=ls((...n)=>Kp(t(...n)),i);return r._c=!1,r},D2=(e,t,i)=>{const r=e._ctx;for(const n in e){if(P2(n))continue;const s=e[n];if(ge(s))t[n]=j6(n,s,r);else if(s!=null){const o=Kp(s);t[n]=()=>o}}},L2=(e,t)=>{const i=Kp(t);e.slots.default=()=>i},Y6=(e,t)=>{const i=e.slots=R2();if(e.vnode.shapeFlag&32){const r=t._;r?(Be(i,t),Ov(i,"_",r,!0)):D2(t,i)}else t&&L2(e,t)},X6=(e,t,i)=>{const{vnode:r,slots:n}=e;let s=!0,o=Fe;if(r.shapeFlag&32){const a=t._;a?i&&a===1?s=!1:(Be(n,t),!i&&a===1&&delete n._):(s=!t.$stable,D2(t,n)),o=t}else t&&(L2(e,t),o={default:1});if(s)for(const a in n)!P2(a)&&o[a]==null&&delete n[a]};function Yc(e,t,i,r,n=!1){if(ne(e)){e.forEach((h,f)=>Yc(h,t&&(ne(t)?t[f]:t),i,r,n));return}if(Is(r)&&!n)return;const s=r.shapeFlag&4?Bl(r.component):r.el,o=n?null:s,{i:a,r:l}=e,c=t&&t.r,d=a.refs===Fe?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(Ae(c)?(d[c]=null,Ve(u,c)&&(u[c]=null)):Xt(c)&&(c.value=null)),ge(l))sn(l,a,12,[o,d]);else{const h=Ae(l),f=Xt(l);if(h||f){const m=()=>{if(e.f){const b=h?Ve(u,l)?u[l]:d[l]:l.value;n?ne(b)&&Cp(b,s):ne(b)?b.includes(s)||b.push(s):h?(d[l]=[s],Ve(u,l)&&(u[l]=d[l])):(l.value=[s],e.k&&(d[e.k]=l.value))}else h?(d[l]=o,Ve(u,l)&&(u[l]=o)):f&&(l.value=o,e.k&&(d[e.k]=o))};o?(m.id=-1,Lt(m,i)):m()}}}let Tm=!1;const oo=()=>{Tm||(console.error("Hydration completed but contains mismatches."),Tm=!0)},Z6=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",G6=e=>e.namespaceURI.includes("MathML"),nc=e=>{if(Z6(e))return"svg";if(G6(e))return"mathml"},sc=e=>e.nodeType===8;function Q6(e){const{mt:t,p:i,o:{patchProp:r,createText:n,nextSibling:s,parentNode:o,remove:a,insert:l,createComment:c}}=e,d=(p,y)=>{if(!y.hasChildNodes()){i(null,p,y),qc(),y._vnode=p;return}u(y.firstChild,p,null,null,null),qc(),y._vnode=p},u=(p,y,C,E,A,S=!1)=>{S=S||!!y.dynamicChildren;const x=sc(p)&&p.data==="[",k=()=>b(p,y,C,E,A,x),{type:T,ref:N,shapeFlag:I,patchFlag:P}=y;let B=p.nodeType;y.el=p,P===-2&&(S=!1,y.dynamicChildren=null);let O=null;switch(T){case Ms:B!==3?y.children===""?(l(y.el=n(""),o(p),p),O=p):O=k():(p.data!==y.children&&(oo(),p.data=y.children),O=s(p));break;case zt:g(p)?(O=s(p),_(y.el=p.content.firstChild,p,C)):B!==8||x?O=k():O=s(p);break;case $s:if(x&&(p=s(p),B=p.nodeType),B===1||B===3){O=p;const H=!y.children.length;for(let U=0;U{S=S||!!y.dynamicChildren;const{type:x,props:k,patchFlag:T,shapeFlag:N,dirs:I,transition:P}=y,B=x==="input"||x==="option";if(B||T!==-1){I&&Rr(y,null,C,"created");let O=!1;if(g(p)){O=V2(E,P)&&C&&C.vnode.props&&C.vnode.props.appear;const U=p.content.firstChild;O&&P.beforeEnter(U),_(U,p,C),y.el=p=U}if(N&16&&!(k&&(k.innerHTML||k.textContent))){let U=f(p.firstChild,y,p,C,E,A,S);for(;U;){oo();const oe=U;U=U.nextSibling,a(oe)}}else N&8&&p.textContent!==y.children&&(oo(),p.textContent=y.children);if(k)if(B||!S||T&48)for(const U in k)(B&&(U.endsWith("value")||U==="indeterminate")||Zs(U)&&!$n(U)||U[0]===".")&&r(p,U,null,k[U],void 0,void 0,C);else k.onClick&&r(p,"onClick",null,k.onClick,void 0,void 0,C);let H;(H=k&&k.onVnodeBeforeMount)&&Si(H,C,y),I&&Rr(y,null,C,"beforeMount"),((H=k&&k.onVnodeMounted)||I||O)&&g2(()=>{H&&Si(H,C,y),O&&P.enter(p),I&&Rr(y,null,C,"mounted")},E)}return p.nextSibling},f=(p,y,C,E,A,S,x)=>{x=x||!!y.dynamicChildren;const k=y.children,T=k.length;for(let N=0;N{const{slotScopeIds:x}=y;x&&(A=A?A.concat(x):x);const k=o(p),T=f(s(p),y,k,C,E,A,S);return T&&sc(T)&&T.data==="]"?s(y.anchor=T):(oo(),l(y.anchor=c("]"),k,T),T)},b=(p,y,C,E,A,S)=>{if(oo(),y.el=null,S){const T=w(p);for(;;){const N=s(p);if(N&&N!==T)a(N);else break}}const x=s(p),k=o(p);return a(p),i(null,y,k,x,C,E,nc(k),A),x},w=(p,y="[",C="]")=>{let E=0;for(;p;)if(p=s(p),p&&sc(p)&&(p.data===y&&E++,p.data===C)){if(E===0)return s(p);E--}return p},_=(p,y,C)=>{const E=y.parentNode;E&&E.replaceChild(p,y);let A=C;for(;A;)A.vnode.el===y&&(A.vnode.el=A.subTree.el=p),A=A.parent},g=p=>p.nodeType===1&&p.tagName.toLowerCase()==="template";return[d,u]}const Lt=g2;function B2(e){return M2(e)}function O2(e){return M2(e,Q6)}function M2(e,t){const i=Mv();i.__VUE__=!0;const{insert:r,remove:n,patchProp:s,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:f=Rt,insertStaticContent:m}=e,b=($,L,z,j=null,X=null,J=null,ee=void 0,Q=null,G=!!L.dynamicChildren)=>{if($===L)return;$&&!wr($,L)&&(j=pt($),W($,X,J,!0),$=null),L.patchFlag===-2&&(G=!1,L.dynamicChildren=null);const{type:q,ref:te,shapeFlag:ce}=L;switch(q){case Ms:w($,L,z,j);break;case zt:_($,L,z,j);break;case $s:$==null&&g(L,z,j,ee);break;case xt:N($,L,z,j,X,J,ee,Q,G);break;default:ce&1?C($,L,z,j,X,J,ee,Q,G):ce&6?I($,L,z,j,X,J,ee,Q,G):(ce&64||ce&128)&&q.process($,L,z,j,X,J,ee,Q,G,ui)}te!=null&&X&&Yc(te,$&&$.ref,J,L||$,!L)},w=($,L,z,j)=>{if($==null)r(L.el=a(L.children),z,j);else{const X=L.el=$.el;L.children!==$.children&&c(X,L.children)}},_=($,L,z,j)=>{$==null?r(L.el=l(L.children||""),z,j):L.el=$.el},g=($,L,z,j)=>{[$.el,$.anchor]=m($.children,L,z,j,$.el,$.anchor)},p=({el:$,anchor:L},z,j)=>{let X;for(;$&&$!==L;)X=h($),r($,z,j),$=X;r(L,z,j)},y=({el:$,anchor:L})=>{let z;for(;$&&$!==L;)z=h($),n($),$=z;n(L)},C=($,L,z,j,X,J,ee,Q,G)=>{L.type==="svg"?ee="svg":L.type==="math"&&(ee="mathml"),$==null?E(L,z,j,X,J,ee,Q,G):x($,L,X,J,ee,Q,G)},E=($,L,z,j,X,J,ee,Q)=>{let G,q;const{props:te,shapeFlag:ce,transition:le,dirs:pe}=$;if(G=$.el=o($.type,J,te&&te.is,te),ce&8?d(G,$.children):ce&16&&S($.children,G,null,j,X,uu($,J),ee,Q),pe&&Rr($,null,j,"created"),A(G,$,$.scopeId,ee,j),te){for(const Ge in te)Ge!=="value"&&!$n(Ge)&&s(G,Ge,null,te[Ge],J,$.children,j,X,xe);"value"in te&&s(G,"value",null,te.value,J),(q=te.onVnodeBeforeMount)&&Si(q,j,$)}pe&&Rr($,null,j,"beforeMount");const ke=V2(X,le);ke&&le.beforeEnter(G),r(G,L,z),((q=te&&te.onVnodeMounted)||ke||pe)&&Lt(()=>{q&&Si(q,j,$),ke&&le.enter(G),pe&&Rr($,null,j,"mounted")},X)},A=($,L,z,j,X)=>{if(z&&f($,z),j)for(let J=0;J{for(let q=G;q<$.length;q++){const te=$[q]=Q?En($[q]):Ki($[q]);b(null,te,L,z,j,X,J,ee,Q)}},x=($,L,z,j,X,J,ee)=>{const Q=L.el=$.el;let{patchFlag:G,dynamicChildren:q,dirs:te}=L;G|=$.patchFlag&16;const ce=$.props||Fe,le=L.props||Fe;let pe;if(z&&es(z,!1),(pe=le.onVnodeBeforeUpdate)&&Si(pe,z,L,$),te&&Rr(L,$,z,"beforeUpdate"),z&&es(z,!0),q?k($.dynamicChildren,q,Q,z,j,uu(L,X),J):ee||U($,L,Q,null,z,j,uu(L,X),J,!1),G>0){if(G&16)T(Q,L,ce,le,z,j,X);else if(G&2&&ce.class!==le.class&&s(Q,"class",null,le.class,X),G&4&&s(Q,"style",ce.style,le.style,X),G&8){const ke=L.dynamicProps;for(let Ge=0;Ge{pe&&Si(pe,z,L,$),te&&Rr(L,$,z,"updated")},j)},k=($,L,z,j,X,J,ee)=>{for(let Q=0;Q{if(z!==j){if(z!==Fe)for(const Q in z)!$n(Q)&&!(Q in j)&&s($,Q,z[Q],null,ee,L.children,X,J,xe);for(const Q in j){if($n(Q))continue;const G=j[Q],q=z[Q];G!==q&&Q!=="value"&&s($,Q,q,G,ee,L.children,X,J,xe)}"value"in j&&s($,"value",z.value,j.value,ee)}},N=($,L,z,j,X,J,ee,Q,G)=>{const q=L.el=$?$.el:a(""),te=L.anchor=$?$.anchor:a("");let{patchFlag:ce,dynamicChildren:le,slotScopeIds:pe}=L;pe&&(Q=Q?Q.concat(pe):pe),$==null?(r(q,z,j),r(te,z,j),S(L.children||[],z,te,X,J,ee,Q,G)):ce>0&&ce&64&&le&&$.dynamicChildren?(k($.dynamicChildren,le,z,X,J,ee,Q),(L.key!=null||X&&L===X.subTree)&&Wp($,L,!0)):U($,L,z,te,X,J,ee,Q,G)},I=($,L,z,j,X,J,ee,Q,G)=>{L.slotScopeIds=Q,$==null?L.shapeFlag&512?X.ctx.activate(L,z,j,ee,G):P(L,z,j,X,J,ee,G):B($,L,G)},P=($,L,z,j,X,J,ee)=>{const Q=$.component=ny($,j,X);if(Dl($)&&(Q.ctx.renderer=ui),oy(Q),Q.asyncDep){if(X&&X.registerDep(Q,O,ee),!$.el){const G=Q.subTree=Ue(zt);_(null,G,L,z)}}else O(Q,$,L,z,X,J,ee)},B=($,L,z)=>{const j=L.component=$.component;if(o6($,L,z))if(j.asyncDep&&!j.asyncResolved){H(j,L,z);return}else j.next=L,G3(j.update),j.effect.dirty=!0,j.update();else L.el=$.el,j.vnode=L},O=($,L,z,j,X,J,ee)=>{const Q=()=>{if($.isMounted){let{next:te,bu:ce,u:le,parent:pe,vnode:ke}=$;{const tr=F2($);if(tr){te&&(te.el=ke.el,H($,te,ee)),tr.asyncDep.then(()=>{$.isUnmounted||Q()});return}}let Ge=te,Me;es($,!1),te?(te.el=ke.el,H($,te,ee)):te=ke,ce&&Co(ce),(Me=te.props&&te.props.onVnodeBeforeUpdate)&&Si(Me,pe,te,ke),es($,!0);const mt=Sc($),$t=$.subTree;$.subTree=mt,b($t,mt,u($t.el),pt($t),$,X,J),te.el=mt.el,Ge===null&&Op($,mt.el),le&&Lt(le,X),(Me=te.props&&te.props.onVnodeUpdated)&&Lt(()=>Si(Me,pe,te,ke),X)}else{let te;const{el:ce,props:le}=L,{bm:pe,m:ke,parent:Ge}=$,Me=Is(L);if(es($,!1),pe&&Co(pe),!Me&&(te=le&&le.onVnodeBeforeMount)&&Si(te,Ge,L),es($,!0),ce&&Hr){const mt=()=>{$.subTree=Sc($),Hr(ce,$.subTree,$,X,null)};Me?L.type.__asyncLoader().then(()=>!$.isUnmounted&&mt()):mt()}else{const mt=$.subTree=Sc($);b(null,mt,z,j,$,X,J),L.el=mt.el}if(ke&&Lt(ke,X),!Me&&(te=le&&le.onVnodeMounted)){const mt=L;Lt(()=>Si(te,Ge,mt),X)}(L.shapeFlag&256||Ge&&Is(Ge.vnode)&&Ge.vnode.shapeFlag&256)&&$.a&&Lt($.a,X),$.isMounted=!0,L=z=j=null}},G=$.effect=new Lo(Q,Rt,()=>Bd(q),$.scope),q=$.update=()=>{G.dirty&&G.run()};q.id=$.uid,es($,!0),q()},H=($,L,z)=>{L.component=$;const j=$.vnode.props;$.vnode=L,$.next=null,q6($,L.props,j,z),X6($,L.children,z),qn(),vm($),jn()},U=($,L,z,j,X,J,ee,Q,G=!1)=>{const q=$&&$.children,te=$?$.shapeFlag:0,ce=L.children,{patchFlag:le,shapeFlag:pe}=L;if(le>0){if(le&128){ye(q,ce,z,j,X,J,ee,Q,G);return}else if(le&256){oe(q,ce,z,j,X,J,ee,Q,G);return}}pe&8?(te&16&&xe(q,X,J),ce!==q&&d(z,ce)):te&16?pe&16?ye(q,ce,z,j,X,J,ee,Q,G):xe(q,X,J,!0):(te&8&&d(z,""),pe&16&&S(ce,z,j,X,J,ee,Q,G))},oe=($,L,z,j,X,J,ee,Q,G)=>{$=$||wo,L=L||wo;const q=$.length,te=L.length,ce=Math.min(q,te);let le;for(le=0;lete?xe($,X,J,!0,!1,ce):S(L,z,j,X,J,ee,Q,G,ce)},ye=($,L,z,j,X,J,ee,Q,G)=>{let q=0;const te=L.length;let ce=$.length-1,le=te-1;for(;q<=ce&&q<=le;){const pe=$[q],ke=L[q]=G?En(L[q]):Ki(L[q]);if(wr(pe,ke))b(pe,ke,z,null,X,J,ee,Q,G);else break;q++}for(;q<=ce&&q<=le;){const pe=$[ce],ke=L[le]=G?En(L[le]):Ki(L[le]);if(wr(pe,ke))b(pe,ke,z,null,X,J,ee,Q,G);else break;ce--,le--}if(q>ce){if(q<=le){const pe=le+1,ke=pele)for(;q<=ce;)W($[q],X,J,!0),q++;else{const pe=q,ke=q,Ge=new Map;for(q=ke;q<=le;q++){const hi=L[q]=G?En(L[q]):Ki(L[q]);hi.key!=null&&Ge.set(hi.key,q)}let Me,mt=0;const $t=le-ke+1;let tr=!1,Gl=0;const gn=new Array($t);for(q=0;q<$t;q++)gn[q]=0;for(q=pe;q<=ce;q++){const hi=$[q];if(mt>=$t){W(hi,X,J,!0);continue}let ir;if(hi.key!=null)ir=Ge.get(hi.key);else for(Me=ke;Me<=le;Me++)if(gn[Me-ke]===0&&wr(hi,L[Me])){ir=Me;break}ir===void 0?W(hi,X,J,!0):(gn[ir-ke]=q+1,ir>=Gl?Gl=ir:tr=!0,b(hi,L[ir],z,null,X,J,ee,Q,G),mt++)}const ha=tr?J6(gn):wo;for(Me=ha.length-1,q=$t-1;q>=0;q--){const hi=ke+q,ir=L[hi],fa=hi+1{const{el:J,type:ee,transition:Q,children:G,shapeFlag:q}=$;if(q&6){F($.component.subTree,L,z,j);return}if(q&128){$.suspense.move(L,z,j);return}if(q&64){ee.move($,L,z,ui);return}if(ee===xt){r(J,L,z);for(let ce=0;ceQ.enter(J),X);else{const{leave:ce,delayLeave:le,afterLeave:pe}=Q,ke=()=>r(J,L,z),Ge=()=>{ce(J,()=>{ke(),pe&&pe()})};le?le(J,ke,Ge):Ge()}else r(J,L,z)},W=($,L,z,j=!1,X=!1)=>{const{type:J,props:ee,ref:Q,children:G,dynamicChildren:q,shapeFlag:te,patchFlag:ce,dirs:le,memoIndex:pe}=$;if(Q!=null&&Yc(Q,null,z,$,!0),pe!=null&&(L.renderCache[pe]=void 0),te&256){L.ctx.deactivate($);return}const ke=te&1&&le,Ge=!Is($);let Me;if(Ge&&(Me=ee&&ee.onVnodeBeforeUnmount)&&Si(Me,L,$),te&6)De($.component,z,j);else{if(te&128){$.suspense.unmount(z,j);return}ke&&Rr($,null,L,"beforeUnmount"),te&64?$.type.remove($,L,z,X,ui,j):q&&(J!==xt||ce>0&&ce&64)?xe(q,L,z,!1,!0):(J===xt&&ce&384||!X&&te&16)&&xe(G,L,z),j&&Z($)}(Ge&&(Me=ee&&ee.onVnodeUnmounted)||ke)&&Lt(()=>{Me&&Si(Me,L,$),ke&&Rr($,null,L,"unmounted")},z)},Z=$=>{const{type:L,el:z,anchor:j,transition:X}=$;if(L===xt){K(z,j);return}if(L===$s){y($);return}const J=()=>{n(z),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if($.shapeFlag&1&&X&&!X.persisted){const{leave:ee,delayLeave:Q}=X,G=()=>ee(z,J);Q?Q($.el,J,G):G()}else J()},K=($,L)=>{let z;for(;$!==L;)z=h($),n($),$=z;n(L)},De=($,L,z)=>{const{bum:j,scope:X,update:J,subTree:ee,um:Q,m:G,a:q}=$;Xc(G),Xc(q),j&&Co(j),X.stop(),J&&(J.active=!1,W(ee,$,L,z)),Q&&Lt(Q,L),Lt(()=>{$.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},xe=($,L,z,j=!1,X=!1,J=0)=>{for(let ee=J;ee<$.length;ee++)W($[ee],L,z,j,X)},pt=$=>$.shapeFlag&6?pt($.component.subTree):$.shapeFlag&128?$.suspense.next():h($.anchor||$.el);let we=!1;const xr=($,L,z)=>{$==null?L._vnode&&W(L._vnode,null,null,!0):b(L._vnode||null,$,L,null,null,null,z),we||(we=!0,vm(),qc(),we=!1),L._vnode=$},ui={p:b,um:W,m:F,r:Z,mt:P,mc:S,pc:U,pbc:k,n:pt,o:e};let Jn,Hr;return t&&([Jn,Hr]=t(ui)),{render:xr,hydrate:Jn,createApp:U6(xr,Jn)}}function uu({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function es({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function V2(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wp(e,t,i=!1){const r=e.children,n=t.children;if(ne(r)&&ne(n))for(let s=0;s>1,e[i[a]]0&&(t[r]=i[s-1]),i[s]=r)}}for(s=i.length,o=i[s-1];s-- >0;)i[s]=o,o=t[o];return i}function F2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:F2(t)}function Xc(e){if(e)for(let t=0;tNa(z2);function e8(e,t){return Pl(e,null,t)}function U2(e,t){return Pl(e,null,{flush:"post"})}function K2(e,t){return Pl(e,null,{flush:"sync"})}const oc={};function Ro(e,t,i){return Pl(e,t,i)}function Pl(e,t,{immediate:i,deep:r,flush:n,once:s,onTrack:o,onTrigger:a}=Fe){if(t&&s){const E=t;t=(...A)=>{E(...A),C()}}const l=Tt,c=E=>r===!0?E:Sn(E,r===!1?1:void 0);let d,u=!1,h=!1;if(Xt(e)?(d=()=>e.value,u=Ga(e)):Ao(e)?(d=()=>c(e),u=!0):ne(e)?(h=!0,u=e.some(E=>Ao(E)||Ga(E)),d=()=>e.map(E=>{if(Xt(E))return E.value;if(Ao(E))return c(E);if(ge(E))return sn(E,l,2)})):ge(e)?t?d=()=>sn(e,l,2):d=()=>(f&&f(),ji(e,l,3,[m])):d=Rt,t&&r){const E=d;d=()=>Sn(E())}let f,m=E=>{f=p.onStop=()=>{sn(E,l,4),f=p.onStop=void 0}},b;if(Ll)if(m=Rt,t?i&&ji(t,l,3,[d(),h?[]:void 0,m]):d(),n==="sync"){const E=H2();b=E.__watcherHandles||(E.__watcherHandles=[])}else return Rt;let w=h?new Array(e.length).fill(oc):oc;const _=()=>{if(!(!p.active||!p.dirty))if(t){const E=p.run();(r||u||(h?E.some((A,S)=>Cr(A,w[S])):Cr(E,w)))&&(f&&f(),ji(t,l,3,[E,w===oc?void 0:h&&w[0]===oc?[]:w,m]),w=E)}else p.run()};_.allowRecurse=!!t;let g;n==="sync"?g=_:n==="post"?g=()=>Lt(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),g=()=>Bd(_));const p=new Lo(d,Rt,g),y=Kv(),C=()=>{p.stop(),y&&Cp(y.effects,p)};return t?i?_():w=p.run():n==="post"?Lt(p.run.bind(p),l&&l.suspense):p.run(),b&&b.push(C),C}function t8(e,t,i){const r=this.proxy,n=Ae(e)?e.includes(".")?W2(r,e):()=>r[e]:e.bind(r,r);let s;ge(t)?s=t:(s=t.handler,i=t);const o=Fs(this),a=Pl(n,s.bind(r),i);return o(),a}function W2(e,t){const i=t.split(".");return()=>{let r=e;for(let n=0;n{Sn(r,t,i)});else if(Bv(e)){for(const r in e)Sn(e[r],t,i);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Sn(e[r],t,i)}return e}const Dl=e=>e.type.__isKeepAlive,i8={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=fn(),r=i.ctx;if(!r.renderer)return()=>{const g=t.default&&t.default();return g&&g.length===1?g[0]:g};const n=new Map,s=new Set;let o=null;const a=i.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=r,h=u("div");r.activate=(g,p,y,C,E)=>{const A=g.component;c(g,p,y,0,a),l(A.vnode,g,p,y,A,a,C,g.slotScopeIds,E),Lt(()=>{A.isDeactivated=!1,A.a&&Co(A.a);const S=g.props&&g.props.onVnodeMounted;S&&Si(S,A.parent,g)},a)},r.deactivate=g=>{const p=g.component;Xc(p.m),Xc(p.a),c(g,h,null,1,a),Lt(()=>{p.da&&Co(p.da);const y=g.props&&g.props.onVnodeUnmounted;y&&Si(y,p.parent,g),p.isDeactivated=!0},a)};function f(g){hu(g),d(g,i,a,!0)}function m(g){n.forEach((p,y)=>{const C=Qh(p.type);C&&(!g||!g(C))&&b(y)})}function b(g){const p=n.get(g);!o||!wr(p,o)?f(p):o&&hu(o),n.delete(g),s.delete(g)}Ro(()=>[e.include,e.exclude],([g,p])=>{g&&m(y=>_a(g,y)),p&&m(y=>!_a(p,y))},{flush:"post",deep:!0});let w=null;const _=()=>{w!=null&&(Vh(i.subTree.type)?Lt(()=>{n.set(w,ac(i.subTree))},i.subTree.suspense):n.set(w,ac(i.subTree)))};return hn(_),Fd(_),$l(()=>{n.forEach(g=>{const{subTree:p,suspense:y}=i,C=ac(p);if(g.type===C.type&&g.key===C.key){hu(C);const E=C.component.da;E&&Lt(E,y);return}f(g)})}),()=>{if(w=null,!t.default)return null;const g=t.default(),p=g[0];if(g.length>1)return o=null,g;if(!zn(p)||!(p.shapeFlag&4)&&!(p.shapeFlag&128))return o=null,p;let y=ac(p);const C=y.type,E=Qh(Is(y)?y.type.__asyncResolved||{}:C),{include:A,exclude:S,max:x}=e;if(A&&(!E||!_a(A,E))||S&&E&&_a(S,E))return o=y,p;const k=y.key==null?C:y.key,T=n.get(k);return y.el&&(y=Br(y),p.shapeFlag&128&&(p.ssContent=y)),w=k,T?(y.el=T.el,y.component=T.component,y.transition&&Fn(y,y.transition),y.shapeFlag|=512,s.delete(k),s.add(k)):(s.add(k),x&&s.size>parseInt(x,10)&&b(s.values().next().value)),y.shapeFlag|=256,o=y,Vh(p.type)?p:y}}},r8=i8;function _a(e,t){return ne(e)?e.some(i=>_a(i,t)):Ae(e)?e.split(",").includes(t):F4(e)?e.test(t):!1}function q2(e,t){Y2(e,"a",t)}function j2(e,t){Y2(e,"da",t)}function Y2(e,t,i=Tt){const r=e.__wdc||(e.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Vd(t,r,i),i){let n=i.parent;for(;n&&n.parent;)Dl(n.parent.vnode)&&n8(r,t,i,n),n=n.parent}}function n8(e,t,i,r){const n=Vd(t,e,r,!0);zd(()=>{Cp(r[t],n)},i)}function hu(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ac(e){return e.shapeFlag&128?e.ssContent:e}const An=Symbol("_leaveCb"),lc=Symbol("_enterCb");function qp(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return hn(()=>{e.isMounted=!0}),$l(()=>{e.isUnmounting=!0}),e}const rr=[Function,Array],jp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rr,onEnter:rr,onAfterEnter:rr,onEnterCancelled:rr,onBeforeLeave:rr,onLeave:rr,onAfterLeave:rr,onLeaveCancelled:rr,onBeforeAppear:rr,onAppear:rr,onAfterAppear:rr,onAppearCancelled:rr},X2=e=>{const t=e.subTree;return t.component?X2(t.component):t},s8={name:"BaseTransition",props:jp,setup(e,{slots:t}){const i=fn(),r=qp();return()=>{const n=t.default&&Hd(t.default(),!0);if(!n||!n.length)return;let s=n[0];if(n.length>1){for(const h of n)if(h.type!==zt){s=h;break}}const o=Oe(e),{mode:a}=o;if(r.isLeaving)return fu(s);const l=Rm(s);if(!l)return fu(s);let c=Oo(l,o,r,i,h=>c=h);Fn(l,c);const d=i.subTree,u=d&&Rm(d);if(u&&u.type!==zt&&!wr(l,u)&&X2(i).type!==zt){const h=Oo(u,o,r,i);if(Fn(u,h),a==="out-in"&&l.type!==zt)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,i.update.active!==!1&&(i.effect.dirty=!0,i.update())},fu(s);a==="in-out"&&l.type!==zt&&(h.delayLeave=(f,m,b)=>{const w=G2(r,u);w[String(u.key)]=u,f[An]=()=>{m(),f[An]=void 0,delete c.delayedLeave},c.delayedLeave=b})}return s}}},Z2=s8;function G2(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function Oo(e,t,i,r,n){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:w,onAppear:_,onAfterAppear:g,onAppearCancelled:p}=t,y=String(e.key),C=G2(i,e),E=(x,k)=>{x&&ji(x,r,9,k)},A=(x,k)=>{const T=k[1];E(x,k),ne(x)?x.every(N=>N.length<=1)&&T():x.length<=1&&T()},S={mode:o,persisted:a,beforeEnter(x){let k=l;if(!i.isMounted)if(s)k=w||l;else return;x[An]&&x[An](!0);const T=C[y];T&&wr(e,T)&&T.el[An]&&T.el[An](),E(k,[x])},enter(x){let k=c,T=d,N=u;if(!i.isMounted)if(s)k=_||c,T=g||d,N=p||u;else return;let I=!1;const P=x[lc]=B=>{I||(I=!0,B?E(N,[x]):E(T,[x]),S.delayedLeave&&S.delayedLeave(),x[lc]=void 0)};k?A(k,[x,P]):P()},leave(x,k){const T=String(e.key);if(x[lc]&&x[lc](!0),i.isUnmounting)return k();E(h,[x]);let N=!1;const I=x[An]=P=>{N||(N=!0,k(),P?E(b,[x]):E(m,[x]),x[An]=void 0,C[T]===e&&delete C[T])};C[T]=e,f?A(f,[x,I]):I()},clone(x){const k=Oo(x,t,i,r,n);return n&&n(k),k}};return S}function fu(e){if(Dl(e))return e=Br(e),e.children=null,e}function Rm(e){if(!Dl(e))return e;const{shapeFlag:t,children:i}=e;if(i){if(t&16)return i[0];if(t&32&&ge(i.default))return i.default()}}function Fn(e,t){e.shapeFlag&6&&e.component?Fn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Hd(e,t=!1,i){let r=[],n=0;for(let s=0;s1)for(let s=0;se.__isTeleport,Ia=e=>e&&(e.disabled||e.disabled===""),Nm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Im=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,qh=(e,t)=>{const i=e&&e.to;return Ae(i)?t?t(i):null:i},a8={name:"Teleport",__isTeleport:!0,process(e,t,i,r,n,s,o,a,l,c){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:m,createText:b,createComment:w}}=c,_=Ia(t.props);let{shapeFlag:g,children:p,dynamicChildren:y}=t;if(e==null){const C=t.el=b(""),E=t.anchor=b("");f(C,i,r),f(E,i,r);const A=t.target=qh(t.props,m),S=t.targetAnchor=b("");A&&(f(S,A),o==="svg"||Nm(A)?o="svg":(o==="mathml"||Im(A))&&(o="mathml"));const x=(k,T)=>{g&16&&d(p,k,T,n,s,o,a,l)};_?x(i,E):A&&x(A,S)}else{t.el=e.el;const C=t.anchor=e.anchor,E=t.target=e.target,A=t.targetAnchor=e.targetAnchor,S=Ia(e.props),x=S?i:E,k=S?C:A;if(o==="svg"||Nm(E)?o="svg":(o==="mathml"||Im(E))&&(o="mathml"),y?(h(e.dynamicChildren,y,x,n,s,o,a),Wp(e,t,!0)):l||u(e,t,x,k,n,s,o,a,!1),_)S?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):cc(t,i,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=qh(t.props,m);T&&cc(t,T,null,c,0)}else S&&cc(t,E,A,c,1)}Q2(t)},remove(e,t,i,r,{um:n,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:h}=e;if(u&&s(d),o&&s(c),a&16){const f=o||!Ia(h);for(let m=0;m0?Ri||wo:null,J2(),Vs>0&&Ri&&Ri.push(e),e}function Pr(e,t,i,r,n,s){return ey(ve(e,t,i,r,n,s,!0))}function nl(e,t,i,r,n){return ey(Ue(e,t,i,r,n,!0))}function zn(e){return e?e.__v_isVNode===!0:!1}function wr(e,t){return e.type===t.type&&e.key===t.key}function d8(e){}const ty=({key:e})=>e??null,Tc=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||Xt(e)||ge(e)?{i:Nt,r:e,k:t,f:!!i}:e:null);function ve(e,t=null,i=null,r=0,n=null,s=e===xt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ty(t),ref:t&&Tc(t),scopeId:Md,slotScopeIds:null,children:i,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:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Nt};return a?(Yp(l,i),s&128&&e.normalize(l)):i&&(l.shapeFlag|=Ae(i)?8:16),Vs>0&&!o&&Ri&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ri.push(l),l}const Ue=u8;function u8(e,t=null,i=null,r=0,n=null,s=!1){if((!e||e===m2)&&(e=zt),zn(e)){const a=Br(e,t,!0);return i&&Yp(a,i),Vs>0&&!s&&Ri&&(a.shapeFlag&6?Ri[Ri.indexOf(e)]=a:Ri.push(a)),a.patchFlag=-2,a}if(y8(e)&&(e=e.__vccOpts),t){t=iy(t);let{class:a,style:l}=t;a&&!Ae(a)&&(t.class=Il(a)),We(l)&&(Ip(l)&&!ne(l)&&(l=Be({},l)),t.style=Os(l))}const o=Ae(e)?1:Vh(e)?128:o8(e)?64:We(e)?4:ge(e)?2:0;return ve(e,t,i,r,n,o,s,!0)}function iy(e){return e?Ip(e)||N2(e)?Be({},e):e:null}function Br(e,t,i=!1,r=!1){const{props:n,ref:s,patchFlag:o,children:a,transition:l}=e,c=t?ry(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ty(c),ref:t&&t.ref?i&&s?ne(s)?s.concat(Tc(t)):[s,Tc(t)]:Tc(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Br(e.ssContent),ssFallback:e.ssFallback&&Br(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Fn(d,l.clone(d)),d}function Ud(e=" ",t=0){return Ue(Ms,null,e,t)}function h8(e,t){const i=Ue($s,null,e);return i.staticCount=t,i}function as(e="",t=!1){return t?(vi(),nl(zt,null,e)):Ue(zt,null,e)}function Ki(e){return e==null||typeof e=="boolean"?Ue(zt):ne(e)?Ue(xt,null,e.slice()):typeof e=="object"?En(e):Ue(Ms,null,String(e))}function En(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Br(e)}function Yp(e,t){let i=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ne(t))i=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Yp(e,n()),n._c&&(n._d=!0));return}else{i=32;const n=t._;!n&&!N2(t)?t._ctx=Nt:n===3&&Nt&&(Nt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:Nt},i=32):(t=String(t),r&64?(i=16,t=[Ud(t)]):i=8);e.children=t,e.shapeFlag|=i}function ry(...e){const t={};for(let i=0;iTt||Nt;let Zc,Yh;{const e=Mv(),t=(i,r)=>{let n;return(n=e[i])||(n=e[i]=[]),n.push(r),s=>{n.length>1?n.forEach(o=>o(s)):n[0](s)}};Zc=t("__VUE_INSTANCE_SETTERS__",i=>Tt=i),Yh=t("__VUE_SSR_SETTERS__",i=>Ll=i)}const Fs=e=>{const t=Tt;return Zc(e),e.scope.on(),()=>{e.scope.off(),Zc(t)}},Xh=()=>{Tt&&Tt.scope.off(),Zc(null)};function sy(e){return e.vnode.shapeFlag&4}let Ll=!1;function oy(e,t=!1){t&&Yh(t);const{props:i,children:r}=e.vnode,n=sy(e);W6(e,i,n,t),Y6(e,r);const s=n?m8(e,t):void 0;return t&&Yh(!1),s}function m8(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Hh);const{setup:r}=i;if(r){const n=e.setupContext=r.length>1?cy(e):null,s=Fs(e);qn();const o=sn(r,e,0,[e.props,n]);if(jn(),s(),Ap(o)){if(o.then(Xh,Xh),t)return o.then(a=>{Zh(e,a,t)}).catch(a=>{Js(a,e,0)});e.asyncDep=o}else Zh(e,o,t)}else ly(e,t)}function Zh(e,t,i){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=Lp(t)),ly(e,i)}let Gc,Gh;function ay(e){Gc=e,Gh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,C6))}}const g8=()=>!Gc;function ly(e,t,i){const r=e.type;if(!e.render){if(!t&&Gc&&!r.render){const n=r.template||Up(e).template;if(n){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Be(Be({isCustomElement:s,delimiters:a},o),l);r.render=Gc(n,c)}}e.render=r.render||Rt,Gh&&Gh(e)}{const n=Fs(e);qn();try{O6(e)}finally{jn(),n()}}}const v8={get(e,t){return Pi(e,"get",""),e[t]}};function cy(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,v8),slots:e.slots,emit:e.emit,expose:t}}function Bl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Lp(s2(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Ra)return Ra[i](e)},has(t,i){return i in t||i in Ra}})):e.proxy}function Qh(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function y8(e){return ge(e)&&"__vccOpts"in e}const dy=(e,t)=>P3(e,t,Ll);function b8(e,t,i=Fe){const r=fn(),n=lt(t),s=Wi(t),o=l2((l,c)=>{let d;return K2(()=>{const u=e[t];Cr(d,u)&&(d=u,c())}),{get(){return l(),i.get?i.get(d):d},set(u){const h=r.vnode.props;!(h&&(t in h||n in h||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${n}`in h||`onUpdate:${s}`in h))&&Cr(u,d)&&(d=u,c()),r.emit(`update:${t}`,i.set?i.set(u):u)}}}),a=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[a]||{}:o,done:!1}:{done:!0}}}},o}function uy(e,t,i){const r=arguments.length;return r===2?We(t)&&!ne(t)?zn(t)?Ue(e,null,[t]):Ue(e,t):Ue(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):r===3&&zn(i)&&(i=[i]),Ue(e,t,i))}function w8(){}function _8(e,t,i,r){const n=i[r];if(n&&hy(n,e))return n;const s=t();return s.memo=e.slice(),s.memoIndex=r,i[r]=s}function hy(e,t){const i=e.memo;if(i.length!=t.length)return!1;for(let r=0;r0&&Ri&&Ri.push(e),!0}const fy="3.4.29",k8=Rt,C8=Y3,A8=go,E8=f2,x8={createComponentInstance:ny,setupComponent:oy,renderComponentRoot:Sc,setCurrentRenderingInstance:tl,isVNode:zn,normalizeVNode:Ki,getComponentPublicInstance:Bl},S8=x8,T8=null,R8=null,N8=null;/** +**/function W3(e,t){}const q3={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},j3={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function sn(e,t,i,r){try{return r?e(...r):e()}catch(n){Js(n,t,i)}}function ji(e,t,i,r){if(ge(e)){const n=sn(e,t,i,r);return n&&Ap(n)&&n.catch(s=>{Js(s,t,i)}),n}if(ne(e)){const n=[];for(let s=0;s>>1,n=ai[r],s=el(n);sIr&&ai.splice(t,1)}function Wc(e){ne(e)?xo.push(...e):(!Cn||!Cn.includes(e,e.allowRecurse?os+1:os))&&xo.push(e),u2()}function vm(e,t,i=Ja?Ir+1:0){for(;iel(i)-el(r));if(xo.length=0,Cn){Cn.push(...t);return}for(Cn=t,os=0;ose.id==null?1/0:e.id,G3=(e,t)=>{const i=el(e)-el(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function h2(e){Mh=!1,Ja=!0,ai.sort(G3);try{for(Ir=0;Irgo.emit(n,...s)),rc=[]):typeof window<"u"&&window.HTMLElement&&!((r=(i=window.navigator)==null?void 0:i.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{f2(s,t)}),setTimeout(()=>{go||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,rc=[])},3e3)):rc=[]}function Q3(e,t,...i){if(e.isUnmounted)return;const r=e.vnode.props||Fe;let n=i;const s=t.startsWith("update:"),o=s&&t.slice(7);if(o&&o in r){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:h}=r[d]||Fe;h&&(n=i.map(f=>Ae(f)?f.trim():f)),u&&(n=i.map(Hc))}let a,l=r[a=ko(t)]||r[a=ko(lt(t))];!l&&s&&(l=r[a=ko(Wi(t))]),l&&ji(l,e,6,n);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ji(c,e,6,n)}}function p2(e,t,i=!1){const r=t.emitsCache,n=r.get(e);if(n!==void 0)return n;const s=e.emits;let o={},a=!1;if(!ge(e)){const l=c=>{const d=p2(c,t,!0);d&&(a=!0,Be(o,d))};!i&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(We(e)&&r.set(e,null),null):(ne(s)?s.forEach(l=>o[l]=null):Be(o,s),We(e)&&r.set(e,o),o)}function Od(e,t){return!e||!Zs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ve(e,t[0].toLowerCase()+t.slice(1))||Ve(e,Wi(t))||Ve(e,t))}let Rt=null,Md=null;function tl(e){const t=Rt;return Rt=e,Md=e&&e.type.__scopeId||null,t}function J3(e){Md=e}function e6(){Md=null}const t6=e=>ls;function ls(e,t=Rt,i){if(!t||e._n)return e;const r=(...n)=>{r._d&&jh(-1);const s=tl(t);let o;try{o=e(...n)}finally{tl(s),r._d&&jh(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Sc(e){const{type:t,vnode:i,proxy:r,withProxy:n,propsOptions:[s],slots:o,attrs:a,emit:l,render:c,renderCache:d,props:u,data:h,setupState:f,ctx:m,inheritAttrs:b}=e,w=tl(e);let _,g;try{if(i.shapeFlag&4){const y=n||r,C=y;_=Ki(c.call(C,y,d,u,f,h,m)),g=a}else{const y=t;_=Ki(y.length>1?y(u,{attrs:a,slots:o,emit:l}):y(u,null)),g=t.props?a:r6(a)}}catch(y){$a.length=0,Js(y,e,1),_=Ue(zt)}let p=_;if(g&&b!==!1){const y=Object.keys(g),{shapeFlag:C}=p;y.length&&C&7&&(s&&y.some(kp)&&(g=n6(g,s)),p=Br(p,g,!1,!0))}return i.dirs&&(p=Br(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(i.dirs):i.dirs),i.transition&&(p.transition=i.transition),_=p,tl(w),_}function i6(e,t=!0){let i;for(let r=0;r{let t;for(const i in e)(i==="class"||i==="style"||Zs(i))&&((t||(t={}))[i]=e[i]);return t},n6=(e,t)=>{const i={};for(const r in e)(!kp(r)||!(r.slice(9)in t))&&(i[r]=e[r]);return i};function s6(e,t,i){const{props:r,children:n,component:s}=e,{props:o,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return r?ym(r,o,c):!!o;if(l&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;let Fh=0;const d6={name:"Suspense",__isSuspense:!0,process(e,t,i,r,n,s,o,a,l,c){if(e==null)h6(t,i,r,n,s,o,a,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}f6(e,t,i,r,n,o,a,l,c)}},hydrate:p6,create:Fp,normalize:m6},u6=d6;function il(e,t){const i=e.props&&e.props[t];ge(i)&&i()}function h6(e,t,i,r,n,s,o,a,l){const{p:c,o:{createElement:d}}=l,u=d("div"),h=e.suspense=Fp(e,n,r,t,u,i,s,o,a,l);c(null,h.pendingBranch=e.ssContent,u,null,r,h,s,o),h.deps>0?(il(e,"onPending"),il(e,"onFallback"),c(null,e.ssFallback,t,i,r,null,s,o),So(h,e.ssFallback)):h.resolve(!1,!0)}function f6(e,t,i,r,n,s,o,a,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const h=t.ssContent,f=t.ssFallback,{activeBranch:m,pendingBranch:b,isInFallback:w,isHydrating:_}=u;if(b)u.pendingBranch=h,wr(h,b)?(l(b,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():w&&(_||(l(m,f,i,r,n,null,s,o,a),So(u,f)))):(u.pendingId=Fh++,_?(u.isHydrating=!1,u.activeBranch=b):c(b,n,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),w?(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0?u.resolve():(l(m,f,i,r,n,null,s,o,a),So(u,f))):m&&wr(h,m)?(l(m,h,i,r,n,u,s,o,a),u.resolve(!0)):(l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0&&u.resolve()));else if(m&&wr(h,m))l(m,h,i,r,n,u,s,o,a),So(u,h);else if(il(t,"onPending"),u.pendingBranch=h,h.shapeFlag&512?u.pendingId=h.component.suspenseId:u.pendingId=Fh++,l(null,h,u.hiddenContainer,null,n,u,s,o,a),u.deps<=0)u.resolve();else{const{timeout:g,pendingId:p}=u;g>0?setTimeout(()=>{u.pendingId===p&&u.fallback(f)},g):g===0&&u.fallback(f)}}function Fp(e,t,i,r,n,s,o,a,l,c,d=!1){const{p:u,m:h,um:f,n:m,o:{parentNode:b,remove:w}}=c;let _;const g=g6(e);g&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const p=e.props?Uc(e.props.timeout):void 0,y=s,C={vnode:e,parent:t,parentComponent:i,namespace:o,container:r,hiddenContainer:n,deps:0,pendingId:Fh++,timeout:typeof p=="number"?p:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(E=!1,A=!1){const{vnode:x,activeBranch:S,pendingBranch:k,pendingId:N,effects:I,parentComponent:T,container:P}=C;let O=!1;C.isHydrating?C.isHydrating=!1:E||(O=S&&k.transition&&k.transition.mode==="out-in",O&&(S.transition.afterLeave=()=>{N===C.pendingId&&(h(k,P,s===y?m(S):s,0),Wc(I))}),S&&(b(S.el)!==C.hiddenContainer&&(s=m(S)),f(S,T,C,!0)),O||h(k,P,s,0)),So(C,k),C.pendingBranch=null,C.isInFallback=!1;let M=C.parent,H=!1;for(;M;){if(M.pendingBranch){M.effects.push(...I),H=!0;break}M=M.parent}!H&&!O&&Wc(I),C.effects=[],g&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),il(x,"onResolve")},fallback(E){if(!C.pendingBranch)return;const{vnode:A,activeBranch:x,parentComponent:S,container:k,namespace:N}=C;il(A,"onFallback");const I=m(x),T=()=>{C.isInFallback&&(u(null,E,k,I,S,null,N,a,l),So(C,E))},P=E.transition&&E.transition.mode==="out-in";P&&(x.transition.afterLeave=T),C.isInFallback=!0,f(x,S,null,!0),P||T()},move(E,A,x){C.activeBranch&&h(C.activeBranch,E,A,x),C.container=E},next(){return C.activeBranch&&m(C.activeBranch)},registerDep(E,A,x){const S=!!C.pendingBranch;S&&C.deps++;const k=E.vnode.el;E.asyncDep.catch(N=>{Js(N,E,0)}).then(N=>{if(E.isUnmounted||C.isUnmounted||C.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:I}=E;Zh(E,N,!1),k&&(I.el=k);const T=!k&&E.subTree.el;A(E,I,b(k||E.subTree.el),k?null:m(E.subTree),C,o,x),T&&w(T),Op(E,I.el),S&&--C.deps===0&&C.resolve()})},unmount(E,A){C.isUnmounted=!0,C.activeBranch&&f(C.activeBranch,i,E,A),C.pendingBranch&&f(C.pendingBranch,i,E,A)}};return C}function p6(e,t,i,r,n,s,o,a,l){const c=t.suspense=Fp(t,r,i,e.parentNode,document.createElement("div"),null,n,s,o,a,!0),d=l(e,c.pendingBranch=t.ssContent,i,c,s,o);return c.deps===0&&c.resolve(!1,!0),d}function m6(e){const{shapeFlag:t,children:i}=e,r=t&32;e.ssContent=wm(r?i.default:i),e.ssFallback=r?wm(i.fallback):Ue(zt)}function wm(e){let t;if(ge(e)){const i=Vs&&e._c;i&&(e._d=!1,vi()),e=e(),i&&(e._d=!0,t=Ni,J2())}return ne(e)&&(e=i6(e)),e=Ki(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(i=>i!==e)),e}function g2(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):Wc(e)}function So(e,t){e.activeBranch=t;const{vnode:i,parentComponent:r}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;i.el=n,r&&r.subTree===i&&(r.vnode.el=n,Op(r,n))}function g6(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function Vd(e,t,i=Tt,r=!1){if(i){const n=i[e]||(i[e]=[]),s=t.__weh||(t.__weh=(...o)=>{qn();const a=Fs(i),l=ji(t,i,e,o);return a(),jn(),l});return r?n.unshift(s):n.push(s),s}}const un=e=>(t,i=Tt)=>{(!Ll||e==="sp")&&Vd(e,(...r)=>t(...r),i)},zp=un("bm"),hn=un("m"),v2=un("bu"),Fd=un("u"),$l=un("bum"),zd=un("um"),y2=un("sp"),b2=un("rtg"),w2=un("rtc");function _2(e,t=Tt){Vd("ec",e,t)}function v6(e,t){if(Rt===null)return e;const i=Bl(Rt),r=e.dirs||(e.dirs=[]);for(let n=0;nt(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);n=new Array(o.length);for(let a=0,l=o.length;a{const s=r.fn(...n);return s&&(s.key=r.key),s}:r.fn)}return e}/*! #__NO_SIDE_EFFECTS__ */function Hp(e,t){return ge(e)?Be({name:e.name},t,{setup:e}):e}const Is=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function w6(e){ge(e)&&(e={loader:e});const{loader:t,loadingComponent:i,errorComponent:r,delay:n=200,timeout:s,suspensible:o=!0,onError:a}=e;let l=null,c,d=0;const u=()=>(d++,l=null,h()),h=()=>{let f;return l||(f=l=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),a)return new Promise((b,w)=>{a(m,()=>b(u()),()=>w(m),d+1)});throw m}).then(m=>f!==l&&l?l:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return Hp({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const f=Tt;if(c)return()=>cu(c,f);const m=g=>{l=null,Js(g,f,13,!r)};if(o&&f.suspense||Ll)return h().then(g=>()=>cu(g,f)).catch(g=>(m(g),()=>r?Ue(r,{error:g}):null));const b=dt(!1),w=dt(),_=dt(!!n);return n&&setTimeout(()=>{_.value=!1},n),s!=null&&setTimeout(()=>{if(!b.value&&!w.value){const g=new Error(`Async component timed out after ${s}ms.`);m(g),w.value=g}},s),h().then(()=>{b.value=!0,f.parent&&Dl(f.parent.vnode)&&(f.parent.effect.dirty=!0,Bd(f.parent.update))}).catch(g=>{m(g),w.value=g}),()=>{if(b.value&&c)return cu(c,f);if(w.value&&r)return Ue(r,{error:w.value});if(i&&!_.value)return Ue(i)}}})}function cu(e,t){const{ref:i,props:r,children:n,ce:s}=t.vnode,o=Ue(e,r,n);return o.ref=i,o.ce=s,delete t.vnode.ce,o}function k2(e,t,i={},r,n){if(Rt.isCE||Rt.parent&&Is(Rt.parent)&&Rt.parent.isCE)return t!=="default"&&(i.name=t),Ue("slot",i,r&&r());let s=e[t];s&&s._c&&(s._d=!1),vi();const o=s&&C2(s(i)),a=nl(xt,{key:i.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!n&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function C2(e){return e.some(t=>zn(t)?!(t.type===zt||t.type===xt&&!C2(t.children)):!0)?e:null}function _6(e,t){const i={};for(const r in e)i[t&&/[A-Z]/.test(r)?`on:${r}`:ko(r)]=e[r];return i}const zh=e=>e?sy(e)?Bl(e):zh(e.parent):null,Na=Be(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=>zh(e.parent),$root:e=>zh(e.root),$emit:e=>e.emit,$options:e=>Up(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Bd(e.update)}),$nextTick:e=>e.n||(e.n=Ld.bind(e.proxy)),$watch:e=>e8.bind(e)}),du=(e,t)=>e!==Fe&&!e.__isScriptSetup&&Ve(e,t),Hh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:r,data:n,props:s,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return i[t];case 3:return s[t]}else{if(du(r,t))return o[t]=1,r[t];if(n!==Fe&&Ve(n,t))return o[t]=2,n[t];if((c=e.propsOptions[0])&&Ve(c,t))return o[t]=3,s[t];if(i!==Fe&&Ve(i,t))return o[t]=4,i[t];Uh&&(o[t]=0)}}const d=Na[t];let u,h;if(d)return t==="$attrs"&&Pi(e.attrs,"get",""),d(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(i!==Fe&&Ve(i,t))return o[t]=4,i[t];if(h=l.config.globalProperties,Ve(h,t))return h[t]},set({_:e},t,i){const{data:r,setupState:n,ctx:s}=e;return du(n,t)?(n[t]=i,!0):r!==Fe&&Ve(r,t)?(r[t]=i,!0):Ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:n,propsOptions:s}},o){let a;return!!i[o]||e!==Fe&&Ve(e,o)||du(t,o)||(a=s[0])&&Ve(a,o)||Ve(r,o)||Ve(Na,o)||Ve(n.config.globalProperties,o)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:Ve(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}},k6=Be({},Hh,{get(e,t){if(t!==Symbol.unscopables)return Hh.get(e,t,e)},has(e,t){return t[0]!=="_"&&!W4(t)}});function C6(){return null}function A6(){return null}function E6(e){}function x6(e){}function S6(){return null}function T6(){}function N6(e,t){return null}function R6(){return A2().slots}function I6(){return A2().attrs}function A2(){const e=fn();return e.setupContext||(e.setupContext=cy(e))}function rl(e){return ne(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}function $6(e,t){const i=rl(e);for(const r in t){if(r.startsWith("__skip"))continue;let n=i[r];n?ne(n)||ge(n)?n=i[r]={type:n,default:t[r]}:n.default=t[r]:n===null&&(n=i[r]={default:t[r]}),n&&t[`__skip_${r}`]&&(n.skipFactory=!0)}return i}function P6(e,t){return!e||!t?e||t:ne(e)&&ne(t)?e.concat(t):Be({},rl(e),rl(t))}function D6(e,t){const i={};for(const r in e)t.includes(r)||Object.defineProperty(i,r,{enumerable:!0,get:()=>e[r]});return i}function L6(e){const t=fn();let i=e();return Xh(),Ap(i)&&(i=i.catch(r=>{throw Fs(t),r})),[i,()=>Fs(t)]}let Uh=!0;function B6(e){const t=Up(e),i=e.proxy,r=e.ctx;Uh=!1,t.beforeCreate&&_m(t.beforeCreate,e,"bc");const{data:n,computed:s,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:m,activated:b,deactivated:w,beforeDestroy:_,beforeUnmount:g,destroyed:p,unmounted:y,render:C,renderTracked:E,renderTriggered:A,errorCaptured:x,serverPrefetch:S,expose:k,inheritAttrs:N,components:I,directives:T,filters:P}=t;if(c&&O6(c,r,null),o)for(const H in o){const U=o[H];ge(U)&&(r[H]=U.bind(i))}if(n){const H=n.call(i,i);We(H)&&(e.data=Pd(H))}if(Uh=!0,s)for(const H in s){const U=s[H],me=ge(U)?U.bind(i,i):ge(U.get)?U.get.bind(i,i):Nt,ye=!ge(U)&&ge(U.set)?U.set.bind(i):Nt,F=dy({get:me,set:ye});Object.defineProperty(r,H,{enumerable:!0,configurable:!0,get:()=>F.value,set:W=>F.value=W})}if(a)for(const H in a)E2(a[H],r,i,H);if(l){const H=ge(l)?l.call(i):l;Reflect.ownKeys(H).forEach(U=>{S2(U,H[U])})}d&&_m(d,e,"c");function M(H,U){ne(U)?U.forEach(me=>H(me.bind(i))):U&&H(U.bind(i))}if(M(zp,u),M(hn,h),M(v2,f),M(Fd,m),M(q2,b),M(j2,w),M(_2,x),M(w2,E),M(b2,A),M($l,g),M(zd,y),M(y2,S),ne(k))if(k.length){const H=e.exposed||(e.exposed={});k.forEach(U=>{Object.defineProperty(H,U,{get:()=>i[U],set:me=>i[U]=me})})}else e.exposed||(e.exposed={});C&&e.render===Nt&&(e.render=C),N!=null&&(e.inheritAttrs=N),I&&(e.components=I),T&&(e.directives=T)}function O6(e,t,i=Nt){ne(e)&&(e=Kh(e));for(const r in e){const n=e[r];let s;We(n)?"default"in n?s=Ra(n.from||r,n.default,!0):s=Ra(n.from||r):s=Ra(n),Xt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function _m(e,t,i){ji(ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,i)}function E2(e,t,i,r){const n=r.includes(".")?W2(i,r):()=>i[r];if(Ae(e)){const s=t[e];ge(s)&&No(n,s)}else if(ge(e))No(n,e.bind(i));else if(We(e))if(ne(e))e.forEach(s=>E2(s,t,i,r));else{const s=ge(e.handler)?e.handler.bind(i):t[e.handler];ge(s)&&No(n,s,e)}}function Up(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:n,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!n.length&&!i&&!r?l=t:(l={},n.length&&n.forEach(c=>jc(l,c,o,!0)),jc(l,t,o)),We(t)&&s.set(t,l),l}function jc(e,t,i,r=!1){const{mixins:n,extends:s}=t;s&&jc(e,s,i,!0),n&&n.forEach(o=>jc(e,o,i,!0));for(const o in t)if(!(r&&o==="expose")){const a=M6[o]||i&&i[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const M6={data:km,props:Cm,emits:Cm,methods:wa,computed:wa,beforeCreate:pi,created:pi,beforeMount:pi,mounted:pi,beforeUpdate:pi,updated:pi,beforeDestroy:pi,beforeUnmount:pi,destroyed:pi,unmounted:pi,activated:pi,deactivated:pi,errorCaptured:pi,serverPrefetch:pi,components:wa,directives:wa,watch:F6,provide:km,inject:V6};function km(e,t){return t?e?function(){return Be(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function V6(e,t){return wa(Kh(e),Kh(t))}function Kh(e){if(ne(e)){const t={};for(let i=0;i1)return i&&ge(t)?t.call(r&&r.proxy):t}}function U6(){return!!(Tt||Rt||To)}const T2={},N2=()=>Object.create(T2),R2=e=>Object.getPrototypeOf(e)===T2;function K6(e,t,i,r=!1){const n={},s=N2();e.propsDefaults=Object.create(null),I2(e,t,n,s);for(const o in e.propsOptions[0])o in n||(n[o]=void 0);i?e.props=r?n:n2(n):e.type.props?e.props=n:e.props=s,e.attrs=s}function W6(e,t,i,r){const{props:n,attrs:s,vnode:{patchFlag:o}}=e,a=Oe(n),[l]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,f]=$2(u,t,!0);Be(o,h),f&&a.push(...f)};!i&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!l)return We(e)&&r.set(e,wo),wo;if(ne(s))for(let d=0;d-1,f[1]=b<0||m-1||Ve(f,"default"))&&a.push(u)}}}const c=[o,a];return We(e)&&r.set(e,c),c}function Am(e){return e[0]!=="$"&&!$n(e)}function Em(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function xm(e,t){return Em(e)===Em(t)}function Sm(e,t){return ne(t)?t.findIndex(i=>xm(i,e)):ge(t)&&xm(t,e)?0:-1}const P2=e=>e[0]==="_"||e==="$stable",Kp=e=>ne(e)?e.map(Ki):[Ki(e)],q6=(e,t,i)=>{if(t._n)return t;const r=ls((...n)=>Kp(t(...n)),i);return r._c=!1,r},D2=(e,t,i)=>{const r=e._ctx;for(const n in e){if(P2(n))continue;const s=e[n];if(ge(s))t[n]=q6(n,s,r);else if(s!=null){const o=Kp(s);t[n]=()=>o}}},L2=(e,t)=>{const i=Kp(t);e.slots.default=()=>i},j6=(e,t)=>{const i=e.slots=N2();if(e.vnode.shapeFlag&32){const r=t._;r?(Be(i,t),Ov(i,"_",r,!0)):D2(t,i)}else t&&L2(e,t)},Y6=(e,t,i)=>{const{vnode:r,slots:n}=e;let s=!0,o=Fe;if(r.shapeFlag&32){const a=t._;a?i&&a===1?s=!1:(Be(n,t),!i&&a===1&&delete n._):(s=!t.$stable,D2(t,n)),o=t}else t&&(L2(e,t),o={default:1});if(s)for(const a in n)!P2(a)&&o[a]==null&&delete n[a]};function Yc(e,t,i,r,n=!1){if(ne(e)){e.forEach((h,f)=>Yc(h,t&&(ne(t)?t[f]:t),i,r,n));return}if(Is(r)&&!n)return;const s=r.shapeFlag&4?Bl(r.component):r.el,o=n?null:s,{i:a,r:l}=e,c=t&&t.r,d=a.refs===Fe?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(Ae(c)?(d[c]=null,Ve(u,c)&&(u[c]=null)):Xt(c)&&(c.value=null)),ge(l))sn(l,a,12,[o,d]);else{const h=Ae(l),f=Xt(l);if(h||f){const m=()=>{if(e.f){const b=h?Ve(u,l)?u[l]:d[l]:l.value;n?ne(b)&&Cp(b,s):ne(b)?b.includes(s)||b.push(s):h?(d[l]=[s],Ve(u,l)&&(u[l]=d[l])):(l.value=[s],e.k&&(d[e.k]=l.value))}else h?(d[l]=o,Ve(u,l)&&(u[l]=o)):f&&(l.value=o,e.k&&(d[e.k]=o))};o?(m.id=-1,Lt(m,i)):m()}}}let Tm=!1;const oo=()=>{Tm||(console.error("Hydration completed but contains mismatches."),Tm=!0)},X6=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Z6=e=>e.namespaceURI.includes("MathML"),nc=e=>{if(X6(e))return"svg";if(Z6(e))return"mathml"},sc=e=>e.nodeType===8;function G6(e){const{mt:t,p:i,o:{patchProp:r,createText:n,nextSibling:s,parentNode:o,remove:a,insert:l,createComment:c}}=e,d=(p,y)=>{if(!y.hasChildNodes()){i(null,p,y),qc(),y._vnode=p;return}u(y.firstChild,p,null,null,null),qc(),y._vnode=p},u=(p,y,C,E,A,x=!1)=>{x=x||!!y.dynamicChildren;const S=sc(p)&&p.data==="[",k=()=>b(p,y,C,E,A,S),{type:N,ref:I,shapeFlag:T,patchFlag:P}=y;let O=p.nodeType;y.el=p,P===-2&&(x=!1,y.dynamicChildren=null);let M=null;switch(N){case Ms:O!==3?y.children===""?(l(y.el=n(""),o(p),p),M=p):M=k():(p.data!==y.children&&(oo(),p.data=y.children),M=s(p));break;case zt:g(p)?(M=s(p),_(y.el=p.content.firstChild,p,C)):O!==8||S?M=k():M=s(p);break;case $s:if(S&&(p=s(p),O=p.nodeType),O===1||O===3){M=p;const H=!y.children.length;for(let U=0;U{x=x||!!y.dynamicChildren;const{type:S,props:k,patchFlag:N,shapeFlag:I,dirs:T,transition:P}=y,O=S==="input"||S==="option";if(O||N!==-1){T&&Nr(y,null,C,"created");let M=!1;if(g(p)){M=V2(E,P)&&C&&C.vnode.props&&C.vnode.props.appear;const U=p.content.firstChild;M&&P.beforeEnter(U),_(U,p,C),y.el=p=U}if(I&16&&!(k&&(k.innerHTML||k.textContent))){let U=f(p.firstChild,y,p,C,E,A,x);for(;U;){oo();const me=U;U=U.nextSibling,a(me)}}else I&8&&p.textContent!==y.children&&(oo(),p.textContent=y.children);if(k)if(O||!x||N&48)for(const U in k)(O&&(U.endsWith("value")||U==="indeterminate")||Zs(U)&&!$n(U)||U[0]===".")&&r(p,U,null,k[U],void 0,void 0,C);else k.onClick&&r(p,"onClick",null,k.onClick,void 0,void 0,C);let H;(H=k&&k.onVnodeBeforeMount)&&Si(H,C,y),T&&Nr(y,null,C,"beforeMount"),((H=k&&k.onVnodeMounted)||T||M)&&g2(()=>{H&&Si(H,C,y),M&&P.enter(p),T&&Nr(y,null,C,"mounted")},E)}return p.nextSibling},f=(p,y,C,E,A,x,S)=>{S=S||!!y.dynamicChildren;const k=y.children,N=k.length;for(let I=0;I{const{slotScopeIds:S}=y;S&&(A=A?A.concat(S):S);const k=o(p),N=f(s(p),y,k,C,E,A,x);return N&&sc(N)&&N.data==="]"?s(y.anchor=N):(oo(),l(y.anchor=c("]"),k,N),N)},b=(p,y,C,E,A,x)=>{if(oo(),y.el=null,x){const N=w(p);for(;;){const I=s(p);if(I&&I!==N)a(I);else break}}const S=s(p),k=o(p);return a(p),i(null,y,k,S,C,E,nc(k),A),S},w=(p,y="[",C="]")=>{let E=0;for(;p;)if(p=s(p),p&&sc(p)&&(p.data===y&&E++,p.data===C)){if(E===0)return s(p);E--}return p},_=(p,y,C)=>{const E=y.parentNode;E&&E.replaceChild(p,y);let A=C;for(;A;)A.vnode.el===y&&(A.vnode.el=A.subTree.el=p),A=A.parent},g=p=>p.nodeType===1&&p.tagName.toLowerCase()==="template";return[d,u]}const Lt=g2;function B2(e){return M2(e)}function O2(e){return M2(e,G6)}function M2(e,t){const i=Mv();i.__VUE__=!0;const{insert:r,remove:n,patchProp:s,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:f=Nt,insertStaticContent:m}=e,b=($,L,z,j=null,X=null,J=null,ee=void 0,Q=null,G=!!L.dynamicChildren)=>{if($===L)return;$&&!wr($,L)&&(j=pt($),W($,X,J,!0),$=null),L.patchFlag===-2&&(G=!1,L.dynamicChildren=null);const{type:q,ref:te,shapeFlag:le}=L;switch(q){case Ms:w($,L,z,j);break;case zt:_($,L,z,j);break;case $s:$==null&&g(L,z,j,ee);break;case xt:I($,L,z,j,X,J,ee,Q,G);break;default:le&1?C($,L,z,j,X,J,ee,Q,G):le&6?T($,L,z,j,X,J,ee,Q,G):(le&64||le&128)&&q.process($,L,z,j,X,J,ee,Q,G,ui)}te!=null&&X&&Yc(te,$&&$.ref,J,L||$,!L)},w=($,L,z,j)=>{if($==null)r(L.el=a(L.children),z,j);else{const X=L.el=$.el;L.children!==$.children&&c(X,L.children)}},_=($,L,z,j)=>{$==null?r(L.el=l(L.children||""),z,j):L.el=$.el},g=($,L,z,j)=>{[$.el,$.anchor]=m($.children,L,z,j,$.el,$.anchor)},p=({el:$,anchor:L},z,j)=>{let X;for(;$&&$!==L;)X=h($),r($,z,j),$=X;r(L,z,j)},y=({el:$,anchor:L})=>{let z;for(;$&&$!==L;)z=h($),n($),$=z;n(L)},C=($,L,z,j,X,J,ee,Q,G)=>{L.type==="svg"?ee="svg":L.type==="math"&&(ee="mathml"),$==null?E(L,z,j,X,J,ee,Q,G):S($,L,X,J,ee,Q,G)},E=($,L,z,j,X,J,ee,Q)=>{let G,q;const{props:te,shapeFlag:le,transition:ae,dirs:fe}=$;if(G=$.el=o($.type,J,te&&te.is,te),le&8?d(G,$.children):le&16&&x($.children,G,null,j,X,uu($,J),ee,Q),fe&&Nr($,null,j,"created"),A(G,$,$.scopeId,ee,j),te){for(const Ge in te)Ge!=="value"&&!$n(Ge)&&s(G,Ge,null,te[Ge],J,$.children,j,X,xe);"value"in te&&s(G,"value",null,te.value,J),(q=te.onVnodeBeforeMount)&&Si(q,j,$)}fe&&Nr($,null,j,"beforeMount");const ke=V2(X,ae);ke&&ae.beforeEnter(G),r(G,L,z),((q=te&&te.onVnodeMounted)||ke||fe)&&Lt(()=>{q&&Si(q,j,$),ke&&ae.enter(G),fe&&Nr($,null,j,"mounted")},X)},A=($,L,z,j,X)=>{if(z&&f($,z),j)for(let J=0;J{for(let q=G;q<$.length;q++){const te=$[q]=Q?En($[q]):Ki($[q]);b(null,te,L,z,j,X,J,ee,Q)}},S=($,L,z,j,X,J,ee)=>{const Q=L.el=$.el;let{patchFlag:G,dynamicChildren:q,dirs:te}=L;G|=$.patchFlag&16;const le=$.props||Fe,ae=L.props||Fe;let fe;if(z&&es(z,!1),(fe=ae.onVnodeBeforeUpdate)&&Si(fe,z,L,$),te&&Nr(L,$,z,"beforeUpdate"),z&&es(z,!0),q?k($.dynamicChildren,q,Q,z,j,uu(L,X),J):ee||U($,L,Q,null,z,j,uu(L,X),J,!1),G>0){if(G&16)N(Q,L,le,ae,z,j,X);else if(G&2&&le.class!==ae.class&&s(Q,"class",null,ae.class,X),G&4&&s(Q,"style",le.style,ae.style,X),G&8){const ke=L.dynamicProps;for(let Ge=0;Ge{fe&&Si(fe,z,L,$),te&&Nr(L,$,z,"updated")},j)},k=($,L,z,j,X,J,ee)=>{for(let Q=0;Q{if(z!==j){if(z!==Fe)for(const Q in z)!$n(Q)&&!(Q in j)&&s($,Q,z[Q],null,ee,L.children,X,J,xe);for(const Q in j){if($n(Q))continue;const G=j[Q],q=z[Q];G!==q&&Q!=="value"&&s($,Q,q,G,ee,L.children,X,J,xe)}"value"in j&&s($,"value",z.value,j.value,ee)}},I=($,L,z,j,X,J,ee,Q,G)=>{const q=L.el=$?$.el:a(""),te=L.anchor=$?$.anchor:a("");let{patchFlag:le,dynamicChildren:ae,slotScopeIds:fe}=L;fe&&(Q=Q?Q.concat(fe):fe),$==null?(r(q,z,j),r(te,z,j),x(L.children||[],z,te,X,J,ee,Q,G)):le>0&&le&64&&ae&&$.dynamicChildren?(k($.dynamicChildren,ae,z,X,J,ee,Q),(L.key!=null||X&&L===X.subTree)&&Wp($,L,!0)):U($,L,z,te,X,J,ee,Q,G)},T=($,L,z,j,X,J,ee,Q,G)=>{L.slotScopeIds=Q,$==null?L.shapeFlag&512?X.ctx.activate(L,z,j,ee,G):P(L,z,j,X,J,ee,G):O($,L,G)},P=($,L,z,j,X,J,ee)=>{const Q=$.component=ny($,j,X);if(Dl($)&&(Q.ctx.renderer=ui),oy(Q),Q.asyncDep){if(X&&X.registerDep(Q,M,ee),!$.el){const G=Q.subTree=Ue(zt);_(null,G,L,z)}}else M(Q,$,L,z,X,J,ee)},O=($,L,z)=>{const j=L.component=$.component;if(s6($,L,z))if(j.asyncDep&&!j.asyncResolved){H(j,L,z);return}else j.next=L,Z3(j.update),j.effect.dirty=!0,j.update();else L.el=$.el,j.vnode=L},M=($,L,z,j,X,J,ee)=>{const Q=()=>{if($.isMounted){let{next:te,bu:le,u:ae,parent:fe,vnode:ke}=$;{const tr=F2($);if(tr){te&&(te.el=ke.el,H($,te,ee)),tr.asyncDep.then(()=>{$.isUnmounted||Q()});return}}let Ge=te,Me;es($,!1),te?(te.el=ke.el,H($,te,ee)):te=ke,le&&Co(le),(Me=te.props&&te.props.onVnodeBeforeUpdate)&&Si(Me,fe,te,ke),es($,!0);const mt=Sc($),$t=$.subTree;$.subTree=mt,b($t,mt,u($t.el),pt($t),$,X,J),te.el=mt.el,Ge===null&&Op($,mt.el),ae&&Lt(ae,X),(Me=te.props&&te.props.onVnodeUpdated)&&Lt(()=>Si(Me,fe,te,ke),X)}else{let te;const{el:le,props:ae}=L,{bm:fe,m:ke,parent:Ge}=$,Me=Is(L);if(es($,!1),fe&&Co(fe),!Me&&(te=ae&&ae.onVnodeBeforeMount)&&Si(te,Ge,L),es($,!0),le&&Hr){const mt=()=>{$.subTree=Sc($),Hr(le,$.subTree,$,X,null)};Me?L.type.__asyncLoader().then(()=>!$.isUnmounted&&mt()):mt()}else{const mt=$.subTree=Sc($);b(null,mt,z,j,$,X,J),L.el=mt.el}if(ke&&Lt(ke,X),!Me&&(te=ae&&ae.onVnodeMounted)){const mt=L;Lt(()=>Si(te,Ge,mt),X)}(L.shapeFlag&256||Ge&&Is(Ge.vnode)&&Ge.vnode.shapeFlag&256)&&$.a&&Lt($.a,X),$.isMounted=!0,L=z=j=null}},G=$.effect=new Lo(Q,Nt,()=>Bd(q),$.scope),q=$.update=()=>{G.dirty&&G.run()};q.id=$.uid,es($,!0),q()},H=($,L,z)=>{L.component=$;const j=$.vnode.props;$.vnode=L,$.next=null,W6($,L.props,j,z),Y6($,L.children,z),qn(),vm($),jn()},U=($,L,z,j,X,J,ee,Q,G=!1)=>{const q=$&&$.children,te=$?$.shapeFlag:0,le=L.children,{patchFlag:ae,shapeFlag:fe}=L;if(ae>0){if(ae&128){ye(q,le,z,j,X,J,ee,Q,G);return}else if(ae&256){me(q,le,z,j,X,J,ee,Q,G);return}}fe&8?(te&16&&xe(q,X,J),le!==q&&d(z,le)):te&16?fe&16?ye(q,le,z,j,X,J,ee,Q,G):xe(q,X,J,!0):(te&8&&d(z,""),fe&16&&x(le,z,j,X,J,ee,Q,G))},me=($,L,z,j,X,J,ee,Q,G)=>{$=$||wo,L=L||wo;const q=$.length,te=L.length,le=Math.min(q,te);let ae;for(ae=0;aete?xe($,X,J,!0,!1,le):x(L,z,j,X,J,ee,Q,G,le)},ye=($,L,z,j,X,J,ee,Q,G)=>{let q=0;const te=L.length;let le=$.length-1,ae=te-1;for(;q<=le&&q<=ae;){const fe=$[q],ke=L[q]=G?En(L[q]):Ki(L[q]);if(wr(fe,ke))b(fe,ke,z,null,X,J,ee,Q,G);else break;q++}for(;q<=le&&q<=ae;){const fe=$[le],ke=L[ae]=G?En(L[ae]):Ki(L[ae]);if(wr(fe,ke))b(fe,ke,z,null,X,J,ee,Q,G);else break;le--,ae--}if(q>le){if(q<=ae){const fe=ae+1,ke=feae)for(;q<=le;)W($[q],X,J,!0),q++;else{const fe=q,ke=q,Ge=new Map;for(q=ke;q<=ae;q++){const hi=L[q]=G?En(L[q]):Ki(L[q]);hi.key!=null&&Ge.set(hi.key,q)}let Me,mt=0;const $t=ae-ke+1;let tr=!1,Gl=0;const gn=new Array($t);for(q=0;q<$t;q++)gn[q]=0;for(q=fe;q<=le;q++){const hi=$[q];if(mt>=$t){W(hi,X,J,!0);continue}let ir;if(hi.key!=null)ir=Ge.get(hi.key);else for(Me=ke;Me<=ae;Me++)if(gn[Me-ke]===0&&wr(hi,L[Me])){ir=Me;break}ir===void 0?W(hi,X,J,!0):(gn[ir-ke]=q+1,ir>=Gl?Gl=ir:tr=!0,b(hi,L[ir],z,null,X,J,ee,Q,G),mt++)}const ha=tr?Q6(gn):wo;for(Me=ha.length-1,q=$t-1;q>=0;q--){const hi=ke+q,ir=L[hi],fa=hi+1{const{el:J,type:ee,transition:Q,children:G,shapeFlag:q}=$;if(q&6){F($.component.subTree,L,z,j);return}if(q&128){$.suspense.move(L,z,j);return}if(q&64){ee.move($,L,z,ui);return}if(ee===xt){r(J,L,z);for(let le=0;leQ.enter(J),X);else{const{leave:le,delayLeave:ae,afterLeave:fe}=Q,ke=()=>r(J,L,z),Ge=()=>{le(J,()=>{ke(),fe&&fe()})};ae?ae(J,ke,Ge):Ge()}else r(J,L,z)},W=($,L,z,j=!1,X=!1)=>{const{type:J,props:ee,ref:Q,children:G,dynamicChildren:q,shapeFlag:te,patchFlag:le,dirs:ae,memoIndex:fe}=$;if(Q!=null&&Yc(Q,null,z,$,!0),fe!=null&&(L.renderCache[fe]=void 0),te&256){L.ctx.deactivate($);return}const ke=te&1&&ae,Ge=!Is($);let Me;if(Ge&&(Me=ee&&ee.onVnodeBeforeUnmount)&&Si(Me,L,$),te&6)De($.component,z,j);else{if(te&128){$.suspense.unmount(z,j);return}ke&&Nr($,null,L,"beforeUnmount"),te&64?$.type.remove($,L,z,X,ui,j):q&&(J!==xt||le>0&&le&64)?xe(q,L,z,!1,!0):(J===xt&&le&384||!X&&te&16)&&xe(G,L,z),j&&Z($)}(Ge&&(Me=ee&&ee.onVnodeUnmounted)||ke)&&Lt(()=>{Me&&Si(Me,L,$),ke&&Nr($,null,L,"unmounted")},z)},Z=$=>{const{type:L,el:z,anchor:j,transition:X}=$;if(L===xt){K(z,j);return}if(L===$s){y($);return}const J=()=>{n(z),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if($.shapeFlag&1&&X&&!X.persisted){const{leave:ee,delayLeave:Q}=X,G=()=>ee(z,J);Q?Q($.el,J,G):G()}else J()},K=($,L)=>{let z;for(;$!==L;)z=h($),n($),$=z;n(L)},De=($,L,z)=>{const{bum:j,scope:X,update:J,subTree:ee,um:Q,m:G,a:q}=$;Xc(G),Xc(q),j&&Co(j),X.stop(),J&&(J.active=!1,W(ee,$,L,z)),Q&&Lt(Q,L),Lt(()=>{$.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},xe=($,L,z,j=!1,X=!1,J=0)=>{for(let ee=J;ee<$.length;ee++)W($[ee],L,z,j,X)},pt=$=>$.shapeFlag&6?pt($.component.subTree):$.shapeFlag&128?$.suspense.next():h($.anchor||$.el);let we=!1;const xr=($,L,z)=>{$==null?L._vnode&&W(L._vnode,null,null,!0):b(L._vnode||null,$,L,null,null,null,z),we||(we=!0,vm(),qc(),we=!1),L._vnode=$},ui={p:b,um:W,m:F,r:Z,mt:P,mc:x,pc:U,pbc:k,n:pt,o:e};let Jn,Hr;return t&&([Jn,Hr]=t(ui)),{render:xr,hydrate:Jn,createApp:H6(xr,Jn)}}function uu({type:e,props:t},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:i}function es({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function V2(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wp(e,t,i=!1){const r=e.children,n=t.children;if(ne(r)&&ne(n))for(let s=0;s>1,e[i[a]]0&&(t[r]=i[s-1]),i[s]=r)}}for(s=i.length,o=i[s-1];s-- >0;)i[s]=o,o=t[o];return i}function F2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:F2(t)}function Xc(e){if(e)for(let t=0;tRa(z2);function J6(e,t){return Pl(e,null,t)}function U2(e,t){return Pl(e,null,{flush:"post"})}function K2(e,t){return Pl(e,null,{flush:"sync"})}const oc={};function No(e,t,i){return Pl(e,t,i)}function Pl(e,t,{immediate:i,deep:r,flush:n,once:s,onTrack:o,onTrigger:a}=Fe){if(t&&s){const E=t;t=(...A)=>{E(...A),C()}}const l=Tt,c=E=>r===!0?E:Sn(E,r===!1?1:void 0);let d,u=!1,h=!1;if(Xt(e)?(d=()=>e.value,u=Ga(e)):Ao(e)?(d=()=>c(e),u=!0):ne(e)?(h=!0,u=e.some(E=>Ao(E)||Ga(E)),d=()=>e.map(E=>{if(Xt(E))return E.value;if(Ao(E))return c(E);if(ge(E))return sn(E,l,2)})):ge(e)?t?d=()=>sn(e,l,2):d=()=>(f&&f(),ji(e,l,3,[m])):d=Nt,t&&r){const E=d;d=()=>Sn(E())}let f,m=E=>{f=p.onStop=()=>{sn(E,l,4),f=p.onStop=void 0}},b;if(Ll)if(m=Nt,t?i&&ji(t,l,3,[d(),h?[]:void 0,m]):d(),n==="sync"){const E=H2();b=E.__watcherHandles||(E.__watcherHandles=[])}else return Nt;let w=h?new Array(e.length).fill(oc):oc;const _=()=>{if(!(!p.active||!p.dirty))if(t){const E=p.run();(r||u||(h?E.some((A,x)=>Cr(A,w[x])):Cr(E,w)))&&(f&&f(),ji(t,l,3,[E,w===oc?void 0:h&&w[0]===oc?[]:w,m]),w=E)}else p.run()};_.allowRecurse=!!t;let g;n==="sync"?g=_:n==="post"?g=()=>Lt(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),g=()=>Bd(_));const p=new Lo(d,Nt,g),y=Kv(),C=()=>{p.stop(),y&&Cp(y.effects,p)};return t?i?_():w=p.run():n==="post"?Lt(p.run.bind(p),l&&l.suspense):p.run(),b&&b.push(C),C}function e8(e,t,i){const r=this.proxy,n=Ae(e)?e.includes(".")?W2(r,e):()=>r[e]:e.bind(r,r);let s;ge(t)?s=t:(s=t.handler,i=t);const o=Fs(this),a=Pl(n,s.bind(r),i);return o(),a}function W2(e,t){const i=t.split(".");return()=>{let r=e;for(let n=0;n{Sn(r,t,i)});else if(Bv(e)){for(const r in e)Sn(e[r],t,i);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Sn(e[r],t,i)}return e}const Dl=e=>e.type.__isKeepAlive,t8={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const i=fn(),r=i.ctx;if(!r.renderer)return()=>{const g=t.default&&t.default();return g&&g.length===1?g[0]:g};const n=new Map,s=new Set;let o=null;const a=i.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=r,h=u("div");r.activate=(g,p,y,C,E)=>{const A=g.component;c(g,p,y,0,a),l(A.vnode,g,p,y,A,a,C,g.slotScopeIds,E),Lt(()=>{A.isDeactivated=!1,A.a&&Co(A.a);const x=g.props&&g.props.onVnodeMounted;x&&Si(x,A.parent,g)},a)},r.deactivate=g=>{const p=g.component;Xc(p.m),Xc(p.a),c(g,h,null,1,a),Lt(()=>{p.da&&Co(p.da);const y=g.props&&g.props.onVnodeUnmounted;y&&Si(y,p.parent,g),p.isDeactivated=!0},a)};function f(g){hu(g),d(g,i,a,!0)}function m(g){n.forEach((p,y)=>{const C=Qh(p.type);C&&(!g||!g(C))&&b(y)})}function b(g){const p=n.get(g);!o||!wr(p,o)?f(p):o&&hu(o),n.delete(g),s.delete(g)}No(()=>[e.include,e.exclude],([g,p])=>{g&&m(y=>_a(g,y)),p&&m(y=>!_a(p,y))},{flush:"post",deep:!0});let w=null;const _=()=>{w!=null&&(Vh(i.subTree.type)?Lt(()=>{n.set(w,ac(i.subTree))},i.subTree.suspense):n.set(w,ac(i.subTree)))};return hn(_),Fd(_),$l(()=>{n.forEach(g=>{const{subTree:p,suspense:y}=i,C=ac(p);if(g.type===C.type&&g.key===C.key){hu(C);const E=C.component.da;E&&Lt(E,y);return}f(g)})}),()=>{if(w=null,!t.default)return null;const g=t.default(),p=g[0];if(g.length>1)return o=null,g;if(!zn(p)||!(p.shapeFlag&4)&&!(p.shapeFlag&128))return o=null,p;let y=ac(p);const C=y.type,E=Qh(Is(y)?y.type.__asyncResolved||{}:C),{include:A,exclude:x,max:S}=e;if(A&&(!E||!_a(A,E))||x&&E&&_a(x,E))return o=y,p;const k=y.key==null?C:y.key,N=n.get(k);return y.el&&(y=Br(y),p.shapeFlag&128&&(p.ssContent=y)),w=k,N?(y.el=N.el,y.component=N.component,y.transition&&Fn(y,y.transition),y.shapeFlag|=512,s.delete(k),s.add(k)):(s.add(k),S&&s.size>parseInt(S,10)&&b(s.values().next().value)),y.shapeFlag|=256,o=y,Vh(p.type)?p:y}}},i8=t8;function _a(e,t){return ne(e)?e.some(i=>_a(i,t)):Ae(e)?e.split(",").includes(t):V4(e)?e.test(t):!1}function q2(e,t){Y2(e,"a",t)}function j2(e,t){Y2(e,"da",t)}function Y2(e,t,i=Tt){const r=e.__wdc||(e.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Vd(t,r,i),i){let n=i.parent;for(;n&&n.parent;)Dl(n.parent.vnode)&&r8(r,t,i,n),n=n.parent}}function r8(e,t,i,r){const n=Vd(t,e,r,!0);zd(()=>{Cp(r[t],n)},i)}function hu(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ac(e){return e.shapeFlag&128?e.ssContent:e}const An=Symbol("_leaveCb"),lc=Symbol("_enterCb");function qp(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return hn(()=>{e.isMounted=!0}),$l(()=>{e.isUnmounting=!0}),e}const rr=[Function,Array],jp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rr,onEnter:rr,onAfterEnter:rr,onEnterCancelled:rr,onBeforeLeave:rr,onLeave:rr,onAfterLeave:rr,onLeaveCancelled:rr,onBeforeAppear:rr,onAppear:rr,onAfterAppear:rr,onAppearCancelled:rr},X2=e=>{const t=e.subTree;return t.component?X2(t.component):t},n8={name:"BaseTransition",props:jp,setup(e,{slots:t}){const i=fn(),r=qp();return()=>{const n=t.default&&Hd(t.default(),!0);if(!n||!n.length)return;let s=n[0];if(n.length>1){for(const h of n)if(h.type!==zt){s=h;break}}const o=Oe(e),{mode:a}=o;if(r.isLeaving)return fu(s);const l=Nm(s);if(!l)return fu(s);let c=Oo(l,o,r,i,h=>c=h);Fn(l,c);const d=i.subTree,u=d&&Nm(d);if(u&&u.type!==zt&&!wr(l,u)&&X2(i).type!==zt){const h=Oo(u,o,r,i);if(Fn(u,h),a==="out-in"&&l.type!==zt)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,i.update.active!==!1&&(i.effect.dirty=!0,i.update())},fu(s);a==="in-out"&&l.type!==zt&&(h.delayLeave=(f,m,b)=>{const w=G2(r,u);w[String(u.key)]=u,f[An]=()=>{m(),f[An]=void 0,delete c.delayedLeave},c.delayedLeave=b})}return s}}},Z2=n8;function G2(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function Oo(e,t,i,r,n){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:w,onAppear:_,onAfterAppear:g,onAppearCancelled:p}=t,y=String(e.key),C=G2(i,e),E=(S,k)=>{S&&ji(S,r,9,k)},A=(S,k)=>{const N=k[1];E(S,k),ne(S)?S.every(I=>I.length<=1)&&N():S.length<=1&&N()},x={mode:o,persisted:a,beforeEnter(S){let k=l;if(!i.isMounted)if(s)k=w||l;else return;S[An]&&S[An](!0);const N=C[y];N&&wr(e,N)&&N.el[An]&&N.el[An](),E(k,[S])},enter(S){let k=c,N=d,I=u;if(!i.isMounted)if(s)k=_||c,N=g||d,I=p||u;else return;let T=!1;const P=S[lc]=O=>{T||(T=!0,O?E(I,[S]):E(N,[S]),x.delayedLeave&&x.delayedLeave(),S[lc]=void 0)};k?A(k,[S,P]):P()},leave(S,k){const N=String(e.key);if(S[lc]&&S[lc](!0),i.isUnmounting)return k();E(h,[S]);let I=!1;const T=S[An]=P=>{I||(I=!0,k(),P?E(b,[S]):E(m,[S]),S[An]=void 0,C[N]===e&&delete C[N])};C[N]=e,f?A(f,[S,T]):T()},clone(S){const k=Oo(S,t,i,r,n);return n&&n(k),k}};return x}function fu(e){if(Dl(e))return e=Br(e),e.children=null,e}function Nm(e){if(!Dl(e))return e;const{shapeFlag:t,children:i}=e;if(i){if(t&16)return i[0];if(t&32&&ge(i.default))return i.default()}}function Fn(e,t){e.shapeFlag&6&&e.component?Fn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Hd(e,t=!1,i){let r=[],n=0;for(let s=0;s1)for(let s=0;se.__isTeleport,Ia=e=>e&&(e.disabled||e.disabled===""),Rm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Im=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,qh=(e,t)=>{const i=e&&e.to;return Ae(i)?t?t(i):null:i},o8={name:"Teleport",__isTeleport:!0,process(e,t,i,r,n,s,o,a,l,c){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:m,createText:b,createComment:w}}=c,_=Ia(t.props);let{shapeFlag:g,children:p,dynamicChildren:y}=t;if(e==null){const C=t.el=b(""),E=t.anchor=b("");f(C,i,r),f(E,i,r);const A=t.target=qh(t.props,m),x=t.targetAnchor=b("");A&&(f(x,A),o==="svg"||Rm(A)?o="svg":(o==="mathml"||Im(A))&&(o="mathml"));const S=(k,N)=>{g&16&&d(p,k,N,n,s,o,a,l)};_?S(i,E):A&&S(A,x)}else{t.el=e.el;const C=t.anchor=e.anchor,E=t.target=e.target,A=t.targetAnchor=e.targetAnchor,x=Ia(e.props),S=x?i:E,k=x?C:A;if(o==="svg"||Rm(E)?o="svg":(o==="mathml"||Im(E))&&(o="mathml"),y?(h(e.dynamicChildren,y,S,n,s,o,a),Wp(e,t,!0)):l||u(e,t,S,k,n,s,o,a,!1),_)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):cc(t,i,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=qh(t.props,m);N&&cc(t,N,null,c,0)}else x&&cc(t,E,A,c,1)}Q2(t)},remove(e,t,i,r,{um:n,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:h}=e;if(u&&s(d),o&&s(c),a&16){const f=o||!Ia(h);for(let m=0;m0?Ni||wo:null,J2(),Vs>0&&Ni&&Ni.push(e),e}function Pr(e,t,i,r,n,s){return ey(ve(e,t,i,r,n,s,!0))}function nl(e,t,i,r,n){return ey(Ue(e,t,i,r,n,!0))}function zn(e){return e?e.__v_isVNode===!0:!1}function wr(e,t){return e.type===t.type&&e.key===t.key}function c8(e){}const ty=({key:e})=>e??null,Tc=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||Xt(e)||ge(e)?{i:Rt,r:e,k:t,f:!!i}:e:null);function ve(e,t=null,i=null,r=0,n=null,s=e===xt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ty(t),ref:t&&Tc(t),scopeId:Md,slotScopeIds:null,children:i,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:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Rt};return a?(Yp(l,i),s&128&&e.normalize(l)):i&&(l.shapeFlag|=Ae(i)?8:16),Vs>0&&!o&&Ni&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ni.push(l),l}const Ue=d8;function d8(e,t=null,i=null,r=0,n=null,s=!1){if((!e||e===m2)&&(e=zt),zn(e)){const a=Br(e,t,!0);return i&&Yp(a,i),Vs>0&&!s&&Ni&&(a.shapeFlag&6?Ni[Ni.indexOf(e)]=a:Ni.push(a)),a.patchFlag=-2,a}if(v8(e)&&(e=e.__vccOpts),t){t=iy(t);let{class:a,style:l}=t;a&&!Ae(a)&&(t.class=Il(a)),We(l)&&(Ip(l)&&!ne(l)&&(l=Be({},l)),t.style=Os(l))}const o=Ae(e)?1:Vh(e)?128:s8(e)?64:We(e)?4:ge(e)?2:0;return ve(e,t,i,r,n,o,s,!0)}function iy(e){return e?Ip(e)||R2(e)?Be({},e):e:null}function Br(e,t,i=!1,r=!1){const{props:n,ref:s,patchFlag:o,children:a,transition:l}=e,c=t?ry(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ty(c),ref:t&&t.ref?i&&s?ne(s)?s.concat(Tc(t)):[s,Tc(t)]:Tc(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Br(e.ssContent),ssFallback:e.ssFallback&&Br(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Fn(d,l.clone(d)),d}function Ud(e=" ",t=0){return Ue(Ms,null,e,t)}function u8(e,t){const i=Ue($s,null,e);return i.staticCount=t,i}function as(e="",t=!1){return t?(vi(),nl(zt,null,e)):Ue(zt,null,e)}function Ki(e){return e==null||typeof e=="boolean"?Ue(zt):ne(e)?Ue(xt,null,e.slice()):typeof e=="object"?En(e):Ue(Ms,null,String(e))}function En(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Br(e)}function Yp(e,t){let i=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ne(t))i=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),Yp(e,n()),n._c&&(n._d=!0));return}else{i=32;const n=t._;!n&&!R2(t)?t._ctx=Rt:n===3&&Rt&&(Rt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:Rt},i=32):(t=String(t),r&64?(i=16,t=[Ud(t)]):i=8);e.children=t,e.shapeFlag|=i}function ry(...e){const t={};for(let i=0;iTt||Rt;let Zc,Yh;{const e=Mv(),t=(i,r)=>{let n;return(n=e[i])||(n=e[i]=[]),n.push(r),s=>{n.length>1?n.forEach(o=>o(s)):n[0](s)}};Zc=t("__VUE_INSTANCE_SETTERS__",i=>Tt=i),Yh=t("__VUE_SSR_SETTERS__",i=>Ll=i)}const Fs=e=>{const t=Tt;return Zc(e),e.scope.on(),()=>{e.scope.off(),Zc(t)}},Xh=()=>{Tt&&Tt.scope.off(),Zc(null)};function sy(e){return e.vnode.shapeFlag&4}let Ll=!1;function oy(e,t=!1){t&&Yh(t);const{props:i,children:r}=e.vnode,n=sy(e);K6(e,i,n,t),j6(e,r);const s=n?p8(e,t):void 0;return t&&Yh(!1),s}function p8(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Hh);const{setup:r}=i;if(r){const n=e.setupContext=r.length>1?cy(e):null,s=Fs(e);qn();const o=sn(r,e,0,[e.props,n]);if(jn(),s(),Ap(o)){if(o.then(Xh,Xh),t)return o.then(a=>{Zh(e,a,t)}).catch(a=>{Js(a,e,0)});e.asyncDep=o}else Zh(e,o,t)}else ly(e,t)}function Zh(e,t,i){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=Lp(t)),ly(e,i)}let Gc,Gh;function ay(e){Gc=e,Gh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,k6))}}const m8=()=>!Gc;function ly(e,t,i){const r=e.type;if(!e.render){if(!t&&Gc&&!r.render){const n=r.template||Up(e).template;if(n){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=Be(Be({isCustomElement:s,delimiters:a},o),l);r.render=Gc(n,c)}}e.render=r.render||Nt,Gh&&Gh(e)}{const n=Fs(e);qn();try{B6(e)}finally{jn(),n()}}}const g8={get(e,t){return Pi(e,"get",""),e[t]}};function cy(e){const t=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,g8),slots:e.slots,emit:e.emit,expose:t}}function Bl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Lp(s2(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in Na)return Na[i](e)},has(t,i){return i in t||i in Na}})):e.proxy}function Qh(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function v8(e){return ge(e)&&"__vccOpts"in e}const dy=(e,t)=>$3(e,t,Ll);function y8(e,t,i=Fe){const r=fn(),n=lt(t),s=Wi(t),o=l2((l,c)=>{let d;return K2(()=>{const u=e[t];Cr(d,u)&&(d=u,c())}),{get(){return l(),i.get?i.get(d):d},set(u){const h=r.vnode.props;!(h&&(t in h||n in h||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${n}`in h||`onUpdate:${s}`in h))&&Cr(u,d)&&(d=u,c()),r.emit(`update:${t}`,i.set?i.set(u):u)}}}),a=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[a]||{}:o,done:!1}:{done:!0}}}},o}function uy(e,t,i){const r=arguments.length;return r===2?We(t)&&!ne(t)?zn(t)?Ue(e,null,[t]):Ue(e,t):Ue(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):r===3&&zn(i)&&(i=[i]),Ue(e,t,i))}function b8(){}function w8(e,t,i,r){const n=i[r];if(n&&hy(n,e))return n;const s=t();return s.memo=e.slice(),s.memoIndex=r,i[r]=s}function hy(e,t){const i=e.memo;if(i.length!=t.length)return!1;for(let r=0;r0&&Ni&&Ni.push(e),!0}const fy="3.4.29",_8=Nt,k8=j3,C8=go,A8=f2,E8={createComponentInstance:ny,setupComponent:oy,renderComponentRoot:Sc,setCurrentRenderingInstance:tl,isVNode:zn,normalizeVNode:Ki,getComponentPublicInstance:Bl},x8=E8,S8=null,T8=null,N8=null;/** * @vue/runtime-dom v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const I8="http://www.w3.org/2000/svg",$8="http://www.w3.org/1998/Math/MathML",Xr=typeof document<"u"?document:null,$m=Xr&&Xr.createElement("template"),P8={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const n=t==="svg"?Xr.createElementNS(I8,e):t==="mathml"?Xr.createElementNS($8,e):i?Xr.createElement(e,{is:i}):Xr.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>Xr.createTextNode(e),createComment:e=>Xr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,r,n,s){const o=i?i.previousSibling:t.lastChild;if(n&&(n===s||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),i),!(n===s||!(n=n.nextSibling)););else{$m.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=$m.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,i)}return[o?o.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},bn="transition",pa="animation",Mo=Symbol("_vtc"),Xp=(e,{slots:t})=>uy(Z2,my(e),t);Xp.displayName="Transition";const py={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},D8=Xp.props=Be({},jp,py),ts=(e,t=[])=>{ne(e)?e.forEach(i=>i(...t)):e&&e(...t)},Pm=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function my(e){const t={};for(const N in e)N in py||(t[N]=e[N]);if(e.css===!1)return t;const{name:i="v",type:r,duration:n,enterFromClass:s=`${i}-enter-from`,enterActiveClass:o=`${i}-enter-active`,enterToClass:a=`${i}-enter-to`,appearFromClass:l=s,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:h=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=e,m=L8(n),b=m&&m[0],w=m&&m[1],{onBeforeEnter:_,onEnter:g,onEnterCancelled:p,onLeave:y,onLeaveCancelled:C,onBeforeAppear:E=_,onAppear:A=g,onAppearCancelled:S=p}=t,x=(N,I,P)=>{kn(N,I?d:a),kn(N,I?c:o),P&&P()},k=(N,I)=>{N._isLeaving=!1,kn(N,u),kn(N,f),kn(N,h),I&&I()},T=N=>(I,P)=>{const B=N?A:g,O=()=>x(I,N,P);ts(B,[I,O]),Dm(()=>{kn(I,N?l:s),qr(I,N?d:a),Pm(B)||Lm(I,r,b,O)})};return Be(t,{onBeforeEnter(N){ts(_,[N]),qr(N,s),qr(N,o)},onBeforeAppear(N){ts(E,[N]),qr(N,l),qr(N,c)},onEnter:T(!1),onAppear:T(!0),onLeave(N,I){N._isLeaving=!0;const P=()=>k(N,I);qr(N,u),qr(N,h),vy(),Dm(()=>{N._isLeaving&&(kn(N,u),qr(N,f),Pm(y)||Lm(N,r,w,P))}),ts(y,[N,P])},onEnterCancelled(N){x(N,!1),ts(p,[N])},onAppearCancelled(N){x(N,!0),ts(S,[N])},onLeaveCancelled(N){k(N),ts(C,[N])}})}function L8(e){if(e==null)return null;if(We(e))return[pu(e.enter),pu(e.leave)];{const t=pu(e);return[t,t]}}function pu(e){return Uc(e)}function qr(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[Mo]||(e[Mo]=new Set)).add(t)}function kn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const i=e[Mo];i&&(i.delete(t),i.size||(e[Mo]=void 0))}function Dm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let B8=0;function Lm(e,t,i,r){const n=e._endId=++B8,s=()=>{n===e._endId&&r()};if(i)return setTimeout(s,i);const{type:o,timeout:a,propCount:l}=gy(e,t);if(!o)return r();const c=o+"end";let d=0;const u=()=>{e.removeEventListener(c,h),s()},h=f=>{f.target===e&&++d>=l&&u()};setTimeout(()=>{d(i[m]||"").split(", "),n=r(`${bn}Delay`),s=r(`${bn}Duration`),o=Bm(n,s),a=r(`${pa}Delay`),l=r(`${pa}Duration`),c=Bm(a,l);let d=null,u=0,h=0;t===bn?o>0&&(d=bn,u=o,h=s.length):t===pa?c>0&&(d=pa,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?bn:pa:null,h=d?d===bn?s.length:l.length:0);const f=d===bn&&/\b(transform|all)(,|$)/.test(r(`${bn}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function Bm(e,t){for(;e.lengthOm(i)+Om(e[r])))}function Om(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vy(){return document.body.offsetHeight}function O8(e,t,i){const r=e[Mo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const Qc=Symbol("_vod"),yy=Symbol("_vsh"),by={beforeMount(e,{value:t},{transition:i}){e[Qc]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):ma(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),ma(e,!0),r.enter(e)):r.leave(e,()=>{ma(e,!1)}):ma(e,t))},beforeUnmount(e,{value:t}){ma(e,t)}};function ma(e,t){e.style.display=t?e[Qc]:"none",e[yy]=!t}function M8(){by.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const wy=Symbol("");function V8(e){const t=fn();if(!t)return;const i=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ef(s,n))},r=()=>{const n=e(t.proxy);Jh(t.subTree,n),i(n)};hn(()=>{U2(r);const n=new MutationObserver(r);n.observe(t.subTree.el.parentNode,{childList:!0}),zd(()=>n.disconnect())})}function Jh(e,t){if(e.shapeFlag&128){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{Jh(i.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ef(e.el,t);else if(e.type===xt)e.children.forEach(i=>Jh(i,t));else if(e.type===$s){let{el:i,anchor:r}=e;for(;i&&(ef(i,t),i!==r);)i=i.nextSibling}}function ef(e,t){if(e.nodeType===1){const i=e.style;let r="";for(const n in t)i.setProperty(`--${n}`,t[n]),r+=`--${n}: ${t[n]};`;i[wy]=r}}const F8=/(^|;)\s*display\s*:/;function z8(e,t,i){const r=e.style,n=Ae(i);let s=!1;if(i&&!n){if(t)if(Ae(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();i[a]==null&&Rc(r,a,"")}else for(const o in t)i[o]==null&&Rc(r,o,"");for(const o in i)o==="display"&&(s=!0),Rc(r,o,i[o])}else if(n){if(t!==i){const o=r[wy];o&&(i+=";"+o),r.cssText=i,s=F8.test(i)}}else t&&e.removeAttribute("style");Qc in e&&(e[Qc]=s?r.display:"",e[yy]&&(r.display="none"))}const Mm=/\s*!important$/;function Rc(e,t,i){if(ne(i))i.forEach(r=>Rc(e,t,r));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const r=H8(e,t);Mm.test(i)?e.setProperty(Wi(r),i.replace(Mm,""),"important"):e[r]=i}}const Vm=["Webkit","Moz","ms"],mu={};function H8(e,t){const i=mu[t];if(i)return i;let r=lt(t);if(r!=="filter"&&r in e)return mu[t]=r;r=Qs(r);for(let n=0;ngu||(j8.then(()=>gu=0),gu=Date.now());function X8(e,t){const i=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=i.attached)return;ji(Z8(r,i.value),t,5,[r])};return i.value=e,i.attached=Y8(),i}function Z8(e,t){if(ne(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(r=>n=>!n._stopped&&r&&r(n))}else return t}const Km=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,G8=(e,t,i,r,n,s,o,a,l)=>{const c=n==="svg";t==="class"?O8(e,r,c):t==="style"?z8(e,i,r):Zs(t)?kp(t)||W8(e,t,i,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Q8(e,t,r,c))?(U8(e,t,r,s,o,a,l),(t==="value"||t==="checked"||t==="selected")&&zm(e,t,r,c,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),zm(e,t,r,c))};function Q8(e,t,i,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Km(t)&&ge(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Km(t)&&Ae(i)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function _y(e,t,i){const r=Hp(e,t);class n extends Kd{constructor(o){super(r,o,i)}}return n.def=r,n}/*! #__NO_SIDE_EFFECTS__ */const J8=(e,t)=>_y(e,t,Py),e7=typeof HTMLElement<"u"?HTMLElement:class{};class Kd extends e7{constructor(t,i={},r){super(),this._def=t,this._props=i,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Ld(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),tf(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const n of r)this._setAttr(n.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,n=!1)=>{const{props:s,styles:o}=r;let a;if(s&&!ne(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=Uc(this._props[l])),(a||(a=Object.create(null)))[lt(l)]=!0)}this._numberProps=a,n&&this._resolveProps(r),this._applyStyles(o),this._update()},i=this._def.__asyncLoader;i?i().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:i}=t,r=ne(i)?i:Object.keys(i||{});for(const n of Object.keys(this))n[0]!=="_"&&r.includes(n)&&this._setProp(n,this[n],!0,!1);for(const n of r.map(lt))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(s){this._setProp(n,s)}})}_setAttr(t){let i=this.hasAttribute(t)?this.getAttribute(t):void 0;const r=lt(t);this._numberProps&&this._numberProps[r]&&(i=Uc(i)),this._setProp(r,i,!1)}_getProp(t){return this._props[t]}_setProp(t,i,r=!0,n=!0){i!==this._props[t]&&(this._props[t]=i,n&&this._instance&&this._update(),r&&(i===!0?this.setAttribute(Wi(t),""):typeof i=="string"||typeof i=="number"?this.setAttribute(Wi(t),i+""):i||this.removeAttribute(Wi(t))))}_update(){tf(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Ue(this._def,Be({},this._props));return this._instance||(t.ce=i=>{this._instance=i,i.isCE=!0;const r=(s,o)=>{this.dispatchEvent(new CustomEvent(s,{detail:o}))};i.emit=(s,...o)=>{r(s,o),Wi(s)!==s&&r(Wi(s),o)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kd){i.parent=n._instance,i.provides=n._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(i=>{const r=document.createElement("style");r.textContent=i,this.shadowRoot.appendChild(r)})}}function t7(e="$style"){{const t=fn();if(!t)return Fe;const i=t.type.__cssModules;if(!i)return Fe;const r=i[e];return r||Fe}}const ky=new WeakMap,Cy=new WeakMap,Jc=Symbol("_moveCb"),Wm=Symbol("_enterCb"),Ay={name:"TransitionGroup",props:Be({},D8,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=fn(),r=qp();let n,s;return Fd(()=>{if(!n.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!a7(n[0].el,i.vnode.el,o))return;n.forEach(n7),n.forEach(s7);const a=n.filter(o7);vy(),a.forEach(l=>{const c=l.el,d=c.style;qr(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Jc]=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",u),c[Jc]=null,kn(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=Oe(e),a=my(o);let l=o.tag||xt;if(n=[],s)for(let c=0;cdelete e.mode;Ay.props;const r7=Ay;function n7(e){const t=e.el;t[Jc]&&t[Jc](),t[Wm]&&t[Wm]()}function s7(e){Cy.set(e,e.el.getBoundingClientRect())}function o7(e){const t=ky.get(e),i=Cy.get(e),r=t.left-i.left,n=t.top-i.top;if(r||n){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${n}px)`,s.transitionDuration="0s",e}}function a7(e,t,i){const r=e.cloneNode(),n=e[Mo];n&&n.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),i.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=gy(r);return s.removeChild(r),o}const Hn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?i=>Co(t,i):t};function l7(e){e.target.composing=!0}function qm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cr=Symbol("_assign"),ed={created(e,{modifiers:{lazy:t,trim:i,number:r}},n){e[cr]=Hn(n);const s=r||n.props&&n.props.type==="number";en(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;i&&(a=a.trim()),s&&(a=Hc(a)),e[cr](a)}),i&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",l7),en(e,"compositionend",qm),en(e,"change",qm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:r,trim:n,number:s}},o){if(e[cr]=Hn(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Hc(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===i||n&&e.value.trim()===l)||(e.value=l))}},Zp={deep:!0,created(e,t,i){e[cr]=Hn(i),en(e,"change",()=>{const r=e._modelValue,n=Vo(e),s=e.checked,o=e[cr];if(ne(r)){const a=Nd(r,n),l=a!==-1;if(s&&!l)o(r.concat(n));else if(!s&&l){const c=[...r];c.splice(a,1),o(c)}}else if(Gs(r)){const a=new Set(r);s?a.add(n):a.delete(n),o(a)}else o(xy(e,s))})},mounted:jm,beforeUpdate(e,t,i){e[cr]=Hn(i),jm(e,t,i)}};function jm(e,{value:t,oldValue:i},r){e._modelValue=t,ne(t)?e.checked=Nd(t,r.props.value)>-1:Gs(t)?e.checked=t.has(r.props.value):t!==i&&(e.checked=Vn(t,xy(e,!0)))}const Gp={created(e,{value:t},i){e.checked=Vn(t,i.props.value),e[cr]=Hn(i),en(e,"change",()=>{e[cr](Vo(e))})},beforeUpdate(e,{value:t,oldValue:i},r){e[cr]=Hn(r),t!==i&&(e.checked=Vn(t,r.props.value))}},Ey={deep:!0,created(e,{value:t,modifiers:{number:i}},r){const n=Gs(t);en(e,"change",()=>{const s=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>i?Hc(Vo(o)):Vo(o));e[cr](e.multiple?n?new Set(s):s:s[0]),e._assigning=!0,Ld(()=>{e._assigning=!1})}),e[cr]=Hn(r)},mounted(e,{value:t,modifiers:{number:i}}){Ym(e,t)},beforeUpdate(e,t,i){e[cr]=Hn(i)},updated(e,{value:t,modifiers:{number:i}}){e._assigning||Ym(e,t)}};function Ym(e,t,i){const r=e.multiple,n=ne(t);if(!(r&&!n&&!Gs(t))){for(let s=0,o=e.options.length;sString(d)===String(l)):a.selected=Nd(t,l)>-1}else a.selected=t.has(l);else if(Vn(Vo(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vo(e){return"_value"in e?e._value:e.value}function xy(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const Sy={created(e,t,i){dc(e,t,i,null,"created")},mounted(e,t,i){dc(e,t,i,null,"mounted")},beforeUpdate(e,t,i,r){dc(e,t,i,r,"beforeUpdate")},updated(e,t,i,r){dc(e,t,i,r,"updated")}};function Ty(e,t){switch(e){case"SELECT":return Ey;case"TEXTAREA":return ed;default:switch(t){case"checkbox":return Zp;case"radio":return Gp;default:return ed}}}function dc(e,t,i,r,n){const o=Ty(e.tagName,i.props&&i.props.type)[n];o&&o(e,t,i,r)}function c7(){ed.getSSRProps=({value:e})=>({value:e}),Gp.getSSRProps=({value:e},t)=>{if(t.props&&Vn(t.props.value,e))return{checked:!0}},Zp.getSSRProps=({value:e},t)=>{if(ne(e)){if(t.props&&Nd(e,t.props.value)>-1)return{checked:!0}}else if(Gs(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Sy.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const i=Ty(t.type.toUpperCase(),t.props&&t.props.type);if(i.getSSRProps)return i.getSSRProps(e,t)}}const d7=["ctrl","shift","alt","meta"],u7={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>d7.some(i=>e[`${i}Key`]&&!t.includes(i))},h7=(e,t)=>{const i=e._withMods||(e._withMods={}),r=t.join(".");return i[r]||(i[r]=(n,...s)=>{for(let o=0;o{const i=e._withKeys||(e._withKeys={}),r=t.join(".");return i[r]||(i[r]=n=>{if(!("key"in n))return;const s=Wi(n.key);if(t.some(o=>o===s||f7[o]===s))return e(n)})},Ny=Be({patchProp:G8},P8);let Pa,Xm=!1;function Iy(){return Pa||(Pa=B2(Ny))}function $y(){return Pa=Xm?Pa:O2(Ny),Xm=!0,Pa}const tf=(...e)=>{Iy().render(...e)},Py=(...e)=>{$y().hydrate(...e)},Dy=(...e)=>{const t=Iy().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=By(r);if(!n)return;const s=t._component;!ge(s)&&!s.render&&!s.template&&(s.template=n.innerHTML),n.innerHTML="";const o=i(n,!1,Ly(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},t},p7=(...e)=>{const t=$y().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=By(r);if(n)return i(n,!0,Ly(n))},t};function Ly(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function By(e){return Ae(e)?document.querySelector(e):e}let Zm=!1;const m7=()=>{Zm||(Zm=!0,c7(),M8())},g7=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Z2,BaseTransitionPropsValidators:jp,Comment:zt,DeprecationTypes:N8,EffectScope:xp,ErrorCodes:j3,ErrorTypeStrings:C8,Fragment:xt,KeepAlive:r8,ReactiveEffect:Lo,Static:$s,Suspense:h6,Teleport:c8,Text:Ms,TrackOpTypes:K3,Transition:Xp,TransitionGroup:r7,TriggerOpTypes:W3,VueElement:Kd,assertNumber:q3,callWithAsyncErrorHandling:ji,callWithErrorHandling:sn,camelize:lt,capitalize:Qs,cloneVNode:Br,compatUtils:R8,computed:dy,createApp:Dy,createBlock:nl,createCommentVNode:as,createElementBlock:Pr,createElementVNode:ve,createHydrationRenderer:O2,createPropsRestProxy:L6,createRenderer:B2,createSSRApp:p7,createSlots:w6,createStaticVNode:h8,createTextVNode:Ud,createVNode:Ue,customRef:l2,defineAsyncComponent:_6,defineComponent:Hp,defineCustomElement:_y,defineEmits:E6,defineExpose:x6,defineModel:R6,defineOptions:S6,defineProps:A6,defineSSRCustomElement:J8,defineSlots:T6,devtools:A8,effect:u3,effectScope:l3,getCurrentInstance:fn,getCurrentScope:Kv,getTransitionRawChildren:Hd,guardReactiveProps:iy,h:uy,handleError:Js,hasInjectionContext:K6,hydrate:Py,initCustomFormatter:w8,initDirectivesForSSR:m7,inject:Na,isMemoSame:hy,isProxy:Ip,isReactive:Ao,isReadonly:Bo,isRef:Xt,isRuntimeOnly:g8,isShallow:Ga,isVNode:zn,markRaw:s2,mergeDefaults:P6,mergeModels:D6,mergeProps:ry,nextTick:Ld,normalizeClass:Il,normalizeProps:Z4,normalizeStyle:Os,onActivated:q2,onBeforeMount:zp,onBeforeUnmount:$l,onBeforeUpdate:v2,onDeactivated:j2,onErrorCaptured:_2,onMounted:hn,onRenderTracked:w2,onRenderTriggered:b2,onScopeDispose:c3,onServerPrefetch:y2,onUnmounted:zd,onUpdated:Fd,openBlock:vi,popScopeId:t6,provide:S2,proxyRefs:Lp,pushScopeId:e6,queuePostFlushCb:Wc,reactive:Pd,readonly:Np,ref:dt,registerRuntimeCompiler:ay,render:tf,renderList:b6,renderSlot:k2,resolveComponent:l6,resolveDirective:d6,resolveDynamicComponent:c6,resolveFilter:T8,resolveTransitionHooks:Oo,setBlockTracking:jh,setDevtoolsHook:E8,setTransitionHooks:Fn,shallowReactive:n2,shallowReadonly:$3,shallowRef:D3,ssrContextKey:z2,ssrUtils:S8,stop:h3,toDisplayString:zv,toHandlerKey:ko,toHandlers:k6,toRaw:Oe,toRef:U3,toRefs:F3,toValue:O3,transformVNodeArgs:d8,triggerRef:B3,unref:Dp,useAttrs:$6,useCssModule:t7,useCssVars:V8,useModel:b8,useSSRContext:H2,useSlots:I6,useTransitionState:qp,vModelCheckbox:Zp,vModelDynamic:Sy,vModelRadio:Gp,vModelSelect:Ey,vModelText:ed,vShow:by,version:fy,warn:k8,watch:Ro,watchEffect:e8,watchPostEffect:U2,watchSyncEffect:K2,withAsyncContext:B6,withCtx:ls,withDefaults:N6,withDirectives:y6,withKeys:Ry,withMemo:_8,withModifiers:h7,withScopeId:i6},Symbol.toStringTag,{value:"Module"}));/** +**/const R8="http://www.w3.org/2000/svg",I8="http://www.w3.org/1998/Math/MathML",Xr=typeof document<"u"?document:null,$m=Xr&&Xr.createElement("template"),$8={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const n=t==="svg"?Xr.createElementNS(R8,e):t==="mathml"?Xr.createElementNS(I8,e):i?Xr.createElement(e,{is:i}):Xr.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>Xr.createTextNode(e),createComment:e=>Xr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,i,r,n,s){const o=i?i.previousSibling:t.lastChild;if(n&&(n===s||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),i),!(n===s||!(n=n.nextSibling)););else{$m.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=$m.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,i)}return[o?o.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}},bn="transition",pa="animation",Mo=Symbol("_vtc"),Xp=(e,{slots:t})=>uy(Z2,my(e),t);Xp.displayName="Transition";const py={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},P8=Xp.props=Be({},jp,py),ts=(e,t=[])=>{ne(e)?e.forEach(i=>i(...t)):e&&e(...t)},Pm=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function my(e){const t={};for(const I in e)I in py||(t[I]=e[I]);if(e.css===!1)return t;const{name:i="v",type:r,duration:n,enterFromClass:s=`${i}-enter-from`,enterActiveClass:o=`${i}-enter-active`,enterToClass:a=`${i}-enter-to`,appearFromClass:l=s,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:h=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=e,m=D8(n),b=m&&m[0],w=m&&m[1],{onBeforeEnter:_,onEnter:g,onEnterCancelled:p,onLeave:y,onLeaveCancelled:C,onBeforeAppear:E=_,onAppear:A=g,onAppearCancelled:x=p}=t,S=(I,T,P)=>{kn(I,T?d:a),kn(I,T?c:o),P&&P()},k=(I,T)=>{I._isLeaving=!1,kn(I,u),kn(I,f),kn(I,h),T&&T()},N=I=>(T,P)=>{const O=I?A:g,M=()=>S(T,I,P);ts(O,[T,M]),Dm(()=>{kn(T,I?l:s),qr(T,I?d:a),Pm(O)||Lm(T,r,b,M)})};return Be(t,{onBeforeEnter(I){ts(_,[I]),qr(I,s),qr(I,o)},onBeforeAppear(I){ts(E,[I]),qr(I,l),qr(I,c)},onEnter:N(!1),onAppear:N(!0),onLeave(I,T){I._isLeaving=!0;const P=()=>k(I,T);qr(I,u),qr(I,h),vy(),Dm(()=>{I._isLeaving&&(kn(I,u),qr(I,f),Pm(y)||Lm(I,r,w,P))}),ts(y,[I,P])},onEnterCancelled(I){S(I,!1),ts(p,[I])},onAppearCancelled(I){S(I,!0),ts(x,[I])},onLeaveCancelled(I){k(I),ts(C,[I])}})}function D8(e){if(e==null)return null;if(We(e))return[pu(e.enter),pu(e.leave)];{const t=pu(e);return[t,t]}}function pu(e){return Uc(e)}function qr(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[Mo]||(e[Mo]=new Set)).add(t)}function kn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const i=e[Mo];i&&(i.delete(t),i.size||(e[Mo]=void 0))}function Dm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let L8=0;function Lm(e,t,i,r){const n=e._endId=++L8,s=()=>{n===e._endId&&r()};if(i)return setTimeout(s,i);const{type:o,timeout:a,propCount:l}=gy(e,t);if(!o)return r();const c=o+"end";let d=0;const u=()=>{e.removeEventListener(c,h),s()},h=f=>{f.target===e&&++d>=l&&u()};setTimeout(()=>{d(i[m]||"").split(", "),n=r(`${bn}Delay`),s=r(`${bn}Duration`),o=Bm(n,s),a=r(`${pa}Delay`),l=r(`${pa}Duration`),c=Bm(a,l);let d=null,u=0,h=0;t===bn?o>0&&(d=bn,u=o,h=s.length):t===pa?c>0&&(d=pa,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?bn:pa:null,h=d?d===bn?s.length:l.length:0);const f=d===bn&&/\b(transform|all)(,|$)/.test(r(`${bn}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function Bm(e,t){for(;e.lengthOm(i)+Om(e[r])))}function Om(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vy(){return document.body.offsetHeight}function B8(e,t,i){const r=e[Mo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}const Qc=Symbol("_vod"),yy=Symbol("_vsh"),by={beforeMount(e,{value:t},{transition:i}){e[Qc]=e.style.display==="none"?"":e.style.display,i&&t?i.beforeEnter(e):ma(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),ma(e,!0),r.enter(e)):r.leave(e,()=>{ma(e,!1)}):ma(e,t))},beforeUnmount(e,{value:t}){ma(e,t)}};function ma(e,t){e.style.display=t?e[Qc]:"none",e[yy]=!t}function O8(){by.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const wy=Symbol("");function M8(e){const t=fn();if(!t)return;const i=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ef(s,n))},r=()=>{const n=e(t.proxy);Jh(t.subTree,n),i(n)};hn(()=>{U2(r);const n=new MutationObserver(r);n.observe(t.subTree.el.parentNode,{childList:!0}),zd(()=>n.disconnect())})}function Jh(e,t){if(e.shapeFlag&128){const i=e.suspense;e=i.activeBranch,i.pendingBranch&&!i.isHydrating&&i.effects.push(()=>{Jh(i.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ef(e.el,t);else if(e.type===xt)e.children.forEach(i=>Jh(i,t));else if(e.type===$s){let{el:i,anchor:r}=e;for(;i&&(ef(i,t),i!==r);)i=i.nextSibling}}function ef(e,t){if(e.nodeType===1){const i=e.style;let r="";for(const n in t)i.setProperty(`--${n}`,t[n]),r+=`--${n}: ${t[n]};`;i[wy]=r}}const V8=/(^|;)\s*display\s*:/;function F8(e,t,i){const r=e.style,n=Ae(i);let s=!1;if(i&&!n){if(t)if(Ae(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();i[a]==null&&Nc(r,a,"")}else for(const o in t)i[o]==null&&Nc(r,o,"");for(const o in i)o==="display"&&(s=!0),Nc(r,o,i[o])}else if(n){if(t!==i){const o=r[wy];o&&(i+=";"+o),r.cssText=i,s=V8.test(i)}}else t&&e.removeAttribute("style");Qc in e&&(e[Qc]=s?r.display:"",e[yy]&&(r.display="none"))}const Mm=/\s*!important$/;function Nc(e,t,i){if(ne(i))i.forEach(r=>Nc(e,t,r));else if(i==null&&(i=""),t.startsWith("--"))e.setProperty(t,i);else{const r=z8(e,t);Mm.test(i)?e.setProperty(Wi(r),i.replace(Mm,""),"important"):e[r]=i}}const Vm=["Webkit","Moz","ms"],mu={};function z8(e,t){const i=mu[t];if(i)return i;let r=lt(t);if(r!=="filter"&&r in e)return mu[t]=r;r=Qs(r);for(let n=0;ngu||(q8.then(()=>gu=0),gu=Date.now());function Y8(e,t){const i=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=i.attached)return;ji(X8(r,i.value),t,5,[r])};return i.value=e,i.attached=j8(),i}function X8(e,t){if(ne(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map(r=>n=>!n._stopped&&r&&r(n))}else return t}const Km=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Z8=(e,t,i,r,n,s,o,a,l)=>{const c=n==="svg";t==="class"?B8(e,r,c):t==="style"?F8(e,i,r):Zs(t)?kp(t)||K8(e,t,i,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):G8(e,t,r,c))?(H8(e,t,r,s,o,a,l),(t==="value"||t==="checked"||t==="selected")&&zm(e,t,r,c,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),zm(e,t,r,c))};function G8(e,t,i,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Km(t)&&ge(i));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Km(t)&&Ae(i)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function _y(e,t,i){const r=Hp(e,t);class n extends Kd{constructor(o){super(r,o,i)}}return n.def=r,n}/*! #__NO_SIDE_EFFECTS__ */const Q8=(e,t)=>_y(e,t,$y),J8=typeof HTMLElement<"u"?HTMLElement:class{};class Kd extends J8{constructor(t,i={},r){super(),this._def=t,this._props=i,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Ld(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),tf(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const n of r)this._setAttr(n.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,n=!1)=>{const{props:s,styles:o}=r;let a;if(s&&!ne(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=Uc(this._props[l])),(a||(a=Object.create(null)))[lt(l)]=!0)}this._numberProps=a,n&&this._resolveProps(r),this._applyStyles(o),this._update()},i=this._def.__asyncLoader;i?i().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:i}=t,r=ne(i)?i:Object.keys(i||{});for(const n of Object.keys(this))n[0]!=="_"&&r.includes(n)&&this._setProp(n,this[n],!0,!1);for(const n of r.map(lt))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(s){this._setProp(n,s)}})}_setAttr(t){let i=this.hasAttribute(t)?this.getAttribute(t):void 0;const r=lt(t);this._numberProps&&this._numberProps[r]&&(i=Uc(i)),this._setProp(r,i,!1)}_getProp(t){return this._props[t]}_setProp(t,i,r=!0,n=!0){i!==this._props[t]&&(this._props[t]=i,n&&this._instance&&this._update(),r&&(i===!0?this.setAttribute(Wi(t),""):typeof i=="string"||typeof i=="number"?this.setAttribute(Wi(t),i+""):i||this.removeAttribute(Wi(t))))}_update(){tf(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Ue(this._def,Be({},this._props));return this._instance||(t.ce=i=>{this._instance=i,i.isCE=!0;const r=(s,o)=>{this.dispatchEvent(new CustomEvent(s,{detail:o}))};i.emit=(s,...o)=>{r(s,o),Wi(s)!==s&&r(Wi(s),o)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kd){i.parent=n._instance,i.provides=n._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(i=>{const r=document.createElement("style");r.textContent=i,this.shadowRoot.appendChild(r)})}}function e7(e="$style"){{const t=fn();if(!t)return Fe;const i=t.type.__cssModules;if(!i)return Fe;const r=i[e];return r||Fe}}const ky=new WeakMap,Cy=new WeakMap,Jc=Symbol("_moveCb"),Wm=Symbol("_enterCb"),Ay={name:"TransitionGroup",props:Be({},P8,{tag:String,moveClass:String}),setup(e,{slots:t}){const i=fn(),r=qp();let n,s;return Fd(()=>{if(!n.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!o7(n[0].el,i.vnode.el,o))return;n.forEach(r7),n.forEach(n7);const a=n.filter(s7);vy(),a.forEach(l=>{const c=l.el,d=c.style;qr(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Jc]=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",u),c[Jc]=null,kn(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=Oe(e),a=my(o);let l=o.tag||xt;if(n=[],s)for(let c=0;cdelete e.mode;Ay.props;const i7=Ay;function r7(e){const t=e.el;t[Jc]&&t[Jc](),t[Wm]&&t[Wm]()}function n7(e){Cy.set(e,e.el.getBoundingClientRect())}function s7(e){const t=ky.get(e),i=Cy.get(e),r=t.left-i.left,n=t.top-i.top;if(r||n){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${n}px)`,s.transitionDuration="0s",e}}function o7(e,t,i){const r=e.cloneNode(),n=e[Mo];n&&n.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),i.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=gy(r);return s.removeChild(r),o}const Hn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?i=>Co(t,i):t};function a7(e){e.target.composing=!0}function qm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cr=Symbol("_assign"),ed={created(e,{modifiers:{lazy:t,trim:i,number:r}},n){e[cr]=Hn(n);const s=r||n.props&&n.props.type==="number";en(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;i&&(a=a.trim()),s&&(a=Hc(a)),e[cr](a)}),i&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",a7),en(e,"compositionend",qm),en(e,"change",qm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:i,modifiers:{lazy:r,trim:n,number:s}},o){if(e[cr]=Hn(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Hc(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===i||n&&e.value.trim()===l)||(e.value=l))}},Zp={deep:!0,created(e,t,i){e[cr]=Hn(i),en(e,"change",()=>{const r=e._modelValue,n=Vo(e),s=e.checked,o=e[cr];if(ne(r)){const a=Rd(r,n),l=a!==-1;if(s&&!l)o(r.concat(n));else if(!s&&l){const c=[...r];c.splice(a,1),o(c)}}else if(Gs(r)){const a=new Set(r);s?a.add(n):a.delete(n),o(a)}else o(xy(e,s))})},mounted:jm,beforeUpdate(e,t,i){e[cr]=Hn(i),jm(e,t,i)}};function jm(e,{value:t,oldValue:i},r){e._modelValue=t,ne(t)?e.checked=Rd(t,r.props.value)>-1:Gs(t)?e.checked=t.has(r.props.value):t!==i&&(e.checked=Vn(t,xy(e,!0)))}const Gp={created(e,{value:t},i){e.checked=Vn(t,i.props.value),e[cr]=Hn(i),en(e,"change",()=>{e[cr](Vo(e))})},beforeUpdate(e,{value:t,oldValue:i},r){e[cr]=Hn(r),t!==i&&(e.checked=Vn(t,r.props.value))}},Ey={deep:!0,created(e,{value:t,modifiers:{number:i}},r){const n=Gs(t);en(e,"change",()=>{const s=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>i?Hc(Vo(o)):Vo(o));e[cr](e.multiple?n?new Set(s):s:s[0]),e._assigning=!0,Ld(()=>{e._assigning=!1})}),e[cr]=Hn(r)},mounted(e,{value:t,modifiers:{number:i}}){Ym(e,t)},beforeUpdate(e,t,i){e[cr]=Hn(i)},updated(e,{value:t,modifiers:{number:i}}){e._assigning||Ym(e,t)}};function Ym(e,t,i){const r=e.multiple,n=ne(t);if(!(r&&!n&&!Gs(t))){for(let s=0,o=e.options.length;sString(d)===String(l)):a.selected=Rd(t,l)>-1}else a.selected=t.has(l);else if(Vn(Vo(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vo(e){return"_value"in e?e._value:e.value}function xy(e,t){const i=t?"_trueValue":"_falseValue";return i in e?e[i]:t}const Sy={created(e,t,i){dc(e,t,i,null,"created")},mounted(e,t,i){dc(e,t,i,null,"mounted")},beforeUpdate(e,t,i,r){dc(e,t,i,r,"beforeUpdate")},updated(e,t,i,r){dc(e,t,i,r,"updated")}};function Ty(e,t){switch(e){case"SELECT":return Ey;case"TEXTAREA":return ed;default:switch(t){case"checkbox":return Zp;case"radio":return Gp;default:return ed}}}function dc(e,t,i,r,n){const o=Ty(e.tagName,i.props&&i.props.type)[n];o&&o(e,t,i,r)}function l7(){ed.getSSRProps=({value:e})=>({value:e}),Gp.getSSRProps=({value:e},t)=>{if(t.props&&Vn(t.props.value,e))return{checked:!0}},Zp.getSSRProps=({value:e},t)=>{if(ne(e)){if(t.props&&Rd(e,t.props.value)>-1)return{checked:!0}}else if(Gs(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Sy.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const i=Ty(t.type.toUpperCase(),t.props&&t.props.type);if(i.getSSRProps)return i.getSSRProps(e,t)}}const c7=["ctrl","shift","alt","meta"],d7={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>c7.some(i=>e[`${i}Key`]&&!t.includes(i))},u7=(e,t)=>{const i=e._withMods||(e._withMods={}),r=t.join(".");return i[r]||(i[r]=(n,...s)=>{for(let o=0;o{const i=e._withKeys||(e._withKeys={}),r=t.join(".");return i[r]||(i[r]=n=>{if(!("key"in n))return;const s=Wi(n.key);if(t.some(o=>o===s||h7[o]===s))return e(n)})},Ny=Be({patchProp:Z8},$8);let Pa,Xm=!1;function Ry(){return Pa||(Pa=B2(Ny))}function Iy(){return Pa=Xm?Pa:O2(Ny),Xm=!0,Pa}const tf=(...e)=>{Ry().render(...e)},$y=(...e)=>{Iy().hydrate(...e)},Py=(...e)=>{const t=Ry().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=Ly(r);if(!n)return;const s=t._component;!ge(s)&&!s.render&&!s.template&&(s.template=n.innerHTML),n.innerHTML="";const o=i(n,!1,Dy(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},t},p7=(...e)=>{const t=Iy().createApp(...e),{mount:i}=t;return t.mount=r=>{const n=Ly(r);if(n)return i(n,!0,Dy(n))},t};function Dy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ly(e){return Ae(e)?document.querySelector(e):e}let Zm=!1;const m7=()=>{Zm||(Zm=!0,l7(),O8())},g7=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Z2,BaseTransitionPropsValidators:jp,Comment:zt,DeprecationTypes:N8,EffectScope:xp,ErrorCodes:q3,ErrorTypeStrings:k8,Fragment:xt,KeepAlive:i8,ReactiveEffect:Lo,Static:$s,Suspense:u6,Teleport:l8,Text:Ms,TrackOpTypes:U3,Transition:Xp,TransitionGroup:i7,TriggerOpTypes:K3,VueElement:Kd,assertNumber:W3,callWithAsyncErrorHandling:ji,callWithErrorHandling:sn,camelize:lt,capitalize:Qs,cloneVNode:Br,compatUtils:T8,computed:dy,createApp:Py,createBlock:nl,createCommentVNode:as,createElementBlock:Pr,createElementVNode:ve,createHydrationRenderer:O2,createPropsRestProxy:D6,createRenderer:B2,createSSRApp:p7,createSlots:b6,createStaticVNode:u8,createTextVNode:Ud,createVNode:Ue,customRef:l2,defineAsyncComponent:w6,defineComponent:Hp,defineCustomElement:_y,defineEmits:A6,defineExpose:E6,defineModel:T6,defineOptions:x6,defineProps:C6,defineSSRCustomElement:Q8,defineSlots:S6,devtools:C8,effect:d3,effectScope:a3,getCurrentInstance:fn,getCurrentScope:Kv,getTransitionRawChildren:Hd,guardReactiveProps:iy,h:uy,handleError:Js,hasInjectionContext:U6,hydrate:$y,initCustomFormatter:b8,initDirectivesForSSR:m7,inject:Ra,isMemoSame:hy,isProxy:Ip,isReactive:Ao,isReadonly:Bo,isRef:Xt,isRuntimeOnly:m8,isShallow:Ga,isVNode:zn,markRaw:s2,mergeDefaults:$6,mergeModels:P6,mergeProps:ry,nextTick:Ld,normalizeClass:Il,normalizeProps:X4,normalizeStyle:Os,onActivated:q2,onBeforeMount:zp,onBeforeUnmount:$l,onBeforeUpdate:v2,onDeactivated:j2,onErrorCaptured:_2,onMounted:hn,onRenderTracked:w2,onRenderTriggered:b2,onScopeDispose:l3,onServerPrefetch:y2,onUnmounted:zd,onUpdated:Fd,openBlock:vi,popScopeId:e6,provide:S2,proxyRefs:Lp,pushScopeId:J3,queuePostFlushCb:Wc,reactive:Pd,readonly:Rp,ref:dt,registerRuntimeCompiler:ay,render:tf,renderList:y6,renderSlot:k2,resolveComponent:a6,resolveDirective:c6,resolveDynamicComponent:l6,resolveFilter:S8,resolveTransitionHooks:Oo,setBlockTracking:jh,setDevtoolsHook:A8,setTransitionHooks:Fn,shallowReactive:n2,shallowReadonly:I3,shallowRef:P3,ssrContextKey:z2,ssrUtils:x8,stop:u3,toDisplayString:zv,toHandlerKey:ko,toHandlers:_6,toRaw:Oe,toRef:H3,toRefs:V3,toValue:B3,transformVNodeArgs:c8,triggerRef:L3,unref:Dp,useAttrs:I6,useCssModule:e7,useCssVars:M8,useModel:y8,useSSRContext:H2,useSlots:R6,useTransitionState:qp,vModelCheckbox:Zp,vModelDynamic:Sy,vModelRadio:Gp,vModelSelect:Ey,vModelText:ed,vShow:by,version:fy,warn:_8,watch:No,watchEffect:J6,watchPostEffect:U2,watchSyncEffect:K2,withAsyncContext:L6,withCtx:ls,withDefaults:N6,withDirectives:v6,withKeys:f7,withMemo:w8,withModifiers:u7,withScopeId:t6},Symbol.toStringTag,{value:"Module"}));/** * @vue/compiler-core v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const sl=Symbol(""),Da=Symbol(""),Qp=Symbol(""),td=Symbol(""),Oy=Symbol(""),zs=Symbol(""),My=Symbol(""),Vy=Symbol(""),Jp=Symbol(""),e0=Symbol(""),Ol=Symbol(""),t0=Symbol(""),Fy=Symbol(""),i0=Symbol(""),r0=Symbol(""),n0=Symbol(""),s0=Symbol(""),o0=Symbol(""),a0=Symbol(""),zy=Symbol(""),Hy=Symbol(""),Wd=Symbol(""),id=Symbol(""),l0=Symbol(""),c0=Symbol(""),ol=Symbol(""),Ml=Symbol(""),d0=Symbol(""),rf=Symbol(""),v7=Symbol(""),nf=Symbol(""),rd=Symbol(""),y7=Symbol(""),b7=Symbol(""),u0=Symbol(""),w7=Symbol(""),_7=Symbol(""),h0=Symbol(""),Uy=Symbol(""),Fo={[sl]:"Fragment",[Da]:"Teleport",[Qp]:"Suspense",[td]:"KeepAlive",[Oy]:"BaseTransition",[zs]:"openBlock",[My]:"createBlock",[Vy]:"createElementBlock",[Jp]:"createVNode",[e0]:"createElementVNode",[Ol]:"createCommentVNode",[t0]:"createTextVNode",[Fy]:"createStaticVNode",[i0]:"resolveComponent",[r0]:"resolveDynamicComponent",[n0]:"resolveDirective",[s0]:"resolveFilter",[o0]:"withDirectives",[a0]:"renderList",[zy]:"renderSlot",[Hy]:"createSlots",[Wd]:"toDisplayString",[id]:"mergeProps",[l0]:"normalizeClass",[c0]:"normalizeStyle",[ol]:"normalizeProps",[Ml]:"guardReactiveProps",[d0]:"toHandlers",[rf]:"camelize",[v7]:"capitalize",[nf]:"toHandlerKey",[rd]:"setBlockTracking",[y7]:"pushScopeId",[b7]:"popScopeId",[u0]:"withCtx",[w7]:"unref",[_7]:"isRef",[h0]:"withMemo",[Uy]:"isMemoSame"};function k7(e){Object.getOwnPropertySymbols(e).forEach(t=>{Fo[t]=e[t]})}const Qi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function C7(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Qi}}function al(e,t,i,r,n,s,o,a=!1,l=!1,c=!1,d=Qi){return e&&(a?(e.helper(zs),e.helper(Uo(e.inSSR,c))):e.helper(Ho(e.inSSR,c)),o&&e.helper(o0)),{type:13,tag:t,props:i,children:r,patchFlag:n,dynamicProps:s,directives:o,isBlock:a,disableTracking:l,isComponent:c,loc:d}}function Vl(e,t=Qi){return{type:17,loc:t,elements:e}}function ar(e,t=Qi){return{type:15,loc:t,properties:e}}function bt(e,t){return{type:16,loc:Qi,key:Ae(e)?Se(e,!0):e,value:t}}function Se(e,t=!1,i=Qi,r=0){return{type:4,loc:i,content:e,isStatic:t,constType:t?3:r}}function kr(e,t=Qi){return{type:8,loc:t,children:e}}function St(e,t=[],i=Qi){return{type:14,loc:i,callee:e,arguments:t}}function zo(e,t=void 0,i=!1,r=!1,n=Qi){return{type:18,params:e,returns:t,newline:i,isSlot:r,loc:n}}function sf(e,t,i,r=!0){return{type:19,test:e,consequent:t,alternate:i,newline:r,loc:Qi}}function A7(e,t,i=!1){return{type:20,index:e,value:t,isVNode:i,loc:Qi}}function E7(e){return{type:21,body:e,loc:Qi}}function Ho(e,t){return e||t?Jp:e0}function Uo(e,t){return e||t?My:Vy}function f0(e,{helper:t,removeHelper:i,inSSR:r}){e.isBlock||(e.isBlock=!0,i(Ho(r,e.isComponent)),t(zs),t(Uo(r,e.isComponent)))}const Gm=new Uint8Array([123,123]),Qm=new Uint8Array([125,125]);function Jm(e){return e>=97&&e<=122||e>=65&&e<=90}function Ui(e){return e===32||e===10||e===9||e===12||e===13}function wn(e){return e===47||e===62||Ui(e)}function nd(e){const t=new Uint8Array(e.length);for(let i=0;i=0;n--){const s=this.newlines[n];if(t>s){i=n+2,r=t-s;break}}return{column:r,line:i,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const i=this.index+1-this.delimiterOpen.length;i>this.sectionStart&&this.cbs.ontext(this.sectionStart,i),this.state=3,this.sectionStart=i}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const i=this.sequenceIndex===this.currentSequence.length;if(!(i?wn(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!i){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Ui(t)){const i=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===ii.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,i){}}function e1(e,{compatConfig:t}){const i=t&&t[e];return e==="MODE"?i||3:i}function Ps(e,t){const i=e1("MODE",t),r=e1(e,t);return i===3?r===!0:r!==!1}function ll(e,t,i,...r){return Ps(e,t)}function p0(e){throw e}function Ky(e){}function st(e,t,i,r){const n=`https://vuejs.org/error-reference/#compiler-${e}`,s=new SyntaxError(String(n));return s.code=e,s.loc=t,s}const Ni=e=>e.type===4&&e.isStatic;function Wy(e){switch(e){case"Teleport":case"teleport":return Da;case"Suspense":case"suspense":return Qp;case"KeepAlive":case"keep-alive":return td;case"BaseTransition":case"base-transition":return Oy}}const S7=/^\d|[^\$\w\xA0-\uFFFF]/,m0=e=>!S7.test(e),T7=/[A-Za-z_$\xA0-\uFFFF]/,R7=/[\.\?\w$\xA0-\uFFFF]/,N7=/\s+[.[]\s*|\s*[.[]\s+/g,I7=e=>{e=e.trim().replace(N7,o=>o.trim());let t=0,i=[],r=0,n=0,s=null;for(let o=0;ot.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function vu(e){return e.type===5||e.type===2}function P7(e){return e.type===7&&e.name==="slot"}function sd(e){return e.type===1&&e.tagType===3}function od(e){return e.type===1&&e.tagType===2}const D7=new Set([ol,Ml]);function jy(e,t=[]){if(e&&!Ae(e)&&e.type===14){const i=e.callee;if(!Ae(i)&&D7.has(i))return jy(e.arguments[0],t.concat(e))}return[e,t]}function ad(e,t,i){let r,n=e.type===13?e.props:e.arguments[2],s=[],o;if(n&&!Ae(n)&&n.type===14){const a=jy(n);n=a[0],s=a[1],o=s[s.length-1]}if(n==null||Ae(n))r=ar([t]);else if(n.type===14){const a=n.arguments[0];!Ae(a)&&a.type===15?t1(t,a)||a.properties.unshift(t):n.callee===d0?r=St(i.helper(id),[ar([t]),n]):n.arguments.unshift(ar([t])),!r&&(r=n)}else n.type===15?(t1(t,n)||n.properties.unshift(t),r=n):(r=St(i.helper(id),[ar([t]),n]),o&&o.callee===Ml&&(o=s[s.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function t1(e,t){let i=!1;if(e.key.type===4){const r=e.key.content;i=t.properties.some(n=>n.key.type===4&&n.key.content===r)}return i}function cl(e,t){return`_${t}_${e.replace(/[^\w]/g,(i,r)=>i==="-"?"_":e.charCodeAt(r).toString())}`}function L7(e){return e.type===14&&e.callee===h0?e.arguments[1].returns:e}const B7=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Yy={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:xc,isPreTag:xc,isCustomElement:xc,onError:p0,onWarn:Ky,comments:!1,prefixIdentifiers:!1};let He=Yy,dl=null,on="",si=null,Le=null,Ei="",jr=-1,ns=-1,ld=0,xn=!1,of=null;const rt=[],ut=new x7(rt,{onerr:Ur,ontext(e,t){uc(Wt(e,t),e,t)},ontextentity(e,t,i){uc(e,t,i)},oninterpolation(e,t){if(xn)return uc(Wt(e,t),e,t);let i=e+ut.delimiterOpen.length,r=t-ut.delimiterClose.length;for(;Ui(on.charCodeAt(i));)i++;for(;Ui(on.charCodeAt(r-1));)r--;let n=Wt(i,r);n.includes("&")&&(n=He.decodeEntities(n,!1)),af({type:5,content:Ic(n,!1,Et(i,r)),loc:Et(e,t)})},onopentagname(e,t){const i=Wt(e,t);si={type:1,tag:i,ns:He.getNamespace(i,rt[0],He.ns),tagType:0,props:[],children:[],loc:Et(e-1,t),codegenNode:void 0}},onopentagend(e){r1(e)},onclosetag(e,t){const i=Wt(e,t);if(!He.isVoidTag(i)){let r=!1;for(let n=0;n0&&Ur(24,rt[0].loc.start.offset);for(let o=0;o<=n;o++){const a=rt.shift();Nc(a,t,o(r.type===7?r.rawName:r.name)===i)&&Ur(2,t)},onattribend(e,t){if(si&&Le){if(ds(Le.loc,t),e!==0)if(Ei.includes("&")&&(Ei=He.decodeEntities(Ei,!0)),Le.type===6)Le.name==="class"&&(Ei=Gy(Ei).trim()),e===1&&!Ei&&Ur(13,t),Le.value={type:2,content:Ei,loc:e===1?Et(jr,ns):Et(jr-1,ns+1)},ut.inSFCRoot&&si.tag==="template"&&Le.name==="lang"&&Ei&&Ei!=="html"&&ut.enterRCDATA(nd("-1&&ll("COMPILER_V_BIND_SYNC",He,Le.loc,Le.rawName)&&(Le.name="model",Le.modifiers.splice(r,1))}(Le.type!==7||Le.name!=="pre")&&si.props.push(Le)}Ei="",jr=ns=-1},oncomment(e,t){He.comments&&af({type:3,content:Wt(e,t),loc:Et(e-4,t+3)})},onend(){const e=on.length;for(let t=0;t{const m=t.start.offset+h,b=m+u.length;return Ic(u,!1,Et(m,b),0,f?1:0)},a={source:o(s.trim(),i.indexOf(s,n.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=n.trim().replace(O7,"").trim();const c=n.indexOf(l),d=l.match(i1);if(d){l=l.replace(i1,"").trim();const u=d[1].trim();let h;if(u&&(h=i.indexOf(u,c+l.length),a.key=o(u,h,!0)),d[2]){const f=d[2].trim();f&&(a.index=o(f,i.indexOf(f,a.key?h+u.length:c+l.length),!0))}}return l&&(a.value=o(l,c,!0)),a}function Wt(e,t){return on.slice(e,t)}function r1(e){ut.inSFCRoot&&(si.innerLoc=Et(e+1,e+1)),af(si);const{tag:t,ns:i}=si;i===0&&He.isPreTag(t)&&ld++,He.isVoidTag(t)?Nc(si,e):(rt.unshift(si),(i===1||i===2)&&(ut.inXML=!0)),si=null}function uc(e,t,i){{const s=rt[0]&&rt[0].tag;s!=="script"&&s!=="style"&&e.includes("&")&&(e=He.decodeEntities(e,!1))}const r=rt[0]||dl,n=r.children[r.children.length-1];n&&n.type===2?(n.content+=e,ds(n.loc,i)):r.children.push({type:2,content:e,loc:Et(t,i)})}function Nc(e,t,i=!1){i?ds(e.loc,Xy(t,60)):ds(e.loc,V7(t,62)+1),ut.inSFCRoot&&(e.children.length?e.innerLoc.end=Be({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Be({},e.innerLoc.start),e.innerLoc.source=Wt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:n}=e;xn||(r==="slot"?e.tagType=2:n1(e)?e.tagType=3:z7(e)&&(e.tagType=1)),ut.inRCDATA||(e.children=Zy(e.children,e.tag)),n===0&&He.isPreTag(r)&&ld--,of===e&&(xn=ut.inVPre=!1,of=null),ut.inXML&&(rt[0]?rt[0].ns:He.ns)===0&&(ut.inXML=!1);{const s=e.props;if(!ut.inSFCRoot&&Ps("COMPILER_NATIVE_TEMPLATE",He)&&e.tag==="template"&&!n1(e)){const a=rt[0]||dl,l=a.children.indexOf(e);a.children.splice(l,1,...e.children)}const o=s.find(a=>a.type===6&&a.name==="inline-template");o&&ll("COMPILER_INLINE_TEMPLATE",He,o.loc)&&e.children.length&&(o.value={type:2,content:Wt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function V7(e,t){let i=e;for(;on.charCodeAt(i)!==t&&i=0;)i--;return i}const F7=new Set(["if","else","else-if","for","slot"]);function n1({tag:e,props:t}){if(e==="template"){for(let i=0;i64&&e<91}const U7=/\r\n/g;function Zy(e,t){const i=He.whitespace!=="preserve";let r=!1;for(let n=0;n0){if(l>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const c=a.codegenNode;if(c.type===13){const d=ib(c);if((!d||d===512||d===1)&&eb(a,t)>=2){const u=tb(a);u&&(c.props=t.hoist(u))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(a.type===1){const l=a.tagType===1;l&&t.scopes.vSlot++,$c(a,t),l&&t.scopes.vSlot--}else if(a.type===11)$c(a,t,a.children.length===1);else if(a.type===9)for(let l=0;l1)for(let c=0;cT&&(S.childIndex--,S.onNodeRemoved()),S.parent.children.splice(T,1)},onNodeRemoved:Rt,addIdentifiers(x){},removeIdentifiers(x){},hoist(x){Ae(x)&&(x=Se(x)),S.hoists.push(x);const k=Se(`_hoisted_${S.hoists.length}`,!1,x.loc,2);return k.hoisted=x,k},cache(x,k=!1){return A7(S.cached++,x,k)}};return S.filters=new Set,S}function Q7(e,t){const i=G7(e,t);jd(e,i),t.hoistStatic&&X7(e,i),t.ssr||J7(e,i),e.helpers=new Set([...i.helpers.keys()]),e.components=[...i.components],e.directives=[...i.directives],e.imports=i.imports,e.hoists=i.hoists,e.temps=i.temps,e.cached=i.cached,e.transformed=!0,e.filters=[...i.filters]}function J7(e,t){const{helper:i}=t,{children:r}=e;if(r.length===1){const n=r[0];if(Qy(e,n)&&n.codegenNode){const s=n.codegenNode;s.type===13&&f0(s,t),e.codegenNode=s}else e.codegenNode=n}else if(r.length>1){let n=64;e.codegenNode=al(t,i(sl),void 0,e.children,n+"",void 0,void 0,!0,void 0,!1)}}function ew(e,t){let i=0;const r=()=>{i--};for(;ir===e:r=>e.test(r);return(r,n)=>{if(r.type===1){const{props:s}=r;if(r.tagType===3&&s.some(P7))return;const o=[];for(let a=0;a`${Fo[e]}: _${Fo[e]}`;function tw(e,{mode:t="function",prefixIdentifiers:i=t==="module",sourceMap:r=!1,filename:n="template.vue.html",scopeId:s=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:d=!1,isTS:u=!1,inSSR:h=!1}){const f={mode:t,prefixIdentifiers:i,sourceMap:r,filename:n,scopeId:s,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:d,isTS:u,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(b){return`_${Fo[b]}`},push(b,w=-2,_){f.code+=b},indent(){m(++f.indentLevel)},deindent(b=!1){b?--f.indentLevel:m(--f.indentLevel)},newline(){m(f.indentLevel)}};function m(b){f.push(` -`+" ".repeat(b),0)}return f}function iw(e,t={}){const i=tw(e,t);t.onContextCreated&&t.onContextCreated(i);const{mode:r,push:n,prefixIdentifiers:s,indent:o,deindent:a,newline:l,scopeId:c,ssr:d}=i,u=Array.from(e.helpers),h=u.length>0,f=!s&&r!=="module";rw(e,i);const b=d?"ssrRender":"render",_=(d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(n(`function ${b}(${_}) {`),o(),f&&(n("with (_ctx) {"),o(),h&&(n(`const { ${u.map(nb).join(", ")} } = _Vue +**/const sl=Symbol(""),Da=Symbol(""),Qp=Symbol(""),td=Symbol(""),By=Symbol(""),zs=Symbol(""),Oy=Symbol(""),My=Symbol(""),Jp=Symbol(""),e0=Symbol(""),Ol=Symbol(""),t0=Symbol(""),Vy=Symbol(""),i0=Symbol(""),r0=Symbol(""),n0=Symbol(""),s0=Symbol(""),o0=Symbol(""),a0=Symbol(""),Fy=Symbol(""),zy=Symbol(""),Wd=Symbol(""),id=Symbol(""),l0=Symbol(""),c0=Symbol(""),ol=Symbol(""),Ml=Symbol(""),d0=Symbol(""),rf=Symbol(""),v7=Symbol(""),nf=Symbol(""),rd=Symbol(""),y7=Symbol(""),b7=Symbol(""),u0=Symbol(""),w7=Symbol(""),_7=Symbol(""),h0=Symbol(""),Hy=Symbol(""),Fo={[sl]:"Fragment",[Da]:"Teleport",[Qp]:"Suspense",[td]:"KeepAlive",[By]:"BaseTransition",[zs]:"openBlock",[Oy]:"createBlock",[My]:"createElementBlock",[Jp]:"createVNode",[e0]:"createElementVNode",[Ol]:"createCommentVNode",[t0]:"createTextVNode",[Vy]:"createStaticVNode",[i0]:"resolveComponent",[r0]:"resolveDynamicComponent",[n0]:"resolveDirective",[s0]:"resolveFilter",[o0]:"withDirectives",[a0]:"renderList",[Fy]:"renderSlot",[zy]:"createSlots",[Wd]:"toDisplayString",[id]:"mergeProps",[l0]:"normalizeClass",[c0]:"normalizeStyle",[ol]:"normalizeProps",[Ml]:"guardReactiveProps",[d0]:"toHandlers",[rf]:"camelize",[v7]:"capitalize",[nf]:"toHandlerKey",[rd]:"setBlockTracking",[y7]:"pushScopeId",[b7]:"popScopeId",[u0]:"withCtx",[w7]:"unref",[_7]:"isRef",[h0]:"withMemo",[Hy]:"isMemoSame"};function k7(e){Object.getOwnPropertySymbols(e).forEach(t=>{Fo[t]=e[t]})}const Qi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function C7(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Qi}}function al(e,t,i,r,n,s,o,a=!1,l=!1,c=!1,d=Qi){return e&&(a?(e.helper(zs),e.helper(Uo(e.inSSR,c))):e.helper(Ho(e.inSSR,c)),o&&e.helper(o0)),{type:13,tag:t,props:i,children:r,patchFlag:n,dynamicProps:s,directives:o,isBlock:a,disableTracking:l,isComponent:c,loc:d}}function Vl(e,t=Qi){return{type:17,loc:t,elements:e}}function ar(e,t=Qi){return{type:15,loc:t,properties:e}}function bt(e,t){return{type:16,loc:Qi,key:Ae(e)?Se(e,!0):e,value:t}}function Se(e,t=!1,i=Qi,r=0){return{type:4,loc:i,content:e,isStatic:t,constType:t?3:r}}function kr(e,t=Qi){return{type:8,loc:t,children:e}}function St(e,t=[],i=Qi){return{type:14,loc:i,callee:e,arguments:t}}function zo(e,t=void 0,i=!1,r=!1,n=Qi){return{type:18,params:e,returns:t,newline:i,isSlot:r,loc:n}}function sf(e,t,i,r=!0){return{type:19,test:e,consequent:t,alternate:i,newline:r,loc:Qi}}function A7(e,t,i=!1){return{type:20,index:e,value:t,isVNode:i,loc:Qi}}function E7(e){return{type:21,body:e,loc:Qi}}function Ho(e,t){return e||t?Jp:e0}function Uo(e,t){return e||t?Oy:My}function f0(e,{helper:t,removeHelper:i,inSSR:r}){e.isBlock||(e.isBlock=!0,i(Ho(r,e.isComponent)),t(zs),t(Uo(r,e.isComponent)))}const Gm=new Uint8Array([123,123]),Qm=new Uint8Array([125,125]);function Jm(e){return e>=97&&e<=122||e>=65&&e<=90}function Ui(e){return e===32||e===10||e===9||e===12||e===13}function wn(e){return e===47||e===62||Ui(e)}function nd(e){const t=new Uint8Array(e.length);for(let i=0;i=0;n--){const s=this.newlines[n];if(t>s){i=n+2,r=t-s;break}}return{column:r,line:i,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const i=this.index+1-this.delimiterOpen.length;i>this.sectionStart&&this.cbs.ontext(this.sectionStart,i),this.state=3,this.sectionStart=i}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const i=this.sequenceIndex===this.currentSequence.length;if(!(i?wn(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!i){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Ui(t)){const i=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===ii.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,i){}}function e1(e,{compatConfig:t}){const i=t&&t[e];return e==="MODE"?i||3:i}function Ps(e,t){const i=e1("MODE",t),r=e1(e,t);return i===3?r===!0:r!==!1}function ll(e,t,i,...r){return Ps(e,t)}function p0(e){throw e}function Uy(e){}function st(e,t,i,r){const n=`https://vuejs.org/error-reference/#compiler-${e}`,s=new SyntaxError(String(n));return s.code=e,s.loc=t,s}const Ri=e=>e.type===4&&e.isStatic;function Ky(e){switch(e){case"Teleport":case"teleport":return Da;case"Suspense":case"suspense":return Qp;case"KeepAlive":case"keep-alive":return td;case"BaseTransition":case"base-transition":return By}}const S7=/^\d|[^\$\w\xA0-\uFFFF]/,m0=e=>!S7.test(e),T7=/[A-Za-z_$\xA0-\uFFFF]/,N7=/[\.\?\w$\xA0-\uFFFF]/,R7=/\s+[.[]\s*|\s*[.[]\s+/g,I7=e=>{e=e.trim().replace(R7,o=>o.trim());let t=0,i=[],r=0,n=0,s=null;for(let o=0;ot.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function vu(e){return e.type===5||e.type===2}function P7(e){return e.type===7&&e.name==="slot"}function sd(e){return e.type===1&&e.tagType===3}function od(e){return e.type===1&&e.tagType===2}const D7=new Set([ol,Ml]);function qy(e,t=[]){if(e&&!Ae(e)&&e.type===14){const i=e.callee;if(!Ae(i)&&D7.has(i))return qy(e.arguments[0],t.concat(e))}return[e,t]}function ad(e,t,i){let r,n=e.type===13?e.props:e.arguments[2],s=[],o;if(n&&!Ae(n)&&n.type===14){const a=qy(n);n=a[0],s=a[1],o=s[s.length-1]}if(n==null||Ae(n))r=ar([t]);else if(n.type===14){const a=n.arguments[0];!Ae(a)&&a.type===15?t1(t,a)||a.properties.unshift(t):n.callee===d0?r=St(i.helper(id),[ar([t]),n]):n.arguments.unshift(ar([t])),!r&&(r=n)}else n.type===15?(t1(t,n)||n.properties.unshift(t),r=n):(r=St(i.helper(id),[ar([t]),n]),o&&o.callee===Ml&&(o=s[s.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function t1(e,t){let i=!1;if(e.key.type===4){const r=e.key.content;i=t.properties.some(n=>n.key.type===4&&n.key.content===r)}return i}function cl(e,t){return`_${t}_${e.replace(/[^\w]/g,(i,r)=>i==="-"?"_":e.charCodeAt(r).toString())}`}function L7(e){return e.type===14&&e.callee===h0?e.arguments[1].returns:e}const B7=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,jy={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:xc,isPreTag:xc,isCustomElement:xc,onError:p0,onWarn:Uy,comments:!1,prefixIdentifiers:!1};let He=jy,dl=null,on="",si=null,Le=null,Ei="",jr=-1,ns=-1,ld=0,xn=!1,of=null;const rt=[],ut=new x7(rt,{onerr:Ur,ontext(e,t){uc(Wt(e,t),e,t)},ontextentity(e,t,i){uc(e,t,i)},oninterpolation(e,t){if(xn)return uc(Wt(e,t),e,t);let i=e+ut.delimiterOpen.length,r=t-ut.delimiterClose.length;for(;Ui(on.charCodeAt(i));)i++;for(;Ui(on.charCodeAt(r-1));)r--;let n=Wt(i,r);n.includes("&")&&(n=He.decodeEntities(n,!1)),af({type:5,content:Ic(n,!1,Et(i,r)),loc:Et(e,t)})},onopentagname(e,t){const i=Wt(e,t);si={type:1,tag:i,ns:He.getNamespace(i,rt[0],He.ns),tagType:0,props:[],children:[],loc:Et(e-1,t),codegenNode:void 0}},onopentagend(e){r1(e)},onclosetag(e,t){const i=Wt(e,t);if(!He.isVoidTag(i)){let r=!1;for(let n=0;n0&&Ur(24,rt[0].loc.start.offset);for(let o=0;o<=n;o++){const a=rt.shift();Rc(a,t,o(r.type===7?r.rawName:r.name)===i)&&Ur(2,t)},onattribend(e,t){if(si&&Le){if(ds(Le.loc,t),e!==0)if(Ei.includes("&")&&(Ei=He.decodeEntities(Ei,!0)),Le.type===6)Le.name==="class"&&(Ei=Zy(Ei).trim()),e===1&&!Ei&&Ur(13,t),Le.value={type:2,content:Ei,loc:e===1?Et(jr,ns):Et(jr-1,ns+1)},ut.inSFCRoot&&si.tag==="template"&&Le.name==="lang"&&Ei&&Ei!=="html"&&ut.enterRCDATA(nd("-1&&ll("COMPILER_V_BIND_SYNC",He,Le.loc,Le.rawName)&&(Le.name="model",Le.modifiers.splice(r,1))}(Le.type!==7||Le.name!=="pre")&&si.props.push(Le)}Ei="",jr=ns=-1},oncomment(e,t){He.comments&&af({type:3,content:Wt(e,t),loc:Et(e-4,t+3)})},onend(){const e=on.length;for(let t=0;t{const m=t.start.offset+h,b=m+u.length;return Ic(u,!1,Et(m,b),0,f?1:0)},a={source:o(s.trim(),i.indexOf(s,n.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=n.trim().replace(O7,"").trim();const c=n.indexOf(l),d=l.match(i1);if(d){l=l.replace(i1,"").trim();const u=d[1].trim();let h;if(u&&(h=i.indexOf(u,c+l.length),a.key=o(u,h,!0)),d[2]){const f=d[2].trim();f&&(a.index=o(f,i.indexOf(f,a.key?h+u.length:c+l.length),!0))}}return l&&(a.value=o(l,c,!0)),a}function Wt(e,t){return on.slice(e,t)}function r1(e){ut.inSFCRoot&&(si.innerLoc=Et(e+1,e+1)),af(si);const{tag:t,ns:i}=si;i===0&&He.isPreTag(t)&&ld++,He.isVoidTag(t)?Rc(si,e):(rt.unshift(si),(i===1||i===2)&&(ut.inXML=!0)),si=null}function uc(e,t,i){{const s=rt[0]&&rt[0].tag;s!=="script"&&s!=="style"&&e.includes("&")&&(e=He.decodeEntities(e,!1))}const r=rt[0]||dl,n=r.children[r.children.length-1];n&&n.type===2?(n.content+=e,ds(n.loc,i)):r.children.push({type:2,content:e,loc:Et(t,i)})}function Rc(e,t,i=!1){i?ds(e.loc,Yy(t,60)):ds(e.loc,V7(t,62)+1),ut.inSFCRoot&&(e.children.length?e.innerLoc.end=Be({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Be({},e.innerLoc.start),e.innerLoc.source=Wt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:n}=e;xn||(r==="slot"?e.tagType=2:n1(e)?e.tagType=3:z7(e)&&(e.tagType=1)),ut.inRCDATA||(e.children=Xy(e.children,e.tag)),n===0&&He.isPreTag(r)&&ld--,of===e&&(xn=ut.inVPre=!1,of=null),ut.inXML&&(rt[0]?rt[0].ns:He.ns)===0&&(ut.inXML=!1);{const s=e.props;if(!ut.inSFCRoot&&Ps("COMPILER_NATIVE_TEMPLATE",He)&&e.tag==="template"&&!n1(e)){const a=rt[0]||dl,l=a.children.indexOf(e);a.children.splice(l,1,...e.children)}const o=s.find(a=>a.type===6&&a.name==="inline-template");o&&ll("COMPILER_INLINE_TEMPLATE",He,o.loc)&&e.children.length&&(o.value={type:2,content:Wt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function V7(e,t){let i=e;for(;on.charCodeAt(i)!==t&&i=0;)i--;return i}const F7=new Set(["if","else","else-if","for","slot"]);function n1({tag:e,props:t}){if(e==="template"){for(let i=0;i64&&e<91}const U7=/\r\n/g;function Xy(e,t){const i=He.whitespace!=="preserve";let r=!1;for(let n=0;n0){if(l>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const c=a.codegenNode;if(c.type===13){const d=tb(c);if((!d||d===512||d===1)&&Jy(a,t)>=2){const u=eb(a);u&&(c.props=t.hoist(u))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(a.type===1){const l=a.tagType===1;l&&t.scopes.vSlot++,$c(a,t),l&&t.scopes.vSlot--}else if(a.type===11)$c(a,t,a.children.length===1);else if(a.type===9)for(let l=0;l1)for(let c=0;cN&&(x.childIndex--,x.onNodeRemoved()),x.parent.children.splice(N,1)},onNodeRemoved:Nt,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){Ae(S)&&(S=Se(S)),x.hoists.push(S);const k=Se(`_hoisted_${x.hoists.length}`,!1,S.loc,2);return k.hoisted=S,k},cache(S,k=!1){return A7(x.cached++,S,k)}};return x.filters=new Set,x}function Q7(e,t){const i=G7(e,t);jd(e,i),t.hoistStatic&&X7(e,i),t.ssr||J7(e,i),e.helpers=new Set([...i.helpers.keys()]),e.components=[...i.components],e.directives=[...i.directives],e.imports=i.imports,e.hoists=i.hoists,e.temps=i.temps,e.cached=i.cached,e.transformed=!0,e.filters=[...i.filters]}function J7(e,t){const{helper:i}=t,{children:r}=e;if(r.length===1){const n=r[0];if(Gy(e,n)&&n.codegenNode){const s=n.codegenNode;s.type===13&&f0(s,t),e.codegenNode=s}else e.codegenNode=n}else if(r.length>1){let n=64;e.codegenNode=al(t,i(sl),void 0,e.children,n+"",void 0,void 0,!0,void 0,!1)}}function ew(e,t){let i=0;const r=()=>{i--};for(;ir===e:r=>e.test(r);return(r,n)=>{if(r.type===1){const{props:s}=r;if(r.tagType===3&&s.some(P7))return;const o=[];for(let a=0;a`${Fo[e]}: _${Fo[e]}`;function tw(e,{mode:t="function",prefixIdentifiers:i=t==="module",sourceMap:r=!1,filename:n="template.vue.html",scopeId:s=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:d=!1,isTS:u=!1,inSSR:h=!1}){const f={mode:t,prefixIdentifiers:i,sourceMap:r,filename:n,scopeId:s,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:d,isTS:u,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(b){return`_${Fo[b]}`},push(b,w=-2,_){f.code+=b},indent(){m(++f.indentLevel)},deindent(b=!1){b?--f.indentLevel:m(--f.indentLevel)},newline(){m(f.indentLevel)}};function m(b){f.push(` +`+" ".repeat(b),0)}return f}function iw(e,t={}){const i=tw(e,t);t.onContextCreated&&t.onContextCreated(i);const{mode:r,push:n,prefixIdentifiers:s,indent:o,deindent:a,newline:l,scopeId:c,ssr:d}=i,u=Array.from(e.helpers),h=u.length>0,f=!s&&r!=="module";rw(e,i);const b=d?"ssrRender":"render",_=(d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(n(`function ${b}(${_}) {`),o(),f&&(n("with (_ctx) {"),o(),h&&(n(`const { ${u.map(rb).join(", ")} } = _Vue `,-1),l())),e.components.length&&(yu(e.components,"component",i),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(yu(e.directives,"directive",i),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),yu(e.filters,"filter",i),l()),e.temps>0){n("let ");for(let g=0;g0?", ":""}_temp${g}`)}return(e.components.length||e.directives.length||e.temps)&&(n(` `,0),l()),d||n("return "),e.codegenNode?li(e.codegenNode,i):n("null"),f&&(a(),n("}")),a(),n("}"),{ast:e,code:i.code,preamble:"",map:i.map?i.map.toJSON():void 0}}function rw(e,t){const{ssr:i,prefixIdentifiers:r,push:n,newline:s,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,d=Array.from(e.helpers);if(d.length>0&&(n(`const _Vue = ${c} -`,-1),e.hoists.length)){const u=[Jp,e0,Ol,t0,Fy].filter(h=>d.includes(h)).map(nb).join(", ");n(`const { ${u} } = _Vue -`,-1)}nw(e.hoists,t),s(),n("return ")}function yu(e,t,{helper:i,push:r,newline:n,isTS:s}){const o=i(t==="filter"?s0:t==="component"?i0:n0);for(let a=0;a3||!1;t.push("["),i&&t.indent(),Fl(e,t,i),i&&t.deindent(),t.push("]")}function Fl(e,t,i=!1,r=!0){const{push:n,newline:s}=t;for(let o=0;oi||"null")}function uw(e,t){const{push:i,helper:r,pure:n}=t,s=Ae(e.callee)?e.callee:r(e.callee);n&&i(Yd),i(s+"(",-2,e),Fl(e.arguments,t),i(")")}function hw(e,t){const{push:i,indent:r,deindent:n,newline:s}=t,{properties:o}=e;if(!o.length){i("{}",-2,e);return}const a=o.length>1||!1;i(a?"{":"{ "),a&&r();for(let l=0;l "),(l||a)&&(i("{"),r()),o?(l&&i("return "),ne(o)?g0(o,t):li(o,t)):a&&li(a,t),(l||a)&&(n(),i("}")),c&&(e.isNonScopedSlot&&i(", undefined, true"),i(")"))}function mw(e,t){const{test:i,consequent:r,alternate:n,newline:s}=e,{push:o,indent:a,deindent:l,newline:c}=t;if(i.type===4){const u=!m0(i.content);u&&o("("),sb(i,t),u&&o(")")}else o("("),li(i,t),o(")");s&&a(),t.indentLevel++,s||o(" "),o("? "),li(r,t),t.indentLevel--,s&&c(),s||o(" "),o(": ");const d=n.type===19;d||t.indentLevel++,li(n,t),d||t.indentLevel--,s&&l(!0)}function gw(e,t){const{push:i,helper:r,indent:n,deindent:s,newline:o}=t;i(`_cache[${e.index}] || (`),e.isVNode&&(n(),i(`${r(rd)}(-1),`),o()),i(`_cache[${e.index}] = `),li(e.value,t),e.isVNode&&(i(","),o(),i(`${r(rd)}(1),`),o(),i(`_cache[${e.index}]`),s()),i(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const vw=rb(/^(if|else|else-if)$/,(e,t,i)=>yw(e,t,i,(r,n,s)=>{const o=i.parent.children;let a=o.indexOf(r),l=0;for(;a-->=0;){const c=o[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(s)r.codegenNode=o1(n,l,i);else{const c=bw(r.codegenNode);c.alternate=o1(n,l+r.branches.length-1,i)}}}));function yw(e,t,i,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const n=t.exp?t.exp.loc:e.loc;i.onError(st(28,t.loc)),t.exp=Se("true",!1,n)}if(t.name==="if"){const n=s1(e,t),s={type:9,loc:e.loc,branches:[n]};if(i.replaceNode(s),r)return r(s,n,!0)}else{const n=i.parent.children;let s=n.indexOf(e);for(;s-->=-1;){const o=n[s];if(o&&o.type===3){i.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){i.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&i.onError(st(30,e.loc)),i.removeNode();const a=s1(e,t);o.branches.push(a);const l=r&&r(o,a,!1);jd(a,i),l&&l(),i.currentNode=null}else i.onError(st(30,e.loc));break}}}function s1(e,t){const i=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:i&&!yr(e,"for")?e.children:[e],userKey:qd(e,"key"),isTemplateIf:i}}function o1(e,t,i){return e.condition?sf(e.condition,a1(e,t,i),St(i.helper(Ol),['""',"true"])):a1(e,t,i)}function a1(e,t,i){const{helper:r}=i,n=bt("key",Se(`${t}`,!1,Qi,2)),{children:s}=e,o=s[0];if(s.length!==1||o.type!==1)if(s.length===1&&o.type===11){const l=o.codegenNode;return ad(l,n,i),l}else return al(i,r(sl),ar([n]),s,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const l=o.codegenNode,c=L7(l);return c.type===13&&f0(c,i),ad(c,n,i),l}}function bw(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const ww=(e,t,i)=>{const{modifiers:r,loc:n}=e,s=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(s.type!==4||!s.isStatic)return i.onError(st(52,s.loc)),{props:[bt(s,Se("",!0,n))]};ab(e),o=e.exp}return s.type!==4?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(s.type===4?s.isStatic?s.content=lt(s.content):s.content=`${i.helperString(rf)}(${s.content})`:(s.children.unshift(`${i.helperString(rf)}(`),s.children.push(")"))),i.inSSR||(r.includes("prop")&&l1(s,"."),r.includes("attr")&&l1(s,"^")),{props:[bt(s,o)]}},ab=(e,t)=>{const i=e.arg,r=lt(i.content);e.exp=Se(r,!1,i.loc)},l1=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},_w=rb("for",(e,t,i)=>{const{helper:r,removeHelper:n}=i;return kw(e,t,i,s=>{const o=St(r(a0),[s.source]),a=sd(e),l=yr(e,"memo"),c=qd(e,"key",!1,!0);c&&c.type===7&&!c.exp&&ab(c);const d=c&&(c.type===6?c.value?Se(c.value.content,!0):void 0:c.exp),u=c&&d?bt("key",d):null,h=s.source.type===4&&s.source.constType>0,f=h?64:c?128:256;return s.codegenNode=al(i,r(sl),void 0,o,f+"",void 0,void 0,!0,!h,!1,e.loc),()=>{let m;const{children:b}=s,w=b.length!==1||b[0].type!==1,_=od(e)?e:a&&e.children.length===1&&od(e.children[0])?e.children[0]:null;if(_?(m=_.codegenNode,a&&u&&ad(m,u,i)):w?m=al(i,r(sl),u?ar([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(m=b[0].codegenNode,a&&u&&ad(m,u,i),m.isBlock!==!h&&(m.isBlock?(n(zs),n(Uo(i.inSSR,m.isComponent))):n(Ho(i.inSSR,m.isComponent))),m.isBlock=!h,m.isBlock?(r(zs),r(Uo(i.inSSR,m.isComponent))):r(Ho(i.inSSR,m.isComponent))),l){const g=zo(lf(s.parseResult,[Se("_cached")]));g.body=E7([kr(["const _memo = (",l.exp,")"]),kr(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${i.helperString(Uy)}(_cached, _memo)) return _cached`]),kr(["const _item = ",m]),Se("_item.memo = _memo"),Se("return _item")]),o.arguments.push(g,Se("_cache"),Se(String(i.cached++)))}else o.arguments.push(zo(lf(s.parseResult),m,!0))}})});function kw(e,t,i,r){if(!t.exp){i.onError(st(31,t.loc));return}const n=t.forParseResult;if(!n){i.onError(st(32,t.loc));return}lb(n);const{addIdentifiers:s,removeIdentifiers:o,scopes:a}=i,{source:l,value:c,key:d,index:u}=n,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:d,objectIndexAlias:u,parseResult:n,children:sd(e)?e.children:[e]};i.replaceNode(h),a.vFor++;const f=r&&r(h);return()=>{a.vFor--,f&&f()}}function lb(e,t){e.finalized||(e.finalized=!0)}function lf({value:e,key:t,index:i},r=[]){return Cw([e,t,i,...r])}function Cw(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((i,r)=>i||Se("_".repeat(r+1),!1))}const c1=Se("undefined",!1),Aw=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const i=yr(e,"slot");if(i)return i.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Ew=(e,t,i,r)=>zo(e,i,!1,!0,i.length?i[0].loc:r);function xw(e,t,i=Ew){t.helper(u0);const{children:r,loc:n}=e,s=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=yr(e,"slot",!0);if(l){const{arg:w,exp:_}=l;w&&!Ni(w)&&(a=!0),s.push(bt(w||Se("default",!0),i(_,void 0,r,n)))}let c=!1,d=!1;const u=[],h=new Set;let f=0;for(let w=0;w{const p=i(_,void 0,g,n);return t.compatConfig&&(p.isNonScopedSlot=!0),bt("default",p)};c?u.length&&u.some(_=>cb(_))&&(d?t.onError(st(39,u[0].loc)):s.push(w(void 0,u))):s.push(w(void 0,r))}const m=a?2:Pc(e.children)?3:1;let b=ar(s.concat(bt("_",Se(m+"",!1))),n);return o.length&&(b=St(t.helper(Hy),[b,Vl(o)])),{slots:b,hasDynamicSlots:a}}function hc(e,t,i){const r=[bt("name",e),bt("fn",t)];return i!=null&&r.push(bt("key",Se(String(i),!0))),ar(r)}function Pc(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:n}=e,s=e.tagType===1;let o=s?Tw(e,t):`"${r}"`;const a=We(o)&&o.callee===r0;let l,c,d,u=0,h,f,m,b=a||o===Da||o===Qp||!s&&(r==="svg"||r==="foreignObject"||r==="math");if(n.length>0){const w=ub(e,t,void 0,s,a);l=w.props,u=w.patchFlag,f=w.dynamicPropNames;const _=w.directives;m=_&&_.length?Vl(_.map(g=>Nw(g,t))):void 0,w.shouldUseBlock&&(b=!0)}if(e.children.length>0)if(o===td&&(b=!0,u|=1024),s&&o!==Da&&o!==td){const{slots:_,hasDynamicSlots:g}=xw(e,t);c=_,g&&(u|=1024)}else if(e.children.length===1&&o!==Da){const _=e.children[0],g=_.type,p=g===5||g===8;p&&lr(_,t)===0&&(u|=1),p||g===2?c=_:c=e.children}else c=e.children;u!==0&&(d=String(u),f&&f.length&&(h=Iw(f))),e.codegenNode=al(t,o,l,c,d,h,m,!!b,!1,s,e.loc)};function Tw(e,t,i=!1){let{tag:r}=e;const n=cf(r),s=qd(e,"is",!1,!0);if(s)if(n||Ps("COMPILER_IS_ON_ELEMENT",t)){let a;if(s.type===6?a=s.value&&Se(s.value.content,!0):(a=s.exp,a||(a=Se("is",!1,s.loc))),a)return St(t.helper(r0),[a])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const o=Wy(r)||t.isBuiltInComponent(r);return o?(i||t.helper(o),o):(t.helper(i0),t.components.add(r),cl(r,"component"))}function ub(e,t,i=e.props,r,n,s=!1){const{tag:o,loc:a,children:l}=e;let c=[];const d=[],u=[],h=l.length>0;let f=!1,m=0,b=!1,w=!1,_=!1,g=!1,p=!1,y=!1;const C=[],E=k=>{c.length&&(d.push(ar(d1(c),a)),c=[]),k&&d.push(k)},A=()=>{t.scopes.vFor>0&&c.push(bt(Se("ref_for",!0),Se("true")))},S=({key:k,value:T})=>{if(Ni(k)){const N=k.content,I=Zs(N);if(I&&(!r||n)&&N.toLowerCase()!=="onclick"&&N!=="onUpdate:modelValue"&&!$n(N)&&(g=!0),I&&$n(N)&&(y=!0),I&&T.type===14&&(T=T.arguments[0]),T.type===20||(T.type===4||T.type===8)&&lr(T,t)>0)return;N==="ref"?b=!0:N==="class"?w=!0:N==="style"?_=!0:N!=="key"&&!C.includes(N)&&C.push(N),r&&(N==="class"||N==="style")&&!C.includes(N)&&C.push(N)}else p=!0};for(let k=0;k1?x=St(t.helper(id),d,a):x=d[0]):c.length&&(x=ar(d1(c),a)),p?m|=16:(w&&!r&&(m|=2),_&&!r&&(m|=4),C.length&&(m|=8),g&&(m|=32)),!f&&(m===0||m===32)&&(b||y||u.length>0)&&(m|=512),!t.inSSR&&x)switch(x.type){case 15:let k=-1,T=-1,N=!1;for(let B=0;Bbt(o,s)),n))}return Vl(i,e.loc)}function Iw(e){let t="[";for(let i=0,r=e.length;i{if(od(e)){const{children:i,loc:r}=e,{slotName:n,slotProps:s}=Pw(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",n,"{}","undefined","true"];let a=2;s&&(o[2]=s,a=3),i.length&&(o[3]=zo([],i,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=St(t.helper(zy),o,r)}};function Pw(e,t){let i='"default"',r;const n=[];for(let s=0;s0){const{props:s,directives:o}=ub(e,t,n,!1,!1);r=s,o.length&&t.onError(st(36,o[0].loc))}return{slotName:i,slotProps:r}}const Dw=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,hb=(e,t,i,r)=>{const{loc:n,modifiers:s,arg:o}=e;!e.exp&&!s.length&&i.onError(st(35,n));let a;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const h=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?ko(lt(u)):`on:${u}`;a=Se(h,!0,o.loc)}else a=kr([`${i.helperString(nf)}(`,o,")"]);else a=o,a.children.unshift(`${i.helperString(nf)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=i.cacheHandlers&&!l&&!i.inVOnce;if(l){const u=qy(l.content),h=!(u||Dw.test(l.content)),f=l.content.includes(";");(h||c&&u)&&(l=kr([`${h?"$event":"(...args)"} => ${f?"{":"("}`,l,f?"}":")"]))}let d={props:[bt(a,l||Se("() => {}",!1,n))]};return r&&(d=r(d)),c&&(d.props[0].value=i.cache(d.props[0].value)),d.props.forEach(u=>u.key.isHandlerKey=!0),d},Lw=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const i=e.children;let r,n=!1;for(let s=0;ss.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s{if(e.type===1&&yr(e,"once",!0))return u1.has(e)||t.inVOnce||t.inSSR?void 0:(u1.add(e),t.inVOnce=!0,t.helper(rd),()=>{t.inVOnce=!1;const i=t.currentNode;i.codegenNode&&(i.codegenNode=t.cache(i.codegenNode,!0))})},fb=(e,t,i)=>{const{exp:r,arg:n}=e;if(!r)return i.onError(st(41,e.loc)),fc();const s=r.loc.source,o=r.type===4?r.content:s,a=i.bindingMetadata[s];if(a==="props"||a==="props-aliased")return i.onError(st(44,r.loc)),fc();if(!o.trim()||!qy(o)&&!!1)return i.onError(st(42,r.loc)),fc();const c=n||Se("modelValue",!0),d=n?Ni(n)?`onUpdate:${lt(n.content)}`:kr(['"onUpdate:" + ',n]):"onUpdate:modelValue";let u;const h=i.isTS?"($event: any)":"$event";u=kr([`${h} => ((`,r,") = $event)"]);const f=[bt(c,e.exp),bt(d,u)];if(e.modifiers.length&&t.tagType===1){const m=e.modifiers.map(w=>(m0(w)?w:JSON.stringify(w))+": true").join(", "),b=n?Ni(n)?`${n.content}Modifiers`:kr([n,' + "Modifiers"']):"modelModifiers";f.push(bt(b,Se(`{ ${m} }`,!1,e.loc,2)))}return fc(f)};function fc(e=[]){return{props:e}}const Ow=/[\w).+\-_$\]]/,Mw=(e,t)=>{Ps("COMPILER_FILTERS",t)&&(e.type===5&&cd(e.content,t),e.type===1&&e.props.forEach(i=>{i.type===7&&i.name!=="for"&&i.exp&&cd(i.exp,t)}))};function cd(e,t){if(e.type===4)h1(e,t);else for(let i=0;i=0&&(g=i.charAt(_),g===" ");_--);(!g||!Ow.test(g))&&(o=!0)}}m===void 0?m=i.slice(0,f).trim():d!==0&&w();function w(){b.push(i.slice(d,f).trim()),d=f+1}if(b.length){for(f=0;f{if(e.type===1){const i=yr(e,"memo");return!i||f1.has(e)?void 0:(f1.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&f0(r,t),e.codegenNode=St(t.helper(h0),[i.exp,zo(void 0,r),"_cache",String(t.cached++)]))})}};function zw(e){return[[Bw,vw,Fw,_w,Mw,$w,Sw,Aw,Lw],{on:hb,bind:ww,model:fb}]}function Hw(e,t={}){const i=t.onError||p0,r=t.mode==="module";t.prefixIdentifiers===!0?i(st(47)):r&&i(st(48));const n=!1;t.cacheHandlers&&i(st(49)),t.scopeId&&!r&&i(st(50));const s=Be({},t,{prefixIdentifiers:n}),o=Ae(e)?Y7(e,s):e,[a,l]=zw();return Q7(o,Be({},s,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Be({},l,t.directiveTransforms||{})})),iw(o,s)}const Uw=()=>({props:[]});/** +`,-1),e.hoists.length)){const u=[Jp,e0,Ol,t0,Vy].filter(h=>d.includes(h)).map(rb).join(", ");n(`const { ${u} } = _Vue +`,-1)}nw(e.hoists,t),s(),n("return ")}function yu(e,t,{helper:i,push:r,newline:n,isTS:s}){const o=i(t==="filter"?s0:t==="component"?i0:n0);for(let a=0;a3||!1;t.push("["),i&&t.indent(),Fl(e,t,i),i&&t.deindent(),t.push("]")}function Fl(e,t,i=!1,r=!0){const{push:n,newline:s}=t;for(let o=0;oi||"null")}function uw(e,t){const{push:i,helper:r,pure:n}=t,s=Ae(e.callee)?e.callee:r(e.callee);n&&i(Yd),i(s+"(",-2,e),Fl(e.arguments,t),i(")")}function hw(e,t){const{push:i,indent:r,deindent:n,newline:s}=t,{properties:o}=e;if(!o.length){i("{}",-2,e);return}const a=o.length>1||!1;i(a?"{":"{ "),a&&r();for(let l=0;l "),(l||a)&&(i("{"),r()),o?(l&&i("return "),ne(o)?g0(o,t):li(o,t)):a&&li(a,t),(l||a)&&(n(),i("}")),c&&(e.isNonScopedSlot&&i(", undefined, true"),i(")"))}function mw(e,t){const{test:i,consequent:r,alternate:n,newline:s}=e,{push:o,indent:a,deindent:l,newline:c}=t;if(i.type===4){const u=!m0(i.content);u&&o("("),nb(i,t),u&&o(")")}else o("("),li(i,t),o(")");s&&a(),t.indentLevel++,s||o(" "),o("? "),li(r,t),t.indentLevel--,s&&c(),s||o(" "),o(": ");const d=n.type===19;d||t.indentLevel++,li(n,t),d||t.indentLevel--,s&&l(!0)}function gw(e,t){const{push:i,helper:r,indent:n,deindent:s,newline:o}=t;i(`_cache[${e.index}] || (`),e.isVNode&&(n(),i(`${r(rd)}(-1),`),o()),i(`_cache[${e.index}] = `),li(e.value,t),e.isVNode&&(i(","),o(),i(`${r(rd)}(1),`),o(),i(`_cache[${e.index}]`),s()),i(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const vw=ib(/^(if|else|else-if)$/,(e,t,i)=>yw(e,t,i,(r,n,s)=>{const o=i.parent.children;let a=o.indexOf(r),l=0;for(;a-->=0;){const c=o[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(s)r.codegenNode=o1(n,l,i);else{const c=bw(r.codegenNode);c.alternate=o1(n,l+r.branches.length-1,i)}}}));function yw(e,t,i,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const n=t.exp?t.exp.loc:e.loc;i.onError(st(28,t.loc)),t.exp=Se("true",!1,n)}if(t.name==="if"){const n=s1(e,t),s={type:9,loc:e.loc,branches:[n]};if(i.replaceNode(s),r)return r(s,n,!0)}else{const n=i.parent.children;let s=n.indexOf(e);for(;s-->=-1;){const o=n[s];if(o&&o.type===3){i.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){i.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&i.onError(st(30,e.loc)),i.removeNode();const a=s1(e,t);o.branches.push(a);const l=r&&r(o,a,!1);jd(a,i),l&&l(),i.currentNode=null}else i.onError(st(30,e.loc));break}}}function s1(e,t){const i=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:i&&!yr(e,"for")?e.children:[e],userKey:qd(e,"key"),isTemplateIf:i}}function o1(e,t,i){return e.condition?sf(e.condition,a1(e,t,i),St(i.helper(Ol),['""',"true"])):a1(e,t,i)}function a1(e,t,i){const{helper:r}=i,n=bt("key",Se(`${t}`,!1,Qi,2)),{children:s}=e,o=s[0];if(s.length!==1||o.type!==1)if(s.length===1&&o.type===11){const l=o.codegenNode;return ad(l,n,i),l}else return al(i,r(sl),ar([n]),s,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const l=o.codegenNode,c=L7(l);return c.type===13&&f0(c,i),ad(c,n,i),l}}function bw(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const ww=(e,t,i)=>{const{modifiers:r,loc:n}=e,s=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(s.type!==4||!s.isStatic)return i.onError(st(52,s.loc)),{props:[bt(s,Se("",!0,n))]};ob(e),o=e.exp}return s.type!==4?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(s.type===4?s.isStatic?s.content=lt(s.content):s.content=`${i.helperString(rf)}(${s.content})`:(s.children.unshift(`${i.helperString(rf)}(`),s.children.push(")"))),i.inSSR||(r.includes("prop")&&l1(s,"."),r.includes("attr")&&l1(s,"^")),{props:[bt(s,o)]}},ob=(e,t)=>{const i=e.arg,r=lt(i.content);e.exp=Se(r,!1,i.loc)},l1=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},_w=ib("for",(e,t,i)=>{const{helper:r,removeHelper:n}=i;return kw(e,t,i,s=>{const o=St(r(a0),[s.source]),a=sd(e),l=yr(e,"memo"),c=qd(e,"key",!1,!0);c&&c.type===7&&!c.exp&&ob(c);const d=c&&(c.type===6?c.value?Se(c.value.content,!0):void 0:c.exp),u=c&&d?bt("key",d):null,h=s.source.type===4&&s.source.constType>0,f=h?64:c?128:256;return s.codegenNode=al(i,r(sl),void 0,o,f+"",void 0,void 0,!0,!h,!1,e.loc),()=>{let m;const{children:b}=s,w=b.length!==1||b[0].type!==1,_=od(e)?e:a&&e.children.length===1&&od(e.children[0])?e.children[0]:null;if(_?(m=_.codegenNode,a&&u&&ad(m,u,i)):w?m=al(i,r(sl),u?ar([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(m=b[0].codegenNode,a&&u&&ad(m,u,i),m.isBlock!==!h&&(m.isBlock?(n(zs),n(Uo(i.inSSR,m.isComponent))):n(Ho(i.inSSR,m.isComponent))),m.isBlock=!h,m.isBlock?(r(zs),r(Uo(i.inSSR,m.isComponent))):r(Ho(i.inSSR,m.isComponent))),l){const g=zo(lf(s.parseResult,[Se("_cached")]));g.body=E7([kr(["const _memo = (",l.exp,")"]),kr(["if (_cached",...d?[" && _cached.key === ",d]:[],` && ${i.helperString(Hy)}(_cached, _memo)) return _cached`]),kr(["const _item = ",m]),Se("_item.memo = _memo"),Se("return _item")]),o.arguments.push(g,Se("_cache"),Se(String(i.cached++)))}else o.arguments.push(zo(lf(s.parseResult),m,!0))}})});function kw(e,t,i,r){if(!t.exp){i.onError(st(31,t.loc));return}const n=t.forParseResult;if(!n){i.onError(st(32,t.loc));return}ab(n);const{addIdentifiers:s,removeIdentifiers:o,scopes:a}=i,{source:l,value:c,key:d,index:u}=n,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:d,objectIndexAlias:u,parseResult:n,children:sd(e)?e.children:[e]};i.replaceNode(h),a.vFor++;const f=r&&r(h);return()=>{a.vFor--,f&&f()}}function ab(e,t){e.finalized||(e.finalized=!0)}function lf({value:e,key:t,index:i},r=[]){return Cw([e,t,i,...r])}function Cw(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((i,r)=>i||Se("_".repeat(r+1),!1))}const c1=Se("undefined",!1),Aw=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const i=yr(e,"slot");if(i)return i.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Ew=(e,t,i,r)=>zo(e,i,!1,!0,i.length?i[0].loc:r);function xw(e,t,i=Ew){t.helper(u0);const{children:r,loc:n}=e,s=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=yr(e,"slot",!0);if(l){const{arg:w,exp:_}=l;w&&!Ri(w)&&(a=!0),s.push(bt(w||Se("default",!0),i(_,void 0,r,n)))}let c=!1,d=!1;const u=[],h=new Set;let f=0;for(let w=0;w{const p=i(_,void 0,g,n);return t.compatConfig&&(p.isNonScopedSlot=!0),bt("default",p)};c?u.length&&u.some(_=>lb(_))&&(d?t.onError(st(39,u[0].loc)):s.push(w(void 0,u))):s.push(w(void 0,r))}const m=a?2:Pc(e.children)?3:1;let b=ar(s.concat(bt("_",Se(m+"",!1))),n);return o.length&&(b=St(t.helper(zy),[b,Vl(o)])),{slots:b,hasDynamicSlots:a}}function hc(e,t,i){const r=[bt("name",e),bt("fn",t)];return i!=null&&r.push(bt("key",Se(String(i),!0))),ar(r)}function Pc(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:n}=e,s=e.tagType===1;let o=s?Tw(e,t):`"${r}"`;const a=We(o)&&o.callee===r0;let l,c,d,u=0,h,f,m,b=a||o===Da||o===Qp||!s&&(r==="svg"||r==="foreignObject"||r==="math");if(n.length>0){const w=db(e,t,void 0,s,a);l=w.props,u=w.patchFlag,f=w.dynamicPropNames;const _=w.directives;m=_&&_.length?Vl(_.map(g=>Rw(g,t))):void 0,w.shouldUseBlock&&(b=!0)}if(e.children.length>0)if(o===td&&(b=!0,u|=1024),s&&o!==Da&&o!==td){const{slots:_,hasDynamicSlots:g}=xw(e,t);c=_,g&&(u|=1024)}else if(e.children.length===1&&o!==Da){const _=e.children[0],g=_.type,p=g===5||g===8;p&&lr(_,t)===0&&(u|=1),p||g===2?c=_:c=e.children}else c=e.children;u!==0&&(d=String(u),f&&f.length&&(h=Iw(f))),e.codegenNode=al(t,o,l,c,d,h,m,!!b,!1,s,e.loc)};function Tw(e,t,i=!1){let{tag:r}=e;const n=cf(r),s=qd(e,"is",!1,!0);if(s)if(n||Ps("COMPILER_IS_ON_ELEMENT",t)){let a;if(s.type===6?a=s.value&&Se(s.value.content,!0):(a=s.exp,a||(a=Se("is",!1,s.loc))),a)return St(t.helper(r0),[a])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const o=Ky(r)||t.isBuiltInComponent(r);return o?(i||t.helper(o),o):(t.helper(i0),t.components.add(r),cl(r,"component"))}function db(e,t,i=e.props,r,n,s=!1){const{tag:o,loc:a,children:l}=e;let c=[];const d=[],u=[],h=l.length>0;let f=!1,m=0,b=!1,w=!1,_=!1,g=!1,p=!1,y=!1;const C=[],E=k=>{c.length&&(d.push(ar(d1(c),a)),c=[]),k&&d.push(k)},A=()=>{t.scopes.vFor>0&&c.push(bt(Se("ref_for",!0),Se("true")))},x=({key:k,value:N})=>{if(Ri(k)){const I=k.content,T=Zs(I);if(T&&(!r||n)&&I.toLowerCase()!=="onclick"&&I!=="onUpdate:modelValue"&&!$n(I)&&(g=!0),T&&$n(I)&&(y=!0),T&&N.type===14&&(N=N.arguments[0]),N.type===20||(N.type===4||N.type===8)&&lr(N,t)>0)return;I==="ref"?b=!0:I==="class"?w=!0:I==="style"?_=!0:I!=="key"&&!C.includes(I)&&C.push(I),r&&(I==="class"||I==="style")&&!C.includes(I)&&C.push(I)}else p=!0};for(let k=0;k1?S=St(t.helper(id),d,a):S=d[0]):c.length&&(S=ar(d1(c),a)),p?m|=16:(w&&!r&&(m|=2),_&&!r&&(m|=4),C.length&&(m|=8),g&&(m|=32)),!f&&(m===0||m===32)&&(b||y||u.length>0)&&(m|=512),!t.inSSR&&S)switch(S.type){case 15:let k=-1,N=-1,I=!1;for(let O=0;Obt(o,s)),n))}return Vl(i,e.loc)}function Iw(e){let t="[";for(let i=0,r=e.length;i{if(od(e)){const{children:i,loc:r}=e,{slotName:n,slotProps:s}=Pw(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",n,"{}","undefined","true"];let a=2;s&&(o[2]=s,a=3),i.length&&(o[3]=zo([],i,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),e.codegenNode=St(t.helper(Fy),o,r)}};function Pw(e,t){let i='"default"',r;const n=[];for(let s=0;s0){const{props:s,directives:o}=db(e,t,n,!1,!1);r=s,o.length&&t.onError(st(36,o[0].loc))}return{slotName:i,slotProps:r}}const Dw=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ub=(e,t,i,r)=>{const{loc:n,modifiers:s,arg:o}=e;!e.exp&&!s.length&&i.onError(st(35,n));let a;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const h=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?ko(lt(u)):`on:${u}`;a=Se(h,!0,o.loc)}else a=kr([`${i.helperString(nf)}(`,o,")"]);else a=o,a.children.unshift(`${i.helperString(nf)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=i.cacheHandlers&&!l&&!i.inVOnce;if(l){const u=Wy(l.content),h=!(u||Dw.test(l.content)),f=l.content.includes(";");(h||c&&u)&&(l=kr([`${h?"$event":"(...args)"} => ${f?"{":"("}`,l,f?"}":")"]))}let d={props:[bt(a,l||Se("() => {}",!1,n))]};return r&&(d=r(d)),c&&(d.props[0].value=i.cache(d.props[0].value)),d.props.forEach(u=>u.key.isHandlerKey=!0),d},Lw=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const i=e.children;let r,n=!1;for(let s=0;ss.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s{if(e.type===1&&yr(e,"once",!0))return u1.has(e)||t.inVOnce||t.inSSR?void 0:(u1.add(e),t.inVOnce=!0,t.helper(rd),()=>{t.inVOnce=!1;const i=t.currentNode;i.codegenNode&&(i.codegenNode=t.cache(i.codegenNode,!0))})},hb=(e,t,i)=>{const{exp:r,arg:n}=e;if(!r)return i.onError(st(41,e.loc)),fc();const s=r.loc.source,o=r.type===4?r.content:s,a=i.bindingMetadata[s];if(a==="props"||a==="props-aliased")return i.onError(st(44,r.loc)),fc();if(!o.trim()||!Wy(o)&&!!1)return i.onError(st(42,r.loc)),fc();const c=n||Se("modelValue",!0),d=n?Ri(n)?`onUpdate:${lt(n.content)}`:kr(['"onUpdate:" + ',n]):"onUpdate:modelValue";let u;const h=i.isTS?"($event: any)":"$event";u=kr([`${h} => ((`,r,") = $event)"]);const f=[bt(c,e.exp),bt(d,u)];if(e.modifiers.length&&t.tagType===1){const m=e.modifiers.map(w=>(m0(w)?w:JSON.stringify(w))+": true").join(", "),b=n?Ri(n)?`${n.content}Modifiers`:kr([n,' + "Modifiers"']):"modelModifiers";f.push(bt(b,Se(`{ ${m} }`,!1,e.loc,2)))}return fc(f)};function fc(e=[]){return{props:e}}const Ow=/[\w).+\-_$\]]/,Mw=(e,t)=>{Ps("COMPILER_FILTERS",t)&&(e.type===5&&cd(e.content,t),e.type===1&&e.props.forEach(i=>{i.type===7&&i.name!=="for"&&i.exp&&cd(i.exp,t)}))};function cd(e,t){if(e.type===4)h1(e,t);else for(let i=0;i=0&&(g=i.charAt(_),g===" ");_--);(!g||!Ow.test(g))&&(o=!0)}}m===void 0?m=i.slice(0,f).trim():d!==0&&w();function w(){b.push(i.slice(d,f).trim()),d=f+1}if(b.length){for(f=0;f{if(e.type===1){const i=yr(e,"memo");return!i||f1.has(e)?void 0:(f1.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&f0(r,t),e.codegenNode=St(t.helper(h0),[i.exp,zo(void 0,r),"_cache",String(t.cached++)]))})}};function zw(e){return[[Bw,vw,Fw,_w,Mw,$w,Sw,Aw,Lw],{on:ub,bind:ww,model:hb}]}function Hw(e,t={}){const i=t.onError||p0,r=t.mode==="module";t.prefixIdentifiers===!0?i(st(47)):r&&i(st(48));const n=!1;t.cacheHandlers&&i(st(49)),t.scopeId&&!r&&i(st(50));const s=Be({},t,{prefixIdentifiers:n}),o=Ae(e)?Y7(e,s):e,[a,l]=zw();return Q7(o,Be({},s,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Be({},l,t.directiveTransforms||{})})),iw(o,s)}const Uw=()=>({props:[]});/** * @vue/compiler-dom v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const pb=Symbol(""),mb=Symbol(""),gb=Symbol(""),vb=Symbol(""),df=Symbol(""),yb=Symbol(""),bb=Symbol(""),wb=Symbol(""),_b=Symbol(""),kb=Symbol("");k7({[pb]:"vModelRadio",[mb]:"vModelCheckbox",[gb]:"vModelText",[vb]:"vModelSelect",[df]:"vModelDynamic",[yb]:"withModifiers",[bb]:"withKeys",[wb]:"vShow",[_b]:"Transition",[kb]:"TransitionGroup"});let ao;function Kw(e,t=!1){return ao||(ao=document.createElement("div")),t?(ao.innerHTML=`
`,ao.children[0].getAttribute("foo")):(ao.innerHTML=e,ao.textContent)}const Ww={parseMode:"html",isVoidTag:n3,isNativeTag:e=>t3(e)||i3(e)||r3(e),isPreTag:e=>e==="pre",decodeEntities:Kw,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return _b;if(e==="TransitionGroup"||e==="transition-group")return kb},getNamespace(e,t,i){let r=t?t.ns:i;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(n=>n.type===6&&n.name==="encoding"&&n.value!=null&&(n.value.content==="text/html"||n.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},qw=e=>{e.type===1&&e.props.forEach((t,i)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[i]={type:7,name:"bind",arg:Se("style",!0,t.loc),exp:jw(t.value.content,t.loc),modifiers:[],loc:t.loc})})},jw=(e,t)=>{const i=Vv(e);return Se(JSON.stringify(i),!1,t,3)};function Dn(e,t){return st(e,t)}const Yw=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Dn(53,n)),t.children.length&&(i.onError(Dn(54,n)),t.children.length=0),{props:[bt(Se("innerHTML",!0,n),r||Se("",!0))]}},Xw=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Dn(55,n)),t.children.length&&(i.onError(Dn(56,n)),t.children.length=0),{props:[bt(Se("textContent",!0),r?lr(r,i)>0?r:St(i.helperString(Wd),[r],n):Se("",!0))]}},Zw=(e,t,i)=>{const r=fb(e,t,i);if(!r.props.length||t.tagType===1)return r;e.arg&&i.onError(Dn(58,e.arg.loc));const{tag:n}=t,s=i.isCustomElement(n);if(n==="input"||n==="textarea"||n==="select"||s){let o=gb,a=!1;if(n==="input"||s){const l=qd(t,"type");if(l){if(l.type===7)o=df;else if(l.value)switch(l.value.content){case"radio":o=pb;break;case"checkbox":o=mb;break;case"file":a=!0,i.onError(Dn(59,e.loc));break}}else $7(t)&&(o=df)}else n==="select"&&(o=vb);a||(r.needRuntime=i.helper(o))}else i.onError(Dn(57,e.loc));return r.props=r.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),r},Gw=Gi("passive,once,capture"),Qw=Gi("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Jw=Gi("left,right"),Cb=Gi("onkeyup,onkeydown,onkeypress",!0),e_=(e,t,i,r)=>{const n=[],s=[],o=[];for(let a=0;aNi(e)&&e.content.toLowerCase()==="onclick"?Se(t,!0):e.type!==4?kr(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,t_=(e,t,i)=>hb(e,t,i,r=>{const{modifiers:n}=e;if(!n.length)return r;let{key:s,value:o}=r.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=e_(s,n,i,e.loc);if(l.includes("right")&&(s=p1(s,"onContextmenu")),l.includes("middle")&&(s=p1(s,"onMouseup")),l.length&&(o=St(i.helper(yb),[o,JSON.stringify(l)])),a.length&&(!Ni(s)||Cb(s.content))&&(o=St(i.helper(bb),[o,JSON.stringify(a)])),c.length){const d=c.map(Qs).join("");s=Ni(s)?Se(`${s.content}${d}`,!0):kr(["(",s,`) + "${d}"`])}return{props:[bt(s,o)]}}),i_=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Dn(61,n)),{props:[],needRuntime:i.helper(wb)}},r_=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},n_=[qw],s_={cloak:Uw,html:Yw,text:Xw,model:Zw,on:t_,show:i_};function o_(e,t={}){return Hw(e,Be({},Ww,t,{nodeTransforms:[r_,...n_,...t.nodeTransforms||[]],directiveTransforms:Be({},s_,t.directiveTransforms||{}),transformHoist:null}))}/** +**/const fb=Symbol(""),pb=Symbol(""),mb=Symbol(""),gb=Symbol(""),df=Symbol(""),vb=Symbol(""),yb=Symbol(""),bb=Symbol(""),wb=Symbol(""),_b=Symbol("");k7({[fb]:"vModelRadio",[pb]:"vModelCheckbox",[mb]:"vModelText",[gb]:"vModelSelect",[df]:"vModelDynamic",[vb]:"withModifiers",[yb]:"withKeys",[bb]:"vShow",[wb]:"Transition",[_b]:"TransitionGroup"});let ao;function Kw(e,t=!1){return ao||(ao=document.createElement("div")),t?(ao.innerHTML=`
`,ao.children[0].getAttribute("foo")):(ao.innerHTML=e,ao.textContent)}const Ww={parseMode:"html",isVoidTag:r3,isNativeTag:e=>e3(e)||t3(e)||i3(e),isPreTag:e=>e==="pre",decodeEntities:Kw,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return wb;if(e==="TransitionGroup"||e==="transition-group")return _b},getNamespace(e,t,i){let r=t?t.ns:i;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(n=>n.type===6&&n.name==="encoding"&&n.value!=null&&(n.value.content==="text/html"||n.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},qw=e=>{e.type===1&&e.props.forEach((t,i)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[i]={type:7,name:"bind",arg:Se("style",!0,t.loc),exp:jw(t.value.content,t.loc),modifiers:[],loc:t.loc})})},jw=(e,t)=>{const i=Vv(e);return Se(JSON.stringify(i),!1,t,3)};function Dn(e,t){return st(e,t)}const Yw=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Dn(53,n)),t.children.length&&(i.onError(Dn(54,n)),t.children.length=0),{props:[bt(Se("innerHTML",!0,n),r||Se("",!0))]}},Xw=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Dn(55,n)),t.children.length&&(i.onError(Dn(56,n)),t.children.length=0),{props:[bt(Se("textContent",!0),r?lr(r,i)>0?r:St(i.helperString(Wd),[r],n):Se("",!0))]}},Zw=(e,t,i)=>{const r=hb(e,t,i);if(!r.props.length||t.tagType===1)return r;e.arg&&i.onError(Dn(58,e.arg.loc));const{tag:n}=t,s=i.isCustomElement(n);if(n==="input"||n==="textarea"||n==="select"||s){let o=mb,a=!1;if(n==="input"||s){const l=qd(t,"type");if(l){if(l.type===7)o=df;else if(l.value)switch(l.value.content){case"radio":o=fb;break;case"checkbox":o=pb;break;case"file":a=!0,i.onError(Dn(59,e.loc));break}}else $7(t)&&(o=df)}else n==="select"&&(o=gb);a||(r.needRuntime=i.helper(o))}else i.onError(Dn(57,e.loc));return r.props=r.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),r},Gw=Gi("passive,once,capture"),Qw=Gi("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Jw=Gi("left,right"),kb=Gi("onkeyup,onkeydown,onkeypress",!0),e_=(e,t,i,r)=>{const n=[],s=[],o=[];for(let a=0;aRi(e)&&e.content.toLowerCase()==="onclick"?Se(t,!0):e.type!==4?kr(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,t_=(e,t,i)=>ub(e,t,i,r=>{const{modifiers:n}=e;if(!n.length)return r;let{key:s,value:o}=r.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=e_(s,n,i,e.loc);if(l.includes("right")&&(s=p1(s,"onContextmenu")),l.includes("middle")&&(s=p1(s,"onMouseup")),l.length&&(o=St(i.helper(vb),[o,JSON.stringify(l)])),a.length&&(!Ri(s)||kb(s.content))&&(o=St(i.helper(yb),[o,JSON.stringify(a)])),c.length){const d=c.map(Qs).join("");s=Ri(s)?Se(`${s.content}${d}`,!0):kr(["(",s,`) + "${d}"`])}return{props:[bt(s,o)]}}),i_=(e,t,i)=>{const{exp:r,loc:n}=e;return r||i.onError(Dn(61,n)),{props:[],needRuntime:i.helper(bb)}},r_=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},n_=[qw],s_={cloak:Uw,html:Yw,text:Xw,model:Zw,on:t_,show:i_};function o_(e,t={}){return Hw(e,Be({},Ww,t,{nodeTransforms:[r_,...n_,...t.nodeTransforms||[]],directiveTransforms:Be({},s_,t.directiveTransforms||{}),transformHoist:null}))}/** * vue v3.4.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const m1=new WeakMap;function a_(e){let t=m1.get(e??Fe);return t||(t=Object.create(null),m1.set(e??Fe,t)),t}function l_(e,t){if(!Ae(e))if(e.nodeType)e=e.innerHTML;else return Rt;const i=e,r=a_(t),n=r[i];if(n)return n;if(e[0]==="#"){const l=document.querySelector(e);e=l?l.innerHTML:""}const s=Be({hoistStatic:!0,onError:void 0,onWarn:Rt},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=l=>!!customElements.get(l));const{code:o}=o_(e,s),a=new Function("Vue",o)(g7);return a._rc=!0,r[i]=a}ay(l_);function g1(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function v0(e={},t={}){Object.keys(t).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:g1(t[i])&&g1(e[i])&&Object.keys(t[i]).length>0&&v0(e[i],t[i])})}const Ab={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wi(){const e=typeof document<"u"?document:{};return v0(e,Ab),e}const c_={document:Ab,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Yn(){const e=typeof window<"u"?window:{};return v0(e,c_),e}const d_=e=>(e==null?void 0:e.nodeName.toLowerCase())??"",zl=(e,t)=>(e==null?void 0:e.nodeName.toLowerCase())===t.toLowerCase(),Ct=e=>typeof e=="function",At=e=>typeof e=="string",Xd=e=>typeof e=="number",u_=e=>typeof e=="boolean",ot=e=>typeof e>"u",y0=e=>e===null,b0=e=>typeof Window<"u"&&e instanceof Window,w0=e=>typeof Document<"u"&&e instanceof Document,ln=e=>typeof Element<"u"&&e instanceof Element,h_=e=>typeof Node<"u"&&e instanceof Node,bo=e=>!Ct(e)&&!b0(e)&&Xd(e.length),an=e=>typeof e=="object"&&e!==null,dd=e=>w0(e)?e.documentElement:e,Zd=e=>e.replace(/-([a-z])/g,(t,i)=>i.toUpperCase()),ul=e=>e&&e.replace(/^./,e[0].toLowerCase()).replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Eb=()=>!1,f_=()=>!0,at=(e,t)=>{for(let i=0;i{const i=Object.keys(e);for(let r=0;r{this[r]=i}),this.length=t.length,this):this}}const ud=(e=wi())=>/complete|interactive/.test(e.readyState),Gd=e=>wi().createElement(e),_0=(e,t)=>e.appendChild(t),k0=e=>e.parentNode?e.parentNode.removeChild(e):e,xb=(e,t)=>{const i=Gd(t);return i.innerHTML=e,[].slice.call(i.childNodes)},p_=()=>{const e=function(t){if(!t)return new oi;if(t instanceof oi)return t;if(Ct(t)){const i=wi();return ud(i)?t.call(i,e):i.addEventListener("DOMContentLoaded",()=>t.call(i,e),{once:!0}),new oi([i])}if(At(t)){const i=t.trim();if(i.startsWith("<")&&i.endsWith(">")){let n="div";return _i({li:"ul",tr:"tbody",td:"tr",th:"tr",tbody:"table",option:"select"},(o,a)=>{if(i.startsWith(`<${o}`))return n=a,!1}),new oi(xb(i,n))}const r=wi();return new oi(r.querySelectorAll(t))}return bo(t)&&!h_(t)?new oi(t):new oi([t])};return e.fn=oi.prototype,e},M=p_(),C0=(e,t)=>(at(t,i=>{e.push(i)}),e),na=e=>[...new Set(e)];M.fn.get=function(e){return e===void 0?[].slice.call(this):this[e>=0?e:e+this.length]};M.fn.add=function(e){return new oi(na(C0(this.get(),M(e).get())))};const Sb=(e,t,i)=>{const r=e.getAttribute(t);return y0(r)?i:r},Tb=(e,t)=>{e.removeAttribute(t)},Rb=(e,t,i)=>{y0(i)?Tb(e,t):e.setAttribute(t,i)};M.fn.each=function(e){return at(this,(t,i)=>e.call(t,i,t))};at(["add","remove","toggle"],e=>{M.fn[`${e}Class`]=function(t){return e==="remove"&&!arguments.length?this.each((i,r)=>{Rb(r,"class","")}):this.each((i,r)=>{if(!ln(r))return;const n=(Ct(t)?t.call(r,i,Sb(r,"class","")):t).split(" ").filter(s=>s);at(n,s=>{r.classList[e](s)})})}});at(["insertBefore","insertAfter"],(e,t)=>{M.fn[e]=function(i){const r=t?M(this.get().reverse()):this,n=M(i),s=[];return n.each((o,a)=>{a.parentNode&&r.each((l,c)=>{const d=o?c.cloneNode(!0):c,u=t?a.nextSibling:a;s.push(d),a.parentNode.insertBefore(d,u)})}),M(t?s.reverse():s)}});const m_=e=>At(e)&&!(e.startsWith("<")&&e.endsWith(">"));at(["before","after"],(e,t)=>{M.fn[e]=function(...i){return t===1&&(i=i.reverse()),this.each((r,n)=>{const s=Ct(i[0])?[i[0].call(n,r,n.innerHTML)]:i;at(s,o=>{let a;m_(o)?a=M(xb(o,"div")):r&&ln(o)?a=M(o.cloneNode(!0)):a=M(o),a[t?"insertAfter":"insertBefore"](n)})})}});function Nb(e,t){return bo(e)?at(e,(i,r)=>t.call(i,r,i)):_i(e,t)}function La(e,t){const i=Yn();let r;const n=[];return Nb(e,(s,o)=>{r=t.call(i,o,s),r!=null&&n.push(r)}),[].concat(...n)}M.fn.map=function(e){return new oi(La(this,(t,i)=>e.call(t,i,t)))};M.fn.clone=function(){return this.map(function(){return this.cloneNode(!0)})};M.fn.is=function(e){let t=!1;if(Ct(e))return this.each((r,n)=>{e.call(n,r,n)&&(t=!0)}),t;if(At(e))return this.each((r,n)=>{w0(n)||b0(n)||n.matches.call(n,e)&&(t=!0)}),t;const i=M(e);return this.each((r,n)=>{i.each((s,o)=>{n===o&&(t=!0)})}),t};M.fn.remove=function(e){return this.each((t,i)=>{(!e||M(i).is(e))&&k0(i)})};at(["prepend","append"],(e,t)=>{M.fn[e]=function(...i){return this.each((r,n)=>{const s=n.childNodes,o=s.length,a=o?s[t?o-1:0]:Gd("div");o||_0(n,a);let l=Ct(i[0])?[i[0].call(n,r,n.innerHTML)]:i;r&&(l=l.map(c=>At(c)?c:M(c).clone())),M(a)[t?"after":"before"](...l),o||k0(a)})}});at(["appendTo","prependTo"],(e,t)=>{M.fn[e]=function(i){const r=[],n=M(i).map((o,a)=>{const l=a.childNodes,c=l.length;if(c)return l[t?0:c-1];const d=Gd("div");return _0(a,d),r.push(d),d}),s=this[t?"insertBefore":"insertAfter"](n);return M(r).remove(),s}});const Qd=(e,t)=>Yn().getComputedStyle(e).getPropertyValue(ul(t)),Ib=e=>Qd(e,"box-sizing")==="border-box",uf=(e,t,i)=>{const r=t==="width"?["Left","Right"]:["Top","Bottom"];return[0,1].reduce((n,s,o)=>{let a=i+r[o];return i==="border"&&(a+="Width"),n+parseFloat(Qd(e,a)||"0")},0)},Jd=(e,t)=>{if(t==="width"||t==="height"){const i=e.getBoundingClientRect()[t];return Ib(e)?`${i}px`:`${i-uf(e,t,"border")-uf(e,t,"padding")}px`}return Qd(e,t)},g_=["animation-iteration-count","column-count","fill-opacity","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","line-height","opacity","order","orphans","widows","z-index","zoom"];at(["attr","prop","css"],(e,t)=>{const i=(n,s,o)=>{if(ot(o))return;if(t===0)return Rb(n,s,o);if(t===1){n[s]=o;return}s=ul(s);const a=()=>s.startsWith("--")||g_.includes(s)?"":"px";n.style.setProperty(s,Xd(o)?`${o}${a()}`:o)},r=(n,s)=>t===0?Sb(n,s):t===1?n[s]:Jd(n,s);M.fn[e]=function(n,s){if(an(n))return _i(n,(o,a)=>{this[e](o,a)}),this;if(arguments.length===1){const o=this[0];return ln(o)?r(o,n):void 0}return this.each((o,a)=>{i(a,n,Ct(s)?s.call(a,o,r(a,n)):s)})}});M.fn.children=function(e){const t=[];return this.each((i,r)=>{at(r.childNodes,n=>{ln(n)&&(!e||M(n).is(e))&&t.push(n)})}),new oi(na(t))};M.fn.slice=function(...e){return new oi([].slice.apply(this,e))};M.fn.eq=function(e){const t=e===-1?this.slice(e):this.slice(e,+e+1);return new oi(t)};const A0=(e,t,i,r,n)=>{const s=[];let o;return e.each((a,l)=>{for(o=l[i];o&&ln(o);){if(t===2){if(r&&M(o).is(r))break;(!n||M(o).is(n))&&s.push(o)}else if(t===0){(!r||M(o).is(r))&&s.push(o);break}else(!r||M(o).is(r))&&s.push(o);o=o[i]}}),new oi(na(s))};at(["","s","sUntil"],(e,t)=>{M.fn[`parent${e}`]=function(i,r){const n=t?M(this.get().reverse()):this;return A0(n,t,"parentNode",i,r)}});M.fn.closest=function(e){if(this.is(e))return this;const t=[];return this.parents().each((i,r)=>{if(M(r).is(e))return t.push(r),!1}),new oi(t)};const eu=new WeakMap,Hl=e=>eu.get(e)??{},$b=(e,t)=>{const i=Hl(e),r=Zd(t);return r in i?i[r]:void 0},E0=(e,t)=>{const i=Hl(e);_i(t,(r,n)=>{i[Zd(r)]=n}),eu.set(e,i)},Pb=(e,t,i)=>{E0(e,{[t]:i})},v_=e=>{eu.delete(e)},y_=(e,t)=>{const i=Hl(e);at(t,r=>{const n=Zd(r);delete i[n]}),eu.set(e,i)},b_=/^(?:{[\w\W]*\}|\[[\w\W]*\])$/,w_=e=>e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:b_.test(e)?JSON.parse(e):e,v1=(e,t,i)=>{if(ot(i)&&e.nodeType===1&&(i=e.dataset[t],At(i)))try{i=w_(i)}catch{}return i};M.fn.data=function(e,t){if(ot(e)){if(!this.length)return;const i=this[0],r=Hl(i);return i.nodeType!==1||_i(i.dataset,n=>{r[n]=v1(i,n,r[n])}),r}if(an(e))return this.each(function(){E0(this,e)});if(arguments.length===2&&ot(t))return this;if(!ot(t))return this.each(function(){Pb(this,e,t)});if(this.length)return v1(this[0],Zd(e),$b(this[0],e))};M.fn.empty=function(){return this.each((e,t)=>{t.innerHTML=""})};M.fn.extend=function(e){return _i(e,(t,i)=>{M.fn[t]=i}),this};M.fn.filter=function(e){if(Ct(e))return this.map((i,r)=>e.call(r,i,r)?r:void 0);if(At(e))return this.map((i,r)=>M(r).is(e)?r:void 0);const t=M(e);return this.map((i,r)=>t.get().includes(r)?r:void 0)};M.fn.find=function(e){const t=[];return this.each((i,r)=>{C0(t,M(r.querySelectorAll(e)).get())}),new oi(t)};M.fn.first=function(){return this.eq(0)};const x0=(e,t)=>e!==t&&dd(e).contains(t);M.fn.has=function(e){const t=At(e)?this.find(e):M(e),{length:i}=t;return this.map(function(){for(let r=0;r{const o=a=>uf(e,t.toLowerCase(),a)*s;return r===2&&n&&(i+=o("margin")),Ib(e)?(r===0&&(i-=o("border")),r===1&&(i-=o("border"),i-=o("padding"))):(r===0&&(i+=o("padding")),r===2&&(i+=o("border"),i+=o("padding"))),i},Lb=(e,t,i,r)=>{const n=wi(),s=`client${t}`,o=`scroll${t}`,a=`offset${t}`,l=`inner${t}`;if(b0(e))return i===2?e[l]:dd(n)[s];if(w0(e)){const d=dd(e);return Math.max(e.body[o],d[o],e.body[a],d[a],d[s])}const c=parseFloat(Qd(e,t.toLowerCase())||"0");return Db(e,t,c,i,r,1)},__=(e,t,i,r,n,s)=>{let o=Ct(s)?s.call(e,t,Lb(e,i,r,n)):s;if(o==null)return;const a=M(e),l=i.toLowerCase();if(At(o)&&["auto","inherit",""].includes(o)){a.css(l,o);return}const c=o.toString().replace(/\b[0-9.]*/,""),d=parseFloat(o);o=Db(e,i,d,r,n,-1)+(c||"px"),a.css(l,o)};at(["Width","Height"],e=>{at([`inner${e}`,e.toLowerCase(),`outer${e}`],(t,i)=>{M.fn[t]=function(r,n){const s=arguments.length&&(i<2||!u_(r)),o=r===!0||n===!0;return s?this.each((a,l)=>__(l,a,e,i,o,r)):this.length?Lb(this[0],e,i,o):void 0}})});M.fn.hide=function(){return this.each((e,t)=>{t.style.display="none"})};at(["val","html","text"],(e,t)=>{const r=["value","innerHTML","textContent"][t],n=o=>{if(t===2)return La(o,c=>dd(c)[r]).join("");if(!o.length)return;const a=o[0],l=M(a);return t===0&&l.is("select[multiple]")?La(l.find("option:checked"),c=>c.value):a[r]},s=(o,a)=>{if(ot(a)){if(t!==0)return;a=""}t===1&&ln(a)&&(a=a.outerHTML),o[r]=a};M.fn[e]=function(o){return arguments.length?this.each((a,l)=>{const c=M(l),d=Ct(o)?o.call(l,a,n(c)):o;t===0&&Array.isArray(d)?c.is("select[multiple]")?La(c.find("option"),u=>u.selected=d.includes(u.value)):l.checked=d.includes(l.value):s(l,d)}):n(this)}});M.fn.index=function(e){return arguments.length?At(e)?M(e).get().indexOf(this[0]):this.get().indexOf(M(e)[0]):this.eq(0).parent().children().get().indexOf(this[0])};M.fn.last=function(){return this.eq(-1)};at(["","All","Until"],(e,t)=>{M.fn[`next${e}`]=function(i,r){return A0(this,t,"nextElementSibling",i,r)}});M.fn.not=function(e){const t=this.filter(e);return this.map((i,r)=>t.index(r)>-1?void 0:r)};const k_=Yn().CustomEvent;class C_ extends k_{constructor(t,i){super(t,i),this.data=i.data,this.namespace=i.namespace}}const bu=new WeakMap;let A_=1;const hf=e=>(bu.has(e)||bu.set(e,++A_),bu.get(e)),y1=new Map,hd=e=>{const t=hf(e);return y1.get(t)||y1.set(t,[]).get(t)},S0=e=>{const t=e.split(".");return{type:t[0],namespace:t.slice(1).sort().join(" ")}},Bb=e=>new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)"),E_=(e,t,i,r)=>{const n=S0(t);return hd(e).filter(s=>s&&(!n.type||s.type===n.type)&&(!n.namespace||Bb(n.namespace).test(s.namespace))&&(!i||hf(s.func)===hf(i))&&(!r||s.selector===r))},x_=(e,t,i,r,n)=>{let s=!1;an(r)&&r.useCapture&&(s=!0),t.split(" ").forEach(o=>{if(!o)return;const a=S0(o),l=(u,h)=>{i.apply(h,u.detail===null?[u]:[u].concat(u.detail))===!1&&(u.preventDefault(),u.stopPropagation())},c=u=>{u.namespace&&!Bb(u.namespace).test(a.namespace)||(u.data=r,n?M(e).find(n).get().reverse().forEach(h=>{(h===u.target||x0(h,u.target))&&l(u,h)}):l(u,e))},d={type:a.type,namespace:a.namespace,func:i,selector:n,id:hd(e).length,proxy:c};hd(e).push(d),e.addEventListener(d.type,c,s)})},S_=(e,t,i,r)=>{const n=hd(e),s=o=>{delete n[o.id],e.removeEventListener(o.type,o.proxy,!1)};t?t.split(" ").forEach(o=>{o&&E_(e,o,i,r).forEach(a=>{s(a)})}):n.forEach(o=>{s(o)})};M.fn.off=function(e,t,i){return an(e)?(_i(e,(r,n)=>{this.off(r,t,n)}),this):((t===!1||Ct(t))&&(i=t,t=void 0),i===!1&&(i=Eb),this.each(function(){S_(this,e,i,t)}))};function tu(e,...t){return at(t,i=>{_i(i,(r,n)=>{ot(n)||(e[r]=n)})}),e}M.fn.offsetParent=function(){const e=wi();return this.map(function(){let t=this.offsetParent;for(;t&&M(t).css("position")==="static";)t=t.offsetParent;return t||e.documentElement})};const pc=(e,t)=>parseFloat(e.css(t));M.fn.position=function(){if(!this.length)return;const e=this.eq(0);let t,i={left:0,top:0};if(e.css("position")==="fixed")t=e[0].getBoundingClientRect();else{t=e.offset();const r=e.offsetParent();i=r.offset(),i.top+=pc(r,"border-top-width"),i.left+=pc(r,"border-left-width")}return{top:t.top-i.top-pc(e,"margin-top"),left:t.left-i.left-pc(e,"margin-left")}};const Ob=e=>{if(!e.getClientRects().length)return{top:0,left:0};const{top:t,left:i}=e.getBoundingClientRect(),{pageYOffset:r,pageXOffset:n}=e.ownerDocument.defaultView;return{top:t+r,left:i+n}},T_=(e,t,i)=>{const r=M(e),n=r.css("position");n==="static"&&r.css("position","relative");const s=Ob(e),o=r.css("top"),a=r.css("left");let l,c;if((n==="absolute"||n==="fixed")&&(o+a).includes("auto")){const h=r.position();l=h.top,c=h.left}else l=parseFloat(o),c=parseFloat(a);const u=Ct(t)?t.call(e,i,tu({},s)):t;r.css({top:u.top!=null?u.top-s.top+l:void 0,left:u.left!=null?u.left-s.left+c:void 0})};M.fn.offset=function(e){return arguments.length?this.each(function(t){T_(this,e,t)}):this.length?Ob(this[0]):void 0};M.fn.on=function(e,t,i,r,n){if(an(e))return At(t)||(i=i||t,t=void 0),_i(e,(s,o)=>{this.on(s,t,i,o,n)}),this;if(i==null&&r==null?(r=t,i=t=void 0):r==null&&(At(t)?(r=i,i=void 0):(r=i,i=t,t=void 0)),r===!1)r=Eb;else if(!r)return this;if(n){const s=this,o=r;r=function(a,...l){return s.off(a.type,t,r),o.call(this,a,...l)}}return this.each(function(){x_(this,e,r,i,t)})};M.fn.one=function(e,t,i,r){return this.on(e,t,i,r,!0)};at(["","All","Until"],(e,t)=>{M.fn[`prev${e}`]=function(i,r){const n=t?M(this.get().reverse()):this;return A0(n,t,"previousElementSibling",i,r)}});M.fn.removeAttr=function(e){const t=e.split(" ").filter(i=>i);return this.each(function(){at(t,i=>{Tb(this,i)})})};const Mb=(e,t)=>{if(ot(t))return v_(e);const i=At(t)?t.split(" ").filter(r=>r):t;y_(e,i)};M.fn.removeData=function(e){return this.each((t,i)=>{Mb(i,e)})};M.fn.removeProp=function(e){return this.each((t,i)=>{try{delete i[e]}catch{}})};M.fn.replaceWith=function(e){return this.each((t,i)=>{let r=e;Ct(r)?r=r.call(i,t,i.innerHTML):t&&!At(r)&&(r=M(r).clone()),M(i).before(r)}),this.remove()};M.fn.replaceAll=function(e){return M(e).map((t,i)=>(M(i).replaceWith(t?this.clone():this),this.get()))};const T0=e=>{if(!an(e)&&!Array.isArray(e))return"";const t=[],i=(r,n)=>{let s;an(n)?_i(n,(o,a)=>{s=Array.isArray(n)&&!an(a)?"":o,i(`${r}[${s}]`,a)}):(s=n==null||n===""?"=":`=${encodeURIComponent(n)}`,t.push(encodeURIComponent(r)+s))};return Array.isArray(e)?at(e,({name:r,value:n})=>i(r,n)):_i(e,i),t.join("&")},vo=new WeakMap,Vb=e=>{const t=[...e.elements],i=vo.get(e)||[],r=(n,s)=>n.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1;return[...t,...i].sort(r)},Fb=e=>{const t=[];return e.each((i,r)=>{const n=r instanceof HTMLFormElement?Vb(r):[r];M(n).each((s,o)=>{const a=M(o),l=o.type,c=o.nodeName.toLowerCase();c!=="fieldset"&&o.name&&!o.disabled&&["input","select","textarea","keygen","mdui-checkbox","mdui-radio-group","mdui-switch","mdui-text-field","mdui-select","mdui-slider","mdui-range-slider","mdui-segmented-button-group"].includes(c)&&!["submit","button","image","reset","file"].includes(l)&&(!["radio","checkbox"].includes(l)||o.checked)&&(!["mdui-checkbox","mdui-switch"].includes(c)||o.checked)&&t.push({name:o.name,value:a.val()})})}),t};M.fn.serializeArray=function(){return Fb(this).map(e=>Array.isArray(e.value)?e.value.map(t=>({name:e.name,value:t})):e).flat()};M.fn.serialize=function(){return T0(this.serializeArray())};M.fn.serializeObject=function(){const e={};return Fb(this).forEach(t=>{const{name:i,value:r}=t;if(!e.hasOwnProperty(i))e[i]=r;else{const n=e[i];Array.isArray(n)||(e[i]=[n]),Array.isArray(r)?e[i].push(...r):e[i].push(r)}}),e};const wu={},R_=e=>{const t=wi();let i,r;return wu[e]||(i=Gd(e),_0(t.body,i),r=Jd(i,"display"),k0(i),r==="none"&&(r="block"),wu[e]=r),wu[e]};M.fn.show=function(){return this.each((e,t)=>{t.style.display==="none"&&(t.style.display=""),Jd(t,"display")==="none"&&(t.style.display=R_(t.nodeName))})};M.fn.siblings=function(e){return this.prevAll(e).add(this.nextAll(e))};M.fn.toggle=function(){return this.each((e,t)=>{Jd(t,"display")==="none"?M(t).show():M(t).hide()})};M.fn.trigger=function(e,t=null,i){const{type:r,namespace:n}=S0(e),s=new C_(r,{detail:t,data:null,namespace:n,bubbles:!0,cancelable:!1,composed:!0,...i});return this.each((o,a)=>{a.dispatchEvent(s)})};const N_="ajaxStart",b1="ajaxSuccess",mc="ajaxError",_u="ajaxComplete",Ba={},I_=e=>["GET","HEAD"].includes(e),w1=(e,t)=>`${e}&${t}`.replace(/[&?]{1,2}/,"?"),$_=e=>{const t=Yn();return/^([\w-]+:)?\/\/([^/]+)/.test(e)&&RegExp.$2!==t.location.host},P_=e=>e>=200&&e<300||[0,304].includes(e),D_=e=>{const t={url:"",method:"GET",data:"",processData:!0,async:!0,cache:!0,username:"",password:"",headers:{},xhrFields:{},statusCode:{},dataType:"",contentType:"application/x-www-form-urlencoded",timeout:0,global:!0};return _i(Ba,(i,r)=>{!["beforeSend","success","error","complete","statusCode"].includes(i)&&!ot(r)&&(t[i]=r)}),tu({},t,e)},zb=e=>{const t=wi(),i=Yn();let r=!1;const n={},s={},o=D_(e),a=o.method.toUpperCase();let{data:l,url:c}=o;c=c||i.location.toString();const{processData:d,async:u,cache:h,username:f,password:m,headers:b,xhrFields:w,statusCode:_,dataType:g,contentType:p,timeout:y,global:C}=o,E=I_(a);l&&(E||d)&&!At(l)&&!(l instanceof ArrayBuffer)&&!(l instanceof Blob)&&!(l instanceof Document)&&!(l instanceof FormData)&&(l=T0(l)),l&&E&&(c=w1(c,l),l=null);const A=(x,k,...T)=>{C&&M(t).trigger(x,k==="success"?s:n);let N,I;k in Ba&&(N=Ba[k](...T)),o[k]&&(I=o[k](...T)),k==="beforeSend"&&[N,I].includes(!1)&&(r=!0)};return(()=>{let x;return new Promise((k,T)=>{const N=B=>T(new Error(B));E&&!h&&(c=w1(c,`_=${Date.now()}`));const I=new XMLHttpRequest;I.open(a,c,u,f,m),(p||l&&!E&&p!==!1)&&I.setRequestHeader("Content-Type",p),g==="json"&&I.setRequestHeader("Accept","application/json, text/javascript"),_i(b,(B,O)=>{ot(O)||I.setRequestHeader(B,O+"")}),$_(c)||I.setRequestHeader("X-Requested-With","XMLHttpRequest"),_i(w,(B,O)=>{I[B]=O}),n.xhr=s.xhr=I,n.options=s.options=o;let P;if(I.onload=()=>{P&&clearTimeout(P);const B=P_(I.status);let O;if(B)if(x=I.status===204||a==="HEAD"?"nocontent":I.status===304?"notmodified":"success",g==="json"||!g&&(I.getResponseHeader("content-type")||"").includes("json")){try{O=a==="HEAD"?void 0:JSON.parse(I.responseText),s.response=O}catch{x="parsererror",A(mc,"error",I,x),N(x)}x!=="parsererror"&&(A(b1,"success",O,x,I),k(O))}else O=a==="HEAD"?void 0:I.responseType==="text"||I.responseType===""?I.responseText:I.response,s.response=O,A(b1,"success",O,x,I),k(O);else x="error",A(mc,"error",I,x),N(x);at([Ba.statusCode??{},_],H=>{H[I.status]&&(B?H[I.status](O,x,I):H[I.status](I,x))}),A(_u,"complete",I,x)},I.onerror=()=>{P&&clearTimeout(P),A(mc,"error",I,I.statusText),A(_u,"complete",I,"error"),N(I.statusText)},I.onabort=()=>{let B="abort";P&&(B="timeout",clearTimeout(P)),A(mc,"error",I,B),A(_u,"complete",I,B),N(B)},A(N_,"beforeSend",I,o),r)return N("cancel");y>0&&(P=i.setTimeout(()=>I.abort(),y)),I.send(l)})})()};M.ajax=zb;const L_=e=>tu(Ba,e);M.ajaxSetup=L_;M.contains=x0;function B_(e,t,i){return an(t)?(E0(e,t),t):ot(i)?ot(t)?Hl(e):$b(e,t):(Pb(e,t,i),i)}M.data=B_;M.each=Nb;M.extend=function(e,...t){return t.length?tu(e,...t):(_i(e,(i,r)=>{this[i]=r}),this)};M.map=La;M.merge=C0;M.param=T0;M.removeData=Mb;M.unique=na;function v(e,t,i,r){var n=arguments.length,s=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s}/** +**/const m1=new WeakMap;function a_(e){let t=m1.get(e??Fe);return t||(t=Object.create(null),m1.set(e??Fe,t)),t}function l_(e,t){if(!Ae(e))if(e.nodeType)e=e.innerHTML;else return Nt;const i=e,r=a_(t),n=r[i];if(n)return n;if(e[0]==="#"){const l=document.querySelector(e);e=l?l.innerHTML:""}const s=Be({hoistStatic:!0,onError:void 0,onWarn:Nt},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=l=>!!customElements.get(l));const{code:o}=o_(e,s),a=new Function("Vue",o)(g7);return a._rc=!0,r[i]=a}ay(l_);function g1(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function v0(e={},t={}){Object.keys(t).forEach(i=>{typeof e[i]>"u"?e[i]=t[i]:g1(t[i])&&g1(e[i])&&Object.keys(t[i]).length>0&&v0(e[i],t[i])})}const Cb={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wi(){const e=typeof document<"u"?document:{};return v0(e,Cb),e}const c_={document:Cb,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Yn(){const e=typeof window<"u"?window:{};return v0(e,c_),e}const d_=e=>(e==null?void 0:e.nodeName.toLowerCase())??"",zl=(e,t)=>(e==null?void 0:e.nodeName.toLowerCase())===t.toLowerCase(),Ct=e=>typeof e=="function",At=e=>typeof e=="string",Xd=e=>typeof e=="number",u_=e=>typeof e=="boolean",ot=e=>typeof e>"u",y0=e=>e===null,b0=e=>typeof Window<"u"&&e instanceof Window,w0=e=>typeof Document<"u"&&e instanceof Document,ln=e=>typeof Element<"u"&&e instanceof Element,h_=e=>typeof Node<"u"&&e instanceof Node,bo=e=>!Ct(e)&&!b0(e)&&Xd(e.length),an=e=>typeof e=="object"&&e!==null,dd=e=>w0(e)?e.documentElement:e,Zd=e=>e.replace(/-([a-z])/g,(t,i)=>i.toUpperCase()),ul=e=>e&&e.replace(/^./,e[0].toLowerCase()).replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Ab=()=>!1,f_=()=>!0,at=(e,t)=>{for(let i=0;i{const i=Object.keys(e);for(let r=0;r{this[r]=i}),this.length=t.length,this):this}}const ud=(e=wi())=>/complete|interactive/.test(e.readyState),Gd=e=>wi().createElement(e),_0=(e,t)=>e.appendChild(t),k0=e=>e.parentNode?e.parentNode.removeChild(e):e,Eb=(e,t)=>{const i=Gd(t);return i.innerHTML=e,[].slice.call(i.childNodes)},p_=()=>{const e=function(t){if(!t)return new oi;if(t instanceof oi)return t;if(Ct(t)){const i=wi();return ud(i)?t.call(i,e):i.addEventListener("DOMContentLoaded",()=>t.call(i,e),{once:!0}),new oi([i])}if(At(t)){const i=t.trim();if(i.startsWith("<")&&i.endsWith(">")){let n="div";return _i({li:"ul",tr:"tbody",td:"tr",th:"tr",tbody:"table",option:"select"},(o,a)=>{if(i.startsWith(`<${o}`))return n=a,!1}),new oi(Eb(i,n))}const r=wi();return new oi(r.querySelectorAll(t))}return bo(t)&&!h_(t)?new oi(t):new oi([t])};return e.fn=oi.prototype,e},B=p_(),C0=(e,t)=>(at(t,i=>{e.push(i)}),e),na=e=>[...new Set(e)];B.fn.get=function(e){return e===void 0?[].slice.call(this):this[e>=0?e:e+this.length]};B.fn.add=function(e){return new oi(na(C0(this.get(),B(e).get())))};const xb=(e,t,i)=>{const r=e.getAttribute(t);return y0(r)?i:r},Sb=(e,t)=>{e.removeAttribute(t)},Tb=(e,t,i)=>{y0(i)?Sb(e,t):e.setAttribute(t,i)};B.fn.each=function(e){return at(this,(t,i)=>e.call(t,i,t))};at(["add","remove","toggle"],e=>{B.fn[`${e}Class`]=function(t){return e==="remove"&&!arguments.length?this.each((i,r)=>{Tb(r,"class","")}):this.each((i,r)=>{if(!ln(r))return;const n=(Ct(t)?t.call(r,i,xb(r,"class","")):t).split(" ").filter(s=>s);at(n,s=>{r.classList[e](s)})})}});at(["insertBefore","insertAfter"],(e,t)=>{B.fn[e]=function(i){const r=t?B(this.get().reverse()):this,n=B(i),s=[];return n.each((o,a)=>{a.parentNode&&r.each((l,c)=>{const d=o?c.cloneNode(!0):c,u=t?a.nextSibling:a;s.push(d),a.parentNode.insertBefore(d,u)})}),B(t?s.reverse():s)}});const m_=e=>At(e)&&!(e.startsWith("<")&&e.endsWith(">"));at(["before","after"],(e,t)=>{B.fn[e]=function(...i){return t===1&&(i=i.reverse()),this.each((r,n)=>{const s=Ct(i[0])?[i[0].call(n,r,n.innerHTML)]:i;at(s,o=>{let a;m_(o)?a=B(Eb(o,"div")):r&&ln(o)?a=B(o.cloneNode(!0)):a=B(o),a[t?"insertAfter":"insertBefore"](n)})})}});function Nb(e,t){return bo(e)?at(e,(i,r)=>t.call(i,r,i)):_i(e,t)}function La(e,t){const i=Yn();let r;const n=[];return Nb(e,(s,o)=>{r=t.call(i,o,s),r!=null&&n.push(r)}),[].concat(...n)}B.fn.map=function(e){return new oi(La(this,(t,i)=>e.call(t,i,t)))};B.fn.clone=function(){return this.map(function(){return this.cloneNode(!0)})};B.fn.is=function(e){let t=!1;if(Ct(e))return this.each((r,n)=>{e.call(n,r,n)&&(t=!0)}),t;if(At(e))return this.each((r,n)=>{w0(n)||b0(n)||n.matches.call(n,e)&&(t=!0)}),t;const i=B(e);return this.each((r,n)=>{i.each((s,o)=>{n===o&&(t=!0)})}),t};B.fn.remove=function(e){return this.each((t,i)=>{(!e||B(i).is(e))&&k0(i)})};at(["prepend","append"],(e,t)=>{B.fn[e]=function(...i){return this.each((r,n)=>{const s=n.childNodes,o=s.length,a=o?s[t?o-1:0]:Gd("div");o||_0(n,a);let l=Ct(i[0])?[i[0].call(n,r,n.innerHTML)]:i;r&&(l=l.map(c=>At(c)?c:B(c).clone())),B(a)[t?"after":"before"](...l),o||k0(a)})}});at(["appendTo","prependTo"],(e,t)=>{B.fn[e]=function(i){const r=[],n=B(i).map((o,a)=>{const l=a.childNodes,c=l.length;if(c)return l[t?0:c-1];const d=Gd("div");return _0(a,d),r.push(d),d}),s=this[t?"insertBefore":"insertAfter"](n);return B(r).remove(),s}});const Qd=(e,t)=>Yn().getComputedStyle(e).getPropertyValue(ul(t)),Rb=e=>Qd(e,"box-sizing")==="border-box",uf=(e,t,i)=>{const r=t==="width"?["Left","Right"]:["Top","Bottom"];return[0,1].reduce((n,s,o)=>{let a=i+r[o];return i==="border"&&(a+="Width"),n+parseFloat(Qd(e,a)||"0")},0)},Jd=(e,t)=>{if(t==="width"||t==="height"){const i=e.getBoundingClientRect()[t];return Rb(e)?`${i}px`:`${i-uf(e,t,"border")-uf(e,t,"padding")}px`}return Qd(e,t)},g_=["animation-iteration-count","column-count","fill-opacity","flex-grow","flex-shrink","font-weight","grid-area","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","line-height","opacity","order","orphans","widows","z-index","zoom"];at(["attr","prop","css"],(e,t)=>{const i=(n,s,o)=>{if(ot(o))return;if(t===0)return Tb(n,s,o);if(t===1){n[s]=o;return}s=ul(s);const a=()=>s.startsWith("--")||g_.includes(s)?"":"px";n.style.setProperty(s,Xd(o)?`${o}${a()}`:o)},r=(n,s)=>t===0?xb(n,s):t===1?n[s]:Jd(n,s);B.fn[e]=function(n,s){if(an(n))return _i(n,(o,a)=>{this[e](o,a)}),this;if(arguments.length===1){const o=this[0];return ln(o)?r(o,n):void 0}return this.each((o,a)=>{i(a,n,Ct(s)?s.call(a,o,r(a,n)):s)})}});B.fn.children=function(e){const t=[];return this.each((i,r)=>{at(r.childNodes,n=>{ln(n)&&(!e||B(n).is(e))&&t.push(n)})}),new oi(na(t))};B.fn.slice=function(...e){return new oi([].slice.apply(this,e))};B.fn.eq=function(e){const t=e===-1?this.slice(e):this.slice(e,+e+1);return new oi(t)};const A0=(e,t,i,r,n)=>{const s=[];let o;return e.each((a,l)=>{for(o=l[i];o&&ln(o);){if(t===2){if(r&&B(o).is(r))break;(!n||B(o).is(n))&&s.push(o)}else if(t===0){(!r||B(o).is(r))&&s.push(o);break}else(!r||B(o).is(r))&&s.push(o);o=o[i]}}),new oi(na(s))};at(["","s","sUntil"],(e,t)=>{B.fn[`parent${e}`]=function(i,r){const n=t?B(this.get().reverse()):this;return A0(n,t,"parentNode",i,r)}});B.fn.closest=function(e){if(this.is(e))return this;const t=[];return this.parents().each((i,r)=>{if(B(r).is(e))return t.push(r),!1}),new oi(t)};const eu=new WeakMap,Hl=e=>eu.get(e)??{},Ib=(e,t)=>{const i=Hl(e),r=Zd(t);return r in i?i[r]:void 0},E0=(e,t)=>{const i=Hl(e);_i(t,(r,n)=>{i[Zd(r)]=n}),eu.set(e,i)},$b=(e,t,i)=>{E0(e,{[t]:i})},v_=e=>{eu.delete(e)},y_=(e,t)=>{const i=Hl(e);at(t,r=>{const n=Zd(r);delete i[n]}),eu.set(e,i)},b_=/^(?:{[\w\W]*\}|\[[\w\W]*\])$/,w_=e=>e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:b_.test(e)?JSON.parse(e):e,v1=(e,t,i)=>{if(ot(i)&&e.nodeType===1&&(i=e.dataset[t],At(i)))try{i=w_(i)}catch{}return i};B.fn.data=function(e,t){if(ot(e)){if(!this.length)return;const i=this[0],r=Hl(i);return i.nodeType!==1||_i(i.dataset,n=>{r[n]=v1(i,n,r[n])}),r}if(an(e))return this.each(function(){E0(this,e)});if(arguments.length===2&&ot(t))return this;if(!ot(t))return this.each(function(){$b(this,e,t)});if(this.length)return v1(this[0],Zd(e),Ib(this[0],e))};B.fn.empty=function(){return this.each((e,t)=>{t.innerHTML=""})};B.fn.extend=function(e){return _i(e,(t,i)=>{B.fn[t]=i}),this};B.fn.filter=function(e){if(Ct(e))return this.map((i,r)=>e.call(r,i,r)?r:void 0);if(At(e))return this.map((i,r)=>B(r).is(e)?r:void 0);const t=B(e);return this.map((i,r)=>t.get().includes(r)?r:void 0)};B.fn.find=function(e){const t=[];return this.each((i,r)=>{C0(t,B(r.querySelectorAll(e)).get())}),new oi(t)};B.fn.first=function(){return this.eq(0)};const x0=(e,t)=>e!==t&&dd(e).contains(t);B.fn.has=function(e){const t=At(e)?this.find(e):B(e),{length:i}=t;return this.map(function(){for(let r=0;r{const o=a=>uf(e,t.toLowerCase(),a)*s;return r===2&&n&&(i+=o("margin")),Rb(e)?(r===0&&(i-=o("border")),r===1&&(i-=o("border"),i-=o("padding"))):(r===0&&(i+=o("padding")),r===2&&(i+=o("border"),i+=o("padding"))),i},Db=(e,t,i,r)=>{const n=wi(),s=`client${t}`,o=`scroll${t}`,a=`offset${t}`,l=`inner${t}`;if(b0(e))return i===2?e[l]:dd(n)[s];if(w0(e)){const d=dd(e);return Math.max(e.body[o],d[o],e.body[a],d[a],d[s])}const c=parseFloat(Qd(e,t.toLowerCase())||"0");return Pb(e,t,c,i,r,1)},__=(e,t,i,r,n,s)=>{let o=Ct(s)?s.call(e,t,Db(e,i,r,n)):s;if(o==null)return;const a=B(e),l=i.toLowerCase();if(At(o)&&["auto","inherit",""].includes(o)){a.css(l,o);return}const c=o.toString().replace(/\b[0-9.]*/,""),d=parseFloat(o);o=Pb(e,i,d,r,n,-1)+(c||"px"),a.css(l,o)};at(["Width","Height"],e=>{at([`inner${e}`,e.toLowerCase(),`outer${e}`],(t,i)=>{B.fn[t]=function(r,n){const s=arguments.length&&(i<2||!u_(r)),o=r===!0||n===!0;return s?this.each((a,l)=>__(l,a,e,i,o,r)):this.length?Db(this[0],e,i,o):void 0}})});B.fn.hide=function(){return this.each((e,t)=>{t.style.display="none"})};at(["val","html","text"],(e,t)=>{const r=["value","innerHTML","textContent"][t],n=o=>{if(t===2)return La(o,c=>dd(c)[r]).join("");if(!o.length)return;const a=o[0],l=B(a);return t===0&&l.is("select[multiple]")?La(l.find("option:checked"),c=>c.value):a[r]},s=(o,a)=>{if(ot(a)){if(t!==0)return;a=""}t===1&&ln(a)&&(a=a.outerHTML),o[r]=a};B.fn[e]=function(o){return arguments.length?this.each((a,l)=>{const c=B(l),d=Ct(o)?o.call(l,a,n(c)):o;t===0&&Array.isArray(d)?c.is("select[multiple]")?La(c.find("option"),u=>u.selected=d.includes(u.value)):l.checked=d.includes(l.value):s(l,d)}):n(this)}});B.fn.index=function(e){return arguments.length?At(e)?B(e).get().indexOf(this[0]):this.get().indexOf(B(e)[0]):this.eq(0).parent().children().get().indexOf(this[0])};B.fn.last=function(){return this.eq(-1)};at(["","All","Until"],(e,t)=>{B.fn[`next${e}`]=function(i,r){return A0(this,t,"nextElementSibling",i,r)}});B.fn.not=function(e){const t=this.filter(e);return this.map((i,r)=>t.index(r)>-1?void 0:r)};const k_=Yn().CustomEvent;class C_ extends k_{constructor(t,i){super(t,i),this.data=i.data,this.namespace=i.namespace}}const bu=new WeakMap;let A_=1;const hf=e=>(bu.has(e)||bu.set(e,++A_),bu.get(e)),y1=new Map,hd=e=>{const t=hf(e);return y1.get(t)||y1.set(t,[]).get(t)},S0=e=>{const t=e.split(".");return{type:t[0],namespace:t.slice(1).sort().join(" ")}},Lb=e=>new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)"),E_=(e,t,i,r)=>{const n=S0(t);return hd(e).filter(s=>s&&(!n.type||s.type===n.type)&&(!n.namespace||Lb(n.namespace).test(s.namespace))&&(!i||hf(s.func)===hf(i))&&(!r||s.selector===r))},x_=(e,t,i,r,n)=>{let s=!1;an(r)&&r.useCapture&&(s=!0),t.split(" ").forEach(o=>{if(!o)return;const a=S0(o),l=(u,h)=>{i.apply(h,u.detail===null?[u]:[u].concat(u.detail))===!1&&(u.preventDefault(),u.stopPropagation())},c=u=>{u.namespace&&!Lb(u.namespace).test(a.namespace)||(u.data=r,n?B(e).find(n).get().reverse().forEach(h=>{(h===u.target||x0(h,u.target))&&l(u,h)}):l(u,e))},d={type:a.type,namespace:a.namespace,func:i,selector:n,id:hd(e).length,proxy:c};hd(e).push(d),e.addEventListener(d.type,c,s)})},S_=(e,t,i,r)=>{const n=hd(e),s=o=>{delete n[o.id],e.removeEventListener(o.type,o.proxy,!1)};t?t.split(" ").forEach(o=>{o&&E_(e,o,i,r).forEach(a=>{s(a)})}):n.forEach(o=>{s(o)})};B.fn.off=function(e,t,i){return an(e)?(_i(e,(r,n)=>{this.off(r,t,n)}),this):((t===!1||Ct(t))&&(i=t,t=void 0),i===!1&&(i=Ab),this.each(function(){S_(this,e,i,t)}))};function tu(e,...t){return at(t,i=>{_i(i,(r,n)=>{ot(n)||(e[r]=n)})}),e}B.fn.offsetParent=function(){const e=wi();return this.map(function(){let t=this.offsetParent;for(;t&&B(t).css("position")==="static";)t=t.offsetParent;return t||e.documentElement})};const pc=(e,t)=>parseFloat(e.css(t));B.fn.position=function(){if(!this.length)return;const e=this.eq(0);let t,i={left:0,top:0};if(e.css("position")==="fixed")t=e[0].getBoundingClientRect();else{t=e.offset();const r=e.offsetParent();i=r.offset(),i.top+=pc(r,"border-top-width"),i.left+=pc(r,"border-left-width")}return{top:t.top-i.top-pc(e,"margin-top"),left:t.left-i.left-pc(e,"margin-left")}};const Bb=e=>{if(!e.getClientRects().length)return{top:0,left:0};const{top:t,left:i}=e.getBoundingClientRect(),{pageYOffset:r,pageXOffset:n}=e.ownerDocument.defaultView;return{top:t+r,left:i+n}},T_=(e,t,i)=>{const r=B(e),n=r.css("position");n==="static"&&r.css("position","relative");const s=Bb(e),o=r.css("top"),a=r.css("left");let l,c;if((n==="absolute"||n==="fixed")&&(o+a).includes("auto")){const h=r.position();l=h.top,c=h.left}else l=parseFloat(o),c=parseFloat(a);const u=Ct(t)?t.call(e,i,tu({},s)):t;r.css({top:u.top!=null?u.top-s.top+l:void 0,left:u.left!=null?u.left-s.left+c:void 0})};B.fn.offset=function(e){return arguments.length?this.each(function(t){T_(this,e,t)}):this.length?Bb(this[0]):void 0};B.fn.on=function(e,t,i,r,n){if(an(e))return At(t)||(i=i||t,t=void 0),_i(e,(s,o)=>{this.on(s,t,i,o,n)}),this;if(i==null&&r==null?(r=t,i=t=void 0):r==null&&(At(t)?(r=i,i=void 0):(r=i,i=t,t=void 0)),r===!1)r=Ab;else if(!r)return this;if(n){const s=this,o=r;r=function(a,...l){return s.off(a.type,t,r),o.call(this,a,...l)}}return this.each(function(){x_(this,e,r,i,t)})};B.fn.one=function(e,t,i,r){return this.on(e,t,i,r,!0)};at(["","All","Until"],(e,t)=>{B.fn[`prev${e}`]=function(i,r){const n=t?B(this.get().reverse()):this;return A0(n,t,"previousElementSibling",i,r)}});B.fn.removeAttr=function(e){const t=e.split(" ").filter(i=>i);return this.each(function(){at(t,i=>{Sb(this,i)})})};const Ob=(e,t)=>{if(ot(t))return v_(e);const i=At(t)?t.split(" ").filter(r=>r):t;y_(e,i)};B.fn.removeData=function(e){return this.each((t,i)=>{Ob(i,e)})};B.fn.removeProp=function(e){return this.each((t,i)=>{try{delete i[e]}catch{}})};B.fn.replaceWith=function(e){return this.each((t,i)=>{let r=e;Ct(r)?r=r.call(i,t,i.innerHTML):t&&!At(r)&&(r=B(r).clone()),B(i).before(r)}),this.remove()};B.fn.replaceAll=function(e){return B(e).map((t,i)=>(B(i).replaceWith(t?this.clone():this),this.get()))};const T0=e=>{if(!an(e)&&!Array.isArray(e))return"";const t=[],i=(r,n)=>{let s;an(n)?_i(n,(o,a)=>{s=Array.isArray(n)&&!an(a)?"":o,i(`${r}[${s}]`,a)}):(s=n==null||n===""?"=":`=${encodeURIComponent(n)}`,t.push(encodeURIComponent(r)+s))};return Array.isArray(e)?at(e,({name:r,value:n})=>i(r,n)):_i(e,i),t.join("&")},vo=new WeakMap,Mb=e=>{const t=[...e.elements],i=vo.get(e)||[],r=(n,s)=>n.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1;return[...t,...i].sort(r)},Vb=e=>{const t=[];return e.each((i,r)=>{const n=r instanceof HTMLFormElement?Mb(r):[r];B(n).each((s,o)=>{const a=B(o),l=o.type,c=o.nodeName.toLowerCase();c!=="fieldset"&&o.name&&!o.disabled&&["input","select","textarea","keygen","mdui-checkbox","mdui-radio-group","mdui-switch","mdui-text-field","mdui-select","mdui-slider","mdui-range-slider","mdui-segmented-button-group"].includes(c)&&!["submit","button","image","reset","file"].includes(l)&&(!["radio","checkbox"].includes(l)||o.checked)&&(!["mdui-checkbox","mdui-switch"].includes(c)||o.checked)&&t.push({name:o.name,value:a.val()})})}),t};B.fn.serializeArray=function(){return Vb(this).map(e=>Array.isArray(e.value)?e.value.map(t=>({name:e.name,value:t})):e).flat()};B.fn.serialize=function(){return T0(this.serializeArray())};B.fn.serializeObject=function(){const e={};return Vb(this).forEach(t=>{const{name:i,value:r}=t;if(!e.hasOwnProperty(i))e[i]=r;else{const n=e[i];Array.isArray(n)||(e[i]=[n]),Array.isArray(r)?e[i].push(...r):e[i].push(r)}}),e};const wu={},N_=e=>{const t=wi();let i,r;return wu[e]||(i=Gd(e),_0(t.body,i),r=Jd(i,"display"),k0(i),r==="none"&&(r="block"),wu[e]=r),wu[e]};B.fn.show=function(){return this.each((e,t)=>{t.style.display==="none"&&(t.style.display=""),Jd(t,"display")==="none"&&(t.style.display=N_(t.nodeName))})};B.fn.siblings=function(e){return this.prevAll(e).add(this.nextAll(e))};B.fn.toggle=function(){return this.each((e,t)=>{Jd(t,"display")==="none"?B(t).show():B(t).hide()})};B.fn.trigger=function(e,t=null,i){const{type:r,namespace:n}=S0(e),s=new C_(r,{detail:t,data:null,namespace:n,bubbles:!0,cancelable:!1,composed:!0,...i});return this.each((o,a)=>{a.dispatchEvent(s)})};const R_="ajaxStart",b1="ajaxSuccess",mc="ajaxError",_u="ajaxComplete",Ba={},I_=e=>["GET","HEAD"].includes(e),w1=(e,t)=>`${e}&${t}`.replace(/[&?]{1,2}/,"?"),$_=e=>{const t=Yn();return/^([\w-]+:)?\/\/([^/]+)/.test(e)&&RegExp.$2!==t.location.host},P_=e=>e>=200&&e<300||[0,304].includes(e),D_=e=>{const t={url:"",method:"GET",data:"",processData:!0,async:!0,cache:!0,username:"",password:"",headers:{},xhrFields:{},statusCode:{},dataType:"",contentType:"application/x-www-form-urlencoded",timeout:0,global:!0};return _i(Ba,(i,r)=>{!["beforeSend","success","error","complete","statusCode"].includes(i)&&!ot(r)&&(t[i]=r)}),tu({},t,e)},Fb=e=>{const t=wi(),i=Yn();let r=!1;const n={},s={},o=D_(e),a=o.method.toUpperCase();let{data:l,url:c}=o;c=c||i.location.toString();const{processData:d,async:u,cache:h,username:f,password:m,headers:b,xhrFields:w,statusCode:_,dataType:g,contentType:p,timeout:y,global:C}=o,E=I_(a);l&&(E||d)&&!At(l)&&!(l instanceof ArrayBuffer)&&!(l instanceof Blob)&&!(l instanceof Document)&&!(l instanceof FormData)&&(l=T0(l)),l&&E&&(c=w1(c,l),l=null);const A=(S,k,...N)=>{C&&B(t).trigger(S,k==="success"?s:n);let I,T;k in Ba&&(I=Ba[k](...N)),o[k]&&(T=o[k](...N)),k==="beforeSend"&&[I,T].includes(!1)&&(r=!0)};return(()=>{let S;return new Promise((k,N)=>{const I=O=>N(new Error(O));E&&!h&&(c=w1(c,`_=${Date.now()}`));const T=new XMLHttpRequest;T.open(a,c,u,f,m),(p||l&&!E&&p!==!1)&&T.setRequestHeader("Content-Type",p),g==="json"&&T.setRequestHeader("Accept","application/json, text/javascript"),_i(b,(O,M)=>{ot(M)||T.setRequestHeader(O,M+"")}),$_(c)||T.setRequestHeader("X-Requested-With","XMLHttpRequest"),_i(w,(O,M)=>{T[O]=M}),n.xhr=s.xhr=T,n.options=s.options=o;let P;if(T.onload=()=>{P&&clearTimeout(P);const O=P_(T.status);let M;if(O)if(S=T.status===204||a==="HEAD"?"nocontent":T.status===304?"notmodified":"success",g==="json"||!g&&(T.getResponseHeader("content-type")||"").includes("json")){try{M=a==="HEAD"?void 0:JSON.parse(T.responseText),s.response=M}catch{S="parsererror",A(mc,"error",T,S),I(S)}S!=="parsererror"&&(A(b1,"success",M,S,T),k(M))}else M=a==="HEAD"?void 0:T.responseType==="text"||T.responseType===""?T.responseText:T.response,s.response=M,A(b1,"success",M,S,T),k(M);else S="error",A(mc,"error",T,S),I(S);at([Ba.statusCode??{},_],H=>{H[T.status]&&(O?H[T.status](M,S,T):H[T.status](T,S))}),A(_u,"complete",T,S)},T.onerror=()=>{P&&clearTimeout(P),A(mc,"error",T,T.statusText),A(_u,"complete",T,"error"),I(T.statusText)},T.onabort=()=>{let O="abort";P&&(O="timeout",clearTimeout(P)),A(mc,"error",T,O),A(_u,"complete",T,O),I(O)},A(R_,"beforeSend",T,o),r)return I("cancel");y>0&&(P=i.setTimeout(()=>T.abort(),y)),T.send(l)})})()};B.ajax=Fb;const L_=e=>tu(Ba,e);B.ajaxSetup=L_;B.contains=x0;function B_(e,t,i){return an(t)?(E0(e,t),t):ot(i)?ot(t)?Hl(e):Ib(e,t):($b(e,t,i),i)}B.data=B_;B.each=Nb;B.extend=function(e,...t){return t.length?tu(e,...t):(_i(e,(i,r)=>{this[i]=r}),this)};B.map=La;B.merge=C0;B.param=T0;B.removeData=Ob;B.unique=na;function v(e,t,i,r){var n=arguments.length,s=n<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s}/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Dc=globalThis,R0=Dc.ShadowRoot&&(Dc.ShadyCSS===void 0||Dc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,N0=Symbol(),_1=new WeakMap;let Hb=class{constructor(t,i,r){if(this._$cssResult$=!0,r!==N0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(R0&&t===void 0){const r=i!==void 0&&i.length===1;r&&(t=_1.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&_1.set(i,t))}return t}toString(){return this.cssText}};const O_=e=>new Hb(typeof e=="string"?e:e+"",void 0,N0),me=(e,...t)=>{const i=e.length===1?e[0]:t.reduce((r,n,s)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[s+1],e[0]);return new Hb(i,e,N0)},M_=(e,t)=>{if(R0)e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of t){const r=document.createElement("style"),n=Dc.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,e.appendChild(r)}},k1=R0?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(const r of t.cssRules)i+=r.cssText;return O_(i)})(e):e;/** + */const Dc=globalThis,N0=Dc.ShadowRoot&&(Dc.ShadyCSS===void 0||Dc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,R0=Symbol(),_1=new WeakMap;let zb=class{constructor(t,i,r){if(this._$cssResult$=!0,r!==R0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(N0&&t===void 0){const r=i!==void 0&&i.length===1;r&&(t=_1.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&_1.set(i,t))}return t}toString(){return this.cssText}};const O_=e=>new zb(typeof e=="string"?e:e+"",void 0,R0),pe=(e,...t)=>{const i=e.length===1?e[0]:t.reduce((r,n,s)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[s+1],e[0]);return new zb(i,e,R0)},M_=(e,t)=>{if(N0)e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of t){const r=document.createElement("style"),n=Dc.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,e.appendChild(r)}},k1=N0?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(const r of t.cssRules)i+=r.cssText;return O_(i)})(e):e;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -44,9 +44,9 @@ * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Ma=globalThis,fd=Ma.trustedTypes,E1=fd?fd.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ub="$lit$",Tn=`lit$${Math.random().toFixed(9).slice(2)}$`,Kb="?"+Tn,q_=`<${Kb}>`,Hs=document,hl=()=>Hs.createComment(""),fl=e=>e===null||typeof e!="object"&&typeof e!="function",Wb=Array.isArray,j_=e=>Wb(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Cu=`[ + */const Ma=globalThis,fd=Ma.trustedTypes,E1=fd?fd.createPolicy("lit-html",{createHTML:e=>e}):void 0,Hb="$lit$",Tn=`lit$${Math.random().toFixed(9).slice(2)}$`,Ub="?"+Tn,q_=`<${Ub}>`,Hs=document,hl=()=>Hs.createComment(""),fl=e=>e===null||typeof e!="object"&&typeof e!="function",Kb=Array.isArray,j_=e=>Kb(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Cu=`[ \f\r]`,ga=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,x1=/-->/g,S1=/>/g,is=RegExp(`>|${Cu}(?:([^\\s"'>=/]+)(${Cu}*=${Cu}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),T1=/'/g,R1=/"/g,qb=/^(?:script|style|textarea|title)$/i,Y_=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),D=Y_(1),yi=Symbol.for("lit-noChange"),Ze=Symbol.for("lit-nothing"),N1=new WeakMap,us=Hs.createTreeWalker(Hs,129);function jb(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return E1!==void 0?E1.createHTML(t):t}const X_=(e,t)=>{const i=e.length-1,r=[];let n,s=t===2?"":"",o=ga;for(let a=0;a"?(o=n??ga,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?is:d[3]==='"'?R1:T1):o===R1||o===T1?o=is:o===x1||o===S1?o=ga:(o=is,n=void 0);const f=o===is&&e[a+1].startsWith("/>")?" ":"";s+=o===ga?l+q_:u>=0?(r.push(c),l.slice(0,u)+Ub+l.slice(u)+Tn+f):l+Tn+(u===-2?a:f)}return[jb(e,s+(e[i]||"")+(t===2?"":"")),r]};class pl{constructor({strings:t,_$litType$:i},r){let n;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,d]=X_(t,i);if(this.el=pl.createElement(c,r),us.currentNode=this.el.content,i===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=us.nextNode())!==null&&l.length0){n.textContent=fd?fd.emptyScript:"";for(let f=0;f2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ze}_$AI(t,i=this,r,n){const s=this.strings;let o=!1;if(s===void 0)t=Wo(this,t,i,0),o=!fl(t)||t!==this._$AH&&t!==yi,o&&(this._$AH=t);else{const a=t;let l,c;for(t=s[0],l=0;l{const r=(i==null?void 0:i.renderBefore)??t;let n=r._$litPart$;if(n===void 0){const s=(i==null?void 0:i.renderBefore)??null;r._$litPart$=n=new Ul(t.insertBefore(hl(),s),s,void 0,i??{})}return n._$AI(e),n};/** +\f\r"'\`<>=]|("|')|))|$)`,"g"),T1=/'/g,N1=/"/g,Wb=/^(?:script|style|textarea|title)$/i,Y_=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),D=Y_(1),yi=Symbol.for("lit-noChange"),Ze=Symbol.for("lit-nothing"),R1=new WeakMap,us=Hs.createTreeWalker(Hs,129);function qb(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return E1!==void 0?E1.createHTML(t):t}const X_=(e,t)=>{const i=e.length-1,r=[];let n,s=t===2?"":"",o=ga;for(let a=0;a"?(o=n??ga,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?is:d[3]==='"'?N1:T1):o===N1||o===T1?o=is:o===x1||o===S1?o=ga:(o=is,n=void 0);const f=o===is&&e[a+1].startsWith("/>")?" ":"";s+=o===ga?l+q_:u>=0?(r.push(c),l.slice(0,u)+Hb+l.slice(u)+Tn+f):l+Tn+(u===-2?a:f)}return[qb(e,s+(e[i]||"")+(t===2?"":"")),r]};class pl{constructor({strings:t,_$litType$:i},r){let n;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,d]=X_(t,i);if(this.el=pl.createElement(c,r),us.currentNode=this.el.content,i===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=us.nextNode())!==null&&l.length0){n.textContent=fd?fd.emptyScript:"";for(let f=0;f2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ze}_$AI(t,i=this,r,n){const s=this.strings;let o=!1;if(s===void 0)t=Wo(this,t,i,0),o=!fl(t)||t!==this._$AH&&t!==yi,o&&(this._$AH=t);else{const a=t;let l,c;for(t=s[0],l=0;l{const r=(i==null?void 0:i.renderBefore)??t;let n=r._$litPart$;if(n===void 0){const s=(i==null?void 0:i.renderBefore)??null;r._$litPart$=n=new Ul(t.insertBefore(hl(),s),s,void 0,i??{})}return n._$AI(e),n};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -82,7 +82,7 @@ * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Yb="important",s9=" !"+Yb,Ds=eo(class extends Kl{constructor(e){var t;if(super(e),e.type!==br.ATTRIBUTE||e.name!=="style"||((t=e.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,i)=>{const r=e[i];return r==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(e,[t]){const{style:i}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?i.removeProperty(r):i[r]=null);for(const r in t){const n=t[r];if(n!=null){this.ft.add(r);const s=typeof n=="string"&&n.endsWith(s9);r.includes("-")||s?i.setProperty(r,s?n.slice(0,-11):n,s?Yb:""):i[r]=n}}return yi}});class Ne extends ht{emit(t,i){const r=new CustomEvent(t,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},i));return this.dispatchEvent(r)}}class Ut{constructor(t,...i){this.slotNames=[],(this.host=t).addController(this),this.slotNames=i,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange),ud()||M(()=>{this.host.requestUpdate()})}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hasDefaultSlot(){return[...this.host.childNodes].some(t=>t.nodeType===t.TEXT_NODE&&t.textContent.trim()!==""||t.nodeType===t.ELEMENT_NODE&&!t.hasAttribute("slot"))}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}onSlotChange(t){const i=t.target;(this.slotNames.includes("[default]")&&!i.name||i.name&&this.slotNames.includes(i.name))&&this.host.requestUpdate()}}const Ke=D`${Ze}`,Ee=me` + */const jb="important",s9=" !"+jb,Ds=eo(class extends Kl{constructor(e){var t;if(super(e),e.type!==br.ATTRIBUTE||e.name!=="style"||((t=e.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,i)=>{const r=e[i];return r==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(e,[t]){const{style:i}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?i.removeProperty(r):i[r]=null);for(const r in t){const n=t[r];if(n!=null){this.ft.add(r);const s=typeof n=="string"&&n.endsWith(s9);r.includes("-")||s?i.setProperty(r,s?n.slice(0,-11):n,s?jb:""):i[r]=n}}return yi}});class Re extends ht{emit(t,i){const r=new CustomEvent(t,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},i));return this.dispatchEvent(r)}}class Ut{constructor(t,...i){this.slotNames=[],(this.host=t).addController(this),this.slotNames=i,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange),ud()||B(()=>{this.host.requestUpdate()})}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hasDefaultSlot(){return[...this.host.childNodes].some(t=>t.nodeType===t.TEXT_NODE&&t.textContent.trim()!==""||t.nodeType===t.ELEMENT_NODE&&!t.hasAttribute("slot"))}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}onSlotChange(t){const i=t.target;(this.slotNames.includes("[default]")&&!i.name||i.name&&this.slotNames.includes(i.name))&&this.host.requestUpdate()}}const Ke=D`${Ze}`,Ee=pe` :host { box-sizing: border-box; } @@ -108,15 +108,15 @@ * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class pf extends ff{}pf.directiveName="unsafeSVG",pf.resultType=2;const Xb=eo(pf);/** + */class pf extends ff{}pf.directiveName="unsafeSVG",pf.resultType=2;const Yb=eo(pf);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const o9=e=>e===null||typeof e!="object"&&typeof e!="function",Zb=e=>e.strings===void 0,a9={},l9=(e,t=a9)=>e._$AH=t;/** + */const o9=e=>e===null||typeof e!="object"&&typeof e!="function",Xb=e=>e.strings===void 0,a9={},l9=(e,t=a9)=>e._$AH=t;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Va=(e,t)=>{var r;const i=e._$AN;if(i===void 0)return!1;for(const n of i)(r=n._$AO)==null||r.call(n,t,!1),Va(n,t);return!0},pd=e=>{let t,i;do{if((t=e._$AM)===void 0)break;i=t._$AN,i.delete(e),e=t}while((i==null?void 0:i.size)===0)},Gb=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),u9(t)}};function c9(e){this._$AN!==void 0?(pd(this),this._$AM=e,Gb(this)):this._$AM=e}function d9(e,t=!1,i=0){const r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(r))for(let s=i;s{e.type==br.CHILD&&(e._$AP??(e._$AP=d9),e._$AQ??(e._$AQ=c9))};class $0 extends Kl{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,r){super._$AT(t,i,r),Gb(this),this.isConnected=t._$AU}_$AO(t,i=!0){var r,n;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(n=this.disconnected)==null||n.call(this)),i&&(Va(this,t),pd(this))}setValue(t){if(Zb(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/** + */const Va=(e,t)=>{var r;const i=e._$AN;if(i===void 0)return!1;for(const n of i)(r=n._$AO)==null||r.call(n,t,!1),Va(n,t);return!0},pd=e=>{let t,i;do{if((t=e._$AM)===void 0)break;i=t._$AN,i.delete(e),e=t}while((i==null?void 0:i.size)===0)},Zb=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),u9(t)}};function c9(e){this._$AN!==void 0?(pd(this),this._$AM=e,Zb(this)):this._$AM=e}function d9(e,t=!1,i=0){const r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(r))for(let s=i;s{e.type==br.CHILD&&(e._$AP??(e._$AP=d9),e._$AQ??(e._$AQ=c9))};class $0 extends Kl{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,r){super._$AT(t,i,r),Zb(this),this.isConnected=t._$AU}_$AO(t,i=!0){var r,n;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(n=this.disconnected)==null||n.call(this)),i&&(Va(this,t),pd(this))}setValue(t){if(Xb(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -124,11 +124,11 @@ * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const I1=e=>!o9(e)&&typeof e.then=="function",$1=1073741823;class p9 extends $0{constructor(){super(...arguments),this._$Cwt=$1,this._$Cbt=[],this._$CK=new h9(this),this._$CX=new f9}render(...t){return t.find(i=>!I1(i))??yi}update(t,i){const r=this._$Cbt;let n=r.length;this._$Cbt=i;const s=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let a=0;athis._$Cwt);a++){const l=i[a];if(!I1(l))return this._$Cwt=a,l;a{for(;o.get();)await o.get();const d=s.deref();if(d!==void 0){const u=d._$Cbt.indexOf(l);u>-1&&u{if(this.name){const[i,r]=this.name.split("--");return D`${i}`}return this.src?D`${m9(zb({url:this.src}).then(Xb))}`:D``};return this.hasSlotController.test("[default]")?D``:t()}};ml.styles=[Ee,g9];v([R({reflect:!0})],ml.prototype,"name",void 0);v([R({reflect:!0})],ml.prototype,"src",void 0);ml=v([se("mdui-icon")],ml);const v9=me`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;vertical-align:middle;border-radius:var(--shape-corner);-webkit-user-select:none;user-select:none;width:2.5rem;height:2.5rem;background-color:rgb(var(--mdui-color-primary-container));color:rgb(var(--mdui-color-on-primary-container));font-size:var(--mdui-typescale-title-medium-size);font-weight:var(--mdui-typescale-title-medium-weight);letter-spacing:var(--mdui-typescale-title-medium-tracking);line-height:var(--mdui-typescale-title-medium-line-height)}img{width:100%;height:100%}::slotted(mdui-icon),mdui-icon{font-size:1.5em}`;let Us=class extends Ne{constructor(){super(...arguments),this.hasSlotController=new Ut(this,"[default]")}render(){return this.hasSlotController.test("[default]")?D``:this.src?D`${_e(this.label)}`:this.icon?D``:Ke}};Us.styles=[Ee,v9];v([R({reflect:!0})],Us.prototype,"src",void 0);v([R({reflect:!0})],Us.prototype,"fit",void 0);v([R({reflect:!0})],Us.prototype,"icon",void 0);v([R({reflect:!0})],Us.prototype,"label",void 0);Us=v([se("mdui-avatar")],Us);const y9=me`:host{--shape-corner:var(--mdui-shape-corner-full);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--shape-corner);padding-left:.25rem;padding-right:.25rem;color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error));height:1rem;min-width:1rem;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height)}:host([variant=small]){min-width:0;padding:0;width:.375rem;height:.375rem}`;let md=class extends Ne{constructor(){super(...arguments),this.variant="large"}render(){return this.variant==="small"?Ke:D``}};md.styles=[Ee,y9];v([R({reflect:!0})],md.prototype,"variant",void 0);md=v([se("mdui-badge")],md);const Y=e=>e!==null&&e!=="false";class Qt{constructor(t,i){this.defined=!1,(this.host=t).addController(this),this.relatedElements=i.relatedElements,this.needDomReady=i.needDomReady||!!i.relatedElements,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}isDefined(){return this.defined?!0:(this.defined=(!this.needDomReady||ud())&&!this.getUndefinedLocalNames().length,this.defined)}async whenDefined(){if(this.defined)return Promise.resolve();const t=wi();this.needDomReady&&!ud(t)&&await new Promise(r=>{t.addEventListener("DOMContentLoaded",()=>r(),{once:!0})});const i=this.getUndefinedLocalNames();if(i.length){const r=[];i.forEach(n=>{r.push(customElements.whenDefined(n))}),await Promise.all(r)}this.defined=!0}getScopeLocalNameSelector(){const t=this.relatedElements;return t?Array.isArray(t)?t.map(i=>`${i}:not(:defined)`).join(","):Object.keys(t).filter(i=>!t[i]).map(i=>`${i}:not(:defined)`).join(","):null}getGlobalLocalNameSelector(){const t=this.relatedElements;return!t||Array.isArray(t)?null:Object.keys(t).filter(i=>t[i]).map(i=>`${i}:not(:defined)`).join(",")}getUndefinedLocalNames(){const t=this.getScopeLocalNameSelector(),i=this.getGlobalLocalNameSelector(),r=t?[...this.host.querySelectorAll(t)]:[],n=i?[...wi().querySelectorAll(i)]:[],s=[...r,...n].map(o=>o.localName);return na(s)}onSlotChange(){const t=this.getScopeLocalNameSelector();t&&this.host.querySelectorAll(t).length&&(this.defined=!1)}}function re(e,t=!1){return(i,r)=>{const{update:n}=i;e in i&&(i.update=function(s){if(s.has(e)){const o=s.get(e),a=this[e];o!==a&&(!t||this.hasUpdated)&&this[r](o,a)}n.call(this,s)})}}const P0=e=>{class t extends e{constructor(...r){super(...r),this.scrollBehaviorDefinedController=new Qt(this,{needDomReady:!0}),this.lastScrollTopThreshold=0,this.lastScrollTopNoThreshold=0,this.isParentLayout=!1,this.onListeningScroll=this.onListeningScroll.bind(this)}get scrollPaddingPosition(){throw new Error("Must implement scrollPaddingPosition getter")}async onScrollTargetChange(r,n){if(await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding(),!this.scrollBehavior)return;const s=this.getListening(r);s&&s.removeEventListener("scroll",this.onListeningScroll);const o=this.getListening(n);o&&(this.updateScrollTop(o),o.addEventListener("scroll",this.onListeningScroll))}async onScrollBehaviorChange(r,n){await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding();const s=this.getListening(this.scrollTarget);s&&(this.scrollBehavior?(this.updateScrollTop(s),s.addEventListener("scroll",this.onListeningScroll)):s.removeEventListener("scroll",this.onListeningScroll))}connectedCallback(){super.connectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.isParentLayout=zl(this.parentElement,"mdui-layout"),this.updateContainerPadding()})}disconnectedCallback(){super.disconnectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.updateContainerPadding(!1)})}hasScrollBehavior(r){var s;const n=((s=this.scrollBehavior)==null?void 0:s.split(" "))??[];return Array.isArray(r)?!!n.filter(o=>r.includes(o)).length:n.includes(r)}runScrollThreshold(r,n){}runScrollNoThreshold(r,n){}updateContainerPadding(r=!0){const n=this.getContainer(this.scrollTarget);if(!n||this.isParentLayout)return;const s=this.scrollPaddingPosition==="top"?"paddingTop":"paddingBottom";if(r){const o=this.getListening(this.scrollTarget)&&["fixed","absolute"].includes(M(this).css("position"))?this.offsetHeight:null;M(n).css({[s]:o})}else M(n).css({[s]:null})}onListeningScroll(){const r=this.getListening(this.scrollTarget);window.requestAnimationFrame(()=>this.onScroll(r))}onScroll(r){const n=r.scrollY??r.scrollTop;this.lastScrollTopNoThreshold!==n&&(this.runScrollNoThreshold(n(this.scrollThreshold||0)&&(this.runScrollThreshold(n++b9;let _n,xu;const to=(e,t)=>{const i=M(e),r=Xn(),n={unobserve:()=>{i.each((s,o)=>{const a=_n.get(o),l=a.coArr.findIndex(c=>c.key===r);l!==-1&&a.coArr.splice(l,1),a.coArr.length?_n.set(o,a):(xu.unobserve(o),_n.delete(o))})}};return _n||(_n=new WeakMap,xu=new ResizeObserver(s=>{s.forEach(o=>{const a=o.target,l=_n.get(a);l.entry=o,l.coArr.forEach(c=>{c.callback.call(n,o,n)})})})),i.each((s,o)=>{const a=_n.get(o)??{coArr:[]};a.coArr.length&&a.entry&&t.call(n,a.entry,n),a.coArr.push({callback:t,key:r}),_n.set(o,a),xu.observe(o)}),n};class w9{constructor(){this.states=[]}registerMain(t){this.$main=M(t)}unregisterMain(){this.$main=void 0}registerItem(t){const i={element:t};this.states.push(i),i.observeResize=to(i.element,()=>{this.updateLayout(i.element,{width:this.isNoWidth(i)?0:void 0})}),this.items=void 0,this.resort(),this.updateLayout()}unregisterItem(t){var n;const i=this.states.findIndex(s=>s.element===t);if(i<0)return;(n=this.states[i].observeResize)==null||n.unobserve(),this.items=void 0,this.states.splice(i,1),this.states[i]&&this.updateLayout(this.states[i].element)}getItems(){if(!this.items){const t=this.states.map(i=>i.element);this.items=t.sort((i,r)=>{const n=i.compareDocumentPosition(r);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0})}return this.items}getMain(){return this.$main?this.$main[0]:void 0}getItemsAndMain(){return[...this.getItems(),this.getMain()].filter(t=>t)}updateOrder(){this.resort(),this.updateLayout()}updateLayout(t,i){const r=t?{element:t,width:i==null?void 0:i.width,height:i==null?void 0:i.height}:void 0,n=r?this.states.findIndex(o=>o.element===r.element):0;if(n<0)return;Object.assign(this.states[n],r),this.states.forEach((o,a)=>{if(a0?this.states[a-1]:void 0,d=(c==null?void 0:c.top)??0,u=(c==null?void 0:c.right)??0,h=(c==null?void 0:c.bottom)??0,f=(c==null?void 0:c.left)??0;switch(Object.assign(o,{top:d,right:u,bottom:h,left:f}),l){case"top":case"bottom":o[l]+=o.height??o.element.offsetHeight;break;case"right":case"left":o[l]+=(this.isNoWidth(o)?0:o.width)??o.element.offsetWidth;break}o.height=o.width=void 0,M(o.element).css({position:"absolute",top:l==="bottom"?null:d,right:l==="left"?null:u,bottom:l==="top"?null:h,left:l==="right"?null:f})});const s=this.states[this.states.length-1];this.$main&&this.$main.css({paddingTop:s.top,paddingRight:s.right,paddingBottom:s.bottom,paddingLeft:s.left})}resort(){const t=this.getItems();this.states.sort((i,r)=>{const n=i.element.order??0,s=r.element.order??0;return n>s?1:nt.indexOf(r.element)?1:t.indexOf(i.element)(Su.has(e)||Su.set(e,new w9),Su.get(e));class Zn extends Ne{constructor(){super(...arguments),this.isParentLayout=!1}get layoutPlacement(){throw new Error("Must implement placement getter!")}onOrderChange(){var t;(t=this.layoutManager)==null||t.updateOrder()}connectedCallback(){super.connectedCallback();const t=this.parentElement;this.isParentLayout=zl(t,"mdui-layout"),this.isParentLayout&&(this.layoutManager=Qb(t),this.layoutManager.registerItem(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterItem(this)}}v([R({type:Number,reflect:!0})],Zn.prototype,"order",void 0);v([re("order",!0)],Zn.prototype,"onOrderChange",null);const _9=me`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-emphasized);padding:0 1rem;height:5rem;background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);bottom:-5.625rem}::slotted(:not(:first-child)){margin-left:.5rem}::slotted(mdui-fab){box-shadow:var(--mdui-elevation-level0)}:host([fab-detach]) ::slotted(mdui-fab){position:absolute;transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard);right:1rem;bottom:.75rem}:host([fab-detach][hide][scroll-behavior~=hide]) ::slotted(mdui-fab){transition-duration:var(--mdui-motion-duration-short4);bottom:1rem;box-shadow:var(--mdui-elevation-level2)}:host([fab-detach][hide][scroll-behavior~=hide][scroll-target]:not([scroll-target=''])) ::slotted(mdui-fab){bottom:6.625rem}:host([hide]) ::slotted(:not(mdui-fab)),:host([hide]:not([fab-detach])) ::slotted(mdui-fab){transform:translateY(8.75rem);transition:transform var(--mdui-motion-duration-0) var(--mdui-motion-easing-emphasized-accelerate) var(--mdui-motion-duration-short4)}::slotted(:first-child){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short1)}::slotted(:nth-child(2)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short3)}::slotted(:nth-child(3)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short4)}::slotted(:nth-child(4)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium1)}::slotted(:nth-child(5)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium2)}::slotted(:nth-child(6)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium3)}`;let qo=class extends P0(Zn){constructor(){super(...arguments),this.hide=!1,this.fabDetach=!1}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return D``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}};qo.styles=[Ee,_9];v([R({type:Boolean,reflect:!0,converter:Y})],qo.prototype,"hide",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"fab-detach"})],qo.prototype,"fabDetach",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],qo.prototype,"scrollBehavior",void 0);qo=v([se("mdui-bottom-app-bar")],qo);/** + */const I1=e=>!o9(e)&&typeof e.then=="function",$1=1073741823;class p9 extends $0{constructor(){super(...arguments),this._$Cwt=$1,this._$Cbt=[],this._$CK=new h9(this),this._$CX=new f9}render(...t){return t.find(i=>!I1(i))??yi}update(t,i){const r=this._$Cbt;let n=r.length;this._$Cbt=i;const s=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let a=0;athis._$Cwt);a++){const l=i[a];if(!I1(l))return this._$Cwt=a,l;a{for(;o.get();)await o.get();const d=s.deref();if(d!==void 0){const u=d._$Cbt.indexOf(l);u>-1&&u{if(this.name){const[i,r]=this.name.split("--");return D`${i}`}return this.src?D`${m9(Fb({url:this.src}).then(Yb))}`:D``};return this.hasSlotController.test("[default]")?D``:t()}};ml.styles=[Ee,g9];v([R({reflect:!0})],ml.prototype,"name",void 0);v([R({reflect:!0})],ml.prototype,"src",void 0);ml=v([se("mdui-icon")],ml);const v9=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;vertical-align:middle;border-radius:var(--shape-corner);-webkit-user-select:none;user-select:none;width:2.5rem;height:2.5rem;background-color:rgb(var(--mdui-color-primary-container));color:rgb(var(--mdui-color-on-primary-container));font-size:var(--mdui-typescale-title-medium-size);font-weight:var(--mdui-typescale-title-medium-weight);letter-spacing:var(--mdui-typescale-title-medium-tracking);line-height:var(--mdui-typescale-title-medium-line-height)}img{width:100%;height:100%}::slotted(mdui-icon),mdui-icon{font-size:1.5em}`;let Us=class extends Re{constructor(){super(...arguments),this.hasSlotController=new Ut(this,"[default]")}render(){return this.hasSlotController.test("[default]")?D``:this.src?D`${_e(this.label)}`:this.icon?D``:Ke}};Us.styles=[Ee,v9];v([R({reflect:!0})],Us.prototype,"src",void 0);v([R({reflect:!0})],Us.prototype,"fit",void 0);v([R({reflect:!0})],Us.prototype,"icon",void 0);v([R({reflect:!0})],Us.prototype,"label",void 0);Us=v([se("mdui-avatar")],Us);const y9=pe`:host{--shape-corner:var(--mdui-shape-corner-full);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--shape-corner);padding-left:.25rem;padding-right:.25rem;color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error));height:1rem;min-width:1rem;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height)}:host([variant=small]){min-width:0;padding:0;width:.375rem;height:.375rem}`;let md=class extends Re{constructor(){super(...arguments),this.variant="large"}render(){return this.variant==="small"?Ke:D``}};md.styles=[Ee,y9];v([R({reflect:!0})],md.prototype,"variant",void 0);md=v([se("mdui-badge")],md);const Y=e=>e!==null&&e!=="false";class Qt{constructor(t,i){this.defined=!1,(this.host=t).addController(this),this.relatedElements=i.relatedElements,this.needDomReady=i.needDomReady||!!i.relatedElements,this.onSlotChange=this.onSlotChange.bind(this)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.onSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.onSlotChange)}isDefined(){return this.defined?!0:(this.defined=(!this.needDomReady||ud())&&!this.getUndefinedLocalNames().length,this.defined)}async whenDefined(){if(this.defined)return Promise.resolve();const t=wi();this.needDomReady&&!ud(t)&&await new Promise(r=>{t.addEventListener("DOMContentLoaded",()=>r(),{once:!0})});const i=this.getUndefinedLocalNames();if(i.length){const r=[];i.forEach(n=>{r.push(customElements.whenDefined(n))}),await Promise.all(r)}this.defined=!0}getScopeLocalNameSelector(){const t=this.relatedElements;return t?Array.isArray(t)?t.map(i=>`${i}:not(:defined)`).join(","):Object.keys(t).filter(i=>!t[i]).map(i=>`${i}:not(:defined)`).join(","):null}getGlobalLocalNameSelector(){const t=this.relatedElements;return!t||Array.isArray(t)?null:Object.keys(t).filter(i=>t[i]).map(i=>`${i}:not(:defined)`).join(",")}getUndefinedLocalNames(){const t=this.getScopeLocalNameSelector(),i=this.getGlobalLocalNameSelector(),r=t?[...this.host.querySelectorAll(t)]:[],n=i?[...wi().querySelectorAll(i)]:[],s=[...r,...n].map(o=>o.localName);return na(s)}onSlotChange(){const t=this.getScopeLocalNameSelector();t&&this.host.querySelectorAll(t).length&&(this.defined=!1)}}function re(e,t=!1){return(i,r)=>{const{update:n}=i;e in i&&(i.update=function(s){if(s.has(e)){const o=s.get(e),a=this[e];o!==a&&(!t||this.hasUpdated)&&this[r](o,a)}n.call(this,s)})}}const P0=e=>{class t extends e{constructor(...r){super(...r),this.scrollBehaviorDefinedController=new Qt(this,{needDomReady:!0}),this.lastScrollTopThreshold=0,this.lastScrollTopNoThreshold=0,this.isParentLayout=!1,this.onListeningScroll=this.onListeningScroll.bind(this)}get scrollPaddingPosition(){throw new Error("Must implement scrollPaddingPosition getter")}async onScrollTargetChange(r,n){if(await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding(),!this.scrollBehavior)return;const s=this.getListening(r);s&&s.removeEventListener("scroll",this.onListeningScroll);const o=this.getListening(n);o&&(this.updateScrollTop(o),o.addEventListener("scroll",this.onListeningScroll))}async onScrollBehaviorChange(r,n){await this.scrollBehaviorDefinedController.whenDefined(),(r&&!n||!r&&n)&&this.updateContainerPadding();const s=this.getListening(this.scrollTarget);s&&(this.scrollBehavior?(this.updateScrollTop(s),s.addEventListener("scroll",this.onListeningScroll)):s.removeEventListener("scroll",this.onListeningScroll))}connectedCallback(){super.connectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.isParentLayout=zl(this.parentElement,"mdui-layout"),this.updateContainerPadding()})}disconnectedCallback(){super.disconnectedCallback(),this.scrollBehaviorDefinedController.whenDefined().then(()=>{this.updateContainerPadding(!1)})}hasScrollBehavior(r){var s;const n=((s=this.scrollBehavior)==null?void 0:s.split(" "))??[];return Array.isArray(r)?!!n.filter(o=>r.includes(o)).length:n.includes(r)}runScrollThreshold(r,n){}runScrollNoThreshold(r,n){}updateContainerPadding(r=!0){const n=this.getContainer(this.scrollTarget);if(!n||this.isParentLayout)return;const s=this.scrollPaddingPosition==="top"?"paddingTop":"paddingBottom";if(r){const o=this.getListening(this.scrollTarget)&&["fixed","absolute"].includes(B(this).css("position"))?this.offsetHeight:null;B(n).css({[s]:o})}else B(n).css({[s]:null})}onListeningScroll(){const r=this.getListening(this.scrollTarget);window.requestAnimationFrame(()=>this.onScroll(r))}onScroll(r){const n=r.scrollY??r.scrollTop;this.lastScrollTopNoThreshold!==n&&(this.runScrollNoThreshold(n(this.scrollThreshold||0)&&(this.runScrollThreshold(n++b9;let _n,xu;const to=(e,t)=>{const i=B(e),r=Xn(),n={unobserve:()=>{i.each((s,o)=>{const a=_n.get(o),l=a.coArr.findIndex(c=>c.key===r);l!==-1&&a.coArr.splice(l,1),a.coArr.length?_n.set(o,a):(xu.unobserve(o),_n.delete(o))})}};return _n||(_n=new WeakMap,xu=new ResizeObserver(s=>{s.forEach(o=>{const a=o.target,l=_n.get(a);l.entry=o,l.coArr.forEach(c=>{c.callback.call(n,o,n)})})})),i.each((s,o)=>{const a=_n.get(o)??{coArr:[]};a.coArr.length&&a.entry&&t.call(n,a.entry,n),a.coArr.push({callback:t,key:r}),_n.set(o,a),xu.observe(o)}),n};class w9{constructor(){this.states=[]}registerMain(t){this.$main=B(t)}unregisterMain(){this.$main=void 0}registerItem(t){const i={element:t};this.states.push(i),i.observeResize=to(i.element,()=>{this.updateLayout(i.element,{width:this.isNoWidth(i)?0:void 0})}),this.items=void 0,this.resort(),this.updateLayout()}unregisterItem(t){var n;const i=this.states.findIndex(s=>s.element===t);if(i<0)return;(n=this.states[i].observeResize)==null||n.unobserve(),this.items=void 0,this.states.splice(i,1),this.states[i]&&this.updateLayout(this.states[i].element)}getItems(){if(!this.items){const t=this.states.map(i=>i.element);this.items=t.sort((i,r)=>{const n=i.compareDocumentPosition(r);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0})}return this.items}getMain(){return this.$main?this.$main[0]:void 0}getItemsAndMain(){return[...this.getItems(),this.getMain()].filter(t=>t)}updateOrder(){this.resort(),this.updateLayout()}updateLayout(t,i){const r=t?{element:t,width:i==null?void 0:i.width,height:i==null?void 0:i.height}:void 0,n=r?this.states.findIndex(o=>o.element===r.element):0;if(n<0)return;Object.assign(this.states[n],r),this.states.forEach((o,a)=>{if(a0?this.states[a-1]:void 0,d=(c==null?void 0:c.top)??0,u=(c==null?void 0:c.right)??0,h=(c==null?void 0:c.bottom)??0,f=(c==null?void 0:c.left)??0;switch(Object.assign(o,{top:d,right:u,bottom:h,left:f}),l){case"top":case"bottom":o[l]+=o.height??o.element.offsetHeight;break;case"right":case"left":o[l]+=(this.isNoWidth(o)?0:o.width)??o.element.offsetWidth;break}o.height=o.width=void 0,B(o.element).css({position:"absolute",top:l==="bottom"?null:d,right:l==="left"?null:u,bottom:l==="top"?null:h,left:l==="right"?null:f})});const s=this.states[this.states.length-1];this.$main&&this.$main.css({paddingTop:s.top,paddingRight:s.right,paddingBottom:s.bottom,paddingLeft:s.left})}resort(){const t=this.getItems();this.states.sort((i,r)=>{const n=i.element.order??0,s=r.element.order??0;return n>s?1:nt.indexOf(r.element)?1:t.indexOf(i.element)(Su.has(e)||Su.set(e,new w9),Su.get(e));class Zn extends Re{constructor(){super(...arguments),this.isParentLayout=!1}get layoutPlacement(){throw new Error("Must implement placement getter!")}onOrderChange(){var t;(t=this.layoutManager)==null||t.updateOrder()}connectedCallback(){super.connectedCallback();const t=this.parentElement;this.isParentLayout=zl(t,"mdui-layout"),this.isParentLayout&&(this.layoutManager=Gb(t),this.layoutManager.registerItem(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterItem(this)}}v([R({type:Number,reflect:!0})],Zn.prototype,"order",void 0);v([re("order",!0)],Zn.prototype,"onOrderChange",null);const _9=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-emphasized);padding:0 1rem;height:5rem;background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);bottom:-5.625rem}::slotted(:not(:first-child)){margin-left:.5rem}::slotted(mdui-fab){box-shadow:var(--mdui-elevation-level0)}:host([fab-detach]) ::slotted(mdui-fab){position:absolute;transition:bottom var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard);right:1rem;bottom:.75rem}:host([fab-detach][hide][scroll-behavior~=hide]) ::slotted(mdui-fab){transition-duration:var(--mdui-motion-duration-short4);bottom:1rem;box-shadow:var(--mdui-elevation-level2)}:host([fab-detach][hide][scroll-behavior~=hide][scroll-target]:not([scroll-target=''])) ::slotted(mdui-fab){bottom:6.625rem}:host([hide]) ::slotted(:not(mdui-fab)),:host([hide]:not([fab-detach])) ::slotted(mdui-fab){transform:translateY(8.75rem);transition:transform var(--mdui-motion-duration-0) var(--mdui-motion-easing-emphasized-accelerate) var(--mdui-motion-duration-short4)}::slotted(:first-child){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short1)}::slotted(:nth-child(2)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short3)}::slotted(:nth-child(3)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-short4)}::slotted(:nth-child(4)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium1)}::slotted(:nth-child(5)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium2)}::slotted(:nth-child(6)){transition:transform var(--mdui-motion-duration-short3) var(--mdui-motion-easing-emphasized-decelerate) var(--mdui-motion-duration-medium3)}`;let qo=class extends P0(Zn){constructor(){super(...arguments),this.hide=!1,this.fabDetach=!1}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return D``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}};qo.styles=[Ee,_9];v([R({type:Boolean,reflect:!0,converter:Y})],qo.prototype,"hide",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"fab-detach"})],qo.prototype,"fabDetach",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],qo.prototype,"scrollBehavior",void 0);qo=v([se("mdui-bottom-app-bar")],qo);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const be=()=>new k9;class k9{}const Tu=new WeakMap,he=eo(class extends $0{render(e){return Ze}update(e,[t]){var r;const i=t!==this.Y;return i&&this.Y!==void 0&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=e.options)==null?void 0:r.host,this.rt(this.ct=e.element)),Ze}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let i=Tu.get(t);i===void 0&&(i=new WeakMap,Tu.set(t,i)),i.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),i.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){var e,t;return typeof this.Y=="function"?(e=Tu.get(this.ht??globalThis))==null?void 0:e.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});function Or(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let i=0,r;i{const n=M(r).attr("form");return n?r.getRootNode().getElementById(n):r.closest("form")},name:r=>r.name,value:r=>r.value,defaultValue:r=>r.defaultValue,setValue:(r,n)=>r.value=n,disabled:r=>r.disabled,reportValidity:r=>Ct(r.reportValidity)?r.reportValidity():!0,...i},this.onFormData=this.onFormData.bind(this),this.onFormSubmit=this.onFormSubmit.bind(this),this.onFormReset=this.onFormReset.bind(this),this.reportFormValidity=this.reportFormValidity.bind(this)}hostConnected(){this.definedController.whenDefined().then(()=>{this.form=this.options.form(this.host),this.form&&this.attachForm(this.form)})}hostDisconnected(){this.detachForm()}hostUpdated(){this.definedController.whenDefined().then(()=>{const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t))})}getForm(){return this.form??null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}attachForm(t){if(!t){this.form=void 0;return}this.form=t,vo.has(this.form)?vo.get(this.form).add(this.host):vo.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.onFormData),this.form.addEventListener("submit",this.onFormSubmit),this.form.addEventListener("reset",this.onFormReset),va.has(this.form)||(va.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())}detachForm(){this.form&&(vo.get(this.form).delete(this.host),this.form.removeEventListener("formdata",this.onFormData),this.form.removeEventListener("submit",this.onFormSubmit),this.form.removeEventListener("reset",this.onFormReset),va.has(this.form)&&!vo.get(this.form).size&&(this.form.reportValidity=va.get(this.form),va.delete(this.form)))}doAction(t,i){if(!this.form)return;const r=M(``}isButton(){return!this.href}}ft.styles=[Ee,E9];v([R({type:Boolean,reflect:!0,converter:Y})],ft.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ft.prototype,"loading",void 0);v([R({reflect:!0})],ft.prototype,"name",void 0);v([R({reflect:!0})],ft.prototype,"value",void 0);v([R({reflect:!0})],ft.prototype,"type",void 0);v([R({reflect:!0})],ft.prototype,"form",void 0);v([R({reflect:!0,attribute:"formaction"})],ft.prototype,"formAction",void 0);v([R({reflect:!0,attribute:"formenctype"})],ft.prototype,"formEnctype",void 0);v([R({reflect:!0,attribute:"formmethod"})],ft.prototype,"formMethod",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"formnovalidate"})],ft.prototype,"formNoValidate",void 0);v([R({reflect:!0,attribute:"formtarget"})],ft.prototype,"formTarget",void 0);const x9=me`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);min-width:3rem;height:2.5rem;color:rgb(var(--mdui-color-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{width:100%;padding:0 1rem}:host([full-width]){display:block}:host([variant=elevated]){box-shadow:var(--mdui-elevation-level1);background-color:rgb(var(--mdui-color-surface-container-low));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + */const kt=eo(class extends Kl{constructor(e){var t;if(super(e),e.type!==br.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var r,n;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(t)}const i=e.element.classList;for(const s of this.st)s in t||(i.remove(s),this.st.delete(s));for(const s in t){const o=!!t[s];o===this.st.has(s)||(n=this.nt)!=null&&n.has(s)||(o?(i.add(s),this.st.add(s)):(i.remove(s),this.st.delete(s)))}return yi}}),C9=pe`:host{position:relative;display:inline-block;width:2.5rem;height:2.5rem;stroke:rgb(var(--mdui-color-primary))}.progress{position:relative;display:inline-block;width:100%;height:100%;text-align:left;transition:opacity var(--mdui-motion-duration-medium1) var(--mdui-motion-easing-linear)}.determinate svg{transform:rotate(-90deg);fill:transparent}.determinate .track{stroke:transparent}.determinate .circle{stroke:inherit;transition:stroke-dashoffset var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate{font-size:0;letter-spacing:0;white-space:nowrap;animation:mdui-comp-circular-progress-rotate 1568ms var(--mdui-motion-easing-linear) infinite}.indeterminate .circle,.indeterminate .layer{position:absolute;width:100%;height:100%}.indeterminate .layer{animation:mdui-comp-circular-progress-layer-rotate 5332ms var(--mdui-motion-easing-standard) infinite both}.indeterminate .circle{fill:transparent;stroke:inherit}.indeterminate .gap-patch{position:absolute;top:0;left:47.5%;width:5%;height:100%;overflow:hidden}.indeterminate .gap-patch .circle{left:-900%;width:2000%;transform:rotate(180deg)}.indeterminate .clipper{position:relative;display:inline-block;width:50%;height:100%;overflow:hidden}.indeterminate .clipper .circle{width:200%}.indeterminate .clipper.left .circle{animation:mdui-comp-circular-progress-left-spin 1333ms var(--mdui-motion-easing-standard) infinite both}.indeterminate .clipper.right .circle{left:-100%;animation:mdui-comp-circular-progress-right-spin 1333ms var(--mdui-motion-easing-standard) infinite both}@keyframes mdui-comp-circular-progress-rotate{to{transform:rotate(360deg)}}@keyframes mdui-comp-circular-progress-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdui-comp-circular-progress-left-spin{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes mdui-comp-circular-progress-right-spin{0%{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}100%{transform:rotate(-265deg)}}`;let gl=class extends Re{constructor(){super(...arguments),this.max=1}render(){const t=!ot(this.value);return D`
${t?this.renderDeterminate():this.renderInDeterminate()}
`}renderDeterminate(){const t=this.value,i=4,r=18,n=3.1415926,s=r+i/2,o=2*n*r,a=(1-t/Math.max(this.max??t,t))*o;return D``}renderInDeterminate(){const r=3.1415926,n=18+4/2,s=2*r*18,o=.5*s,a=l=>D``;return D`
${a(4)}
${a(4*.8)}
${a(4)}
`}};gl.styles=[Ee,C9];v([R({type:Number,reflect:!0})],gl.prototype,"max",void 0);v([R({type:Number})],gl.prototype,"value",void 0);gl=v([se("mdui-circular-progress")],gl);const A9=pe`:host{position:absolute;top:0;left:0;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}.surface{position:absolute;top:0;left:0;width:100%;height:100%;transition-duration:280ms;transition-property:background-color;pointer-events:none;transition-timing-function:var(--mdui-motion-easing-standard)}.hover{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-hover))}:host-context([focus-visible]) .focused{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-focus))}.dragged{background-color:rgba(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)),var(--mdui-state-layer-dragged))}.wave{position:absolute;z-index:1;background-color:rgb(var(--mdui-comp-ripple-state-layer-color,var(--mdui-color-on-surface)));border-radius:50%;transform:translate3d(0,0,0) scale(.4);opacity:0;animation:225ms ease 0s 1 normal forwards running mdui-comp-ripple-radius-in,75ms ease 0s 1 normal forwards running mdui-comp-ripple-opacity-in;pointer-events:none}.out{transform:translate3d(var(--mdui-comp-ripple-transition-x,0),var(--mdui-comp-ripple-transition-y,0),0) scale(1);animation:150ms ease 0s 1 normal none running mdui-comp-ripple-opacity-out}@keyframes mdui-comp-ripple-radius-in{from{transform:translate3d(0,0,0) scale(.4);animation-timing-function:var(--mdui-motion-easing-standard)}to{transform:translate3d(var(--mdui-comp-ripple-transition-x,0),var(--mdui-comp-ripple-transition-y,0),0) scale(1)}}@keyframes mdui-comp-ripple-opacity-in{from{opacity:0;animation-timing-function:linear}to{opacity:var(--mdui-state-layer-pressed)}}@keyframes mdui-comp-ripple-opacity-out{from{animation-timing-function:linear;opacity:var(--mdui-state-layer-pressed)}to{opacity:0}}`;let Ks=class extends Re{constructor(){super(...arguments),this.noRipple=!1,this.hover=!1,this.focused=!1,this.dragged=!1,this.surfaceRef=be()}startPress(t){if(this.noRipple)return;const i=B(this.surfaceRef.value),r=i.innerHeight(),n=i.innerWidth();let s,o;if(!t)s=n/2,o=r/2;else{const u=typeof TouchEvent<"u"&&t instanceof TouchEvent&&t.touches.length?t.touches[0]:t,h=i.offset();if(u.pageXh.left+n||u.pageYh.top+r)return;s=u.pageX-h.left,o=u.pageY-h.top}const a=Math.max(Math.pow(Math.pow(r,2)+Math.pow(n,2),.5),48),l=`${-s+n/2}px`,c=`${-o+r/2}px`,d=`translate3d(${l}, ${c}, 0) scale(1)`;B('
').css({width:a,height:a,marginTop:-a/2,marginLeft:-a/2,left:s,top:o}).each((u,h)=>{h.style.setProperty("--mdui-comp-ripple-transition-x",l),h.style.setProperty("--mdui-comp-ripple-transition-y",c)}).prependTo(this.surfaceRef.value).each((u,h)=>h.clientLeft).css("transform",d).on("animationend",function(u){u.animationName==="mdui-comp-ripple-radius-in"&&B(this).data("filled",!0)})}endPress(){const t=B(this.surfaceRef.value).children().filter((r,n)=>!B(n).data("removing")).data("removing",!0),i=r=>{r.addClass("out").each((n,s)=>s.clientLeft).on("animationend",function(){B(this).remove()})};t.filter((r,n)=>!B(n).data("filled")).on("animationend",function(r){r.animationName==="mdui-comp-ripple-radius-in"&&i(B(this))}),i(t.filter((r,n)=>!!B(n).data("filled")))}startHover(){this.hover=!0}endHover(){this.hover=!1}startFocus(){this.focused=!0}endFocus(){this.focused=!1}startDrag(){this.dragged=!0}endDrag(){this.dragged=!1}render(){return D`
`}};Ks.styles=[Ee,A9];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"no-ripple"})],Ks.prototype,"noRipple",void 0);v([Ce()],Ks.prototype,"hover",void 0);v([Ce()],Ks.prototype,"focused",void 0);v([Ce()],Ks.prototype,"dragged",void 0);Ks=v([se("mdui-ripple")],Ks);const Er=e=>{class t extends e{constructor(){super(...arguments),this.noRipple=!1,this.rippleIndex=void 0,this.getRippleIndex=()=>this.rippleIndex}get rippleElement(){throw new Error("Must implement rippleElement getter!")}get rippleDisabled(){throw new Error("Must implement rippleDisabled getter!")}get rippleTarget(){return this}firstUpdated(r){super.firstUpdated(r);const n=B(this.rippleTarget),s=a=>{bo(this.rippleTarget)&&(this.rippleIndex=n.index(a.target))};(bo(this.rippleTarget)?this.rippleTarget:[this.rippleTarget]).forEach(a=>{a.addEventListener("pointerdown",l=>{s(l),this.startPress(l)}),a.addEventListener("pointerenter",l=>{s(l),this.startHover(l)}),a.addEventListener("pointerleave",l=>{s(l),this.endHover(l)}),a.addEventListener("focus",l=>{s(l),this.startFocus()}),a.addEventListener("blur",l=>{s(l),this.endFocus()})})}startHover(r){r.pointerType!=="mouse"||this.isRippleDisabled()||(this.getRippleTarget().setAttribute("hover",""),this.getRippleElement().startHover())}endHover(r){r.pointerType!=="mouse"||this.isRippleDisabled()||(this.getRippleTarget().removeAttribute("hover"),this.getRippleElement().endHover())}isRippleDisabled(){const r=this.rippleDisabled;if(!Array.isArray(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r.length?r[0]:!1}getRippleElement(){const r=this.rippleElement;if(!bo(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r[0]}getRippleTarget(){const r=this.rippleTarget;if(!bo(r))return r;const n=this.getRippleIndex();return n!==void 0?r[n]:r[0]}startFocus(){this.isRippleDisabled()||this.getRippleElement().startFocus()}endFocus(){this.isRippleDisabled()||this.getRippleElement().endFocus()}startPress(r){if(this.isRippleDisabled()||r.button)return;const n=this.getRippleTarget();if(n.setAttribute("pressed",""),["touch","pen"].includes(r.pointerType)){let s=!1,o=setTimeout(()=>{o=0,this.getRippleElement().startPress(r)},70);const a=()=>{o&&(clearTimeout(o),o=0,this.getRippleElement().startPress(r)),s||(s=!0,this.endPress()),n.removeEventListener("pointerup",a),n.removeEventListener("pointercancel",a)},l=()=>{o&&(clearTimeout(o),o=0),n.removeEventListener("touchmove",l)};n.addEventListener("touchmove",l),n.addEventListener("pointerup",a),n.addEventListener("pointercancel",a)}if(r.pointerType==="mouse"&&r.button===0){const s=()=>{this.endPress(),n.removeEventListener("pointerup",s),n.removeEventListener("pointercancel",s),n.removeEventListener("pointerleave",s)};this.getRippleElement().startPress(r),n.addEventListener("pointerup",s),n.addEventListener("pointercancel",s),n.addEventListener("pointerleave",s)}}endPress(){this.isRippleDisabled()||(this.getRippleTarget().removeAttribute("pressed"),this.getRippleElement().endPress())}startDrag(){this.isRippleDisabled()||this.getRippleElement().startDrag()}endDrag(){this.isRippleDisabled()||this.getRippleElement().endDrag()}}return v([R({type:Boolean,reflect:!0,converter:Y,attribute:"no-ripple"})],t.prototype,"noRipple",void 0),t},E9=pe`.button{position:relative;display:inline-flex;align-items:center;justify-content:center;height:100%;padding:0;overflow:hidden;color:inherit;font-size:inherit;font-family:inherit;font-weight:inherit;letter-spacing:inherit;white-space:nowrap;text-align:center;text-decoration:none;vertical-align:middle;background:0 0;border:none;outline:0;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}`;class ft extends sa(Er(er(Re))){constructor(){super(...arguments),this.disabled=!1,this.loading=!1,this.name="",this.value="",this.type="button",this.formNoValidate=!1,this.formController=new pn(this)}get validity(){if(this.isButton())return this.focusElement.validity}get validationMessage(){if(this.isButton())return this.focusElement.validationMessage}get rippleDisabled(){return this.disabled||this.loading}get focusElement(){var t,i;return this.isButton()?(t=this.renderRoot)==null?void 0:t.querySelector("._button"):this.focusDisabled?this:(i=this.renderRoot)==null?void 0:i.querySelector("._a")}get focusDisabled(){return this.disabled||this.loading}checkValidity(){if(this.isButton()){const t=this.focusElement.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}return!0}reportValidity(){if(this.isButton()){const t=!this.focusElement.reportValidity();return t&&this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),!t}return!0}setCustomValidity(t){this.isButton()&&this.focusElement.setCustomValidity(t)}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{this.type==="submit"&&this.formController.submit(this),this.type==="reset"&&this.formController.reset(this)})}renderLoading(){return this.loading?D``:Ke}renderButton({id:t,className:i,part:r,content:n=D``}){return D``}isButton(){return!this.href}}ft.styles=[Ee,E9];v([R({type:Boolean,reflect:!0,converter:Y})],ft.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ft.prototype,"loading",void 0);v([R({reflect:!0})],ft.prototype,"name",void 0);v([R({reflect:!0})],ft.prototype,"value",void 0);v([R({reflect:!0})],ft.prototype,"type",void 0);v([R({reflect:!0})],ft.prototype,"form",void 0);v([R({reflect:!0,attribute:"formaction"})],ft.prototype,"formAction",void 0);v([R({reflect:!0,attribute:"formenctype"})],ft.prototype,"formEnctype",void 0);v([R({reflect:!0,attribute:"formmethod"})],ft.prototype,"formMethod",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"formnovalidate"})],ft.prototype,"formNoValidate",void 0);v([R({reflect:!0,attribute:"formtarget"})],ft.prototype,"formTarget",void 0);const x9=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);min-width:3rem;height:2.5rem;color:rgb(var(--mdui-color-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{width:100%;padding:0 1rem}:host([full-width]){display:block}:host([variant=elevated]){box-shadow:var(--mdui-elevation-level1);background-color:rgb(var(--mdui-color-surface-container-low));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=text]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=outlined][focus-visible]){border-color:rgb(var(--mdui-color-primary))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=tonal][hover]){box-shadow:var(--mdui-elevation-level1)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([variant=elevated][disabled]),:host([variant=filled][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([variant=outlined][disabled]){border-color:rgba(var(--mdui-color-on-surface),12%)}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon{display:inline-flex;font-size:1.28571429em}.end-icon mdui-icon,.icon mdui-icon,::slotted([slot=end-icon]),::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([variant=filled]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([variant=tonal]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let Ws=class extends ft{constructor(){super(...arguments),this.variant="filled",this.fullWidth=!1,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}render(){return D`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderInner()}):this.disabled||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:"button",part:"button",content:this.renderInner()})}`}renderIcon(){return this.loading?this.renderLoading():D`${this.icon?D``:Ke}`}renderLabel(){return D``}renderEndIcon(){return D`${this.endIcon?D``:Ke}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};Ws.styles=[ft.styles,x9];v([R({reflect:!0})],Ws.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Ws.prototype,"fullWidth",void 0);v([R({reflect:!0})],Ws.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Ws.prototype,"endIcon",void 0);Ws=v([se("mdui-button")],Ws);const S9=me`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;font-size:1.5rem;width:2.5rem;min-width:2.5rem;height:2.5rem}:host([variant=standard]){color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=filled]){color:rgb(var(--mdui-color-primary));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined][pressed]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([variant=standard][selected]){color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]:not([selectable])),:host([variant=filled][selected]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]:not([selectable])),:host([variant=tonal][selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + )}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=text]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=outlined][focus-visible]){border-color:rgb(var(--mdui-color-primary))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=tonal][hover]){box-shadow:var(--mdui-elevation-level1)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([variant=elevated][disabled]),:host([variant=filled][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([variant=outlined][disabled]){border-color:rgba(var(--mdui-color-on-surface),12%)}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon{display:inline-flex;font-size:1.28571429em}.end-icon mdui-icon,.icon mdui-icon,::slotted([slot=end-icon]),::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([variant=filled]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([variant=tonal]) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let Ws=class extends ft{constructor(){super(...arguments),this.variant="filled",this.fullWidth=!1,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}render(){return D`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderInner()}):this.disabled||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:"button",part:"button",content:this.renderInner()})}`}renderIcon(){return this.loading?this.renderLoading():D`${this.icon?D``:Ke}`}renderLabel(){return D``}renderEndIcon(){return D`${this.endIcon?D``:Ke}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};Ws.styles=[ft.styles,x9];v([R({reflect:!0})],Ws.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Ws.prototype,"fullWidth",void 0);v([R({reflect:!0})],Ws.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Ws.prototype,"endIcon",void 0);Ws=v([se("mdui-button")],Ws);const S9=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;font-size:1.5rem;width:2.5rem;min-width:2.5rem;height:2.5rem}:host([variant=standard]){color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=filled]){color:rgb(var(--mdui-color-primary));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=tonal]){color:rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined]){border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}:host([variant=outlined][pressed]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([variant=standard][selected]){color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=filled]:not([selectable])),:host([variant=filled][selected]){color:rgb(var(--mdui-color-on-primary));background-color:rgb(var(--mdui-color-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-primary)}:host([variant=tonal]:not([selectable])),:host([variant=tonal][selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([variant=outlined][selected]){border:none;color:rgb(var(--mdui-color-inverse-on-surface));background-color:rgb(var(--mdui-color-inverse-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}:host([variant=filled][disabled]),:host([variant=outlined][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),.38)!important}:host([loading]) .button,:host([loading]) mdui-ripple{opacity:0}.button{float:left;width:100%}.icon,.selected-icon mdui-icon,::slotted(*){font-size:inherit}mdui-circular-progress{display:flex;position:absolute;top:calc(50% - 1.5rem / 2);left:calc(50% - 1.5rem / 2);width:1.5rem;height:1.5rem}:host([variant=filled]:not([disabled])) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let cn=class extends ft{constructor(){super(...arguments),this.variant="standard",this.selectable=!1,this.selected=!1,this.rippleRef=be(),this.hasSlotController=new Ut(this,"[default]","selected-icon")}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{!this.selectable||this.disabled||(this.selected=!this.selected)})}render(){return D`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderIcon()}):this.disabled||this.loading?D`${this.renderIcon()}`:this.renderAnchor({className:"button",part:"button",content:this.renderIcon()})} ${this.renderLoading()}`}renderIcon(){const t=()=>this.hasSlotController.test("[default]")?D``:this.icon?D``:Ke,i=()=>this.hasSlotController.test("selected-icon")||this.selectedIcon?D``:t();return this.selected?i():t()}};cn.styles=[ft.styles,S9];v([R({reflect:!0})],cn.prototype,"variant",void 0);v([R({reflect:!0})],cn.prototype,"icon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],cn.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cn.prototype,"selectable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cn.prototype,"selected",void 0);v([re("selected",!0)],cn.prototype,"onSelectedChange",null);cn=v([se("mdui-button-icon")],cn);const T9=me`:host{--shape-corner:var(--mdui-shape-corner-medium);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([clickable]){cursor:pointer}:host([variant=elevated]){background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([variant=filled]){background-color:rgb(var(--mdui-color-surface-container-highest))}:host([variant=outlined]){background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=outlined][hover]){box-shadow:var(--mdui-elevation-level1)}:host([variant=elevated][dragged]),:host([variant=filled][dragged]),:host([variant=outlined][dragged]){box-shadow:var(--mdui-elevation-level3)}:host([disabled]){opacity:.38;cursor:default;-webkit-user-select:none;user-select:none}:host([variant=elevated][disabled]){background-color:rgb(var(--mdui-color-surface-variant));box-shadow:var(--mdui-elevation-level0)}:host([variant=filled][disabled]){background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level1)}:host([variant=outlined][disabled]){box-shadow:var(--mdui-elevation-level0);border-color:rgba(var(--mdui-color-outline),.32)}.link{position:relative;display:inline-block;width:100%;height:100%;color:inherit;font-size:inherit;letter-spacing:inherit;text-decoration:none;touch-action:manipulation;-webkit-user-drag:none}`;let jo=class extends sa(Er(er(Ne))){constructor(){super(...arguments),this.variant="elevated",this.clickable=!1,this.disabled=!1,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled||!this.href&&!this.clickable}get focusElement(){return this.href&&!this.disabled?this.renderRoot.querySelector("._a"):this}get focusDisabled(){return this.rippleDisabled}render(){return D`${this.href&&!this.disabled?this.renderAnchor({className:"link",content:D``}):D``}`}};jo.styles=[Ee,T9];v([R({reflect:!0})],jo.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],jo.prototype,"clickable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],jo.prototype,"disabled",void 0);jo=v([se("mdui-card")],jo);/** + )}:host([variant=outlined][selected]){border:none;color:rgb(var(--mdui-color-inverse-on-surface));background-color:rgb(var(--mdui-color-inverse-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}:host([variant=filled][disabled]),:host([variant=outlined][disabled]),:host([variant=tonal][disabled]){background-color:rgba(var(--mdui-color-on-surface),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),.38)!important}:host([loading]) .button,:host([loading]) mdui-ripple{opacity:0}.button{float:left;width:100%}.icon,.selected-icon mdui-icon,::slotted(*){font-size:inherit}mdui-circular-progress{display:flex;position:absolute;top:calc(50% - 1.5rem / 2);left:calc(50% - 1.5rem / 2);width:1.5rem;height:1.5rem}:host([variant=filled]:not([disabled])) mdui-circular-progress{stroke:rgb(var(--mdui-color-on-primary))}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let cn=class extends ft{constructor(){super(...arguments),this.variant="standard",this.selectable=!1,this.selected=!1,this.rippleRef=be(),this.hasSlotController=new Ut(this,"[default]","selected-icon")}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{!this.selectable||this.disabled||(this.selected=!this.selected)})}render(){return D`${this.isButton()?this.renderButton({className:"button",part:"button",content:this.renderIcon()}):this.disabled||this.loading?D`${this.renderIcon()}`:this.renderAnchor({className:"button",part:"button",content:this.renderIcon()})} ${this.renderLoading()}`}renderIcon(){const t=()=>this.hasSlotController.test("[default]")?D``:this.icon?D``:Ke,i=()=>this.hasSlotController.test("selected-icon")||this.selectedIcon?D``:t();return this.selected?i():t()}};cn.styles=[ft.styles,S9];v([R({reflect:!0})],cn.prototype,"variant",void 0);v([R({reflect:!0})],cn.prototype,"icon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],cn.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cn.prototype,"selectable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],cn.prototype,"selected",void 0);v([re("selected",!0)],cn.prototype,"onSelectedChange",null);cn=v([se("mdui-button-icon")],cn);const T9=pe`:host{--shape-corner:var(--mdui-shape-corner-medium);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([clickable]){cursor:pointer}:host([variant=elevated]){background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([variant=filled]){background-color:rgb(var(--mdui-color-surface-container-highest))}:host([variant=outlined]){background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline))}:host([variant=elevated][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=filled][hover]),:host([variant=outlined][hover]){box-shadow:var(--mdui-elevation-level1)}:host([variant=elevated][dragged]),:host([variant=filled][dragged]),:host([variant=outlined][dragged]){box-shadow:var(--mdui-elevation-level3)}:host([disabled]){opacity:.38;cursor:default;-webkit-user-select:none;user-select:none}:host([variant=elevated][disabled]){background-color:rgb(var(--mdui-color-surface-variant));box-shadow:var(--mdui-elevation-level0)}:host([variant=filled][disabled]){background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level1)}:host([variant=outlined][disabled]){box-shadow:var(--mdui-elevation-level0);border-color:rgba(var(--mdui-color-outline),.32)}.link{position:relative;display:inline-block;width:100%;height:100%;color:inherit;font-size:inherit;letter-spacing:inherit;text-decoration:none;touch-action:manipulation;-webkit-user-drag:none}`;let jo=class extends sa(Er(er(Re))){constructor(){super(...arguments),this.variant="elevated",this.clickable=!1,this.disabled=!1,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled||!this.href&&!this.clickable}get focusElement(){return this.href&&!this.disabled?this.renderRoot.querySelector("._a"):this}get focusDisabled(){return this.rippleDisabled}render(){return D`${this.href&&!this.disabled?this.renderAnchor({className:"link",content:D``}):D``}`}};jo.styles=[Ee,T9];v([R({reflect:!0})],jo.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],jo.prototype,"clickable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],jo.prototype,"disabled",void 0);jo=v([se("mdui-card")],jo);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Yo=eo(class extends Kl{constructor(e){if(super(e),e.type!==br.PROPERTY&&e.type!==br.ATTRIBUTE&&e.type!==br.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Zb(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===yi||t===Ze)return t;const i=e.element,r=e.name;if(e.type===br.PROPERTY){if(t===i[r])return yi}else if(e.type===br.BOOLEAN_ATTRIBUTE){if(!!t===i.hasAttribute(r))return yi}else if(e.type===br.ATTRIBUTE&&i.getAttribute(r)===t+"")return yi;return l9(e),t}});function Gn(e="value"){return(t,i)=>{const r=t.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(s,o,a){const l=r.getPropertyOptions(e),c=At(l.attribute)?l.attribute:e;if(s===c){const d=l.converter||Ko,h=(Ct(d)?d:(d==null?void 0:d.fromAttribute)??Ko.fromAttribute)(a,l.type);this[e]!==h&&(this[i]=h)}n.call(this,s,o,a)}}}const Jt=me` + */const Yo=eo(class extends Kl{constructor(e){if(super(e),e.type!==br.PROPERTY&&e.type!==br.ATTRIBUTE&&e.type!==br.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Xb(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===yi||t===Ze)return t;const i=e.element,r=e.name;if(e.type===br.PROPERTY){if(t===i[r])return yi}else if(e.type===br.BOOLEAN_ATTRIBUTE){if(!!t===i.hasAttribute(r))return yi}else if(e.type===br.ATTRIBUTE&&i.getAttribute(r)===t+"")return yi;return l9(e),t}});function Gn(e="value"){return(t,i)=>{const r=t.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(s,o,a){const l=r.getPropertyOptions(e),c=At(l.attribute)?l.attribute:e;if(s===c){const d=l.converter||Ko,h=(Ct(d)?d:(d==null?void 0:d.fromAttribute)??Ko.fromAttribute)(a,l.type);this[e]!==h&&(this[i]=h)}n.call(this,s,o,a)}}}const Jt=pe` :host { display: inline-block; width: 1em; @@ -167,14 +167,14 @@ viewBox="0 0 24 24" fill="currentColor" > - ${Xb(e)} - `;let mf=class extends ht{render(){return ei('')}};mf.styles=Jt;mf=v([se("mdui-icon-check-box-outline-blank")],mf);let gf=class extends ht{render(){return ei('')}};gf.styles=Jt;gf=v([se("mdui-icon-check-box")],gf);let vf=class extends ht{render(){return ei('')}};vf.styles=Jt;vf=v([se("mdui-icon-indeterminate-check-box")],vf);const R9=me`:host{position:relative;display:inline-flex;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}label{display:inline-flex;align-items:center;width:100%;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.125rem;height:1.125rem;margin:0 0 0 .6875rem}.icon{display:flex;position:absolute;opacity:1;transform:scale(1);color:rgb(var(--mdui-color-on-surface));font-size:1.5rem;transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.checked-icon,.indeterminate-icon{opacity:0;transform:scale(.5);transition-property:color,opacity,transform;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=indeterminate-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface));transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .indeterminate-icon{opacity:0;transform:scale(.5)}:host([checked]) .checked-icon{opacity:1;transform:scale(1)}:host([indeterminate]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([indeterminate]) .icon{color:rgb(var(--mdui-color-primary))}:host([indeterminate]) .checked-icon{opacity:0;transform:scale(.5)}:host([indeterminate]) .indeterminate-icon{opacity:1;transform:scale(1)}.invalid i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.invalid .icon{color:rgb(var(--mdui-color-error))}.invalid .label{color:rgb(var(--mdui-color-error))}:host([disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled][checked]) .unchecked-icon,:host([disabled][indeterminate]) .unchecked-icon{opacity:0}`;let Zt=class extends Er(er(Ne)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.indeterminate=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.inputRef=be(),this.rippleRef=be(),this.formController=new pn(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D``}onChange(){this.checked=this.inputRef.value.checked,this.indeterminate=!1,this.emit("change")}};Zt.styles=[Ee,R9];v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"checked",void 0);v([Gn("checked")],Zt.prototype,"defaultChecked",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"indeterminate",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"required",void 0);v([R({reflect:!0})],Zt.prototype,"form",void 0);v([R({reflect:!0})],Zt.prototype,"name",void 0);v([R({reflect:!0})],Zt.prototype,"value",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Zt.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Zt.prototype,"checkedIcon",void 0);v([R({reflect:!0,attribute:"indeterminate-icon"})],Zt.prototype,"indeterminateIcon",void 0);v([Ce()],Zt.prototype,"invalid",void 0);v([re("disabled",!0),re("indeterminate",!0),re("required",!0)],Zt.prototype,"onDisabledChange",null);v([re("checked",!0)],Zt.prototype,"onCheckedChange",null);Zt=v([se("mdui-checkbox")],Zt);let yf=class extends ht{render(){return ei('')}};yf.styles=Jt;yf=v([se("mdui-icon-check")],yf);let bf=class extends ht{render(){return ei('')}};bf.styles=Jt;bf=v([se("mdui-icon-clear")],bf);const N9=me`:host{--shape-corner:var(--mdui-shape-corner-small);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);height:2rem;background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.button{padding-right:.4375rem;padding-left:.4375rem}:host([variant=input]) .button{padding-right:.1875rem;padding-left:.1875rem}:host([selected]) .button{padding-right:.5rem;padding-left:.5rem}:host([selected][variant=input]) .button{padding-right:.25rem;padding-left:.25rem}:host([elevated]) .button{padding-right:.5rem;padding-left:.5rem}:host([variant=assist]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([elevated]){border-width:0;background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));border-width:0;--mdui-comp-ripple-state-layer-color:var( + ${Yb(e)} + `;let mf=class extends ht{render(){return ei('')}};mf.styles=Jt;mf=v([se("mdui-icon-check-box-outline-blank")],mf);let gf=class extends ht{render(){return ei('')}};gf.styles=Jt;gf=v([se("mdui-icon-check-box")],gf);let vf=class extends ht{render(){return ei('')}};vf.styles=Jt;vf=v([se("mdui-icon-indeterminate-check-box")],vf);const N9=pe`:host{position:relative;display:inline-flex;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}label{display:inline-flex;align-items:center;width:100%;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.125rem;height:1.125rem;margin:0 0 0 .6875rem}.icon{display:flex;position:absolute;opacity:1;transform:scale(1);color:rgb(var(--mdui-color-on-surface));font-size:1.5rem;transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.checked-icon,.indeterminate-icon{opacity:0;transform:scale(.5);transition-property:color,opacity,transform;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=indeterminate-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface));transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .indeterminate-icon{opacity:0;transform:scale(.5)}:host([checked]) .checked-icon{opacity:1;transform:scale(1)}:host([indeterminate]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([indeterminate]) .icon{color:rgb(var(--mdui-color-primary))}:host([indeterminate]) .checked-icon{opacity:0;transform:scale(.5)}:host([indeterminate]) .indeterminate-icon{opacity:1;transform:scale(1)}.invalid i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.invalid .icon{color:rgb(var(--mdui-color-error))}.invalid .label{color:rgb(var(--mdui-color-error))}:host([disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled][checked]) .unchecked-icon,:host([disabled][indeterminate]) .unchecked-icon{opacity:0}`;let Zt=class extends Er(er(Re)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.indeterminate=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.inputRef=be(),this.rippleRef=be(),this.formController=new pn(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D``}onChange(){this.checked=this.inputRef.value.checked,this.indeterminate=!1,this.emit("change")}};Zt.styles=[Ee,N9];v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"checked",void 0);v([Gn("checked")],Zt.prototype,"defaultChecked",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"indeterminate",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zt.prototype,"required",void 0);v([R({reflect:!0})],Zt.prototype,"form",void 0);v([R({reflect:!0})],Zt.prototype,"name",void 0);v([R({reflect:!0})],Zt.prototype,"value",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Zt.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Zt.prototype,"checkedIcon",void 0);v([R({reflect:!0,attribute:"indeterminate-icon"})],Zt.prototype,"indeterminateIcon",void 0);v([Ce()],Zt.prototype,"invalid",void 0);v([re("disabled",!0),re("indeterminate",!0),re("required",!0)],Zt.prototype,"onDisabledChange",null);v([re("checked",!0)],Zt.prototype,"onCheckedChange",null);Zt=v([se("mdui-checkbox")],Zt);let yf=class extends ht{render(){return ei('')}};yf.styles=Jt;yf=v([se("mdui-icon-check")],yf);let bf=class extends ht{render(){return ei('')}};bf.styles=Jt;bf=v([se("mdui-icon-clear")],bf);const R9=pe`:host{--shape-corner:var(--mdui-shape-corner-small);position:relative;display:inline-block;overflow:hidden;border-radius:var(--shape-corner);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);height:2rem;background-color:rgb(var(--mdui-color-surface));border:.0625rem solid rgb(var(--mdui-color-outline));color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.button{padding-right:.4375rem;padding-left:.4375rem}:host([variant=input]) .button{padding-right:.1875rem;padding-left:.1875rem}:host([selected]) .button{padding-right:.5rem;padding-left:.5rem}:host([selected][variant=input]) .button{padding-right:.25rem;padding-left:.25rem}:host([elevated]) .button{padding-right:.5rem;padding-left:.5rem}:host([variant=assist]){color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([elevated]){border-width:0;background-color:rgb(var(--mdui-color-surface-container-low));box-shadow:var(--mdui-elevation-level1)}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));border-width:0;--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){border-color:rgba(var(--mdui-color-on-surface),12%);color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([disabled][elevated]),:host([disabled][selected]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([selected][hover]){box-shadow:var(--mdui-elevation-level1)}:host([elevated][hover]){color:rgb(var(--mdui-color-on-secondary-container));box-shadow:var(--mdui-elevation-level2)}:host([variant=filter][hover]),:host([variant=input][hover]),:host([variant=suggestion][hover]){color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=filter][focus-visible]),:host([variant=input][focus-visible]),:host([variant=suggestion][focus-visible]){border-color:rgb(var(--mdui-color-on-surface-variant))}:host([dragged]),:host([dragged][hover]){box-shadow:var(--mdui-elevation-level4)}.button{overflow:visible}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em;color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=assist]) .end-icon,:host([variant=assist]) .icon,:host([variant=assist]) .selected-icon{color:rgb(var(--mdui-color-primary))}:host([selected]) .end-icon,:host([selected]) .icon,:host([selected]) .selected-icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([disabled]) .selected-icon{opacity:.38;color:rgb(var(--mdui-color-on-surface))}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}:host([variant=input]) .has-icon .icon,:host([variant=input]) .has-icon .selected-icon,:host([variant=input]) .has-icon mdui-circular-progress{margin-left:.25rem}:host([variant=input]) .has-end-icon .end-icon{margin-right:.25rem}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}::slotted(mdui-avatar[slot=end-icon]),::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){width:1.5rem;height:1.5rem}:host([disabled]) ::slotted(mdui-avatar[slot=end-icon]),:host([disabled]) ::slotted(mdui-avatar[slot=icon]),:host([disabled]) ::slotted(mdui-avatar[slot=selected-icon]){opacity:.38}::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){margin-left:-.25rem;margin-right:-.125rem}::slotted(mdui-avatar[slot=end-icon]){margin-right:-.25rem;margin-left:-.125rem}.delete-icon{display:inline-flex;font-size:1.28571429em;transition:background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);border-radius:var(--mdui-shape-corner-full);margin-right:-.25rem;margin-left:-.25rem;padding:.25rem;color:rgb(var(--mdui-color-on-surface-variant))}.delete-icon:hover{background-color:rgba(var(--mdui-color-on-surface-variant),12%)}.has-end-icon .delete-icon{margin-left:.25rem}:host([variant=assiat]) .delete-icon{color:rgb(var(--mdui-color-primary))}:host([variant=input]) .delete-icon{margin-right:.0625rem}:host([disabled]) .delete-icon{color:rgba(var(--mdui-color-on-surface),38%)}.delete-icon .i,::slotted([slot=delete-icon]){font-size:inherit}::slotted(mdui-avatar[slot=delete-icon]){width:1.125rem;height:1.125rem}`;let Yi=class extends ft{constructor(){super(),this.variant="assist",this.elevated=!1,this.selectable=!1,this.selected=!1,this.deletable=!1,this.rippleRef=be(),this.hasSlotController=new Ut(this,"icon","selected-icon","end-icon"),this.onClick=this.onClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeyDown)}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.endIcon||this.hasSlotController.test("end-icon"),r=this.selectedIcon||["assist","filter"].includes(this.variant)||t||this.hasSlotController.test("selected-icon"),n=Or({button:!0,"has-icon":this.loading||!this.selected&&t||this.selected&&r,"has-end-icon":i});return D`${this.isButton()?this.renderButton({className:n,part:"button",content:this.renderInner()}):this.disabled||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:n,part:"button",content:this.renderInner()})}`}onClick(){this.disabled||this.loading||this.selectable&&(this.selected=!this.selected)}onKeyDown(t){this.disabled||this.loading||(this.selectable&&t.key===" "&&(t.preventDefault(),this.selected=!this.selected),this.deletable&&["Delete","Backspace"].includes(t.key)&&this.emit("delete"))}onDelete(t){t.stopPropagation(),this.emit("delete")}renderIcon(){if(this.loading)return this.renderLoading();const t=()=>this.icon?D``:Ke,i=()=>this.selectedIcon?D``:this.variant==="assist"||this.variant==="filter"?D``:t();return this.selected?D`${i()}`:D`${t()}`}renderLabel(){return D``}renderEndIcon(){return D`${this.endIcon?D``:Ke}`}renderDeleteIcon(){return this.deletable?D`${this.deleteIcon?D``:D``}`:Ke}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon(),this.renderDeleteIcon()]}};Yi.styles=[ft.styles,N9];v([R({reflect:!0})],Yi.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"elevated",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"selectable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"selected",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"deletable",void 0);v([R({reflect:!0})],Yi.prototype,"icon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],Yi.prototype,"selectedIcon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Yi.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"delete-icon"})],Yi.prototype,"deleteIcon",void 0);v([re("selected",!0)],Yi.prototype,"onSelectedChange",null);Yi=v([se("mdui-chip")],Yi);const Xo=(e,t)=>{if(e.length!==t.length)return!1;const i=[...e].sort(),r=[...t].sort();return i.every((n,s)=>n===r[s])},I9=me`:host{display:block}`;let Mr=class extends Ne{constructor(){super(...arguments),this.accordion=!1,this.disabled=!1,this.activeKeys=[],this.isInitial=!0,this.definedController=new Qt(this,{relatedElements:["mdui-collapse-item"]})}async onActiveKeysChange(){var i;await this.definedController.whenDefined();const t=this.accordion?(i=this.items.find(r=>this.activeKeys.includes(r.key)))==null?void 0:i.value:this.items.filter(r=>this.activeKeys.includes(r.key)).map(r=>r.value);this.setValue(t),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),this.accordion){const t=this.value;if(!t)this.setActiveKeys([]);else{const i=this.items.find(r=>r.value===t);this.setActiveKeys(i?[i.key]:[])}}else{const t=this.value;if(!t.length)this.setActiveKeys([]);else{const i=this.items.filter(r=>t.includes(r.value)).map(r=>r.key);this.setActiveKeys(i)}}this.updateItems()}render(){return D``}setActiveKeys(t){Xo(this.activeKeys,t)||(this.activeKeys=t)}setValue(t){this.accordion||ot(this.value)||ot(t)?this.value=t:Xo(this.value,t)||(this.value=t)}onClick(t){if(this.disabled||t.button)return;const r=t.target.closest("mdui-collapse-item");if(!r||r.disabled)return;const n=t.composedPath();if(!(r.trigger&&!n.find(s=>ln(s)&&M(s).is(r.trigger)))&&n.find(s=>ln(s)&&s.part.contains("header"))){if(this.accordion)this.activeKeys.includes(r.key)?this.setActiveKeys([]):this.setActiveKeys([r.key]);else{const s=[...this.activeKeys];s.includes(r.key)?s.splice(s.indexOf(r.key),1):s.push(r.key),this.setActiveKeys(s)}this.isInitial=!1,this.updateItems()}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}updateItems(){this.items.forEach(t=>{t.active=this.activeKeys.includes(t.key),t.isInitial=this.isInitial})}};Mr.styles=[Ee,I9];v([R({type:Boolean,reflect:!0,converter:Y})],Mr.prototype,"accordion",void 0);v([R()],Mr.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mr.prototype,"disabled",void 0);v([Ce()],Mr.prototype,"activeKeys",void 0);v([Ji({selector:"mdui-collapse-item",flatten:!0})],Mr.prototype,"items",void 0);v([re("activeKeys",!0)],Mr.prototype,"onActiveKeysChange",null);v([re("value")],Mr.prototype,"onValueChange",null);Mr=v([se("mdui-collapse")],Mr);const $9=me`:host{display:flex;flex-direction:column}.header{display:block}.body{display:block;overflow:hidden;transition:height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-emphasized)}.body.opened{overflow:visible}.body.active{transition-duration:var(--mdui-motion-duration-medium4)}`;let Vr=class extends Ne{constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.state="closed",this.isInitial=!0,this.key=Xn(),this.bodyRef=be()}onActiveChange(){this.isInitial?(this.state=this.active?"opened":"closed",this.hasUpdated&&this.updateBodyHeight()):(this.state=this.active?"open":"close",this.emit(this.state),this.updateBodyHeight())}firstUpdated(t){super.firstUpdated(t),this.updateBodyHeight()}render(){return D`${this.header}`}onTransitionEnd(t){t.target===this.bodyRef.value&&(this.state=this.active?"opened":"closed",this.emit(this.state),this.updateBodyHeight())}updateBodyHeight(){const t=this.bodyRef.value.scrollHeight;this.state==="close"&&(M(this.bodyRef.value).height(t),this.bodyRef.value.clientLeft),M(this.bodyRef.value).height(this.state==="opened"?"auto":this.state==="open"?t:0)}};Vr.styles=[Ee,$9];v([R({reflect:!0})],Vr.prototype,"value",void 0);v([R({reflect:!0})],Vr.prototype,"header",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Vr.prototype,"disabled",void 0);v([R()],Vr.prototype,"trigger",void 0);v([Ce()],Vr.prototype,"active",void 0);v([Ce()],Vr.prototype,"state",void 0);v([re("active")],Vr.prototype,"onActiveChange",null);Vr=v([se("mdui-collapse-item")],Vr);/** + )}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){border-color:rgba(var(--mdui-color-on-surface),12%);color:rgba(var(--mdui-color-on-surface),38%);box-shadow:var(--mdui-elevation-level0)}:host([disabled][elevated]),:host([disabled][selected]){background-color:rgba(var(--mdui-color-on-surface),12%)}:host([selected][hover]){box-shadow:var(--mdui-elevation-level1)}:host([elevated][hover]){color:rgb(var(--mdui-color-on-secondary-container));box-shadow:var(--mdui-elevation-level2)}:host([variant=filter][hover]),:host([variant=input][hover]),:host([variant=suggestion][hover]){color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=filter][focus-visible]),:host([variant=input][focus-visible]),:host([variant=suggestion][focus-visible]){border-color:rgb(var(--mdui-color-on-surface-variant))}:host([dragged]),:host([dragged][hover]){box-shadow:var(--mdui-elevation-level4)}.button{overflow:visible}.label{display:inline-flex;padding-right:.5rem;padding-left:.5rem}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em;color:rgb(var(--mdui-color-on-surface-variant))}:host([variant=assist]) .end-icon,:host([variant=assist]) .icon,:host([variant=assist]) .selected-icon{color:rgb(var(--mdui-color-primary))}:host([selected]) .end-icon,:host([selected]) .icon,:host([selected]) .selected-icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([disabled]) .selected-icon{opacity:.38;color:rgb(var(--mdui-color-on-surface))}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}:host([variant=input]) .has-icon .icon,:host([variant=input]) .has-icon .selected-icon,:host([variant=input]) .has-icon mdui-circular-progress{margin-left:.25rem}:host([variant=input]) .has-end-icon .end-icon{margin-right:.25rem}mdui-circular-progress{display:inline-flex;width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}::slotted(mdui-avatar[slot=end-icon]),::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){width:1.5rem;height:1.5rem}:host([disabled]) ::slotted(mdui-avatar[slot=end-icon]),:host([disabled]) ::slotted(mdui-avatar[slot=icon]),:host([disabled]) ::slotted(mdui-avatar[slot=selected-icon]){opacity:.38}::slotted(mdui-avatar[slot=icon]),::slotted(mdui-avatar[slot=selected-icon]){margin-left:-.25rem;margin-right:-.125rem}::slotted(mdui-avatar[slot=end-icon]){margin-right:-.25rem;margin-left:-.125rem}.delete-icon{display:inline-flex;font-size:1.28571429em;transition:background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);border-radius:var(--mdui-shape-corner-full);margin-right:-.25rem;margin-left:-.25rem;padding:.25rem;color:rgb(var(--mdui-color-on-surface-variant))}.delete-icon:hover{background-color:rgba(var(--mdui-color-on-surface-variant),12%)}.has-end-icon .delete-icon{margin-left:.25rem}:host([variant=assiat]) .delete-icon{color:rgb(var(--mdui-color-primary))}:host([variant=input]) .delete-icon{margin-right:.0625rem}:host([disabled]) .delete-icon{color:rgba(var(--mdui-color-on-surface),38%)}.delete-icon .i,::slotted([slot=delete-icon]){font-size:inherit}::slotted(mdui-avatar[slot=delete-icon]){width:1.125rem;height:1.125rem}`;let Yi=class extends ft{constructor(){super(),this.variant="assist",this.elevated=!1,this.selectable=!1,this.selected=!1,this.deletable=!1,this.rippleRef=be(),this.hasSlotController=new Ut(this,"icon","selected-icon","end-icon"),this.onClick=this.onClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}get rippleElement(){return this.rippleRef.value}onSelectedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeyDown)}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.endIcon||this.hasSlotController.test("end-icon"),r=this.selectedIcon||["assist","filter"].includes(this.variant)||t||this.hasSlotController.test("selected-icon"),n=Or({button:!0,"has-icon":this.loading||!this.selected&&t||this.selected&&r,"has-end-icon":i});return D`${this.isButton()?this.renderButton({className:n,part:"button",content:this.renderInner()}):this.disabled||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:n,part:"button",content:this.renderInner()})}`}onClick(){this.disabled||this.loading||this.selectable&&(this.selected=!this.selected)}onKeyDown(t){this.disabled||this.loading||(this.selectable&&t.key===" "&&(t.preventDefault(),this.selected=!this.selected),this.deletable&&["Delete","Backspace"].includes(t.key)&&this.emit("delete"))}onDelete(t){t.stopPropagation(),this.emit("delete")}renderIcon(){if(this.loading)return this.renderLoading();const t=()=>this.icon?D``:Ke,i=()=>this.selectedIcon?D``:this.variant==="assist"||this.variant==="filter"?D``:t();return this.selected?D`${i()}`:D`${t()}`}renderLabel(){return D``}renderEndIcon(){return D`${this.endIcon?D``:Ke}`}renderDeleteIcon(){return this.deletable?D`${this.deleteIcon?D``:D``}`:Ke}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon(),this.renderDeleteIcon()]}};Yi.styles=[ft.styles,R9];v([R({reflect:!0})],Yi.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"elevated",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"selectable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"selected",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Yi.prototype,"deletable",void 0);v([R({reflect:!0})],Yi.prototype,"icon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],Yi.prototype,"selectedIcon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Yi.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"delete-icon"})],Yi.prototype,"deleteIcon",void 0);v([re("selected",!0)],Yi.prototype,"onSelectedChange",null);Yi=v([se("mdui-chip")],Yi);const Xo=(e,t)=>{if(e.length!==t.length)return!1;const i=[...e].sort(),r=[...t].sort();return i.every((n,s)=>n===r[s])},I9=pe`:host{display:block}`;let Mr=class extends Re{constructor(){super(...arguments),this.accordion=!1,this.disabled=!1,this.activeKeys=[],this.isInitial=!0,this.definedController=new Qt(this,{relatedElements:["mdui-collapse-item"]})}async onActiveKeysChange(){var i;await this.definedController.whenDefined();const t=this.accordion?(i=this.items.find(r=>this.activeKeys.includes(r.key)))==null?void 0:i.value:this.items.filter(r=>this.activeKeys.includes(r.key)).map(r=>r.value);this.setValue(t),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),this.accordion){const t=this.value;if(!t)this.setActiveKeys([]);else{const i=this.items.find(r=>r.value===t);this.setActiveKeys(i?[i.key]:[])}}else{const t=this.value;if(!t.length)this.setActiveKeys([]);else{const i=this.items.filter(r=>t.includes(r.value)).map(r=>r.key);this.setActiveKeys(i)}}this.updateItems()}render(){return D``}setActiveKeys(t){Xo(this.activeKeys,t)||(this.activeKeys=t)}setValue(t){this.accordion||ot(this.value)||ot(t)?this.value=t:Xo(this.value,t)||(this.value=t)}onClick(t){if(this.disabled||t.button)return;const r=t.target.closest("mdui-collapse-item");if(!r||r.disabled)return;const n=t.composedPath();if(!(r.trigger&&!n.find(s=>ln(s)&&B(s).is(r.trigger)))&&n.find(s=>ln(s)&&s.part.contains("header"))){if(this.accordion)this.activeKeys.includes(r.key)?this.setActiveKeys([]):this.setActiveKeys([r.key]);else{const s=[...this.activeKeys];s.includes(r.key)?s.splice(s.indexOf(r.key),1):s.push(r.key),this.setActiveKeys(s)}this.isInitial=!1,this.updateItems()}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}updateItems(){this.items.forEach(t=>{t.active=this.activeKeys.includes(t.key),t.isInitial=this.isInitial})}};Mr.styles=[Ee,I9];v([R({type:Boolean,reflect:!0,converter:Y})],Mr.prototype,"accordion",void 0);v([R()],Mr.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mr.prototype,"disabled",void 0);v([Ce()],Mr.prototype,"activeKeys",void 0);v([Ji({selector:"mdui-collapse-item",flatten:!0})],Mr.prototype,"items",void 0);v([re("activeKeys",!0)],Mr.prototype,"onActiveKeysChange",null);v([re("value")],Mr.prototype,"onValueChange",null);Mr=v([se("mdui-collapse")],Mr);const $9=pe`:host{display:flex;flex-direction:column}.header{display:block}.body{display:block;overflow:hidden;transition:height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-emphasized)}.body.opened{overflow:visible}.body.active{transition-duration:var(--mdui-motion-duration-medium4)}`;let Vr=class extends Re{constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.state="closed",this.isInitial=!0,this.key=Xn(),this.bodyRef=be()}onActiveChange(){this.isInitial?(this.state=this.active?"opened":"closed",this.hasUpdated&&this.updateBodyHeight()):(this.state=this.active?"open":"close",this.emit(this.state),this.updateBodyHeight())}firstUpdated(t){super.firstUpdated(t),this.updateBodyHeight()}render(){return D`${this.header}`}onTransitionEnd(t){t.target===this.bodyRef.value&&(this.state=this.active?"opened":"closed",this.emit(this.state),this.updateBodyHeight())}updateBodyHeight(){const t=this.bodyRef.value.scrollHeight;this.state==="close"&&(B(this.bodyRef.value).height(t),this.bodyRef.value.clientLeft),B(this.bodyRef.value).height(this.state==="opened"?"auto":this.state==="open"?t:0)}};Vr.styles=[Ee,$9];v([R({reflect:!0})],Vr.prototype,"value",void 0);v([R({reflect:!0})],Vr.prototype,"header",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Vr.prototype,"disabled",void 0);v([R()],Vr.prototype,"trigger",void 0);v([Ce()],Vr.prototype,"active",void 0);v([Ce()],Vr.prototype,"state",void 0);v([re("active")],Vr.prototype,"onActiveChange",null);Vr=v([se("mdui-collapse-item")],Vr);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function et(e,t,i){return e?t(e):i==null?void 0:i(e)}function Xe(e,t,i){return e?new Promise(r=>{if(i.duration===1/0)throw new Error("Promise-based animations must be finite.");Xd(i.duration)&&isNaN(i.duration)&&(i.duration=0),i.easing===""&&(i.easing="linear");const n=e.animate(t,i);n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})}):Promise.resolve()}function Ii(e){return e?Promise.all(e.getAnimations().map(t=>new Promise(i=>{const r=requestAnimationFrame(i);t.addEventListener("cancel",()=>r,{once:!0}),t.addEventListener("finish",()=>r,{once:!0}),t.cancel()}))):Promise.resolve()}function P1(e){const t=Yn(),i=e.localName;return e.getAttribute("tabindex")==="-1"||e.hasAttribute("disabled")||e.hasAttribute("aria-disabled")&&e.getAttribute("aria-disabled")!=="false"||i==="input"&&e.getAttribute("type")==="radio"&&!e.hasAttribute("checked")||e.offsetParent===null||t.getComputedStyle(e).visibility==="hidden"?!1:(i==="audio"||i==="video")&&e.hasAttribute("controls")||e.hasAttribute("tabindex")||e.hasAttribute("contenteditable")&&e.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(i)}function P9(e){const t=[];function i(s){s instanceof HTMLElement&&(t.push(s),s.shadowRoot!==null&&s.shadowRoot.mode==="open"&&i(s.shadowRoot)),[...s.children].forEach(a=>i(a))}i(e);const r=t.find(s=>P1(s))??null,n=t.reverse().find(s=>P1(s))??null;return{start:r,end:n}}let ya=[];class e5{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){ya.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){ya=ya.filter(t=>t!==this.element),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return ya[ya.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:i}=P9(this.element),r=this.tabDirection==="forward"?t:i;typeof(r==null?void 0:r.focus)=="function"&&r.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){t.key==="Tab"&&t.shiftKey&&(this.tabDirection="backward"),requestAnimationFrame(()=>this.checkFocus())}handleKeyUp(){this.tabDirection="forward"}}const ci=(e,t)=>{const i=`--mdui-motion-easing-${t}`;return M(e).css(i).trim()},ur=(e,t)=>{const i=`--mdui-motion-duration-${t}`,r=M(e).css(i).trim().toLowerCase();return r.endsWith("ms")?parseFloat(r):parseFloat(r)*1e3};let Ru;const D9=e=>{if(ot(document))return 0;if(Ru===void 0){const t=M("
").css({width:"100%",height:"200px"}),i=M("
").css({position:"absolute",top:"0",left:"0",pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}).append(t).appendTo(document.body),r=t[0].offsetWidth;i.css("overflow","scroll");let n=t[0].offsetWidth;r===n&&(n=i[0].clientWidth),i.remove(),Ru=r-n}return Ru},L9=e=>e.scrollHeight>e.clientHeight,Fa=new WeakMap,t5="mdui-lock-screen",wf=(e,t)=>{const i=wi();t??(t=i.documentElement),Fa.has(t)||Fa.set(t,new Set),Fa.get(t).add(e);const n=M(t);L9(t)&&n.css("width",`calc(100% - ${D9()}px)`),n.addClass(t5)},za=(e,t)=>{const i=wi();t??(t=i.documentElement);const r=Fa.get(t);r&&(r.delete(e),r.size===0&&(Fa.delete(t),M(t).removeClass(t5).width("")))};/** + */function et(e,t,i){return e?t(e):i==null?void 0:i(e)}function Xe(e,t,i){return e?new Promise(r=>{if(i.duration===1/0)throw new Error("Promise-based animations must be finite.");Xd(i.duration)&&isNaN(i.duration)&&(i.duration=0),i.easing===""&&(i.easing="linear");const n=e.animate(t,i);n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})}):Promise.resolve()}function Ii(e){return e?Promise.all(e.getAnimations().map(t=>new Promise(i=>{const r=requestAnimationFrame(i);t.addEventListener("cancel",()=>r,{once:!0}),t.addEventListener("finish",()=>r,{once:!0}),t.cancel()}))):Promise.resolve()}function P1(e){const t=Yn(),i=e.localName;return e.getAttribute("tabindex")==="-1"||e.hasAttribute("disabled")||e.hasAttribute("aria-disabled")&&e.getAttribute("aria-disabled")!=="false"||i==="input"&&e.getAttribute("type")==="radio"&&!e.hasAttribute("checked")||e.offsetParent===null||t.getComputedStyle(e).visibility==="hidden"?!1:(i==="audio"||i==="video")&&e.hasAttribute("controls")||e.hasAttribute("tabindex")||e.hasAttribute("contenteditable")&&e.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(i)}function P9(e){const t=[];function i(s){s instanceof HTMLElement&&(t.push(s),s.shadowRoot!==null&&s.shadowRoot.mode==="open"&&i(s.shadowRoot)),[...s.children].forEach(a=>i(a))}i(e);const r=t.find(s=>P1(s))??null,n=t.reverse().find(s=>P1(s))??null;return{start:r,end:n}}let ya=[];class Jb{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){ya.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){ya=ya.filter(t=>t!==this.element),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return ya[ya.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:i}=P9(this.element),r=this.tabDirection==="forward"?t:i;typeof(r==null?void 0:r.focus)=="function"&&r.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){t.key==="Tab"&&t.shiftKey&&(this.tabDirection="backward"),requestAnimationFrame(()=>this.checkFocus())}handleKeyUp(){this.tabDirection="forward"}}const ci=(e,t)=>{const i=`--mdui-motion-easing-${t}`;return B(e).css(i).trim()},ur=(e,t)=>{const i=`--mdui-motion-duration-${t}`,r=B(e).css(i).trim().toLowerCase();return r.endsWith("ms")?parseFloat(r):parseFloat(r)*1e3};let Nu;const D9=e=>{if(ot(document))return 0;if(Nu===void 0){const t=B("
").css({width:"100%",height:"200px"}),i=B("
").css({position:"absolute",top:"0",left:"0",pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}).append(t).appendTo(document.body),r=t[0].offsetWidth;i.css("overflow","scroll");let n=t[0].offsetWidth;r===n&&(n=i[0].clientWidth),i.remove(),Nu=r-n}return Nu},L9=e=>e.scrollHeight>e.clientHeight,Fa=new WeakMap,e5="mdui-lock-screen",wf=(e,t)=>{const i=wi();t??(t=i.documentElement),Fa.has(t)||Fa.set(t,new Set),Fa.get(t).add(e);const n=B(t);L9(t)&&n.css("width",`calc(100% - ${D9()}px)`),n.addClass(e5)},za=(e,t)=>{const i=wi();t??(t=i.documentElement);const r=Fa.get(t);r&&(r.delete(e),r.size===0&&(Fa.delete(t),B(t).removeClass(e5).width("")))};/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -202,21 +202,21 @@ * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let H9=M9,D1=!1;const Lc=new Map,U9=(e,t)=>{D1||(D1=!0,Yn().addEventListener(V9,n=>{n.detail.status==="ready"&&Lc.forEach(s=>{s.forEach(o=>o())})}));const i=Lc.get(e)||[];i.push(t),Lc.set(e,i)},Bc=e=>{Lc.delete(e)},K9=me`:host{--shape-corner:var(--mdui-shape-corner-extra-large);--z-index:2300;position:fixed;z-index:var(--z-index);display:none;align-items:center;justify-content:center;inset:0;padding:3rem}::slotted(mdui-top-app-bar[slot=header]){position:absolute;border-top-left-radius:var(--mdui-shape-corner-extra-large);border-top-right-radius:var(--mdui-shape-corner-extra-large);background-color:rgb(var(--mdui-color-surface-container-high))}:host([fullscreen]){--shape-corner:var(--mdui-shape-corner-none);padding:0}:host([fullscreen]) ::slotted(mdui-top-app-bar[slot=header]){border-top-left-radius:var(--mdui-shape-corner-none);border-top-right-radius:var(--mdui-shape-corner-none)}.overlay{position:fixed;inset:0;background-color:rgba(var(--mdui-color-scrim),.4)}.panel{position:relative;display:flex;flex-direction:column;max-height:100%;border-radius:var(--shape-corner);outline:0;transform-origin:top;min-width:17.5rem;max-width:35rem;padding:1.5rem;background-color:rgb(var(--mdui-color-surface-container-high));box-shadow:var(--mdui-elevation-level3)}:host([fullscreen]) .panel{width:100%;max-width:100%;height:100%;max-height:100%;box-shadow:var(--mdui-elevation-level0)}.header{display:flex;flex-direction:column}.has-icon .header{align-items:center}.icon{display:flex;color:rgb(var(--mdui-color-secondary));font-size:1.5rem}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}.headline{display:flex;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.icon+.headline{padding-top:1rem}.body{overflow:auto}.header+.body{margin-top:1rem}.description{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([fullscreen]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description.has-default .description{margin-bottom:1rem}.action{display:flex;justify-content:flex-end;padding-top:1.5rem}.action::slotted(:not(:first-child)){margin-left:.5rem}:host([stacked-actions]) .action{flex-direction:column;align-items:end}:host([stacked-actions]) .action::slotted(:not(:first-child)){margin-left:0;margin-top:.5rem}`;let Xi=class extends Ne{constructor(){super(...arguments),this.open=!1,this.fullscreen=!1,this.closeOnEsc=!1,this.closeOnOverlayClick=!1,this.stackedActions=!1,this.overlayRef=be(),this.panelRef=be(),this.bodyRef=be(),this.hasSlotController=new Ut(this,"header","icon","headline","description","action","[default]"),this.definedController=new Qt(this,{relatedElements:["mdui-top-app-bar"]})}async onOpenChange(){const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=Array.from(this.panelRef.value.querySelectorAll(".header, .body, .actions")),r=ci(this,"linear"),n=ci(this,"emphasized-decelerate"),s=ci(this,"emphasized-accelerate"),o=()=>Promise.all([Ii(this.overlayRef.value),Ii(this.panelRef.value),...i.map(a=>Ii(a))]);if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;this.style.display="flex";const a=this.topAppBarElements??[];if(a.length){const c=a[0];c.scrollTarget||(c.scrollTarget=this.bodyRef.value),this.bodyRef.value.style.marginTop="0"}this.originalTrigger=document.activeElement,this.modalHelper.activate(),wf(this),await o(),requestAnimationFrame(()=>{const c=this.querySelector("[autofocus]");c?c.focus({preventScroll:!0}):this.panelRef.value.focus({preventScroll:!0})});const l=ur(this,"medium4");await Promise.all([Xe(this.overlayRef.value,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:t?l:0,easing:r}),Xe(this.panelRef.value,[{transform:"translateY(-1.875rem) scaleY(0)"},{transform:"translateY(0) scaleY(1)"}],{duration:t?l:0,easing:n}),Xe(this.panelRef.value,[{opacity:0},{opacity:1,offset:.1},{opacity:1}],{duration:t?l:0,easing:r}),...i.map(c=>Xe(c,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:t?l:0,easing:r}))]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;this.modalHelper.deactivate(),await o();const l=ur(this,"short4");await Promise.all([Xe(this.overlayRef.value,[{opacity:1},{opacity:0}],{duration:l,easing:r}),Xe(this.panelRef.value,[{transform:"translateY(0) scaleY(1)"},{transform:"translateY(-1.875rem) scaleY(0.6)"}],{duration:l,easing:s}),Xe(this.panelRef.value,[{opacity:1},{opacity:1,offset:.75},{opacity:0}],{duration:l,easing:r}),...i.map(d=>Xe(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",za(this);const c=this.originalTrigger;typeof(c==null?void 0:c.focus)=="function"&&setTimeout(()=>c.focus()),this.emit("closed")}}disconnectedCallback(){super.disconnectedCallback(),za(this),Bc(this)}firstUpdated(t){super.firstUpdated(t),this.modalHelper=new e5(this),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&(i.stopPropagation(),this.open=!1)})}render(){const t=this.hasSlotController.test("action"),i=this.hasSlotController.test("[default]"),r=!!this.icon||this.hasSlotController.test("icon"),n=!!this.headline||this.hasSlotController.test("headline"),s=!!this.description||this.hasSlotController.test("description"),o=r||n||this.hasSlotController.test("header"),a=s||i;return D`
${et(o,()=>D`${et(r,()=>this.renderIcon())} ${et(n,()=>this.renderHeadline())}`)} ${et(a,()=>D`
${et(s,()=>this.renderDescription())}
`)} ${et(t,()=>D``)}
`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}renderIcon(){return D`${this.icon?D``:Ke}`}renderHeadline(){return D`${this.headline}`}renderDescription(){return D`${this.description}`}};Xi.styles=[Ee,K9];v([R({reflect:!0})],Xi.prototype,"icon",void 0);v([R({reflect:!0})],Xi.prototype,"headline",void 0);v([R({reflect:!0})],Xi.prototype,"description",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Xi.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Xi.prototype,"fullscreen",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],Xi.prototype,"closeOnEsc",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],Xi.prototype,"closeOnOverlayClick",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"stacked-actions"})],Xi.prototype,"stackedActions",void 0);v([Ji({slot:"header",selector:"mdui-top-app-bar",flatten:!0})],Xi.prototype,"topAppBarElements",void 0);v([re("open")],Xi.prototype,"onOpenChange",null);Xi=v([se("mdui-dialog")],Xi);const W9=me`:host{display:block;height:.0625rem;background-color:rgb(var(--mdui-color-surface-variant))}:host([inset]){margin-left:1rem}:host([middle]){margin-left:1rem;margin-right:1rem}:host([vertical]){height:100%;width:.0625rem}`;let Zo=class extends Ne{constructor(){super(...arguments),this.vertical=!1,this.inset=!1,this.middle=!1}render(){return D``}};Zo.styles=[Ee,W9];v([R({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"vertical",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"inset",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"middle",void 0);Zo=v([se("mdui-divider")],Zo);function i5(e){return r5(e)?(e.nodeName||"").toLowerCase():"#document"}function Wl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q9(e){var t;return(t=(r5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function r5(e){return e instanceof Node||e instanceof Wl(e).Node}function j9(e){return e instanceof HTMLElement||e instanceof Wl(e).HTMLElement}function L1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wl(e).ShadowRoot}function n5(e){const{overflow:t,overflowX:i,overflowY:r,display:n}=X9(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!["inline","contents"].includes(n)}function Y9(e){return["html","body","#document"].includes(i5(e))}function X9(e){return Wl(e).getComputedStyle(e)}function Z9(e){if(i5(e)==="html")return e;const t=e.assignedSlot||e.parentNode||L1(e)&&e.host||q9(e);return L1(t)?t.host:t}function s5(e){const t=Z9(e);return Y9(t)?e.ownerDocument?e.ownerDocument.body:e.body:j9(t)&&n5(t)?t:s5(t)}function gd(e,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const n=s5(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),o=Wl(n);return s?t.concat(o,o.visualViewport||[],n5(n)?n:[],o.frameElement&&i?gd(o.frameElement):[]):t.concat(n,gd(n,[],i))}const G9=me`:host{--z-index:2100;display:contents}.panel{display:block;position:fixed;z-index:var(--z-index)}`;let ki=class extends Ne{constructor(){super(),this.open=!1,this.disabled=!1,this.trigger="click",this.placement="auto",this.stayOpenOnClick=!1,this.openDelay=150,this.closeDelay=150,this.openOnPointer=!1,this.panelRef=be(),this.definedController=new Qt(this,{relatedElements:[""]}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onDocumentKeydown=this.onDocumentKeydown.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.onContextMenu=this.onContextMenu.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onPanelClick=this.onPanelClick.bind(this)}get triggerElement(){return this.triggerElements[0]}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){var s,o;const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=ci(this,"linear"),r=ci(this,"emphasized-decelerate"),n=ci(this,"emphasized-accelerate");if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;const a=this.panelElements.find(c=>Ct(c.focus));setTimeout(()=>{a==null||a.focus()});const l=ur(this,"medium4");await Ii(this.panelRef.value),this.panelRef.value.hidden=!1,this.updatePositioner(),await Promise.all([Xe(this.panelRef.value,[{transform:`${this.getCssScaleName()}(0.45)`},{transform:`${this.getCssScaleName()}(1)`}],{duration:t?l:0,easing:r}),Xe(this.panelRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?l:0,easing:i})]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;!this.hasTrigger("focus")&&Ct((s=this.triggerElement)==null?void 0:s.focus)&&(this.contains(document.activeElement)||this.contains(((o=document.activeElement)==null?void 0:o.assignedSlot)??null))&&this.triggerElement.focus();const l=ur(this,"short4");await Ii(this.panelRef.value),await Promise.all([Xe(this.panelRef.value,[{transform:`${this.getCssScaleName()}(1)`},{transform:`${this.getCssScaleName()}(0.45)`}],{duration:l,easing:n}),Xe(this.panelRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:l,easing:i})]),this.panelRef.value&&(this.panelRef.value.hidden=!0),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onDocumentClick),document.addEventListener("keydown",this.onDocumentKeydown),this.overflowAncestors=gd(this.triggerElement),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),document.removeEventListener("keydown",this.onDocumentKeydown),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("mouseleave",this.onMouseLeave),this.definedController.whenDefined().then(()=>{this.triggerElement.addEventListener("focus",this.onFocus),this.triggerElement.addEventListener("click",this.onClick),this.triggerElement.addEventListener("contextmenu",this.onContextMenu),this.triggerElement.addEventListener("mouseenter",this.onMouseEnter),this.observeResize=to(this.triggerElement,()=>{this.updatePositioner()})})}render(){return D``}getCssScaleName(){return this.animateDirection==="horizontal"?"scaleX":"scaleY"}onDocumentClick(t){if(this.disabled||!this.open)return;const i=t.composedPath();i.includes(this)||(this.open=!1),this.hasTrigger("contextmenu")&&!this.hasTrigger("click")&&i.includes(this.triggerElement)&&(this.open=!1)}onDocumentKeydown(t){var i;if(!(this.disabled||!this.open)){if(t.key==="Escape"){this.open=!1;return}t.key==="Tab"&&(!this.hasTrigger("focus")&&Ct((i=this.triggerElement)==null?void 0:i.focus)&&t.preventDefault(),this.open=!1)}}onWindowScroll(){window.requestAnimationFrame(()=>this.onPositionChange())}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!this.open)}onPanelClick(t){!this.disabled&&!this.stayOpenOnClick&&M(t.target).is("mdui-menu-item")&&(this.open=!1)}onContextMenu(t){this.disabled||!this.hasTrigger("contextmenu")||(t.preventDefault(),this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!0)}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.closeTimeout),this.openDelay?this.openTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay):this.open=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.openTimeout),this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50))}updatePositioner(){const t=M(this.panelRef.value),i=M(window),r=this.panelElements,n={width:Math.max(...(r==null?void 0:r.map(b=>b.offsetWidth))??[]),height:r==null?void 0:r.map(b=>b.offsetHeight).reduce((b,w)=>b+w,0)},s=this.triggerElement.getBoundingClientRect(),o=this.openOnPointer?{top:this.pointerOffsetY+s.top,left:this.pointerOffsetX+s.left,width:0,height:0}:s,a=8;let l,c,d,u,h=this.placement;if(h==="auto"){const b=i.width(),w=i.height();let _,g;w-o.top-o.height>n.height+a?_="bottom":o.top>n.height+a?_="top":b-o.left-o.width>n.width+a?_="right":o.left>n.width+a?_="left":_="bottom",["top","bottom"].includes(_)?b-o.left>n.width+a?g="start":o.left+o.width/2>n.width/2+a&&b-o.left-o.width/2>n.width/2+a?g=void 0:o.left+o.width>n.width+a?g="end":g="start":w-o.top>n.height+a?g="start":o.top+o.height/2>n.height/2+a&&w-o.top-o.height/2>n.height/2+a?g=void 0:o.top+o.height>n.height+a?g="end":g="start",h=g?[_,g].join("-"):_}const[f,m]=h.split("-");switch(this.animateDirection=["top","bottom"].includes(f)?"vertical":"horizontal",f){case"top":c="bottom",d=o.top-n.height;break;case"bottom":c="top",d=o.top+o.height;break;default:switch(c="center",m){case"start":d=o.top;break;case"end":d=o.top+o.height-n.height;break;default:d=o.top+o.height/2-n.height/2;break}break}switch(f){case"left":l="right",u=o.left-n.width;break;case"right":l="left",u=o.left+o.width;break;default:switch(l="center",m){case"start":u=o.left;break;case"end":u=o.left+o.width-n.width;break;default:u=o.left+o.width/2-n.width/2;break}break}t.css({top:d,left:u,transformOrigin:[l,c].join(" ")})}};ki.styles=[Ee,G9];v([R({type:Boolean,reflect:!0,converter:Y})],ki.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ki.prototype,"disabled",void 0);v([R({reflect:!0})],ki.prototype,"trigger",void 0);v([R({reflect:!0})],ki.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"stay-open-on-click"})],ki.prototype,"stayOpenOnClick",void 0);v([R({type:Number,reflect:!0,attribute:"open-delay"})],ki.prototype,"openDelay",void 0);v([R({type:Number,reflect:!0,attribute:"close-delay"})],ki.prototype,"closeDelay",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"open-on-pointer"})],ki.prototype,"openOnPointer",void 0);v([Ji({slot:"trigger",flatten:!0})],ki.prototype,"triggerElements",void 0);v([Ji({flatten:!0})],ki.prototype,"panelElements",void 0);v([re("placement",!0),re("openOnPointer",!0)],ki.prototype,"onPositionChange",null);v([re("open")],ki.prototype,"onOpenChange",null);ki=v([se("mdui-dropdown")],ki);const o5=(e=0)=>new Promise(t=>setTimeout(t,e)),Q9=me`:host{--shape-corner-small:var(--mdui-shape-corner-small);--shape-corner-normal:var(--mdui-shape-corner-large);--shape-corner-large:var(--mdui-shape-corner-extra-large);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner-normal);cursor:pointer;-webkit-tap-highlight-color:transparent;transition-property:box-shadow;transition-timing-function:var(--mdui-motion-easing-emphasized);transition-duration:var(--mdui-motion-duration-medium4);width:3.5rem;height:3.5rem;box-shadow:var(--mdui-elevation-level3);font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{padding:0 1rem}:host([size=small]) .button{padding:0 .5rem}:host([size=large]) .button{padding:0 1.875rem}:host([lowered]){box-shadow:var(--mdui-elevation-level1)}:host([focus-visible]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][focus-visible]){box-shadow:var(--mdui-elevation-level1)}:host([pressed]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][pressed]){box-shadow:var(--mdui-elevation-level1)}:host([hover]){box-shadow:var(--mdui-elevation-level4)}:host([lowered][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=primary]){color:rgb(var(--mdui-color-on-primary-container));background-color:rgb(var(--mdui-color-primary-container));--mdui-comp-ripple-state-layer-color:var( + */let H9=M9,D1=!1;const Lc=new Map,U9=(e,t)=>{D1||(D1=!0,Yn().addEventListener(V9,n=>{n.detail.status==="ready"&&Lc.forEach(s=>{s.forEach(o=>o())})}));const i=Lc.get(e)||[];i.push(t),Lc.set(e,i)},Bc=e=>{Lc.delete(e)},K9=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-large);--z-index:2300;position:fixed;z-index:var(--z-index);display:none;align-items:center;justify-content:center;inset:0;padding:3rem}::slotted(mdui-top-app-bar[slot=header]){position:absolute;border-top-left-radius:var(--mdui-shape-corner-extra-large);border-top-right-radius:var(--mdui-shape-corner-extra-large);background-color:rgb(var(--mdui-color-surface-container-high))}:host([fullscreen]){--shape-corner:var(--mdui-shape-corner-none);padding:0}:host([fullscreen]) ::slotted(mdui-top-app-bar[slot=header]){border-top-left-radius:var(--mdui-shape-corner-none);border-top-right-radius:var(--mdui-shape-corner-none)}.overlay{position:fixed;inset:0;background-color:rgba(var(--mdui-color-scrim),.4)}.panel{position:relative;display:flex;flex-direction:column;max-height:100%;border-radius:var(--shape-corner);outline:0;transform-origin:top;min-width:17.5rem;max-width:35rem;padding:1.5rem;background-color:rgb(var(--mdui-color-surface-container-high));box-shadow:var(--mdui-elevation-level3)}:host([fullscreen]) .panel{width:100%;max-width:100%;height:100%;max-height:100%;box-shadow:var(--mdui-elevation-level0)}.header{display:flex;flex-direction:column}.has-icon .header{align-items:center}.icon{display:flex;color:rgb(var(--mdui-color-secondary));font-size:1.5rem}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}.headline{display:flex;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.icon+.headline{padding-top:1rem}.body{overflow:auto}.header+.body{margin-top:1rem}.description{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([fullscreen]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description.has-default .description{margin-bottom:1rem}.action{display:flex;justify-content:flex-end;padding-top:1.5rem}.action::slotted(:not(:first-child)){margin-left:.5rem}:host([stacked-actions]) .action{flex-direction:column;align-items:end}:host([stacked-actions]) .action::slotted(:not(:first-child)){margin-left:0;margin-top:.5rem}`;let Xi=class extends Re{constructor(){super(...arguments),this.open=!1,this.fullscreen=!1,this.closeOnEsc=!1,this.closeOnOverlayClick=!1,this.stackedActions=!1,this.overlayRef=be(),this.panelRef=be(),this.bodyRef=be(),this.hasSlotController=new Ut(this,"header","icon","headline","description","action","[default]"),this.definedController=new Qt(this,{relatedElements:["mdui-top-app-bar"]})}async onOpenChange(){const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=Array.from(this.panelRef.value.querySelectorAll(".header, .body, .actions")),r=ci(this,"linear"),n=ci(this,"emphasized-decelerate"),s=ci(this,"emphasized-accelerate"),o=()=>Promise.all([Ii(this.overlayRef.value),Ii(this.panelRef.value),...i.map(a=>Ii(a))]);if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;this.style.display="flex";const a=this.topAppBarElements??[];if(a.length){const c=a[0];c.scrollTarget||(c.scrollTarget=this.bodyRef.value),this.bodyRef.value.style.marginTop="0"}this.originalTrigger=document.activeElement,this.modalHelper.activate(),wf(this),await o(),requestAnimationFrame(()=>{const c=this.querySelector("[autofocus]");c?c.focus({preventScroll:!0}):this.panelRef.value.focus({preventScroll:!0})});const l=ur(this,"medium4");await Promise.all([Xe(this.overlayRef.value,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:t?l:0,easing:r}),Xe(this.panelRef.value,[{transform:"translateY(-1.875rem) scaleY(0)"},{transform:"translateY(0) scaleY(1)"}],{duration:t?l:0,easing:n}),Xe(this.panelRef.value,[{opacity:0},{opacity:1,offset:.1},{opacity:1}],{duration:t?l:0,easing:r}),...i.map(c=>Xe(c,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:t?l:0,easing:r}))]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;this.modalHelper.deactivate(),await o();const l=ur(this,"short4");await Promise.all([Xe(this.overlayRef.value,[{opacity:1},{opacity:0}],{duration:l,easing:r}),Xe(this.panelRef.value,[{transform:"translateY(0) scaleY(1)"},{transform:"translateY(-1.875rem) scaleY(0.6)"}],{duration:l,easing:s}),Xe(this.panelRef.value,[{opacity:1},{opacity:1,offset:.75},{opacity:0}],{duration:l,easing:r}),...i.map(d=>Xe(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",za(this);const c=this.originalTrigger;typeof(c==null?void 0:c.focus)=="function"&&setTimeout(()=>c.focus()),this.emit("closed")}}disconnectedCallback(){super.disconnectedCallback(),za(this),Bc(this)}firstUpdated(t){super.firstUpdated(t),this.modalHelper=new Jb(this),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&(i.stopPropagation(),this.open=!1)})}render(){const t=this.hasSlotController.test("action"),i=this.hasSlotController.test("[default]"),r=!!this.icon||this.hasSlotController.test("icon"),n=!!this.headline||this.hasSlotController.test("headline"),s=!!this.description||this.hasSlotController.test("description"),o=r||n||this.hasSlotController.test("header"),a=s||i;return D`
${et(o,()=>D`${et(r,()=>this.renderIcon())} ${et(n,()=>this.renderHeadline())}`)} ${et(a,()=>D`
${et(s,()=>this.renderDescription())}
`)} ${et(t,()=>D``)}
`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}renderIcon(){return D`${this.icon?D``:Ke}`}renderHeadline(){return D`${this.headline}`}renderDescription(){return D`${this.description}`}};Xi.styles=[Ee,K9];v([R({reflect:!0})],Xi.prototype,"icon",void 0);v([R({reflect:!0})],Xi.prototype,"headline",void 0);v([R({reflect:!0})],Xi.prototype,"description",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Xi.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Xi.prototype,"fullscreen",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],Xi.prototype,"closeOnEsc",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],Xi.prototype,"closeOnOverlayClick",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"stacked-actions"})],Xi.prototype,"stackedActions",void 0);v([Ji({slot:"header",selector:"mdui-top-app-bar",flatten:!0})],Xi.prototype,"topAppBarElements",void 0);v([re("open")],Xi.prototype,"onOpenChange",null);Xi=v([se("mdui-dialog")],Xi);const W9=pe`:host{display:block;height:.0625rem;background-color:rgb(var(--mdui-color-surface-variant))}:host([inset]){margin-left:1rem}:host([middle]){margin-left:1rem;margin-right:1rem}:host([vertical]){height:100%;width:.0625rem}`;let Zo=class extends Re{constructor(){super(...arguments),this.vertical=!1,this.inset=!1,this.middle=!1}render(){return D``}};Zo.styles=[Ee,W9];v([R({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"vertical",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"inset",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zo.prototype,"middle",void 0);Zo=v([se("mdui-divider")],Zo);function t5(e){return i5(e)?(e.nodeName||"").toLowerCase():"#document"}function Wl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q9(e){var t;return(t=(i5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function i5(e){return e instanceof Node||e instanceof Wl(e).Node}function j9(e){return e instanceof HTMLElement||e instanceof Wl(e).HTMLElement}function L1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wl(e).ShadowRoot}function r5(e){const{overflow:t,overflowX:i,overflowY:r,display:n}=X9(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!["inline","contents"].includes(n)}function Y9(e){return["html","body","#document"].includes(t5(e))}function X9(e){return Wl(e).getComputedStyle(e)}function Z9(e){if(t5(e)==="html")return e;const t=e.assignedSlot||e.parentNode||L1(e)&&e.host||q9(e);return L1(t)?t.host:t}function n5(e){const t=Z9(e);return Y9(t)?e.ownerDocument?e.ownerDocument.body:e.body:j9(t)&&r5(t)?t:n5(t)}function gd(e,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const n=n5(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),o=Wl(n);return s?t.concat(o,o.visualViewport||[],r5(n)?n:[],o.frameElement&&i?gd(o.frameElement):[]):t.concat(n,gd(n,[],i))}const G9=pe`:host{--z-index:2100;display:contents}.panel{display:block;position:fixed;z-index:var(--z-index)}`;let ki=class extends Re{constructor(){super(),this.open=!1,this.disabled=!1,this.trigger="click",this.placement="auto",this.stayOpenOnClick=!1,this.openDelay=150,this.closeDelay=150,this.openOnPointer=!1,this.panelRef=be(),this.definedController=new Qt(this,{relatedElements:[""]}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onDocumentKeydown=this.onDocumentKeydown.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.onContextMenu=this.onContextMenu.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onPanelClick=this.onPanelClick.bind(this)}get triggerElement(){return this.triggerElements[0]}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){var s,o;const t=this.hasUpdated;if(!this.open&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=ci(this,"linear"),r=ci(this,"emphasized-decelerate"),n=ci(this,"emphasized-accelerate");if(this.open){if(t&&!this.emit("open",{cancelable:!0}))return;const a=this.panelElements.find(c=>Ct(c.focus));setTimeout(()=>{a==null||a.focus()});const l=ur(this,"medium4");await Ii(this.panelRef.value),this.panelRef.value.hidden=!1,this.updatePositioner(),await Promise.all([Xe(this.panelRef.value,[{transform:`${this.getCssScaleName()}(0.45)`},{transform:`${this.getCssScaleName()}(1)`}],{duration:t?l:0,easing:r}),Xe(this.panelRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?l:0,easing:i})]),t&&this.emit("opened")}else{if(!this.emit("close",{cancelable:!0}))return;!this.hasTrigger("focus")&&Ct((s=this.triggerElement)==null?void 0:s.focus)&&(this.contains(document.activeElement)||this.contains(((o=document.activeElement)==null?void 0:o.assignedSlot)??null))&&this.triggerElement.focus();const l=ur(this,"short4");await Ii(this.panelRef.value),await Promise.all([Xe(this.panelRef.value,[{transform:`${this.getCssScaleName()}(1)`},{transform:`${this.getCssScaleName()}(0.45)`}],{duration:l,easing:n}),Xe(this.panelRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:l,easing:i})]),this.panelRef.value&&(this.panelRef.value.hidden=!0),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onDocumentClick),document.addEventListener("keydown",this.onDocumentKeydown),this.overflowAncestors=gd(this.triggerElement),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),document.removeEventListener("keydown",this.onDocumentKeydown),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("mouseleave",this.onMouseLeave),this.definedController.whenDefined().then(()=>{this.triggerElement.addEventListener("focus",this.onFocus),this.triggerElement.addEventListener("click",this.onClick),this.triggerElement.addEventListener("contextmenu",this.onContextMenu),this.triggerElement.addEventListener("mouseenter",this.onMouseEnter),this.observeResize=to(this.triggerElement,()=>{this.updatePositioner()})})}render(){return D``}getCssScaleName(){return this.animateDirection==="horizontal"?"scaleX":"scaleY"}onDocumentClick(t){if(this.disabled||!this.open)return;const i=t.composedPath();i.includes(this)||(this.open=!1),this.hasTrigger("contextmenu")&&!this.hasTrigger("click")&&i.includes(this.triggerElement)&&(this.open=!1)}onDocumentKeydown(t){var i;if(!(this.disabled||!this.open)){if(t.key==="Escape"){this.open=!1;return}t.key==="Tab"&&(!this.hasTrigger("focus")&&Ct((i=this.triggerElement)==null?void 0:i.focus)&&t.preventDefault(),this.open=!1)}}onWindowScroll(){window.requestAnimationFrame(()=>this.onPositionChange())}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!this.open)}onPanelClick(t){!this.disabled&&!this.stayOpenOnClick&&B(t.target).is("mdui-menu-item")&&(this.open=!1)}onContextMenu(t){this.disabled||!this.hasTrigger("contextmenu")||(t.preventDefault(),this.pointerOffsetX=t.offsetX,this.pointerOffsetY=t.offsetY,this.open=!0)}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.closeTimeout),this.openDelay?this.openTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay):this.open=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||(window.clearTimeout(this.openTimeout),this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50))}updatePositioner(){const t=B(this.panelRef.value),i=B(window),r=this.panelElements,n={width:Math.max(...(r==null?void 0:r.map(b=>b.offsetWidth))??[]),height:r==null?void 0:r.map(b=>b.offsetHeight).reduce((b,w)=>b+w,0)},s=this.triggerElement.getBoundingClientRect(),o=this.openOnPointer?{top:this.pointerOffsetY+s.top,left:this.pointerOffsetX+s.left,width:0,height:0}:s,a=8;let l,c,d,u,h=this.placement;if(h==="auto"){const b=i.width(),w=i.height();let _,g;w-o.top-o.height>n.height+a?_="bottom":o.top>n.height+a?_="top":b-o.left-o.width>n.width+a?_="right":o.left>n.width+a?_="left":_="bottom",["top","bottom"].includes(_)?b-o.left>n.width+a?g="start":o.left+o.width/2>n.width/2+a&&b-o.left-o.width/2>n.width/2+a?g=void 0:o.left+o.width>n.width+a?g="end":g="start":w-o.top>n.height+a?g="start":o.top+o.height/2>n.height/2+a&&w-o.top-o.height/2>n.height/2+a?g=void 0:o.top+o.height>n.height+a?g="end":g="start",h=g?[_,g].join("-"):_}const[f,m]=h.split("-");switch(this.animateDirection=["top","bottom"].includes(f)?"vertical":"horizontal",f){case"top":c="bottom",d=o.top-n.height;break;case"bottom":c="top",d=o.top+o.height;break;default:switch(c="center",m){case"start":d=o.top;break;case"end":d=o.top+o.height-n.height;break;default:d=o.top+o.height/2-n.height/2;break}break}switch(f){case"left":l="right",u=o.left-n.width;break;case"right":l="left",u=o.left+o.width;break;default:switch(l="center",m){case"start":u=o.left;break;case"end":u=o.left+o.width-n.width;break;default:u=o.left+o.width/2-n.width/2;break}break}t.css({top:d,left:u,transformOrigin:[l,c].join(" ")})}};ki.styles=[Ee,G9];v([R({type:Boolean,reflect:!0,converter:Y})],ki.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ki.prototype,"disabled",void 0);v([R({reflect:!0})],ki.prototype,"trigger",void 0);v([R({reflect:!0})],ki.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"stay-open-on-click"})],ki.prototype,"stayOpenOnClick",void 0);v([R({type:Number,reflect:!0,attribute:"open-delay"})],ki.prototype,"openDelay",void 0);v([R({type:Number,reflect:!0,attribute:"close-delay"})],ki.prototype,"closeDelay",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"open-on-pointer"})],ki.prototype,"openOnPointer",void 0);v([Ji({slot:"trigger",flatten:!0})],ki.prototype,"triggerElements",void 0);v([Ji({flatten:!0})],ki.prototype,"panelElements",void 0);v([re("placement",!0),re("openOnPointer",!0)],ki.prototype,"onPositionChange",null);v([re("open")],ki.prototype,"onOpenChange",null);ki=v([se("mdui-dropdown")],ki);const s5=(e=0)=>new Promise(t=>setTimeout(t,e)),Q9=pe`:host{--shape-corner-small:var(--mdui-shape-corner-small);--shape-corner-normal:var(--mdui-shape-corner-large);--shape-corner-large:var(--mdui-shape-corner-extra-large);position:relative;display:inline-block;overflow:hidden;text-align:center;border-radius:var(--shape-corner-normal);cursor:pointer;-webkit-tap-highlight-color:transparent;transition-property:box-shadow;transition-timing-function:var(--mdui-motion-easing-emphasized);transition-duration:var(--mdui-motion-duration-medium4);width:3.5rem;height:3.5rem;box-shadow:var(--mdui-elevation-level3);font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.button{padding:0 1rem}:host([size=small]) .button{padding:0 .5rem}:host([size=large]) .button{padding:0 1.875rem}:host([lowered]){box-shadow:var(--mdui-elevation-level1)}:host([focus-visible]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][focus-visible]){box-shadow:var(--mdui-elevation-level1)}:host([pressed]){box-shadow:var(--mdui-elevation-level3)}:host([lowered][pressed]){box-shadow:var(--mdui-elevation-level1)}:host([hover]){box-shadow:var(--mdui-elevation-level4)}:host([lowered][hover]){box-shadow:var(--mdui-elevation-level2)}:host([variant=primary]){color:rgb(var(--mdui-color-on-primary-container));background-color:rgb(var(--mdui-color-primary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-primary-container )}:host([variant=surface]){color:rgb(var(--mdui-color-primary));background-color:rgb(var(--mdui-color-surface-container-high));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([variant=surface][lowered]){background-color:rgb(var(--mdui-color-surface-container-low))}:host([variant=secondary]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container )}:host([variant=tertiary]){color:rgb(var(--mdui-color-on-tertiary-container));background-color:rgb(var(--mdui-color-tertiary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-tertiary-container - )}:host([size=small]){border-radius:var(--shape-corner-small);width:2.5rem;height:2.5rem}:host([size=large]){border-radius:var(--shape-corner-large);width:6rem;height:6rem}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),12%);box-shadow:var(--mdui-elevation-level0)}:host([extended]){width:auto}.label{display:inline-flex;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear) var(--mdui-motion-duration-short2);padding-left:.25rem;padding-right:.25rem}.has-icon .label{margin-left:.5rem}:host([size=small]) .has-icon .label{margin-left:.25rem}:host([size=large]) .has-icon .label{margin-left:1rem}:host(:not([extended])) .label{opacity:0;transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([size=large]) .label{font-size:1.5em}.icon{display:inline-flex;font-size:1.71428571em}:host([size=large]) .icon{font-size:2.57142857em}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.5rem;height:1.5rem}:host([size=large]) mdui-circular-progress{width:2.25rem;height:2.25rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let Un=class extends ft{constructor(){super(...arguments),this.variant="primary",this.size="normal",this.extended=!1,this.rippleRef=be(),this.hasSlotController=new Ut(this,"icon"),this.definedController=new Qt(this,{relatedElements:[""]})}get rippleElement(){return this.rippleRef.value}async onExtendedChange(){const t=this.hasUpdated;this.extended?this.style.width=`${this.scrollWidth}px`:this.style.width="",await this.definedController.whenDefined(),await this.updateComplete,this.extended&&!t&&(this.style.width=`${this.scrollWidth}px`),t||(await o5(),this.style.transitionProperty="box-shadow, width, bottom, transform")}render(){const t=Or({button:!0,"has-icon":this.icon||this.hasSlotController.test("icon")});return D`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.disabled||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}renderLabel(){return D``}renderIcon(){return this.loading?this.renderLoading():D`${this.icon?D``:Ke}`}renderInner(){return[this.renderIcon(),this.renderLabel()]}};Un.styles=[ft.styles,Q9];v([R({reflect:!0})],Un.prototype,"variant",void 0);v([R({reflect:!0})],Un.prototype,"size",void 0);v([R({reflect:!0})],Un.prototype,"icon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Un.prototype,"extended",void 0);v([re("extended")],Un.prototype,"onExtendedChange",null);Un=v([se("mdui-fab")],Un);const J9=me`:host{position:relative;display:flex;flex:1 1 auto;overflow:hidden}:host([full-height]){height:100%}`;let vd=class extends Ne{constructor(){super(...arguments),this.fullHeight=!1}render(){return D``}};vd.styles=[Ee,J9];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-height"})],vd.prototype,"fullHeight",void 0);vd=v([se("mdui-layout")],vd);const ek=me`:host{display:flex;z-index:1}`;let vl=class extends Zn{constructor(){super(...arguments),this.placement="top"}get layoutPlacement(){return this.placement}onPlacementChange(){var t;(t=this.layoutManager)==null||t.updateLayout(this)}render(){return D``}};vl.styles=[Ee,ek];v([R({reflect:!0})],vl.prototype,"placement",void 0);v([re("placement",!0)],vl.prototype,"onPlacementChange",null);vl=v([se("mdui-layout-item")],vl);const tk=me`:host{flex:1 0 auto;max-width:100%;overflow:auto}`;let _f=class extends Ne{connectedCallback(){super.connectedCallback();const t=this.parentElement;zl(t,"mdui-layout")&&(this.layoutManager=Qb(t),this.layoutManager.registerMain(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterMain()}render(){return D``}};_f.styles=[Ee,tk];_f=v([se("mdui-layout-main")],_f);const ik=me`:host{--shape-corner:var(--mdui-shape-corner-none);position:relative;display:inline-block;width:100%;overflow:hidden;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container-highest));height:.25rem}.determinate,.indeterminate{background-color:rgb(var(--mdui-color-primary))}.determinate{height:100%;transition:width var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate::before{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate 2s var(--mdui-motion-easing-linear) infinite;content:' '}.indeterminate::after{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate-short 2s var(--mdui-motion-easing-linear) infinite;content:' '}@keyframes mdui-comp-progress-indeterminate{0%{left:0;width:0}50%{left:30%;width:70%}75%{left:100%;width:0}}@keyframes mdui-comp-progress-indeterminate-short{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}100%{left:100%;width:0}}`;let yl=class extends Ne{constructor(){super(...arguments),this.max=1}render(){if(!ot(this.value)){const i=this.value;return D`
`}return D`
`}};yl.styles=[Ee,ik];v([R({type:Number,reflect:!0})],yl.prototype,"max",void 0);v([R({type:Number})],yl.prototype,"value",void 0);yl=v([se("mdui-linear-progress")],yl);const rk=me`:host{--shape-corner:var(--mdui-shape-corner-none);--shape-corner-rounded:var(--mdui-shape-corner-extra-large);position:relative;display:block;border-radius:var(--shape-corner);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([rounded]),:host([rounded]) mdui-ripple{border-radius:var(--shape-corner-rounded)}:host([active]){background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + )}:host([size=small]){border-radius:var(--shape-corner-small);width:2.5rem;height:2.5rem}:host([size=large]){border-radius:var(--shape-corner-large);width:6rem;height:6rem}:host([disabled]),:host([loading]){cursor:default;pointer-events:none}:host([disabled]){color:rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),12%);box-shadow:var(--mdui-elevation-level0)}:host([extended]){width:auto}.label{display:inline-flex;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear) var(--mdui-motion-duration-short2);padding-left:.25rem;padding-right:.25rem}.has-icon .label{margin-left:.5rem}:host([size=small]) .has-icon .label{margin-left:.25rem}:host([size=large]) .has-icon .label{margin-left:1rem}:host(:not([extended])) .label{opacity:0;transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([size=large]) .label{font-size:1.5em}.icon{display:inline-flex;font-size:1.71428571em}:host([size=large]) .icon{font-size:2.57142857em}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit}mdui-circular-progress{display:inline-flex;width:1.5rem;height:1.5rem}:host([size=large]) mdui-circular-progress{width:2.25rem;height:2.25rem}:host([disabled]) mdui-circular-progress{stroke:rgba(var(--mdui-color-on-surface),38%)}`;let Un=class extends ft{constructor(){super(...arguments),this.variant="primary",this.size="normal",this.extended=!1,this.rippleRef=be(),this.hasSlotController=new Ut(this,"icon"),this.definedController=new Qt(this,{relatedElements:[""]})}get rippleElement(){return this.rippleRef.value}async onExtendedChange(){const t=this.hasUpdated;this.extended?this.style.width=`${this.scrollWidth}px`:this.style.width="",await this.definedController.whenDefined(),await this.updateComplete,this.extended&&!t&&(this.style.width=`${this.scrollWidth}px`),t||(await s5(),this.style.transitionProperty="box-shadow, width, bottom, transform")}render(){const t=Or({button:!0,"has-icon":this.icon||this.hasSlotController.test("icon")});return D`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.disabled||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}renderLabel(){return D``}renderIcon(){return this.loading?this.renderLoading():D`${this.icon?D``:Ke}`}renderInner(){return[this.renderIcon(),this.renderLabel()]}};Un.styles=[ft.styles,Q9];v([R({reflect:!0})],Un.prototype,"variant",void 0);v([R({reflect:!0})],Un.prototype,"size",void 0);v([R({reflect:!0})],Un.prototype,"icon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Un.prototype,"extended",void 0);v([re("extended")],Un.prototype,"onExtendedChange",null);Un=v([se("mdui-fab")],Un);const J9=pe`:host{position:relative;display:flex;flex:1 1 auto;overflow:hidden}:host([full-height]){height:100%}`;let vd=class extends Re{constructor(){super(...arguments),this.fullHeight=!1}render(){return D``}};vd.styles=[Ee,J9];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-height"})],vd.prototype,"fullHeight",void 0);vd=v([se("mdui-layout")],vd);const ek=pe`:host{display:flex;z-index:1}`;let vl=class extends Zn{constructor(){super(...arguments),this.placement="top"}get layoutPlacement(){return this.placement}onPlacementChange(){var t;(t=this.layoutManager)==null||t.updateLayout(this)}render(){return D``}};vl.styles=[Ee,ek];v([R({reflect:!0})],vl.prototype,"placement",void 0);v([re("placement",!0)],vl.prototype,"onPlacementChange",null);vl=v([se("mdui-layout-item")],vl);const tk=pe`:host{flex:1 0 auto;max-width:100%;overflow:auto}`;let _f=class extends Re{connectedCallback(){super.connectedCallback();const t=this.parentElement;zl(t,"mdui-layout")&&(this.layoutManager=Gb(t),this.layoutManager.registerMain(this))}disconnectedCallback(){super.disconnectedCallback(),this.layoutManager&&this.layoutManager.unregisterMain()}render(){return D``}};_f.styles=[Ee,tk];_f=v([se("mdui-layout-main")],_f);const ik=pe`:host{--shape-corner:var(--mdui-shape-corner-none);position:relative;display:inline-block;width:100%;overflow:hidden;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container-highest));height:.25rem}.determinate,.indeterminate{background-color:rgb(var(--mdui-color-primary))}.determinate{height:100%;transition:width var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard)}.indeterminate::before{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate 2s var(--mdui-motion-easing-linear) infinite;content:' '}.indeterminate::after{position:absolute;top:0;bottom:0;left:0;background-color:inherit;animation:mdui-comp-progress-indeterminate-short 2s var(--mdui-motion-easing-linear) infinite;content:' '}@keyframes mdui-comp-progress-indeterminate{0%{left:0;width:0}50%{left:30%;width:70%}75%{left:100%;width:0}}@keyframes mdui-comp-progress-indeterminate-short{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}100%{left:100%;width:0}}`;let yl=class extends Re{constructor(){super(...arguments),this.max=1}render(){if(!ot(this.value)){const i=this.value;return D`
`}return D`
`}};yl.styles=[Ee,ik];v([R({type:Number,reflect:!0})],yl.prototype,"max",void 0);v([R({type:Number})],yl.prototype,"value",void 0);yl=v([se("mdui-linear-progress")],yl);const rk=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--shape-corner-rounded:var(--mdui-shape-corner-extra-large);position:relative;display:block;border-radius:var(--shape-corner);--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([rounded]),:host([rounded]) mdui-ripple{border-radius:var(--shape-corner-rounded)}:host([active]){background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}:host([nonclickable]:not([href])) .container{cursor:auto;-webkit-user-select:auto;user-select:auto}.preset{display:flex;align-items:center;padding:.5rem 1.5rem .5rem 1rem;min-height:3.5rem}:host([alignment=start]) .preset{align-items:flex-start}:host([alignment=end]) .preset{align-items:flex-end}.body{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0}.headline{display:block;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([active]) .headline{color:rgb(var(--mdui-color-on-secondary-container))}.description{display:none;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([disabled]) .description,:host([focused]) .description,:host([hover]) .description,:host([pressed]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description .description{display:block}:host([description-line='1']) .description,:host([headline-line='1']) .headline{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([description-line='2']) .description,:host([description-line='3']) .description,:host([headline-line='2']) .headline,:host([headline-line='3']) .headline{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}:host([description-line='2']) .description,:host([headline-line='2']) .headline{-webkit-line-clamp:2}:host([description-line='3']) .description,:host([headline-line='3']) .headline{-webkit-line-clamp:3}.end-icon,.icon{display:flex;flex:0 0 auto;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([focused]) .end-icon,:host([focused]) .icon,:host([hover]) .end-icon,:host([hover]) .icon,:host([pressed]) .end-icon,:host([pressed]) .icon{color:rgb(var(--mdui-color-on-surface))}:host([active]) .end-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}.end-icon mdui-icon,.icon mdui-icon,.is-end-icon ::slotted([slot=end-icon]),.is-icon ::slotted([slot=icon]){font-size:1.5rem}.has-icon .icon{margin-right:1rem}.has-icon ::slotted(mdui-checkbox[slot=icon]),.has-icon ::slotted(mdui-radio[slot=icon]){margin-left:-.5rem}.has-end-icon .end-icon{margin-left:1rem}.has-end-icon ::slotted(mdui-checkbox[slot=end-icon]),.has-end-icon ::slotted(mdui-radio[slot=end-icon]){margin-right:-.5rem}`;let di=class extends sa(Er(er(Ne))){constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.nonclickable=!1,this.rounded=!1,this.alignment="center",this.rippleRef=be(),this.itemRef=be(),this.hasSlotController=new Ut(this,"[default]","description","icon","end-icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.focusDisabled}get focusElement(){return this.href&&!this.disabled?this.itemRef.value:this}get focusDisabled(){return this.href?this.disabled:this.disabled||this.nonclickable}render(){const t=!this.hasSlotController.test("custom"),i=this.icon||this.hasSlotController.test("icon"),r=this.endIcon||this.hasSlotController.test("end-icon"),n=this.description||this.hasSlotController.test("description"),s=Or({container:!0,preset:t,"has-icon":i,"has-end-icon":r,"has-description":n,"is-icon":zl(this.iconElements[0],"mdui-icon"),"is-end-icon":d_(this.endIconElements[0]).startsWith("mdui-icon-")});return D`${this.href&&!this.disabled?this.renderAnchor({className:s,content:this.renderInner(),part:"container",refDirective:he(this.itemRef)}):D`
${this.renderInner()}
`}`}renderInner(){const t=this.hasSlotController.test("[default]");return D`${this.icon?D``:Ke}
${t?D``:D`
${this.headline}
`}${this.description}
${this.endIcon?D``:Ke}
`}};di.styles=[Ee,rk];v([R({reflect:!0})],di.prototype,"headline",void 0);v([R({type:Number,reflect:!0,attribute:"headline-line"})],di.prototype,"headlineLine",void 0);v([R({reflect:!0})],di.prototype,"description",void 0);v([R({type:Number,reflect:!0,attribute:"description-line"})],di.prototype,"descriptionLine",void 0);v([R({reflect:!0})],di.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],di.prototype,"endIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"active",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"nonclickable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"rounded",void 0);v([R({reflect:!0})],di.prototype,"alignment",void 0);v([Ji({slot:"icon",flatten:!0})],di.prototype,"iconElements",void 0);v([Ji({slot:"end-icon",flatten:!0})],di.prototype,"endIconElements",void 0);di=v([se("mdui-list-item")],di);const nk=me`:host{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:default;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);padding-left:1rem;padding-right:1.5rem;height:3.5rem;line-height:3.5rem}`;let kf=class extends Ne{render(){return D``}};kf.styles=[Ee,nk];kf=v([se("mdui-list-subheader")],kf);const sk=me`:host{display:block;padding:.5rem 0}::slotted(mdui-divider[middle]){margin-left:1rem;margin-right:1.5rem}`;let Cf=class extends Ne{render(){return D``}};Cf.styles=[Ee,sk];Cf=v([se("mdui-list")],Cf);let Af=class extends ht{render(){return ei('')}};Af.styles=Jt;Af=v([se("mdui-icon-arrow-right")],Af);const ok=me`:host{position:relative;display:block}:host([selected]){background-color:rgba(var(--mdui-color-primary),12%)}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}.preset{display:flex;align-items:center;text-decoration:none;height:3rem;padding:0 .75rem}.preset.dense{height:2rem}.label-container{flex:1 1 100%;min-width:0}.label{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.end-icon,.end-text,.icon,.selected-icon{display:none;flex:0 0 auto;color:rgb(var(--mdui-color-on-surface-variant))}.has-end-icon .end-icon,.has-end-text .end-text,.has-icon .icon,.has-icon .selected-icon{display:flex}.end-icon,.icon,.selected-icon{font-size:1.5rem}.end-icon::slotted(mdui-avatar),.icon::slotted(mdui-avatar),.selected-icon::slotted(mdui-avatar){width:1.5rem;height:1.5rem}.dense .end-icon,.dense .icon,.dense .selected-icon{font-size:1.125rem}.dense .end-icon::slotted(mdui-avatar),.dense .icon::slotted(mdui-avatar),.dense .selected-icon::slotted(mdui-avatar){width:1.125rem;height:1.125rem}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}.end-text{font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon,.selected-icon{margin-right:.75rem}.end-icon,.end-text{margin-left:.75rem}.arrow-right{color:rgb(var(--mdui-color-on-surface))}.submenu{--shape-corner:var(--mdui-shape-corner-extra-small);display:block;position:absolute;z-index:1;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.submenu::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let Ht=class extends sa(Er(er(Ne))){constructor(){super(),this.disabled=!1,this.submenuOpen=!1,this.selected=!1,this.dense=!1,this.focusable=!1,this.key=Xn(),this.rippleRef=be(),this.containerRef=be(),this.submenuRef=be(),this.hasSlotController=new Ut(this,"[default]","icon","end-icon","end-text","submenu","custom"),this.definedController=new Qt(this,{relatedElements:[""]}),this.onOuterClick=this.onOuterClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get focusDisabled(){return this.disabled||!this.focusable}get focusElement(){return this.href&&!this.disabled?this.containerRef.value:this}get rippleDisabled(){return this.disabled}get rippleElement(){return this.rippleRef.value}get hasSubmenu(){return this.hasSlotController.test("submenu")}async onOpenChange(){const t=this.hasUpdated;if(!this.submenuOpen&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=ci(this,"linear"),r=ci(this,"emphasized-decelerate"),n=ci(this,"emphasized-accelerate");if(this.submenuOpen){if(t&&!this.emit("submenu-open",{cancelable:!0}))return;const s=ur(this,"medium4");await Ii(this.submenuRef.value),this.submenuRef.value.hidden=!1,this.updateSubmenuPositioner(),await Promise.all([Xe(this.submenuRef.value,[{transform:"scaleY(0.45)"},{transform:"scaleY(1)"}],{duration:t?s:0,easing:r}),Xe(this.submenuRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?s:0,easing:i})]),t&&this.emit("submenu-opened")}else{if(!this.emit("submenu-close",{cancelable:!0}))return;const o=ur(this,"short4");await Ii(this.submenuRef.value),await Promise.all([Xe(this.submenuRef.value,[{transform:"scaleY(1)"},{transform:"scaleY(0.45)"}],{duration:o,easing:n}),Xe(this.submenuRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:o,easing:i})]),this.submenuRef.value&&(this.submenuRef.value.hidden=!0),this.emit("submenu-closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onOuterClick)})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onOuterClick)}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.addEventListener("focus",this.onFocus),this.addEventListener("blur",this.onBlur),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeydown),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave)})}render(){const t=this.hasSubmenu,i=this.hasSlotController.test("custom"),r=this.hasSlotController.test("end-icon"),n=!this.endIcon&&t&&!r,s=this.endIcon||t||r,o=!ot(this.icon)||this.selects==="single"||this.selects==="multiple"||this.hasSlotController.test("icon"),a=!!this.endText||this.hasSlotController.test("end-text"),l=Or({container:!0,dense:this.dense,preset:!i,"has-icon":o,"has-end-text":a,"has-end-icon":s});return D`${this.href&&!this.disabled?this.renderAnchor({part:"container",className:l,content:this.renderInner(n,o),refDirective:he(this.containerRef),tabIndex:this.focusable?0:-1}):D`
${this.renderInner(n,o)}
`} ${et(t,()=>D``)}`}onOuterClick(t){!this.disabled&&this.submenuOpen&&this!==t.target&&!M.contains(this,t.target)&&(this.submenuOpen=!1)}hasTrigger(t){return this.submenuTrigger?this.submenuTrigger.split(" ").includes(t):!1}onFocus(){this.disabled||this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!0)}onBlur(){this.disabled||!this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!1)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||t.target!==this||!this.hasSubmenu||this.submenuOpen&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.submenuOpen=!this.submenuOpen)}onKeydown(t){this.disabled||!this.hasSubmenu||(!this.submenuOpen&&t.key==="Enter"&&(t.stopPropagation(),this.submenuOpen=!0),this.submenuOpen&&t.key==="Escape"&&(t.stopPropagation(),this.submenuOpen=!1))}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuCloseTimeout),this.submenuOpenDelay?this.submenuOpenTimeout=window.setTimeout(()=>{this.submenuOpen=!0},this.submenuOpenDelay):this.submenuOpen=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuOpenTimeout),this.submenuCloseTimeout=window.setTimeout(()=>{this.submenuOpen=!1},this.submenuCloseDelay||50))}updateSubmenuPositioner(){const t=M(window),i=M(this.submenuRef.value),r=this.getBoundingClientRect(),n=i.innerWidth(),s=i.innerHeight(),o=8;let a="bottom",l="right";t.height()-r.top>s+o?a="bottom":r.top+r.height>s+o&&(a="top"),t.width()-r.left-r.width>n+o?l="right":r.left>n+o&&(l="left"),M(this.submenuRef.value).css({top:a==="bottom"?0:r.height-s,left:l==="right"?r.width:-n,transformOrigin:[l==="right"?0:"100%",a==="bottom"?0:"100%"].join(" ")})}renderInner(t,i){return D`${this.selected?D`${this.selectedIcon?D``:D``}`:D`${i?D``:Ke}`}
${this.endText}${t?D``:D`${this.endIcon?D``:Ke}`}
`}};Ht.styles=[Ee,ok];v([R({reflect:!0})],Ht.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ht.prototype,"disabled",void 0);v([R({reflect:!0})],Ht.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Ht.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"end-text"})],Ht.prototype,"endText",void 0);v([R({reflect:!0,attribute:"selected-icon"})],Ht.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"submenu-open"})],Ht.prototype,"submenuOpen",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ht.prototype,"selected",void 0);v([Ce()],Ht.prototype,"dense",void 0);v([Ce()],Ht.prototype,"selects",void 0);v([Ce()],Ht.prototype,"submenuTrigger",void 0);v([Ce()],Ht.prototype,"submenuOpenDelay",void 0);v([Ce()],Ht.prototype,"submenuCloseDelay",void 0);v([Ce()],Ht.prototype,"focusable",void 0);v([re("submenuOpen")],Ht.prototype,"onOpenChange",null);Ht=v([se("mdui-menu-item")],Ht);const ak=me`:host{--shape-corner:var(--mdui-shape-corner-extra-small);position:relative;display:block;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let Ci=class extends Ne{constructor(){super(...arguments),this.dense=!1,this.submenuTrigger="click hover",this.submenuOpenDelay=200,this.submenuCloseDelay=200,this.selectedKeys=[],this.isInitial=!0,this.lastActiveItems=[],this.definedController=new Qt(this,{relatedElements:["mdui-menu-item"]})}get items(){return M(this.childrenItems).find("mdui-menu-item").add(this.childrenItems).get()}get itemsEnabled(){return this.items.filter(t=>!t.disabled)}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}get isSubmenu(){return!M(this).parent().length}get lastActiveItem(){const t=this.lastActiveItems.length?this.lastActiveItems.length-1:0;return this.lastActiveItems[t]}set lastActiveItem(t){const i=this.lastActiveItems.length?this.lastActiveItems.length-1:0;this.lastActiveItems[i]=t}async onSlotChange(){await this.definedController.whenDefined(),this.items.forEach(t=>{t.dense=this.dense,t.selects=this.selects,t.submenuTrigger=this.submenuTrigger,t.submenuOpenDelay=this.submenuOpenDelay,t.submenuCloseDelay=this.submenuCloseDelay})}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||void 0;this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateSelected();return}const t=(this.isSingle?[this.value]:At(this.value)?[this.value]:this.value).filter(i=>i);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const i=this.itemsEnabled.find(r=>r.value===t[0]);this.setSelectedKeys(i?[i.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(i=>t.includes(i.value)).map(i=>i.key));this.updateSelected(),this.updateFocusable()}focus(t){this.lastActiveItem&&this.focusOne(this.lastActiveItem,t)}blur(){this.lastActiveItem&&this.lastActiveItem.blur()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.updateFocusable(),this.lastActiveItem=this.items.find(i=>i.focusable)}),this.addEventListener("submenu-open",i=>{const r=M(i.target),n=r.children("mdui-menu-item:not([disabled])").get(),s=r.parents("mdui-menu-item").length+1;n.length&&(this.lastActiveItems[s]=n[0],this.updateFocusable(),this.focusOne(this.lastActiveItems[s]))}),this.addEventListener("submenu-close",i=>{const n=M(i.target).parents("mdui-menu-item").length+1;this.lastActiveItems.length-1===n&&(this.lastActiveItems.pop(),this.updateFocusable(),this.lastActiveItems[n-1]&&this.focusOne(this.lastActiveItems[n-1]))})}render(){return D``}setSelectedKeys(t){Xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle||ot(this.value)||ot(t)?this.value=t:Xo(this.value,t)||(this.value=t)}getSiblingsItems(t,i=!1){return M(t).parent().children(`mdui-menu-item${i?":not([disabled])":""}`).get()}updateFocusable(){if(this.lastActiveItem){this.items.forEach(t=>{t.focusable=t.key===this.lastActiveItem.key});return}if(!this.selectedKeys.length){this.itemsEnabled.forEach((t,i)=>{t.focusable=!i});return}if(this.isSingle){this.items.forEach(t=>{t.focusable=this.selectedKeys.includes(t.key)});return}if(this.isMultiple){const t=this.items.find(i=>i.focusable);(!(t!=null&&t.key)||!this.selectedKeys.includes(t.key))&&this.itemsEnabled.filter(i=>this.selectedKeys.includes(i.key)).forEach((i,r)=>i.focusable=!r)}}updateSelected(){this.items.forEach(t=>{t.selected=this.selectedKeys.includes(t.key)})}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateSelected()}async focusableOne(t){this.items.forEach(i=>i.focusable=i.key===t.key),await o5()}focusOne(t,i){t.focus(i)}async onClick(t){if(!this.definedController.isDefined()||this.isSubmenu||t.button)return;const r=t.target.closest("mdui-menu-item");!r||r.disabled||(this.lastActiveItem=r,this.isSelectable&&r.value&&this.selectOne(r),await this.focusableOne(r),this.focusOne(r))}async onKeyDown(t){if(!this.definedController.isDefined()||this.isSubmenu)return;const i=t.target;if(t.key==="Enter"&&(t.preventDefault(),i.click()),t.key===" "&&(t.preventDefault(),this.isSelectable&&i.value&&(this.selectOne(i),await this.focusableOne(i),this.focusOne(i))),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const r=this.getSiblingsItems(i,!0),n=r.find(o=>o.focusable);let s=n?r.indexOf(n):0;if(r.length>0){t.preventDefault(),t.key==="ArrowDown"?s++:t.key==="ArrowUp"?s--:t.key==="Home"?s=0:t.key==="End"&&(s=r.length-1),s<0&&(s=r.length-1),s>r.length-1&&(s=0),this.lastActiveItem=r[s],await this.focusableOne(r[s]),this.focusOne(r[s]);return}}}};Ci.styles=[Ee,ak];v([R({reflect:!0})],Ci.prototype,"selects",void 0);v([R()],Ci.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ci.prototype,"dense",void 0);v([R({reflect:!0,attribute:"submenu-trigger"})],Ci.prototype,"submenuTrigger",void 0);v([R({type:Number,reflect:!0,attribute:"submenu-open-delay"})],Ci.prototype,"submenuOpenDelay",void 0);v([R({type:Number,reflect:!0,attribute:"submenu-close-delay"})],Ci.prototype,"submenuCloseDelay",void 0);v([Ce()],Ci.prototype,"selectedKeys",void 0);v([Ji({flatten:!0,selector:"mdui-menu-item"})],Ci.prototype,"childrenItems",void 0);v([re("dense"),re("selects"),re("submenuTrigger"),re("submenuOpenDelay"),re("submenuCloseDelay")],Ci.prototype,"onSlotChange",null);v([re("selects",!0)],Ci.prototype,"onSelectsChange",null);v([re("selectedKeys",!0)],Ci.prototype,"onSelectedKeysChange",null);v([re("value")],Ci.prototype,"onValueChange",null);Ci=v([se("mdui-menu")],Ci);const lk=me`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;flex:1;overflow:hidden;min-width:3rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;padding-top:.75rem;padding-bottom:.75rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;left:50%;transform:translateX(-50%);width:4rem;height:2rem;margin-top:.75rem;border-radius:var(--mdui-shape-corner-full)}mdui-ripple:not(.initial){transition:margin-top var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host(:not([active])) mdui-ripple.label-visibility-selected,mdui-ripple.label-visibility-unlabeled{margin-top:1.5rem}.container.label-visibility-unlabeled,:host(:not([active])) .container.label-visibility-selected{padding-top:1.5rem;padding-bottom:0}.container.label-visibility-unlabeled .label,:host(:not([active])) .container.label-visibility-selected .label{opacity:0}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:4rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let Fr=class extends sa(Er(er(Ne))){constructor(){super(...arguments),this.isInitial=!0,this.active=!1,this.disabled=!1,this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=Or({"label-visibility-selected":this.labelVisibility==="selected","label-visibility-labeled":this.labelVisibility==="labeled","label-visibility-unlabeled":this.labelVisibility==="unlabeled",initial:this.isInitial}),i=Or([{container:!0,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon")},t]);return D`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner()}):D`
${this.renderInner()}
`}`}renderInner(){return D`
${this.activeIcon?D``:Ke}${this.icon?D``:Ke}
`}};Fr.styles=[Ee,lk];v([R({reflect:!0})],Fr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"active-icon"})],Fr.prototype,"activeIcon",void 0);v([R({reflect:!0})],Fr.prototype,"value",void 0);v([Ce()],Fr.prototype,"labelVisibility",void 0);v([Ce()],Fr.prototype,"isInitial",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Fr.prototype,"active",void 0);v([Ce()],Fr.prototype,"disabled",void 0);Fr=v([se("mdui-navigation-bar-item")],Fr);const ck=me`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;overflow:hidden;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition-property:transform;transition-duration:var(--mdui-motion-duration-long2);transition-timing-function:var(--mdui-motion-easing-emphasized);height:5rem;background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transform:translateY(5.625rem);transition-duration:var(--mdui-motion-duration-short4)}`;let hr=class extends P0(Zn){constructor(){super(...arguments),this.hide=!1,this.labelVisibility="auto",this.activeKey=0,this.isInitial=!0,this.definedController=new Qt(this,{relatedElements:["mdui-navigation-bar-item"]})}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onLabelVisibilityChange(){await this.definedController.whenDefined(),this.updateItems()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return D``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-bar-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){const t=this.items,i=this.labelVisibility==="auto"?t.length<=3?"labeled":"selected":this.labelVisibility;t.forEach(r=>{r.active=this.activeKey===r.key,r.labelVisibility=i,r.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};hr.styles=[Ee,ck];v([R({type:Boolean,reflect:!0,converter:Y})],hr.prototype,"hide",void 0);v([R({reflect:!0,attribute:"label-visibility"})],hr.prototype,"labelVisibility",void 0);v([R({reflect:!0})],hr.prototype,"value",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],hr.prototype,"scrollBehavior",void 0);v([Ce()],hr.prototype,"activeKey",void 0);v([Ji({selector:"mdui-navigation-bar-item",flatten:!0})],hr.prototype,"items",void 0);v([re("activeKey",!0)],hr.prototype,"onActiveKeyChange",null);v([re("value")],hr.prototype,"onValueChange",null);v([re("labelVisibility",!0)],hr.prototype,"onLabelVisibilityChange",null);hr=v([se("mdui-navigation-bar")],hr);const a5=e=>{const t=Yn(),i=wi(),r=t.getComputedStyle(i.documentElement),n=ln(e)?M(e).innerWidth():Xd(e)?e:M(t).innerWidth(),s=a=>{const l=r.getPropertyValue(`--mdui-breakpoint-${a}`).toLowerCase();return parseFloat(l)},o=a=>{switch(a){case"xs":return"sm";case"sm":return"md";case"md":return"lg";case"lg":return"xl";case"xl":return"xxl"}};return{up(a){return n>=s(a)},down(a){return n{const i=this.contained?this.parentElement:void 0;this.mobile=a5(i).down("md"),this.isParentLayout&&this.layoutManager.updateLayout(this,{width:this.isModal?0:void 0})})}onPlacementChange(){this.isParentLayout&&this.layoutManager.updateLayout(this)}async onMobileChange(){!this.open||this.isParentLayout||this.contained||(await this.definedController.whenDefined(),this.isModal?(wf(this,this.lockTarget),await this.getLockTargetAnimate(!1,0)):(za(this,this.lockTarget),await this.getLockTargetAnimate(!0,0)))}async onOpenChange(){let t=this.panelRef.value,i=this.overlayRef.value;const r=this.placement==="right",n=ci(this,"linear"),s=ci(this,"emphasized"),o=(l,c)=>{M(this.layoutManager.getItemsAndMain()).css("transition",y0(l)?null:`all ${l}ms ${c}`)},a=async()=>{const l=[];if(this.isModal?l.push(i,t):this.isParentLayout||l.push(this.lockTarget),this.isParentLayout){const c=this.layoutManager.getItemsAndMain(),d=c.indexOf(this);l.push(...c.slice(d))}!this.isModal&&!l.includes(this)&&l.push(this),await Promise.all(l.map(c=>Ii(c)))};if(this.open){const l=this.hasUpdated;if(l||(await this.updateComplete,t=this.panelRef.value,i=this.overlayRef.value),l&&!this.emit("open",{cancelable:!0}))return;await this.definedController.whenDefined(),this.style.display="block",this.originalTrigger=document.activeElement,this.isModal&&(this.modalHelper.activate(),this.contained||wf(this,this.lockTarget)),await a(),requestAnimationFrame(()=>{const u=this.querySelector("[autofocus]");u?u.focus({preventScroll:!0}):t.focus({preventScroll:!0})});const c=ur(this,"long2"),d=[];if(this.isModal?d.push(Xe(i,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:l?c:0,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!0,l?c:0)),this.isParentLayout&&l&&(o(c,s),this.layoutManager.updateLayout(this)),d.push(Xe(this.isModal?t:this,[{transform:`translateX(${r?"":"-"}100%)`},{transform:"translateX(0)"}],{duration:l?c:0,easing:s})),await Promise.all(d),!this.open)return;this.isParentLayout&&l&&o(null),l&&this.emit("opened")}else if(this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;await this.definedController.whenDefined(),this.isModal&&this.modalHelper.deactivate(),await a();const c=ur(this,"short4"),d=[];if(this.isModal?d.push(Xe(i,[{opacity:1},{opacity:0}],{duration:c,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!1,c)),this.isParentLayout&&(o(c,s),this.layoutManager.updateLayout(this,{width:0})),d.push(Xe(this.isModal?t:this,[{transform:"translateX(0)"},{transform:`translateX(${r?"":"-"}100%)`}],{duration:c,easing:s})),await Promise.all(d),this.open)return;this.isParentLayout&&o(null),this.style.display="none",this.isModal&&!this.contained&&za(this,this.lockTarget);const u=this.originalTrigger;Ct(u==null?void 0:u.focus)&&setTimeout(()=>u.focus()),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.modalHelper=new e5(this)}disconnectedCallback(){var t;super.disconnectedCallback(),za(this,this.lockTarget),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&this.isModal&&(i.stopPropagation(),this.open=!1)})}render(){return D`${et(this.isModal,()=>D`
`)}`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}getLockTargetAnimate(t,i){const r=this.placement==="right"?"paddingRight":"paddingLeft",n=M(this.panelRef.value).innerWidth()+"px";return Xe(this.lockTarget,[{[r]:t?0:n},{[r]:t?n:0}],{duration:i,easing:ci(this,"emphasized"),fill:"forwards"})}};Di.styles=[Ee,dk];v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"modal",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],Di.prototype,"closeOnEsc",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],Di.prototype,"closeOnOverlayClick",void 0);v([R({reflect:!0})],Di.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"contained",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"mobile",void 0);v([re("contained")],Di.prototype,"onContainedChange",null);v([re("placement",!0)],Di.prototype,"onPlacementChange",null);v([re("mobile",!0),re("modal",!0)],Di.prototype,"onMobileChange",null);v([re("open")],Di.prototype,"onOpenChange",null);Di=v([se("mdui-navigation-drawer")],Di);const uk=me`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;border-radius:0 var(--shape-corner) var(--shape-corner) 0;z-index:var(--z-index);width:5rem;background-color:rgb(var(--mdui-color-surface));padding:.375rem .75rem}:host([contained]){position:absolute}:host([divider]){border-right:.0625rem solid rgb(var(--mdui-color-surface-variant));width:5.0625rem}:host([placement=right]){left:initial;right:0;border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host([placement=right][divider]){border-right:none;border-left:.0625rem solid rgb(var(--mdui-color-surface-variant))}.bottom,.items,.top{display:flex;flex-direction:column;align-items:center;width:100%}.top{margin-bottom:1.75rem}.bottom{margin-top:1.75rem}::slotted([slot=bottom]),::slotted([slot=top]),::slotted(mdui-navigation-rail-item){margin-top:.375rem;margin-bottom:.375rem}:host([alignment=start]) .top-spacer{flex-grow:0}:host([alignment=start]) .bottom-spacer{flex-grow:1}:host([alignment=end]) .top-spacer{flex-grow:1}:host([alignment=end]) .bottom-spacer{flex-grow:0}:host([alignment=center]){justify-content:center}:host([alignment=center]) .bottom,:host([alignment=center]) .top{position:absolute}:host([alignment=center]) .top{top:.375rem}:host([alignment=center]) .bottom{bottom:.375rem}`;let Li=class extends Zn{constructor(){super(...arguments),this.placement="left",this.alignment="start",this.contained=!1,this.divider=!1,this.activeKey=0,this.hasSlotController=new Ut(this,"top","bottom"),this.definedController=new Qt(this,{relatedElements:["mdui-navigation-rail-item"]}),this.isInitial=!0}get layoutPlacement(){return this.placement}get parentTarget(){return this.contained||this.isParentLayout?this.parentElement:document.body}get isRight(){return this.placement==="right"}get paddingValue(){return["fixed","absolute"].includes(M(this).css("position"))?this.offsetWidth:void 0}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onContainedChange(){this.isParentLayout||(await this.definedController.whenDefined(),M(document.body).css({paddingLeft:this.contained||this.isRight?null:this.paddingValue,paddingRight:this.contained||!this.isRight?null:this.paddingValue}),M(this.parentElement).css({paddingLeft:this.contained&&!this.isRight?this.paddingValue:null,paddingRight:this.contained&&this.isRight?this.paddingValue:null}))}async onPlacementChange(){var t;await this.definedController.whenDefined(),(t=this.layoutManager)==null||t.updateLayout(this),this.items.forEach(i=>{i.placement=this.placement}),this.isParentLayout||M(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})}connectedCallback(){super.connectedCallback(),this.isParentLayout||this.definedController.whenDefined().then(()=>{M(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})})}disconnectedCallback(){super.disconnectedCallback(),!this.isParentLayout&&this.definedController.isDefined()&&M(this.parentTarget).css({paddingLeft:this.isRight?void 0:null,paddingRight:this.isRight?null:void 0})}render(){const t=this.hasSlotController.test("top"),i=this.hasSlotController.test("bottom");return D`${et(t,()=>D``)} ${et(i,()=>D``)}`}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-rail-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){this.items.forEach(t=>{t.active=this.activeKey===t.key,t.placement=this.placement,t.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};Li.styles=[Ee,uk];v([R({reflect:!0})],Li.prototype,"value",void 0);v([R({reflect:!0})],Li.prototype,"placement",void 0);v([R({reflect:!0})],Li.prototype,"alignment",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"contained",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"divider",void 0);v([Ce()],Li.prototype,"activeKey",void 0);v([Ji({selector:"mdui-navigation-rail-item",flatten:!0})],Li.prototype,"items",void 0);v([re("activeKey",!0)],Li.prototype,"onActiveKeyChange",null);v([re("value")],Li.prototype,"onValueChange",null);v([re("contained",!0)],Li.prototype,"onContainedChange",null);v([re("placement",!0)],Li.prototype,"onPlacementChange",null);Li=v([se("mdui-navigation-rail")],Li);const hk=me`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;width:100%;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:3.5rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;width:3.5rem;height:2rem;border-radius:var(--mdui-shape-corner-full)}.container:not(.has-label)+mdui-ripple{height:3.5rem}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.placement-right::slotted([slot=badge]){transform:translate(-50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.placement-right::slotted([slot=badge][variant=small]){transform:translate(-.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active-icon]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:3.5rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) :not(.has-label) .indicator{height:3.5rem}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let zr=class extends sa(Er(er(Ne))){constructor(){super(...arguments),this.active=!1,this.isInitial=!0,this.placement="left",this.disabled=!1,this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"[default]","active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=this.hasSlotController.test("[default]"),i=Or({container:!0,"has-label":t,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon"),initial:this.isInitial});return D`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner(t)}):D`
${this.renderInner(t)}
`}`}renderInner(t){return D`
${this.activeIcon?D``:Ke}${this.icon?D``:Ke}
${t?D``:Ze}`}};zr.styles=[Ee,hk];v([R({reflect:!0})],zr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"active-icon"})],zr.prototype,"activeIcon",void 0);v([R({reflect:!0})],zr.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],zr.prototype,"active",void 0);v([Ce()],zr.prototype,"isInitial",void 0);v([Ce()],zr.prototype,"placement",void 0);v([Ce()],zr.prototype,"disabled",void 0);zr=v([se("mdui-navigation-rail-item")],zr);let Ef=class extends ht{render(){return ei('')}};Ef.styles=Jt;Ef=v([se("mdui-icon-circle")],Ef);let xf=class extends ht{render(){return ei('')}};xf.styles=Jt;xf=v([se("mdui-icon-radio-button-unchecked")],xf);const fk=me`:host{position:relative;display:inline-flex;align-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon{display:flex;position:absolute;font-size:1.5rem}:not(.initial) .icon{transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.unchecked-icon{transition-property:color;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .unchecked-icon,:host([hover]) .unchecked-icon,:host([pressed]) .unchecked-icon{color:rgb(var(--mdui-color-on-surface))}.checked-icon{opacity:0;transform:scale(.2);transition-property:color,opacity,transform;color:rgb(var(--mdui-color-primary))}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface))}.label:not(.initial){transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .checked-icon{opacity:1;transform:scale(.5)}i.invalid{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}i.invalid .icon{color:rgb(var(--mdui-color-error))}.label.invalid{color:rgb(var(--mdui-color-error))}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon,:host([group-disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label,:host([group-disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}`;let Zi=class extends Er(er(Ne)){constructor(){super(...arguments),this.value="",this.disabled=!1,this.checked=!1,this.invalid=!1,this.groupDisabled=!1,this.focusable=!0,this.isInitial=!0,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()}get focusElement(){return this}get focusDisabled(){return this.isDisabled()||!this.focusable}onCheckedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{this.isDisabled()||(this.checked=!0)})}render(){const t=kt({invalid:this.invalid,initial:this.isInitial});return D`${this.uncheckedIcon?D``:D``}${this.checkedIcon?D``:D``}`}isDisabled(){return this.disabled||this.groupDisabled}};Zi.styles=[Ee,fk];v([R({reflect:!0})],Zi.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zi.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zi.prototype,"checked",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Zi.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Zi.prototype,"checkedIcon",void 0);v([Ce()],Zi.prototype,"invalid",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],Zi.prototype,"groupDisabled",void 0);v([Ce()],Zi.prototype,"focusable",void 0);v([Ce()],Zi.prototype,"isInitial",void 0);v([re("checked",!0)],Zi.prototype,"onCheckedChange",null);Zi=v([se("mdui-radio")],Zi);const pk=me`:host{display:inline-block}fieldset{border:none;padding:0;margin:0;min-width:0}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}`;let fr=class extends Ne{constructor(){super(...arguments),this.disabled=!1,this.name="",this.value="",this.defaultValue="",this.required=!1,this.invalid=!1,this.isInitial=!0,this.inputRef=be(),this.formController=new pn(this),this.definedController=new Qt(this,{relatedElements:["mdui-radio"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return M(this).find("mdui-radio").get()}get itemsEnabled(){return M(this).find("mdui-radio:not([disabled])").get()}async onValueChange(){var i;this.isInitial=!1,await this.definedController.whenDefined(),this.emit("input"),this.emit("change"),this.updateItems(),this.updateRadioFocusable(),await this.updateComplete;const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D`
`}updateRadioFocusable(){const t=this.items,i=t.find(r=>r.checked);i?t.forEach(r=>{r.focusable=r===i}):this.itemsEnabled.forEach((r,n)=>{r.focusable=!n})}async onClick(t){await this.definedController.whenDefined();const r=t.target.closest("mdui-radio");!r||r.disabled||(this.value=r.value,await this.updateComplete,r.focus())}async onKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;t.preventDefault(),await this.definedController.whenDefined();const i=this.itemsEnabled,r=i.find(o=>o.checked)??i[0],n=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1;let s=i.indexOf(r)+n;s<0&&(s=i.length-1),s>i.length-1&&(s=0),this.value=i[s].value,await this.updateComplete,i[s].focus()}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(),this.updateRadioFocusable()}onCheckedChange(t){t.stopPropagation()}updateItems(){this.items.forEach(t=>{t.checked=t.value===this.value,t.invalid=this.invalid,t.groupDisabled=this.disabled,t.isInitial=this.isInitial})}};fr.styles=[Ee,pk];v([R({type:Boolean,reflect:!0,converter:Y})],fr.prototype,"disabled",void 0);v([R({reflect:!0})],fr.prototype,"form",void 0);v([R({reflect:!0})],fr.prototype,"name",void 0);v([R({reflect:!0})],fr.prototype,"value",void 0);v([Gn()],fr.prototype,"defaultValue",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],fr.prototype,"required",void 0);v([Ce()],fr.prototype,"invalid",void 0);v([re("value",!0)],fr.prototype,"onValueChange",null);v([re("invalid",!0),re("disabled")],fr.prototype,"onInvalidChange",null);fr=v([se("mdui-radio-group")],fr);/** + )}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}:host([nonclickable]:not([href])) .container{cursor:auto;-webkit-user-select:auto;user-select:auto}.preset{display:flex;align-items:center;padding:.5rem 1.5rem .5rem 1rem;min-height:3.5rem}:host([alignment=start]) .preset{align-items:flex-start}:host([alignment=end]) .preset{align-items:flex-end}.body{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0}.headline{display:block;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([active]) .headline{color:rgb(var(--mdui-color-on-secondary-container))}.description{display:none;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([disabled]) .description,:host([focused]) .description,:host([hover]) .description,:host([pressed]) .description{color:rgb(var(--mdui-color-on-surface))}.has-description .description{display:block}:host([description-line='1']) .description,:host([headline-line='1']) .headline{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([description-line='2']) .description,:host([description-line='3']) .description,:host([headline-line='2']) .headline,:host([headline-line='3']) .headline{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}:host([description-line='2']) .description,:host([headline-line='2']) .headline{-webkit-line-clamp:2}:host([description-line='3']) .description,:host([headline-line='3']) .headline{-webkit-line-clamp:3}.end-icon,.icon{display:flex;flex:0 0 auto;font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .end-icon,:host([disabled]) .icon,:host([focused]) .end-icon,:host([focused]) .icon,:host([hover]) .end-icon,:host([hover]) .icon,:host([pressed]) .end-icon,:host([pressed]) .icon{color:rgb(var(--mdui-color-on-surface))}:host([active]) .end-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}.end-icon mdui-icon,.icon mdui-icon,.is-end-icon ::slotted([slot=end-icon]),.is-icon ::slotted([slot=icon]){font-size:1.5rem}.has-icon .icon{margin-right:1rem}.has-icon ::slotted(mdui-checkbox[slot=icon]),.has-icon ::slotted(mdui-radio[slot=icon]){margin-left:-.5rem}.has-end-icon .end-icon{margin-left:1rem}.has-end-icon ::slotted(mdui-checkbox[slot=end-icon]),.has-end-icon ::slotted(mdui-radio[slot=end-icon]){margin-right:-.5rem}`;let di=class extends sa(Er(er(Re))){constructor(){super(...arguments),this.disabled=!1,this.active=!1,this.nonclickable=!1,this.rounded=!1,this.alignment="center",this.rippleRef=be(),this.itemRef=be(),this.hasSlotController=new Ut(this,"[default]","description","icon","end-icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.focusDisabled}get focusElement(){return this.href&&!this.disabled?this.itemRef.value:this}get focusDisabled(){return this.href?this.disabled:this.disabled||this.nonclickable}render(){const t=!this.hasSlotController.test("custom"),i=this.icon||this.hasSlotController.test("icon"),r=this.endIcon||this.hasSlotController.test("end-icon"),n=this.description||this.hasSlotController.test("description"),s=Or({container:!0,preset:t,"has-icon":i,"has-end-icon":r,"has-description":n,"is-icon":zl(this.iconElements[0],"mdui-icon"),"is-end-icon":d_(this.endIconElements[0]).startsWith("mdui-icon-")});return D`${this.href&&!this.disabled?this.renderAnchor({className:s,content:this.renderInner(),part:"container",refDirective:ue(this.itemRef)}):D`
${this.renderInner()}
`}`}renderInner(){const t=this.hasSlotController.test("[default]");return D`${this.icon?D``:Ke}
${t?D``:D`
${this.headline}
`}${this.description}
${this.endIcon?D``:Ke}
`}};di.styles=[Ee,rk];v([R({reflect:!0})],di.prototype,"headline",void 0);v([R({type:Number,reflect:!0,attribute:"headline-line"})],di.prototype,"headlineLine",void 0);v([R({reflect:!0})],di.prototype,"description",void 0);v([R({type:Number,reflect:!0,attribute:"description-line"})],di.prototype,"descriptionLine",void 0);v([R({reflect:!0})],di.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],di.prototype,"endIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"active",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"nonclickable",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],di.prototype,"rounded",void 0);v([R({reflect:!0})],di.prototype,"alignment",void 0);v([Ji({slot:"icon",flatten:!0})],di.prototype,"iconElements",void 0);v([Ji({slot:"end-icon",flatten:!0})],di.prototype,"endIconElements",void 0);di=v([se("mdui-list-item")],di);const nk=pe`:host{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:default;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-label-small-size);font-weight:var(--mdui-typescale-label-small-weight);letter-spacing:var(--mdui-typescale-label-small-tracking);line-height:var(--mdui-typescale-label-small-line-height);padding-left:1rem;padding-right:1.5rem;height:3.5rem;line-height:3.5rem}`;let kf=class extends Re{render(){return D``}};kf.styles=[Ee,nk];kf=v([se("mdui-list-subheader")],kf);const sk=pe`:host{display:block;padding:.5rem 0}::slotted(mdui-divider[middle]){margin-left:1rem;margin-right:1.5rem}`;let Cf=class extends Re{render(){return D``}};Cf.styles=[Ee,sk];Cf=v([se("mdui-list")],Cf);let Af=class extends ht{render(){return ei('')}};Af.styles=Jt;Af=v([se("mdui-icon-arrow-right")],Af);const ok=pe`:host{position:relative;display:block}:host([selected]){background-color:rgba(var(--mdui-color-primary),12%)}:host([disabled]){pointer-events:none}.container{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host([disabled]) .container{cursor:default;opacity:.38}.preset{display:flex;align-items:center;text-decoration:none;height:3rem;padding:0 .75rem}.preset.dense{height:2rem}.label-container{flex:1 1 100%;min-width:0}.label{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.end-icon,.end-text,.icon,.selected-icon{display:none;flex:0 0 auto;color:rgb(var(--mdui-color-on-surface-variant))}.has-end-icon .end-icon,.has-end-text .end-text,.has-icon .icon,.has-icon .selected-icon{display:flex}.end-icon,.icon,.selected-icon{font-size:1.5rem}.end-icon::slotted(mdui-avatar),.icon::slotted(mdui-avatar),.selected-icon::slotted(mdui-avatar){width:1.5rem;height:1.5rem}.dense .end-icon,.dense .icon,.dense .selected-icon{font-size:1.125rem}.dense .end-icon::slotted(mdui-avatar),.dense .icon::slotted(mdui-avatar),.dense .selected-icon::slotted(mdui-avatar){width:1.125rem;height:1.125rem}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}.end-text{font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon,.selected-icon{margin-right:.75rem}.end-icon,.end-text{margin-left:.75rem}.arrow-right{color:rgb(var(--mdui-color-on-surface))}.submenu{--shape-corner:var(--mdui-shape-corner-extra-small);display:block;position:absolute;z-index:1;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.submenu::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let Ht=class extends sa(Er(er(Re))){constructor(){super(),this.disabled=!1,this.submenuOpen=!1,this.selected=!1,this.dense=!1,this.focusable=!1,this.key=Xn(),this.rippleRef=be(),this.containerRef=be(),this.submenuRef=be(),this.hasSlotController=new Ut(this,"[default]","icon","end-icon","end-text","submenu","custom"),this.definedController=new Qt(this,{relatedElements:[""]}),this.onOuterClick=this.onOuterClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get focusDisabled(){return this.disabled||!this.focusable}get focusElement(){return this.href&&!this.disabled?this.containerRef.value:this}get rippleDisabled(){return this.disabled}get rippleElement(){return this.rippleRef.value}get hasSubmenu(){return this.hasSlotController.test("submenu")}async onOpenChange(){const t=this.hasUpdated;if(!this.submenuOpen&&!t)return;await this.definedController.whenDefined(),t||await this.updateComplete;const i=ci(this,"linear"),r=ci(this,"emphasized-decelerate"),n=ci(this,"emphasized-accelerate");if(this.submenuOpen){if(t&&!this.emit("submenu-open",{cancelable:!0}))return;const s=ur(this,"medium4");await Ii(this.submenuRef.value),this.submenuRef.value.hidden=!1,this.updateSubmenuPositioner(),await Promise.all([Xe(this.submenuRef.value,[{transform:"scaleY(0.45)"},{transform:"scaleY(1)"}],{duration:t?s:0,easing:r}),Xe(this.submenuRef.value,[{opacity:0},{opacity:1,offset:.125},{opacity:1}],{duration:t?s:0,easing:i})]),t&&this.emit("submenu-opened")}else{if(!this.emit("submenu-close",{cancelable:!0}))return;const o=ur(this,"short4");await Ii(this.submenuRef.value),await Promise.all([Xe(this.submenuRef.value,[{transform:"scaleY(1)"},{transform:"scaleY(0.45)"}],{duration:o,easing:n}),Xe(this.submenuRef.value,[{opacity:1},{opacity:1,offset:.875},{opacity:0}],{duration:o,easing:i})]),this.submenuRef.value&&(this.submenuRef.value.hidden=!0),this.emit("submenu-closed")}}connectedCallback(){super.connectedCallback(),this.definedController.whenDefined().then(()=>{document.addEventListener("pointerdown",this.onOuterClick)})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onOuterClick)}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.addEventListener("focus",this.onFocus),this.addEventListener("blur",this.onBlur),this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKeydown),this.addEventListener("mouseenter",this.onMouseEnter),this.addEventListener("mouseleave",this.onMouseLeave)})}render(){const t=this.hasSubmenu,i=this.hasSlotController.test("custom"),r=this.hasSlotController.test("end-icon"),n=!this.endIcon&&t&&!r,s=this.endIcon||t||r,o=!ot(this.icon)||this.selects==="single"||this.selects==="multiple"||this.hasSlotController.test("icon"),a=!!this.endText||this.hasSlotController.test("end-text"),l=Or({container:!0,dense:this.dense,preset:!i,"has-icon":o,"has-end-text":a,"has-end-icon":s});return D`${this.href&&!this.disabled?this.renderAnchor({part:"container",className:l,content:this.renderInner(n,o),refDirective:ue(this.containerRef),tabIndex:this.focusable?0:-1}):D`
${this.renderInner(n,o)}
`} ${et(t,()=>D``)}`}onOuterClick(t){!this.disabled&&this.submenuOpen&&this!==t.target&&!B.contains(this,t.target)&&(this.submenuOpen=!1)}hasTrigger(t){return this.submenuTrigger?this.submenuTrigger.split(" ").includes(t):!1}onFocus(){this.disabled||this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!0)}onBlur(){this.disabled||!this.submenuOpen||!this.hasTrigger("focus")||!this.hasSubmenu||(this.submenuOpen=!1)}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||t.target!==this||!this.hasSubmenu||this.submenuOpen&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.submenuOpen=!this.submenuOpen)}onKeydown(t){this.disabled||!this.hasSubmenu||(!this.submenuOpen&&t.key==="Enter"&&(t.stopPropagation(),this.submenuOpen=!0),this.submenuOpen&&t.key==="Escape"&&(t.stopPropagation(),this.submenuOpen=!1))}onMouseEnter(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuCloseTimeout),this.submenuOpenDelay?this.submenuOpenTimeout=window.setTimeout(()=>{this.submenuOpen=!0},this.submenuOpenDelay):this.submenuOpen=!0)}onMouseLeave(){this.disabled||!this.hasTrigger("hover")||!this.hasSubmenu||(window.clearTimeout(this.submenuOpenTimeout),this.submenuCloseTimeout=window.setTimeout(()=>{this.submenuOpen=!1},this.submenuCloseDelay||50))}updateSubmenuPositioner(){const t=B(window),i=B(this.submenuRef.value),r=this.getBoundingClientRect(),n=i.innerWidth(),s=i.innerHeight(),o=8;let a="bottom",l="right";t.height()-r.top>s+o?a="bottom":r.top+r.height>s+o&&(a="top"),t.width()-r.left-r.width>n+o?l="right":r.left>n+o&&(l="left"),B(this.submenuRef.value).css({top:a==="bottom"?0:r.height-s,left:l==="right"?r.width:-n,transformOrigin:[l==="right"?0:"100%",a==="bottom"?0:"100%"].join(" ")})}renderInner(t,i){return D`${this.selected?D`${this.selectedIcon?D``:D``}`:D`${i?D``:Ke}`}
${this.endText}${t?D``:D`${this.endIcon?D``:Ke}`}
`}};Ht.styles=[Ee,ok];v([R({reflect:!0})],Ht.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ht.prototype,"disabled",void 0);v([R({reflect:!0})],Ht.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Ht.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"end-text"})],Ht.prototype,"endText",void 0);v([R({reflect:!0,attribute:"selected-icon"})],Ht.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"submenu-open"})],Ht.prototype,"submenuOpen",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ht.prototype,"selected",void 0);v([Ce()],Ht.prototype,"dense",void 0);v([Ce()],Ht.prototype,"selects",void 0);v([Ce()],Ht.prototype,"submenuTrigger",void 0);v([Ce()],Ht.prototype,"submenuOpenDelay",void 0);v([Ce()],Ht.prototype,"submenuCloseDelay",void 0);v([Ce()],Ht.prototype,"focusable",void 0);v([re("submenuOpen")],Ht.prototype,"onOpenChange",null);Ht=v([se("mdui-menu-item")],Ht);const ak=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-small);position:relative;display:block;border-radius:var(--shape-corner);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);min-width:7rem;max-width:17.5rem;padding-top:.5rem;padding-bottom:.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}::slotted(mdui-divider){margin-top:.5rem;margin-bottom:.5rem}`;let Ci=class extends Re{constructor(){super(...arguments),this.dense=!1,this.submenuTrigger="click hover",this.submenuOpenDelay=200,this.submenuCloseDelay=200,this.selectedKeys=[],this.isInitial=!0,this.lastActiveItems=[],this.definedController=new Qt(this,{relatedElements:["mdui-menu-item"]})}get items(){return B(this.childrenItems).find("mdui-menu-item").add(this.childrenItems).get()}get itemsEnabled(){return this.items.filter(t=>!t.disabled)}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}get isSubmenu(){return!B(this).parent().length}get lastActiveItem(){const t=this.lastActiveItems.length?this.lastActiveItems.length-1:0;return this.lastActiveItems[t]}set lastActiveItem(t){const i=this.lastActiveItems.length?this.lastActiveItems.length-1:0;this.lastActiveItems[i]=t}async onSlotChange(){await this.definedController.whenDefined(),this.items.forEach(t=>{t.dense=this.dense,t.selects=this.selects,t.submenuTrigger=this.submenuTrigger,t.submenuOpenDelay=this.submenuOpenDelay,t.submenuCloseDelay=this.submenuCloseDelay})}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||void 0;this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateSelected();return}const t=(this.isSingle?[this.value]:At(this.value)?[this.value]:this.value).filter(i=>i);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const i=this.itemsEnabled.find(r=>r.value===t[0]);this.setSelectedKeys(i?[i.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(i=>t.includes(i.value)).map(i=>i.key));this.updateSelected(),this.updateFocusable()}focus(t){this.lastActiveItem&&this.focusOne(this.lastActiveItem,t)}blur(){this.lastActiveItem&&this.lastActiveItem.blur()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{this.updateFocusable(),this.lastActiveItem=this.items.find(i=>i.focusable)}),this.addEventListener("submenu-open",i=>{const r=B(i.target),n=r.children("mdui-menu-item:not([disabled])").get(),s=r.parents("mdui-menu-item").length+1;n.length&&(this.lastActiveItems[s]=n[0],this.updateFocusable(),this.focusOne(this.lastActiveItems[s]))}),this.addEventListener("submenu-close",i=>{const n=B(i.target).parents("mdui-menu-item").length+1;this.lastActiveItems.length-1===n&&(this.lastActiveItems.pop(),this.updateFocusable(),this.lastActiveItems[n-1]&&this.focusOne(this.lastActiveItems[n-1]))})}render(){return D``}setSelectedKeys(t){Xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle||ot(this.value)||ot(t)?this.value=t:Xo(this.value,t)||(this.value=t)}getSiblingsItems(t,i=!1){return B(t).parent().children(`mdui-menu-item${i?":not([disabled])":""}`).get()}updateFocusable(){if(this.lastActiveItem){this.items.forEach(t=>{t.focusable=t.key===this.lastActiveItem.key});return}if(!this.selectedKeys.length){this.itemsEnabled.forEach((t,i)=>{t.focusable=!i});return}if(this.isSingle){this.items.forEach(t=>{t.focusable=this.selectedKeys.includes(t.key)});return}if(this.isMultiple){const t=this.items.find(i=>i.focusable);(!(t!=null&&t.key)||!this.selectedKeys.includes(t.key))&&this.itemsEnabled.filter(i=>this.selectedKeys.includes(i.key)).forEach((i,r)=>i.focusable=!r)}}updateSelected(){this.items.forEach(t=>{t.selected=this.selectedKeys.includes(t.key)})}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateSelected()}async focusableOne(t){this.items.forEach(i=>i.focusable=i.key===t.key),await s5()}focusOne(t,i){t.focus(i)}async onClick(t){if(!this.definedController.isDefined()||this.isSubmenu||t.button)return;const r=t.target.closest("mdui-menu-item");!r||r.disabled||(this.lastActiveItem=r,this.isSelectable&&r.value&&this.selectOne(r),await this.focusableOne(r),this.focusOne(r))}async onKeyDown(t){if(!this.definedController.isDefined()||this.isSubmenu)return;const i=t.target;if(t.key==="Enter"&&(t.preventDefault(),i.click()),t.key===" "&&(t.preventDefault(),this.isSelectable&&i.value&&(this.selectOne(i),await this.focusableOne(i),this.focusOne(i))),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const r=this.getSiblingsItems(i,!0),n=r.find(o=>o.focusable);let s=n?r.indexOf(n):0;if(r.length>0){t.preventDefault(),t.key==="ArrowDown"?s++:t.key==="ArrowUp"?s--:t.key==="Home"?s=0:t.key==="End"&&(s=r.length-1),s<0&&(s=r.length-1),s>r.length-1&&(s=0),this.lastActiveItem=r[s],await this.focusableOne(r[s]),this.focusOne(r[s]);return}}}};Ci.styles=[Ee,ak];v([R({reflect:!0})],Ci.prototype,"selects",void 0);v([R()],Ci.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ci.prototype,"dense",void 0);v([R({reflect:!0,attribute:"submenu-trigger"})],Ci.prototype,"submenuTrigger",void 0);v([R({type:Number,reflect:!0,attribute:"submenu-open-delay"})],Ci.prototype,"submenuOpenDelay",void 0);v([R({type:Number,reflect:!0,attribute:"submenu-close-delay"})],Ci.prototype,"submenuCloseDelay",void 0);v([Ce()],Ci.prototype,"selectedKeys",void 0);v([Ji({flatten:!0,selector:"mdui-menu-item"})],Ci.prototype,"childrenItems",void 0);v([re("dense"),re("selects"),re("submenuTrigger"),re("submenuOpenDelay"),re("submenuCloseDelay")],Ci.prototype,"onSlotChange",null);v([re("selects",!0)],Ci.prototype,"onSelectsChange",null);v([re("selectedKeys",!0)],Ci.prototype,"onSelectedKeysChange",null);v([re("value")],Ci.prototype,"onValueChange",null);Ci=v([se("mdui-menu")],Ci);const lk=pe`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;flex:1;overflow:hidden;min-width:3rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;padding-top:.75rem;padding-bottom:.75rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;left:50%;transform:translateX(-50%);width:4rem;height:2rem;margin-top:.75rem;border-radius:var(--mdui-shape-corner-full)}mdui-ripple:not(.initial){transition:margin-top var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host(:not([active])) mdui-ripple.label-visibility-selected,mdui-ripple.label-visibility-unlabeled{margin-top:1.5rem}.container.label-visibility-unlabeled,:host(:not([active])) .container.label-visibility-selected{padding-top:1.5rem;padding-bottom:0}.container.label-visibility-unlabeled .label,:host(:not([active])) .container.label-visibility-selected .label{opacity:0}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:4rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let Fr=class extends sa(Er(er(Re))){constructor(){super(...arguments),this.isInitial=!0,this.active=!1,this.disabled=!1,this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=Or({"label-visibility-selected":this.labelVisibility==="selected","label-visibility-labeled":this.labelVisibility==="labeled","label-visibility-unlabeled":this.labelVisibility==="unlabeled",initial:this.isInitial}),i=Or([{container:!0,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon")},t]);return D`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner()}):D`
${this.renderInner()}
`}`}renderInner(){return D`
${this.activeIcon?D``:Ke}${this.icon?D``:Ke}
`}};Fr.styles=[Ee,lk];v([R({reflect:!0})],Fr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"active-icon"})],Fr.prototype,"activeIcon",void 0);v([R({reflect:!0})],Fr.prototype,"value",void 0);v([Ce()],Fr.prototype,"labelVisibility",void 0);v([Ce()],Fr.prototype,"isInitial",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Fr.prototype,"active",void 0);v([Ce()],Fr.prototype,"disabled",void 0);Fr=v([se("mdui-navigation-bar-item")],Fr);const ck=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;right:0;bottom:0;left:0;display:flex;flex:0 0 auto;overflow:hidden;border-radius:var(--shape-corner) var(--shape-corner) 0 0;z-index:var(--z-index);transition-property:transform;transition-duration:var(--mdui-motion-duration-long2);transition-timing-function:var(--mdui-motion-easing-emphasized);height:5rem;background-color:rgb(var(--mdui-color-surface));box-shadow:var(--mdui-elevation-level2)}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([hide]){transform:translateY(5.625rem);transition-duration:var(--mdui-motion-duration-short4)}`;let hr=class extends P0(Zn){constructor(){super(...arguments),this.hide=!1,this.labelVisibility="auto",this.activeKey=0,this.isInitial=!0,this.definedController=new Qt(this,{relatedElements:["mdui-navigation-bar-item"]})}get scrollPaddingPosition(){return"bottom"}get layoutPlacement(){return"bottom"}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onLabelVisibilityChange(){await this.definedController.whenDefined(),this.updateItems()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return D``}runScrollThreshold(t){!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1)}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-bar-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){const t=this.items,i=this.labelVisibility==="auto"?t.length<=3?"labeled":"selected":this.labelVisibility;t.forEach(r=>{r.active=this.activeKey===r.key,r.labelVisibility=i,r.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};hr.styles=[Ee,ck];v([R({type:Boolean,reflect:!0,converter:Y})],hr.prototype,"hide",void 0);v([R({reflect:!0,attribute:"label-visibility"})],hr.prototype,"labelVisibility",void 0);v([R({reflect:!0})],hr.prototype,"value",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],hr.prototype,"scrollBehavior",void 0);v([Ce()],hr.prototype,"activeKey",void 0);v([Ji({selector:"mdui-navigation-bar-item",flatten:!0})],hr.prototype,"items",void 0);v([re("activeKey",!0)],hr.prototype,"onActiveKeyChange",null);v([re("value")],hr.prototype,"onValueChange",null);v([re("labelVisibility",!0)],hr.prototype,"onLabelVisibilityChange",null);hr=v([se("mdui-navigation-bar")],hr);const o5=e=>{const t=Yn(),i=wi(),r=t.getComputedStyle(i.documentElement),n=ln(e)?B(e).innerWidth():Xd(e)?e:B(t).innerWidth(),s=a=>{const l=r.getPropertyValue(`--mdui-breakpoint-${a}`).toLowerCase();return parseFloat(l)},o=a=>{switch(a){case"xs":return"sm";case"sm":return"md";case"md":return"lg";case"lg":return"xl";case"xl":return"xxl"}};return{up(a){return n>=s(a)},down(a){return n{const i=this.contained?this.parentElement:void 0;this.mobile=o5(i).down("md"),this.isParentLayout&&this.layoutManager.updateLayout(this,{width:this.isModal?0:void 0})})}onPlacementChange(){this.isParentLayout&&this.layoutManager.updateLayout(this)}async onMobileChange(){!this.open||this.isParentLayout||this.contained||(await this.definedController.whenDefined(),this.isModal?(wf(this,this.lockTarget),await this.getLockTargetAnimate(!1,0)):(za(this,this.lockTarget),await this.getLockTargetAnimate(!0,0)))}async onOpenChange(){let t=this.panelRef.value,i=this.overlayRef.value;const r=this.placement==="right",n=ci(this,"linear"),s=ci(this,"emphasized"),o=(l,c)=>{B(this.layoutManager.getItemsAndMain()).css("transition",y0(l)?null:`all ${l}ms ${c}`)},a=async()=>{const l=[];if(this.isModal?l.push(i,t):this.isParentLayout||l.push(this.lockTarget),this.isParentLayout){const c=this.layoutManager.getItemsAndMain(),d=c.indexOf(this);l.push(...c.slice(d))}!this.isModal&&!l.includes(this)&&l.push(this),await Promise.all(l.map(c=>Ii(c)))};if(this.open){const l=this.hasUpdated;if(l||(await this.updateComplete,t=this.panelRef.value,i=this.overlayRef.value),l&&!this.emit("open",{cancelable:!0}))return;await this.definedController.whenDefined(),this.style.display="block",this.originalTrigger=document.activeElement,this.isModal&&(this.modalHelper.activate(),this.contained||wf(this,this.lockTarget)),await a(),requestAnimationFrame(()=>{const u=this.querySelector("[autofocus]");u?u.focus({preventScroll:!0}):t.focus({preventScroll:!0})});const c=ur(this,"long2"),d=[];if(this.isModal?d.push(Xe(i,[{opacity:0},{opacity:1,offset:.3},{opacity:1}],{duration:l?c:0,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!0,l?c:0)),this.isParentLayout&&l&&(o(c,s),this.layoutManager.updateLayout(this)),d.push(Xe(this.isModal?t:this,[{transform:`translateX(${r?"":"-"}100%)`},{transform:"translateX(0)"}],{duration:l?c:0,easing:s})),await Promise.all(d),!this.open)return;this.isParentLayout&&l&&o(null),l&&this.emit("opened")}else if(this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;await this.definedController.whenDefined(),this.isModal&&this.modalHelper.deactivate(),await a();const c=ur(this,"short4"),d=[];if(this.isModal?d.push(Xe(i,[{opacity:1},{opacity:0}],{duration:c,easing:n})):this.isParentLayout||d.push(this.getLockTargetAnimate(!1,c)),this.isParentLayout&&(o(c,s),this.layoutManager.updateLayout(this,{width:0})),d.push(Xe(this.isModal?t:this,[{transform:"translateX(0)"},{transform:`translateX(${r?"":"-"}100%)`}],{duration:c,easing:s})),await Promise.all(d),this.open)return;this.isParentLayout&&o(null),this.style.display="none",this.isModal&&!this.contained&&za(this,this.lockTarget);const u=this.originalTrigger;Ct(u==null?void 0:u.focus)&&setTimeout(()=>u.focus()),this.emit("closed")}}connectedCallback(){super.connectedCallback(),this.modalHelper=new Jb(this)}disconnectedCallback(){var t;super.disconnectedCallback(),za(this,this.lockTarget),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("keydown",i=>{this.open&&this.closeOnEsc&&i.key==="Escape"&&this.isModal&&(i.stopPropagation(),this.open=!1)})}render(){return D`${et(this.isModal,()=>D`
`)}`}onOverlayClick(){this.emit("overlay-click"),this.closeOnOverlayClick&&(this.open=!1)}getLockTargetAnimate(t,i){const r=this.placement==="right"?"paddingRight":"paddingLeft",n=B(this.panelRef.value).innerWidth()+"px";return Xe(this.lockTarget,[{[r]:t?0:n},{[r]:t?n:0}],{duration:i,easing:ci(this,"emphasized"),fill:"forwards"})}};Di.styles=[Ee,dk];v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"open",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"modal",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-esc"})],Di.prototype,"closeOnEsc",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"close-on-overlay-click"})],Di.prototype,"closeOnOverlayClick",void 0);v([R({reflect:!0})],Di.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"contained",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Di.prototype,"mobile",void 0);v([re("contained")],Di.prototype,"onContainedChange",null);v([re("placement",!0)],Di.prototype,"onPlacementChange",null);v([re("mobile",!0),re("modal",!0)],Di.prototype,"onMobileChange",null);v([re("open")],Di.prototype,"onOpenChange",null);Di=v([se("mdui-navigation-drawer")],Di);const uk=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;border-radius:0 var(--shape-corner) var(--shape-corner) 0;z-index:var(--z-index);width:5rem;background-color:rgb(var(--mdui-color-surface));padding:.375rem .75rem}:host([contained]){position:absolute}:host([divider]){border-right:.0625rem solid rgb(var(--mdui-color-surface-variant));width:5.0625rem}:host([placement=right]){left:initial;right:0;border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host([placement=right][divider]){border-right:none;border-left:.0625rem solid rgb(var(--mdui-color-surface-variant))}.bottom,.items,.top{display:flex;flex-direction:column;align-items:center;width:100%}.top{margin-bottom:1.75rem}.bottom{margin-top:1.75rem}::slotted([slot=bottom]),::slotted([slot=top]),::slotted(mdui-navigation-rail-item){margin-top:.375rem;margin-bottom:.375rem}:host([alignment=start]) .top-spacer{flex-grow:0}:host([alignment=start]) .bottom-spacer{flex-grow:1}:host([alignment=end]) .top-spacer{flex-grow:1}:host([alignment=end]) .bottom-spacer{flex-grow:0}:host([alignment=center]){justify-content:center}:host([alignment=center]) .bottom,:host([alignment=center]) .top{position:absolute}:host([alignment=center]) .top{top:.375rem}:host([alignment=center]) .bottom{bottom:.375rem}`;let Li=class extends Zn{constructor(){super(...arguments),this.placement="left",this.alignment="start",this.contained=!1,this.divider=!1,this.activeKey=0,this.hasSlotController=new Ut(this,"top","bottom"),this.definedController=new Qt(this,{relatedElements:["mdui-navigation-rail-item"]}),this.isInitial=!0}get layoutPlacement(){return this.placement}get parentTarget(){return this.contained||this.isParentLayout?this.parentElement:document.body}get isRight(){return this.placement==="right"}get paddingValue(){return["fixed","absolute"].includes(B(this).css("position"))?this.offsetWidth:void 0}async onActiveKeyChange(){await this.definedController.whenDefined();const t=this.items.find(i=>i.key===this.activeKey);this.value=t==null?void 0:t.value,this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.items.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0,this.updateItems()}async onContainedChange(){this.isParentLayout||(await this.definedController.whenDefined(),B(document.body).css({paddingLeft:this.contained||this.isRight?null:this.paddingValue,paddingRight:this.contained||!this.isRight?null:this.paddingValue}),B(this.parentElement).css({paddingLeft:this.contained&&!this.isRight?this.paddingValue:null,paddingRight:this.contained&&this.isRight?this.paddingValue:null}))}async onPlacementChange(){var t;await this.definedController.whenDefined(),(t=this.layoutManager)==null||t.updateLayout(this),this.items.forEach(i=>{i.placement=this.placement}),this.isParentLayout||B(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})}connectedCallback(){super.connectedCallback(),this.isParentLayout||this.definedController.whenDefined().then(()=>{B(this.parentTarget).css({paddingLeft:this.isRight?null:this.paddingValue,paddingRight:this.isRight?this.paddingValue:null})})}disconnectedCallback(){super.disconnectedCallback(),!this.isParentLayout&&this.definedController.isDefined()&&B(this.parentTarget).css({paddingLeft:this.isRight?void 0:null,paddingRight:this.isRight?null:void 0})}render(){const t=this.hasSlotController.test("top"),i=this.hasSlotController.test("bottom");return D`${et(t,()=>D``)} ${et(i,()=>D``)}`}onClick(t){if(t.button)return;const r=t.target.closest("mdui-navigation-rail-item");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateItems())}updateItems(){this.items.forEach(t=>{t.active=this.activeKey===t.key,t.placement=this.placement,t.isInitial=this.isInitial})}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems()}};Li.styles=[Ee,uk];v([R({reflect:!0})],Li.prototype,"value",void 0);v([R({reflect:!0})],Li.prototype,"placement",void 0);v([R({reflect:!0})],Li.prototype,"alignment",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"contained",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Li.prototype,"divider",void 0);v([Ce()],Li.prototype,"activeKey",void 0);v([Ji({selector:"mdui-navigation-rail-item",flatten:!0})],Li.prototype,"items",void 0);v([re("activeKey",!0)],Li.prototype,"onActiveKeyChange",null);v([re("value")],Li.prototype,"onValueChange",null);v([re("contained",!0)],Li.prototype,"onContainedChange",null);v([re("placement",!0)],Li.prototype,"onPlacementChange",null);Li=v([se("mdui-navigation-rail")],Li);const hk=pe`:host{--shape-corner-indicator:var(--mdui-shape-corner-full);position:relative;z-index:0;width:100%;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface-variant)}.container{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:3.5rem}.container:not(.initial){transition:padding var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}mdui-ripple{z-index:1;width:3.5rem;height:2rem;border-radius:var(--mdui-shape-corner-full)}.container:not(.has-label)+mdui-ripple{height:3.5rem}.indicator{position:relative;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:var(--shape-corner-indicator);height:2rem;width:2rem}:not(.initial) .indicator{transition:background-color var(--mdui-motion-duration-short1) var(--mdui-motion-easing-standard),width var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.placement-right::slotted([slot=badge]){transform:translate(-50%,-50%)}::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.placement-right::slotted([slot=badge][variant=small]){transform:translate(-.5625rem,-.5625rem)}.active-icon,.icon{color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}.active-icon mdui-icon,.icon mdui-icon,::slotted([slot=active-icon]),::slotted([slot=icon]){font-size:inherit}.icon{display:flex}.active-icon{display:none}.label{display:flex;align-items:center;height:1rem;color:rgb(var(--mdui-color-on-surface-variant));margin-top:.25rem;margin-bottom:.25rem;font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height)}:not(.initial) .label{transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]) .indicator{width:3.5rem;background-color:rgb(var(--mdui-color-secondary-container))}:host([active]) :not(.has-label) .indicator{height:3.5rem}:host([active]) .active-icon,:host([active]) .icon{color:rgb(var(--mdui-color-on-secondary-container))}:host([active]) .has-active-icon .active-icon{display:flex}:host([active]) .has-active-icon .icon{display:none}:host([active]) .label{color:rgb(var(--mdui-color-on-surface))}`;let zr=class extends sa(Er(er(Re))){constructor(){super(...arguments),this.active=!1,this.isInitial=!0,this.placement="left",this.disabled=!1,this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"[default]","active-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){var t;return this.href?(t=this.renderRoot)==null?void 0:t.querySelector("._a"):this}get focusDisabled(){return this.disabled}render(){const t=this.hasSlotController.test("[default]"),i=Or({container:!0,"has-label":t,"has-active-icon":this.activeIcon||this.hasSlotController.test("active-icon"),initial:this.isInitial});return D`${this.href?this.renderAnchor({part:"container",className:i,content:this.renderInner(t)}):D`
${this.renderInner(t)}
`}`}renderInner(t){return D`
${this.activeIcon?D``:Ke}${this.icon?D``:Ke}
${t?D``:Ze}`}};zr.styles=[Ee,hk];v([R({reflect:!0})],zr.prototype,"icon",void 0);v([R({reflect:!0,attribute:"active-icon"})],zr.prototype,"activeIcon",void 0);v([R({reflect:!0})],zr.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],zr.prototype,"active",void 0);v([Ce()],zr.prototype,"isInitial",void 0);v([Ce()],zr.prototype,"placement",void 0);v([Ce()],zr.prototype,"disabled",void 0);zr=v([se("mdui-navigation-rail-item")],zr);let Ef=class extends ht{render(){return ei('')}};Ef.styles=Jt;Ef=v([se("mdui-icon-circle")],Ef);let xf=class extends ht{render(){return ei('')}};xf.styles=Jt;xf=v([se("mdui-icon-radio-button-unchecked")],xf);const fk=pe`:host{position:relative;display:inline-flex;align-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none;border-radius:.125rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height)}.icon{display:flex;position:absolute;font-size:1.5rem}:not(.initial) .icon{transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard)}.unchecked-icon{transition-property:color;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .unchecked-icon,:host([hover]) .unchecked-icon,:host([pressed]) .unchecked-icon{color:rgb(var(--mdui-color-on-surface))}.checked-icon{opacity:0;transform:scale(.2);transition-property:color,opacity,transform;color:rgb(var(--mdui-color-primary))}.icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){color:inherit;font-size:inherit}i{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;width:2.5rem;min-width:2.5rem;height:2.5rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.label{display:flex;width:100%;padding-top:.625rem;padding-bottom:.625rem;color:rgb(var(--mdui-color-on-surface))}.label:not(.initial){transition:color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}:host([checked]) i{--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .icon{color:rgb(var(--mdui-color-primary))}:host([checked]) .checked-icon{opacity:1;transform:scale(.5)}i.invalid{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}i.invalid .icon{color:rgb(var(--mdui-color-error))}.label.invalid{color:rgb(var(--mdui-color-error))}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none}:host([disabled]) .icon,:host([group-disabled]) .icon{color:rgba(var(--mdui-color-on-surface),38%)}:host([disabled]) .label,:host([group-disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}`;let Zi=class extends Er(er(Re)){constructor(){super(...arguments),this.value="",this.disabled=!1,this.checked=!1,this.invalid=!1,this.groupDisabled=!1,this.focusable=!0,this.isInitial=!0,this.rippleRef=be()}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()}get focusElement(){return this}get focusDisabled(){return this.isDisabled()||!this.focusable}onCheckedChange(){this.emit("change")}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",()=>{this.isDisabled()||(this.checked=!0)})}render(){const t=kt({invalid:this.invalid,initial:this.isInitial});return D`${this.uncheckedIcon?D``:D``}${this.checkedIcon?D``:D``}`}isDisabled(){return this.disabled||this.groupDisabled}};Zi.styles=[Ee,fk];v([R({reflect:!0})],Zi.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zi.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Zi.prototype,"checked",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Zi.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Zi.prototype,"checkedIcon",void 0);v([Ce()],Zi.prototype,"invalid",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],Zi.prototype,"groupDisabled",void 0);v([Ce()],Zi.prototype,"focusable",void 0);v([Ce()],Zi.prototype,"isInitial",void 0);v([re("checked",!0)],Zi.prototype,"onCheckedChange",null);Zi=v([se("mdui-radio")],Zi);const pk=pe`:host{display:inline-block}fieldset{border:none;padding:0;margin:0;min-width:0}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}`;let fr=class extends Re{constructor(){super(...arguments),this.disabled=!1,this.name="",this.value="",this.defaultValue="",this.required=!1,this.invalid=!1,this.isInitial=!0,this.inputRef=be(),this.formController=new pn(this),this.definedController=new Qt(this,{relatedElements:["mdui-radio"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return B(this).find("mdui-radio").get()}get itemsEnabled(){return B(this).find("mdui-radio:not([disabled])").get()}async onValueChange(){var i;this.isInitial=!1,await this.definedController.whenDefined(),this.emit("input"),this.emit("change"),this.updateItems(),this.updateRadioFocusable(),await this.updateComplete;const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D`
`}updateRadioFocusable(){const t=this.items,i=t.find(r=>r.checked);i?t.forEach(r=>{r.focusable=r===i}):this.itemsEnabled.forEach((r,n)=>{r.focusable=!n})}async onClick(t){await this.definedController.whenDefined();const r=t.target.closest("mdui-radio");!r||r.disabled||(this.value=r.value,await this.updateComplete,r.focus())}async onKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;t.preventDefault(),await this.definedController.whenDefined();const i=this.itemsEnabled,r=i.find(o=>o.checked)??i[0],n=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1;let s=i.indexOf(r)+n;s<0&&(s=i.length-1),s>i.length-1&&(s=0),this.value=i[s].value,await this.updateComplete,i[s].focus()}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(),this.updateRadioFocusable()}onCheckedChange(t){t.stopPropagation()}updateItems(){this.items.forEach(t=>{t.checked=t.value===this.value,t.invalid=this.invalid,t.groupDisabled=this.disabled,t.isInitial=this.isInitial})}};fr.styles=[Ee,pk];v([R({type:Boolean,reflect:!0,converter:Y})],fr.prototype,"disabled",void 0);v([R({reflect:!0})],fr.prototype,"form",void 0);v([R({reflect:!0})],fr.prototype,"name",void 0);v([R({reflect:!0})],fr.prototype,"value",void 0);v([Gn()],fr.prototype,"defaultValue",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],fr.prototype,"required",void 0);v([Ce()],fr.prototype,"invalid",void 0);v([re("value",!0)],fr.prototype,"onValueChange",null);v([re("invalid",!0),re("disabled")],fr.prototype,"onInvalidChange",null);fr=v([se("mdui-radio-group")],fr);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function*No(e,t){if(e!==void 0){let i=0;for(const r of e)yield t(r,i++)}}const mk=me`:host{position:relative;display:block;width:100%;-webkit-tap-highlight-color:transparent;height:2.5rem;padding:0 1.25rem}label{position:relative;display:block;width:100%;height:100%}input[type=range]{position:absolute;inset:0;z-index:4;height:100%;cursor:pointer;opacity:0;-webkit-appearance:none;appearance:none;width:calc(100% + 20rem * 2 / 16);margin:0 -1.25rem;padding:0 .75rem}:host([disabled]) input[type=range]{cursor:not-allowed}.track-active,.track-inactive{position:absolute;top:50%;height:.25rem;margin-top:-.125rem}.track-inactive{left:-.125rem;right:-.125rem;border-radius:var(--mdui-shape-corner-full);background-color:rgb(var(--mdui-color-surface-container-highest))}.invalid .track-inactive{background-color:rgba(var(--mdui-color-error),.12)}:host([disabled]) .track-inactive{background-color:rgba(var(--mdui-color-on-surface),.12)}.track-active{background-color:rgb(var(--mdui-color-primary))}.invalid .track-active{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .track-active{background-color:rgba(var(--mdui-color-on-surface),.38)}.handle{position:absolute;top:50%;transform:translate(-50%);cursor:pointer;z-index:2;width:2.5rem;height:2.5rem;margin-top:-1.25rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.invalid .handle{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.handle .elevation,.handle::before{position:absolute;display:block;content:' ';left:.625rem;top:.625rem;width:1.25rem;height:1.25rem;border-radius:var(--mdui-shape-corner-full)}.handle .elevation{background-color:rgb(var(--mdui-color-primary));box-shadow:var(--mdui-elevation-level1)}.invalid .handle .elevation{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .handle .elevation{background-color:rgba(var(--mdui-color-on-surface),.38);box-shadow:var(--mdui-elevation-level0)}.handle::before{background-color:rgb(var(--mdui-color-background))}.handle mdui-ripple{border-radius:var(--mdui-shape-corner-full)}.label{position:absolute;left:50%;transform:translateX(-50%) scale(0);transform-origin:center bottom;display:flex;align-items:center;justify-content:center;cursor:default;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;transition:transform var(--mdui-motion-duration-short2) var(--mdui-motion-easing-standard);bottom:2.5rem;min-width:1.75rem;height:1.75rem;padding:.375rem .5rem;border-radius:var(--mdui-shape-corner-full);color:rgb(var(--mdui-color-on-primary));font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height);background-color:rgb(var(--mdui-color-primary))}.invalid .label{color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error))}.label::after{content:' ';position:absolute;z-index:-1;transform:rotate(45deg);width:.875rem;height:.875rem;bottom:-.125rem;background-color:rgb(var(--mdui-color-primary))}.invalid .label::after{background-color:rgb(var(--mdui-color-error))}.label-visible{transform:translateX(-50%) scale(1);transition:transform var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.tickmark{position:absolute;top:50%;transform:translate(-50%);width:.125rem;height:.125rem;margin-top:-.0625rem;border-radius:var(--mdui-shape-corner-full);background-color:rgba(var(--mdui-color-on-surface-variant),.38)}.invalid .tickmark{background-color:rgba(var(--mdui-color-error),.38)}.tickmark.active{background-color:rgba(var(--mdui-color-on-primary),.38)}.invalid .tickmark.active{background-color:rgba(var(--mdui-color-on-error),.38)}:host([disabled]) .tickmark{background-color:rgba(var(--mdui-color-on-surface),.38)}`;class ti extends Er(er(Ne)){constructor(){super(...arguments),this.min=0,this.max=100,this.step=1,this.tickmarks=!1,this.nolabel=!1,this.disabled=!1,this.name="",this.invalid=!1,this.labelVisible=!1,this.inputRef=be(),this.trackActiveRef=be(),this.labelFormatter=t=>t.toString()}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}onDisabledChange(){this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}fixValue(t){const{min:i,max:r,step:n}=this;t=Math.min(Math.max(t,i),r);const s=Math.round((t-i)/n);let o=i+s*n;return o>r&&(o-=n),o}getCandidateValues(){return Array.from({length:this.max-this.min+1},(t,i)=>i+this.min).filter(t=>!((t-this.min)%this.step))}renderLabel(t){return et(!this.nolabel,()=>D`
${this.labelFormatter(t)}
`)}onChange(){this.emit("change")}}ti.styles=[Ee,mk];v([R({type:Number,reflect:!0})],ti.prototype,"min",void 0);v([R({type:Number,reflect:!0})],ti.prototype,"max",void 0);v([R({type:Number,reflect:!0})],ti.prototype,"step",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"tickmarks",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"nolabel",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"disabled",void 0);v([R({reflect:!0})],ti.prototype,"form",void 0);v([R({reflect:!0})],ti.prototype,"name",void 0);v([Ce()],ti.prototype,"invalid",void 0);v([Ce()],ti.prototype,"labelVisible",void 0);v([R({attribute:!1})],ti.prototype,"labelFormatter",void 0);v([re("disabled",!0)],ti.prototype,"onDisabledChange",null);let Go=class extends ti{constructor(){super(...arguments),this.defaultValue=[],this.currentHandle="start",this.rippleStartRef=be(),this.rippleEndRef=be(),this.handleStartRef=be(),this.handleEndRef=be(),this.formController=new pn(this),this._value=[],this.getRippleIndex=()=>this.hoverHandle?this.hoverHandle==="start"?0:1:this.currentHandle==="start"?0:1}get value(){return this._value}set value(t){const i=[...this._value];this._value=[this.fixValue(t[0]),this.fixValue(t[1])],this.requestUpdate("value",i),this.updateComplete.then(()=>{var n;this.updateStyle();const r=this.formController.getForm();r&&((n=It.get(r))!=null&&n.has(this))?(this.invalid=!1,It.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()})}get rippleElement(){return[this.rippleStartRef.value,this.rippleEndRef.value]}connectedCallback(){super.connectedCallback(),this.value.length||(this.value=[this.min,this.max]),this.value[0]=this.fixValue(this.value[0]),this.value[1]=this.fixValue(this.value[1]),this.defaultValue.length||(this.defaultValue=[...this.value])}firstUpdated(t){super.firstUpdated(t);const i=s=>{const o=M(this),a=parseFloat(o.css("padding-left")),l=parseFloat(o.css("padding-right")),c=(s.offsetX-a)/(this.clientWidth-a-l),d=(this.max-this.min)*c+this.min,u=(this.value[1]-this.value[0])/2+this.value[0];return d>u?"end":"start"},r=()=>{this.disabled||(this.labelVisible=!0)},n=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",r),this.addEventListener("mousedown",r),this.addEventListener("touchend",n),this.addEventListener("mouseup",n),this.addEventListener("pointerdown",s=>{this.currentHandle=i(s)}),this.addEventListener("pointermove",s=>{const o=i(s);this.hoverHandle!==o&&(this.endHover(s),this.hoverHandle=o,this.startHover(s))}),this.updateStyle()}render(){return D``}updateStyle(){const t=n=>(n-this.min)/(this.max-this.min)*100,i=t(this.value[0]),r=t(this.value[1]);this.trackActiveRef.value.style.width=`${r-i}%`,this.trackActiveRef.value.style.left=`${i}%`,this.handleStartRef.value.style.left=`${i}%`,this.handleEndRef.value.style.left=`${r}%`}onInput(){const t=this.currentHandle==="start",i=parseFloat(this.inputRef.value.value),r=this.value[0],n=this.value[1],s=()=>{this.updateStyle()};t?i<=n?(this.value=[i,n],s()):r!==n&&(this.value=[n,n],s()):i>=r?(this.value=[r,i],s()):r!==n&&(this.value=[r,r],s())}};Go.styles=[ti.styles];v([Gn()],Go.prototype,"defaultValue",void 0);v([Ce()],Go.prototype,"currentHandle",void 0);v([R({type:Array,attribute:!1})],Go.prototype,"value",null);Go=v([se("mdui-range-slider")],Go);const gk=me`:host{position:relative;display:inline-flex;flex-grow:1;flex-shrink:0;float:left;height:100%;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;border:.0625rem solid rgb(var(--mdui-color-outline))}.button{width:100%;padding:0 .75rem}:host([invalid]){color:rgb(var(--mdui-color-error));border-color:rgb(var(--mdui-color-error))}:host([invalid]) .button{background-color:rgb(var(--mdui-color-error-container))}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( + */function*Ro(e,t){if(e!==void 0){let i=0;for(const r of e)yield t(r,i++)}}const mk=pe`:host{position:relative;display:block;width:100%;-webkit-tap-highlight-color:transparent;height:2.5rem;padding:0 1.25rem}label{position:relative;display:block;width:100%;height:100%}input[type=range]{position:absolute;inset:0;z-index:4;height:100%;cursor:pointer;opacity:0;-webkit-appearance:none;appearance:none;width:calc(100% + 20rem * 2 / 16);margin:0 -1.25rem;padding:0 .75rem}:host([disabled]) input[type=range]{cursor:not-allowed}.track-active,.track-inactive{position:absolute;top:50%;height:.25rem;margin-top:-.125rem}.track-inactive{left:-.125rem;right:-.125rem;border-radius:var(--mdui-shape-corner-full);background-color:rgb(var(--mdui-color-surface-container-highest))}.invalid .track-inactive{background-color:rgba(var(--mdui-color-error),.12)}:host([disabled]) .track-inactive{background-color:rgba(var(--mdui-color-on-surface),.12)}.track-active{background-color:rgb(var(--mdui-color-primary))}.invalid .track-active{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .track-active{background-color:rgba(var(--mdui-color-on-surface),.38)}.handle{position:absolute;top:50%;transform:translate(-50%);cursor:pointer;z-index:2;width:2.5rem;height:2.5rem;margin-top:-1.25rem;--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.invalid .handle{--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}.handle .elevation,.handle::before{position:absolute;display:block;content:' ';left:.625rem;top:.625rem;width:1.25rem;height:1.25rem;border-radius:var(--mdui-shape-corner-full)}.handle .elevation{background-color:rgb(var(--mdui-color-primary));box-shadow:var(--mdui-elevation-level1)}.invalid .handle .elevation{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .handle .elevation{background-color:rgba(var(--mdui-color-on-surface),.38);box-shadow:var(--mdui-elevation-level0)}.handle::before{background-color:rgb(var(--mdui-color-background))}.handle mdui-ripple{border-radius:var(--mdui-shape-corner-full)}.label{position:absolute;left:50%;transform:translateX(-50%) scale(0);transform-origin:center bottom;display:flex;align-items:center;justify-content:center;cursor:default;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;transition:transform var(--mdui-motion-duration-short2) var(--mdui-motion-easing-standard);bottom:2.5rem;min-width:1.75rem;height:1.75rem;padding:.375rem .5rem;border-radius:var(--mdui-shape-corner-full);color:rgb(var(--mdui-color-on-primary));font-size:var(--mdui-typescale-label-medium-size);font-weight:var(--mdui-typescale-label-medium-weight);letter-spacing:var(--mdui-typescale-label-medium-tracking);line-height:var(--mdui-typescale-label-medium-line-height);background-color:rgb(var(--mdui-color-primary))}.invalid .label{color:rgb(var(--mdui-color-on-error));background-color:rgb(var(--mdui-color-error))}.label::after{content:' ';position:absolute;z-index:-1;transform:rotate(45deg);width:.875rem;height:.875rem;bottom:-.125rem;background-color:rgb(var(--mdui-color-primary))}.invalid .label::after{background-color:rgb(var(--mdui-color-error))}.label-visible{transform:translateX(-50%) scale(1);transition:transform var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard)}.tickmark{position:absolute;top:50%;transform:translate(-50%);width:.125rem;height:.125rem;margin-top:-.0625rem;border-radius:var(--mdui-shape-corner-full);background-color:rgba(var(--mdui-color-on-surface-variant),.38)}.invalid .tickmark{background-color:rgba(var(--mdui-color-error),.38)}.tickmark.active{background-color:rgba(var(--mdui-color-on-primary),.38)}.invalid .tickmark.active{background-color:rgba(var(--mdui-color-on-error),.38)}:host([disabled]) .tickmark{background-color:rgba(var(--mdui-color-on-surface),.38)}`;class ti extends Er(er(Re)){constructor(){super(...arguments),this.min=0,this.max=100,this.step=1,this.tickmarks=!1,this.nolabel=!1,this.disabled=!1,this.name="",this.invalid=!1,this.labelVisible=!1,this.inputRef=be(),this.trackActiveRef=be(),this.labelFormatter=t=>t.toString()}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}onDisabledChange(){this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}fixValue(t){const{min:i,max:r,step:n}=this;t=Math.min(Math.max(t,i),r);const s=Math.round((t-i)/n);let o=i+s*n;return o>r&&(o-=n),o}getCandidateValues(){return Array.from({length:this.max-this.min+1},(t,i)=>i+this.min).filter(t=>!((t-this.min)%this.step))}renderLabel(t){return et(!this.nolabel,()=>D`
${this.labelFormatter(t)}
`)}onChange(){this.emit("change")}}ti.styles=[Ee,mk];v([R({type:Number,reflect:!0})],ti.prototype,"min",void 0);v([R({type:Number,reflect:!0})],ti.prototype,"max",void 0);v([R({type:Number,reflect:!0})],ti.prototype,"step",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"tickmarks",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"nolabel",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ti.prototype,"disabled",void 0);v([R({reflect:!0})],ti.prototype,"form",void 0);v([R({reflect:!0})],ti.prototype,"name",void 0);v([Ce()],ti.prototype,"invalid",void 0);v([Ce()],ti.prototype,"labelVisible",void 0);v([R({attribute:!1})],ti.prototype,"labelFormatter",void 0);v([re("disabled",!0)],ti.prototype,"onDisabledChange",null);let Go=class extends ti{constructor(){super(...arguments),this.defaultValue=[],this.currentHandle="start",this.rippleStartRef=be(),this.rippleEndRef=be(),this.handleStartRef=be(),this.handleEndRef=be(),this.formController=new pn(this),this._value=[],this.getRippleIndex=()=>this.hoverHandle?this.hoverHandle==="start"?0:1:this.currentHandle==="start"?0:1}get value(){return this._value}set value(t){const i=[...this._value];this._value=[this.fixValue(t[0]),this.fixValue(t[1])],this.requestUpdate("value",i),this.updateComplete.then(()=>{var n;this.updateStyle();const r=this.formController.getForm();r&&((n=It.get(r))!=null&&n.has(this))?(this.invalid=!1,It.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()})}get rippleElement(){return[this.rippleStartRef.value,this.rippleEndRef.value]}connectedCallback(){super.connectedCallback(),this.value.length||(this.value=[this.min,this.max]),this.value[0]=this.fixValue(this.value[0]),this.value[1]=this.fixValue(this.value[1]),this.defaultValue.length||(this.defaultValue=[...this.value])}firstUpdated(t){super.firstUpdated(t);const i=s=>{const o=B(this),a=parseFloat(o.css("padding-left")),l=parseFloat(o.css("padding-right")),c=(s.offsetX-a)/(this.clientWidth-a-l),d=(this.max-this.min)*c+this.min,u=(this.value[1]-this.value[0])/2+this.value[0];return d>u?"end":"start"},r=()=>{this.disabled||(this.labelVisible=!0)},n=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",r),this.addEventListener("mousedown",r),this.addEventListener("touchend",n),this.addEventListener("mouseup",n),this.addEventListener("pointerdown",s=>{this.currentHandle=i(s)}),this.addEventListener("pointermove",s=>{const o=i(s);this.hoverHandle!==o&&(this.endHover(s),this.hoverHandle=o,this.startHover(s))}),this.updateStyle()}render(){return D``}updateStyle(){const t=n=>(n-this.min)/(this.max-this.min)*100,i=t(this.value[0]),r=t(this.value[1]);this.trackActiveRef.value.style.width=`${r-i}%`,this.trackActiveRef.value.style.left=`${i}%`,this.handleStartRef.value.style.left=`${i}%`,this.handleEndRef.value.style.left=`${r}%`}onInput(){const t=this.currentHandle==="start",i=parseFloat(this.inputRef.value.value),r=this.value[0],n=this.value[1],s=()=>{this.updateStyle()};t?i<=n?(this.value=[i,n],s()):r!==n&&(this.value=[n,n],s()):i>=r?(this.value=[r,i],s()):r!==n&&(this.value=[r,r],s())}};Go.styles=[ti.styles];v([Gn()],Go.prototype,"defaultValue",void 0);v([Ce()],Go.prototype,"currentHandle",void 0);v([R({type:Array,attribute:!1})],Go.prototype,"value",null);Go=v([se("mdui-range-slider")],Go);const gk=pe`:host{position:relative;display:inline-flex;flex-grow:1;flex-shrink:0;float:left;height:100%;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;border:.0625rem solid rgb(var(--mdui-color-outline))}.button{width:100%;padding:0 .75rem}:host([invalid]){color:rgb(var(--mdui-color-error));border-color:rgb(var(--mdui-color-error))}:host([invalid]) .button{background-color:rgb(var(--mdui-color-error-container))}:host([selected]){color:rgb(var(--mdui-color-on-secondary-container));background-color:rgb(var(--mdui-color-secondary-container));--mdui-comp-ripple-state-layer-color:var( --mdui-color-on-secondary-container - )}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none;color:rgba(var(--mdui-color-on-surface),38%);border-color:rgba(var(--mdui-color-on-surface),12%)}:host([loading]){cursor:default;pointer-events:none}:host(:not(.mdui-segmented-button-first)){margin-left:-.0625rem}:host(.mdui-segmented-button-first){border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host(.mdui-segmented-button-last){border-radius:0 var(--shape-corner) var(--shape-corner) 0}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}mdui-circular-progress{width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{opacity:.38}.label{display:inline-flex}.has-icon .label{padding-left:.5rem}.has-end-icon .label{padding-right:.5rem}`;let dn=class extends ft{constructor(){super(...arguments),this.selected=!1,this.invalid=!1,this.groupDisabled=!1,this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"[default]","icon","end-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()||this.loading}get focusDisabled(){return this.isDisabled()||this.loading}render(){const t=Or({button:!0,"has-icon":this.icon||this.selected||this.loading||this.hasSlotController.test("icon"),"has-end-icon":this.endIcon||this.hasSlotController.test("end-icon")});return D`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.isDisabled()||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}isDisabled(){return this.disabled||this.groupDisabled}renderIcon(){return this.loading?this.renderLoading():this.selected?D`${this.selectedIcon?D``:D``}`:D`${this.icon?D``:Ke}`}renderLabel(){return this.hasSlotController.test("[default]")?D``:Ke}renderEndIcon(){return D`${this.endIcon?D``:Ke}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};dn.styles=[ft.styles,gk];v([R({reflect:!0})],dn.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],dn.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],dn.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],dn.prototype,"selected",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],dn.prototype,"invalid",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],dn.prototype,"groupDisabled",void 0);dn=v([se("mdui-segmented-button")],dn);const vk=me`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;vertical-align:middle;height:2.5rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([full-width]){display:flex;flex-wrap:nowrap}input,select{position:absolute;width:100%;height:100%;padding:0;opacity:0;pointer-events:none}`;let Gt=class extends Ne{constructor(){super(...arguments),this.fullWidth=!1,this.disabled=!1,this.required=!1,this.name="",this.value="",this.defaultValue="",this.selectedKeys=[],this.invalid=!1,this.isInitial=!0,this.inputRef=be(),this.formController=new pn(this),this.definedController=new Qt(this,{relatedElements:["mdui-segmented-button"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return M(this).find("mdui-segmented-button").get()}get itemsEnabled(){return M(this).find("mdui-segmented-button:not([disabled])").get()}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||"";this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){var i;if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateItems();return}const t=(this.isSingle?[this.value]:At(this.value)?[this.value]:this.value).filter(r=>r);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const r=this.itemsEnabled.find(n=>n.value===t[0]);this.setSelectedKeys(r?[r.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(r=>t.includes(r.value)).map(r=>r.key));if(this.updateItems(),!this.isInitial){const r=this.formController.getForm();r&&((i=It.get(r))!=null&&i.has(this))?(this.invalid=!1,It.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}connectedCallback(){super.connectedCallback(),this.value=this.isMultiple&&At(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.selects==="multiple"?[]:""}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D`${et(this.isSelectable&&this.isSingle,()=>D``)}${et(this.isSelectable&&this.isMultiple,()=>D``)}`}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateItems()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-segmented-button");!r||r.disabled||this.isSelectable&&r.value&&this.selectOne(r)}async onInputKeyDown(t){if(["Enter"," "].includes(t.key)){if(t.preventDefault(),await this.definedController.whenDefined(),this.isSingle){const i=t.target;i.checked=!i.checked,this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus()}this.isMultiple&&(this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus())}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(!0)}setSelectedKeys(t){Xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle?this.value=t:Xo(this.value,t)||(this.value=t)}updateItems(t=!1){const i=this.items;i.forEach((r,n)=>{r.invalid=this.invalid,r.groupDisabled=this.disabled,r.selected=this.selectedKeys.includes(r.key),t&&(r.classList.toggle("mdui-segmented-button-first",n===0),r.classList.toggle("mdui-segmented-button-last",n===i.length-1))})}};Gt.styles=[Ee,vk];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Gt.prototype,"fullWidth",void 0);v([R({reflect:!0})],Gt.prototype,"selects",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Gt.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Gt.prototype,"required",void 0);v([R({reflect:!0})],Gt.prototype,"form",void 0);v([R({reflect:!0})],Gt.prototype,"name",void 0);v([R()],Gt.prototype,"value",void 0);v([Gn()],Gt.prototype,"defaultValue",void 0);v([Ce()],Gt.prototype,"selectedKeys",void 0);v([Ce()],Gt.prototype,"invalid",void 0);v([re("selects",!0)],Gt.prototype,"onSelectsChange",null);v([re("selectedKeys",!0)],Gt.prototype,"onSelectedKeysChange",null);v([re("value")],Gt.prototype,"onValueChange",null);v([re("invalid",!0),re("disabled")],Gt.prototype,"onInvalidChange",null);Gt=v([se("mdui-segmented-button-group")],Gt);const yk=new WeakMap;let B1=0;const Nu=new Map,O1=new WeakSet,M1=()=>new Promise(e=>requestAnimationFrame(e)),V1=(e,t)=>{const i=e-t;return i===0?void 0:i},F1=(e,t)=>{const i=e/t;return i===1?void 0:i},Iu={left:(e,t)=>{const i=V1(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(e,t)=>{const i=V1(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(e,t)=>{let i;t===0&&(t=1,i={width:"1px"});const r=F1(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(e,t)=>{let i;t===0&&(t=1,i={height:"1px"});const r=F1(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},bk={duration:333,easing:"ease-in-out"},wk=["left","top","width","height","opacity","color","background"],z1=new WeakMap;class _k extends $0{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===br.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(i=>{this.l=i})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return Ze}getController(){return yk.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[i]){var n;const r=this.u===void 0;return r&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(s=>this.t=!0),this.element=t.element,z1.set(this.element,this)),this.optionsOrCallback=i,(r||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=wk),this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const s=i[n]??(Iu[n]?void 0:r[n]),o=Number(s);t[n]=isNaN(o)?s+"":o}),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((r,n)=>{if(Array.isArray(r)){if(Array.isArray(n)&&n.length===r.length&&r.every((s,o)=>s===n[o]))return!1}else if(n===r)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await M1;const i=this.O(),r=this.j(this.options.keyframeOptions,i),n=this.m();if(this.A!==void 0){const{from:s,to:o}=this.N(this.A,n,i);this.log("measured",[this.A,n,s,o]),t=this.calculateKeyframes(s,o)}else{const s=Nu.get(this.options.inId);if(s){Nu.delete(this.options.inId);const{from:o,to:a}=this.N(s,n,i);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,B1++,t.forEach(l=>l.zIndex=B1)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,r)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,i;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(i=this.webAnimation)==null||i.cancel()}reconnected(){}async disconnected(){var i;if(!this.h||(this.options.id!==void 0&&Nu.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await M1(),(i=this.i)==null?void 0:i.isConnected){const r=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,r),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const s=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||s===0&&o===0||(this.element.style.position="relative"),s!==0&&(this.element.style.left=s+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,i;(i=(t=this.options).onStart)==null||i.call(t,this)}didFinish(t){var i,r;t&&((r=(i=this.options).onComplete)==null||r.call(i,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let i=this.element.parentNode;i;i=i==null?void 0:i.parentNode){const r=z1.get(i);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=O1.has(this.u);return t||this.u.updateComplete.then(()=>{O1.add(this.u)}),t}j(t,i=this.O()){const r={...bk};return i.forEach(n=>Object.assign(r,n.options.keyframeOptions)),Object.assign(r,t),r}N(t,i,r){t={...t},i={...i};const n=r.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&i.left!==void 0&&(t.left=s*t.left,i.left=s*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=o*t.top,i.top=o*i.top)),{from:t,to:i}}calculateKeyframes(t,i,r=!1){const n={},s={};let o=!1;const a={};for(const l in i){const c=t[l],d=i[l];if(l in Iu){const u=Iu[l];if(c===void 0||d===void 0)continue;const h=u(c,d);h.transform!==void 0&&(a[l]=h.value,o=!0,n.transform=`${n.transform??""} ${h.transform}`,h.overrideFrom!==void 0&&Object.assign(n,h.overrideFrom))}else c!==d&&c!==void 0&&d!==void 0&&(o=!0,n[l]=c,s[l]=d)}return n.transformOrigin=s.transformOrigin=r?"center center":"top left",this.animatingProperties=a,o?[n,s]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,i]),r=!0,this.webAnimation=this.element.animate(t,i);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(r),r}isAnimating(){var t,i;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((i=this.webAnimation)==null?void 0:i.pending)}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const kk=eo(_k);let Sf=class extends ht{render(){return ei('')}};Sf.styles=Jt;Sf=v([se("mdui-icon-cancel--outlined")],Sf);let Tf=class extends ht{render(){return ei('')}};Tf.styles=Jt;Tf=v([se("mdui-icon-error")],Tf);let Rf=class extends ht{render(){return ei('')}};Rf.styles=Jt;Rf=v([se("mdui-icon-visibility-off")],Rf);let Nf=class extends ht{render(){return ei('')}};Nf.styles=Jt;Nf=v([se("mdui-icon-visibility")],Nf);const Ck=me`:host{display:inline-block;width:100%}:host([disabled]){pointer-events:none}:host([type=hidden]){display:none}.container{position:relative;display:flex;align-items:center;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard);padding:0 1rem}.container.has-icon{padding-left:.75rem}.container.has-end-icon,.container.has-error-icon{padding-right:.75rem}:host([variant=filled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));border-radius:var(--mdui-shape-corner-extra-small) var(--mdui-shape-corner-extra-small) 0 0}:host([variant=filled]) .container.invalid,:host([variant=filled]) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled]:hover) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .container.invalid,:host([variant=filled]:hover) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .container,:host([variant=filled][focused]) .container{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-primary))}:host([variant=filled][focused-style]) .container.invalid,:host([variant=filled][focused-style]) .container.invalid-style,:host([variant=filled][focused]) .container.invalid,:host([variant=filled][focused]) .container.invalid-style{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),4%)}:host([variant=outlined]) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-outline));border-radius:var(--mdui-shape-corner-extra-small)}:host([variant=outlined]) .container.invalid,:host([variant=outlined]) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-error))}:host([variant=outlined]:hover) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-surface))}:host([variant=outlined]:hover) .container.invalid,:host([variant=outlined]:hover) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-error-container))}:host([variant=outlined][focused-style]) .container,:host([variant=outlined][focused]) .container{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-primary))}:host([variant=outlined][focused-style]) .container.invalid,:host([variant=outlined][focused-style]) .container.invalid-style,:host([variant=outlined][focused]) .container.invalid,:host([variant=outlined][focused]) .container.invalid-style{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-error))}:host([variant=outlined][disabled]) .container{box-shadow:inset 0 0 0 .125rem rgba(var(--mdui-color-on-surface),12%)}.icon,.prefix,.right-icon,.suffix{display:flex;-webkit-user-select:none;user-select:none;color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .icon,:host([disabled]) .prefix,:host([disabled]) .right-icon,:host([disabled]) .suffix{color:rgba(var(--mdui-color-on-surface),38%)}.invalid .right-icon,.invalid .suffix,.invalid-style .right-icon,.invalid-style .suffix{color:rgb(var(--mdui-color-error))}:host(:hover) .invalid .right-icon,:host(:hover) .invalid .suffix,:host(:hover) .invalid-style .right-icon,:host(:hover) .invalid-style .suffix{color:rgb(var(--mdui-color-on-error-container))}:host([focused-style]) .invalid .right-icon,:host([focused-style]) .invalid .suffix,:host([focused-style]) .invalid-style .right-icon,:host([focused-style]) .invalid-style .suffix,:host([focused]) .invalid .right-icon,:host([focused]) .invalid .suffix,:host([focused]) .invalid-style .right-icon,:host([focused]) .invalid-style .suffix{color:rgb(var(--mdui-color-error))}.icon,.right-icon{font-size:1.5rem}.icon mdui-button-icon,.right-icon mdui-button-icon,::slotted(mdui-button-icon[slot]){margin-left:-.5rem;margin-right:-.5rem}.icon .i,.right-icon .i,::slotted([slot$=icon]){font-size:inherit}.has-icon .icon{margin-right:1rem}.has-end-icon .end-icon,.right-icon:not(.end-icon){margin-left:1rem}.prefix,.suffix{display:none;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([variant=filled][label]) .prefix,:host([variant=filled][label]) .suffix{padding-top:1rem}.has-value .prefix,.has-value .suffix,:host([focused-style]) .prefix,:host([focused-style]) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{display:flex}.prefix{padding-right:.125rem}.suffix{padding-left:.125rem}.input-container{width:100%}.label{position:absolute;pointer-events:none;max-width:calc(100% - 1rem);display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;top:1rem;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}.invalid .label,.invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=outlined]) .label{padding:0 .25rem;margin:0 -.25rem}:host([variant=outlined]:hover) .label{color:rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .invalid .label,:host([variant=filled]:hover) .invalid-style .label,:host([variant=outlined]:hover) .invalid .label,:host([variant=outlined]:hover) .invalid-style .label{color:rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label{color:rgb(var(--mdui-color-primary))}:host([variant=filled]) .has-value .label,:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=filled][type=date]) .label,:host([variant=filled][type=datetime-local]) .label,:host([variant=filled][type=month]) .label,:host([variant=filled][type=time]) .label,:host([variant=filled][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:.25rem}:host([variant=outlined]) .has-value .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label,:host([variant=outlined][type=date]) .label,:host([variant=outlined][type=datetime-local]) .label,:host([variant=outlined][type=month]) .label,:host([variant=outlined][type=time]) .label,:host([variant=outlined][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:-.5rem;left:.75rem;opacity:0;background-color:rgb(var(--mdui-color-background))}:host([variant=filled][focused-style]) .invalid .label,:host([variant=filled][focused-style]) .invalid-style .label,:host([variant=filled][focused]) .invalid .label,:host([variant=filled][focused]) .invalid-style .label,:host([variant=outlined][focused-style]) .invalid .label,:host([variant=outlined][focused-style]) .invalid-style .label,:host([variant=outlined][focused]) .invalid .label,:host([variant=outlined][focused]) .invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .label,:host([variant=outlined][disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}.input{display:flex;flex-wrap:wrap;width:100%;border:none;outline:0;background:0 0;-webkit-appearance:none;appearance:none;resize:none;cursor:inherit;font-family:inherit;padding:1rem 0;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height);color:rgb(var(--mdui-color-on-surface));caret-color:rgb(var(--mdui-color-primary))}.input.hide-input{opacity:0;height:0;padding:0!important;overflow:hidden}.input::placeholder{color:rgb(var(--mdui-color-on-surface-variant))}.invalid .input,.invalid-style .input{caret-color:rgb(var(--mdui-color-error))}:host([disabled]) .input{color:rgba(var(--mdui-color-on-surface),38%)}:host([end-aligned]) .input{text-align:right}:host([variant=filled]) .label+.input{padding:1.5rem 0 .5rem 0}.supporting{display:flex;justify-content:space-between;padding:.25rem 1rem;color:rgb(var(--mdui-color-on-surface-variant))}.supporting.invalid,.supporting.invalid-style{color:rgb(var(--mdui-color-error))}.helper{display:block;opacity:1;transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([disabled]) .helper{color:rgba(var(--mdui-color-on-surface),38%)}:host([helper-on-focus]) .helper{opacity:0}:host([helper-on-focus][focused-style]) .helper,:host([helper-on-focus][focused]) .helper{opacity:1}.error{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}.counter{flex-wrap:nowrap;padding-left:1rem;font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}::-ms-reveal{display:none}.is-firefox .input[type=date],.is-firefox .input[type=datetime-local],.is-firefox .input[type=time]{-webkit-clip-path:inset(0 2em 0 0);clip-path:inset(0 2em 0 0)}.input[type=number]::-webkit-inner-spin-button,.input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}.input[type=number]{-moz-appearance:textfield}.input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}`;let de=class extends er(Ne){constructor(){super(...arguments),this.variant="filled",this.type="text",this.name="",this.value="",this.defaultValue="",this.helperOnFocus=!1,this.clearable=!1,this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.autosize=!1,this.counter=!1,this.togglePassword=!1,this.spellcheck=!1,this.invalid=!1,this.invalidStyle=!1,this.focusedStyle=!1,this.isPasswordVisible=!1,this.hasValue=!1,this.error="",this.inputRef=be(),this.formController=new pn(this),this.hasSlotController=new Ut(this,"icon","end-icon","helper","input"),this.readonlyButClearable=!1}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get valueAsNumber(){var t;return((t=this.inputRef.value)==null?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const i=document.createElement("input");i.type="number",i.valueAsNumber=t,this.value=i.value}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}get isFocusedStyle(){return this.focused||this.focusedStyle}get isTextarea(){return this.rows&&this.rows>1||this.autosize}onDisabledChange(){this.inputRef.value.disabled=this.disabled,this.invalid=!this.inputRef.value.checkValidity()}async onValueChange(){var t;if(this.hasValue=!!this.value,this.hasUpdated){await this.updateComplete;const i=this.formController.getForm();i&&((t=It.get(i))!=null&&t.has(this))?(this.invalid=!1,It.get(i).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}onRowsChange(){this.setTextareaHeight()}async onMaxRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=M(this.inputRef.value);t.css("max-height",parseFloat(t.css("line-height"))*(this.maxRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}async onMinRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=M(this.inputRef.value);t.css("min-height",parseFloat(t.css("line-height"))*(this.minRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve(),Bc(this)}select(){this.inputRef.value.select()}setSelectionRange(t,i,r="none"){this.inputRef.value.setSelectionRange(t,i,r)}setRangeText(t,i,r,n="preserve"){this.inputRef.value.setRangeText(t,i,r,n),this.value!==this.inputRef.value.value&&(this.value=this.inputRef.value.value,this.setTextareaHeight(),this.emit("input"),this.emit("change"))}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.setCustomValidityInternal(t),Bc(this)}firstUpdated(t){super.firstUpdated(t),this.setTextareaHeight(),this.observeResize=to(this.inputRef.value,()=>this.setTextareaHeight())}render(){const t=!!this.icon||this.hasSlotController.test("icon"),i=!!this.endIcon||this.hasSlotController.test("end-icon"),r=this.invalid||this.invalidStyle,n=!!this.helper||this.hasSlotController.test("helper"),s=r&&!!(this.error||this.inputRef.value.validationMessage),o=this.counter&&!!this.maxlength,a=this.hasSlotController.test("input"),l={invalid:this.invalid,"invalid-style":this.invalidStyle},c=kt({container:!0,"has-value":this.hasValue,"has-icon":t,"has-end-icon":i,"has-error-icon":r,"is-firefox":navigator.userAgent.includes("Firefox"),...l});return D`
${this.renderPrefix()}
${this.renderLabel()} ${this.isTextarea?this.renderTextArea(a):this.renderInput(a)} ${et(a,()=>D``)}
${this.renderClearButton()}${this.renderTogglePasswordButton()} ${this.renderSuffix(r)}
${et(s||n||o,()=>D`
${this.renderHelper(s,n)} ${this.renderCounter(o)}
`)}`}setCustomValidityInternal(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity(),this.requestUpdate()}onChange(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("change")}onClear(t){this.value="",this.emit("clear"),this.emit("input"),this.emit("change"),this.focus(),t.stopPropagation()}onInput(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("input")}onInvalid(t){t.preventDefault()}onKeyDown(t){const i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!i&&setTimeout(()=>{t.defaultPrevented||this.formController.submit()})}onTextAreaKeyUp(){if(this.pattern){const t=new RegExp(this.pattern);this.value&&!this.value.match(t)?(this.setCustomValidityInternal(this.getPatternErrorMsg()),U9(this,()=>{this.setCustomValidityInternal(this.getPatternErrorMsg())})):(this.setCustomValidityInternal(""),Bc(this))}}onTogglePassword(){this.isPasswordVisible=!this.isPasswordVisible}getPatternErrorMsg(){return H9("Please match the requested format.")}setTextareaHeight(){this.autosize?(this.inputRef.value.style.height="auto",this.inputRef.value.style.height=`${this.inputRef.value.scrollHeight}px`):this.inputRef.value.style.height=void 0}renderLabel(){return this.label?D``:Ke}renderPrefix(){return D`${this.icon?D``:Ke}${this.prefix}`}renderSuffix(t){return D`${this.suffix}${t?D`${this.errorIcon?D``:D``}`:D`${this.endIcon?D``:Ke}`}`}renderClearButton(){const t=this.clearable&&!this.disabled&&(!this.readonly||this.readonlyButClearable)&&(typeof this.value=="number"||this.value.length>0);return et(t,()=>D`${this.clearIcon?D``:D``}`)}renderTogglePasswordButton(){const t=this.type==="password"&&this.togglePassword&&!this.disabled;return et(t,()=>D`${this.isPasswordVisible?D`${this.showPasswordIcon?D``:D``}`:D`${this.hidePasswordIcon?D``:D``}`}`)}renderInput(t){return D``}renderTextArea(t){return D``}renderHelper(t,i){return t?D`
${this.error||this.inputRef.value.validationMessage}
`:i?D`${this.helper}`:D``}renderCounter(t){return t?D`
${this.value.length}/${this.maxlength}
`:Ke}};de.styles=[Ee,Ck];v([R({reflect:!0})],de.prototype,"variant",void 0);v([R({reflect:!0})],de.prototype,"type",void 0);v([R({reflect:!0})],de.prototype,"name",void 0);v([R()],de.prototype,"value",void 0);v([Gn()],de.prototype,"defaultValue",void 0);v([R({reflect:!0})],de.prototype,"label",void 0);v([R({reflect:!0})],de.prototype,"placeholder",void 0);v([R({reflect:!0})],de.prototype,"helper",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"helper-on-focus"})],de.prototype,"helperOnFocus",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],de.prototype,"clearable",void 0);v([R({reflect:!0,attribute:"clear-icon"})],de.prototype,"clearIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],de.prototype,"endAligned",void 0);v([R({reflect:!0})],de.prototype,"prefix",void 0);v([R({reflect:!0})],de.prototype,"suffix",void 0);v([R({reflect:!0})],de.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],de.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"error-icon"})],de.prototype,"errorIcon",void 0);v([R({reflect:!0})],de.prototype,"form",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],de.prototype,"readonly",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],de.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],de.prototype,"required",void 0);v([R({type:Number,reflect:!0})],de.prototype,"rows",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],de.prototype,"autosize",void 0);v([R({type:Number,reflect:!0,attribute:"min-rows"})],de.prototype,"minRows",void 0);v([R({type:Number,reflect:!0,attribute:"max-rows"})],de.prototype,"maxRows",void 0);v([R({type:Number,reflect:!0})],de.prototype,"minlength",void 0);v([R({type:Number,reflect:!0})],de.prototype,"maxlength",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],de.prototype,"counter",void 0);v([R({type:Number,reflect:!0})],de.prototype,"min",void 0);v([R({type:Number,reflect:!0})],de.prototype,"max",void 0);v([R({type:Number,reflect:!0})],de.prototype,"step",void 0);v([R({reflect:!0})],de.prototype,"pattern",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"toggle-password"})],de.prototype,"togglePassword",void 0);v([R({reflect:!0,attribute:"show-password-icon"})],de.prototype,"showPasswordIcon",void 0);v([R({reflect:!0,attribute:"hide-password-icon"})],de.prototype,"hidePasswordIcon",void 0);v([R({reflect:!0})],de.prototype,"autocapitalize",void 0);v([R({reflect:!0})],de.prototype,"autocorrect",void 0);v([R({reflect:!0})],de.prototype,"autocomplete",void 0);v([R({reflect:!0})],de.prototype,"enterkeyhint",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],de.prototype,"spellcheck",void 0);v([R({reflect:!0})],de.prototype,"inputmode",void 0);v([Ce()],de.prototype,"invalid",void 0);v([Ce()],de.prototype,"invalidStyle",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"focused-style"})],de.prototype,"focusedStyle",void 0);v([Ce()],de.prototype,"isPasswordVisible",void 0);v([Ce()],de.prototype,"hasValue",void 0);v([Ce()],de.prototype,"error",void 0);v([re("disabled",!0)],de.prototype,"onDisabledChange",null);v([re("value")],de.prototype,"onValueChange",null);v([re("rows",!0)],de.prototype,"onRowsChange",null);v([re("maxRows")],de.prototype,"onMaxRowsChange",null);v([re("minRows")],de.prototype,"onMinRowsChange",null);de=v([se("mdui-text-field")],de);const Ak=me`:host{display:inline-block;width:100%}.hidden-input{display:none}.text-field{cursor:pointer}.chips{display:flex;flex-wrap:wrap;margin:-.5rem -.25rem;min-height:2.5rem}:host([variant=filled][label]) .chips{margin:0 -.25rem -1rem -.25rem}.chip{margin:.25rem}mdui-menu{max-width:none}`;let Je=class extends er(Ne){constructor(){super(...arguments),this.variant="filled",this.multiple=!1,this.name="",this.value="",this.defaultValue="",this.clearable=!1,this.placement="auto",this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.menuRef=be(),this.textFieldRef=be(),this.hiddenInputRef=be(),this.formController=new pn(this),this.hasSlotController=new Ut(this,"icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"),this.definedController=new Qt(this,{relatedElements:["mdui-menu-item"]})}get validity(){return this.hiddenInputRef.value.validity}get validationMessage(){return this.hiddenInputRef.value.validationMessage}get focusElement(){return this.textFieldRef.value}get focusDisabled(){return this.disabled}connectedCallback(){super.connectedCallback(),this.value=this.multiple&&At(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.multiple?[]:"",this.definedController.whenDefined().then(()=>{this.requestUpdate()})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}checkValidity(){const t=this.hiddenInputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.hiddenInputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.hiddenInputRef.value.setCustomValidity(t),this.invalid=!this.hiddenInputRef.value.checkValidity()}firstUpdated(t){super.firstUpdated(t),this.observeResize=to(this.textFieldRef.value,()=>this.resizeMenu())}render(){var i;const t=this.multiple?!!this.value.length:!!this.value;return D`${this.multiple?D``:D``}`${r}:text-field__${r}`).join(",")}" readonly="readonly" .readonlyButClearable="${!0}" .variant="${this.variant}" .name="${this.name}" .value="${this.multiple?this.value.length?" ":"":this.getMenuItemLabelByValue(this.value)}" .label="${this.label}" .placeholder="${this.placeholder}" .helper="${this.helper}" .error="${(i=this.hiddenInputRef.value)==null?void 0:i.validationMessage}" .clearable="${this.clearable}" .clearIcon="${this.clearIcon}" .endAligned="${this.endAligned}" .prefix="${this.prefix}" .suffix="${this.suffix}" .icon="${this.icon}" .endIcon="${this.endIcon}" .errorIcon="${this.errorIcon}" .form="${this.form}" .disabled="${this.disabled}" .required="${this.required}" .invalidStyle="${this.invalid}" @clear="${this.onClear}" @change="${r=>r.stopPropagation()}" @keydown="${this.onTextFieldKeyDown}">${No(["icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"],r=>this.hasSlotController.test(r)?D``:Ze)} ${et(this.multiple&&this.value.length,()=>D`
${No(this.value,r=>D``${n}:chip__${n}`).join(",")}" variant="input" deletable tabindex="-1" @delete="${()=>this.onDeleteOneValue(r)}">${this.getMenuItemLabelByValue(r)}`)}
`)}
`}getMenuItemLabelByValue(t){var i;return this.menuItems.length&&((i=this.menuItems.find(r=>r.value===t))==null?void 0:i.textContent)||t}resizeMenu(){this.menuRef.value.style.width=`${this.textFieldRef.value.clientWidth}px`}async onDropdownOpen(){this.textFieldRef.value.focusedStyle=!0}onDropdownClose(){var t;this.textFieldRef.value.focusedStyle=!1,(this.contains(document.activeElement)||this.contains(((t=document.activeElement)==null?void 0:t.assignedSlot)??null))&&setTimeout(()=>{this.focus()})}async onValueChange(t){var n;const i=t.target;this.value=this.multiple?i.value.map(s=>s??""):i.value??"",await this.updateComplete;const r=this.formController.getForm();r&&((n=It.get(r))!=null&&n.has(this))?(this.invalid=!1,It.get(r).delete(this)):this.invalid=!this.hiddenInputRef.value.checkValidity()}onDeleteOneValue(t){const i=[...this.value];i.includes(t)&&i.splice(i.indexOf(t),1),this.value=i}onClear(){this.value=this.multiple?[]:""}onTextFieldKeyDown(t){t.key==="Enter"&&(t.preventDefault(),this.textFieldRef.value.click())}};Je.styles=[Ee,Ak];v([R({reflect:!0})],Je.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"multiple",void 0);v([R({reflect:!0})],Je.prototype,"name",void 0);v([R()],Je.prototype,"value",void 0);v([Gn()],Je.prototype,"defaultValue",void 0);v([R({reflect:!0})],Je.prototype,"label",void 0);v([R({reflect:!0})],Je.prototype,"placeholder",void 0);v([R({reflect:!0})],Je.prototype,"helper",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"clearable",void 0);v([R({reflect:!0,attribute:"clear-icon"})],Je.prototype,"clearIcon",void 0);v([R({reflect:!0})],Je.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],Je.prototype,"endAligned",void 0);v([R({reflect:!0})],Je.prototype,"prefix",void 0);v([R({reflect:!0})],Je.prototype,"suffix",void 0);v([R({reflect:!0})],Je.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Je.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"error-icon"})],Je.prototype,"errorIcon",void 0);v([R({reflect:!0})],Je.prototype,"form",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"readonly",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"required",void 0);v([Ce()],Je.prototype,"invalid",void 0);v([Ji({flatten:!0,selector:"mdui-menu-item"})],Je.prototype,"menuItems",void 0);Je=v([se("mdui-select")],Je);const Ek=me`.track-active{left:-.125rem;border-radius:var(--mdui-shape-corner-full) 0 0 var(--mdui-shape-corner-full)}`;let Qo=class extends ti{constructor(){super(...arguments),this.value=0,this.defaultValue=0,this.rippleRef=be(),this.handleRef=be(),this.formController=new pn(this)}get rippleElement(){return this.rippleRef.value}async onValueChange(){var i;this.value=this.fixValue(this.value);const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):(await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()),this.updateStyle()}connectedCallback(){super.connectedCallback(),this.value=this.fixValue(this.value)}firstUpdated(t){super.firstUpdated(t);const i=()=>{this.disabled||(this.labelVisible=!0)},r=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",i),this.addEventListener("mousedown",i),this.addEventListener("touchend",r),this.addEventListener("mouseup",r),this.updateStyle()}render(){return D``}updateStyle(){const t=(this.value-this.min)/(this.max-this.min)*100;this.trackActiveRef.value.style.width=`${t}%`,this.handleRef.value.style.left=`${t}%`}onInput(){this.value=parseFloat(this.inputRef.value.value),this.updateStyle()}};Qo.styles=[ti.styles,Ek];v([R({type:Number})],Qo.prototype,"value",void 0);v([Gn()],Qo.prototype,"defaultValue",void 0);v([re("value",!0)],Qo.prototype,"onValueChange",null);Qo=v([se("mdui-slider")],Qo);const xk=me`:host{--shape-corner:var(--mdui-shape-corner-extra-small);--z-index:2400;position:fixed;z-index:var(--z-index);display:none;align-items:center;flex-wrap:wrap;border-radius:var(--shape-corner);min-width:20rem;max-width:36rem;padding:.25rem 0;box-shadow:var(--mdui-elevation-level3);background-color:rgb(var(--mdui-color-inverse-surface));color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([placement^=top]){transform-origin:top;top:1rem}:host([placement^=bottom]){transform-origin:bottom;bottom:1rem}:host([placement=bottom-start]),:host([placement=top-start]){left:1rem}:host([placement=bottom-end]),:host([placement=top-end]){right:1rem}.message{display:block;margin:.625rem 1rem}:host([message-line='1']) .message{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([message-line='2']) .message{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.action-group{display:flex;align-items:center;margin-left:auto;padding-right:.5rem}.action,.close-button{display:inline-flex;align-items:center;justify-content:center}.action{color:rgb(var(--mdui-color-inverse-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.action mdui-button,::slotted(mdui-button[slot=action][variant=outlined]),::slotted(mdui-button[slot=action][variant=text]){color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-primary)}.action mdui-button::part(button){padding:0 .5rem}.close-button{margin:0 -.25rem 0 .25rem;font-size:1.5rem;color:rgb(var(--mdui-color-inverse-on-surface))}.close-button mdui-button-icon,::slotted(mdui-button-icon[slot=close-button][variant=outlined]),::slotted(mdui-button-icon[slot=close-button][variant=standard]){font-size:inherit;color:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}.close-button .i,::slotted([slot=close-icon]){font-size:inherit}`;let Bi=class extends Ne{constructor(){super(),this.open=!1,this.placement="bottom",this.actionLoading=!1,this.closeable=!1,this.autoCloseDelay=5e3,this.closeOnOutsideClick=!1,this.onDocumentClick=this.onDocumentClick.bind(this)}async onOpenChange(){const t=a5().down("sm"),i=["top","bottom"].includes(this.placement),r=ci(this,"linear"),n=ci(this,"emphasized-decelerate"),s=Array.from(this.renderRoot.querySelectorAll(".message, .action-group")),o=t?{left:"1rem",right:"1rem",minWidth:0}:i?{left:"50%"}:{};if(this.open){const a=this.hasUpdated;if(a||await this.updateComplete,a&&!this.emit("open",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),this.autoCloseDelay&&(this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.autoCloseDelay)),this.style.display="flex",await Promise.all([Ii(this),...s.map(d=>Ii(d))]);const l=ur(this,"medium4"),c=d=>{const u=`scaleY(${d==="start"?0:1})`;return t?{transform:u}:{transform:[u,i?"translateX(-50%)":""].filter(h=>h).join(" ")}};await Promise.all([Xe(this,[{...c("start"),...o},{...c("end"),...o}],{duration:a?l:0,easing:n,fill:"forwards"}),Xe(this,[{opacity:0},{opacity:1,offset:.5},{opacity:1}],{duration:a?l:0,easing:r,fill:"forwards"}),...s.map(d=>Xe(d,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:a?l:0,easing:r}))]),a&&this.emit("opened");return}if(!this.open&&this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),await Promise.all([Ii(this),...s.map(d=>Ii(d))]);const l=ur(this,"short4"),c=d=>{const h={opacity:d==="start"?1:0};return!t&&i&&Object.assign(h,{transform:"translateX(-50%)"}),h};await Promise.all([Xe(this,[{...c("start"),...o},{...c("end"),...o}],{duration:l,easing:r,fill:"forwards"}),...s.map(d=>Xe(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",this.emit("closed");return}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick)}render(){return D`
${this.action?D`${this.action}`:Ke}${et(this.closeable,()=>D`${this.closeIcon?D``:D``}`)}
`}onDocumentClick(t){if(!this.open||!this.closeOnOutsideClick)return;const i=t.target;!this.contains(i)&&this!==i&&(this.open=!1)}onActionClick(t){t.stopPropagation(),this.emit("action-click")}onCloseClick(){this.open=!1}};Bi.styles=[Ee,xk];v([R({type:Boolean,reflect:!0,converter:Y})],Bi.prototype,"open",void 0);v([R({reflect:!0})],Bi.prototype,"placement",void 0);v([R({reflect:!0,attribute:"action"})],Bi.prototype,"action",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"action-loading"})],Bi.prototype,"actionLoading",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Bi.prototype,"closeable",void 0);v([R({reflect:!0,attribute:"close-icon"})],Bi.prototype,"closeIcon",void 0);v([R({type:Number,reflect:!0,attribute:"message-line"})],Bi.prototype,"messageLine",void 0);v([R({type:Number,reflect:!0,attribute:"auto-close-delay"})],Bi.prototype,"autoCloseDelay",void 0);v([R({type:Boolean,reflect:!0,attribute:"close-on-outside-click",converter:Y})],Bi.prototype,"closeOnOutsideClick",void 0);v([re("open")],Bi.prototype,"onOpenChange",null);Bi=v([se("mdui-snackbar")],Bi);const Sk=me`:host{--shape-corner:var(--mdui-shape-corner-full);--shape-corner-thumb:var(--mdui-shape-corner-full);position:relative;display:inline-block;cursor:pointer;-webkit-tap-highlight-color:transparent;height:2.5rem}:host([disabled]){cursor:default;pointer-events:none}label{display:inline-flex;align-items:center;width:100%;height:100%;white-space:nowrap;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}.track{position:relative;display:flex;align-items:center;border-radius:var(--shape-corner);transition-property:background-color,border-width;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:2rem;width:3.25rem;border:.125rem solid rgb(var(--mdui-color-outline));background-color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .track{background-color:rgb(var(--mdui-color-primary));border-width:0}.invalid .track{background-color:rgb(var(--mdui-color-error-container));border-color:rgb(var(--mdui-color-error))}:host([disabled]) .track{background-color:rgba(var(--mdui-color-surface-container-highest),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled][checked]) .track{background-color:rgba(var(--mdui-color-on-surface),.12)}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}mdui-ripple{border-radius:50%;transition-property:left,top;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);width:2.5rem;height:2.5rem}.thumb{position:absolute;display:flex;align-items:center;justify-content:center;border-radius:var(--shape-corner-thumb);transition-property:width,height,left,background-color;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:1rem;width:1rem;left:.375rem;background-color:rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.thumb mdui-ripple{left:-.75rem;top:-.75rem}.has-unchecked-icon .thumb{height:1.5rem;width:1.5rem;left:.125rem}.has-unchecked-icon .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([focus-visible]) .thumb,:host([hover]) .thumb,:host([pressed]) .thumb{background-color:rgb(var(--mdui-color-on-surface-variant))}:host([checked]) .thumb{height:1.5rem;width:1.5rem;left:1.5rem;background-color:rgb(var(--mdui-color-on-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([pressed]) .thumb{height:1.75rem;width:1.75rem;left:0}:host([pressed]) .thumb mdui-ripple{left:-.375rem;top:-.375rem}:host([pressed][checked]) .thumb{left:1.375rem}:host([focus-visible][checked]) .thumb,:host([hover][checked]) .thumb,:host([pressed][checked]) .thumb{background-color:rgb(var(--mdui-color-primary-container))}.invalid .thumb{background-color:rgb(var(--mdui-color-error));--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}:host([focus-visible]) .invalid .thumb,:host([hover]) .invalid .thumb,:host([pressed]) .invalid .thumb{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .thumb{background-color:rgba(var(--mdui-color-on-surface),.38)}:host([disabled][checked]) .thumb{background-color:rgb(var(--mdui-color-surface))}.checked-icon,.unchecked-icon{display:flex;position:absolute;transition-property:opacity,transform;font-size:1rem}.unchecked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .unchecked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([disabled]) .unchecked-icon{color:rgba(var(--mdui-color-surface-container-highest),.38)}.checked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-on-primary-container))}:host([checked]) .checked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3)}.invalid .checked-icon{color:rgb(var(--mdui-color-error-container))}:host([disabled]) .checked-icon{color:rgba(var(--mdui-color-on-surface),.38)}.checked-icon .i,.unchecked-icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){font-size:inherit;color:inherit}`;let Ai=class extends Er(er(Ne)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.rippleRef=be(),this.inputRef=be(),this.formController=new pn(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i}),this.hasSlotController=new Ut(this,"unchecked-icon")}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D``}onChange(){this.checked=this.inputRef.value.checked,this.emit("change")}};Ai.styles=[Ee,Sk];v([R({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"checked",void 0);v([Gn("checked")],Ai.prototype,"defaultChecked",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Ai.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Ai.prototype,"checkedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"required",void 0);v([R({reflect:!0})],Ai.prototype,"form",void 0);v([R({reflect:!0})],Ai.prototype,"name",void 0);v([R({reflect:!0})],Ai.prototype,"value",void 0);v([Ce()],Ai.prototype,"invalid",void 0);v([re("disabled",!0),re("required",!0)],Ai.prototype,"onDisabledChange",null);v([re("checked",!0)],Ai.prototype,"onCheckedChange",null);Ai=v([se("mdui-switch")],Ai);const Tk=me`:host{position:relative;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.container{display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%}.preset{flex-direction:column;min-height:3rem;padding:.625rem 1rem}:host([inline]) .preset{flex-direction:row}.icon-container,.label-container{position:relative;display:flex;align-items:center;justify-content:center}.icon-container ::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.icon-container ::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.label-container ::slotted([slot=badge]){position:absolute;left:100%;bottom:100%;transform:translate(-.75rem,.625rem)}.label-container ::slotted([slot=badge][variant=small]){transform:translate(-.375rem,.375rem)}.icon,.label{display:flex;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .icon,:host([focused]) .label,:host([hover]) .icon,:host([hover]) .label,:host([pressed]) .icon,:host([pressed]) .label{color:rgb(var(--mdui-color-on-surface))}:host([active]) .icon,:host([active]) .label{color:rgb(var(--mdui-color-primary))}:host([active]) .variant-secondary .icon,:host([active]) .variant-secondary .label{color:rgb(var(--mdui-color-on-surface))}.icon{font-size:1.5rem}.label{font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit;color:inherit}`;let Kn=class extends Er(er(Ne)){constructor(){super(...arguments),this.inline=!1,this.active=!1,this.variant="primary",this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return!1}get focusElement(){return this}get focusDisabled(){return!1}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.hasSlotController.test("custom"),r=()=>D``;return D`
${et(t||this.icon,r)}${this.icon?D``:Ke}
${et(!t,r)}
`}};Kn.styles=[Ee,Tk];v([R({reflect:!0})],Kn.prototype,"value",void 0);v([R({reflect:!0})],Kn.prototype,"icon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Kn.prototype,"inline",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Kn.prototype,"active",void 0);v([Ce()],Kn.prototype,"variant",void 0);Kn=v([se("mdui-tab")],Kn);const Rk=me`:host{display:block;overflow-y:auto;flex:1 1 auto}:host(:not([active])){display:none}`;let bl=class extends Ne{constructor(){super(...arguments),this.active=!1}render(){return D``}};bl.styles=[Ee,Rk];v([R({reflect:!0})],bl.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],bl.prototype,"active",void 0);bl=v([se("mdui-tab-panel")],bl);const Nk=me`:host{position:relative;display:flex}:host([placement^=top]){flex-direction:column}:host([placement^=bottom]){flex-direction:column-reverse}:host([placement^=left]){flex-direction:row}:host([placement^=right]){flex-direction:row-reverse}.container{position:relative;display:flex;flex:0 0 auto;overflow-x:auto;background-color:rgb(var(--mdui-color-surface))}:host([placement^=bottom]) .container,:host([placement^=top]) .container{flex-direction:row}:host([placement^=left]) .container,:host([placement^=right]) .container{flex-direction:column}:host([placement$='-start']) .container{justify-content:flex-start}:host([placement=bottom]) .container,:host([placement=left]) .container,:host([placement=right]) .container,:host([placement=top]) .container{justify-content:center}:host([placement$='-end']) .container{justify-content:flex-end}.container::after{content:' ';position:absolute;background-color:rgb(var(--mdui-color-surface-variant))}:host([placement^=bottom]) .container::after,:host([placement^=top]) .container::after{left:0;width:100%;height:.0625rem}:host([placement^=top]) .container::after{bottom:0}:host([placement^=bottom]) .container::after{top:0}:host([placement^=left]) .container::after,:host([placement^=right]) .container::after{top:0;height:100%;width:.0625rem}:host([placement^=left]) .container::after{right:0}:host([placement^=right]) .container::after{left:0}.indicator{position:absolute;z-index:1;background-color:rgb(var(--mdui-color-primary))}.container:not(.initial) .indicator{transition-duration:var(--mdui-motion-duration-medium2);transition-timing-function:var(--mdui-motion-easing-standard-decelerate)}:host([placement^=bottom]) .indicator,:host([placement^=top]) .indicator{transition-property:transform,left,width}:host([placement^=left]) .indicator,:host([placement^=right]) .indicator{transition-property:transform,top,height}:host([placement^=top]) .indicator{bottom:0}:host([placement^=bottom]) .indicator{top:0}:host([placement^=left]) .indicator{right:0}:host([placement^=right]) .indicator{left:0}:host([placement^=bottom][variant=primary]) .indicator,:host([placement^=top][variant=primary]) .indicator{height:.1875rem}:host([placement^=bottom][variant=secondary]) .indicator,:host([placement^=top][variant=secondary]) .indicator{height:.125rem}:host([placement^=left][variant=primary]) .indicator,:host([placement^=right][variant=primary]) .indicator{width:.1875rem}:host([placement^=left][variant=secondary]) .indicator,:host([placement^=right][variant=secondary]) .indicator{width:.125rem}:host([placement^=top][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-top-right-radius:.1875rem}:host([placement^=bottom][variant=primary]) .indicator{border-bottom-right-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=left][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=right][variant=primary]) .indicator{border-top-right-radius:.1875rem;border-bottom-right-radius:.1875rem}:host([full-width]) ::slotted(mdui-tab){flex:1}`;let Oi=class extends Ne{constructor(){super(...arguments),this.variant="primary",this.placement="top-start",this.fullWidth=!1,this.activeKey=0,this.isInitial=!0,this.containerRef=be(),this.indicatorRef=be(),this.definedController=new Qt(this,{relatedElements:["mdui-tab","mdui-tab-panel"]})}async onActiveKeyChange(){var t;await this.definedController.whenDefined(),this.value=(t=this.tabs.find(i=>i.key===this.activeKey))==null?void 0:t.value,this.updateActive(),this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.tabs.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0}async onIndicatorChange(){await this.updateComplete,this.updateIndicator()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.observeResize=to(this.containerRef.value,()=>this.updateIndicator())}render(){return D`
`}async onSlotChange(){await this.definedController.whenDefined(),this.updateActive()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-tab");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateActive())}updateActive(){this.activeTab=this.tabs.map(t=>(t.active=this.activeKey===t.key,t)).find(t=>t.active),this.panels.forEach(t=>{var i;return t.active=t.value===((i=this.activeTab)==null?void 0:i.value)}),this.updateIndicator()}updateIndicator(){const t=this.activeTab,i=M(this.indicatorRef.value),r=this.placement.startsWith("left")||this.placement.startsWith("right");if(!t){i.css({transform:r?"scaleY(0)":"scaleX(0)"});return}const n=M(t),s=t.offsetTop,o=t.offsetLeft,a=r?{transform:"scaleY(1)",width:"",left:""}:{transform:"scaleX(1)",height:"",top:""};let l={};if(this.variant==="primary"){const c=n.find(':scope > [slot="custom"]'),d=c.length?c.get():M(t.renderRoot).find('slot[name="custom"]').children().get();if(r){const u=Math.min(...d.map(f=>f.offsetTop))+s,h=Math.max(...d.map(f=>f.offsetTop+f.offsetHeight))+s;l={top:u,height:h-u}}else{const u=Math.min(...d.map(f=>f.offsetLeft))+o,h=Math.max(...d.map(f=>f.offsetLeft+f.offsetWidth))+o;l={left:u,width:h-u}}}this.variant==="secondary"&&(l=r?{top:s,height:t.offsetHeight}:{left:o,width:t.offsetWidth}),i.css({...a,...l})}};Oi.styles=[Ee,Nk];v([R({reflect:!0})],Oi.prototype,"variant",void 0);v([R({reflect:!0})],Oi.prototype,"value",void 0);v([R({reflect:!0})],Oi.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Oi.prototype,"fullWidth",void 0);v([Ce()],Oi.prototype,"activeKey",void 0);v([Ce()],Oi.prototype,"isInitial",void 0);v([Ji({selector:"mdui-tab",flatten:!0})],Oi.prototype,"tabs",void 0);v([Ji({selector:"mdui-tab-panel",slot:"panel",flatten:!0})],Oi.prototype,"panels",void 0);v([re("activeKey",!0)],Oi.prototype,"onActiveKeyChange",null);v([re("value")],Oi.prototype,"onValueChange",null);v([re("variant",!0),re("placement",!0),re("fullWidth",!0)],Oi.prototype,"onIndicatorChange",null);Oi=v([se("mdui-tabs")],Oi);class Ik{constructor(t,i){this.isHover=!1,this.uniqueID=Xn(),this.enterEventName=`mouseenter.${this.uniqueID}.hoverController`,this.leaveEventName=`mouseleave.${this.uniqueID}.hoverController`,this.mouseEnterItems=[],this.mouseLeaveItems=[],(this.host=t).addController(this),this.elementRef=i}hostConnected(){this.host.updateComplete.then(()=>{M(this.elementRef.value).on(this.enterEventName,()=>{this.isHover=!0;for(let t=this.mouseEnterItems.length-1;t>=0;t--){const i=this.mouseEnterItems[t];i.callback(),i.one&&this.mouseEnterItems.splice(t,1)}}).on(this.leaveEventName,()=>{this.isHover=!1;for(let t=this.mouseLeaveItems.length-1;t>=0;t--){const i=this.mouseLeaveItems[t];i.callback(),i.one&&this.mouseLeaveItems.splice(t,1)}})})}hostDisconnected(){M(this.elementRef.value).off(this.enterEventName).off(this.leaveEventName)}onMouseEnter(t,i=!1){this.mouseEnterItems.push({callback:t,one:i})}onMouseLeave(t,i=!1){this.mouseLeaveItems.push({callback:t,one:i})}}const $k=me`:host{--shape-corner-plain:var(--mdui-shape-corner-extra-small);--shape-corner-rich:var(--mdui-shape-corner-medium);--z-index:2500;display:contents}.popup{position:fixed;display:flex;flex-direction:column;z-index:var(--z-index);border-radius:var(--shape-corner-plain);background-color:rgb(var(--mdui-color-inverse-surface));padding:0 .5rem;min-width:1.75rem;max-width:20rem}:host([variant=rich]) .popup{border-radius:var(--shape-corner-rich);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);padding:.75rem 1rem .5rem 1rem}.headline{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.content{display:flex;padding:.25rem 0;color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([variant=rich]) .content{color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}.action{display:flex;justify-content:flex-start;padding-top:.5rem}.action ::slotted(:not(:last-child)){margin-right:.5rem}`;let Mi=class extends Ne{constructor(){super(),this.variant="plain",this.placement="auto",this.openDelay=150,this.closeDelay=150,this.trigger="hover focus",this.disabled=!1,this.open=!1,this.popupRef=be(),this.hasSlotController=new Ut(this,"headline","action"),this.hoverController=new Ik(this,this.popupRef),this.definedController=new Qt(this,{needDomReady:!0}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get target(){return[...this.children].find(t=>t.tagName.toLowerCase()!=="style"&&t.getAttribute("slot")!=="content")}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){const t=this.hasUpdated,i=ur(this,"short4"),r=ci(this,"standard");if(this.open){if(await this.definedController.whenDefined(),M(`mdui-tooltip[variant="${this.variant}"]`).filter((n,s)=>s!==this).prop("open",!1),t||await this.updateComplete,t&&!this.emit("open",{cancelable:!0}))return;await Ii(this.popupRef.value),this.popupRef.value.hidden=!1,this.updatePositioner(),await Xe(this.popupRef.value,[{transform:"scale(0)"},{transform:"scale(1)"}],{duration:t?i:0,easing:r}),t&&this.emit("opened");return}if(!this.open&&t){if(!this.emit("close",{cancelable:!0}))return;await Ii(this.popupRef.value),await Xe(this.popupRef.value,[{transform:"scale(1)"},{transform:"scale(0)"}],{duration:i,easing:r}),this.popupRef.value.hidden=!0,this.emit("closed")}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick),this.overflowAncestors=gd(this.target),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{const i=this.target;i.addEventListener("focus",this.onFocus),i.addEventListener("blur",this.onBlur),i.addEventListener("pointerdown",this.onClick),i.addEventListener("keydown",this.onKeydown),i.addEventListener("mouseenter",this.onMouseEnter),i.addEventListener("mouseleave",this.onMouseLeave),this.observeResize=to(i,()=>{this.updatePositioner()})})}render(){const t=this.isRich()&&(this.headline||this.hasSlotController.test("headline")),i=this.isRich()&&this.hasSlotController.test("action");return D``}isRich(){return this.variant==="rich"}requestClose(){if(!this.hoverController.isHover){this.open=!1;return}this.hoverController.onMouseLeave(()=>{this.hasTrigger("hover")?this.hoverTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50):this.open=!1},!0)}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onBlur(){this.disabled||!this.open||!this.hasTrigger("focus")||this.requestClose()}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.open=!this.open)}onKeydown(t){this.disabled||!this.open||t.key!=="Escape"||(t.stopPropagation(),this.requestClose())}onMouseEnter(){this.disabled||this.open||!this.hasTrigger("hover")||(this.openDelay?(window.clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay)):this.open=!0)}onMouseLeave(){window.clearTimeout(this.hoverTimeout),!(this.disabled||!this.open||!this.hasTrigger("hover"))&&(this.hoverTimeout=window.setTimeout(()=>{this.requestClose()},this.closeDelay||50))}onDocumentClick(t){if(this.disabled||!this.open)return;t.composedPath().includes(this)||this.requestClose()}onWindowScroll(){window.requestAnimationFrame(()=>this.updatePositioner())}updatePositioner(){const t=M(this.popupRef.value),i=this.isRich()?0:4,r=4,n=this.target.getBoundingClientRect(),s=n.top,o=n.left,a=n.height,l=n.width,c=this.popupRef.value.offsetHeight,d=this.popupRef.value.offsetWidth,u=d+i+r,h=c+i+r;let f,m,b,w,_=this.placement;if(_==="auto"){const y=M(window),C=s>h,E=y.height()-s-a>h,A=o>u,S=y.width()-o-l>u;this.isRich()?(_="bottom-right",E&&S?_="bottom-right":E&&A?_="bottom-left":C&&S?_="top-right":C&&A?_="top-left":E?_="bottom":C?_="top":S?_="right":A&&(_="left")):(_="top",C?_="top":E?_="bottom":A?_="left":S&&(_="right"))}const[g,p]=_.split("-");switch(g){case"top":m="bottom",b=s-c-i;break;case"bottom":m="top",b=s+a+i;break;default:switch(m="center",p){case"start":b=s;break;case"end":b=s+a-c;break;default:b=s+a/2-c/2;break}break}switch(g){case"left":f="right",w=o-d-i;break;case"right":f="left",w=o+l+i;break;default:switch(f="center",p){case"start":w=o;break;case"end":w=o+l-d;break;case"left":f="right",w=o-d-i;break;case"right":f="left",w=o+l+i;break;default:w=o+l/2-d/2;break}break}t.css({top:b,left:w,transformOrigin:[f,m].join(" ")})}};Mi.styles=[Ee,$k];v([R({reflect:!0})],Mi.prototype,"variant",void 0);v([R({reflect:!0})],Mi.prototype,"placement",void 0);v([R({type:Number,reflect:!0,attribute:"open-delay"})],Mi.prototype,"openDelay",void 0);v([R({type:Number,reflect:!0,attribute:"close-delay"})],Mi.prototype,"closeDelay",void 0);v([R({reflect:!0})],Mi.prototype,"headline",void 0);v([R({reflect:!0})],Mi.prototype,"content",void 0);v([R({reflect:!0})],Mi.prototype,"trigger",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"open",void 0);v([re("placement",!0),re("content",!0)],Mi.prototype,"onPositionChange",null);v([re("open")],Mi.prototype,"onOpenChange",null);Mi=v([se("mdui-tooltip")],Mi);const Pk=e=>{const t=e.assignedNodes({flatten:!0});let i="";return[...t].forEach(r=>{r.nodeType===Node.ELEMENT_NODE&&(i+=r.outerHTML),r.nodeType===Node.TEXT_NODE&&(i+=r.textContent)}),i},Dk=me`:host{display:block;width:100%;flex-shrink:initial!important;overflow:hidden;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-title-large-size);font-weight:var(--mdui-typescale-title-large-weight);letter-spacing:var(--mdui-typescale-title-large-tracking);line-height:var(--mdui-typescale-title-large-line-height);line-height:2.5rem}.label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:1;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label.variant-center-aligned{text-align:center}.label.variant-large:not(.shrink),.label.variant-medium:not(.shrink){opacity:0}.label.variant-large.shrink,.label.variant-medium.shrink{transition-delay:var(--mdui-motion-duration-short2)}.label-large{display:none;position:absolute;width:100%;left:0;margin-right:0;padding:0 1rem;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label-large.variant-large,.label-large.variant-medium{display:block}.label-large.variant-medium{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;bottom:.75rem;font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.label-large.variant-large{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:1.25rem;font-size:var(--mdui-typescale-headline-medium-size);font-weight:var(--mdui-typescale-headline-medium-weight);letter-spacing:var(--mdui-typescale-headline-medium-tracking);line-height:var(--mdui-typescale-headline-medium-line-height)}.label-large.variant-large:not(.shrink),.label-large.variant-medium:not(.shrink){opacity:1;transition-delay:var(--mdui-motion-duration-short2)}.label-large.variant-large.shrink,.label-large.variant-medium.shrink{opacity:0;z-index:-1}`;let wl=class extends Ne{constructor(){super(...arguments),this.variant="small",this.shrink=!1,this.hasSlotController=new Ut(this,"label-large"),this.labelLargeRef=be(),this.defaultSlotRef=be()}render(){const t=this.hasSlotController.test("label-large"),i=kt({shrink:this.shrink,"variant-center-aligned":this.variant==="center-aligned","variant-small":this.variant==="small","variant-medium":this.variant==="medium","variant-large":this.variant==="large"});return D`${t?D``:D`
`}`}onSlotChange(t){t||(this.labelLargeRef.value.innerHTML=Pk(this.defaultSlotRef.value))}};wl.styles=[Ee,Dk];v([Ce()],wl.prototype,"variant",void 0);v([Ce()],wl.prototype,"shrink",void 0);wl=v([se("mdui-top-app-bar-title")],wl);const Lk=me`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;right:0;left:0;display:flex;flex:0 0 auto;align-items:flex-start;justify-content:flex-start;border-bottom-left-radius:var(--shape-corner);border-bottom-right-radius:var(--shape-corner);z-index:var(--z-index);transition:top var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear),background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);padding:.75rem .5rem;height:4rem;background-color:rgb(var(--mdui-color-surface))}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([scroll-behavior~=shrink]){transition-duration:var(--mdui-motion-duration-short4)}:host([scrolling]){background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}::slotted(mdui-button-icon){color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}::slotted(mdui-button-icon:first-child){color:rgb(var(--mdui-color-on-surface))}::slotted(mdui-avatar){width:1.875rem;height:1.875rem;margin-top:.3125rem;margin-bottom:.3125rem}::slotted(*){flex-shrink:0}::slotted(:not(:last-child)){margin-right:.5rem}:host([variant=medium]){height:7rem}:host([variant=large]){height:9.5rem}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);top:-4.625rem}:host([hide][variant=medium]){top:-7.625rem}:host([hide][variant=large]){top:-10.125rem}:host([shrink][variant=large]),:host([shrink][variant=medium]){transition-duration:var(--mdui-motion-duration-short4);height:4rem}`;let Ar=class extends P0(Zn){constructor(){super(...arguments),this.variant="small",this.hide=!1,this.shrink=!1,this.scrolling=!1}get scrollPaddingPosition(){return"top"}get layoutPlacement(){return"top"}async onVariantChange(){this.hasUpdated?this.addEventListener("transitionend",async()=>{await this.scrollBehaviorDefinedController.whenDefined(),this.updateContainerPadding()},{once:!0}):await this.updateComplete,this.titleElements.forEach(t=>{t.variant=this.variant})}async onShrinkChange(){this.hasUpdated||await this.updateComplete,this.titleElements.forEach(t=>{t.shrink=this.shrink})}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return D``}runScrollNoThreshold(t,i){this.hasScrollBehavior("shrink")&&t&&i<8&&(this.shrink=!1)}runScrollThreshold(t,i){this.hasScrollBehavior("elevate")&&(this.scrolling=!!i),this.hasScrollBehavior("shrink")&&(t||(this.shrink=!0)),this.hasScrollBehavior("hide")&&(!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1))}};Ar.styles=[Ee,Lk];v([R({reflect:!0})],Ar.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ar.prototype,"hide",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ar.prototype,"shrink",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],Ar.prototype,"scrollBehavior",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ar.prototype,"scrolling",void 0);v([Ji({selector:"mdui-top-app-bar-title",flatten:!0})],Ar.prototype,"titleElements",void 0);v([re("variant")],Ar.prototype,"onVariantChange",null);v([re("shrink")],Ar.prototype,"onShrinkChange",null);Ar=v([se("mdui-top-app-bar")],Ar);function Bk(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}const hs={};function Ok(e,t){if(ot(hs[e])&&(hs[e]=[]),ot(t))return hs[e];hs[e].push(t)}function Mk(e){if(ot(hs[e])||!hs[e].length)return;hs[e].shift()()}/** + )}:host([disabled]),:host([group-disabled]){cursor:default;pointer-events:none;color:rgba(var(--mdui-color-on-surface),38%);border-color:rgba(var(--mdui-color-on-surface),12%)}:host([loading]){cursor:default;pointer-events:none}:host(:not(.mdui-segmented-button-first)){margin-left:-.0625rem}:host(.mdui-segmented-button-first){border-radius:var(--shape-corner) 0 0 var(--shape-corner)}:host(.mdui-segmented-button-last){border-radius:0 var(--shape-corner) var(--shape-corner) 0}.end-icon,.icon,.selected-icon{display:inline-flex;font-size:1.28571429em}.end-icon .i,.icon .i,.selected-icon .i,::slotted([slot=end-icon]),::slotted([slot=icon]),::slotted([slot=selected-icon]){font-size:inherit}mdui-circular-progress{width:1.125rem;height:1.125rem}:host([disabled]) mdui-circular-progress{opacity:.38}.label{display:inline-flex}.has-icon .label{padding-left:.5rem}.has-end-icon .label{padding-right:.5rem}`;let dn=class extends ft{constructor(){super(...arguments),this.selected=!1,this.invalid=!1,this.groupDisabled=!1,this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"[default]","icon","end-icon")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.isDisabled()||this.loading}get focusDisabled(){return this.isDisabled()||this.loading}render(){const t=Or({button:!0,"has-icon":this.icon||this.selected||this.loading||this.hasSlotController.test("icon"),"has-end-icon":this.endIcon||this.hasSlotController.test("end-icon")});return D`${this.isButton()?this.renderButton({className:t,part:"button",content:this.renderInner()}):this.isDisabled()||this.loading?D`${this.renderInner()}`:this.renderAnchor({className:t,part:"button",content:this.renderInner()})}`}isDisabled(){return this.disabled||this.groupDisabled}renderIcon(){return this.loading?this.renderLoading():this.selected?D`${this.selectedIcon?D``:D``}`:D`${this.icon?D``:Ke}`}renderLabel(){return this.hasSlotController.test("[default]")?D``:Ke}renderEndIcon(){return D`${this.endIcon?D``:Ke}`}renderInner(){return[this.renderIcon(),this.renderLabel(),this.renderEndIcon()]}};dn.styles=[ft.styles,gk];v([R({reflect:!0})],dn.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],dn.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"selected-icon"})],dn.prototype,"selectedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],dn.prototype,"selected",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],dn.prototype,"invalid",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"group-disabled"})],dn.prototype,"groupDisabled",void 0);dn=v([se("mdui-segmented-button")],dn);const vk=pe`:host{--shape-corner:var(--mdui-shape-corner-full);position:relative;display:inline-flex;vertical-align:middle;height:2.5rem;font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking);line-height:var(--mdui-typescale-label-large-line-height);color:rgb(var(--mdui-color-on-surface));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([full-width]){display:flex;flex-wrap:nowrap}input,select{position:absolute;width:100%;height:100%;padding:0;opacity:0;pointer-events:none}`;let Gt=class extends Re{constructor(){super(...arguments),this.fullWidth=!1,this.disabled=!1,this.required=!1,this.name="",this.value="",this.defaultValue="",this.selectedKeys=[],this.invalid=!1,this.isInitial=!0,this.inputRef=be(),this.formController=new pn(this),this.definedController=new Qt(this,{relatedElements:["mdui-segmented-button"]})}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get items(){return B(this).find("mdui-segmented-button").get()}get itemsEnabled(){return B(this).find("mdui-segmented-button:not([disabled])").get()}get isSingle(){return this.selects==="single"}get isMultiple(){return this.selects==="multiple"}get isSelectable(){return this.isSingle||this.isMultiple}async onSelectsChange(){this.isSelectable?this.isSingle&&this.setSelectedKeys(this.selectedKeys.slice(0,1)):this.setSelectedKeys([]),await this.onSelectedKeysChange()}async onSelectedKeysChange(){await this.definedController.whenDefined();const t=this.itemsEnabled.filter(r=>this.selectedKeys.includes(r.key)).map(r=>r.value),i=this.isMultiple?t:t[0]||"";this.setValue(i),this.isInitial||this.emit("change")}async onValueChange(){var i;if(this.isInitial=!this.hasUpdated,await this.definedController.whenDefined(),!this.isSelectable){this.updateItems();return}const t=(this.isSingle?[this.value]:At(this.value)?[this.value]:this.value).filter(r=>r);if(!t.length)this.setSelectedKeys([]);else if(this.isSingle){const r=this.itemsEnabled.find(n=>n.value===t[0]);this.setSelectedKeys(r?[r.key]:[])}else this.isMultiple&&this.setSelectedKeys(this.itemsEnabled.filter(r=>t.includes(r.value)).map(r=>r.key));if(this.updateItems(),!this.isInitial){const r=this.formController.getForm();r&&((i=It.get(r))!=null&&i.has(this))?(this.invalid=!1,It.get(r).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}async onInvalidChange(){await this.definedController.whenDefined(),this.updateItems()}connectedCallback(){super.connectedCallback(),this.value=this.isMultiple&&At(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.selects==="multiple"?[]:""}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.inputRef.value.blur(),this.inputRef.value.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D`${et(this.isSelectable&&this.isSingle,()=>D``)}${et(this.isSelectable&&this.isMultiple,()=>D``)}`}selectOne(t){if(this.isMultiple){const i=[...this.selectedKeys];i.includes(t.key)?i.splice(i.indexOf(t.key),1):i.push(t.key),this.setSelectedKeys(i)}this.isSingle&&(this.selectedKeys.includes(t.key)?this.setSelectedKeys([]):this.setSelectedKeys([t.key])),this.isInitial=!1,this.updateItems()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-segmented-button");!r||r.disabled||this.isSelectable&&r.value&&this.selectOne(r)}async onInputKeyDown(t){if(["Enter"," "].includes(t.key)){if(t.preventDefault(),await this.definedController.whenDefined(),this.isSingle){const i=t.target;i.checked=!i.checked,this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus()}this.isMultiple&&(this.selectOne(this.itemsEnabled[0]),this.itemsEnabled[0].focus())}}async onSlotChange(){await this.definedController.whenDefined(),this.updateItems(!0)}setSelectedKeys(t){Xo(this.selectedKeys,t)||(this.selectedKeys=t)}setValue(t){this.isSingle?this.value=t:Xo(this.value,t)||(this.value=t)}updateItems(t=!1){const i=this.items;i.forEach((r,n)=>{r.invalid=this.invalid,r.groupDisabled=this.disabled,r.selected=this.selectedKeys.includes(r.key),t&&(r.classList.toggle("mdui-segmented-button-first",n===0),r.classList.toggle("mdui-segmented-button-last",n===i.length-1))})}};Gt.styles=[Ee,vk];v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Gt.prototype,"fullWidth",void 0);v([R({reflect:!0})],Gt.prototype,"selects",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Gt.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Gt.prototype,"required",void 0);v([R({reflect:!0})],Gt.prototype,"form",void 0);v([R({reflect:!0})],Gt.prototype,"name",void 0);v([R()],Gt.prototype,"value",void 0);v([Gn()],Gt.prototype,"defaultValue",void 0);v([Ce()],Gt.prototype,"selectedKeys",void 0);v([Ce()],Gt.prototype,"invalid",void 0);v([re("selects",!0)],Gt.prototype,"onSelectsChange",null);v([re("selectedKeys",!0)],Gt.prototype,"onSelectedKeysChange",null);v([re("value")],Gt.prototype,"onValueChange",null);v([re("invalid",!0),re("disabled")],Gt.prototype,"onInvalidChange",null);Gt=v([se("mdui-segmented-button-group")],Gt);const yk=new WeakMap;let B1=0;const Ru=new Map,O1=new WeakSet,M1=()=>new Promise(e=>requestAnimationFrame(e)),V1=(e,t)=>{const i=e-t;return i===0?void 0:i},F1=(e,t)=>{const i=e/t;return i===1?void 0:i},Iu={left:(e,t)=>{const i=V1(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(e,t)=>{const i=V1(e,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(e,t)=>{let i;t===0&&(t=1,i={width:"1px"});const r=F1(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(e,t)=>{let i;t===0&&(t=1,i={height:"1px"});const r=F1(e,t);return{value:r,overrideFrom:i,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},bk={duration:333,easing:"ease-in-out"},wk=["left","top","width","height","opacity","color","background"],z1=new WeakMap;class _k extends $0{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===br.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(i=>{this.l=i})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return Ze}getController(){return yk.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[i]){var n;const r=this.u===void 0;return r&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(s=>this.t=!0),this.element=t.element,z1.set(this.element,this)),this.optionsOrCallback=i,(r||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=wk),this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const s=i[n]??(Iu[n]?void 0:r[n]),o=Number(s);t[n]=isNaN(o)?s+"":o}),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((r,n)=>{if(Array.isArray(r)){if(Array.isArray(n)&&n.length===r.length&&r.every((s,o)=>s===n[o]))return!1}else if(n===r)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await M1;const i=this.O(),r=this.j(this.options.keyframeOptions,i),n=this.m();if(this.A!==void 0){const{from:s,to:o}=this.N(this.A,n,i);this.log("measured",[this.A,n,s,o]),t=this.calculateKeyframes(s,o)}else{const s=Ru.get(this.options.inId);if(s){Ru.delete(this.options.inId);const{from:o,to:a}=this.N(s,n,i);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,B1++,t.forEach(l=>l.zIndex=B1)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,r)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,i;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(i=this.webAnimation)==null||i.cancel()}reconnected(){}async disconnected(){var i;if(!this.h||(this.options.id!==void 0&&Ru.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await M1(),(i=this.i)==null?void 0:i.isConnected){const r=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,r),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const s=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||s===0&&o===0||(this.element.style.position="relative"),s!==0&&(this.element.style.left=s+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,i;(i=(t=this.options).onStart)==null||i.call(t,this)}didFinish(t){var i,r;t&&((r=(i=this.options).onComplete)==null||r.call(i,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let i=this.element.parentNode;i;i=i==null?void 0:i.parentNode){const r=z1.get(i);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=O1.has(this.u);return t||this.u.updateComplete.then(()=>{O1.add(this.u)}),t}j(t,i=this.O()){const r={...bk};return i.forEach(n=>Object.assign(r,n.options.keyframeOptions)),Object.assign(r,t),r}N(t,i,r){t={...t},i={...i};const n=r.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&i.left!==void 0&&(t.left=s*t.left,i.left=s*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=o*t.top,i.top=o*i.top)),{from:t,to:i}}calculateKeyframes(t,i,r=!1){const n={},s={};let o=!1;const a={};for(const l in i){const c=t[l],d=i[l];if(l in Iu){const u=Iu[l];if(c===void 0||d===void 0)continue;const h=u(c,d);h.transform!==void 0&&(a[l]=h.value,o=!0,n.transform=`${n.transform??""} ${h.transform}`,h.overrideFrom!==void 0&&Object.assign(n,h.overrideFrom))}else c!==d&&c!==void 0&&d!==void 0&&(o=!0,n[l]=c,s[l]=d)}return n.transformOrigin=s.transformOrigin=r?"center center":"top left",this.animatingProperties=a,o?[n,s]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,i]),r=!0,this.webAnimation=this.element.animate(t,i);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(r),r}isAnimating(){var t,i;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((i=this.webAnimation)==null?void 0:i.pending)}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const kk=eo(_k);let Sf=class extends ht{render(){return ei('')}};Sf.styles=Jt;Sf=v([se("mdui-icon-cancel--outlined")],Sf);let Tf=class extends ht{render(){return ei('')}};Tf.styles=Jt;Tf=v([se("mdui-icon-error")],Tf);let Nf=class extends ht{render(){return ei('')}};Nf.styles=Jt;Nf=v([se("mdui-icon-visibility-off")],Nf);let Rf=class extends ht{render(){return ei('')}};Rf.styles=Jt;Rf=v([se("mdui-icon-visibility")],Rf);const Ck=pe`:host{display:inline-block;width:100%}:host([disabled]){pointer-events:none}:host([type=hidden]){display:none}.container{position:relative;display:flex;align-items:center;transition:box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard);padding:0 1rem}.container.has-icon{padding-left:.75rem}.container.has-end-icon,.container.has-error-icon{padding-right:.75rem}:host([variant=filled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface-variant));background-color:rgb(var(--mdui-color-surface-container-highest));border-radius:var(--mdui-shape-corner-extra-small) var(--mdui-shape-corner-extra-small) 0 0}:host([variant=filled]) .container.invalid,:host([variant=filled]) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled]:hover) .container{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .container.invalid,:host([variant=filled]:hover) .container.invalid-style{box-shadow:inset 0 -.0625rem 0 0 rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .container,:host([variant=filled][focused]) .container{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-primary))}:host([variant=filled][focused-style]) .container.invalid,:host([variant=filled][focused-style]) .container.invalid-style,:host([variant=filled][focused]) .container.invalid,:host([variant=filled][focused]) .container.invalid-style{box-shadow:inset 0 -.125rem 0 0 rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .container{box-shadow:inset 0 -.0625rem 0 0 rgba(var(--mdui-color-on-surface),38%);background-color:rgba(var(--mdui-color-on-surface),4%)}:host([variant=outlined]) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-outline));border-radius:var(--mdui-shape-corner-extra-small)}:host([variant=outlined]) .container.invalid,:host([variant=outlined]) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-error))}:host([variant=outlined]:hover) .container{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-surface))}:host([variant=outlined]:hover) .container.invalid,:host([variant=outlined]:hover) .container.invalid-style{box-shadow:inset 0 0 0 .0625rem rgb(var(--mdui-color-on-error-container))}:host([variant=outlined][focused-style]) .container,:host([variant=outlined][focused]) .container{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-primary))}:host([variant=outlined][focused-style]) .container.invalid,:host([variant=outlined][focused-style]) .container.invalid-style,:host([variant=outlined][focused]) .container.invalid,:host([variant=outlined][focused]) .container.invalid-style{box-shadow:inset 0 0 0 .125rem rgb(var(--mdui-color-error))}:host([variant=outlined][disabled]) .container{box-shadow:inset 0 0 0 .125rem rgba(var(--mdui-color-on-surface),12%)}.icon,.prefix,.right-icon,.suffix{display:flex;-webkit-user-select:none;user-select:none;color:rgb(var(--mdui-color-on-surface-variant))}:host([disabled]) .icon,:host([disabled]) .prefix,:host([disabled]) .right-icon,:host([disabled]) .suffix{color:rgba(var(--mdui-color-on-surface),38%)}.invalid .right-icon,.invalid .suffix,.invalid-style .right-icon,.invalid-style .suffix{color:rgb(var(--mdui-color-error))}:host(:hover) .invalid .right-icon,:host(:hover) .invalid .suffix,:host(:hover) .invalid-style .right-icon,:host(:hover) .invalid-style .suffix{color:rgb(var(--mdui-color-on-error-container))}:host([focused-style]) .invalid .right-icon,:host([focused-style]) .invalid .suffix,:host([focused-style]) .invalid-style .right-icon,:host([focused-style]) .invalid-style .suffix,:host([focused]) .invalid .right-icon,:host([focused]) .invalid .suffix,:host([focused]) .invalid-style .right-icon,:host([focused]) .invalid-style .suffix{color:rgb(var(--mdui-color-error))}.icon,.right-icon{font-size:1.5rem}.icon mdui-button-icon,.right-icon mdui-button-icon,::slotted(mdui-button-icon[slot]){margin-left:-.5rem;margin-right:-.5rem}.icon .i,.right-icon .i,::slotted([slot$=icon]){font-size:inherit}.has-icon .icon{margin-right:1rem}.has-end-icon .end-icon,.right-icon:not(.end-icon){margin-left:1rem}.prefix,.suffix{display:none;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}:host([variant=filled][label]) .prefix,:host([variant=filled][label]) .suffix{padding-top:1rem}.has-value .prefix,.has-value .suffix,:host([focused-style]) .prefix,:host([focused-style]) .suffix,:host([focused]) .prefix,:host([focused]) .suffix{display:flex}.prefix{padding-right:.125rem}.suffix{padding-left:.125rem}.input-container{width:100%}.label{position:absolute;pointer-events:none;max-width:calc(100% - 1rem);display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;top:1rem;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height)}.invalid .label,.invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=outlined]) .label{padding:0 .25rem;margin:0 -.25rem}:host([variant=outlined]:hover) .label{color:rgb(var(--mdui-color-on-surface))}:host([variant=filled]:hover) .invalid .label,:host([variant=filled]:hover) .invalid-style .label,:host([variant=outlined]:hover) .invalid .label,:host([variant=outlined]:hover) .invalid-style .label{color:rgb(var(--mdui-color-on-error-container))}:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label{color:rgb(var(--mdui-color-primary))}:host([variant=filled]) .has-value .label,:host([variant=filled][focused-style]) .label,:host([variant=filled][focused]) .label,:host([variant=filled][type=date]) .label,:host([variant=filled][type=datetime-local]) .label,:host([variant=filled][type=month]) .label,:host([variant=filled][type=time]) .label,:host([variant=filled][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:.25rem}:host([variant=outlined]) .has-value .label,:host([variant=outlined][focused-style]) .label,:host([variant=outlined][focused]) .label,:host([variant=outlined][type=date]) .label,:host([variant=outlined][type=datetime-local]) .label,:host([variant=outlined][type=month]) .label,:host([variant=outlined][type=time]) .label,:host([variant=outlined][type=week]) .label{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height);top:-.5rem;left:.75rem;opacity:0;background-color:rgb(var(--mdui-color-background))}:host([variant=filled][focused-style]) .invalid .label,:host([variant=filled][focused-style]) .invalid-style .label,:host([variant=filled][focused]) .invalid .label,:host([variant=filled][focused]) .invalid-style .label,:host([variant=outlined][focused-style]) .invalid .label,:host([variant=outlined][focused-style]) .invalid-style .label,:host([variant=outlined][focused]) .invalid .label,:host([variant=outlined][focused]) .invalid-style .label{color:rgb(var(--mdui-color-error))}:host([variant=filled][disabled]) .label,:host([variant=outlined][disabled]) .label{color:rgba(var(--mdui-color-on-surface),38%)}.input{display:flex;flex-wrap:wrap;width:100%;border:none;outline:0;background:0 0;-webkit-appearance:none;appearance:none;resize:none;cursor:inherit;font-family:inherit;padding:1rem 0;font-size:var(--mdui-typescale-body-large-size);font-weight:var(--mdui-typescale-body-large-weight);letter-spacing:var(--mdui-typescale-body-large-tracking);line-height:var(--mdui-typescale-body-large-line-height);color:rgb(var(--mdui-color-on-surface));caret-color:rgb(var(--mdui-color-primary))}.input.hide-input{opacity:0;height:0;padding:0!important;overflow:hidden}.input::placeholder{color:rgb(var(--mdui-color-on-surface-variant))}.invalid .input,.invalid-style .input{caret-color:rgb(var(--mdui-color-error))}:host([disabled]) .input{color:rgba(var(--mdui-color-on-surface),38%)}:host([end-aligned]) .input{text-align:right}:host([variant=filled]) .label+.input{padding:1.5rem 0 .5rem 0}.supporting{display:flex;justify-content:space-between;padding:.25rem 1rem;color:rgb(var(--mdui-color-on-surface-variant))}.supporting.invalid,.supporting.invalid-style{color:rgb(var(--mdui-color-error))}.helper{display:block;opacity:1;transition:opacity var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([disabled]) .helper{color:rgba(var(--mdui-color-on-surface),38%)}:host([helper-on-focus]) .helper{opacity:0}:host([helper-on-focus][focused-style]) .helper,:host([helper-on-focus][focused]) .helper{opacity:1}.error{font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}.counter{flex-wrap:nowrap;padding-left:1rem;font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}::-ms-reveal{display:none}.is-firefox .input[type=date],.is-firefox .input[type=datetime-local],.is-firefox .input[type=time]{-webkit-clip-path:inset(0 2em 0 0);clip-path:inset(0 2em 0 0)}.input[type=number]::-webkit-inner-spin-button,.input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}.input[type=number]{-moz-appearance:textfield}.input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}`;let ce=class extends er(Re){constructor(){super(...arguments),this.variant="filled",this.type="text",this.name="",this.value="",this.defaultValue="",this.helperOnFocus=!1,this.clearable=!1,this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.autosize=!1,this.counter=!1,this.togglePassword=!1,this.spellcheck=!1,this.invalid=!1,this.invalidStyle=!1,this.focusedStyle=!1,this.isPasswordVisible=!1,this.hasValue=!1,this.error="",this.inputRef=be(),this.formController=new pn(this),this.hasSlotController=new Ut(this,"icon","end-icon","helper","input"),this.readonlyButClearable=!1}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get valueAsNumber(){var t;return((t=this.inputRef.value)==null?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const i=document.createElement("input");i.type="number",i.valueAsNumber=t,this.value=i.value}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}get isFocusedStyle(){return this.focused||this.focusedStyle}get isTextarea(){return this.rows&&this.rows>1||this.autosize}onDisabledChange(){this.inputRef.value.disabled=this.disabled,this.invalid=!this.inputRef.value.checkValidity()}async onValueChange(){var t;if(this.hasValue=!!this.value,this.hasUpdated){await this.updateComplete;const i=this.formController.getForm();i&&((t=It.get(i))!=null&&t.has(this))?(this.invalid=!1,It.get(i).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}}onRowsChange(){this.setTextareaHeight()}async onMaxRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=B(this.inputRef.value);t.css("max-height",parseFloat(t.css("line-height"))*(this.maxRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}async onMinRowsChange(){if(!this.autosize)return;this.hasUpdated||await this.updateComplete;const t=B(this.inputRef.value);t.css("min-height",parseFloat(t.css("line-height"))*(this.minRows??1)+parseFloat(t.css("padding-top"))+parseFloat(t.css("padding-bottom")))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve(),Bc(this)}select(){this.inputRef.value.select()}setSelectionRange(t,i,r="none"){this.inputRef.value.setSelectionRange(t,i,r)}setRangeText(t,i,r,n="preserve"){this.inputRef.value.setRangeText(t,i,r,n),this.value!==this.inputRef.value.value&&(this.value=this.inputRef.value.value,this.setTextareaHeight(),this.emit("input"),this.emit("change"))}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.setCustomValidityInternal(t),Bc(this)}firstUpdated(t){super.firstUpdated(t),this.setTextareaHeight(),this.observeResize=to(this.inputRef.value,()=>this.setTextareaHeight())}render(){const t=!!this.icon||this.hasSlotController.test("icon"),i=!!this.endIcon||this.hasSlotController.test("end-icon"),r=this.invalid||this.invalidStyle,n=!!this.helper||this.hasSlotController.test("helper"),s=r&&!!(this.error||this.inputRef.value.validationMessage),o=this.counter&&!!this.maxlength,a=this.hasSlotController.test("input"),l={invalid:this.invalid,"invalid-style":this.invalidStyle},c=kt({container:!0,"has-value":this.hasValue,"has-icon":t,"has-end-icon":i,"has-error-icon":r,"is-firefox":navigator.userAgent.includes("Firefox"),...l});return D`
${this.renderPrefix()}
${this.renderLabel()} ${this.isTextarea?this.renderTextArea(a):this.renderInput(a)} ${et(a,()=>D``)}
${this.renderClearButton()}${this.renderTogglePasswordButton()} ${this.renderSuffix(r)}
${et(s||n||o,()=>D`
${this.renderHelper(s,n)} ${this.renderCounter(o)}
`)}`}setCustomValidityInternal(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity(),this.requestUpdate()}onChange(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("change")}onClear(t){this.value="",this.emit("clear"),this.emit("input"),this.emit("change"),this.focus(),t.stopPropagation()}onInput(){this.value=this.inputRef.value.value,this.isTextarea&&this.setTextareaHeight(),this.emit("input")}onInvalid(t){t.preventDefault()}onKeyDown(t){const i=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!i&&setTimeout(()=>{t.defaultPrevented||this.formController.submit()})}onTextAreaKeyUp(){if(this.pattern){const t=new RegExp(this.pattern);this.value&&!this.value.match(t)?(this.setCustomValidityInternal(this.getPatternErrorMsg()),U9(this,()=>{this.setCustomValidityInternal(this.getPatternErrorMsg())})):(this.setCustomValidityInternal(""),Bc(this))}}onTogglePassword(){this.isPasswordVisible=!this.isPasswordVisible}getPatternErrorMsg(){return H9("Please match the requested format.")}setTextareaHeight(){this.autosize?(this.inputRef.value.style.height="auto",this.inputRef.value.style.height=`${this.inputRef.value.scrollHeight}px`):this.inputRef.value.style.height=void 0}renderLabel(){return this.label?D``:Ke}renderPrefix(){return D`${this.icon?D``:Ke}${this.prefix}`}renderSuffix(t){return D`${this.suffix}${t?D`${this.errorIcon?D``:D``}`:D`${this.endIcon?D``:Ke}`}`}renderClearButton(){const t=this.clearable&&!this.disabled&&(!this.readonly||this.readonlyButClearable)&&(typeof this.value=="number"||this.value.length>0);return et(t,()=>D`${this.clearIcon?D``:D``}`)}renderTogglePasswordButton(){const t=this.type==="password"&&this.togglePassword&&!this.disabled;return et(t,()=>D`${this.isPasswordVisible?D`${this.showPasswordIcon?D``:D``}`:D`${this.hidePasswordIcon?D``:D``}`}`)}renderInput(t){return D``}renderTextArea(t){return D``}renderHelper(t,i){return t?D`
${this.error||this.inputRef.value.validationMessage}
`:i?D`${this.helper}`:D``}renderCounter(t){return t?D`
${this.value.length}/${this.maxlength}
`:Ke}};ce.styles=[Ee,Ck];v([R({reflect:!0})],ce.prototype,"variant",void 0);v([R({reflect:!0})],ce.prototype,"type",void 0);v([R({reflect:!0})],ce.prototype,"name",void 0);v([R()],ce.prototype,"value",void 0);v([Gn()],ce.prototype,"defaultValue",void 0);v([R({reflect:!0})],ce.prototype,"label",void 0);v([R({reflect:!0})],ce.prototype,"placeholder",void 0);v([R({reflect:!0})],ce.prototype,"helper",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"helper-on-focus"})],ce.prototype,"helperOnFocus",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"clearable",void 0);v([R({reflect:!0,attribute:"clear-icon"})],ce.prototype,"clearIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],ce.prototype,"endAligned",void 0);v([R({reflect:!0})],ce.prototype,"prefix",void 0);v([R({reflect:!0})],ce.prototype,"suffix",void 0);v([R({reflect:!0})],ce.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],ce.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"error-icon"})],ce.prototype,"errorIcon",void 0);v([R({reflect:!0})],ce.prototype,"form",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"readonly",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"required",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"rows",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"autosize",void 0);v([R({type:Number,reflect:!0,attribute:"min-rows"})],ce.prototype,"minRows",void 0);v([R({type:Number,reflect:!0,attribute:"max-rows"})],ce.prototype,"maxRows",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"minlength",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"maxlength",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"counter",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"min",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"max",void 0);v([R({type:Number,reflect:!0})],ce.prototype,"step",void 0);v([R({reflect:!0})],ce.prototype,"pattern",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"toggle-password"})],ce.prototype,"togglePassword",void 0);v([R({reflect:!0,attribute:"show-password-icon"})],ce.prototype,"showPasswordIcon",void 0);v([R({reflect:!0,attribute:"hide-password-icon"})],ce.prototype,"hidePasswordIcon",void 0);v([R({reflect:!0})],ce.prototype,"autocapitalize",void 0);v([R({reflect:!0})],ce.prototype,"autocorrect",void 0);v([R({reflect:!0})],ce.prototype,"autocomplete",void 0);v([R({reflect:!0})],ce.prototype,"enterkeyhint",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],ce.prototype,"spellcheck",void 0);v([R({reflect:!0})],ce.prototype,"inputmode",void 0);v([Ce()],ce.prototype,"invalid",void 0);v([Ce()],ce.prototype,"invalidStyle",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"focused-style"})],ce.prototype,"focusedStyle",void 0);v([Ce()],ce.prototype,"isPasswordVisible",void 0);v([Ce()],ce.prototype,"hasValue",void 0);v([Ce()],ce.prototype,"error",void 0);v([re("disabled",!0)],ce.prototype,"onDisabledChange",null);v([re("value")],ce.prototype,"onValueChange",null);v([re("rows",!0)],ce.prototype,"onRowsChange",null);v([re("maxRows")],ce.prototype,"onMaxRowsChange",null);v([re("minRows")],ce.prototype,"onMinRowsChange",null);ce=v([se("mdui-text-field")],ce);const Ak=pe`:host{display:inline-block;width:100%}.hidden-input{display:none}.text-field{cursor:pointer}.chips{display:flex;flex-wrap:wrap;margin:-.5rem -.25rem;min-height:2.5rem}:host([variant=filled][label]) .chips{margin:0 -.25rem -1rem -.25rem}.chip{margin:.25rem}mdui-menu{max-width:none}`;let Je=class extends er(Re){constructor(){super(...arguments),this.variant="filled",this.multiple=!1,this.name="",this.value="",this.defaultValue="",this.clearable=!1,this.placement="auto",this.endAligned=!1,this.readonly=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.menuRef=be(),this.textFieldRef=be(),this.hiddenInputRef=be(),this.formController=new pn(this),this.hasSlotController=new Ut(this,"icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"),this.definedController=new Qt(this,{relatedElements:["mdui-menu-item"]})}get validity(){return this.hiddenInputRef.value.validity}get validationMessage(){return this.hiddenInputRef.value.validationMessage}get focusElement(){return this.textFieldRef.value}get focusDisabled(){return this.disabled}connectedCallback(){super.connectedCallback(),this.value=this.multiple&&At(this.value)?this.value?[this.value]:[]:this.value,this.defaultValue=this.multiple?[]:"",this.definedController.whenDefined().then(()=>{this.requestUpdate()})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}checkValidity(){const t=this.hiddenInputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.hiddenInputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),this.focus()),!this.invalid}setCustomValidity(t){this.hiddenInputRef.value.setCustomValidity(t),this.invalid=!this.hiddenInputRef.value.checkValidity()}firstUpdated(t){super.firstUpdated(t),this.observeResize=to(this.textFieldRef.value,()=>this.resizeMenu())}render(){var i;const t=this.multiple?!!this.value.length:!!this.value;return D`${this.multiple?D``:D``}`${r}:text-field__${r}`).join(",")}" readonly="readonly" .readonlyButClearable="${!0}" .variant="${this.variant}" .name="${this.name}" .value="${this.multiple?this.value.length?" ":"":this.getMenuItemLabelByValue(this.value)}" .label="${this.label}" .placeholder="${this.placeholder}" .helper="${this.helper}" .error="${(i=this.hiddenInputRef.value)==null?void 0:i.validationMessage}" .clearable="${this.clearable}" .clearIcon="${this.clearIcon}" .endAligned="${this.endAligned}" .prefix="${this.prefix}" .suffix="${this.suffix}" .icon="${this.icon}" .endIcon="${this.endIcon}" .errorIcon="${this.errorIcon}" .form="${this.form}" .disabled="${this.disabled}" .required="${this.required}" .invalidStyle="${this.invalid}" @clear="${this.onClear}" @change="${r=>r.stopPropagation()}" @keydown="${this.onTextFieldKeyDown}">${Ro(["icon","end-icon","error-icon","prefix","suffix","clear-button","clear-icon","helper"],r=>this.hasSlotController.test(r)?D``:Ze)} ${et(this.multiple&&this.value.length,()=>D`
${Ro(this.value,r=>D``${n}:chip__${n}`).join(",")}" variant="input" deletable tabindex="-1" @delete="${()=>this.onDeleteOneValue(r)}">${this.getMenuItemLabelByValue(r)}`)}
`)}
`}getMenuItemLabelByValue(t){var i;return this.menuItems.length&&((i=this.menuItems.find(r=>r.value===t))==null?void 0:i.textContent)||t}resizeMenu(){this.menuRef.value.style.width=`${this.textFieldRef.value.clientWidth}px`}async onDropdownOpen(){this.textFieldRef.value.focusedStyle=!0}onDropdownClose(){var t;this.textFieldRef.value.focusedStyle=!1,(this.contains(document.activeElement)||this.contains(((t=document.activeElement)==null?void 0:t.assignedSlot)??null))&&setTimeout(()=>{this.focus()})}async onValueChange(t){var n;const i=t.target;this.value=this.multiple?i.value.map(s=>s??""):i.value??"",await this.updateComplete;const r=this.formController.getForm();r&&((n=It.get(r))!=null&&n.has(this))?(this.invalid=!1,It.get(r).delete(this)):this.invalid=!this.hiddenInputRef.value.checkValidity()}onDeleteOneValue(t){const i=[...this.value];i.includes(t)&&i.splice(i.indexOf(t),1),this.value=i}onClear(){this.value=this.multiple?[]:""}onTextFieldKeyDown(t){t.key==="Enter"&&(t.preventDefault(),this.textFieldRef.value.click())}};Je.styles=[Ee,Ak];v([R({reflect:!0})],Je.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"multiple",void 0);v([R({reflect:!0})],Je.prototype,"name",void 0);v([R()],Je.prototype,"value",void 0);v([Gn()],Je.prototype,"defaultValue",void 0);v([R({reflect:!0})],Je.prototype,"label",void 0);v([R({reflect:!0})],Je.prototype,"placeholder",void 0);v([R({reflect:!0})],Je.prototype,"helper",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"clearable",void 0);v([R({reflect:!0,attribute:"clear-icon"})],Je.prototype,"clearIcon",void 0);v([R({reflect:!0})],Je.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"end-aligned"})],Je.prototype,"endAligned",void 0);v([R({reflect:!0})],Je.prototype,"prefix",void 0);v([R({reflect:!0})],Je.prototype,"suffix",void 0);v([R({reflect:!0})],Je.prototype,"icon",void 0);v([R({reflect:!0,attribute:"end-icon"})],Je.prototype,"endIcon",void 0);v([R({reflect:!0,attribute:"error-icon"})],Je.prototype,"errorIcon",void 0);v([R({reflect:!0})],Je.prototype,"form",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"readonly",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Je.prototype,"required",void 0);v([Ce()],Je.prototype,"invalid",void 0);v([Ji({flatten:!0,selector:"mdui-menu-item"})],Je.prototype,"menuItems",void 0);Je=v([se("mdui-select")],Je);const Ek=pe`.track-active{left:-.125rem;border-radius:var(--mdui-shape-corner-full) 0 0 var(--mdui-shape-corner-full)}`;let Qo=class extends ti{constructor(){super(...arguments),this.value=0,this.defaultValue=0,this.rippleRef=be(),this.handleRef=be(),this.formController=new pn(this)}get rippleElement(){return this.rippleRef.value}async onValueChange(){var i;this.value=this.fixValue(this.value);const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):(await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()),this.updateStyle()}connectedCallback(){super.connectedCallback(),this.value=this.fixValue(this.value)}firstUpdated(t){super.firstUpdated(t);const i=()=>{this.disabled||(this.labelVisible=!0)},r=()=>{this.disabled||(this.labelVisible=!1)};this.addEventListener("touchstart",i),this.addEventListener("mousedown",i),this.addEventListener("touchend",r),this.addEventListener("mouseup",r),this.updateStyle()}render(){return D``}updateStyle(){const t=(this.value-this.min)/(this.max-this.min)*100;this.trackActiveRef.value.style.width=`${t}%`,this.handleRef.value.style.left=`${t}%`}onInput(){this.value=parseFloat(this.inputRef.value.value),this.updateStyle()}};Qo.styles=[ti.styles,Ek];v([R({type:Number})],Qo.prototype,"value",void 0);v([Gn()],Qo.prototype,"defaultValue",void 0);v([re("value",!0)],Qo.prototype,"onValueChange",null);Qo=v([se("mdui-slider")],Qo);const xk=pe`:host{--shape-corner:var(--mdui-shape-corner-extra-small);--z-index:2400;position:fixed;z-index:var(--z-index);display:none;align-items:center;flex-wrap:wrap;border-radius:var(--shape-corner);min-width:20rem;max-width:36rem;padding:.25rem 0;box-shadow:var(--mdui-elevation-level3);background-color:rgb(var(--mdui-color-inverse-surface));color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([placement^=top]){transform-origin:top;top:1rem}:host([placement^=bottom]){transform-origin:bottom;bottom:1rem}:host([placement=bottom-start]),:host([placement=top-start]){left:1rem}:host([placement=bottom-end]),:host([placement=top-end]){right:1rem}.message{display:block;margin:.625rem 1rem}:host([message-line='1']) .message{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([message-line='2']) .message{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.action-group{display:flex;align-items:center;margin-left:auto;padding-right:.5rem}.action,.close-button{display:inline-flex;align-items:center;justify-content:center}.action{color:rgb(var(--mdui-color-inverse-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.action mdui-button,::slotted(mdui-button[slot=action][variant=outlined]),::slotted(mdui-button[slot=action][variant=text]){color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-primary)}.action mdui-button::part(button){padding:0 .5rem}.close-button{margin:0 -.25rem 0 .25rem;font-size:1.5rem;color:rgb(var(--mdui-color-inverse-on-surface))}.close-button mdui-button-icon,::slotted(mdui-button-icon[slot=close-button][variant=outlined]),::slotted(mdui-button-icon[slot=close-button][variant=standard]){font-size:inherit;color:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}.close-button .i,::slotted([slot=close-icon]){font-size:inherit}`;let Bi=class extends Re{constructor(){super(),this.open=!1,this.placement="bottom",this.actionLoading=!1,this.closeable=!1,this.autoCloseDelay=5e3,this.closeOnOutsideClick=!1,this.onDocumentClick=this.onDocumentClick.bind(this)}async onOpenChange(){const t=o5().down("sm"),i=["top","bottom"].includes(this.placement),r=ci(this,"linear"),n=ci(this,"emphasized-decelerate"),s=Array.from(this.renderRoot.querySelectorAll(".message, .action-group")),o=t?{left:"1rem",right:"1rem",minWidth:0}:i?{left:"50%"}:{};if(this.open){const a=this.hasUpdated;if(a||await this.updateComplete,a&&!this.emit("open",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),this.autoCloseDelay&&(this.closeTimeout=window.setTimeout(()=>{this.open=!1},this.autoCloseDelay)),this.style.display="flex",await Promise.all([Ii(this),...s.map(d=>Ii(d))]);const l=ur(this,"medium4"),c=d=>{const u=`scaleY(${d==="start"?0:1})`;return t?{transform:u}:{transform:[u,i?"translateX(-50%)":""].filter(h=>h).join(" ")}};await Promise.all([Xe(this,[{...c("start"),...o},{...c("end"),...o}],{duration:a?l:0,easing:n,fill:"forwards"}),Xe(this,[{opacity:0},{opacity:1,offset:.5},{opacity:1}],{duration:a?l:0,easing:r,fill:"forwards"}),...s.map(d=>Xe(d,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:a?l:0,easing:r}))]),a&&this.emit("opened");return}if(!this.open&&this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),await Promise.all([Ii(this),...s.map(d=>Ii(d))]);const l=ur(this,"short4"),c=d=>{const h={opacity:d==="start"?1:0};return!t&&i&&Object.assign(h,{transform:"translateX(-50%)"}),h};await Promise.all([Xe(this,[{...c("start"),...o},{...c("end"),...o}],{duration:l,easing:r,fill:"forwards"}),...s.map(d=>Xe(d,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:l,easing:r}))]),this.style.display="none",this.emit("closed");return}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick)}render(){return D`
${this.action?D`${this.action}`:Ke}${et(this.closeable,()=>D`${this.closeIcon?D``:D``}`)}
`}onDocumentClick(t){if(!this.open||!this.closeOnOutsideClick)return;const i=t.target;!this.contains(i)&&this!==i&&(this.open=!1)}onActionClick(t){t.stopPropagation(),this.emit("action-click")}onCloseClick(){this.open=!1}};Bi.styles=[Ee,xk];v([R({type:Boolean,reflect:!0,converter:Y})],Bi.prototype,"open",void 0);v([R({reflect:!0})],Bi.prototype,"placement",void 0);v([R({reflect:!0,attribute:"action"})],Bi.prototype,"action",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"action-loading"})],Bi.prototype,"actionLoading",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Bi.prototype,"closeable",void 0);v([R({reflect:!0,attribute:"close-icon"})],Bi.prototype,"closeIcon",void 0);v([R({type:Number,reflect:!0,attribute:"message-line"})],Bi.prototype,"messageLine",void 0);v([R({type:Number,reflect:!0,attribute:"auto-close-delay"})],Bi.prototype,"autoCloseDelay",void 0);v([R({type:Boolean,reflect:!0,attribute:"close-on-outside-click",converter:Y})],Bi.prototype,"closeOnOutsideClick",void 0);v([re("open")],Bi.prototype,"onOpenChange",null);Bi=v([se("mdui-snackbar")],Bi);const Sk=pe`:host{--shape-corner:var(--mdui-shape-corner-full);--shape-corner-thumb:var(--mdui-shape-corner-full);position:relative;display:inline-block;cursor:pointer;-webkit-tap-highlight-color:transparent;height:2.5rem}:host([disabled]){cursor:default;pointer-events:none}label{display:inline-flex;align-items:center;width:100%;height:100%;white-space:nowrap;cursor:inherit;-webkit-user-select:none;user-select:none;touch-action:manipulation;zoom:1;-webkit-user-drag:none}.track{position:relative;display:flex;align-items:center;border-radius:var(--shape-corner);transition-property:background-color,border-width;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:2rem;width:3.25rem;border:.125rem solid rgb(var(--mdui-color-outline));background-color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .track{background-color:rgb(var(--mdui-color-primary));border-width:0}.invalid .track{background-color:rgb(var(--mdui-color-error-container));border-color:rgb(var(--mdui-color-error))}:host([disabled]) .track{background-color:rgba(var(--mdui-color-surface-container-highest),.12);border-color:rgba(var(--mdui-color-on-surface),.12)}:host([disabled][checked]) .track{background-color:rgba(var(--mdui-color-on-surface),.12)}input{position:absolute;padding:0;opacity:0;pointer-events:none;width:1.25rem;height:1.25rem;margin:0 0 0 .625rem}mdui-ripple{border-radius:50%;transition-property:left,top;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);width:2.5rem;height:2.5rem}.thumb{position:absolute;display:flex;align-items:center;justify-content:center;border-radius:var(--shape-corner-thumb);transition-property:width,height,left,background-color;transition-duration:var(--mdui-motion-duration-short4);transition-timing-function:var(--mdui-motion-easing-standard);height:1rem;width:1rem;left:.375rem;background-color:rgb(var(--mdui-color-outline));--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}.thumb mdui-ripple{left:-.75rem;top:-.75rem}.has-unchecked-icon .thumb{height:1.5rem;width:1.5rem;left:.125rem}.has-unchecked-icon .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([focus-visible]) .thumb,:host([hover]) .thumb,:host([pressed]) .thumb{background-color:rgb(var(--mdui-color-on-surface-variant))}:host([checked]) .thumb{height:1.5rem;width:1.5rem;left:1.5rem;background-color:rgb(var(--mdui-color-on-primary));--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}:host([checked]) .thumb mdui-ripple{left:-.5rem;top:-.5rem}:host([pressed]) .thumb{height:1.75rem;width:1.75rem;left:0}:host([pressed]) .thumb mdui-ripple{left:-.375rem;top:-.375rem}:host([pressed][checked]) .thumb{left:1.375rem}:host([focus-visible][checked]) .thumb,:host([hover][checked]) .thumb,:host([pressed][checked]) .thumb{background-color:rgb(var(--mdui-color-primary-container))}.invalid .thumb{background-color:rgb(var(--mdui-color-error));--mdui-comp-ripple-state-layer-color:var(--mdui-color-error)}:host([focus-visible]) .invalid .thumb,:host([hover]) .invalid .thumb,:host([pressed]) .invalid .thumb{background-color:rgb(var(--mdui-color-error))}:host([disabled]) .thumb{background-color:rgba(var(--mdui-color-on-surface),.38)}:host([disabled][checked]) .thumb{background-color:rgb(var(--mdui-color-surface))}.checked-icon,.unchecked-icon{display:flex;position:absolute;transition-property:opacity,transform;font-size:1rem}.unchecked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-surface-container-highest))}:host([checked]) .unchecked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1)}:host([disabled]) .unchecked-icon{color:rgba(var(--mdui-color-surface-container-highest),.38)}.checked-icon{opacity:0;transform:scale(.92);transition-delay:0s;transition-duration:var(--mdui-motion-duration-short1);transition-timing-function:var(--mdui-motion-easing-linear);color:rgb(var(--mdui-color-on-primary-container))}:host([checked]) .checked-icon{opacity:1;transform:scale(1);transition-delay:var(--mdui-motion-duration-short1);transition-duration:var(--mdui-motion-duration-short3)}.invalid .checked-icon{color:rgb(var(--mdui-color-error-container))}:host([disabled]) .checked-icon{color:rgba(var(--mdui-color-on-surface),.38)}.checked-icon .i,.unchecked-icon .i,::slotted([slot=checked-icon]),::slotted([slot=unchecked-icon]){font-size:inherit;color:inherit}`;let Ai=class extends Er(er(Re)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.required=!1,this.name="",this.value="on",this.invalid=!1,this.rippleRef=be(),this.inputRef=be(),this.formController=new pn(this,{value:t=>t.checked?t.value:void 0,defaultValue:t=>t.defaultChecked,setValue:(t,i)=>t.checked=i}),this.hasSlotController=new Ut(this,"unchecked-icon")}get validity(){return this.inputRef.value.validity}get validationMessage(){return this.inputRef.value.validationMessage}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return this.disabled}get focusElement(){return this.inputRef.value}get focusDisabled(){return this.disabled}async onDisabledChange(){await this.updateComplete,this.invalid=!this.inputRef.value.checkValidity()}async onCheckedChange(){var i;await this.updateComplete;const t=this.formController.getForm();t&&((i=It.get(t))!=null&&i.has(this))?(this.invalid=!1,It.get(t).delete(this)):this.invalid=!this.inputRef.value.checkValidity()}checkValidity(){const t=this.inputRef.value.checkValidity();return t||this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1}),t}reportValidity(){return this.invalid=!this.inputRef.value.reportValidity(),this.invalid&&(this.emit("invalid",{bubbles:!1,cancelable:!0,composed:!1})||(this.blur(),this.focus())),!this.invalid}setCustomValidity(t){this.inputRef.value.setCustomValidity(t),this.invalid=!this.inputRef.value.checkValidity()}render(){return D``}onChange(){this.checked=this.inputRef.value.checked,this.emit("change")}};Ai.styles=[Ee,Sk];v([R({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"checked",void 0);v([Gn("checked")],Ai.prototype,"defaultChecked",void 0);v([R({reflect:!0,attribute:"unchecked-icon"})],Ai.prototype,"uncheckedIcon",void 0);v([R({reflect:!0,attribute:"checked-icon"})],Ai.prototype,"checkedIcon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ai.prototype,"required",void 0);v([R({reflect:!0})],Ai.prototype,"form",void 0);v([R({reflect:!0})],Ai.prototype,"name",void 0);v([R({reflect:!0})],Ai.prototype,"value",void 0);v([Ce()],Ai.prototype,"invalid",void 0);v([re("disabled",!0),re("required",!0)],Ai.prototype,"onDisabledChange",null);v([re("checked",!0)],Ai.prototype,"onCheckedChange",null);Ai=v([se("mdui-switch")],Ai);const Tk=pe`:host{position:relative;--mdui-comp-ripple-state-layer-color:var(--mdui-color-on-surface)}:host([active]){--mdui-comp-ripple-state-layer-color:var(--mdui-color-primary)}.container{display:flex;justify-content:center;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%}.preset{flex-direction:column;min-height:3rem;padding:.625rem 1rem}:host([inline]) .preset{flex-direction:row}.icon-container,.label-container{position:relative;display:flex;align-items:center;justify-content:center}.icon-container ::slotted([slot=badge]){position:absolute;transform:translate(50%,-50%)}.icon-container ::slotted([slot=badge][variant=small]){transform:translate(.5625rem,-.5625rem)}.label-container ::slotted([slot=badge]){position:absolute;left:100%;bottom:100%;transform:translate(-.75rem,.625rem)}.label-container ::slotted([slot=badge][variant=small]){transform:translate(-.375rem,.375rem)}.icon,.label{display:flex;color:rgb(var(--mdui-color-on-surface-variant))}:host([focused]) .icon,:host([focused]) .label,:host([hover]) .icon,:host([hover]) .label,:host([pressed]) .icon,:host([pressed]) .label{color:rgb(var(--mdui-color-on-surface))}:host([active]) .icon,:host([active]) .label{color:rgb(var(--mdui-color-primary))}:host([active]) .variant-secondary .icon,:host([active]) .variant-secondary .label{color:rgb(var(--mdui-color-on-surface))}.icon{font-size:1.5rem}.label{font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.icon mdui-icon,::slotted([slot=icon]){font-size:inherit;color:inherit}`;let Kn=class extends Er(er(Re)){constructor(){super(...arguments),this.inline=!1,this.active=!1,this.variant="primary",this.key=Xn(),this.rippleRef=be(),this.hasSlotController=new Ut(this,"icon","custom")}get rippleElement(){return this.rippleRef.value}get rippleDisabled(){return!1}get focusElement(){return this}get focusDisabled(){return!1}render(){const t=this.icon||this.hasSlotController.test("icon"),i=this.hasSlotController.test("custom"),r=()=>D``;return D`
${et(t||this.icon,r)}${this.icon?D``:Ke}
${et(!t,r)}
`}};Kn.styles=[Ee,Tk];v([R({reflect:!0})],Kn.prototype,"value",void 0);v([R({reflect:!0})],Kn.prototype,"icon",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Kn.prototype,"inline",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Kn.prototype,"active",void 0);v([Ce()],Kn.prototype,"variant",void 0);Kn=v([se("mdui-tab")],Kn);const Nk=pe`:host{display:block;overflow-y:auto;flex:1 1 auto}:host(:not([active])){display:none}`;let bl=class extends Re{constructor(){super(...arguments),this.active=!1}render(){return D``}};bl.styles=[Ee,Nk];v([R({reflect:!0})],bl.prototype,"value",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],bl.prototype,"active",void 0);bl=v([se("mdui-tab-panel")],bl);const Rk=pe`:host{position:relative;display:flex}:host([placement^=top]){flex-direction:column}:host([placement^=bottom]){flex-direction:column-reverse}:host([placement^=left]){flex-direction:row}:host([placement^=right]){flex-direction:row-reverse}.container{position:relative;display:flex;flex:0 0 auto;overflow-x:auto;background-color:rgb(var(--mdui-color-surface))}:host([placement^=bottom]) .container,:host([placement^=top]) .container{flex-direction:row}:host([placement^=left]) .container,:host([placement^=right]) .container{flex-direction:column}:host([placement$='-start']) .container{justify-content:flex-start}:host([placement=bottom]) .container,:host([placement=left]) .container,:host([placement=right]) .container,:host([placement=top]) .container{justify-content:center}:host([placement$='-end']) .container{justify-content:flex-end}.container::after{content:' ';position:absolute;background-color:rgb(var(--mdui-color-surface-variant))}:host([placement^=bottom]) .container::after,:host([placement^=top]) .container::after{left:0;width:100%;height:.0625rem}:host([placement^=top]) .container::after{bottom:0}:host([placement^=bottom]) .container::after{top:0}:host([placement^=left]) .container::after,:host([placement^=right]) .container::after{top:0;height:100%;width:.0625rem}:host([placement^=left]) .container::after{right:0}:host([placement^=right]) .container::after{left:0}.indicator{position:absolute;z-index:1;background-color:rgb(var(--mdui-color-primary))}.container:not(.initial) .indicator{transition-duration:var(--mdui-motion-duration-medium2);transition-timing-function:var(--mdui-motion-easing-standard-decelerate)}:host([placement^=bottom]) .indicator,:host([placement^=top]) .indicator{transition-property:transform,left,width}:host([placement^=left]) .indicator,:host([placement^=right]) .indicator{transition-property:transform,top,height}:host([placement^=top]) .indicator{bottom:0}:host([placement^=bottom]) .indicator{top:0}:host([placement^=left]) .indicator{right:0}:host([placement^=right]) .indicator{left:0}:host([placement^=bottom][variant=primary]) .indicator,:host([placement^=top][variant=primary]) .indicator{height:.1875rem}:host([placement^=bottom][variant=secondary]) .indicator,:host([placement^=top][variant=secondary]) .indicator{height:.125rem}:host([placement^=left][variant=primary]) .indicator,:host([placement^=right][variant=primary]) .indicator{width:.1875rem}:host([placement^=left][variant=secondary]) .indicator,:host([placement^=right][variant=secondary]) .indicator{width:.125rem}:host([placement^=top][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-top-right-radius:.1875rem}:host([placement^=bottom][variant=primary]) .indicator{border-bottom-right-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=left][variant=primary]) .indicator{border-top-left-radius:.1875rem;border-bottom-left-radius:.1875rem}:host([placement^=right][variant=primary]) .indicator{border-top-right-radius:.1875rem;border-bottom-right-radius:.1875rem}:host([full-width]) ::slotted(mdui-tab){flex:1}`;let Oi=class extends Re{constructor(){super(...arguments),this.variant="primary",this.placement="top-start",this.fullWidth=!1,this.activeKey=0,this.isInitial=!0,this.containerRef=be(),this.indicatorRef=be(),this.definedController=new Qt(this,{relatedElements:["mdui-tab","mdui-tab-panel"]})}async onActiveKeyChange(){var t;await this.definedController.whenDefined(),this.value=(t=this.tabs.find(i=>i.key===this.activeKey))==null?void 0:t.value,this.updateActive(),this.isInitial||this.emit("change")}async onValueChange(){this.isInitial=!this.hasUpdated,await this.definedController.whenDefined();const t=this.tabs.find(i=>i.value===this.value);this.activeKey=(t==null?void 0:t.key)??0}async onIndicatorChange(){await this.updateComplete,this.updateIndicator()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.observeResize)==null||t.unobserve()}firstUpdated(t){super.firstUpdated(t),this.observeResize=to(this.containerRef.value,()=>this.updateIndicator())}render(){return D`
`}async onSlotChange(){await this.definedController.whenDefined(),this.updateActive()}async onClick(t){if(t.button)return;await this.definedController.whenDefined();const r=t.target.closest("mdui-tab");r&&(this.activeKey=r.key,this.isInitial=!1,this.updateActive())}updateActive(){this.activeTab=this.tabs.map(t=>(t.active=this.activeKey===t.key,t)).find(t=>t.active),this.panels.forEach(t=>{var i;return t.active=t.value===((i=this.activeTab)==null?void 0:i.value)}),this.updateIndicator()}updateIndicator(){const t=this.activeTab,i=B(this.indicatorRef.value),r=this.placement.startsWith("left")||this.placement.startsWith("right");if(!t){i.css({transform:r?"scaleY(0)":"scaleX(0)"});return}const n=B(t),s=t.offsetTop,o=t.offsetLeft,a=r?{transform:"scaleY(1)",width:"",left:""}:{transform:"scaleX(1)",height:"",top:""};let l={};if(this.variant==="primary"){const c=n.find(':scope > [slot="custom"]'),d=c.length?c.get():B(t.renderRoot).find('slot[name="custom"]').children().get();if(r){const u=Math.min(...d.map(f=>f.offsetTop))+s,h=Math.max(...d.map(f=>f.offsetTop+f.offsetHeight))+s;l={top:u,height:h-u}}else{const u=Math.min(...d.map(f=>f.offsetLeft))+o,h=Math.max(...d.map(f=>f.offsetLeft+f.offsetWidth))+o;l={left:u,width:h-u}}}this.variant==="secondary"&&(l=r?{top:s,height:t.offsetHeight}:{left:o,width:t.offsetWidth}),i.css({...a,...l})}};Oi.styles=[Ee,Rk];v([R({reflect:!0})],Oi.prototype,"variant",void 0);v([R({reflect:!0})],Oi.prototype,"value",void 0);v([R({reflect:!0})],Oi.prototype,"placement",void 0);v([R({type:Boolean,reflect:!0,converter:Y,attribute:"full-width"})],Oi.prototype,"fullWidth",void 0);v([Ce()],Oi.prototype,"activeKey",void 0);v([Ce()],Oi.prototype,"isInitial",void 0);v([Ji({selector:"mdui-tab",flatten:!0})],Oi.prototype,"tabs",void 0);v([Ji({selector:"mdui-tab-panel",slot:"panel",flatten:!0})],Oi.prototype,"panels",void 0);v([re("activeKey",!0)],Oi.prototype,"onActiveKeyChange",null);v([re("value")],Oi.prototype,"onValueChange",null);v([re("variant",!0),re("placement",!0),re("fullWidth",!0)],Oi.prototype,"onIndicatorChange",null);Oi=v([se("mdui-tabs")],Oi);class Ik{constructor(t,i){this.isHover=!1,this.uniqueID=Xn(),this.enterEventName=`mouseenter.${this.uniqueID}.hoverController`,this.leaveEventName=`mouseleave.${this.uniqueID}.hoverController`,this.mouseEnterItems=[],this.mouseLeaveItems=[],(this.host=t).addController(this),this.elementRef=i}hostConnected(){this.host.updateComplete.then(()=>{B(this.elementRef.value).on(this.enterEventName,()=>{this.isHover=!0;for(let t=this.mouseEnterItems.length-1;t>=0;t--){const i=this.mouseEnterItems[t];i.callback(),i.one&&this.mouseEnterItems.splice(t,1)}}).on(this.leaveEventName,()=>{this.isHover=!1;for(let t=this.mouseLeaveItems.length-1;t>=0;t--){const i=this.mouseLeaveItems[t];i.callback(),i.one&&this.mouseLeaveItems.splice(t,1)}})})}hostDisconnected(){B(this.elementRef.value).off(this.enterEventName).off(this.leaveEventName)}onMouseEnter(t,i=!1){this.mouseEnterItems.push({callback:t,one:i})}onMouseLeave(t,i=!1){this.mouseLeaveItems.push({callback:t,one:i})}}const $k=pe`:host{--shape-corner-plain:var(--mdui-shape-corner-extra-small);--shape-corner-rich:var(--mdui-shape-corner-medium);--z-index:2500;display:contents}.popup{position:fixed;display:flex;flex-direction:column;z-index:var(--z-index);border-radius:var(--shape-corner-plain);background-color:rgb(var(--mdui-color-inverse-surface));padding:0 .5rem;min-width:1.75rem;max-width:20rem}:host([variant=rich]) .popup{border-radius:var(--shape-corner-rich);background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2);padding:.75rem 1rem .5rem 1rem}.headline{display:flex;color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-title-small-size);font-weight:var(--mdui-typescale-title-small-weight);letter-spacing:var(--mdui-typescale-title-small-tracking);line-height:var(--mdui-typescale-title-small-line-height)}.content{display:flex;padding:.25rem 0;color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-small-size);font-weight:var(--mdui-typescale-body-small-weight);letter-spacing:var(--mdui-typescale-body-small-tracking);line-height:var(--mdui-typescale-body-small-line-height)}:host([variant=rich]) .content{color:rgb(var(--mdui-color-on-surface-variant));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}.action{display:flex;justify-content:flex-start;padding-top:.5rem}.action ::slotted(:not(:last-child)){margin-right:.5rem}`;let Mi=class extends Re{constructor(){super(),this.variant="plain",this.placement="auto",this.openDelay=150,this.closeDelay=150,this.trigger="hover focus",this.disabled=!1,this.open=!1,this.popupRef=be(),this.hasSlotController=new Ut(this,"headline","action"),this.hoverController=new Ik(this,this.popupRef),this.definedController=new Qt(this,{needDomReady:!0}),this.onDocumentClick=this.onDocumentClick.bind(this),this.onWindowScroll=this.onWindowScroll.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}get target(){return[...this.children].find(t=>t.tagName.toLowerCase()!=="style"&&t.getAttribute("slot")!=="content")}async onPositionChange(){this.open&&(await this.definedController.whenDefined(),this.updatePositioner())}async onOpenChange(){const t=this.hasUpdated,i=ur(this,"short4"),r=ci(this,"standard");if(this.open){if(await this.definedController.whenDefined(),B(`mdui-tooltip[variant="${this.variant}"]`).filter((n,s)=>s!==this).prop("open",!1),t||await this.updateComplete,t&&!this.emit("open",{cancelable:!0}))return;await Ii(this.popupRef.value),this.popupRef.value.hidden=!1,this.updatePositioner(),await Xe(this.popupRef.value,[{transform:"scale(0)"},{transform:"scale(1)"}],{duration:t?i:0,easing:r}),t&&this.emit("opened");return}if(!this.open&&t){if(!this.emit("close",{cancelable:!0}))return;await Ii(this.popupRef.value),await Xe(this.popupRef.value,[{transform:"scale(1)"},{transform:"scale(0)"}],{duration:i,easing:r}),this.popupRef.value.hidden=!0,this.emit("closed")}}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick),this.overflowAncestors=gd(this.target),this.overflowAncestors.forEach(t=>{t.addEventListener("scroll",this.onWindowScroll)})}disconnectedCallback(){var t,i;super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),(t=this.overflowAncestors)==null||t.forEach(r=>{r.removeEventListener("scroll",this.onWindowScroll)}),(i=this.observeResize)==null||i.unobserve()}firstUpdated(t){super.firstUpdated(t),this.definedController.whenDefined().then(()=>{const i=this.target;i.addEventListener("focus",this.onFocus),i.addEventListener("blur",this.onBlur),i.addEventListener("pointerdown",this.onClick),i.addEventListener("keydown",this.onKeydown),i.addEventListener("mouseenter",this.onMouseEnter),i.addEventListener("mouseleave",this.onMouseLeave),this.observeResize=to(i,()=>{this.updatePositioner()})})}render(){const t=this.isRich()&&(this.headline||this.hasSlotController.test("headline")),i=this.isRich()&&this.hasSlotController.test("action");return D``}isRich(){return this.variant==="rich"}requestClose(){if(!this.hoverController.isHover){this.open=!1;return}this.hoverController.onMouseLeave(()=>{this.hasTrigger("hover")?this.hoverTimeout=window.setTimeout(()=>{this.open=!1},this.closeDelay||50):this.open=!1},!0)}hasTrigger(t){return this.trigger.split(" ").includes(t)}onFocus(){this.disabled||this.open||!this.hasTrigger("focus")||(this.open=!0)}onBlur(){this.disabled||!this.open||!this.hasTrigger("focus")||this.requestClose()}onClick(t){this.disabled||t.button||!this.hasTrigger("click")||this.open&&(this.hasTrigger("hover")||this.hasTrigger("focus"))||(this.open=!this.open)}onKeydown(t){this.disabled||!this.open||t.key!=="Escape"||(t.stopPropagation(),this.requestClose())}onMouseEnter(){this.disabled||this.open||!this.hasTrigger("hover")||(this.openDelay?(window.clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>{this.open=!0},this.openDelay)):this.open=!0)}onMouseLeave(){window.clearTimeout(this.hoverTimeout),!(this.disabled||!this.open||!this.hasTrigger("hover"))&&(this.hoverTimeout=window.setTimeout(()=>{this.requestClose()},this.closeDelay||50))}onDocumentClick(t){if(this.disabled||!this.open)return;t.composedPath().includes(this)||this.requestClose()}onWindowScroll(){window.requestAnimationFrame(()=>this.updatePositioner())}updatePositioner(){const t=B(this.popupRef.value),i=this.isRich()?0:4,r=4,n=this.target.getBoundingClientRect(),s=n.top,o=n.left,a=n.height,l=n.width,c=this.popupRef.value.offsetHeight,d=this.popupRef.value.offsetWidth,u=d+i+r,h=c+i+r;let f,m,b,w,_=this.placement;if(_==="auto"){const y=B(window),C=s>h,E=y.height()-s-a>h,A=o>u,x=y.width()-o-l>u;this.isRich()?(_="bottom-right",E&&x?_="bottom-right":E&&A?_="bottom-left":C&&x?_="top-right":C&&A?_="top-left":E?_="bottom":C?_="top":x?_="right":A&&(_="left")):(_="top",C?_="top":E?_="bottom":A?_="left":x&&(_="right"))}const[g,p]=_.split("-");switch(g){case"top":m="bottom",b=s-c-i;break;case"bottom":m="top",b=s+a+i;break;default:switch(m="center",p){case"start":b=s;break;case"end":b=s+a-c;break;default:b=s+a/2-c/2;break}break}switch(g){case"left":f="right",w=o-d-i;break;case"right":f="left",w=o+l+i;break;default:switch(f="center",p){case"start":w=o;break;case"end":w=o+l-d;break;case"left":f="right",w=o-d-i;break;case"right":f="left",w=o+l+i;break;default:w=o+l/2-d/2;break}break}t.css({top:b,left:w,transformOrigin:[f,m].join(" ")})}};Mi.styles=[Ee,$k];v([R({reflect:!0})],Mi.prototype,"variant",void 0);v([R({reflect:!0})],Mi.prototype,"placement",void 0);v([R({type:Number,reflect:!0,attribute:"open-delay"})],Mi.prototype,"openDelay",void 0);v([R({type:Number,reflect:!0,attribute:"close-delay"})],Mi.prototype,"closeDelay",void 0);v([R({reflect:!0})],Mi.prototype,"headline",void 0);v([R({reflect:!0})],Mi.prototype,"content",void 0);v([R({reflect:!0})],Mi.prototype,"trigger",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"disabled",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Mi.prototype,"open",void 0);v([re("placement",!0),re("content",!0)],Mi.prototype,"onPositionChange",null);v([re("open")],Mi.prototype,"onOpenChange",null);Mi=v([se("mdui-tooltip")],Mi);const Pk=e=>{const t=e.assignedNodes({flatten:!0});let i="";return[...t].forEach(r=>{r.nodeType===Node.ELEMENT_NODE&&(i+=r.outerHTML),r.nodeType===Node.TEXT_NODE&&(i+=r.textContent)}),i},Dk=pe`:host{display:block;width:100%;flex-shrink:initial!important;overflow:hidden;color:rgb(var(--mdui-color-on-surface));font-size:var(--mdui-typescale-title-large-size);font-weight:var(--mdui-typescale-title-large-weight);letter-spacing:var(--mdui-typescale-title-large-tracking);line-height:var(--mdui-typescale-title-large-line-height);line-height:2.5rem}.label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:1;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label.variant-center-aligned{text-align:center}.label.variant-large:not(.shrink),.label.variant-medium:not(.shrink){opacity:0}.label.variant-large.shrink,.label.variant-medium.shrink{transition-delay:var(--mdui-motion-duration-short2)}.label-large{display:none;position:absolute;width:100%;left:0;margin-right:0;padding:0 1rem;transition:opacity var(--mdui-motion-duration-short2) var(--mdui-motion-easing-linear)}.label-large.variant-large,.label-large.variant-medium{display:block}.label-large.variant-medium{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;bottom:.75rem;font-size:var(--mdui-typescale-headline-small-size);font-weight:var(--mdui-typescale-headline-small-weight);letter-spacing:var(--mdui-typescale-headline-small-tracking);line-height:var(--mdui-typescale-headline-small-line-height)}.label-large.variant-large{display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:1.25rem;font-size:var(--mdui-typescale-headline-medium-size);font-weight:var(--mdui-typescale-headline-medium-weight);letter-spacing:var(--mdui-typescale-headline-medium-tracking);line-height:var(--mdui-typescale-headline-medium-line-height)}.label-large.variant-large:not(.shrink),.label-large.variant-medium:not(.shrink){opacity:1;transition-delay:var(--mdui-motion-duration-short2)}.label-large.variant-large.shrink,.label-large.variant-medium.shrink{opacity:0;z-index:-1}`;let wl=class extends Re{constructor(){super(...arguments),this.variant="small",this.shrink=!1,this.hasSlotController=new Ut(this,"label-large"),this.labelLargeRef=be(),this.defaultSlotRef=be()}render(){const t=this.hasSlotController.test("label-large"),i=kt({shrink:this.shrink,"variant-center-aligned":this.variant==="center-aligned","variant-small":this.variant==="small","variant-medium":this.variant==="medium","variant-large":this.variant==="large"});return D`${t?D``:D`
`}`}onSlotChange(t){t||(this.labelLargeRef.value.innerHTML=Pk(this.defaultSlotRef.value))}};wl.styles=[Ee,Dk];v([Ce()],wl.prototype,"variant",void 0);v([Ce()],wl.prototype,"shrink",void 0);wl=v([se("mdui-top-app-bar-title")],wl);const Lk=pe`:host{--shape-corner:var(--mdui-shape-corner-none);--z-index:2000;position:fixed;top:0;right:0;left:0;display:flex;flex:0 0 auto;align-items:flex-start;justify-content:flex-start;border-bottom-left-radius:var(--shape-corner);border-bottom-right-radius:var(--shape-corner);z-index:var(--z-index);transition:top var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),height var(--mdui-motion-duration-long2) var(--mdui-motion-easing-standard),box-shadow var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear),background-color var(--mdui-motion-duration-short4) var(--mdui-motion-easing-linear);padding:.75rem .5rem;height:4rem;background-color:rgb(var(--mdui-color-surface))}:host([scroll-target]:not([scroll-target=''])){position:absolute}:host([scroll-behavior~=shrink]){transition-duration:var(--mdui-motion-duration-short4)}:host([scrolling]){background-color:rgb(var(--mdui-color-surface-container));box-shadow:var(--mdui-elevation-level2)}::slotted(mdui-button-icon){color:rgb(var(--mdui-color-on-surface-variant));font-size:1.5rem}::slotted(mdui-button-icon:first-child){color:rgb(var(--mdui-color-on-surface))}::slotted(mdui-avatar){width:1.875rem;height:1.875rem;margin-top:.3125rem;margin-bottom:.3125rem}::slotted(*){flex-shrink:0}::slotted(:not(:last-child)){margin-right:.5rem}:host([variant=medium]){height:7rem}:host([variant=large]){height:9.5rem}:host([hide]){transition-duration:var(--mdui-motion-duration-short4);top:-4.625rem}:host([hide][variant=medium]){top:-7.625rem}:host([hide][variant=large]){top:-10.125rem}:host([shrink][variant=large]),:host([shrink][variant=medium]){transition-duration:var(--mdui-motion-duration-short4);height:4rem}`;let Ar=class extends P0(Zn){constructor(){super(...arguments),this.variant="small",this.hide=!1,this.shrink=!1,this.scrolling=!1}get scrollPaddingPosition(){return"top"}get layoutPlacement(){return"top"}async onVariantChange(){this.hasUpdated?this.addEventListener("transitionend",async()=>{await this.scrollBehaviorDefinedController.whenDefined(),this.updateContainerPadding()},{once:!0}):await this.updateComplete,this.titleElements.forEach(t=>{t.variant=this.variant})}async onShrinkChange(){this.hasUpdated||await this.updateComplete,this.titleElements.forEach(t=>{t.shrink=this.shrink})}firstUpdated(t){super.firstUpdated(t),this.addEventListener("transitionend",i=>{i.target===this&&this.emit(this.hide?"hidden":"shown")})}render(){return D``}runScrollNoThreshold(t,i){this.hasScrollBehavior("shrink")&&t&&i<8&&(this.shrink=!1)}runScrollThreshold(t,i){this.hasScrollBehavior("elevate")&&(this.scrolling=!!i),this.hasScrollBehavior("shrink")&&(t||(this.shrink=!0)),this.hasScrollBehavior("hide")&&(!t&&!this.hide&&this.emit("hide",{cancelable:!0})&&(this.hide=!0),t&&this.hide&&this.emit("show",{cancelable:!0})&&(this.hide=!1))}};Ar.styles=[Ee,Lk];v([R({reflect:!0})],Ar.prototype,"variant",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ar.prototype,"hide",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ar.prototype,"shrink",void 0);v([R({reflect:!0,attribute:"scroll-behavior"})],Ar.prototype,"scrollBehavior",void 0);v([R({type:Boolean,reflect:!0,converter:Y})],Ar.prototype,"scrolling",void 0);v([Ji({selector:"mdui-top-app-bar-title",flatten:!0})],Ar.prototype,"titleElements",void 0);v([re("variant")],Ar.prototype,"onVariantChange",null);v([re("shrink")],Ar.prototype,"onShrinkChange",null);Ar=v([se("mdui-top-app-bar")],Ar);function Bk(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}const hs={};function Ok(e,t){if(ot(hs[e])&&(hs[e]=[]),ot(t))return hs[e];hs[e].push(t)}function Mk(e){if(ot(hs[e])||!hs[e].length)return;hs[e].shift()()}/** * @license * Copyright 2021 Google LLC * @@ -246,7 +246,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Hk=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Uk=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],Kk=[95.047,100,108.883];function B0(e,t,i){return(255<<24|(e&255)<<16|(t&255)<<8|i&255)>>>0}function H1(e){const t=Ls(e[0]),i=Ls(e[1]),r=Ls(e[2]);return B0(t,i,r)}function l5(e){return e>>16&255}function c5(e){return e>>8&255}function d5(e){return e&255}function Wk(e,t,i){const r=Uk,n=r[0][0]*e+r[0][1]*t+r[0][2]*i,s=r[1][0]*e+r[1][1]*t+r[1][2]*i,o=r[2][0]*e+r[2][1]*t+r[2][2]*i,a=Ls(n),l=Ls(s),c=Ls(o);return B0(a,l,c)}function qk(e){const t=Io(l5(e)),i=Io(c5(e)),r=Io(d5(e));return If([t,i,r],Hk)}function jk(e){const t=Nn(e),i=Ls(t);return B0(i,i,i)}function $f(e){const t=qk(e)[1];return 116*u5(t/100)-16}function Nn(e){return 100*Xk((e+16)/116)}function Pf(e){return u5(e/100)*116-16}function Io(e){const t=e/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}function Ls(e){const t=e/100;let i=0;return t<=.0031308?i=t*12.92:i=1.055*Math.pow(t,1/2.4)-.055,Vk(0,255,Math.round(i*255))}function Yk(){return Kk}function u5(e){const t=.008856451679035631,i=24389/27;return e>t?Math.pow(e,1/3):(i*e+16)/116}function Xk(e){const t=.008856451679035631,i=24389/27,r=e*e*e;return r>t?r:(116*e-16)/i}/** + */const Hk=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Uk=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],Kk=[95.047,100,108.883];function B0(e,t,i){return(255<<24|(e&255)<<16|(t&255)<<8|i&255)>>>0}function H1(e){const t=Ls(e[0]),i=Ls(e[1]),r=Ls(e[2]);return B0(t,i,r)}function a5(e){return e>>16&255}function l5(e){return e>>8&255}function c5(e){return e&255}function Wk(e,t,i){const r=Uk,n=r[0][0]*e+r[0][1]*t+r[0][2]*i,s=r[1][0]*e+r[1][1]*t+r[1][2]*i,o=r[2][0]*e+r[2][1]*t+r[2][2]*i,a=Ls(n),l=Ls(s),c=Ls(o);return B0(a,l,c)}function qk(e){const t=Io(a5(e)),i=Io(l5(e)),r=Io(c5(e));return If([t,i,r],Hk)}function jk(e){const t=Rn(e),i=Ls(t);return B0(i,i,i)}function $f(e){const t=qk(e)[1];return 116*d5(t/100)-16}function Rn(e){return 100*Xk((e+16)/116)}function Pf(e){return d5(e/100)*116-16}function Io(e){const t=e/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}function Ls(e){const t=e/100;let i=0;return t<=.0031308?i=t*12.92:i=1.055*Math.pow(t,1/2.4)-.055,Vk(0,255,Math.round(i*255))}function Yk(){return Kk}function d5(e){const t=.008856451679035631,i=24389/27;return e>t?Math.pow(e,1/3):(i*e+16)/116}function Xk(e){const t=.008856451679035631,i=24389/27,r=e*e*e;return r>t?r:(116*e-16)/i}/** * @license * Copyright 2021 Google LLC * @@ -261,7 +261,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class _r{static make(t=Yk(),i=200/Math.PI*Nn(50)/100,r=50,n=2,s=!1){const o=t,a=o[0]*.401288+o[1]*.650173+o[2]*-.051461,l=o[0]*-.250268+o[1]*1.204414+o[2]*.045854,c=o[0]*-.002079+o[1]*.048952+o[2]*.953127,d=.8+n/10,u=d>=.9?Ha(.59,.69,(d-.9)*10):Ha(.525,.59,(d-.8)*10);let h=s?1:d*(1-1/3.6*Math.exp((-i-42)/92));h=h>1?1:h<0?0:h;const f=d,m=[h*(100/a)+1-h,h*(100/l)+1-h,h*(100/c)+1-h],b=1/(5*i+1),w=b*b*b*b,_=1-w,g=w*i+.1*_*_*Math.cbrt(5*i),p=Nn(r)/t[1],y=1.48+Math.sqrt(p),C=.725/Math.pow(p,.2),E=C,A=[Math.pow(g*m[0]*a/100,.42),Math.pow(g*m[1]*l/100,.42),Math.pow(g*m[2]*c/100,.42)],S=[400*A[0]/(A[0]+27.13),400*A[1]/(A[1]+27.13),400*A[2]/(A[2]+27.13)],x=(2*S[0]+S[1]+.05*S[2])*C;return new _r(p,x,C,E,u,f,m,g,Math.pow(g,.25),y)}constructor(t,i,r,n,s,o,a,l,c,d){this.n=t,this.aw=i,this.nbb=r,this.ncb=n,this.c=s,this.nc=o,this.rgbD=a,this.fl=l,this.fLRoot=c,this.z=d}}_r.DEFAULT=_r.make();/** + */class _r{static make(t=Yk(),i=200/Math.PI*Rn(50)/100,r=50,n=2,s=!1){const o=t,a=o[0]*.401288+o[1]*.650173+o[2]*-.051461,l=o[0]*-.250268+o[1]*1.204414+o[2]*.045854,c=o[0]*-.002079+o[1]*.048952+o[2]*.953127,d=.8+n/10,u=d>=.9?Ha(.59,.69,(d-.9)*10):Ha(.525,.59,(d-.8)*10);let h=s?1:d*(1-1/3.6*Math.exp((-i-42)/92));h=h>1?1:h<0?0:h;const f=d,m=[h*(100/a)+1-h,h*(100/l)+1-h,h*(100/c)+1-h],b=1/(5*i+1),w=b*b*b*b,_=1-w,g=w*i+.1*_*_*Math.cbrt(5*i),p=Rn(r)/t[1],y=1.48+Math.sqrt(p),C=.725/Math.pow(p,.2),E=C,A=[Math.pow(g*m[0]*a/100,.42),Math.pow(g*m[1]*l/100,.42),Math.pow(g*m[2]*c/100,.42)],x=[400*A[0]/(A[0]+27.13),400*A[1]/(A[1]+27.13),400*A[2]/(A[2]+27.13)],S=(2*x[0]+x[1]+.05*x[2])*C;return new _r(p,S,C,E,u,f,m,g,Math.pow(g,.25),y)}constructor(t,i,r,n,s,o,a,l,c,d){this.n=t,this.aw=i,this.nbb=r,this.ncb=n,this.c=s,this.nc=o,this.rgbD=a,this.fl=l,this.fLRoot=c,this.z=d}}_r.DEFAULT=_r.make();/** * @license * Copyright 2021 Google LLC * @@ -276,7 +276,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Vt{constructor(t,i,r,n,s,o,a,l,c){this.hue=t,this.chroma=i,this.j=r,this.q=n,this.m=s,this.s=o,this.jstar=a,this.astar=l,this.bstar=c}distance(t){const i=this.jstar-t.jstar,r=this.astar-t.astar,n=this.bstar-t.bstar,s=Math.sqrt(i*i+r*r+n*n);return 1.41*Math.pow(s,.63)}static fromInt(t){return Vt.fromIntInViewingConditions(t,_r.DEFAULT)}static fromIntInViewingConditions(t,i){const r=(t&16711680)>>16,n=(t&65280)>>8,s=t&255,o=Io(r),a=Io(n),l=Io(s),c=.41233895*o+.35762064*a+.18051042*l,d=.2126*o+.7152*a+.0722*l,u=.01932141*o+.11916382*a+.95034478*l,h=.401288*c+.650173*d-.051461*u,f=-.250268*c+1.204414*d+.045854*u,m=-.002079*c+.048952*d+.953127*u,b=i.rgbD[0]*h,w=i.rgbD[1]*f,_=i.rgbD[2]*m,g=Math.pow(i.fl*Math.abs(b)/100,.42),p=Math.pow(i.fl*Math.abs(w)/100,.42),y=Math.pow(i.fl*Math.abs(_)/100,.42),C=xi(b)*400*g/(g+27.13),E=xi(w)*400*p/(p+27.13),A=xi(_)*400*y/(y+27.13),S=(11*C+-12*E+A)/11,x=(C+E-2*A)/9,k=(20*C+20*E+21*A)/20,T=(40*C+20*E+A)/20,I=Math.atan2(x,S)*180/Math.PI,P=I<0?I+360:I>=360?I-360:I,B=P*Math.PI/180,O=T*i.nbb,H=100*Math.pow(O/i.aw,i.c*i.z),U=4/i.c*Math.sqrt(H/100)*(i.aw+4)*i.fLRoot,oe=P<20.14?P+360:P,ye=.25*(Math.cos(oe*Math.PI/180+2)+3.8),W=5e4/13*ye*i.nc*i.ncb*Math.sqrt(S*S+x*x)/(k+.305),Z=Math.pow(W,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),K=Z*Math.sqrt(H/100),De=K*i.fLRoot,xe=50*Math.sqrt(Z*i.c/(i.aw+4)),pt=(1+100*.007)*H/(1+.007*H),we=1/.0228*Math.log(1+.0228*De),xr=we*Math.cos(B),ui=we*Math.sin(B);return new Vt(P,K,H,U,De,xe,pt,xr,ui)}static fromJch(t,i,r){return Vt.fromJchInViewingConditions(t,i,r,_r.DEFAULT)}static fromJchInViewingConditions(t,i,r,n){const s=4/n.c*Math.sqrt(t/100)*(n.aw+4)*n.fLRoot,o=i*n.fLRoot,a=i/Math.sqrt(t/100),l=50*Math.sqrt(a*n.c/(n.aw+4)),c=r*Math.PI/180,d=(1+100*.007)*t/(1+.007*t),u=1/.0228*Math.log(1+.0228*o),h=u*Math.cos(c),f=u*Math.sin(c);return new Vt(r,i,t,s,o,l,d,h,f)}static fromUcs(t,i,r){return Vt.fromUcsInViewingConditions(t,i,r,_r.DEFAULT)}static fromUcsInViewingConditions(t,i,r,n){const s=i,o=r,a=Math.sqrt(s*s+o*o),c=(Math.exp(a*.0228)-1)/.0228/n.fLRoot;let d=Math.atan2(o,s)*(180/Math.PI);d<0&&(d+=360);const u=t/(1-(t-100)*.007);return Vt.fromJchInViewingConditions(u,c,d,n)}toInt(){return this.viewed(_r.DEFAULT)}viewed(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,m=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,w=(460*l-220*h-6300*f)/1403,_=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),g=xi(m)*(100/t.fl)*Math.pow(_,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=xi(b)*(100/t.fl)*Math.pow(p,1/.42),C=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),E=xi(w)*(100/t.fl)*Math.pow(C,1/.42),A=g/t.rgbD[0],S=y/t.rgbD[1],x=E/t.rgbD[2],k=1.86206786*A-1.01125463*S+.14918677*x,T=.38752654*A+.62144744*S-.00897398*x,N=-.0158415*A-.03412294*S+1.04996444*x;return Wk(k,T,N)}static fromXyzInViewingConditions(t,i,r,n){const s=.401288*t+.650173*i-.051461*r,o=-.250268*t+1.204414*i+.045854*r,a=-.002079*t+.048952*i+.953127*r,l=n.rgbD[0]*s,c=n.rgbD[1]*o,d=n.rgbD[2]*a,u=Math.pow(n.fl*Math.abs(l)/100,.42),h=Math.pow(n.fl*Math.abs(c)/100,.42),f=Math.pow(n.fl*Math.abs(d)/100,.42),m=xi(l)*400*u/(u+27.13),b=xi(c)*400*h/(h+27.13),w=xi(d)*400*f/(f+27.13),_=(11*m+-12*b+w)/11,g=(m+b-2*w)/9,p=(20*m+20*b+21*w)/20,y=(40*m+20*b+w)/20,E=Math.atan2(g,_)*180/Math.PI,A=E<0?E+360:E>=360?E-360:E,S=A*Math.PI/180,x=y*n.nbb,k=100*Math.pow(x/n.aw,n.c*n.z),T=4/n.c*Math.sqrt(k/100)*(n.aw+4)*n.fLRoot,N=A<20.14?A+360:A,I=1/4*(Math.cos(N*Math.PI/180+2)+3.8),B=5e4/13*I*n.nc*n.ncb*Math.sqrt(_*_+g*g)/(p+.305),O=Math.pow(B,.9)*Math.pow(1.64-Math.pow(.29,n.n),.73),H=O*Math.sqrt(k/100),U=H*n.fLRoot,oe=50*Math.sqrt(O*n.c/(n.aw+4)),ye=(1+100*.007)*k/(1+.007*k),F=Math.log(1+.0228*U)/.0228,W=F*Math.cos(S),Z=F*Math.sin(S);return new Vt(A,H,k,T,U,oe,ye,W,Z)}xyzInViewingConditions(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,m=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,w=(460*l-220*h-6300*f)/1403,_=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),g=xi(m)*(100/t.fl)*Math.pow(_,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=xi(b)*(100/t.fl)*Math.pow(p,1/.42),C=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),E=xi(w)*(100/t.fl)*Math.pow(C,1/.42),A=g/t.rgbD[0],S=y/t.rgbD[1],x=E/t.rgbD[2],k=1.86206786*A-1.01125463*S+.14918677*x,T=.38752654*A+.62144744*S-.00897398*x,N=-.0158415*A-.03412294*S+1.04996444*x;return[k,T,N]}}/** + */class Vt{constructor(t,i,r,n,s,o,a,l,c){this.hue=t,this.chroma=i,this.j=r,this.q=n,this.m=s,this.s=o,this.jstar=a,this.astar=l,this.bstar=c}distance(t){const i=this.jstar-t.jstar,r=this.astar-t.astar,n=this.bstar-t.bstar,s=Math.sqrt(i*i+r*r+n*n);return 1.41*Math.pow(s,.63)}static fromInt(t){return Vt.fromIntInViewingConditions(t,_r.DEFAULT)}static fromIntInViewingConditions(t,i){const r=(t&16711680)>>16,n=(t&65280)>>8,s=t&255,o=Io(r),a=Io(n),l=Io(s),c=.41233895*o+.35762064*a+.18051042*l,d=.2126*o+.7152*a+.0722*l,u=.01932141*o+.11916382*a+.95034478*l,h=.401288*c+.650173*d-.051461*u,f=-.250268*c+1.204414*d+.045854*u,m=-.002079*c+.048952*d+.953127*u,b=i.rgbD[0]*h,w=i.rgbD[1]*f,_=i.rgbD[2]*m,g=Math.pow(i.fl*Math.abs(b)/100,.42),p=Math.pow(i.fl*Math.abs(w)/100,.42),y=Math.pow(i.fl*Math.abs(_)/100,.42),C=xi(b)*400*g/(g+27.13),E=xi(w)*400*p/(p+27.13),A=xi(_)*400*y/(y+27.13),x=(11*C+-12*E+A)/11,S=(C+E-2*A)/9,k=(20*C+20*E+21*A)/20,N=(40*C+20*E+A)/20,T=Math.atan2(S,x)*180/Math.PI,P=T<0?T+360:T>=360?T-360:T,O=P*Math.PI/180,M=N*i.nbb,H=100*Math.pow(M/i.aw,i.c*i.z),U=4/i.c*Math.sqrt(H/100)*(i.aw+4)*i.fLRoot,me=P<20.14?P+360:P,ye=.25*(Math.cos(me*Math.PI/180+2)+3.8),W=5e4/13*ye*i.nc*i.ncb*Math.sqrt(x*x+S*S)/(k+.305),Z=Math.pow(W,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),K=Z*Math.sqrt(H/100),De=K*i.fLRoot,xe=50*Math.sqrt(Z*i.c/(i.aw+4)),pt=(1+100*.007)*H/(1+.007*H),we=1/.0228*Math.log(1+.0228*De),xr=we*Math.cos(O),ui=we*Math.sin(O);return new Vt(P,K,H,U,De,xe,pt,xr,ui)}static fromJch(t,i,r){return Vt.fromJchInViewingConditions(t,i,r,_r.DEFAULT)}static fromJchInViewingConditions(t,i,r,n){const s=4/n.c*Math.sqrt(t/100)*(n.aw+4)*n.fLRoot,o=i*n.fLRoot,a=i/Math.sqrt(t/100),l=50*Math.sqrt(a*n.c/(n.aw+4)),c=r*Math.PI/180,d=(1+100*.007)*t/(1+.007*t),u=1/.0228*Math.log(1+.0228*o),h=u*Math.cos(c),f=u*Math.sin(c);return new Vt(r,i,t,s,o,l,d,h,f)}static fromUcs(t,i,r){return Vt.fromUcsInViewingConditions(t,i,r,_r.DEFAULT)}static fromUcsInViewingConditions(t,i,r,n){const s=i,o=r,a=Math.sqrt(s*s+o*o),c=(Math.exp(a*.0228)-1)/.0228/n.fLRoot;let d=Math.atan2(o,s)*(180/Math.PI);d<0&&(d+=360);const u=t/(1-(t-100)*.007);return Vt.fromJchInViewingConditions(u,c,d,n)}toInt(){return this.viewed(_r.DEFAULT)}viewed(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,m=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,w=(460*l-220*h-6300*f)/1403,_=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),g=xi(m)*(100/t.fl)*Math.pow(_,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=xi(b)*(100/t.fl)*Math.pow(p,1/.42),C=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),E=xi(w)*(100/t.fl)*Math.pow(C,1/.42),A=g/t.rgbD[0],x=y/t.rgbD[1],S=E/t.rgbD[2],k=1.86206786*A-1.01125463*x+.14918677*S,N=.38752654*A+.62144744*x-.00897398*S,I=-.0158415*A-.03412294*x+1.04996444*S;return Wk(k,N,I)}static fromXyzInViewingConditions(t,i,r,n){const s=.401288*t+.650173*i-.051461*r,o=-.250268*t+1.204414*i+.045854*r,a=-.002079*t+.048952*i+.953127*r,l=n.rgbD[0]*s,c=n.rgbD[1]*o,d=n.rgbD[2]*a,u=Math.pow(n.fl*Math.abs(l)/100,.42),h=Math.pow(n.fl*Math.abs(c)/100,.42),f=Math.pow(n.fl*Math.abs(d)/100,.42),m=xi(l)*400*u/(u+27.13),b=xi(c)*400*h/(h+27.13),w=xi(d)*400*f/(f+27.13),_=(11*m+-12*b+w)/11,g=(m+b-2*w)/9,p=(20*m+20*b+21*w)/20,y=(40*m+20*b+w)/20,E=Math.atan2(g,_)*180/Math.PI,A=E<0?E+360:E>=360?E-360:E,x=A*Math.PI/180,S=y*n.nbb,k=100*Math.pow(S/n.aw,n.c*n.z),N=4/n.c*Math.sqrt(k/100)*(n.aw+4)*n.fLRoot,I=A<20.14?A+360:A,T=1/4*(Math.cos(I*Math.PI/180+2)+3.8),O=5e4/13*T*n.nc*n.ncb*Math.sqrt(_*_+g*g)/(p+.305),M=Math.pow(O,.9)*Math.pow(1.64-Math.pow(.29,n.n),.73),H=M*Math.sqrt(k/100),U=H*n.fLRoot,me=50*Math.sqrt(M*n.c/(n.aw+4)),ye=(1+100*.007)*k/(1+.007*k),F=Math.log(1+.0228*U)/.0228,W=F*Math.cos(x),Z=F*Math.sin(x);return new Vt(A,H,k,N,U,me,ye,W,Z)}xyzInViewingConditions(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),a=s*(5e4/13)*t.nc*t.ncb,l=o/t.nbb,c=Math.sin(n),d=Math.cos(n),u=23*(l+.305)*r/(23*a+11*r*d+108*r*c),h=u*d,f=u*c,m=(460*l+451*h+288*f)/1403,b=(460*l-891*h-261*f)/1403,w=(460*l-220*h-6300*f)/1403,_=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),g=xi(m)*(100/t.fl)*Math.pow(_,1/.42),p=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=xi(b)*(100/t.fl)*Math.pow(p,1/.42),C=Math.max(0,27.13*Math.abs(w)/(400-Math.abs(w))),E=xi(w)*(100/t.fl)*Math.pow(C,1/.42),A=g/t.rgbD[0],x=y/t.rgbD[1],S=E/t.rgbD[2],k=1.86206786*A-1.01125463*x+.14918677*S,N=.38752654*A+.62144744*x-.00897398*S,I=-.0158415*A-.03412294*x+1.04996444*S;return[k,N,I]}}/** * @license * Copyright 2021 Google LLC * @@ -291,7 +291,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class fe{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const i=t/100;let r=0;return i<=.0031308?r=i*12.92:r=1.055*Math.pow(i,1/2.4)-.055,r*255}static chromaticAdaptation(t){const i=Math.pow(Math.abs(t),.42);return xi(t)*400*i/(i+27.13)}static hueOf(t){const i=If(t,fe.SCALED_DISCOUNT_FROM_LINRGB),r=fe.chromaticAdaptation(i[0]),n=fe.chromaticAdaptation(i[1]),s=fe.chromaticAdaptation(i[2]),o=(11*r+-12*n+s)/11,a=(r+n-2*s)/9;return Math.atan2(a,o)}static areInCyclicOrder(t,i,r){const n=fe.sanitizeRadians(i-t),s=fe.sanitizeRadians(r-t);return n100.01||k[1]>100.01||k[2]>100.01?0:H1(k);n=n-(P-r)*n/(2*P)}return 0}static solveToInt(t,i,r){if(i<1e-4||r<1e-4||r>99.9999)return jk(r);t=L0(t);const n=t/180*Math.PI,s=Nn(r),o=fe.findResultByJ(n,i,s);if(o!==0)return o;const a=fe.bisectToLimit(s,n);return H1(a)}static solveToCam(t,i,r){return Vt.fromInt(fe.solveToInt(t,i,r))}}fe.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];fe.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];fe.Y_FROM_LINRGB=[.2126,.7152,.0722];fe.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/** + */class he{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const i=t/100;let r=0;return i<=.0031308?r=i*12.92:r=1.055*Math.pow(i,1/2.4)-.055,r*255}static chromaticAdaptation(t){const i=Math.pow(Math.abs(t),.42);return xi(t)*400*i/(i+27.13)}static hueOf(t){const i=If(t,he.SCALED_DISCOUNT_FROM_LINRGB),r=he.chromaticAdaptation(i[0]),n=he.chromaticAdaptation(i[1]),s=he.chromaticAdaptation(i[2]),o=(11*r+-12*n+s)/11,a=(r+n-2*s)/9;return Math.atan2(a,o)}static areInCyclicOrder(t,i,r){const n=he.sanitizeRadians(i-t),s=he.sanitizeRadians(r-t);return n100.01||k[1]>100.01||k[2]>100.01?0:H1(k);n=n-(P-r)*n/(2*P)}return 0}static solveToInt(t,i,r){if(i<1e-4||r<1e-4||r>99.9999)return jk(r);t=L0(t);const n=t/180*Math.PI,s=Rn(r),o=he.findResultByJ(n,i,s);if(o!==0)return o;const a=he.bisectToLimit(s,n);return H1(a)}static solveToCam(t,i,r){return Vt.fromInt(he.solveToInt(t,i,r))}}he.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];he.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];he.Y_FROM_LINRGB=[.2126,.7152,.0722];he.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/** * @license * Copyright 2021 Google LLC * @@ -306,7 +306,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Ft{static from(t,i,r){return new Ft(fe.solveToInt(t,i,r))}static fromInt(t){return new Ft(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(fe.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(fe.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(fe.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const i=Vt.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=$f(t),this.argb=t}setInternalState(t){const i=Vt.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=$f(t),this.argb=t}inViewingConditions(t){const r=Vt.fromInt(this.toInt()).xyzInViewingConditions(t),n=Vt.fromXyzInViewingConditions(r[0],r[1],r[2],_r.make());return Ft.from(n.hue,n.chroma,Pf(r[1]))}}/** + */class Ft{static from(t,i,r){return new Ft(he.solveToInt(t,i,r))}static fromInt(t){return new Ft(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(he.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(he.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(he.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const i=Vt.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=$f(t),this.argb=t}setInternalState(t){const i=Vt.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=$f(t),this.argb=t}inViewingConditions(t){const r=Vt.fromInt(this.toInt()).xyzInViewingConditions(t),n=Vt.fromXyzInViewingConditions(r[0],r[1],r[2],_r.make());return Ft.from(n.hue,n.chroma,Pf(r[1]))}}/** * @license * Copyright 2021 Google LLC * @@ -336,7 +336,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Dt{static ratioOfTones(t,i){return t=yd(0,100,t),i=yd(0,100,i),Dt.ratioOfYs(Nn(t),Nn(i))}static ratioOfYs(t,i){const r=t>i?t:i,n=r===i?t:i;return(r+5)/(n+5)}static lighter(t,i){if(t<0||t>100)return-1;const r=Nn(t),n=i*(r+5)-5,s=Dt.ratioOfYs(n,r),o=Math.abs(s-i);if(s.04)return-1;const a=Pf(n)+.4;return a<0||a>100?-1:a}static darker(t,i){if(t<0||t>100)return-1;const r=Nn(t),n=(r+5)/i-5,s=Dt.ratioOfYs(r,n),o=Math.abs(s-i);if(s.04)return-1;const a=Pf(n)-.4;return a<0||a>100?-1:a}static lighterUnsafe(t,i){const r=Dt.lighter(t,i);return r<0?100:r}static darkerUnsafe(t,i){const r=Dt.darker(t,i);return r<0?0:r}}/** + */class Dt{static ratioOfTones(t,i){return t=yd(0,100,t),i=yd(0,100,i),Dt.ratioOfYs(Rn(t),Rn(i))}static ratioOfYs(t,i){const r=t>i?t:i,n=r===i?t:i;return(r+5)/(n+5)}static lighter(t,i){if(t<0||t>100)return-1;const r=Rn(t),n=i*(r+5)-5,s=Dt.ratioOfYs(n,r),o=Math.abs(s-i);if(s.04)return-1;const a=Pf(n)+.4;return a<0||a>100?-1:a}static darker(t,i){if(t<0||t>100)return-1;const r=Rn(t),n=(r+5)/i-5,s=Dt.ratioOfYs(r,n),o=Math.abs(s-i);if(s.04)return-1;const a=Pf(n)-.4;return a<0||a>100?-1:a}static lighterUnsafe(t,i){const r=Dt.lighter(t,i);return r<0?100:r}static darkerUnsafe(t,i){const r=Dt.darker(t,i);return r<0?0:r}}/** * @license * Copyright 2023 Google LLC * @@ -486,7 +486,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function h5(e){e=e.replace("#","");const t=e.length===3,i=e.length===6,r=e.length===8;if(!t&&!i&&!r)throw new Error("unexpected hex "+e);let n=0,s=0,o=0;return t?(n=Kr(e.slice(0,1).repeat(2)),s=Kr(e.slice(1,2).repeat(2)),o=Kr(e.slice(2,3).repeat(2))):i?(n=Kr(e.slice(0,2)),s=Kr(e.slice(2,4)),o=Kr(e.slice(4,6))):r&&(n=Kr(e.slice(2,4)),s=Kr(e.slice(4,6)),o=Kr(e.slice(6,8))),(255<<24|(n&255)<<16|(s&255)<<8|o&255)>>>0}function Kr(e){return parseInt(e,16)}/** + */function u5(e){e=e.replace("#","");const t=e.length===3,i=e.length===6,r=e.length===8;if(!t&&!i&&!r)throw new Error("unexpected hex "+e);let n=0,s=0,o=0;return t?(n=Kr(e.slice(0,1).repeat(2)),s=Kr(e.slice(1,2).repeat(2)),o=Kr(e.slice(2,3).repeat(2))):i?(n=Kr(e.slice(0,2)),s=Kr(e.slice(2,4)),o=Kr(e.slice(4,6))):r&&(n=Kr(e.slice(2,4)),s=Kr(e.slice(4,6)),o=Kr(e.slice(6,8))),(255<<24|(n&255)<<16|(s&255)<<8|o&255)>>>0}function Kr(e){return parseInt(e,16)}/** * @license * Copyright 2021 Google LLC * @@ -501,7 +501,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Qk(e,t){let i=t.value;const r=i,n=e;t.blend&&(i=O0.harmonize(r,n));const o=jt.of(i).a1;return{color:t,value:i,light:{color:o.tone(40),onColor:o.tone(100),colorContainer:o.tone(90),onColorContainer:o.tone(10)},dark:{color:o.tone(80),onColor:o.tone(20),colorContainer:o.tone(30),onColorContainer:o.tone(90)}}}const Jk=["light","dark"],f5="mdui-custom-color-scheme-";let eC=0;const tC=e=>{const t=l5(e),i=c5(e),r=d5(e);return[t,i,r].join(", ")},iC=e=>{const t=M(e);let i=t.get().map(n=>Array.from(n.classList)).flat();i=na(i).filter(n=>n.startsWith(f5)),t.removeClass(i.join(" "));const r=i.filter(n=>M(`.${n}`).length===0);M(r.map(n=>`#${n}`).join(",")).remove()},rC=(e,t)=>{const i=wi(),r=M(i.documentElement),n={light:Zr.light(e).toJSON(),dark:Zr.dark(e).toJSON()},s=jt.of(e);Object.assign(n.light,{"surface-dim":s.n1.tone(87),"surface-bright":s.n1.tone(98),"surface-container-lowest":s.n1.tone(100),"surface-container-low":s.n1.tone(96),"surface-container":s.n1.tone(94),"surface-container-high":s.n1.tone(92),"surface-container-highest":s.n1.tone(90),"surface-tint-color":n.light.primary}),Object.assign(n.dark,{"surface-dim":s.n1.tone(6),"surface-bright":s.n1.tone(24),"surface-container-lowest":s.n1.tone(4),"surface-container-low":s.n1.tone(10),"surface-container":s.n1.tone(12),"surface-container-high":s.n1.tone(17),"surface-container-highest":s.n1.tone(22),"surface-tint-color":n.dark.primary}),[].map(c=>{const d=ul(c.name),u=Qk(e,{name:d,value:h5(c.value),blend:!0});Jk.forEach(h=>{n[h][d]=u[h].color,n[h][`on-${d}`]=u[h].onColor,n[h][`${d}-container`]=u[h].colorContainer,n[h][`on-${d}-container`]=u[h].onColorContainer})});const o=(c,d)=>Object.entries(n[c]).map(([u,h])=>d(ul(u),tC(h))).join(""),a=f5+`${e}-${eC++}`,l=`.${a} { + */function Qk(e,t){let i=t.value;const r=i,n=e;t.blend&&(i=O0.harmonize(r,n));const o=jt.of(i).a1;return{color:t,value:i,light:{color:o.tone(40),onColor:o.tone(100),colorContainer:o.tone(90),onColorContainer:o.tone(10)},dark:{color:o.tone(80),onColor:o.tone(20),colorContainer:o.tone(30),onColorContainer:o.tone(90)}}}const Jk=["light","dark"],h5="mdui-custom-color-scheme-";let eC=0;const tC=e=>{const t=a5(e),i=l5(e),r=c5(e);return[t,i,r].join(", ")},iC=e=>{const t=B(e);let i=t.get().map(n=>Array.from(n.classList)).flat();i=na(i).filter(n=>n.startsWith(h5)),t.removeClass(i.join(" "));const r=i.filter(n=>B(`.${n}`).length===0);B(r.map(n=>`#${n}`).join(",")).remove()},rC=(e,t)=>{const i=wi(),r=B(i.documentElement),n={light:Zr.light(e).toJSON(),dark:Zr.dark(e).toJSON()},s=jt.of(e);Object.assign(n.light,{"surface-dim":s.n1.tone(87),"surface-bright":s.n1.tone(98),"surface-container-lowest":s.n1.tone(100),"surface-container-low":s.n1.tone(96),"surface-container":s.n1.tone(94),"surface-container-high":s.n1.tone(92),"surface-container-highest":s.n1.tone(90),"surface-tint-color":n.light.primary}),Object.assign(n.dark,{"surface-dim":s.n1.tone(6),"surface-bright":s.n1.tone(24),"surface-container-lowest":s.n1.tone(4),"surface-container-low":s.n1.tone(10),"surface-container":s.n1.tone(12),"surface-container-high":s.n1.tone(17),"surface-container-highest":s.n1.tone(22),"surface-tint-color":n.dark.primary}),[].map(c=>{const d=ul(c.name),u=Qk(e,{name:d,value:u5(c.value),blend:!0});Jk.forEach(h=>{n[h][d]=u[h].color,n[h][`on-${d}`]=u[h].onColor,n[h][`${d}-container`]=u[h].colorContainer,n[h][`on-${d}-container`]=u[h].onColorContainer})});const o=(c,d)=>Object.entries(n[c]).map(([u,h])=>d(ul(u),tC(h))).join(""),a=h5+`${e}-${eC++}`,l=`.${a} { ${o("light",(c,d)=>`--mdui-color-${c}-light: ${d};`)} ${o("dark",(c,d)=>`--mdui-color-${c}-dark: ${d};`)} ${o("light",c=>`--mdui-color-${c}: var(--mdui-color-${c}-light);`)} @@ -520,7 +520,7 @@ .mdui-theme-auto.${a} { ${o("dark",c=>`--mdui-color-${c}: var(--mdui-color-${c}-dark);`)} } -}`;iC(r),M(i.head).append(``),r.addClass(a)},nC=(e,t)=>{const i=h5(e);rC(i)},U1="mdui.functions.snackbar.";let gc;const Sr=e=>{const t=new Bi,i=M(t);return Object.entries(e).forEach(([r,n])=>{if(r==="message")t.innerHTML=n;else if(["onClick","onActionClick","onOpen","onOpened","onClose","onClosed"].includes(r)){const s=ul(r.slice(2));i.on(s,()=>{if(r==="onActionClick"){const o=(e.onActionClick??f_).call(t,t);Bk(o)?(t.actionLoading=!0,o.then(()=>{t.open=!1}).finally(()=>{t.actionLoading=!1})):o!==!1&&(t.open=!1)}else n.call(t,t)})}else t[r]=n}),i.appendTo("body").on("closed",()=>{i.remove(),e.queue&&(gc=void 0,Mk(U1+e.queue))}),e.queue?gc?Ok(U1+e.queue,()=>{t.open=!0,gc=t}):(setTimeout(()=>{t.open=!0}),gc=t):setTimeout(()=>{t.open=!0}),t};let Df=class extends ht{render(){return ei('')}};Df.styles=Jt;Df=v([se("mdui-icon-menu")],Df);const sC=["id"],oC=ve("div",{class:"ImScrollBarThumb"},null,-1),aC=[oC],lC={__name:"ImScrollBar",props:{ContainerId:String,ContentContainerId:String,Direction:String,Length:String,Width:String,PBottom:String,PRight:String,PMarginOne:String,PMarginTwo:String,Id:String},setup(e){const t=e;var i=dt(!1),r=dt(!1),n=dt(!1);function s(o){if(i.value){document.getElementById(t.Id).style.opacity="0";return}o.type=="mouseover"||n.value?(document.getElementById(t.Id).style.opacity="0.701",r.value=!0):(o.type=="mouseout"||!n.value)&&(document.getElementById(t.Id).style.opacity="0.4",setTimeout(function(){document.getElementById(t.Id).style.opacity!="0.701"&&(document.getElementById(t.Id).style.opacity="0",r.value=!1)},1e3))}return zp(()=>{}),hn(()=>{var o=document.getElementById(t.Id),a=document.getElementById(t.ContentContainerId),l=document.getElementById(t.ContainerId);t.Direction=="Left"?(o.style.float="left",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):t.Direction=="Right"?(o.style.float="right",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):(t.Direction=="Top"||t.Direction=="Bottom")&&(o.style.float="left",o.style.width=t.Length,o.style.height=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginLeft=t.PMarginOne,o.style.marginRight=t.PMarginTwo);const c=dt("0%");var d;const u=new ResizeObserver(E=>{E.forEach(A=>{const S=A.target;if(S.id==t.ContentContainerId){const U=l;var x=S.scrollHeight,k=S.scrollWidth,T=U.clientHeight,N=U.clientWidth}if(S.id==t.ContainerId){const U=a;var x=U.scrollHeight,k=U.scrollWidth,T=S.clientHeight,N=S.clientWidth}var I,P;t.Direction=="Left"||t.Direction=="Right"?(I=x,P=T):(t.Direction=="Top"||t.Direction=="Bottom")&&(I=k,P=N),I<=P?i.value=!0:i.value=!1;var B=P/I*100;if(I>P){var O=o.childNodes[0],H;t.Direction=="Left"||t.Direction=="Right"?(O.style.width="100%",O.style.height=B.toString()+"%",H=l.scrollTop/a.scrollHeight*100,O.style.top=H.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(O.style.width=B.toString()+"%",O.style.height="100%",H=l.scrollLeft/a.scrollWidth*100,O.style.left=H.toString()+"%"),c.value=H,t.Direction=="Left"||t.Direction=="Right"?d=o.offsetHeight-O.offsetHeight:(t.Direction=="Top"||t.Direction=="Bottom")&&(d=o.offsetWidth-O.offsetWidth)}})});u.observe(l),u.observe(a);var h=o.childNodes[0],f,m,b=!0,w,_,g;function p(){function E(S){b||(S.preventDefault(),n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?w=S.clientY-f+m:(t.Direction=="Top"||t.Direction=="Bottom")&&(w=S.clientX-f+m),w>=d&&(w=d),w<=0&&(w=0),t.Direction=="Left"||t.Direction=="Right"?(h.style.top=w+"px",_=w/o.offsetHeight,g=a.scrollHeight*_,l.scrollTop=g):(t.Direction=="Top"||t.Direction=="Bottom")&&(h.style.left=w+"px",_=w/o.offsetWidth,g=a.scrollWidth*_,l.scrollLeft=g))}function A(S){n.value=!1,s({type:"null"}),document.removeEventListener("mousemove",E),b=!0}document.addEventListener("mouseup",A,{once:!0}),document.addEventListener("mousemove",E)}h.addEventListener("mousedown",function(E){t.Direction=="Left"?(f=E.clientY,m=this.offsetTop):t.Direction=="Right"?(f=E.clientY,m=this.offsetTop):t.Direction=="Top"?(f=E.clientX,m=this.offsetLeft):t.Direction=="Bottom"&&(f=E.clientX,m=this.offsetLeft),b=!1,p()});var y=null;function C(E){var A;n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?(A=l.scrollTop/a.scrollHeight*100,h.style.top=A.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(A=l.scrollLeft/a.scrollWidth*100,h.style.left=A.toString()+"%"),b&&(clearTimeout(y),y=setTimeout(function(){n.value=!1,s({type:"null"})},200))}l.addEventListener("scroll",C)}),(o,a)=>(vi(),Pr("div",{class:"ImScrollBarTrack",id:t.Id,onMouseover:s,onMouseout:s},aC,40,sC))}},cC=["id"],dC=["name"],ka={__name:"MdCard",props:{id:String,icon:String,Background:String,TextColor:String,Width:String,Height:String,Other:Object},setup(e){const t=e,i=dt({});return i.value={background:t.Background,width:t.Width,height:t.Height,...t.Other},(r,n)=>(vi(),Pr("mdui-card",{id:e.id,class:"baseCard",variant:"filled",style:Os(i.value)},[t.icon?(vi(),Pr("mdui-icon",{key:0,class:"cardIcon",name:t.icon,style:{"font-size":"140px"}},null,8,dC)):as("",!0),ve("div",{class:"cardContent",style:Os({color:t.TextColor,"z-index":5})},[k2(r.$slots,"default")],4)],12,cC))}};let Lf=class extends ht{render(){return ei('')}};Lf.styles=Jt;Lf=v([se("mdui-icon-autorenew--rounded")],Lf);let Bf=class extends ht{render(){return ei('')}};Bf.styles=Jt;Bf=v([se("mdui-icon-do-not-disturb-alt--rounded")],Bf);let Of=class extends ht{render(){return ei('')}};Of.styles=Jt;Of=v([se("mdui-icon-explore")],Of);let Mf=class extends ht{render(){return ei('')}};Mf.styles=Jt;Mf=v([se("mdui-icon-done--rounded")],Mf);var uC=Object.defineProperty,p5=e=>{throw TypeError(e)},hC=(e,t,i)=>t in e?uC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ql=(e,t,i)=>hC(e,typeof t!="symbol"?t+"":t,i),m5=(e,t,i)=>t.has(e)||p5("Cannot "+i),fi=(e,t,i)=>(m5(e,t,"read from private field"),i?i.call(e):t.get(e)),$u=(e,t,i)=>t.has(e)?p5("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),gr=(e,t,i,r)=>(m5(e,t,"write to private field"),t.set(e,i),i),ss,Ca,_t;const g5="3.7.7",fC=g5,aa=typeof Buffer=="function",K1=typeof TextDecoder=="function"?new TextDecoder:void 0,W1=typeof TextEncoder=="function"?new TextEncoder:void 0,pC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Aa=Array.prototype.slice.call(pC),vc=(e=>{let t={};return e.forEach((i,r)=>t[i]=r),t})(Aa),mC=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Yt=String.fromCharCode.bind(String),q1=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),v5=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),y5=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),b5=e=>{let t,i,r,n,s="";const o=e.length%3;for(let a=0;a255||(r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=i<<16|r<<8|n,s+=Aa[t>>18&63]+Aa[t>>12&63]+Aa[t>>6&63]+Aa[t&63]}return o?s.slice(0,o-3)+"===".substring(o):s},F0=typeof btoa=="function"?e=>btoa(e):aa?e=>Buffer.from(e,"binary").toString("base64"):b5,Vf=aa?e=>Buffer.from(e).toString("base64"):e=>{let i=[];for(let r=0,n=e.length;rt?v5(Vf(e)):Vf(e),gC=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Yt(192|t>>>6)+Yt(128|t&63):Yt(224|t>>>12&15)+Yt(128|t>>>6&63)+Yt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Yt(240|t>>>18&7)+Yt(128|t>>>12&63)+Yt(128|t>>>6&63)+Yt(128|t&63)}},vC=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w5=e=>e.replace(vC,gC),j1=aa?e=>Buffer.from(e,"utf8").toString("base64"):W1?e=>Vf(W1.encode(e)):e=>F0(w5(e)),$o=(e,t=!1)=>t?v5(j1(e)):j1(e),Y1=e=>$o(e,!0),yC=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,bC=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return Yt((i>>>10)+55296)+Yt((i&1023)+56320);case 3:return Yt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Yt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},_5=e=>e.replace(yC,bC),k5=e=>{if(e=e.replace(/\s+/g,""),!mC.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,i="",r,n;for(let s=0;s>16&255):n===64?Yt(t>>16&255,t>>8&255):Yt(t>>16&255,t>>8&255,t&255);return i},z0=typeof atob=="function"?e=>atob(y5(e)):aa?e=>Buffer.from(e,"base64").toString("binary"):k5,C5=aa?e=>q1(Buffer.from(e,"base64")):e=>q1(z0(e).split("").map(t=>t.charCodeAt(0))),A5=e=>C5(E5(e)),wC=aa?e=>Buffer.from(e,"base64").toString("utf8"):K1?e=>K1.decode(C5(e)):e=>_5(z0(e)),E5=e=>y5(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Ff=e=>wC(E5(e)),_C=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},x5=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),S5=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,x5(i));e("fromBase64",function(){return Ff(this)}),e("toBase64",function(t){return $o(this,t)}),e("toBase64URI",function(){return $o(this,!0)}),e("toBase64URL",function(){return $o(this,!0)}),e("toUint8Array",function(){return A5(this)})},T5=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,x5(i));e("toBase64",function(t){return Oc(this,t)}),e("toBase64URI",function(){return Oc(this,!0)}),e("toBase64URL",function(){return Oc(this,!0)})},kC=()=>{S5(),T5()},pr={version:g5,VERSION:fC,atob:z0,atobPolyfill:k5,btoa:F0,btoaPolyfill:b5,fromBase64:Ff,toBase64:$o,encode:$o,encodeURI:Y1,encodeURL:Y1,utob:w5,btou:_5,decode:Ff,isValid:_C,fromUint8Array:Oc,toUint8Array:A5,extendString:S5,extendUint8Array:T5,extendBuiltins:kC};var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function R5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function CC(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),i}var N5={exports:{}};function AC(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pu={exports:{}};const EC={},xC=Object.freeze(Object.defineProperty({__proto__:null,default:EC},Symbol.toStringTag,{value:"Module"})),SC=CC(xC);var X1;function Pe(){return X1||(X1=1,function(e,t){(function(i,r){e.exports=r()})(Te,function(){var i=i||function(r,n){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof Te<"u"&&Te.crypto&&(s=Te.crypto),!s&&typeof AC=="function")try{s=SC}catch{}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function g(){}return function(p){var y;return g.prototype=p,y=new g,g.prototype=null,y}}(),l={},c=l.lib={},d=c.Base=function(){return{extend:function(g){var p=a(this);return g&&p.mixIn(g),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var p in g)g.hasOwnProperty(p)&&(this[p]=g[p]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=d.extend({init:function(g,p){g=this.words=g||[],p!=n?this.sigBytes=p:this.sigBytes=g.length*4},toString:function(g){return(g||f).stringify(this)},concat:function(g){var p=this.words,y=g.words,C=this.sigBytes,E=g.sigBytes;if(this.clamp(),C%4)for(var A=0;A>>2]>>>24-A%4*8&255;p[C+A>>>2]|=S<<24-(C+A)%4*8}else for(var x=0;x>>2]=y[x>>>2];return this.sigBytes+=E,this},clamp:function(){var g=this.words,p=this.sigBytes;g[p>>>2]&=4294967295<<32-p%4*8,g.length=r.ceil(p/4)},clone:function(){var g=d.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var p=[],y=0;y>>2]>>>24-E%4*8&255;C.push((A>>>4).toString(16)),C.push((A&15).toString(16))}return C.join("")},parse:function(g){for(var p=g.length,y=[],C=0;C>>3]|=parseInt(g.substr(C,2),16)<<24-C%8*4;return new u.init(y,p/2)}},m=h.Latin1={stringify:function(g){for(var p=g.words,y=g.sigBytes,C=[],E=0;E>>2]>>>24-E%4*8&255;C.push(String.fromCharCode(A))}return C.join("")},parse:function(g){for(var p=g.length,y=[],C=0;C>>2]|=(g.charCodeAt(C)&255)<<24-C%4*8;return new u.init(y,p)}},b=h.Utf8={stringify:function(g){try{return decodeURIComponent(escape(m.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return m.parse(unescape(encodeURIComponent(g)))}},w=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=b.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var p,y=this._data,C=y.words,E=y.sigBytes,A=this.blockSize,S=A*4,x=E/S;g?x=r.ceil(x):x=r.max((x|0)-this._minBufferSize,0);var k=x*A,T=r.min(k*4,E);if(k){for(var N=0;N>>2]|=l[u]<<24-u%4*8;o.call(this,d,c)}else o.apply(this,arguments)};a.prototype=s}}(),i.lib.WordArray})}(Lu)),Lu.exports}var Bu={exports:{}},Q1;function RC(){return Q1||(Q1=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535;u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=l.charCodeAt(u)<<16-u%2*16;return s.create(d,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535);u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=a(l.charCodeAt(u)<<16-u%2*16);return s.create(d,c*2)}};function a(l){return l<<8&4278255360|l>>>8&16711935}}(),i.enc.Utf16})}(Bu)),Bu.exports}var Ou={exports:{}},J1;function io(){return J1||(J1=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,d=l.sigBytes,u=this._map;l.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,b=c[f+1>>>2]>>>24-(f+1)%4*8&255,w=c[f+2>>>2]>>>24-(f+2)%4*8&255,_=m<<16|b<<8|w,g=0;g<4&&f+g*.75>>6*(3-g)&63));var p=u.charAt(64);if(p)for(;h.length%4;)h.push(p);return h.join("")},parse:function(l){var c=l.length,d=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h>>6-f%4*2,w=m|b;u[h>>>2]|=w<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64})}(Ou)),Ou.exports}var Mu={exports:{}},eg;function NC(){return eg||(eg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var d=l.words,u=l.sigBytes,h=c?this._safe_map:this._map;l.clamp();for(var f=[],m=0;m>>2]>>>24-m%4*8&255,w=d[m+1>>>2]>>>24-(m+1)%4*8&255,_=d[m+2>>>2]>>>24-(m+2)%4*8&255,g=b<<16|w<<8|_,p=0;p<4&&m+p*.75>>6*(3-p)&63));var y=h.charAt(64);if(y)for(;f.length%4;)f.push(y);return f.join("")},parse:function(l,c){c===void 0&&(c=!0);var d=l.length,u=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var f=0;f>>6-f%4*2,w=m|b;u[h>>>2]|=w<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64url})}(Mu)),Mu.exports}var Vu={exports:{}},tg;function ro(){return tg||(tg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[];(function(){for(var b=0;b<64;b++)c[b]=r.abs(r.sin(b+1))*4294967296|0})();var d=l.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,w){for(var _=0;_<16;_++){var g=w+_,p=b[g];b[g]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,C=b[w+0],E=b[w+1],A=b[w+2],S=b[w+3],x=b[w+4],k=b[w+5],T=b[w+6],N=b[w+7],I=b[w+8],P=b[w+9],B=b[w+10],O=b[w+11],H=b[w+12],U=b[w+13],oe=b[w+14],ye=b[w+15],F=y[0],W=y[1],Z=y[2],K=y[3];F=u(F,W,Z,K,C,7,c[0]),K=u(K,F,W,Z,E,12,c[1]),Z=u(Z,K,F,W,A,17,c[2]),W=u(W,Z,K,F,S,22,c[3]),F=u(F,W,Z,K,x,7,c[4]),K=u(K,F,W,Z,k,12,c[5]),Z=u(Z,K,F,W,T,17,c[6]),W=u(W,Z,K,F,N,22,c[7]),F=u(F,W,Z,K,I,7,c[8]),K=u(K,F,W,Z,P,12,c[9]),Z=u(Z,K,F,W,B,17,c[10]),W=u(W,Z,K,F,O,22,c[11]),F=u(F,W,Z,K,H,7,c[12]),K=u(K,F,W,Z,U,12,c[13]),Z=u(Z,K,F,W,oe,17,c[14]),W=u(W,Z,K,F,ye,22,c[15]),F=h(F,W,Z,K,E,5,c[16]),K=h(K,F,W,Z,T,9,c[17]),Z=h(Z,K,F,W,O,14,c[18]),W=h(W,Z,K,F,C,20,c[19]),F=h(F,W,Z,K,k,5,c[20]),K=h(K,F,W,Z,B,9,c[21]),Z=h(Z,K,F,W,ye,14,c[22]),W=h(W,Z,K,F,x,20,c[23]),F=h(F,W,Z,K,P,5,c[24]),K=h(K,F,W,Z,oe,9,c[25]),Z=h(Z,K,F,W,S,14,c[26]),W=h(W,Z,K,F,I,20,c[27]),F=h(F,W,Z,K,U,5,c[28]),K=h(K,F,W,Z,A,9,c[29]),Z=h(Z,K,F,W,N,14,c[30]),W=h(W,Z,K,F,H,20,c[31]),F=f(F,W,Z,K,k,4,c[32]),K=f(K,F,W,Z,I,11,c[33]),Z=f(Z,K,F,W,O,16,c[34]),W=f(W,Z,K,F,oe,23,c[35]),F=f(F,W,Z,K,E,4,c[36]),K=f(K,F,W,Z,x,11,c[37]),Z=f(Z,K,F,W,N,16,c[38]),W=f(W,Z,K,F,B,23,c[39]),F=f(F,W,Z,K,U,4,c[40]),K=f(K,F,W,Z,C,11,c[41]),Z=f(Z,K,F,W,S,16,c[42]),W=f(W,Z,K,F,T,23,c[43]),F=f(F,W,Z,K,P,4,c[44]),K=f(K,F,W,Z,H,11,c[45]),Z=f(Z,K,F,W,ye,16,c[46]),W=f(W,Z,K,F,A,23,c[47]),F=m(F,W,Z,K,C,6,c[48]),K=m(K,F,W,Z,N,10,c[49]),Z=m(Z,K,F,W,oe,15,c[50]),W=m(W,Z,K,F,k,21,c[51]),F=m(F,W,Z,K,H,6,c[52]),K=m(K,F,W,Z,S,10,c[53]),Z=m(Z,K,F,W,B,15,c[54]),W=m(W,Z,K,F,E,21,c[55]),F=m(F,W,Z,K,I,6,c[56]),K=m(K,F,W,Z,ye,10,c[57]),Z=m(Z,K,F,W,T,15,c[58]),W=m(W,Z,K,F,U,21,c[59]),F=m(F,W,Z,K,x,6,c[60]),K=m(K,F,W,Z,O,10,c[61]),Z=m(Z,K,F,W,A,15,c[62]),W=m(W,Z,K,F,P,21,c[63]),y[0]=y[0]+F|0,y[1]=y[1]+W|0,y[2]=y[2]+Z|0,y[3]=y[3]+K|0},_doFinalize:function(){var b=this._data,w=b.words,_=this._nDataBytes*8,g=b.sigBytes*8;w[g>>>5]|=128<<24-g%32;var p=r.floor(_/4294967296),y=_;w[(g+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,w[(g+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b.sigBytes=(w.length+1)*4,this._process();for(var C=this._hash,E=C.words,A=0;A<4;A++){var S=E[A];E[A]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return C},clone:function(){var b=a.clone.call(this);return b._hash=this._hash.clone(),b}});function u(b,w,_,g,p,y,C){var E=b+(w&_|~w&g)+p+C;return(E<>>32-y)+w}function h(b,w,_,g,p,y,C){var E=b+(w&g|_&~g)+p+C;return(E<>>32-y)+w}function f(b,w,_,g,p,y,C){var E=b+(w^_^g)+p+C;return(E<>>32-y)+w}function m(b,w,_,g,p,y,C){var E=b+(_^(w|~g))+p+C;return(E<>>32-y)+w}n.MD5=a._createHelper(d),n.HmacMD5=a._createHmacHelper(d)}(Math),i.MD5})}(Vu)),Vu.exports}var Fu={exports:{}},ig;function I5(){return ig||(ig=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.Hasher,a=r.algo,l=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,u){for(var h=this._hash.words,f=h[0],m=h[1],b=h[2],w=h[3],_=h[4],g=0;g<80;g++){if(g<16)l[g]=d[u+g]|0;else{var p=l[g-3]^l[g-8]^l[g-14]^l[g-16];l[g]=p<<1|p>>>31}var y=(f<<5|f>>>27)+_+l[g];g<20?y+=(m&b|~m&w)+1518500249:g<40?y+=(m^b^w)+1859775393:g<60?y+=(m&b|m&w|b&w)-1894007588:y+=(m^b^w)-899497514,_=w,w=b,b=m<<30|m>>>2,m=f,f=y}h[0]=h[0]+f|0,h[1]=h[1]+m|0,h[2]=h[2]+b|0,h[3]=h[3]+w|0,h[4]=h[4]+_|0},_doFinalize:function(){var d=this._data,u=d.words,h=this._nDataBytes*8,f=d.sigBytes*8;return u[f>>>5]|=128<<24-f%32,u[(f+64>>>9<<4)+14]=Math.floor(h/4294967296),u[(f+64>>>9<<4)+15]=h,d.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var d=o.clone.call(this);return d._hash=this._hash.clone(),d}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),i.SHA1})}(Fu)),Fu.exports}var zu={exports:{}},rg;function H0(){return rg||(rg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[],d=[];(function(){function f(_){for(var g=r.sqrt(_),p=2;p<=g;p++)if(!(_%p))return!1;return!0}function m(_){return(_-(_|0))*4294967296|0}for(var b=2,w=0;w<64;)f(b)&&(w<8&&(c[w]=m(r.pow(b,1/2))),d[w]=m(r.pow(b,1/3)),w++),b++})();var u=[],h=l.SHA256=a.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(f,m){for(var b=this._hash.words,w=b[0],_=b[1],g=b[2],p=b[3],y=b[4],C=b[5],E=b[6],A=b[7],S=0;S<64;S++){if(S<16)u[S]=f[m+S]|0;else{var x=u[S-15],k=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,T=u[S-2],N=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;u[S]=k+u[S-7]+N+u[S-16]}var I=y&C^~y&E,P=w&_^w&g^_&g,B=(w<<30|w>>>2)^(w<<19|w>>>13)^(w<<10|w>>>22),O=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),H=A+O+I+d[S]+u[S],U=B+P;A=E,E=C,C=y,y=p+H|0,p=g,g=_,_=w,w=H+U|0}b[0]=b[0]+w|0,b[1]=b[1]+_|0,b[2]=b[2]+g|0,b[3]=b[3]+p|0,b[4]=b[4]+y|0,b[5]=b[5]+C|0,b[6]=b[6]+E|0,b[7]=b[7]+A|0},_doFinalize:function(){var f=this._data,m=f.words,b=this._nDataBytes*8,w=f.sigBytes*8;return m[w>>>5]|=128<<24-w%32,m[(w+64>>>9<<4)+14]=r.floor(b/4294967296),m[(w+64>>>9<<4)+15]=b,f.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var f=a.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA256=a._createHelper(h),n.HmacSHA256=a._createHmacHelper(h)}(Math),i.SHA256})}(zu)),zu.exports}var Hu={exports:{}},ng;function IC(){return ng||(ng=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),H0())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.algo,a=o.SHA256,l=o.SHA224=a.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=a._createHelper(l),r.HmacSHA224=a._createHmacHelper(l)}(),i.SHA224})}(Hu)),Hu.exports}var Uu={exports:{}},sg;function $5(){return sg||(sg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),ru())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.Hasher,o=r.x64,a=o.Word,l=o.WordArray,c=r.algo;function d(){return a.create.apply(a,arguments)}var u=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],h=[];(function(){for(var m=0;m<80;m++)h[m]=d()})();var f=c.SHA512=s.extend({_doReset:function(){this._hash=new l.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(m,b){for(var w=this._hash.words,_=w[0],g=w[1],p=w[2],y=w[3],C=w[4],E=w[5],A=w[6],S=w[7],x=_.high,k=_.low,T=g.high,N=g.low,I=p.high,P=p.low,B=y.high,O=y.low,H=C.high,U=C.low,oe=E.high,ye=E.low,F=A.high,W=A.low,Z=S.high,K=S.low,De=x,xe=k,pt=T,we=N,xr=I,ui=P,Jn=B,Hr=O,$=H,L=U,z=oe,j=ye,X=F,J=W,ee=Z,Q=K,G=0;G<80;G++){var q,te,ce=h[G];if(G<16)te=ce.high=m[b+G*2]|0,q=ce.low=m[b+G*2+1]|0;else{var le=h[G-15],pe=le.high,ke=le.low,Ge=(pe>>>1|ke<<31)^(pe>>>8|ke<<24)^pe>>>7,Me=(ke>>>1|pe<<31)^(ke>>>8|pe<<24)^(ke>>>7|pe<<25),mt=h[G-2],$t=mt.high,tr=mt.low,Gl=($t>>>19|tr<<13)^($t<<3|tr>>>29)^$t>>>6,gn=(tr>>>19|$t<<13)^(tr<<3|$t>>>29)^(tr>>>6|$t<<26),ha=h[G-7],hi=ha.high,ir=ha.low,fa=h[G-16],N4=fa.high,im=fa.low;q=Me+ir,te=Ge+hi+(q>>>0>>0?1:0),q=q+gn,te=te+Gl+(q>>>0>>0?1:0),q=q+im,te=te+N4+(q>>>0>>0?1:0),ce.high=te,ce.low=q}var I4=$&z^~$&X,rm=L&j^~L&J,$4=De&pt^De&xr^pt&xr,P4=xe&we^xe&ui^we&ui,D4=(De>>>28|xe<<4)^(De<<30|xe>>>2)^(De<<25|xe>>>7),nm=(xe>>>28|De<<4)^(xe<<30|De>>>2)^(xe<<25|De>>>7),L4=($>>>14|L<<18)^($>>>18|L<<14)^($<<23|L>>>9),B4=(L>>>14|$<<18)^(L>>>18|$<<14)^(L<<23|$>>>9),sm=u[G],O4=sm.high,om=sm.low,Fi=Q+B4,vn=ee+L4+(Fi>>>0>>0?1:0),Fi=Fi+rm,vn=vn+I4+(Fi>>>0>>0?1:0),Fi=Fi+om,vn=vn+O4+(Fi>>>0>>0?1:0),Fi=Fi+q,vn=vn+te+(Fi>>>0>>0?1:0),am=nm+P4,M4=D4+$4+(am>>>0>>0?1:0);ee=X,Q=J,X=z,J=j,z=$,j=L,L=Hr+Fi|0,$=Jn+vn+(L>>>0
>>0?1:0)|0,Jn=xr,Hr=ui,xr=pt,ui=we,pt=De,we=xe,xe=Fi+am|0,De=vn+M4+(xe>>>0>>0?1:0)|0}k=_.low=k+xe,_.high=x+De+(k>>>0>>0?1:0),N=g.low=N+we,g.high=T+pt+(N>>>0>>0?1:0),P=p.low=P+ui,p.high=I+xr+(P>>>0>>0?1:0),O=y.low=O+Hr,y.high=B+Jn+(O>>>0
>>0?1:0),U=C.low=U+L,C.high=H+$+(U>>>0>>0?1:0),ye=E.low=ye+j,E.high=oe+z+(ye>>>0>>0?1:0),W=A.low=W+J,A.high=F+X+(W>>>0>>0?1:0),K=S.low=K+Q,S.high=Z+ee+(K>>>0>>0?1:0)},_doFinalize:function(){var m=this._data,b=m.words,w=this._nDataBytes*8,_=m.sigBytes*8;b[_>>>5]|=128<<24-_%32,b[(_+128>>>10<<5)+30]=Math.floor(w/4294967296),b[(_+128>>>10<<5)+31]=w,m.sigBytes=b.length*4,this._process();var g=this._hash.toX32();return g},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});r.SHA512=s._createHelper(f),r.HmacSHA512=s._createHmacHelper(f)}(),i.SHA512})}(Uu)),Uu.exports}var Ku={exports:{}},og;function $C(){return og||(og=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),ru(),$5())})(Te,function(i){return function(){var r=i,n=r.x64,s=n.Word,o=n.WordArray,a=r.algo,l=a.SHA512,c=a.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=16,d}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),i.SHA384})}(Ku)),Ku.exports}var Wu={exports:{}},ag;function PC(){return ag||(ag=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),ru())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.x64,c=l.Word,d=n.algo,u=[],h=[],f=[];(function(){for(var w=1,_=0,g=0;g<24;g++){u[w+5*_]=(g+1)*(g+2)/2%64;var p=_%5,y=(2*w+3*_)%5;w=p,_=y}for(var w=0;w<5;w++)for(var _=0;_<5;_++)h[w+5*_]=_+(2*w+3*_)%5*5;for(var C=1,E=0;E<24;E++){for(var A=0,S=0,x=0;x<7;x++){if(C&1){var k=(1<>>24)&16711935|(C<<24|C>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360;var A=g[y];A.high^=E,A.low^=C}for(var S=0;S<24;S++){for(var x=0;x<5;x++){for(var k=0,T=0,N=0;N<5;N++){var A=g[x+5*N];k^=A.high,T^=A.low}var I=m[x];I.high=k,I.low=T}for(var x=0;x<5;x++)for(var P=m[(x+4)%5],B=m[(x+1)%5],O=B.high,H=B.low,k=P.high^(O<<1|H>>>31),T=P.low^(H<<1|O>>>31),N=0;N<5;N++){var A=g[x+5*N];A.high^=k,A.low^=T}for(var U=1;U<25;U++){var k,T,A=g[U],oe=A.high,ye=A.low,F=u[U];F<32?(k=oe<>>32-F,T=ye<>>32-F):(k=ye<>>64-F,T=oe<>>64-F);var W=m[h[U]];W.high=k,W.low=T}var Z=m[0],K=g[0];Z.high=K.high,Z.low=K.low;for(var x=0;x<5;x++)for(var N=0;N<5;N++){var U=x+5*N,A=g[U],De=m[U],xe=m[(x+1)%5+5*N],pt=m[(x+2)%5+5*N];A.high=De.high^~xe.high&pt.high,A.low=De.low^~xe.low&pt.low}var A=g[0],we=f[S];A.high^=we.high,A.low^=we.low}},_doFinalize:function(){var w=this._data,_=w.words;this._nDataBytes*8;var g=w.sigBytes*8,p=this.blockSize*32;_[g>>>5]|=1<<24-g%32,_[(r.ceil((g+1)/p)*p>>>5)-1]|=128,w.sigBytes=_.length*4,this._process();for(var y=this._state,C=this.cfg.outputLength/8,E=C/8,A=[],S=0;S>>24)&16711935|(k<<24|k>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,A.push(T),A.push(k)}return new o.init(A,C)},clone:function(){for(var w=a.clone.call(this),_=w._state=this._state.slice(0),g=0;g<25;g++)_[g]=_[g].clone();return w}});n.SHA3=a._createHelper(b),n.HmacSHA3=a._createHmacHelper(b)}(Math),i.SHA3})}(Wu)),Wu.exports}var qu={exports:{}},lg;function DC(){return lg||(lg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){/** @preserve +}`;iC(r),B(i.head).append(``),r.addClass(a)},nC=(e,t)=>{const i=u5(e);rC(i)},U1="mdui.functions.snackbar.";let gc;const Sr=e=>{const t=new Bi,i=B(t);return Object.entries(e).forEach(([r,n])=>{if(r==="message")t.innerHTML=n;else if(["onClick","onActionClick","onOpen","onOpened","onClose","onClosed"].includes(r)){const s=ul(r.slice(2));i.on(s,()=>{if(r==="onActionClick"){const o=(e.onActionClick??f_).call(t,t);Bk(o)?(t.actionLoading=!0,o.then(()=>{t.open=!1}).finally(()=>{t.actionLoading=!1})):o!==!1&&(t.open=!1)}else n.call(t,t)})}else t[r]=n}),i.appendTo("body").on("closed",()=>{i.remove(),e.queue&&(gc=void 0,Mk(U1+e.queue))}),e.queue?gc?Ok(U1+e.queue,()=>{t.open=!0,gc=t}):(setTimeout(()=>{t.open=!0}),gc=t):setTimeout(()=>{t.open=!0}),t};let Df=class extends ht{render(){return ei('')}};Df.styles=Jt;Df=v([se("mdui-icon-menu")],Df);const sC=["id"],oC=ve("div",{class:"ImScrollBarThumb"},null,-1),aC=[oC],lC={__name:"ImScrollBar",props:{ContainerId:String,ContentContainerId:String,Direction:String,Length:String,Width:String,PBottom:String,PRight:String,PMarginOne:String,PMarginTwo:String,Id:String},setup(e){const t=e;var i=dt(!1),r=dt(!1),n=dt(!1);function s(o){if(i.value){document.getElementById(t.Id).style.opacity="0";return}o.type=="mouseover"||n.value?(document.getElementById(t.Id).style.opacity="0.701",r.value=!0):(o.type=="mouseout"||!n.value)&&(document.getElementById(t.Id).style.opacity="0.4",setTimeout(function(){document.getElementById(t.Id).style.opacity!="0.701"&&(document.getElementById(t.Id).style.opacity="0",r.value=!1)},1e3))}return zp(()=>{}),hn(()=>{var o=document.getElementById(t.Id),a=document.getElementById(t.ContentContainerId),l=document.getElementById(t.ContainerId);t.Direction=="Left"?(o.style.float="left",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):t.Direction=="Right"?(o.style.float="right",o.style.height=t.Length,o.style.width=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginBottom=t.PMarginOne,o.style.marginTop=t.PMarginTwo):(t.Direction=="Top"||t.Direction=="Bottom")&&(o.style.float="left",o.style.width=t.Length,o.style.height=t.Width,o.style.bottom=t.PBottom,o.style.right=t.PRight,o.style.marginLeft=t.PMarginOne,o.style.marginRight=t.PMarginTwo);const c=dt("0%");var d;const u=new ResizeObserver(E=>{E.forEach(A=>{const x=A.target;if(x.id==t.ContentContainerId){const U=l;var S=x.scrollHeight,k=x.scrollWidth,N=U.clientHeight,I=U.clientWidth}if(x.id==t.ContainerId){const U=a;var S=U.scrollHeight,k=U.scrollWidth,N=x.clientHeight,I=x.clientWidth}var T,P;t.Direction=="Left"||t.Direction=="Right"?(T=S,P=N):(t.Direction=="Top"||t.Direction=="Bottom")&&(T=k,P=I),T<=P?i.value=!0:i.value=!1;var O=P/T*100;if(T>P){var M=o.childNodes[0],H;t.Direction=="Left"||t.Direction=="Right"?(M.style.width="100%",M.style.height=O.toString()+"%",H=l.scrollTop/a.scrollHeight*100,M.style.top=H.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(M.style.width=O.toString()+"%",M.style.height="100%",H=l.scrollLeft/a.scrollWidth*100,M.style.left=H.toString()+"%"),c.value=H,t.Direction=="Left"||t.Direction=="Right"?d=o.offsetHeight-M.offsetHeight:(t.Direction=="Top"||t.Direction=="Bottom")&&(d=o.offsetWidth-M.offsetWidth)}})});u.observe(l),u.observe(a);var h=o.childNodes[0],f,m,b=!0,w,_,g;function p(){function E(x){b||(x.preventDefault(),n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?w=x.clientY-f+m:(t.Direction=="Top"||t.Direction=="Bottom")&&(w=x.clientX-f+m),w>=d&&(w=d),w<=0&&(w=0),t.Direction=="Left"||t.Direction=="Right"?(h.style.top=w+"px",_=w/o.offsetHeight,g=a.scrollHeight*_,l.scrollTop=g):(t.Direction=="Top"||t.Direction=="Bottom")&&(h.style.left=w+"px",_=w/o.offsetWidth,g=a.scrollWidth*_,l.scrollLeft=g))}function A(x){n.value=!1,s({type:"null"}),document.removeEventListener("mousemove",E),b=!0}document.addEventListener("mouseup",A,{once:!0}),document.addEventListener("mousemove",E)}h.addEventListener("mousedown",function(E){t.Direction=="Left"?(f=E.clientY,m=this.offsetTop):t.Direction=="Right"?(f=E.clientY,m=this.offsetTop):t.Direction=="Top"?(f=E.clientX,m=this.offsetLeft):t.Direction=="Bottom"&&(f=E.clientX,m=this.offsetLeft),b=!1,p()});var y=null;function C(E){var A;n.value=!0,s({type:"null"}),t.Direction=="Left"||t.Direction=="Right"?(A=l.scrollTop/a.scrollHeight*100,h.style.top=A.toString()+"%"):(t.Direction=="Top"||t.Direction=="Bottom")&&(A=l.scrollLeft/a.scrollWidth*100,h.style.left=A.toString()+"%"),b&&(clearTimeout(y),y=setTimeout(function(){n.value=!1,s({type:"null"})},200))}l.addEventListener("scroll",C)}),(o,a)=>(vi(),Pr("div",{class:"ImScrollBarTrack",id:t.Id,onMouseover:s,onMouseout:s},aC,40,sC))}},cC=["id"],dC=["name"],ka={__name:"MdCard",props:{id:String,icon:String,Background:String,TextColor:String,Width:String,Height:String,Other:Object},setup(e){const t=e,i=dt({});return i.value={background:t.Background,width:t.Width,height:t.Height,...t.Other},(r,n)=>(vi(),Pr("mdui-card",{id:e.id,class:"baseCard",variant:"filled",style:Os(i.value)},[t.icon?(vi(),Pr("mdui-icon",{key:0,class:"cardIcon",name:t.icon,style:{"font-size":"140px"}},null,8,dC)):as("",!0),ve("div",{class:"cardContent",style:Os({color:t.TextColor,"z-index":5})},[k2(r.$slots,"default")],4)],12,cC))}};let Lf=class extends ht{render(){return ei('')}};Lf.styles=Jt;Lf=v([se("mdui-icon-autorenew--rounded")],Lf);let Bf=class extends ht{render(){return ei('')}};Bf.styles=Jt;Bf=v([se("mdui-icon-do-not-disturb-alt--rounded")],Bf);let Of=class extends ht{render(){return ei('')}};Of.styles=Jt;Of=v([se("mdui-icon-explore")],Of);let Mf=class extends ht{render(){return ei('')}};Mf.styles=Jt;Mf=v([se("mdui-icon-done--rounded")],Mf);var uC=Object.defineProperty,f5=e=>{throw TypeError(e)},hC=(e,t,i)=>t in e?uC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ql=(e,t,i)=>hC(e,typeof t!="symbol"?t+"":t,i),p5=(e,t,i)=>t.has(e)||f5("Cannot "+i),fi=(e,t,i)=>(p5(e,t,"read from private field"),i?i.call(e):t.get(e)),$u=(e,t,i)=>t.has(e)?f5("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),gr=(e,t,i,r)=>(p5(e,t,"write to private field"),t.set(e,i),i),ss,Ca,_t;const m5="3.7.7",fC=m5,aa=typeof Buffer=="function",K1=typeof TextDecoder=="function"?new TextDecoder:void 0,W1=typeof TextEncoder=="function"?new TextEncoder:void 0,pC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Aa=Array.prototype.slice.call(pC),vc=(e=>{let t={};return e.forEach((i,r)=>t[i]=r),t})(Aa),mC=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Yt=String.fromCharCode.bind(String),q1=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),g5=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),v5=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),y5=e=>{let t,i,r,n,s="";const o=e.length%3;for(let a=0;a255||(r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=i<<16|r<<8|n,s+=Aa[t>>18&63]+Aa[t>>12&63]+Aa[t>>6&63]+Aa[t&63]}return o?s.slice(0,o-3)+"===".substring(o):s},F0=typeof btoa=="function"?e=>btoa(e):aa?e=>Buffer.from(e,"binary").toString("base64"):y5,Vf=aa?e=>Buffer.from(e).toString("base64"):e=>{let i=[];for(let r=0,n=e.length;rt?g5(Vf(e)):Vf(e),gC=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Yt(192|t>>>6)+Yt(128|t&63):Yt(224|t>>>12&15)+Yt(128|t>>>6&63)+Yt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Yt(240|t>>>18&7)+Yt(128|t>>>12&63)+Yt(128|t>>>6&63)+Yt(128|t&63)}},vC=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,b5=e=>e.replace(vC,gC),j1=aa?e=>Buffer.from(e,"utf8").toString("base64"):W1?e=>Vf(W1.encode(e)):e=>F0(b5(e)),$o=(e,t=!1)=>t?g5(j1(e)):j1(e),Y1=e=>$o(e,!0),yC=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,bC=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=t-65536;return Yt((i>>>10)+55296)+Yt((i&1023)+56320);case 3:return Yt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Yt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w5=e=>e.replace(yC,bC),_5=e=>{if(e=e.replace(/\s+/g,""),!mC.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,i="",r,n;for(let s=0;s>16&255):n===64?Yt(t>>16&255,t>>8&255):Yt(t>>16&255,t>>8&255,t&255);return i},z0=typeof atob=="function"?e=>atob(v5(e)):aa?e=>Buffer.from(e,"base64").toString("binary"):_5,k5=aa?e=>q1(Buffer.from(e,"base64")):e=>q1(z0(e).split("").map(t=>t.charCodeAt(0))),C5=e=>k5(A5(e)),wC=aa?e=>Buffer.from(e,"base64").toString("utf8"):K1?e=>K1.decode(k5(e)):e=>w5(z0(e)),A5=e=>v5(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Ff=e=>wC(A5(e)),_C=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},E5=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),x5=function(){const e=(t,i)=>Object.defineProperty(String.prototype,t,E5(i));e("fromBase64",function(){return Ff(this)}),e("toBase64",function(t){return $o(this,t)}),e("toBase64URI",function(){return $o(this,!0)}),e("toBase64URL",function(){return $o(this,!0)}),e("toUint8Array",function(){return C5(this)})},S5=function(){const e=(t,i)=>Object.defineProperty(Uint8Array.prototype,t,E5(i));e("toBase64",function(t){return Oc(this,t)}),e("toBase64URI",function(){return Oc(this,!0)}),e("toBase64URL",function(){return Oc(this,!0)})},kC=()=>{x5(),S5()},pr={version:m5,VERSION:fC,atob:z0,atobPolyfill:_5,btoa:F0,btoaPolyfill:y5,fromBase64:Ff,toBase64:$o,encode:$o,encodeURI:Y1,encodeURL:Y1,utob:b5,btou:w5,decode:Ff,isValid:_C,fromUint8Array:Oc,toUint8Array:C5,extendString:x5,extendUint8Array:S5,extendBuiltins:kC};var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function T5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function CC(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),i}var N5={exports:{}};function AC(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pu={exports:{}};const EC={},xC=Object.freeze(Object.defineProperty({__proto__:null,default:EC},Symbol.toStringTag,{value:"Module"})),SC=CC(xC);var X1;function Pe(){return X1||(X1=1,function(e,t){(function(i,r){e.exports=r()})(Te,function(){var i=i||function(r,n){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof Te<"u"&&Te.crypto&&(s=Te.crypto),!s&&typeof AC=="function")try{s=SC}catch{}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function g(){}return function(p){var y;return g.prototype=p,y=new g,g.prototype=null,y}}(),l={},c=l.lib={},d=c.Base=function(){return{extend:function(g){var p=a(this);return g&&p.mixIn(g),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var p in g)g.hasOwnProperty(p)&&(this[p]=g[p]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=c.WordArray=d.extend({init:function(g,p){g=this.words=g||[],p!=n?this.sigBytes=p:this.sigBytes=g.length*4},toString:function(g){return(g||f).stringify(this)},concat:function(g){var p=this.words,y=g.words,C=this.sigBytes,E=g.sigBytes;if(this.clamp(),C%4)for(var A=0;A>>2]>>>24-A%4*8&255;p[C+A>>>2]|=x<<24-(C+A)%4*8}else for(var S=0;S>>2]=y[S>>>2];return this.sigBytes+=E,this},clamp:function(){var g=this.words,p=this.sigBytes;g[p>>>2]&=4294967295<<32-p%4*8,g.length=r.ceil(p/4)},clone:function(){var g=d.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var p=[],y=0;y>>2]>>>24-E%4*8&255;C.push((A>>>4).toString(16)),C.push((A&15).toString(16))}return C.join("")},parse:function(g){for(var p=g.length,y=[],C=0;C>>3]|=parseInt(g.substr(C,2),16)<<24-C%8*4;return new u.init(y,p/2)}},m=h.Latin1={stringify:function(g){for(var p=g.words,y=g.sigBytes,C=[],E=0;E>>2]>>>24-E%4*8&255;C.push(String.fromCharCode(A))}return C.join("")},parse:function(g){for(var p=g.length,y=[],C=0;C>>2]|=(g.charCodeAt(C)&255)<<24-C%4*8;return new u.init(y,p)}},b=h.Utf8={stringify:function(g){try{return decodeURIComponent(escape(m.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return m.parse(unescape(encodeURIComponent(g)))}},w=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=b.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var p,y=this._data,C=y.words,E=y.sigBytes,A=this.blockSize,x=A*4,S=E/x;g?S=r.ceil(S):S=r.max((S|0)-this._minBufferSize,0);var k=S*A,N=r.min(k*4,E);if(k){for(var I=0;I>>2]|=l[u]<<24-u%4*8;o.call(this,d,c)}else o.apply(this,arguments)};a.prototype=s}}(),i.lib.WordArray})}(Lu)),Lu.exports}var Bu={exports:{}},Q1;function NC(){return Q1||(Q1=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535;u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=l.charCodeAt(u)<<16-u%2*16;return s.create(d,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,d=l.sigBytes,u=[],h=0;h>>2]>>>16-h%4*8&65535);u.push(String.fromCharCode(f))}return u.join("")},parse:function(l){for(var c=l.length,d=[],u=0;u>>1]|=a(l.charCodeAt(u)<<16-u%2*16);return s.create(d,c*2)}};function a(l){return l<<8&4278255360|l>>>8&16711935}}(),i.enc.Utf16})}(Bu)),Bu.exports}var Ou={exports:{}},J1;function io(){return J1||(J1=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,d=l.sigBytes,u=this._map;l.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,b=c[f+1>>>2]>>>24-(f+1)%4*8&255,w=c[f+2>>>2]>>>24-(f+2)%4*8&255,_=m<<16|b<<8|w,g=0;g<4&&f+g*.75>>6*(3-g)&63));var p=u.charAt(64);if(p)for(;h.length%4;)h.push(p);return h.join("")},parse:function(l){var c=l.length,d=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h>>6-f%4*2,w=m|b;u[h>>>2]|=w<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64})}(Ou)),Ou.exports}var Mu={exports:{}},eg;function RC(){return eg||(eg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.enc;o.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var d=l.words,u=l.sigBytes,h=c?this._safe_map:this._map;l.clamp();for(var f=[],m=0;m>>2]>>>24-m%4*8&255,w=d[m+1>>>2]>>>24-(m+1)%4*8&255,_=d[m+2>>>2]>>>24-(m+2)%4*8&255,g=b<<16|w<<8|_,p=0;p<4&&m+p*.75>>6*(3-p)&63));var y=h.charAt(64);if(y)for(;f.length%4;)f.push(y);return f.join("")},parse:function(l,c){c===void 0&&(c=!0);var d=l.length,u=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var f=0;f>>6-f%4*2,w=m|b;u[h>>>2]|=w<<24-h%4*8,h++}return s.create(u,h)}}(),i.enc.Base64url})}(Mu)),Mu.exports}var Vu={exports:{}},tg;function ro(){return tg||(tg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[];(function(){for(var b=0;b<64;b++)c[b]=r.abs(r.sin(b+1))*4294967296|0})();var d=l.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,w){for(var _=0;_<16;_++){var g=w+_,p=b[g];b[g]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,C=b[w+0],E=b[w+1],A=b[w+2],x=b[w+3],S=b[w+4],k=b[w+5],N=b[w+6],I=b[w+7],T=b[w+8],P=b[w+9],O=b[w+10],M=b[w+11],H=b[w+12],U=b[w+13],me=b[w+14],ye=b[w+15],F=y[0],W=y[1],Z=y[2],K=y[3];F=u(F,W,Z,K,C,7,c[0]),K=u(K,F,W,Z,E,12,c[1]),Z=u(Z,K,F,W,A,17,c[2]),W=u(W,Z,K,F,x,22,c[3]),F=u(F,W,Z,K,S,7,c[4]),K=u(K,F,W,Z,k,12,c[5]),Z=u(Z,K,F,W,N,17,c[6]),W=u(W,Z,K,F,I,22,c[7]),F=u(F,W,Z,K,T,7,c[8]),K=u(K,F,W,Z,P,12,c[9]),Z=u(Z,K,F,W,O,17,c[10]),W=u(W,Z,K,F,M,22,c[11]),F=u(F,W,Z,K,H,7,c[12]),K=u(K,F,W,Z,U,12,c[13]),Z=u(Z,K,F,W,me,17,c[14]),W=u(W,Z,K,F,ye,22,c[15]),F=h(F,W,Z,K,E,5,c[16]),K=h(K,F,W,Z,N,9,c[17]),Z=h(Z,K,F,W,M,14,c[18]),W=h(W,Z,K,F,C,20,c[19]),F=h(F,W,Z,K,k,5,c[20]),K=h(K,F,W,Z,O,9,c[21]),Z=h(Z,K,F,W,ye,14,c[22]),W=h(W,Z,K,F,S,20,c[23]),F=h(F,W,Z,K,P,5,c[24]),K=h(K,F,W,Z,me,9,c[25]),Z=h(Z,K,F,W,x,14,c[26]),W=h(W,Z,K,F,T,20,c[27]),F=h(F,W,Z,K,U,5,c[28]),K=h(K,F,W,Z,A,9,c[29]),Z=h(Z,K,F,W,I,14,c[30]),W=h(W,Z,K,F,H,20,c[31]),F=f(F,W,Z,K,k,4,c[32]),K=f(K,F,W,Z,T,11,c[33]),Z=f(Z,K,F,W,M,16,c[34]),W=f(W,Z,K,F,me,23,c[35]),F=f(F,W,Z,K,E,4,c[36]),K=f(K,F,W,Z,S,11,c[37]),Z=f(Z,K,F,W,I,16,c[38]),W=f(W,Z,K,F,O,23,c[39]),F=f(F,W,Z,K,U,4,c[40]),K=f(K,F,W,Z,C,11,c[41]),Z=f(Z,K,F,W,x,16,c[42]),W=f(W,Z,K,F,N,23,c[43]),F=f(F,W,Z,K,P,4,c[44]),K=f(K,F,W,Z,H,11,c[45]),Z=f(Z,K,F,W,ye,16,c[46]),W=f(W,Z,K,F,A,23,c[47]),F=m(F,W,Z,K,C,6,c[48]),K=m(K,F,W,Z,I,10,c[49]),Z=m(Z,K,F,W,me,15,c[50]),W=m(W,Z,K,F,k,21,c[51]),F=m(F,W,Z,K,H,6,c[52]),K=m(K,F,W,Z,x,10,c[53]),Z=m(Z,K,F,W,O,15,c[54]),W=m(W,Z,K,F,E,21,c[55]),F=m(F,W,Z,K,T,6,c[56]),K=m(K,F,W,Z,ye,10,c[57]),Z=m(Z,K,F,W,N,15,c[58]),W=m(W,Z,K,F,U,21,c[59]),F=m(F,W,Z,K,S,6,c[60]),K=m(K,F,W,Z,M,10,c[61]),Z=m(Z,K,F,W,A,15,c[62]),W=m(W,Z,K,F,P,21,c[63]),y[0]=y[0]+F|0,y[1]=y[1]+W|0,y[2]=y[2]+Z|0,y[3]=y[3]+K|0},_doFinalize:function(){var b=this._data,w=b.words,_=this._nDataBytes*8,g=b.sigBytes*8;w[g>>>5]|=128<<24-g%32;var p=r.floor(_/4294967296),y=_;w[(g+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,w[(g+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b.sigBytes=(w.length+1)*4,this._process();for(var C=this._hash,E=C.words,A=0;A<4;A++){var x=E[A];E[A]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return C},clone:function(){var b=a.clone.call(this);return b._hash=this._hash.clone(),b}});function u(b,w,_,g,p,y,C){var E=b+(w&_|~w&g)+p+C;return(E<>>32-y)+w}function h(b,w,_,g,p,y,C){var E=b+(w&g|_&~g)+p+C;return(E<>>32-y)+w}function f(b,w,_,g,p,y,C){var E=b+(w^_^g)+p+C;return(E<>>32-y)+w}function m(b,w,_,g,p,y,C){var E=b+(_^(w|~g))+p+C;return(E<>>32-y)+w}n.MD5=a._createHelper(d),n.HmacMD5=a._createHmacHelper(d)}(Math),i.MD5})}(Vu)),Vu.exports}var Fu={exports:{}},ig;function R5(){return ig||(ig=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.Hasher,a=r.algo,l=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,u){for(var h=this._hash.words,f=h[0],m=h[1],b=h[2],w=h[3],_=h[4],g=0;g<80;g++){if(g<16)l[g]=d[u+g]|0;else{var p=l[g-3]^l[g-8]^l[g-14]^l[g-16];l[g]=p<<1|p>>>31}var y=(f<<5|f>>>27)+_+l[g];g<20?y+=(m&b|~m&w)+1518500249:g<40?y+=(m^b^w)+1859775393:g<60?y+=(m&b|m&w|b&w)-1894007588:y+=(m^b^w)-899497514,_=w,w=b,b=m<<30|m>>>2,m=f,f=y}h[0]=h[0]+f|0,h[1]=h[1]+m|0,h[2]=h[2]+b|0,h[3]=h[3]+w|0,h[4]=h[4]+_|0},_doFinalize:function(){var d=this._data,u=d.words,h=this._nDataBytes*8,f=d.sigBytes*8;return u[f>>>5]|=128<<24-f%32,u[(f+64>>>9<<4)+14]=Math.floor(h/4294967296),u[(f+64>>>9<<4)+15]=h,d.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var d=o.clone.call(this);return d._hash=this._hash.clone(),d}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),i.SHA1})}(Fu)),Fu.exports}var zu={exports:{}},rg;function H0(){return rg||(rg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=[],d=[];(function(){function f(_){for(var g=r.sqrt(_),p=2;p<=g;p++)if(!(_%p))return!1;return!0}function m(_){return(_-(_|0))*4294967296|0}for(var b=2,w=0;w<64;)f(b)&&(w<8&&(c[w]=m(r.pow(b,1/2))),d[w]=m(r.pow(b,1/3)),w++),b++})();var u=[],h=l.SHA256=a.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(f,m){for(var b=this._hash.words,w=b[0],_=b[1],g=b[2],p=b[3],y=b[4],C=b[5],E=b[6],A=b[7],x=0;x<64;x++){if(x<16)u[x]=f[m+x]|0;else{var S=u[x-15],k=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,N=u[x-2],I=(N<<15|N>>>17)^(N<<13|N>>>19)^N>>>10;u[x]=k+u[x-7]+I+u[x-16]}var T=y&C^~y&E,P=w&_^w&g^_&g,O=(w<<30|w>>>2)^(w<<19|w>>>13)^(w<<10|w>>>22),M=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),H=A+M+T+d[x]+u[x],U=O+P;A=E,E=C,C=y,y=p+H|0,p=g,g=_,_=w,w=H+U|0}b[0]=b[0]+w|0,b[1]=b[1]+_|0,b[2]=b[2]+g|0,b[3]=b[3]+p|0,b[4]=b[4]+y|0,b[5]=b[5]+C|0,b[6]=b[6]+E|0,b[7]=b[7]+A|0},_doFinalize:function(){var f=this._data,m=f.words,b=this._nDataBytes*8,w=f.sigBytes*8;return m[w>>>5]|=128<<24-w%32,m[(w+64>>>9<<4)+14]=r.floor(b/4294967296),m[(w+64>>>9<<4)+15]=b,f.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var f=a.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA256=a._createHelper(h),n.HmacSHA256=a._createHmacHelper(h)}(Math),i.SHA256})}(zu)),zu.exports}var Hu={exports:{}},ng;function IC(){return ng||(ng=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),H0())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=r.algo,a=o.SHA256,l=o.SHA224=a.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});r.SHA224=a._createHelper(l),r.HmacSHA224=a._createHmacHelper(l)}(),i.SHA224})}(Hu)),Hu.exports}var Uu={exports:{}},sg;function I5(){return sg||(sg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),ru())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.Hasher,o=r.x64,a=o.Word,l=o.WordArray,c=r.algo;function d(){return a.create.apply(a,arguments)}var u=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],h=[];(function(){for(var m=0;m<80;m++)h[m]=d()})();var f=c.SHA512=s.extend({_doReset:function(){this._hash=new l.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(m,b){for(var w=this._hash.words,_=w[0],g=w[1],p=w[2],y=w[3],C=w[4],E=w[5],A=w[6],x=w[7],S=_.high,k=_.low,N=g.high,I=g.low,T=p.high,P=p.low,O=y.high,M=y.low,H=C.high,U=C.low,me=E.high,ye=E.low,F=A.high,W=A.low,Z=x.high,K=x.low,De=S,xe=k,pt=N,we=I,xr=T,ui=P,Jn=O,Hr=M,$=H,L=U,z=me,j=ye,X=F,J=W,ee=Z,Q=K,G=0;G<80;G++){var q,te,le=h[G];if(G<16)te=le.high=m[b+G*2]|0,q=le.low=m[b+G*2+1]|0;else{var ae=h[G-15],fe=ae.high,ke=ae.low,Ge=(fe>>>1|ke<<31)^(fe>>>8|ke<<24)^fe>>>7,Me=(ke>>>1|fe<<31)^(ke>>>8|fe<<24)^(ke>>>7|fe<<25),mt=h[G-2],$t=mt.high,tr=mt.low,Gl=($t>>>19|tr<<13)^($t<<3|tr>>>29)^$t>>>6,gn=(tr>>>19|$t<<13)^(tr<<3|$t>>>29)^(tr>>>6|$t<<26),ha=h[G-7],hi=ha.high,ir=ha.low,fa=h[G-16],N4=fa.high,im=fa.low;q=Me+ir,te=Ge+hi+(q>>>0>>0?1:0),q=q+gn,te=te+Gl+(q>>>0>>0?1:0),q=q+im,te=te+N4+(q>>>0>>0?1:0),le.high=te,le.low=q}var R4=$&z^~$&X,rm=L&j^~L&J,I4=De&pt^De&xr^pt&xr,$4=xe&we^xe&ui^we&ui,P4=(De>>>28|xe<<4)^(De<<30|xe>>>2)^(De<<25|xe>>>7),nm=(xe>>>28|De<<4)^(xe<<30|De>>>2)^(xe<<25|De>>>7),D4=($>>>14|L<<18)^($>>>18|L<<14)^($<<23|L>>>9),L4=(L>>>14|$<<18)^(L>>>18|$<<14)^(L<<23|$>>>9),sm=u[G],B4=sm.high,om=sm.low,Fi=Q+L4,vn=ee+D4+(Fi>>>0>>0?1:0),Fi=Fi+rm,vn=vn+R4+(Fi>>>0>>0?1:0),Fi=Fi+om,vn=vn+B4+(Fi>>>0>>0?1:0),Fi=Fi+q,vn=vn+te+(Fi>>>0>>0?1:0),am=nm+$4,O4=P4+I4+(am>>>0>>0?1:0);ee=X,Q=J,X=z,J=j,z=$,j=L,L=Hr+Fi|0,$=Jn+vn+(L>>>0
>>0?1:0)|0,Jn=xr,Hr=ui,xr=pt,ui=we,pt=De,we=xe,xe=Fi+am|0,De=vn+O4+(xe>>>0>>0?1:0)|0}k=_.low=k+xe,_.high=S+De+(k>>>0>>0?1:0),I=g.low=I+we,g.high=N+pt+(I>>>0>>0?1:0),P=p.low=P+ui,p.high=T+xr+(P>>>0>>0?1:0),M=y.low=M+Hr,y.high=O+Jn+(M>>>0
>>0?1:0),U=C.low=U+L,C.high=H+$+(U>>>0>>0?1:0),ye=E.low=ye+j,E.high=me+z+(ye>>>0>>0?1:0),W=A.low=W+J,A.high=F+X+(W>>>0>>0?1:0),K=x.low=K+Q,x.high=Z+ee+(K>>>0>>0?1:0)},_doFinalize:function(){var m=this._data,b=m.words,w=this._nDataBytes*8,_=m.sigBytes*8;b[_>>>5]|=128<<24-_%32,b[(_+128>>>10<<5)+30]=Math.floor(w/4294967296),b[(_+128>>>10<<5)+31]=w,m.sigBytes=b.length*4,this._process();var g=this._hash.toX32();return g},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});r.SHA512=s._createHelper(f),r.HmacSHA512=s._createHmacHelper(f)}(),i.SHA512})}(Uu)),Uu.exports}var Ku={exports:{}},og;function $C(){return og||(og=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),ru(),I5())})(Te,function(i){return function(){var r=i,n=r.x64,s=n.Word,o=n.WordArray,a=r.algo,l=a.SHA512,c=a.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=16,d}});r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c)}(),i.SHA384})}(Ku)),Ku.exports}var Wu={exports:{}},ag;function PC(){return ag||(ag=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),ru())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.x64,c=l.Word,d=n.algo,u=[],h=[],f=[];(function(){for(var w=1,_=0,g=0;g<24;g++){u[w+5*_]=(g+1)*(g+2)/2%64;var p=_%5,y=(2*w+3*_)%5;w=p,_=y}for(var w=0;w<5;w++)for(var _=0;_<5;_++)h[w+5*_]=_+(2*w+3*_)%5*5;for(var C=1,E=0;E<24;E++){for(var A=0,x=0,S=0;S<7;S++){if(C&1){var k=(1<>>24)&16711935|(C<<24|C>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360;var A=g[y];A.high^=E,A.low^=C}for(var x=0;x<24;x++){for(var S=0;S<5;S++){for(var k=0,N=0,I=0;I<5;I++){var A=g[S+5*I];k^=A.high,N^=A.low}var T=m[S];T.high=k,T.low=N}for(var S=0;S<5;S++)for(var P=m[(S+4)%5],O=m[(S+1)%5],M=O.high,H=O.low,k=P.high^(M<<1|H>>>31),N=P.low^(H<<1|M>>>31),I=0;I<5;I++){var A=g[S+5*I];A.high^=k,A.low^=N}for(var U=1;U<25;U++){var k,N,A=g[U],me=A.high,ye=A.low,F=u[U];F<32?(k=me<>>32-F,N=ye<>>32-F):(k=ye<>>64-F,N=me<>>64-F);var W=m[h[U]];W.high=k,W.low=N}var Z=m[0],K=g[0];Z.high=K.high,Z.low=K.low;for(var S=0;S<5;S++)for(var I=0;I<5;I++){var U=S+5*I,A=g[U],De=m[U],xe=m[(S+1)%5+5*I],pt=m[(S+2)%5+5*I];A.high=De.high^~xe.high&pt.high,A.low=De.low^~xe.low&pt.low}var A=g[0],we=f[x];A.high^=we.high,A.low^=we.low}},_doFinalize:function(){var w=this._data,_=w.words;this._nDataBytes*8;var g=w.sigBytes*8,p=this.blockSize*32;_[g>>>5]|=1<<24-g%32,_[(r.ceil((g+1)/p)*p>>>5)-1]|=128,w.sigBytes=_.length*4,this._process();for(var y=this._state,C=this.cfg.outputLength/8,E=C/8,A=[],x=0;x>>24)&16711935|(k<<24|k>>>8)&4278255360,N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,A.push(N),A.push(k)}return new o.init(A,C)},clone:function(){for(var w=a.clone.call(this),_=w._state=this._state.slice(0),g=0;g<25;g++)_[g]=_[g].clone();return w}});n.SHA3=a._createHelper(b),n.HmacSHA3=a._createHmacHelper(b)}(Math),i.SHA3})}(Wu)),Wu.exports}var qu={exports:{}},lg;function DC(){return lg||(lg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -529,13 +529,13 @@ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return function(r){var n=i,s=n.lib,o=s.WordArray,a=s.Hasher,l=n.algo,c=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=o.create([0,1518500249,1859775393,2400959708,2840853838]),m=o.create([1352829926,1548603684,1836072691,2053994217,0]),b=l.RIPEMD160=a.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,A){for(var S=0;S<16;S++){var x=A+S,k=E[x];E[x]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var T=this._hash.words,N=f.words,I=m.words,P=c.words,B=d.words,O=u.words,H=h.words,U,oe,ye,F,W,Z,K,De,xe,pt;Z=U=T[0],K=oe=T[1],De=ye=T[2],xe=F=T[3],pt=W=T[4];for(var we,S=0;S<80;S+=1)we=U+E[A+P[S]]|0,S<16?we+=w(oe,ye,F)+N[0]:S<32?we+=_(oe,ye,F)+N[1]:S<48?we+=g(oe,ye,F)+N[2]:S<64?we+=p(oe,ye,F)+N[3]:we+=y(oe,ye,F)+N[4],we=we|0,we=C(we,O[S]),we=we+W|0,U=W,W=F,F=C(ye,10),ye=oe,oe=we,we=Z+E[A+B[S]]|0,S<16?we+=y(K,De,xe)+I[0]:S<32?we+=p(K,De,xe)+I[1]:S<48?we+=g(K,De,xe)+I[2]:S<64?we+=_(K,De,xe)+I[3]:we+=w(K,De,xe)+I[4],we=we|0,we=C(we,H[S]),we=we+pt|0,Z=pt,pt=xe,xe=C(De,10),De=K,K=we;we=T[1]+ye+xe|0,T[1]=T[2]+F+pt|0,T[2]=T[3]+W+Z|0,T[3]=T[4]+U+K|0,T[4]=T[0]+oe+De|0,T[0]=we},_doFinalize:function(){var E=this._data,A=E.words,S=this._nDataBytes*8,x=E.sigBytes*8;A[x>>>5]|=128<<24-x%32,A[(x+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,E.sigBytes=(A.length+1)*4,this._process();for(var k=this._hash,T=k.words,N=0;N<5;N++){var I=T[N];T[N]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return k},clone:function(){var E=a.clone.call(this);return E._hash=this._hash.clone(),E}});function w(E,A,S){return E^A^S}function _(E,A,S){return E&A|~E&S}function g(E,A,S){return(E|~A)^S}function p(E,A,S){return E&S|A&~S}function y(E,A,S){return E^(A|~S)}function C(E,A){return E<>>32-A}n.RIPEMD160=a._createHelper(b),n.HmacRIPEMD160=a._createHmacHelper(b)}(),i.RIPEMD160})}(qu)),qu.exports}var ju={exports:{}},cg;function U0(){return cg||(cg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){(function(){var r=i,n=r.lib,s=n.Base,o=r.enc,a=o.Utf8,l=r.algo;l.HMAC=s.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=a.parse(d));var u=c.blockSize,h=u*4;d.sigBytes>h&&(d=c.finalize(d)),d.clamp();for(var f=this._oKey=d.clone(),m=this._iKey=d.clone(),b=f.words,w=m.words,_=0;_>>2]&255;k.sigBytes-=T}};s.BlockCipher=f.extend({cfg:f.cfg.extend({mode:w,padding:g}),reset:function(){var k;f.reset.call(this);var T=this.cfg,N=T.iv,I=T.mode;this._xformMode==this._ENC_XFORM_MODE?k=I.createEncryptor:(k=I.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,N&&N.words):(this._mode=k.call(I,this,N&&N.words),this._mode.__creator=k)},_doProcessBlock:function(k,T){this._mode.processBlock(k,T)},_doFinalize:function(){var k,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),T.unpad(k)),k},blockSize:128/32});var p=s.CipherParams=o.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),y=n.format={},C=y.OpenSSL={stringify:function(k){var T,N=k.ciphertext,I=k.salt;return I?T=a.create([1398893684,1701076831]).concat(I).concat(N):T=N,T.toString(d)},parse:function(k){var T,N=d.parse(k),I=N.words;return I[0]==1398893684&&I[1]==1701076831&&(T=a.create(I.slice(2,4)),I.splice(0,4),N.sigBytes-=16),p.create({ciphertext:N,salt:T})}},E=s.SerializableCipher=o.extend({cfg:o.extend({format:C}),encrypt:function(k,T,N,I){I=this.cfg.extend(I);var P=k.createEncryptor(N,I),B=P.finalize(T),O=P.cfg;return p.create({ciphertext:B,key:N,iv:O.iv,algorithm:k,mode:O.mode,padding:O.padding,blockSize:k.blockSize,formatter:I.format})},decrypt:function(k,T,N,I){I=this.cfg.extend(I),T=this._parse(T,I.format);var P=k.createDecryptor(N,I).finalize(T.ciphertext);return P},_parse:function(k,T){return typeof k=="string"?T.parse(k,this):k}}),A=n.kdf={},S=A.OpenSSL={execute:function(k,T,N,I,P){if(I||(I=a.random(64/8)),P)var B=h.create({keySize:T+N,hasher:P}).compute(k,I);else var B=h.create({keySize:T+N}).compute(k,I);var O=a.create(B.words.slice(T),N*4);return B.sigBytes=T*4,p.create({key:B,iv:O,salt:I})}},x=s.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:S}),encrypt:function(k,T,N,I){I=this.cfg.extend(I);var P=I.kdf.execute(N,k.keySize,k.ivSize,I.salt,I.hasher);I.iv=P.iv;var B=E.encrypt.call(this,k,T,P.key,I);return B.mixIn(P),B},decrypt:function(k,T,N,I){I=this.cfg.extend(I),T=this._parse(T,I.format);var P=I.kdf.execute(N,k.keySize,k.ivSize,T.salt,I.hasher);I.iv=P.iv;var B=E.decrypt.call(this,k,T,P.key,I);return B}})}()})}(Zu)),Zu.exports}var Gu={exports:{}},fg;function BC(){return fg||(fg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.mode.CFB=function(){var r=i.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize;n.call(this,s,o,l,a),this._prevBlock=s.slice(o,o+l)}}),r.Decryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize,c=s.slice(o,o+l);n.call(this,s,o,l,a),this._prevBlock=c}});function n(s,o,a,l){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var u=0;u>>24)&16711935|(k<<24|k>>>8)&4278255360}var N=this._hash.words,I=f.words,T=m.words,P=c.words,O=d.words,M=u.words,H=h.words,U,me,ye,F,W,Z,K,De,xe,pt;Z=U=N[0],K=me=N[1],De=ye=N[2],xe=F=N[3],pt=W=N[4];for(var we,x=0;x<80;x+=1)we=U+E[A+P[x]]|0,x<16?we+=w(me,ye,F)+I[0]:x<32?we+=_(me,ye,F)+I[1]:x<48?we+=g(me,ye,F)+I[2]:x<64?we+=p(me,ye,F)+I[3]:we+=y(me,ye,F)+I[4],we=we|0,we=C(we,M[x]),we=we+W|0,U=W,W=F,F=C(ye,10),ye=me,me=we,we=Z+E[A+O[x]]|0,x<16?we+=y(K,De,xe)+T[0]:x<32?we+=p(K,De,xe)+T[1]:x<48?we+=g(K,De,xe)+T[2]:x<64?we+=_(K,De,xe)+T[3]:we+=w(K,De,xe)+T[4],we=we|0,we=C(we,H[x]),we=we+pt|0,Z=pt,pt=xe,xe=C(De,10),De=K,K=we;we=N[1]+ye+xe|0,N[1]=N[2]+F+pt|0,N[2]=N[3]+W+Z|0,N[3]=N[4]+U+K|0,N[4]=N[0]+me+De|0,N[0]=we},_doFinalize:function(){var E=this._data,A=E.words,x=this._nDataBytes*8,S=E.sigBytes*8;A[S>>>5]|=128<<24-S%32,A[(S+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,E.sigBytes=(A.length+1)*4,this._process();for(var k=this._hash,N=k.words,I=0;I<5;I++){var T=N[I];N[I]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return k},clone:function(){var E=a.clone.call(this);return E._hash=this._hash.clone(),E}});function w(E,A,x){return E^A^x}function _(E,A,x){return E&A|~E&x}function g(E,A,x){return(E|~A)^x}function p(E,A,x){return E&x|A&~x}function y(E,A,x){return E^(A|~x)}function C(E,A){return E<>>32-A}n.RIPEMD160=a._createHelper(b),n.HmacRIPEMD160=a._createHmacHelper(b)}(),i.RIPEMD160})}(qu)),qu.exports}var ju={exports:{}},cg;function U0(){return cg||(cg=1,function(e,t){(function(i,r){e.exports=r(Pe())})(Te,function(i){(function(){var r=i,n=r.lib,s=n.Base,o=r.enc,a=o.Utf8,l=r.algo;l.HMAC=s.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=a.parse(d));var u=c.blockSize,h=u*4;d.sigBytes>h&&(d=c.finalize(d)),d.clamp();for(var f=this._oKey=d.clone(),m=this._iKey=d.clone(),b=f.words,w=m.words,_=0;_>>2]&255;k.sigBytes-=N}};s.BlockCipher=f.extend({cfg:f.cfg.extend({mode:w,padding:g}),reset:function(){var k;f.reset.call(this);var N=this.cfg,I=N.iv,T=N.mode;this._xformMode==this._ENC_XFORM_MODE?k=T.createEncryptor:(k=T.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,I&&I.words):(this._mode=k.call(T,this,I&&I.words),this._mode.__creator=k)},_doProcessBlock:function(k,N){this._mode.processBlock(k,N)},_doFinalize:function(){var k,N=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(N.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),N.unpad(k)),k},blockSize:128/32});var p=s.CipherParams=o.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),y=n.format={},C=y.OpenSSL={stringify:function(k){var N,I=k.ciphertext,T=k.salt;return T?N=a.create([1398893684,1701076831]).concat(T).concat(I):N=I,N.toString(d)},parse:function(k){var N,I=d.parse(k),T=I.words;return T[0]==1398893684&&T[1]==1701076831&&(N=a.create(T.slice(2,4)),T.splice(0,4),I.sigBytes-=16),p.create({ciphertext:I,salt:N})}},E=s.SerializableCipher=o.extend({cfg:o.extend({format:C}),encrypt:function(k,N,I,T){T=this.cfg.extend(T);var P=k.createEncryptor(I,T),O=P.finalize(N),M=P.cfg;return p.create({ciphertext:O,key:I,iv:M.iv,algorithm:k,mode:M.mode,padding:M.padding,blockSize:k.blockSize,formatter:T.format})},decrypt:function(k,N,I,T){T=this.cfg.extend(T),N=this._parse(N,T.format);var P=k.createDecryptor(I,T).finalize(N.ciphertext);return P},_parse:function(k,N){return typeof k=="string"?N.parse(k,this):k}}),A=n.kdf={},x=A.OpenSSL={execute:function(k,N,I,T,P){if(T||(T=a.random(64/8)),P)var O=h.create({keySize:N+I,hasher:P}).compute(k,T);else var O=h.create({keySize:N+I}).compute(k,T);var M=a.create(O.words.slice(N),I*4);return O.sigBytes=N*4,p.create({key:O,iv:M,salt:T})}},S=s.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:x}),encrypt:function(k,N,I,T){T=this.cfg.extend(T);var P=T.kdf.execute(I,k.keySize,k.ivSize,T.salt,T.hasher);T.iv=P.iv;var O=E.encrypt.call(this,k,N,P.key,T);return O.mixIn(P),O},decrypt:function(k,N,I,T){T=this.cfg.extend(T),N=this._parse(N,T.format);var P=T.kdf.execute(I,k.keySize,k.ivSize,N.salt,T.hasher);T.iv=P.iv;var O=E.decrypt.call(this,k,N,P.key,T);return O}})}()})}(Zu)),Zu.exports}var Gu={exports:{}},fg;function BC(){return fg||(fg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.mode.CFB=function(){var r=i.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize;n.call(this,s,o,l,a),this._prevBlock=s.slice(o,o+l)}}),r.Decryptor=r.extend({processBlock:function(s,o){var a=this._cipher,l=a.blockSize,c=s.slice(o,o+l);n.call(this,s,o,l,a),this._prevBlock=c}});function n(s,o,a,l){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var u=0;u>24&255)===255){var l=a>>16&255,c=a>>8&255,d=a&255;l===255?(l=0,c===255?(c=0,d===255?d=0:++d):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=d}else a+=1<<24;return a}function s(a){return(a[0]=n(a[0]))===0&&(a[1]=n(a[1])),a}var o=r.Encryptor=r.extend({processBlock:function(a,l){var c=this._cipher,d=c.blockSize,u=this._iv,h=this._counter;u&&(h=this._counter=u.slice(0),this._iv=void 0),s(h);var f=h.slice(0);c.encryptBlock(f,0);for(var m=0;m>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Ansix923})}(ih)),ih.exports}var rh={exports:{}},bg;function HC(){return bg||(bg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.Iso10126={pad:function(r,n){var s=n*4,o=s-r.sigBytes%s;r.concat(i.lib.WordArray.random(o-1)).concat(i.lib.WordArray.create([o<<24],1))},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Iso10126})}(rh)),rh.exports}var nh={exports:{}},wg;function UC(){return wg||(wg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.Iso97971={pad:function(r,n){r.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(r,n)},unpad:function(r){i.pad.ZeroPadding.unpad(r),r.sigBytes--}},i.pad.Iso97971})}(nh)),nh.exports}var sh={exports:{}},_g;function KC(){return _g||(_g=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.ZeroPadding={pad:function(r,n){var s=n*4;r.clamp(),r.sigBytes+=s-(r.sigBytes%s||s)},unpad:function(r){for(var n=r.words,s=r.sigBytes-1,s=r.sigBytes-1;s>=0;s--)if(n[s>>>2]>>>24-s%4*8&255){r.sigBytes=s+1;break}}},i.pad.ZeroPadding})}(sh)),sh.exports}var oh={exports:{}},kg;function WC(){return kg||(kg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})}(oh)),oh.exports}var ah={exports:{}},Cg;function qC(){return Cg||(Cg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.CipherParams,a=n.enc,l=a.Hex,c=n.format;c.Hex={stringify:function(d){return d.ciphertext.toString(l)},parse:function(d){var u=l.parse(d);return o.create({ciphertext:u})}}}(),i.format.Hex})}(ah)),ah.exports}var lh={exports:{}},Ag;function jC(){return Ag||(Ag=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo,a=[],l=[],c=[],d=[],u=[],h=[],f=[],m=[],b=[],w=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var C=0,E=0,y=0;y<256;y++){var A=E^E<<1^E<<2^E<<3^E<<4;A=A>>>8^A&255^99,a[C]=A,l[A]=C;var S=p[C],x=p[S],k=p[x],T=p[A]*257^A*16843008;c[C]=T<<24|T>>>8,d[C]=T<<16|T>>>16,u[C]=T<<8|T>>>24,h[C]=T;var T=k*16843009^x*65537^S*257^C*16843008;f[A]=T<<24|T>>>8,m[A]=T<<16|T>>>16,b[A]=T<<8|T>>>24,w[A]=T,C?(C=S^p[p[p[k^S]]],E^=p[p[E]]):C=E=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=s.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,C=y.words,E=y.sigBytes/4,A=this._nRounds=E+6,S=(A+1)*4,x=this._keySchedule=[],k=0;k6&&k%E==4&&(p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255]):(p=p<<8|p>>>24,p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255],p^=_[k/E|0]<<24),x[k]=x[k-E]^p);for(var T=this._invKeySchedule=[],N=0;N>>24]]^m[a[p>>>16&255]]^b[a[p>>>8&255]]^w[a[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,c,d,u,h,a)},decryptBlock:function(p,y){var C=p[y+1];p[y+1]=p[y+3],p[y+3]=C,this._doCryptBlock(p,y,this._invKeySchedule,f,m,b,w,l);var C=p[y+1];p[y+1]=p[y+3],p[y+3]=C},_doCryptBlock:function(p,y,C,E,A,S,x,k){for(var T=this._nRounds,N=p[y]^C[0],I=p[y+1]^C[1],P=p[y+2]^C[2],B=p[y+3]^C[3],O=4,H=1;H>>24]^A[I>>>16&255]^S[P>>>8&255]^x[B&255]^C[O++],oe=E[I>>>24]^A[P>>>16&255]^S[B>>>8&255]^x[N&255]^C[O++],ye=E[P>>>24]^A[B>>>16&255]^S[N>>>8&255]^x[I&255]^C[O++],F=E[B>>>24]^A[N>>>16&255]^S[I>>>8&255]^x[P&255]^C[O++];N=U,I=oe,P=ye,B=F}var U=(k[N>>>24]<<24|k[I>>>16&255]<<16|k[P>>>8&255]<<8|k[B&255])^C[O++],oe=(k[I>>>24]<<24|k[P>>>16&255]<<16|k[B>>>8&255]<<8|k[N&255])^C[O++],ye=(k[P>>>24]<<24|k[B>>>16&255]<<16|k[N>>>8&255]<<8|k[I&255])^C[O++],F=(k[B>>>24]<<24|k[N>>>16&255]<<16|k[I>>>8&255]<<8|k[P&255])^C[O++];p[y]=U,p[y+1]=oe,p[y+2]=ye,p[y+3]=F},keySize:256/32});r.AES=s._createHelper(g)}(),i.AES})}(lh)),lh.exports}var ch={exports:{}},Eg;function YC(){return Eg||(Eg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.BlockCipher,a=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=a.DES=o.extend({_doReset:function(){for(var _=this._key,g=_.words,p=[],y=0;y<56;y++){var C=l[y]-1;p[y]=g[C>>>5]>>>31-C%32&1}for(var E=this._subKeys=[],A=0;A<16;A++){for(var S=E[A]=[],x=d[A],y=0;y<24;y++)S[y/6|0]|=p[(c[y]-1+x)%28]<<31-y%6,S[4+(y/6|0)]|=p[28+(c[y+24]-1+x)%28]<<31-y%6;S[0]=S[0]<<1|S[0]>>>31;for(var y=1;y<7;y++)S[y]=S[y]>>>(y-1)*4+3;S[7]=S[7]<<5|S[7]>>>27}for(var k=this._invSubKeys=[],y=0;y<16;y++)k[y]=E[15-y]},encryptBlock:function(_,g){this._doCryptBlock(_,g,this._subKeys)},decryptBlock:function(_,g){this._doCryptBlock(_,g,this._invSubKeys)},_doCryptBlock:function(_,g,p){this._lBlock=_[g],this._rBlock=_[g+1],m.call(this,4,252645135),m.call(this,16,65535),b.call(this,2,858993459),b.call(this,8,16711935),m.call(this,1,1431655765);for(var y=0;y<16;y++){for(var C=p[y],E=this._lBlock,A=this._rBlock,S=0,x=0;x<8;x++)S|=u[x][((A^C[x])&h[x])>>>0];this._lBlock=A,this._rBlock=E^S}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,m.call(this,1,1431655765),b.call(this,8,16711935),b.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),_[g]=this._lBlock,_[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(_,g){var p=(this._lBlock>>>_^this._rBlock)&g;this._rBlock^=p,this._lBlock^=p<<_}function b(_,g){var p=(this._rBlock>>>_^this._lBlock)&g;this._lBlock^=p,this._rBlock^=p<<_}r.DES=o._createHelper(f);var w=a.TripleDES=o.extend({_doReset:function(){var _=this._key,g=_.words;if(g.length!==2&&g.length!==4&&g.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=g.slice(0,2),y=g.length<4?g.slice(0,2):g.slice(2,4),C=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=f.createEncryptor(s.create(p)),this._des2=f.createEncryptor(s.create(y)),this._des3=f.createEncryptor(s.create(C))},encryptBlock:function(_,g){this._des1.encryptBlock(_,g),this._des2.decryptBlock(_,g),this._des3.encryptBlock(_,g)},decryptBlock:function(_,g){this._des3.decryptBlock(_,g),this._des2.encryptBlock(_,g),this._des1.decryptBlock(_,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(w)}(),i.TripleDES})}(ch)),ch.exports}var dh={exports:{}},xg;function XC(){return xg||(xg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=o.RC4=s.extend({_doReset:function(){for(var d=this._key,u=d.words,h=d.sigBytes,f=this._S=[],m=0;m<256;m++)f[m]=m;for(var m=0,b=0;m<256;m++){var w=m%h,_=u[w>>>2]>>>24-w%4*8&255;b=(b+f[m]+_)%256;var g=f[m];f[m]=f[b],f[b]=g}this._i=this._j=0},_doProcessBlock:function(d,u){d[u]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var d=this._S,u=this._i,h=this._j,f=0,m=0;m<4;m++){u=(u+1)%256,h=(h+d[u])%256;var b=d[u];d[u]=d[h],d[h]=b,f|=d[(d[u]+d[h])%256]<<24-m*8}return this._i=u,this._j=h,f}r.RC4=s._createHelper(a);var c=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)l.call(this)}});r.RC4Drop=s._createHelper(c)}(),i.RC4})}(dh)),dh.exports}var uh={exports:{}},Sg;function ZC(){return Sg||(Sg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.Rabbit=s.extend({_doReset:function(){for(var h=this._key.words,f=this.cfg.iv,m=0;m<4;m++)h[m]=(h[m]<<8|h[m]>>>24)&16711935|(h[m]<<24|h[m]>>>8)&4278255360;var b=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],w=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)u.call(this);for(var m=0;m<8;m++)w[m]^=b[m+4&7];if(f){var _=f.words,g=_[0],p=_[1],y=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E=y>>>16|C&4294901760,A=C<<16|y&65535;w[0]^=y,w[1]^=E,w[2]^=C,w[3]^=A,w[4]^=y,w[5]^=E,w[6]^=C,w[7]^=A;for(var m=0;m<4;m++)u.call(this)}},_doProcessBlock:function(h,f){var m=this._X;u.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,m=0;m<8;m++)l[m]=f[m];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var m=0;m<8;m++){var b=h[m]+f[m],w=b&65535,_=b>>>16,g=((w*w>>>17)+w*_>>>15)+_*_,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[m]=g^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=s._createHelper(d)}(),i.Rabbit})}(uh)),uh.exports}var hh={exports:{}},Tg;function GC(){return Tg||(Tg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.RabbitLegacy=s.extend({_doReset:function(){var h=this._key.words,f=this.cfg.iv,m=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],b=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var w=0;w<4;w++)u.call(this);for(var w=0;w<8;w++)b[w]^=m[w+4&7];if(f){var _=f.words,g=_[0],p=_[1],y=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E=y>>>16|C&4294901760,A=C<<16|y&65535;b[0]^=y,b[1]^=E,b[2]^=C,b[3]^=A,b[4]^=y,b[5]^=E,b[6]^=C,b[7]^=A;for(var w=0;w<4;w++)u.call(this)}},_doProcessBlock:function(h,f){var m=this._X;u.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,m=0;m<8;m++)l[m]=f[m];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var m=0;m<8;m++){var b=h[m]+f[m],w=b&65535,_=b>>>16,g=((w*w>>>17)+w*_>>>15)+_*_,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[m]=g^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=s._createHelper(d)}(),i.RabbitLegacy})}(hh)),hh.exports}var fh={exports:{}},Rg;function QC(){return Rg||(Rg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var d={pbox:[],sbox:[]};function u(w,_){let g=_>>24&255,p=_>>16&255,y=_>>8&255,C=_&255,E=w.sbox[0][g]+w.sbox[1][p];return E=E^w.sbox[2][y],E=E+w.sbox[3][C],E}function h(w,_,g){let p=_,y=g,C;for(let E=0;E1;--E)p=p^w.pbox[E],y=u(w,p)^y,C=p,p=y,y=C;return C=p,p=y,y=C,y=y^w.pbox[1],p=p^w.pbox[0],{left:p,right:y}}function m(w,_,g){for(let A=0;A<4;A++){w.sbox[A]=[];for(let S=0;S<256;S++)w.sbox[A][S]=c[A][S]}let p=0;for(let A=0;A=g&&(p=0);let y=0,C=0,E=0;for(let A=0;A=0;)e[t]=0}const iA=0,P5=1,rA=2,nA=3,sA=258,K0=29,jl=256,kl=jl+1+K0,Po=30,W0=19,D5=2*kl+1,fs=15,ph=16,oA=7,q0=256,L5=16,B5=17,O5=18,zf=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Mc=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),aA=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),M5=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),lA=512,Gr=new Array((kl+2)*2);la(Gr);const Ua=new Array(Po*2);la(Ua);const Cl=new Array(lA);la(Cl);const Al=new Array(sA-nA+1);la(Al);const j0=new Array(K0);la(j0);const bd=new Array(Po);la(bd);function mh(e,t,i,r,n){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=r,this.max_length=n,this.has_stree=e&&e.length}let V5,F5,z5;function gh(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const H5=e=>e<256?Cl[e]:Cl[256+(e>>>7)],El=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},$i=(e,t,i)=>{e.bi_valid>ph-i?(e.bi_buf|=t<>ph-e.bi_valid,e.bi_valid+=i-ph):(e.bi_buf|=t<{$i(e,i[t*2],i[t*2+1])},U5=(e,t)=>{let i=0;do i|=e&1,e>>>=1,i<<=1;while(--t>0);return i>>>1},cA=e=>{e.bi_valid===16?(El(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},dA=(e,t)=>{const i=t.dyn_tree,r=t.max_code,n=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,d,u,h,f,m,b=0;for(h=0;h<=fs;h++)e.bl_count[h]=0;for(i[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;cl&&(h=l,b++),i[d*2+1]=h,!(d>r)&&(e.bl_count[h]++,f=0,d>=a&&(f=o[d-a]),m=i[d*2],e.opt_len+=m*(h+f),s&&(e.static_len+=m*(n[d*2+1]+f)));if(b!==0){do{for(h=l-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[l]--,b-=2}while(b>0);for(h=l;h!==0;h--)for(d=e.bl_count[h];d!==0;)u=e.heap[--c],!(u>r)&&(i[u*2+1]!==h&&(e.opt_len+=(h-i[u*2+1])*i[u*2],i[u*2+1]=h),d--)}},K5=(e,t,i)=>{const r=new Array(fs+1);let n=0,s,o;for(s=1;s<=fs;s++)n=n+i[s-1]<<1,r[s]=n;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=U5(r[a]++,a))}},uA=()=>{let e,t,i,r,n;const s=new Array(fs+1);for(i=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?El(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},$g=(e,t,i,r)=>{const n=t*2,s=i*2;return e[n]{const r=e.heap[i];let n=i<<1;for(;n<=e.heap_len&&(n{let r,n,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,n=e.pending_buf[e.sym_buf+s++],r===0?$r(e,n,t):(o=Al[n],$r(e,o+jl+1,t),a=zf[o],a!==0&&(n-=j0[o],$i(e,n,a)),r--,o=H5(r),$r(e,o,i),a=Mc[o],a!==0&&(r-=bd[o],$i(e,r,a)));while(s{const i=t.dyn_tree,r=t.stat_desc.static_tree,n=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,a,l=-1,c;for(e.heap_len=0,e.heap_max=D5,o=0;o>1;o>=1;o--)vh(e,i,o);c=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],vh(e,i,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,i[c*2]=i[o*2]+i[a*2],e.depth[c]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,i[o*2+1]=i[a*2+1]=c,e.heap[1]=c++,vh(e,i,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],dA(e,t),K5(i,l,e.bl_count)},Dg=(e,t,i)=>{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(i+1)*2+1]=65535,r=0;r<=i;r++)s=o,o=t[(r+1)*2+1],!(++a{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),r=0;r<=i;r++)if(s=o,o=t[(r+1)*2+1],!(++a{let t;for(Dg(e,e.dyn_ltree,e.l_desc.max_code),Dg(e,e.dyn_dtree,e.d_desc.max_code),Hf(e,e.bl_desc),t=W0-1;t>=3&&e.bl_tree[M5[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},fA=(e,t,i,r)=>{let n;for($i(e,t-257,5),$i(e,i-1,5),$i(e,r-4,4),n=0;n{let t=4093624447,i;for(i=0;i<=31;i++,t>>>=1)if(t&1&&e.dyn_ltree[i*2]!==0)return Ng;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ig;for(i=32;i{Bg||(uA(),Bg=!0),e.l_desc=new gh(e.dyn_ltree,V5),e.d_desc=new gh(e.dyn_dtree,F5),e.bl_desc=new gh(e.bl_tree,z5),e.bi_buf=0,e.bi_valid=0,W5(e)},j5=(e,t,i,r)=>{$i(e,(iA<<1)+(r?1:0),3),q5(e),El(e,i),El(e,~i),i&&e.pending_buf.set(e.window.subarray(t,t+i),e.pending),e.pending+=i},gA=e=>{$i(e,P5<<1,3),$r(e,q0,Gr),cA(e)},vA=(e,t,i,r)=>{let n,s,o=0;e.level>0?(e.strm.data_type===tA&&(e.strm.data_type=pA(e)),Hf(e,e.l_desc),Hf(e,e.d_desc),o=hA(e),n=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=n&&(n=s)):n=s=i+5,i+4<=n&&t!==-1?j5(e,t,i,r):e.strategy===eA||s===n?($i(e,(P5<<1)+(r?1:0),3),Pg(e,Gr,Ua)):($i(e,(rA<<1)+(r?1:0),3),fA(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Pg(e,e.dyn_ltree,e.dyn_dtree)),W5(e),r&&q5(e)},yA=(e,t,i)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=i,t===0?e.dyn_ltree[i*2]++:(e.matches++,t--,e.dyn_ltree[(Al[i]+jl+1)*2]++,e.dyn_dtree[H5(t)*2]++),e.sym_next===e.sym_end);var bA=mA,wA=j5,_A=vA,kA=yA,CA=gA,AA={_tr_init:bA,_tr_stored_block:wA,_tr_flush_block:_A,_tr_tally:kA,_tr_align:CA};const EA=(e,t,i,r)=>{let n=e&65535|0,s=e>>>16&65535|0,o=0;for(;i!==0;){o=i>2e3?2e3:i,i-=o;do n=n+t[r++]|0,s=s+n|0;while(--o);n%=65521,s%=65521}return n|s<<16|0};var xl=EA;const xA=()=>{let e,t=[];for(var i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[i]=e}return t},SA=new Uint32Array(xA()),TA=(e,t,i,r)=>{const n=SA,s=r+i;e^=-1;for(let o=r;o>>8^n[(e^t[o])&255];return e^-1};var Bt=TA,qs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},no={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:RA,_tr_stored_block:Uf,_tr_flush_block:NA,_tr_tally:Bn,_tr_align:IA}=AA,{Z_NO_FLUSH:On,Z_PARTIAL_FLUSH:$A,Z_FULL_FLUSH:PA,Z_FINISH:or,Z_BLOCK:Og,Z_OK:qt,Z_STREAM_END:Mg,Z_STREAM_ERROR:Dr,Z_DATA_ERROR:DA,Z_BUF_ERROR:yh,Z_DEFAULT_COMPRESSION:LA,Z_FILTERED:BA,Z_HUFFMAN_ONLY:yc,Z_RLE:OA,Z_FIXED:MA,Z_DEFAULT_STRATEGY:VA,Z_UNKNOWN:FA,Z_DEFLATED:nu}=no,zA=9,HA=15,UA=8,KA=29,WA=256,Kf=WA+1+KA,qA=30,jA=19,YA=2*Kf+1,XA=15,Ie=3,In=258,Lr=In+Ie+1,ZA=32,Jo=42,Y0=57,Wf=69,qf=73,jf=91,Yf=103,ps=113,Ea=666,bi=1,ca=2,js=3,da=4,GA=3,ms=(e,t)=>(e.msg=qs[t],t),Vg=e=>e*2-(e>4?9:0),Rn=e=>{let t=e.length;for(;--t>=0;)e[t]=0},QA=e=>{let t,i,r,n=e.w_size;t=e.hash_size,r=t;do i=e.head[--r],e.head[r]=i>=n?i-n:0;while(--t);t=n,r=t;do i=e.prev[--r],e.prev[r]=i>=n?i-n:0;while(--t)};let JA=(e,t,i)=>(t<{const t=e.state;let i=t.pending;i>e.avail_out&&(i=e.avail_out),i!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+i),e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,t.pending===0&&(t.pending_out=0))},qi=(e,t)=>{NA(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,zi(e.strm)},ze=(e,t)=>{e.pending_buf[e.pending++]=t},ba=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Xf=(e,t,i,r)=>{let n=e.avail_in;return n>r&&(n=r),n===0?0:(e.avail_in-=n,t.set(e.input.subarray(e.next_in,e.next_in+n),i),e.state.wrap===1?e.adler=xl(e.adler,t,n,i):e.state.wrap===2&&(e.adler=Bt(e.adler,t,n,i)),e.next_in+=n,e.total_in+=n,n)},Y5=(e,t)=>{let i=e.max_chain_length,r=e.strstart,n,s,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-Lr?e.strstart-(e.w_size-Lr):0,c=e.window,d=e.w_mask,u=e.prev,h=e.strstart+In;let f=c[r+o-1],m=c[r+o];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do if(n=t,!(c[n+o]!==m||c[n+o-1]!==f||c[n]!==c[r]||c[++n]!==c[r+1])){r+=2,n++;do;while(c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&ro){if(e.match_start=t,o=s,s>=a)break;f=c[r+o-1],m=c[r+o]}}while((t=u[t&d])>l&&--i!==0);return o<=e.lookahead?o:e.lookahead},ea=e=>{const t=e.w_size;let i,r,n;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Lr)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),QA(e),r+=t),e.strm.avail_in===0)break;if(i=Xf(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=i,e.lookahead+e.insert>=Ie)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=Mn(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=Mn(e,e.ins_h,e.window[n+Ie-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert{let i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,n,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_outn+e.strm.avail_in&&(r=n+e.strm.avail_in),r>s&&(r=s),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,zi(e.strm),n&&(n>r&&(n=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+n),e.strm.next_out),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n,e.block_start+=n,r-=n),r&&(Xf(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_waters&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(Xf(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,i=s>e.w_size?e.w_size:s,n=e.strstart-e.block_start,(n>=i||(n||t===or)&&t!==On&&e.strm.avail_in===0&&n<=s)&&(r=n>s?s:n,o=t===or&&e.strm.avail_in===0&&r===n?1:0,Uf(e,e.block_start,r,o),e.block_start+=r,zi(e.strm)),o?js:bi)},bh=(e,t)=>{let i,r;for(;;){if(e.lookahead=Ie&&(e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),i!==0&&e.strstart-i<=e.w_size-Lr&&(e.match_length=Y5(e,i)),e.match_length>=Ie)if(r=Bn(e,e.strstart-e.match_start,e.match_length-Ie),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ie){e.match_length--;do e.strstart++,e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+1]);else r=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(qi(e,!1),e.strm.avail_out===0))return bi}return e.insert=e.strstart{let i,r,n;for(;;){if(e.lookahead=Ie&&(e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Ie-1,i!==0&&e.prev_length4096)&&(e.match_length=Ie-1)),e.prev_length>=Ie&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-Ie,r=Bn(e,e.strstart-1-e.prev_match,e.prev_length-Ie),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Ie-1,e.strstart++,r&&(qi(e,!1),e.strm.avail_out===0))return bi}else if(e.match_available){if(r=Bn(e,0,e.window[e.strstart-1]),r&&qi(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return bi}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Bn(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let i,r,n,s;const o=e.window;for(;;){if(e.lookahead<=In){if(ea(e),e.lookahead<=In&&t===On)return bi;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Ie&&e.strstart>0&&(n=e.strstart-1,r=o[n],r===o[++n]&&r===o[++n]&&r===o[++n])){s=e.strstart+In;do;while(r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&ne.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ie?(i=Bn(e,1,e.match_length-Ie),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(qi(e,!1),e.strm.avail_out===0))return bi}return e.insert=0,t===or?(qi(e,!0),e.strm.avail_out===0?js:da):e.sym_next&&(qi(e,!1),e.strm.avail_out===0)?bi:ca},tE=(e,t)=>{let i;for(;;){if(e.lookahead===0&&(ea(e),e.lookahead===0)){if(t===On)return bi;break}if(e.match_length=0,i=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(qi(e,!1),e.strm.avail_out===0))return bi}return e.insert=0,t===or?(qi(e,!0),e.strm.avail_out===0?js:da):e.sym_next&&(qi(e,!1),e.strm.avail_out===0)?bi:ca};function Tr(e,t,i,r,n){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=r,this.func=n}const xa=[new Tr(0,0,0,0,X5),new Tr(4,4,8,4,bh),new Tr(4,5,16,8,bh),new Tr(4,6,32,32,bh),new Tr(4,4,16,16,lo),new Tr(8,16,32,32,lo),new Tr(8,16,128,128,lo),new Tr(8,32,128,256,lo),new Tr(32,128,258,1024,lo),new Tr(32,258,258,4096,lo)],iE=e=>{e.window_size=2*e.w_size,Rn(e.head),e.max_lazy_match=xa[e.level].max_lazy,e.good_match=xa[e.level].good_length,e.nice_match=xa[e.level].nice_length,e.max_chain_length=xa[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Ie-1,e.match_available=0,e.ins_h=0};function rE(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=nu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(YA*2),this.dyn_dtree=new Uint16Array((2*qA+1)*2),this.bl_tree=new Uint16Array((2*jA+1)*2),Rn(this.dyn_ltree),Rn(this.dyn_dtree),Rn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(XA+1),this.heap=new Uint16Array(2*Kf+1),Rn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Kf+1),Rn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Yl=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Jo&&t.status!==Y0&&t.status!==Wf&&t.status!==qf&&t.status!==jf&&t.status!==Yf&&t.status!==ps&&t.status!==Ea?1:0},Z5=e=>{if(Yl(e))return ms(e,Dr);e.total_in=e.total_out=0,e.data_type=FA;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Y0:t.wrap?Jo:ps,e.adler=t.wrap===2?0:1,t.last_flush=-2,RA(t),qt},G5=e=>{const t=Z5(e);return t===qt&&iE(e.state),t},nE=(e,t)=>Yl(e)||e.state.wrap!==2?Dr:(e.state.gzhead=t,qt),Q5=(e,t,i,r,n,s)=>{if(!e)return Dr;let o=1;if(t===LA&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),n<1||n>zA||i!==nu||r<8||r>15||t<0||t>9||s<0||s>MA||r===8&&o!==1)return ms(e,Dr);r===8&&(r=9);const a=new rE;return e.state=a,a.strm=e,a.status=Jo,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<Q5(e,t,nu,HA,UA,VA),oE=(e,t)=>{if(Yl(e)||t>Og||t<0)return e?ms(e,Dr):Dr;const i=e.state;if(!e.output||e.avail_in!==0&&!e.input||i.status===Ea&&t!==or)return ms(e,e.avail_out===0?yh:Dr);const r=i.last_flush;if(i.last_flush=t,i.pending!==0){if(zi(e),e.avail_out===0)return i.last_flush=-1,qt}else if(e.avail_in===0&&Vg(t)<=Vg(r)&&t!==or)return ms(e,yh);if(i.status===Ea&&e.avail_in!==0)return ms(e,yh);if(i.status===Jo&&i.wrap===0&&(i.status=ps),i.status===Jo){let n=nu+(i.w_bits-8<<4)<<8,s=-1;if(i.strategy>=yc||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,n|=s<<6,i.strstart!==0&&(n|=ZA),n+=31-n%31,ba(i,n),i.strstart!==0&&(ba(i,e.adler>>>16),ba(i,e.adler&65535)),e.adler=1,i.status=ps,zi(e),i.pending!==0)return i.last_flush=-1,qt}if(i.status===Y0){if(e.adler=0,ze(i,31),ze(i,139),ze(i,8),i.gzhead)ze(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ze(i,i.gzhead.time&255),ze(i,i.gzhead.time>>8&255),ze(i,i.gzhead.time>>16&255),ze(i,i.gzhead.time>>24&255),ze(i,i.level===9?2:i.strategy>=yc||i.level<2?4:0),ze(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(ze(i,i.gzhead.extra.length&255),ze(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Bt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Wf;else if(ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,i.level===9?2:i.strategy>=yc||i.level<2?4:0),ze(i,GA),i.status=ps,zi(e),i.pending!==0)return i.last_flush=-1,qt}if(i.status===Wf){if(i.gzhead.extra){let n=i.pending,s=(i.gzhead.extra.length&65535)-i.gzindex;for(;i.pending+s>i.pending_buf_size;){let a=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+a),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex+=a,zi(e),i.pending!==0)return i.last_flush=-1,qt;n=0,s-=a}let o=new Uint8Array(i.gzhead.extra);i.pending_buf.set(o.subarray(i.gzindex,i.gzindex+s),i.pending),i.pending+=s,i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=qf}if(i.status===qf){if(i.gzhead.name){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),zi(e),i.pending!==0)return i.last_flush=-1,qt;n=0}i.gzindexn&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=jf}if(i.status===jf){if(i.gzhead.comment){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),zi(e),i.pending!==0)return i.last_flush=-1,qt;n=0}i.gzindexn&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n))}i.status=Yf}if(i.status===Yf){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(zi(e),i.pending!==0))return i.last_flush=-1,qt;ze(i,e.adler&255),ze(i,e.adler>>8&255),e.adler=0}if(i.status=ps,zi(e),i.pending!==0)return i.last_flush=-1,qt}if(e.avail_in!==0||i.lookahead!==0||t!==On&&i.status!==Ea){let n=i.level===0?X5(i,t):i.strategy===yc?tE(i,t):i.strategy===OA?eE(i,t):xa[i.level].func(i,t);if((n===js||n===da)&&(i.status=Ea),n===bi||n===js)return e.avail_out===0&&(i.last_flush=-1),qt;if(n===ca&&(t===$A?IA(i):t!==Og&&(Uf(i,0,0,!1),t===PA&&(Rn(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),zi(e),e.avail_out===0))return i.last_flush=-1,qt}return t!==or?qt:i.wrap<=0?Mg:(i.wrap===2?(ze(i,e.adler&255),ze(i,e.adler>>8&255),ze(i,e.adler>>16&255),ze(i,e.adler>>24&255),ze(i,e.total_in&255),ze(i,e.total_in>>8&255),ze(i,e.total_in>>16&255),ze(i,e.total_in>>24&255)):(ba(i,e.adler>>>16),ba(i,e.adler&65535)),zi(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?qt:Mg)},aE=e=>{if(Yl(e))return Dr;const t=e.state.status;return e.state=null,t===ps?ms(e,DA):qt},lE=(e,t)=>{let i=t.length;if(Yl(e))return Dr;const r=e.state,n=r.wrap;if(n===2||n===1&&r.status!==Jo||r.lookahead)return Dr;if(n===1&&(e.adler=xl(e.adler,t,i,0)),r.wrap=0,i>=r.w_size){n===0&&(Rn(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(i-r.w_size,i),0),t=l,i=r.w_size}const s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=i,e.next_in=0,e.input=t,ea(r);r.lookahead>=Ie;){let l=r.strstart,c=r.lookahead-(Ie-1);do r.ins_h=Mn(r,r.ins_h,r.window[l+Ie-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--c);r.strstart=l,r.lookahead=Ie-1,ea(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Ie-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=n,qt};var cE=sE,dE=Q5,uE=G5,hE=Z5,fE=nE,pE=oE,mE=aE,gE=lE,vE="pako deflate (from Nodeca project)",Ka={deflateInit:cE,deflateInit2:dE,deflateReset:uE,deflateResetKeep:hE,deflateSetHeader:fE,deflate:pE,deflateEnd:mE,deflateSetDictionary:gE,deflateInfo:vE};const yE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var bE=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const i=t.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(const r in i)yE(i,r)&&(e[r]=i[r])}}return e},wE=e=>{let t=0;for(let r=0,n=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Sl[254]=Sl[254]=1;var _E=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,i,r,n,s,o=e.length,a=0;for(n=0;n>>6,t[s++]=128|i&63):i<65536?(t[s++]=224|i>>>12,t[s++]=128|i>>>6&63,t[s++]=128|i&63):(t[s++]=240|i>>>18,t[s++]=128|i>>>12&63,t[s++]=128|i>>>6&63,t[s++]=128|i&63);return t};const kE=(e,t)=>{if(t<65534&&e.subarray&&J5)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let i="";for(let r=0;r{const i=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,n;const s=new Array(i*2);for(n=0,r=0;r4){s[n++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r1){s[n++]=65533;continue}o<65536?s[n++]=o:(o-=65536,s[n++]=55296|o>>10&1023,s[n++]=56320|o&1023)}return kE(s,n)},AE=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let i=t-1;for(;i>=0&&(e[i]&192)===128;)i--;return i<0||i===0?t:i+Sl[e[i]]>t?i:t},Tl={string2buf:_E,buf2string:CE,utf8border:AE};function EE(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var e4=EE;const t4=Object.prototype.toString,{Z_NO_FLUSH:xE,Z_SYNC_FLUSH:SE,Z_FULL_FLUSH:TE,Z_FINISH:RE,Z_OK:wd,Z_STREAM_END:NE,Z_DEFAULT_COMPRESSION:IE,Z_DEFAULT_STRATEGY:$E,Z_DEFLATED:PE}=no;function Xl(e){this.options=su.assign({level:IE,method:PE,chunkSize:16384,windowBits:15,memLevel:8,strategy:$E},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e4,this.strm.avail_out=0;let i=Ka.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(i!==wd)throw new Error(qs[i]);if(t.header&&Ka.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Tl.string2buf(t.dictionary):t4.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,i=Ka.deflateSetDictionary(this.strm,r),i!==wd)throw new Error(qs[i]);this._dict_set=!0}}Xl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize;let n,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?RE:xE,typeof e=="string"?i.input=Tl.string2buf(e):t4.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){if(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),(s===SE||s===TE)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(n=Ka.deflate(i,s),n===NE)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Ka.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===wd;if(i.avail_out===0){this.onData(i.output);continue}if(s>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(i.avail_in===0)break}return!0};Xl.prototype.onData=function(e){this.chunks.push(e)};Xl.prototype.onEnd=function(e){e===wd&&(this.result=su.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function X0(e,t){const i=new Xl(t);if(i.push(e,!0),i.err)throw i.msg||qs[i.err];return i.result}function DE(e,t){return t=t||{},t.raw=!0,X0(e,t)}function LE(e,t){return t=t||{},t.gzip=!0,X0(e,t)}var BE=Xl,OE=X0,ME=DE,VE=LE,FE=no,zE={Deflate:BE,deflate:OE,deflateRaw:ME,gzip:VE,constants:FE};const bc=16209,HE=16191;var UE=function(t,i){let r,n,s,o,a,l,c,d,u,h,f,m,b,w,_,g,p,y,C,E,A,S,x,k;const T=t.state;r=t.next_in,x=t.input,n=r+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(i-t.avail_out),a=s+(t.avail_out-257),l=T.dmax,c=T.wsize,d=T.whave,u=T.wnext,h=T.window,f=T.hold,m=T.bits,b=T.lencode,w=T.distcode,_=(1<>>24,f>>>=y,m-=y,y=p>>>16&255,y===0)k[s++]=p&65535;else if(y&16){C=p&65535,y&=15,y&&(m>>=y,m-=y),m<15&&(f+=x[r++]<>>24,f>>>=y,m-=y,y=p>>>16&255,y&16){if(E=p&65535,y&=15,ml){t.msg="invalid distance too far back",T.mode=bc;break e}if(f>>>=y,m-=y,y=s-o,E>y){if(y=E-y,y>d&&T.sane){t.msg="invalid distance too far back",T.mode=bc;break e}if(A=0,S=h,u===0){if(A+=c-y,y2;)k[s++]=S[A++],k[s++]=S[A++],k[s++]=S[A++],C-=3;C&&(k[s++]=S[A++],C>1&&(k[s++]=S[A++]))}else{A=s-E;do k[s++]=k[A++],k[s++]=k[A++],k[s++]=k[A++],C-=3;while(C>2);C&&(k[s++]=k[A++],C>1&&(k[s++]=k[A++]))}}else if(y&64){t.msg="invalid distance code",T.mode=bc;break e}else{p=w[(p&65535)+(f&(1<>3,r-=C,m-=C<<3,f&=(1<{const l=a.bits;let c=0,d=0,u=0,h=0,f=0,m=0,b=0,w=0,_=0,g=0,p,y,C,E,A,S=null,x;const k=new Uint16Array(co+1),T=new Uint16Array(co+1);let N=null,I,P,B;for(c=0;c<=co;c++)k[c]=0;for(d=0;d=1&&k[h]===0;h--);if(f>h&&(f=h),h===0)return n[s++]=1<<24|64<<16|0,n[s++]=1<<24|64<<16|0,a.bits=1,0;for(u=1;u0&&(e===Hg||h!==1))return-1;for(T[1]=0,c=1;cFg||e===Ug&&_>zg)return 1;for(;;){I=c-b,o[d]+1=x?(P=N[o[d]-x],B=S[o[d]-x]):(P=96,B=0),p=1<>b)+y]=I<<24|P<<16|B|0;while(y!==0);for(p=1<>=1;if(p!==0?(g&=p-1,g+=p):g=0,d++,--k[c]===0){if(c===h)break;c=t[i+o[d]]}if(c>f&&(g&E)!==C){for(b===0&&(b=f),A+=u,m=c-b,w=1<Fg||e===Ug&&_>zg)return 1;C=g&E,n[C]=f<<24|m<<16|A-s|0}}return g!==0&&(n[A+g]=c-b<<24|64<<16|0),a.bits=f,0};var Wa=YE;const XE=0,i4=1,r4=2,{Z_FINISH:Kg,Z_BLOCK:ZE,Z_TREES:wc,Z_OK:Ys,Z_STREAM_END:GE,Z_NEED_DICT:QE,Z_STREAM_ERROR:mr,Z_DATA_ERROR:n4,Z_MEM_ERROR:s4,Z_BUF_ERROR:JE,Z_DEFLATED:Wg}=no,ou=16180,qg=16181,jg=16182,Yg=16183,Xg=16184,Zg=16185,Gg=16186,Qg=16187,Jg=16188,ev=16189,_d=16190,Wr=16191,_h=16192,tv=16193,kh=16194,iv=16195,rv=16196,nv=16197,sv=16198,_c=16199,kc=16200,ov=16201,av=16202,lv=16203,cv=16204,dv=16205,Ch=16206,uv=16207,hv=16208,tt=16209,o4=16210,a4=16211,ex=852,tx=592,ix=15,rx=ix,fv=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function nx(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const so=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modea4?1:0},l4=e=>{if(so(e))return mr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=ou,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(ex),t.distcode=t.distdyn=new Int32Array(tx),t.sane=1,t.back=-1,Ys},c4=e=>{if(so(e))return mr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,l4(e)},d4=(e,t)=>{let i;if(so(e))return mr;const r=e.state;return t<0?(i=0,t=-t):(i=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?mr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=i,r.wbits=t,c4(e))},u4=(e,t)=>{if(!e)return mr;const i=new nx;e.state=i,i.strm=e,i.window=null,i.mode=ou;const r=d4(e,t);return r!==Ys&&(e.state=null),r},sx=e=>u4(e,rx);let pv=!0,Ah,Eh;const ox=e=>{if(pv){Ah=new Int32Array(512),Eh=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Wa(i4,e.lens,0,288,Ah,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Wa(r4,e.lens,0,32,Eh,0,e.work,{bits:5}),pv=!1}e.lencode=Ah,e.lenbits=9,e.distcode=Eh,e.distbits=5},h4=(e,t,i,r)=>{let n;const s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(i-s.wsize,i),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>r&&(n=r),s.window.set(t.subarray(i-r,i-r+n),s.wnext),r-=n,r?(s.window.set(t.subarray(i-r,i),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave{let i,r,n,s,o,a,l,c,d,u,h,f,m,b,w=0,_,g,p,y,C,E,A,S;const x=new Uint8Array(4);let k,T;const N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(so(e)||!e.output||!e.input&&e.avail_in!==0)return mr;i=e.state,i.mode===Wr&&(i.mode=_h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,u=a,h=l,S=Ys;e:for(;;)switch(i.mode){case ou:if(i.wrap===0){i.mode=_h;break}for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=Bt(i.check,x,2,0),c=0,d=0,i.mode=qg;break}if(i.head&&(i.head.done=!1),!(i.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",i.mode=tt;break}if((c&15)!==Wg){e.msg="unknown compression method",i.mode=tt;break}if(c>>>=4,d-=4,A=(c&15)+8,i.wbits===0&&(i.wbits=A),A>15||A>i.wbits){e.msg="invalid window size",i.mode=tt;break}i.dmax=1<>8&1),i.flags&512&&i.wrap&4&&(x[0]=c&255,x[1]=c>>>8&255,i.check=Bt(i.check,x,2,0)),c=0,d=0,i.mode=jg;case jg:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>8&255,x[2]=c>>>16&255,x[3]=c>>>24&255,i.check=Bt(i.check,x,4,0)),c=0,d=0,i.mode=Yg;case Yg:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>8),i.flags&512&&i.wrap&4&&(x[0]=c&255,x[1]=c>>>8&255,i.check=Bt(i.check,x,2,0)),c=0,d=0,i.mode=Xg;case Xg:if(i.flags&1024){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=Bt(i.check,x,2,0)),c=0,d=0}else i.head&&(i.head.extra=null);i.mode=Zg;case Zg:if(i.flags&1024&&(f=i.length,f>a&&(f=a),f&&(i.head&&(A=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(r.subarray(s,s+f),A)),i.flags&512&&i.wrap&4&&(i.check=Bt(i.check,r,f,s)),a-=f,s+=f,i.length-=f),i.length))break e;i.length=0,i.mode=Gg;case Gg:if(i.flags&2048){if(a===0)break e;f=0;do A=r[s+f++],i.head&&A&&i.length<65536&&(i.head.name+=String.fromCharCode(A));while(A&&f>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=Wr;break;case ev:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>=d&7,d-=d&7,i.mode=Ch;break}for(;d<3;){if(a===0)break e;a--,c+=r[s++]<>>=1,d-=1,c&3){case 0:i.mode=tv;break;case 1:if(ox(i),i.mode=_c,t===wc){c>>>=2,d-=2;break e}break;case 2:i.mode=rv;break;case 3:e.msg="invalid block type",i.mode=tt}c>>>=2,d-=2;break;case tv:for(c>>>=d&7,d-=d&7;d<32;){if(a===0)break e;a--,c+=r[s++]<>>16^65535)){e.msg="invalid stored block lengths",i.mode=tt;break}if(i.length=c&65535,c=0,d=0,i.mode=kh,t===wc)break e;case kh:i.mode=iv;case iv:if(f=i.length,f){if(f>a&&(f=a),f>l&&(f=l),f===0)break e;n.set(r.subarray(s,s+f),o),a-=f,s+=f,l-=f,o+=f,i.length-=f;break}i.mode=Wr;break;case rv:for(;d<14;){if(a===0)break e;a--,c+=r[s++]<>>=5,d-=5,i.ndist=(c&31)+1,c>>>=5,d-=5,i.ncode=(c&15)+4,c>>>=4,d-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=tt;break}i.have=0,i.mode=nv;case nv:for(;i.have>>=3,d-=3}for(;i.have<19;)i.lens[N[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,k={bits:i.lenbits},S=Wa(XE,i.lens,0,19,i.lencode,0,i.work,k),i.lenbits=k.bits,S){e.msg="invalid code lengths set",i.mode=tt;break}i.have=0,i.mode=sv;case sv:for(;i.have>>24,g=w>>>16&255,p=w&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=_,d-=_,i.lens[i.have++]=p;else{if(p===16){for(T=_+2;d>>=_,d-=_,i.have===0){e.msg="invalid bit length repeat",i.mode=tt;break}A=i.lens[i.have-1],f=3+(c&3),c>>>=2,d-=2}else if(p===17){for(T=_+3;d>>=_,d-=_,A=0,f=3+(c&7),c>>>=3,d-=3}else{for(T=_+7;d>>=_,d-=_,A=0,f=11+(c&127),c>>>=7,d-=7}if(i.have+f>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=tt;break}for(;f--;)i.lens[i.have++]=A}}if(i.mode===tt)break;if(i.lens[256]===0){e.msg="invalid code -- missing end-of-block",i.mode=tt;break}if(i.lenbits=9,k={bits:i.lenbits},S=Wa(i4,i.lens,0,i.nlen,i.lencode,0,i.work,k),i.lenbits=k.bits,S){e.msg="invalid literal/lengths set",i.mode=tt;break}if(i.distbits=6,i.distcode=i.distdyn,k={bits:i.distbits},S=Wa(r4,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,k),i.distbits=k.bits,S){e.msg="invalid distances set",i.mode=tt;break}if(i.mode=_c,t===wc)break e;case _c:i.mode=kc;case kc:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,i.hold=c,i.bits=d,UE(e,h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,i.mode===Wr&&(i.back=-1);break}for(i.back=0;w=i.lencode[c&(1<>>24,g=w>>>16&255,p=w&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>y)],_=w>>>24,g=w>>>16&255,p=w&65535,!(y+_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=y,d-=y,i.back+=y}if(c>>>=_,d-=_,i.back+=_,i.length=p,g===0){i.mode=dv;break}if(g&32){i.back=-1,i.mode=Wr;break}if(g&64){e.msg="invalid literal/length code",i.mode=tt;break}i.extra=g&15,i.mode=ov;case ov:if(i.extra){for(T=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=av;case av:for(;w=i.distcode[c&(1<>>24,g=w>>>16&255,p=w&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>y)],_=w>>>24,g=w>>>16&255,p=w&65535,!(y+_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=y,d-=y,i.back+=y}if(c>>>=_,d-=_,i.back+=_,g&64){e.msg="invalid distance code",i.mode=tt;break}i.offset=p,i.extra=g&15,i.mode=lv;case lv:if(i.extra){for(T=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=tt;break}i.mode=cv;case cv:if(l===0)break e;if(f=h-l,i.offset>f){if(f=i.offset-f,f>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=tt;break}f>i.wnext?(f-=i.wnext,m=i.wsize-f):m=i.wnext-f,f>i.length&&(f=i.length),b=i.window}else b=n,m=o-i.offset,f=i.length;f>l&&(f=l),l-=f,i.length-=f;do n[o++]=b[m++];while(--f);i.length===0&&(i.mode=kc);break;case dv:if(l===0)break e;n[o++]=i.length,l--,i.mode=kc;break;case Ch:if(i.wrap){for(;d<32;){if(a===0)break e;a--,c|=r[s++]<{if(so(e))return mr;let t=e.state;return t.window&&(t.window=null),e.state=null,Ys},cx=(e,t)=>{if(so(e))return mr;const i=e.state;return i.wrap&2?(i.head=t,t.done=!1,Ys):mr},dx=(e,t)=>{const i=t.length;let r,n,s;return so(e)||(r=e.state,r.wrap!==0&&r.mode!==_d)?mr:r.mode===_d&&(n=1,n=xl(n,t,i,0),n!==r.check)?n4:(s=h4(e,t,i,i),s?(r.mode=o4,s4):(r.havedict=1,Ys))};var ux=c4,hx=d4,fx=l4,px=sx,mx=u4,gx=ax,vx=lx,yx=cx,bx=dx,wx="pako inflate (from Nodeca project)",Qr={inflateReset:ux,inflateReset2:hx,inflateResetKeep:fx,inflateInit:px,inflateInit2:mx,inflate:gx,inflateEnd:vx,inflateGetHeader:yx,inflateSetDictionary:bx,inflateInfo:wx};function _x(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var kx=_x;const f4=Object.prototype.toString,{Z_NO_FLUSH:Cx,Z_FINISH:Ax,Z_OK:Rl,Z_STREAM_END:xh,Z_NEED_DICT:Sh,Z_STREAM_ERROR:Ex,Z_DATA_ERROR:mv,Z_MEM_ERROR:xx}=no;function Zl(e){this.options=su.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e4,this.strm.avail_out=0;let i=Qr.inflateInit2(this.strm,t.windowBits);if(i!==Rl)throw new Error(qs[i]);if(this.header=new kx,Qr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Tl.string2buf(t.dictionary):f4.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=Qr.inflateSetDictionary(this.strm,t.dictionary),i!==Rl)))throw new Error(qs[i])}Zl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Ax:Cx,f4.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),s=Qr.inflate(i,o),s===Sh&&n&&(s=Qr.inflateSetDictionary(i,n),s===Rl?s=Qr.inflate(i,o):s===mv&&(s=Sh));i.avail_in>0&&s===xh&&i.state.wrap>0&&e[i.next_in]!==0;)Qr.inflateReset(i),s=Qr.inflate(i,o);switch(s){case Ex:case mv:case Sh:case xx:return this.onEnd(s),this.ended=!0,!1}if(a=i.avail_out,i.next_out&&(i.avail_out===0||s===xh))if(this.options.to==="string"){let l=Tl.utf8border(i.output,i.next_out),c=i.next_out-l,d=Tl.buf2string(i.output,l);i.next_out=c,i.avail_out=r-c,c&&i.output.set(i.output.subarray(l,l+c),0),this.onData(d)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(!(s===Rl&&a===0)){if(s===xh)return s=Qr.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(i.avail_in===0)break}}return!0};Zl.prototype.onData=function(e){this.chunks.push(e)};Zl.prototype.onEnd=function(e){e===Rl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=su.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Z0(e,t){const i=new Zl(t);if(i.push(e),i.err)throw i.msg||qs[i.err];return i.result}function Sx(e,t){return t=t||{},t.raw=!0,Z0(e,t)}var Tx=Zl,Rx=Z0,Nx=Sx,Ix=Z0,$x=no,Px={Inflate:Tx,inflate:Rx,inflateRaw:Nx,ungzip:Ix,constants:$x};const{Deflate:Dx,deflate:Lx,deflateRaw:Bx,gzip:Ox}=zE,{Inflate:Mx,inflate:Vx,inflateRaw:Fx,ungzip:zx}=Px;var Hx=Dx,Ux=Lx,Kx=Bx,Wx=Ox,qx=Mx,jx=Vx,Yx=Fx,Xx=zx,Zx=no,au={Deflate:Hx,deflate:Ux,deflateRaw:Kx,gzip:Wx,Inflate:qx,inflate:jx,inflateRaw:Yx,ungzip:Xx,constants:Zx},qe=new Uint8Array([0,64,128,192,224]),je=new Uint8Array([2,2,2,3,3]),G0=['": "','": ',": -\0[]\\;' @*&?!^|\r~\`\0\0\0`,"\0,.01925-/34678() =+$%#\0\0\0\0\0"],Vc=new Array(94),ja=new Uint8Array([0,64,96,128,144,160,176,192,208,216,224,228,232,236,238,240,242,244,246,247,248,249,250,251,252,253,254,255]),Ya=new Uint8Array([2,3,3,4,4,4,4,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8]),gv=new Uint8Array([57,58,59,87,88,89]),Ti=5;const Gx=90,vv=91,Qx=39,Jx=40,eS=54,tS=46,yv=81,Zf=248,Gf=5,iS=128,rS=2,nS=0,p4=2,m4=0,g4=6,v4=4,bv=33;function sS(e,t,i){for(var r=0;r32&&(Vc[i-bv]=(e<<5)+t,i>=97&&i<=122&&(Vc[i-bv-32]=(e<<5)+t))}wv=1}}var oS=new Uint8Array([128,192,224,240,248,252,254,255]);function ue(e,t,i,r,n){for(var s,o,a,l;n>0;){if(s=i%8,o=n,a=r&oS[o-1],a>>=s,o+s>8&&(o=8-s),l=i/8,l<0||t<=l)return-1;s==0?e[i>>3]=a:e[i>>3]|=a,r<<=o,i+=o,n-=o}return i}function gi(e,t,i,r){return r==it?(i=ue(e,t,i,Zf,Gf),i=ue(e,t,i,iS,rS)):i=ue(e,t,i,nS,p4),i}function rs(e,t,i,r,n,s,o){var a=r>>5,l=r&31;if(o[a]==0&&a!=Re)return[i,n];switch(a){case Re:n!=Re&&(i=gi(e,t,i,n),i=ue(e,t,i,s[Re],o[Re]),n=Re);break;case qa:i=gi(e,t,i,n),i=ue(e,t,i,s[qa],o[qa]);break;case yt:n!=yt&&(i=gi(e,t,i,n),i=ue(e,t,i,s[yt],o[yt]),kd[a].charCodeAt(l)>=48&&kd[a].charCodeAt(l)<=57&&(n=yt))}return[ue(e,t,i,ja[l],Ya[l]),n]}const gs=new Uint8Array([2,4,7,11,16]),Qf=[4,20,148,2196,67732],Cd=new Uint8Array([1,130,195,228,244]);function tn(e,t,i,r){for(var n=0;n<5;n++)if(r0?Qf[n-1]:0)<<16-gs[n];return gs[n]>8?(i=ue(e,t,i,s>>8,8),i=ue(e,t,i,s&255,gs[n]-8)):i=ue(e,t,i,s>>8,gs[n]),i}return i}const sr=new Uint8Array([6,12,14,16,21]),b4=[0,64,4160,20544,86080];function aS(e,t,i,r,n){const s=new Uint8Array([1,130,195,228,245,253]);var o=0,a=r-n;a<0&&(a=-a);for(var l=0;l<5;l++)if(o+=1<r?128:0,1);var c=a-b4[l];return sr[l]>16?(c<<=24-sr[l],i=ue(e,t,i,c>>16,8),i=ue(e,t,i,c>>8&255,8),i=ue(e,t,i,c&255,sr[l]-16)):sr[l]>8?(c<<=16-sr[l],i=ue(e,t,i,c>>8,8),i=ue(e,t,i,c&255,sr[l]-8)):(c<<=8-sr[l],i=ue(e,t,i,c&255,sr[l])),i}return i}function Th(e,t,i){var r=0;if(typeof e=="string")return r=e.codePointAt(i),[r,r===e.charCodeAt(i)?1:2];var n=0;return i=0;c--){for(d=i;d>6==2;)d--;if(d-i>Ti-1){var f=d-i-Ti,m=i-c-Ti+1;f>h&&(h=f,u=m)}}return h>0?(s=gi(r,n,s,o),s=ue(r,n,s,a[Xs],l[Xs]),s=tn(r,n,s,h),s=tn(r,n,s,u),i+=h+Ti,i--,[i,s]):[-i,s]}function cS(e,t,i,r,n,s,o,a,l,c,d){var u=s,h=0,f=0,m=0,b=0,w=0;do for(var _,g,p=o[a-b],y=p.length,C=b==0?i:y;w>6==2;)g--;if(g-w>=Ti){if(h>0){if(w>f)continue;s=u}h=g-w,f=w,m=b,s=gi(r,n,s,l),s=ue(r,n,s,c[Xs],d[Xs]),s=tn(r,n,s,h-Ti),s=tn(r,n,s,f),s=tn(r,n,s,m),w+=h}}while(b++0?(i+=h,i--,[i,s]):[-i,s]}function Rh(e){return e>=48&&e<=57?e-48<<4:e>=65&&e<=70?e-65+10<<4:e>=97&&e<=102?e-97+10<<4:0}const Yr=0,Nr=1,ta=2,Jf=3;function Cc(e){return e>=48&&e<=57?Yr:e>=97&&e<=102?Nr:e>=65&&e<=70?ta:Jf}function Ac(e,t,i,r,n,s){return i=gi(e,t,i,r),i=ue(e,t,i,n[yt],s[yt]),i=ue(e,t,i,0,2),i}function dS(e,t,i,r,n,s,o){return o[Re]?(yt!=r&&(i=gi(e,t,i,r),i=ue(e,t,i,s[yt],o[yt])),i=ue(e,t,i,ja[vv&31],Ya[vv&31])):i=ue(e,t,i,m4,n?v4:g4),i=ue(e,t,i,i==0||e[(i-1)/8]<<(i-1&7)>=0?0:255,8-i%8&7),i}function uS(e,t,i){if(i)return e===t;if(e.length!==t.length)return!1;for(var r=0;r0&&c0)continue;if(c<0&&u<0)return p+1;c=-c}else{if([c,u]=lS(e,t,c,i,p,u,l,r,n),c>0)continue;if(c<0&&u<0)return p+1;c=-c}if(h=e[c],c>0&&t>4&&c0&&h<=(y?"~":126)&&h==e[c-1]&&h==e[c+1]&&h==e[c+2]&&h==e[c+3]){for(var C=c+4;C0){var E=y?"-":45,A=Yr;if(e[c+8]===E&&e[c+13]===E&&e[c+18]===E&&e[c+23]===E){for(var S=c;S0){var A=Yr,T=0;do{var x=y?e.charCodeAt(c+T):e[c+T],k=Cc(x);if(k==Jf||a)break;if(k!=Yr){if(A!=Yr&&A!=k)break;A=k}T++}while(c+T10&&A==Yr&&(A=Nr),(A==Nr||A==ta)&&T>3){u=Ac(i,p,u,l,r,n),u=ue(i,p,u,A==Nr?128:224,A==Nr?2:4),u=tn(i,p,u,T);do{var x=y?e.charCodeAt(c):e[c];u=ue(i,p,u,Rh(x),4),c++}while(--T>0);c--;continue}}if(o!=null&&o!=null){var N;for(N=0;N<5;N++)if(typeof o[N]=="string"){for(var I=o[N].length,P=0;P(B==="r"?55:B==="t"?51:49))break}else if(B.charCodeAt(0)!==h)break}if(P/I>.66){I=I-P,u=Ac(i,p,u,l,r,n),u=ue(i,p,u,0,1),u=ue(i,p,u,Cd[N]&248,Cd[N]&7),u=tn(i,p,u,I);for(var O=0;O=0&&c<=t-H&&n[gv[N]>>5]&&uS(s[N].slice(0,H),e.slice(c,c+H),y)){[u,l]=rs(i,p,u,gv[N],l,r,n),c+=H,c--;break}}if(N<6)continue}if(h=y?e.charCodeAt(c):e[c],b=!1,h>=65&&h<=90?b=!0:w&&(w=!1,u=gi(i,p,u,l),u=ue(i,p,u,r[Re],n[Re]),l=Re),b&&!w&&(l==yt&&(u=gi(i,p,u,l),u=ue(i,p,u,r[Re],n[Re]),l=Re),u=gi(i,p,u,l),u=ue(i,p,u,r[Re],n[Re]),l==it&&(l=Re,u=gi(i,p,u,l),u=ue(i,p,u,r[Re],n[Re]))),f=0,c+1=32&&h<=126){if(b&&!w){for(d=c+4;d>=c&&d90)break}d==c-1&&(u=gi(i,p,u,l),u=ue(i,p,u,r[Re],n[Re]),l=Re,w=!0)}if(l==it){var oe=" .,".indexOf(String.fromCharCode(h));if(oe!=-1){u=ue(i,p,u,Zf,Gf),u=ue(i,p,u,hS[oe],fS[oe]);continue}}h-=32,w&&b&&(h+=32),h===0?l==yt?u=ue(i,p,u,ja[yv&31],Ya[yv&31]):u=ue(i,p,u,ja[1],Ya[1]):(h=h-1,[u,l]=rs(i,p,u,Vc[h],l,r,n))}else if(h===13&&f===10)[u,l]=rs(i,p,u,Jx,l,r,n),c++;else if(h===10)l==it?(u=ue(i,p,u,Zf,Gf),u=ue(i,p,u,240,4)):[u,l]=rs(i,p,u,Qx,l,r,n);else if(h===13)[u,l]=rs(i,p,u,eS,l,r,n);else if(h===9)[u,l]=rs(i,p,u,tS,l,r,n);else{var ye,F,W;if([ye,F]=Th(e,t,c),ye>0)c+=F,l!=it&&([W,F]=Th(e,t,c),W>0?(l!=Re&&(u=gi(i,p,u,l),u=ue(i,p,u,r[Re],n[Re])),u=gi(i,p,u,l),u=ue(i,p,u,r[Re],n[Re]),u=ue(i,p,u,ja[1],Ya[1]),l=it):(u=gi(i,p,u,l),u=ue(i,p,u,r[it],n[it]))),u=aS(i,p,u,ye,m),m=ye,c--;else{for(var Z=1,K=c+1;K0||K0);c--}}}{var xe=(u+7)/8;return u=dS(i,xe,u,l,w,r,n),xe}}function nt(e,t,i,r=G0){let n=new Uint8Array(2048),s,o;return s=Ec(e,t,n,qe,je,r,Ye,!1),o=Ec(e,t,n,qe,je,r,Ye,!0),n=void 0,s>=o?Ec(e,t,i,qe,je,r,Ye,!0):Ec(e,t,i,qe,je,r,Ye,!1)}function Q0(e,t){return e[t>>3]&128>>t%8}function J0(e,t,i){var r=i&7,n=i>>3;t>>=3;var s=e[n]<>8-r:s|=255>>8-r,[s,i]}const pS=5,mS=new Uint8Array([127,191,223,239,255]),gS=new Uint8Array([0,4,8,12,20]),vS=new Uint8Array([127,63,31,15,15]),yS=new Uint8Array([5,4,3,1,0]),bS=new Uint8Array([32,32,65,66,99,100,101,102,103,103,136,137,170,170,171,171,172,172,205,206,207,207,208,208,209,209,242,243,244,245,246,247,248,249,250,251]);function Nh(e,t,i){if(i>yS[n])];return i+=(s>>5)+1,i>t?[99,i]:[s&31,i]}while(++n0&&(s&wS[n[o]-1])==r[o])return i+=n[o],[o,i]}return[99,i]}function Nl(e,t,i,r){for(var n=0;i0;)if(n++,i++,n==r)return[n,i];return i>=t?[99,i]:(i++,[n,i])}function Xa(e,t,i,r){for(var n=0;r-- >0&&i0?1<=i)return[-1,t];var n=Xa(e,i,t,gs[r])+(r>0?Qf[r-1]:0);return t+=gs[r],[n,t]}function _S(e,t,i){var r=0;if([r,t]=Nl(e,i,t,5),r==99)return[2147483491,t];if(r==5)return[r,t]=Nl(e,i,t,4),[2147483392+r,t];if(r>=0){var n=t=i)return[2147483491,t];var s=Xa(e,i,t,sr[r]);return s+=b4[r],t+=sr[r],[n>0?-s:s,t]}return[0,t]}function _v(e,t,i,r,n,s,o,a,l,c,d){var u=0;if([u,n]=rn(e,n,t),u+=Ti,u=i.length);b++)i[r]=m[h+b],r++;return[n,r]}function kv(e,t,i,r,n){var s=0;if([s,n]=rn(e,n,t),s+=Ti,s=i.length);a++)i[r]=i[r-o],r++;return[n,r]}function Cv(e,t){return e>=0&&e<=9?String.fromCharCode(48+e):t>6),e[t++]=128+(i&63)):i<65536?(e[t++]=224+(i>>12),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)):(e[t++]=240+(i>>18),e[t++]=128+(i>>12&63),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)),t}function vr(e,t,i){return e==null?t+=i:t=e.length);r++)e[t++]=i.charCodeAt(r);return t}function Qe(e,t,i,r,n,s,o){var a,l,c,d,u,h=null,f;y4(),l=1,a=c=Re,u=0;var m=0;e instanceof Array&&(h=e,f=t,e=h[f],t=e.length),t<<=3;for(var b=i==null?"":0;l>8==8388607){var g=_&255;if(g==99)break;switch(g){case 0:b=vr(i,b," ");continue;case 1:if([c,l]=Ih(e,t,l,r,n),c==99){l=t;continue}if(c==it||c==Re){a=c;continue}if(c==Xs){if(h==null?[l,b]=kv(e,t,i,b,l):[l,b]=_v(e,t,i,b,l,h,f,r,n,s,o),l<0)return b;c=a;continue}break;case 2:b=vr(i,b,",");continue;case 3:b=vr(i,b,".");continue;case 4:b=vr(i,b,` -`);continue}}else m+=_,m>0&&(i==null?b+=String.fromCodePoint(m):b=kS(i,b,m));if(a==it&&c==it)continue}else c=a;var p="",y=u;if([d,l]=Nh(e,t,l),d==99||c==99){l=w;break}if(d==0&&c!=qa){if(l>=t)break;if((c!=yt||a!=it)&&([c,l]=Ih(e,t,l,r,n),c==99||l>=t)){l=w;break}if(c==Re)if(a==Re){if(n[Re]==0&&m4==(J0(e,t,l-p4)&255<<8-(u?v4:g4)))break;if(u){y=u=0;continue}if([d,l]=Nh(e,t,l),d==99){l=w;break}if(d==0){if([c,l]=Ih(e,t,l,r,n),c==99){l=w;break}if(c==Re){u=1;continue}}y=1}else{a=Re;continue}else if(c==Xs){if(h==null?[l,b]=kv(e,t,i,b,l):[l,b]=_v(e,t,i,b,l,h,f,r,n,s,o),l<0)break;continue}else{if(c==it)continue;if((c!=yt||a!=it)&&([d,l]=Nh(e,t,l)),d==99){l=w;break}if(c==yt&&d==0){var C;if([C,l]=Nl(e,t,l,5),C==99)break;if(C==0){if([C,l]=Nl(e,t,l,4),C>=5)break;var E;if([E,l]=rn(e,l,t),E<0||o[C]==null)break;var A=o[C].length;if(E>A)break;E=A-E;for(var S=!1,x=0;x0)}else{var O=0;if(C==2||C==4)O=32;else if([O,l]=rn(e,l,t),O<0||O==0)break;do{var H=Xa(e,t,l,4);if(H<0)break;var I=Cv(H,C<3?Nr:ta);b=vr(i,b,I),(C==2||C==4)&&(O==25||O==21||O==17||O==13)&&(b=vr(i,b,"-")),l+=4}while(--O>0);if(O>0)break}a==it&&(c=it);continue}}}if(y&&d==1){c=a=it;continue}if(c<3&&d<28&&(p=kd[c].charAt(d)),p>="a"&&p<="z")a=Re,y&&(p=String.fromCharCode(p.charCodeAt(0)-32));else if(p!==0&&p.charCodeAt(0)>=48&&p.charCodeAt(0)<=57)a=yt;else if(p.charCodeAt(0)===0&&p!=="0"){if(d==8)b=$h(i,b,`\r -`);else if(c==yt&&d==26){var U;if([U,l]=rn(e,l,t),U<0)break;U+=4;for(var oe=i==null?b.charAt(b.length-1):String.fromCharCode(i[b-1]);U--;)b=vr(i,b,oe)}else if(c==qa&&d>24)d-=25,b=$h(i,b,s[d]);else if(c==yt&&d>22&&d<26)d-=20,b=$h(i,b,s[d]);else break;a==it&&(c=it);continue}a==it&&(c=it),b=vr(i,b,p)}return b}var mn=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};mn.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};mn.prototype.init_by_array=function(e,t){var i,r,n;for(this.init_seed(19650218),i=1,r=0,n=this.N>t?this.N:t;n;n--){var s=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(((s&4294901760)>>>16)*1664525<<16)+(s&65535)*1664525)+e[r]+r,this.mt[i]>>>=0,i++,r++,i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1),r>=t&&(r=0)}for(n=this.N-1;n;n--){var s=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(((s&4294901760)>>>16)*1566083941<<16)+(s&65535)*1566083941)-i,this.mt[i]>>>=0,i++,i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1)}this.mt[0]=2147483648};mn.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_seed(5489),i=0;i>>1^t[e&1];for(;i>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};mn.prototype.random_int31=function(){return this.random_int()>>>1};mn.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};mn.prototype.random=function(){return this.random_int()*(1/4294967296)};mn.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};mn.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var CS=mn;const w4=R5(CS),AS='{"basic":{"alphabet":{"a":["请","上","中","之","等","人","到","年","个","将"],"b":["得","可","并","发","过","协","曲","闭","斋","峦"],"c":["页","于","而","被","无","挽","裕","斜","绪","镜"],"d":["由","把","好","从","会","帕","莹","盈","敬","粒"],"e":["的","在","了","是","为","有","和","我","一","与"],"f":["站","最","号","及","能","迟","鸭","呈","玻","据"],"g":["着","很","此","但","看","浩","附","侃","汐","绸"],"h":["名","呢","又","图","啊","棉","畅","蒸","玫","添"],"i":["对","地","您","给","这","下","网","也","来","你"],"j":["更","天","去","用","只","矽","萌","镁","芯","夸"],"k":["第","者","所","两","里","氢","羟","纽","夏","春"],"l":["自","做","前","二","他","氦","汀","兰","竹","捷"],"m":["家","点","路","至","十","锂","羧","暑","夕","振"],"n":["区","想","向","主","四","铍","烃","惠","芳","岩"],"o":["就","新","吗","该","不","多","还","要","让","大"],"p":["小","如","成","位","其","硼","酞","褔","苑","笋"],"q":["吧","每","机","几","总","碳","铂","涓","绣","悦"],"r":["起","它","内","高","次","氮","铵","奏","鲤","淳"],"s":["非","元","类","五","使","氧","醇","迷","霁","琅"],"t":["首","进","即","没","市","氖","酯","琳","绫","濑"],"u":["后","三","本","都","时","月","或","说","已","以"],"v":["种","快","那","篇","万","钠","炔","柯","睿","琼"],"w":["长","按","报","比","信","硅","烷","静","欣","束"],"x":["再","带","才","全","呀","磷","烯","柔","雪","冰"],"y":["业","却","版","美","们","硫","桉","寒","冻","玖"],"z":["像","走","文","各","当","氯","缬","妃","琉","璃"],"A":["贴","则","老","生","达","商","行","周","证","经"],"B":["事","场","同","化","找","建","手","道","间","式"],"C":["特","城","型","定","接","局","问","重","叫","通"],"D":["件","少","面","金","近","买","听","学","见","称"],"E":["写","选","片","体","组","先","仅","别","表","现"],"F":["雨","泊","注","织","赴","茶","因","设","环","青"],"G":["数","心","子","处","作","项","谁","分","转","字"],"H":["砂","妥","鹦","课","栗","霞","鹉","翌","蕴","憩"],"I":["畔","珑","咫","瑞","玲","郊","蛟","昱","祉","菁"],"J":["铁","宙","耕","琴","铃","瑰","旬","茉","砺","莅"],"K":["钇","莉","筱","森","曳","苹","踵","晰","砥","舀"],"L":["锆","粟","魄","辉","谜","馅","醋","甄","韶","泪"],"M":["钌","倘","祥","善","泉","惦","铠","骏","韵","泣"],"N":["铑","筑","铿","智","禀","磊","桨","檀","荧","铭"],"O":["钯","骐","烛","蔬","凛","溯","困","炯","酿","瑕"],"P":["银","榻","驿","缎","澟","绒","莺","萤","桅","枕"],"Q":["镉","赞","瑾","程","怡","漱","穗","湍","栀","皆"],"R":["碘","礼","饴","舒","芷","麟","沥","描","锄","墩"],"S":["锡","彰","瞻","雅","贮","喵","翊","闪","翎","婉"],"T":["钨","咨","涌","益","嵩","御","饶","纺","栩","稔"],"U":["铋","骆","橘","未","泰","频","琥","囍","浣","裳"],"V":["钕","飒","浇","哦","途","瓢","珀","涨","仓","棠"],"W":["祁","蓬","灿","部","涧","舫","曙","航","礁","渡"],"X":["旺","嫦","漫","佑","钥","谧","葵","咩","诵","绮"],"Y":["阐","译","锻","茜","坞","砌","靛","猫","芮","绚"],"Z":["拌","皎","笙","沃","悟","拓","遨","揽","昼","蔗"]},"numbersymbol":{"0":["卡","风","水","放","花","钾","宏","谊","探","棋"],"1":["需","头","话","曾","楼","钙","吾","恋","菲","遥"],"2":["连","系","门","力","量","钛","苗","氛","鹤","雀"],"3":["书","亿","跟","深","方","钒","鸳","鸯","纸","鸢"],"4":["若","低","谈","明","百","铬","羯","尧","舜","兆"],"5":["关","客","读","双","回","锰","熙","瀚","渊","灯"],"6":["较","品","嘛","单","价","钴","阑","珊","雁","鹂"],"7":["山","西","动","厂","热","锌","鹃","鸠","昆","仑"],"8":["言","笑","度","易","身","镓","乾","坤","澈","饺"],"9":["份","星","千","仍","办","锗","彗","聪","慧","磋"],"+":["集","费","传","室","拉"],"/":["难","界","指","管","具"],"?":["相","儿","李","早","拿"],"-":["科","白","段","飞","住"],".":["利","红","板","光","约"],"(":["变","款","林","夹","院"],")":["服","句","声","务","游"],"[":["股","南","社","阿","远"],"]":["意","换","些","必","赛"],"<":["届","完","乐","彩","讲"],">":["展","帮","且","物","班"],",":["何","流","密","某","房"],"|":["语","亚","常","除","装"],"=":["极","载","题","刚","气"],"@":["米","影","德","世","坐"],"#":["北","招","短","活","斯"],"!":["值","店","树","哪","余"],"~":["盘","速","座","求","创"],"`":["梦","足","半","视","安"],"$":["空","歌","派","顶","登"],"%":["夜","云","感","啦","欲"],"^":["边","工","眼","街","奖"],"&":["获","占","理","任","实"],"*":["知","掉","色","讯","克"],"_":["直","评","往","层","园"],"{":["留","靠","亦","罗","营"],"}":["合","尚","产","诚","汨"],":":["曱","朩","杉","杸","歩"],";":["毋","氕","気","氘","氙"]}},"special":{"DECRYPT":{"JP":["桜","込","凪","雫","実","沢"],"CN":["玚","俟","玊","欤","瞐","珏"]}}}';var Sa=0,em=new Uint8Array(32);const Bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var vs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ys="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";const ES="ABCDEFGHIJKLMNOPQRSTUVWXYZ",xS="1234567890",SS="+=_-/?.>,<|`~!@#$%^&*(){}[];:",Do="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";var ws="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",_s="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",ks="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";const TS="桜込凪雫実沢",RS="玚俟玊欤瞐珏",Wn="孎",ep=["https://","lanzou","pan.quark.cn","pan.baidu.com","aliyundrive.com","123pan.com"],tp=["https://","mypikpak.com","mega.nz","drive.google.com","sharepoint.com","1drv.ms"],ip=["https://","baidu.com","b23.tv","bilibili.com","weibo.com","weixin.qq.com"],rp=["https://","google.com","youtube.com","x.com","twitter.com","telegra.ph"],np=["https://","wikipedia.org","github.com","pages.dev","github.io","netlify.app"],sp=["https://","pixiv.net","nicovideo.jp","dlsite.com","line.me","dmm.com"],op=["https://","nyaa.si","bangumi.moe","thepiratebay.org","e-hentai.org","exhentai.org"],ap=["https://","magnet:?xt=urn:btih:","magnet:?xt=urn:sha1:","ed2k://","thunder://","torrent"],lp=["https://",".cn",".com",".net",".org",".xyz"],cp=["https://",".info",".moe",".cc",".co",".dev"],dp=["https://",".io",".us",".eu",".jp",".de"],Ot=JSON.parse(AS);function _4(e,t,i){let r=Mt.SHA256(t),n=Fc(r),s=new Uint8Array(n.byteLength+2);s.set(n,0),s.set([i[0],i[1]],n.byteLength),n=s;let o=Mt.lib.WordArray.create(n),a=Mt.SHA256(o),l=Fc(a),c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=l[d];let u=Mt.lib.WordArray.create(c),h=Mt.lib.WordArray.create(e),f=Mt.AES.encrypt(h,r,{mode:Mt.mode.CTR,padding:Mt.pad.NoPadding,iv:u});return Fc(f.ciphertext)}function Av(e){let t=au.gzip(e);return t.byteLength>=e.byteLength?e:t}function NS(e){const t=new Uint8Array(e.buffer,0,2);return t[0]===31&&t[1]===139?au.ungzip(e):e}function IS(e){let t=new Uint8Array(2048),i=Ad(e),r=255;for(let a=1;a<6;a++){if(i.indexOf(ep[a])!=-1){r=254;break}if(i.indexOf(tp[a])!=-1){r=245;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(ip[a])!=-1){r=253;break}if(i.indexOf(rp[a])!=-1){r=252;break}if(i.indexOf(np[a])!=-1){r=244;break}if(i.indexOf(sp[a])!=-1){r=251;break}if(i.indexOf(op[a])!=-1){r=250;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(ap[a])!=-1){r=249;break}if(i.indexOf(lp[a])!=-1){r=248;break}if(i.indexOf(cp[a])!=-1){r=247;break}if(i.indexOf(dp[a])!=-1){r=246;break}}let n;switch(r){case 255:n=nt(e,e.byteLength,t);break;case 254:n=nt(e,e.byteLength,t,ep);break;case 245:n=nt(e,e.byteLength,t,tp);break;case 253:n=nt(e,e.byteLength,t,ip);break;case 252:n=nt(e,e.byteLength,t,rp);break;case 244:n=nt(e,e.byteLength,t,np);break;case 251:n=nt(e,e.byteLength,t,sp);break;case 250:n=nt(e,e.byteLength,t,op);break;case 249:n=nt(e,e.byteLength,t,ap);break;case 248:n=nt(e,e.byteLength,t,lp);break;case 247:n=nt(e,e.byteLength,t,cp);break;case 246:n=nt(e,e.byteLength,t,dp);break}let s=t.subarray(0,n);if(s.byteLength>=e.byteLength)return e;let o=new Uint8Array(s.byteLength+2);return o.set(s,0),o.set([r,255],s.byteLength),s=o,s}function $S(e){const t=e[e.byteLength-1],i=e[e.byteLength-2];if(t!=255||i<244||i>255)return e;let r=i,n=e.subarray(0,e.byteLength-2),s=new Uint8Array(2048),o;switch(r){case 255:o=Qe(n,n.byteLength,s,qe,je,G0,Ye);break;case 254:o=Qe(n,n.byteLength,s,qe,je,ep,Ye);break;case 245:o=Qe(n,n.byteLength,s,qe,je,tp,Ye);break;case 253:o=Qe(n,n.byteLength,s,qe,je,ip,Ye);break;case 252:o=Qe(n,n.byteLength,s,qe,je,rp,Ye);break;case 244:o=Qe(n,n.byteLength,s,qe,je,np,Ye);break;case 251:o=Qe(n,n.byteLength,s,qe,je,sp,Ye);break;case 250:o=Qe(n,n.byteLength,s,qe,je,op,Ye);break;case 249:o=Qe(n,n.byteLength,s,qe,je,ap,Ye);break;case 248:o=Qe(n,n.byteLength,s,qe,je,lp,Ye);break;case 247:o=Qe(n,n.byteLength,s,qe,je,cp,Ye);break;case 246:o=Qe(n,n.byteLength,s,qe,je,dp,Ye);break}return s.subarray(0,o)}function k4(e){let t=new Array,i,r;for(let o=0;o0;)r=i%10,t.push(r),i=Math.floor(i/10);let n=0,s=0;for(let o=0;o=10&&(t[o]=t[o]%10+Math.floor(t[o]/10))),n=n+t[o];return s=10-n%10,s}function PS(e){let t=e[e.byteLength-1];return k4(e.subarray(0,e.byteLength-1))==t}function DS(e){let t=0;for(let i=e.length-1;i>=e.length-4;i--)e[i]=="="&&t++;return e.slice(0,e.length-t)}function LS(e){return e.length%4==3?e+"=":e.length%4==2?e+"==":e}function Fc(e){const t=new Uint8Array(e.sigBytes);for(let i=0;i>>2]>>>24-i%4*8&255;return t}function C4(e){let t=pr.encode(e);return pr.toUint8Array(t)}function Ad(e){let t=pr.fromUint8Array(e);return pr.decode(t)}function Ev(e,t,i){return t>e.length-1?e:e.substring(0,t)+i+e.substring(t+1)}function Jr(e){let t=new w4(Math.floor(Math.random()*1e9));return Math.floor(t.random()*e)}function xv(e,t,i){return e.slice(0,i)+t+e.slice(i)}function BS(e,t){return e.filter(i=>!t.includes(i))}function uo(e,t){return e.slice(t)+e.slice(0,t)}function ho(e,t){return e.slice(e.length-t)+e.slice(0,e.length-t)}function fo(e){let t,i,r,n,s,o;return t=Bs.indexOf(e),i=Do.indexOf(e),r=Bs.indexOf(vs[t]),n=Do.indexOf(ws[i]),s=Bs.indexOf(ys[r]),o=Do.indexOf(_s[n]),t!=-1?bs[s]:i!=-1?ks[o]:Wn}function Sv(e){let t,i,r,n,s,o;return t=bs.indexOf(e),i=ks.indexOf(e),r=ys.indexOf(Bs[t]),n=_s.indexOf(Do[i]),s=vs.indexOf(Bs[r]),o=ws.indexOf(Do[n]),t!=-1?Bs[s]:i!=-1?Do[o]:Wn}function Ed(){let e=0;Sa==32&&(Sa=0),e=em[Sa]%10,e==0&&(e=10),e%2==0?(vs=uo(vs,6),ws=uo(ws,6),ys=ho(ys,e*2),_s=ho(_s,e*2),bs=uo(bs,e/2+1),ks=uo(ks,e/2+1)):(vs=ho(vs,3),ws=ho(ws,3),ys=uo(ys,e),_s=uo(_s,e),bs=ho(bs,(e+7)/2),ks=ho(ks,(e+7)/2)),Sa++}function Za(){Sa=0,em=new Array(32),vs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ys="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ws="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",_s="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",ks="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:"}function A4(e){let t=Mt.SHA256(e);em=Fc(t)}class E4{constructor(t,i=!1){this.output=t,this.isEncrypted=i}}function Tv(e){let t=String(e),i=t.length,r,n=!1,s=!1,o=!1;for(let l=0;l{t==n&&(i=Sv(r))});if(i)return i;for(let r in Ot.basic.numbersymbol)Ot.basic.numbersymbol[r].forEach(n=>{t==n&&(i=Sv(r))});return i||Wn}const VS='{"Actual":{"N":{"alphabet":{"a":"人","b":"镜","c":"鹏","d":"曲","e":"霞","f":"绸","g":"裳","h":"路","i":"岩","j":"叶","k":"鲤","l":"月","m":"雪","n":"冰","o":"局","p":"恋","q":"褔","r":"铃","s":"琴","t":"家","u":"天","v":"韵","w":"书","x":"莺","y":"璃","z":"雨","A":"文","B":"涧","C":"水","D":"花","E":"风","F":"棋","G":"楼","H":"鹤","I":"鸢","J":"灯","K":"雁","L":"星","M":"声","N":"树","O":"茶","P":"竹","Q":"兰","R":"苗","S":"心","T":"语","U":"礼","V":"梦","W":"庭","X":"木","Y":"驿","Z":"火"},"numbersymbol":{"0":"森","1":"夏","2":"光","3":"林","4":"物","5":"云","6":"夜","7":"城","8":"春","9":"空","+":"雀","/":"鹂","=":"鸳"}},"V":{"alphabet":{"a":"关","b":"赴","c":"呈","d":"添","e":"停","f":"成","g":"走","h":"达","i":"行","j":"称","k":"见","l":"学","m":"听","n":"买","o":"作","p":"弹","q":"写","r":"定","s":"谈","t":"动","u":"旅","v":"返","w":"度","x":"开","y":"筑","z":"选","A":"流","B":"指","C":"换","D":"探","E":"放","F":"看","G":"报","H":"事","I":"泊","J":"现","K":"迸","L":"彰","M":"需","N":"飞","O":"游","P":"求","Q":"御","R":"航","S":"歌","T":"读","U":"振","V":"登","W":"任","X":"留","Y":"奏","Z":"连"},"numbersymbol":{"0":"知","1":"至","2":"致","3":"去","4":"画","5":"说","6":"进","7":"信","8":"取","9":"问","+":"笑","/":"视","=":"言"}},"MV":["欲","应","可","能","将","请","想","必","当"],"A":{"alphabet":{"a":"莹","b":"畅","c":"新","d":"高","e":"静","f":"美","g":"绿","h":"佳","i":"善","j":"良","k":"瀚","l":"明","m":"早","n":"宏","o":"青","p":"遥","q":"速","r":"慧","s":"绚","t":"绮","u":"寒","v":"冷","w":"银","x":"灵","y":"绣","z":"北","A":"临","B":"南","C":"俊","D":"捷","E":"骏","F":"益","G":"雅","H":"舒","I":"智","J":"谜","K":"彩","L":"余","M":"短","N":"秋","O":"乐","P":"怡","Q":"瑞","R":"惠","S":"和","T":"纯","U":"悦","V":"迷","W":"长","X":"少","Y":"近","Z":"清"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"聪","4":"秀","5":"旧","6":"浩","7":"盈","8":"快","9":"悠","+":"后","/":"轻","=":"坚"}},"AD":{"alphabet":{"a":"诚","b":"畅","c":"新","d":"高","e":"静","f":"恒","g":"愈","h":"谨","i":"善","j":"良","k":"频","l":"笃","m":"早","n":"湛","o":"昭","p":"遥","q":"速","r":"朗","s":"祗","t":"攸","u":"徐","v":"咸","w":"皆","x":"灵","y":"恭","z":"弥","A":"临","B":"允","C":"公","D":"捷","E":"淳","F":"益","G":"雅","H":"舒","I":"嘉","J":"勤","K":"协","L":"永","M":"短","N":"歆","O":"乐","P":"怡","Q":"已","R":"忻","S":"和","T":"谧","U":"悦","V":"稍","W":"长","X":"少","Y":"近","Z":"尚"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"竟","4":"悉","5":"渐","6":"颇","7":"辄","8":"快","9":"悠","+":"后","/":"轻","=":"曾"}}},"Virtual":{"zhi":["之"],"hu":["乎"],"zhe":["者"],"ye":["也"],"for":["为"],"ba":["把"],"le":["了"],"er":["而"],"this":["此","斯"],"still":["仍"],"with":["与","同"],"also":["亦","也"],"is":["是","乃"],"not":["未","莫"],"or":["或"],"more":["更"],"make":["使","将","让"],"and":["与","同"],"anti":["非","不"],"why":["为何","奈何","何哉"],"but":["但","却","则","而","况","且"],"like":["似","如","若"],"if":["若","倘"],"int":["哉","呼","噫"],"self":["自"],"by":["以","于"]},"Sentences":{"Begin":["1/非/N/ye","1/N/曰","1/若夫/N","1/anti/MV/V/ye/P","2/A/N/曰","2/N/以/A","2/N/anti/在/A","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/初,/N/V/by/N","3/夫/N/anti/V/by/N","3/AD/V/zhi/谓/A","3/V/而/V/zhi/zhi/谓/A","3/N/,/N/zhi/N/ye/P","3/A/之/V/者/必/有/N/P","4/非/N/不/A/,/V/不/A","4/A/N/AD/V","4/V/N/以/V/N","4/N/不在/A/,/有/N/则/A/P","4/A/N/常有/,/而/A/N/不常有/P","4/N/有/MV/V/,/N/有/AD/然/P","4/N/无/N/,/无以/V/N","5/V/N/而/V/A/,/V/zhi/道/ye/P","5/N/zhi/V/V/,/实为/A/A/P","5/本/MV/V/A/,/anti/V/N/N","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/今/N/乃/A/N/A/N","5/A/N/V/A/N","5/夫/N/、/N/不/MV/AD/V/N","6/以/N/V/,/like/V/N/V/N","6/A/N/zhi/N/,/V/zhi/以/V/其/N","6/A/N/V/于/N/而/V/N","6/A/N/未/V/N/、/N/之/N","7/N/以/A/A/,/AD/V/A/N","7/V/N/A/,/A/N/V/N","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/则有/N/A/N/A/,/N/N/具/V","7/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","8/V/A/N/,/V/A/N/,/by/MV/A/zhi/N/P","8/N/anti/AD/V/zhe/by/AD/V/zhe/V/,/anti/MV/AD/V/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/V/A/N/,/N/V/A/N","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/A/N/V/N/,/N/N/V/N/P","8/尝/V/A/N/,/AD/V/A/N/zhi/N","8/予/V/夫/A/N/A/N/,/在/A/N/之/N","8/N/V/于/A/N/,/而/N/V/于/A/N","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V/P","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"],"Main":["1/非/N/ye","1/anti/MV/V/ye","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/N/with/N/V","3/N/曰,何/A/zhi/V/Q","4/A/N/AD/V","4/V/N/以/V/N","4/N/无/N/,/无以/V/N/P","4/N/不在/A/,/有/N/则/A/P","4/N/有/MV/V/,/N/有/AD/然/P","4/N/非/V/而/V/之/者/,/孰/MV/无/N/P","4/A/N/常有/,/而/A/N/不常有/P","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/本/MV/V/A/,/anti/V/N/N","5/今/N/乃/A/N/A/N","5/每/有/V/N/,/便/AD/然/V/N/P","5/N/V/而/A/N/V/也","6/以/N/V/,/like/V/N/V/N","6/N/V/,/V/N/V/N","6/虽/V/V/A/A/,/A/A/不/同/P","6/而/A/N/zhi/N/,/V/zhi/以/V/其/N/P","6/A/N/V/于/N/而/V/N","6/A/N/未/V/N/、/N/之/N","6/V/A/N/,/V/A/N","6/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7/A/N/之/不/V/也/AD/矣/,/欲/N/之/无/N/也/AD/矣/P","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/是/故/无/A/无/A/,/无/A/无/A/,/N/之/所/V/、/N/之/所/V/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/A/N/V/N/,/N/N/V/N/P","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8/予/V/夫/A/N/A/N/,/在/A/N/之/N","8/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8/N/V/于/A/N/,/而/N/V/于/A/N","8/A/N/MV/A/N/之/A/,/V/N/中/之/A","8/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A","9/V/A/N/,/N/A/N/A/,/乃/AD/V"],"End":["1/非/N/ye","1/anti/MV/V/ye","2/唯/N/V/zhi","2/V/by/N","2/其/also/A/hu/其/V/ye/P","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/V/在/A/N","3/今/zhi/V/zhe/,/亦将有/V/于/this/N/P","3/某也/A/,/某也/A/,/可/不/A/哉","4/V/N/zhi/N/by/N","4/A/N/AD/V","4/V/N/以/V/N","4/N/无/N/,/无以/V/N","4/噫/,/A/N/ye/,/N/谁/与/V/Q","5/请/V/N/zhi/N/中/,/是/N/zhi/N/P","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/本/MV/V/A/,/anti/V/N/N","5/今/N/乃/A/N/A/N","5/N/V/而/A/N/V/也","6/以/N/V/,/like/V/N/V/N","6/A/zhi/V/N/,/亦/like/今/zhi/V/N/,/A/夫/P","6/N/V/,/V/N/V/N","6/V/N/之/N/,/为/N/V/者/,/可以/V/矣/P","6/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6/虽/V/V/A/A/,/A/A/不/同/P","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","8/虽/N/A/N/A/,/所/以/V/N/,其/N/A/ye/P","8/何必/V/N/V/N/,/V/N/zhi/N/N/哉/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"]}}';var Ta=0,tm=new Uint8Array(32);const ct="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var Cs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",As="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",Es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";const FS="ABCDEFGHIJKLMNOPQRSTUVWXYZ",zS="1234567890",HS="+/=",vt="0123456789+/=";var xs="0123456789+/=",Ss="5=0764+389/12",Ts="0123456789+/=";const ia="孎",up=["https://","lanzou","pan.quark.cn","pan.baidu.com","aliyundrive.com","123pan.com"],hp=["https://","mypikpak.com","mega.nz","drive.google.com","sharepoint.com","1drv.ms"],fp=["https://","baidu.com","b23.tv","bilibili.com","weibo.com","weixin.qq.com"],pp=["https://","google.com","youtube.com","x.com","twitter.com","telegra.ph"],mp=["https://","wikipedia.org","github.com","pages.dev","github.io","netlify.app"],gp=["https://","pixiv.net","nicovideo.jp","dlsite.com","line.me","dmm.com"],vp=["https://","nyaa.si","bangumi.moe","thepiratebay.org","e-hentai.org","exhentai.org"],yp=["https://","magnet:?xt=urn:btih:","magnet:?xt=urn:sha1:","ed2k://","thunder://","torrent"],bp=["https://",".cn",".com",".net",".org",".xyz"],wp=["https://",".info",".moe",".cc",".co",".dev"],_p=["https://",".io",".us",".eu",".jp",".de"],ae=JSON.parse(VS);let mi={},Pt="";function US(){mi={},Pt="";for(let e=0;e<52;e++)mi[ct[e]]=[],mi[ct[e]].push(ae.Actual.N.alphabet[ct[e]]),mi[ct[e]].push(ae.Actual.A.alphabet[ct[e]]),mi[ct[e]].push(ae.Actual.V.alphabet[ct[e]]),Pt=Pt+ae.Actual.N.alphabet[ct[e]],Pt=Pt+ae.Actual.A.alphabet[ct[e]],Pt=Pt+ae.Actual.V.alphabet[ct[e]],ae.Actual.A.alphabet[ct[e]]!=ae.Actual.AD.alphabet[ct[e]]&&(mi[ct[e]].push(ae.Actual.AD.alphabet[ct[e]]),Pt=Pt+ae.Actual.AD.alphabet[ct[e]]);for(let e=0;e<13;e++)mi[vt[e]]=[],mi[vt[e]].push(ae.Actual.N.numbersymbol[vt[e]]),mi[vt[e]].push(ae.Actual.A.numbersymbol[vt[e]]),mi[vt[e]].push(ae.Actual.V.numbersymbol[vt[e]]),Pt=Pt+ae.Actual.N.numbersymbol[vt[e]],Pt=Pt+ae.Actual.A.numbersymbol[vt[e]],Pt=Pt+ae.Actual.V.numbersymbol[vt[e]],ae.Actual.A.numbersymbol[vt[e]]!=ae.Actual.AD.numbersymbol[vt[e]]&&(mi[vt[e]].push(ae.Actual.AD.numbersymbol[vt[e]]),Pt=Pt+ae.Actual.AD.numbersymbol[vt[e]])}function x4(e,t,i){let r=Mt.SHA256(t),n=zc(r),s=new Uint8Array(n.byteLength+2);s.set(n,0),s.set([i[0],i[1]],n.byteLength),n=s;let o=Mt.lib.WordArray.create(n),a=Mt.SHA256(o),l=zc(a),c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=l[d];let u=Mt.lib.WordArray.create(c),h=Mt.lib.WordArray.create(e),f=Mt.AES.encrypt(h,r,{mode:Mt.mode.CTR,padding:Mt.pad.NoPadding,iv:u});return zc(f.ciphertext)}function Nv(e){let t=au.gzip(e);return t.byteLength>=e.byteLength?e:t}function KS(e){const t=new Uint8Array(e.buffer,0,2);return t[0]===31&&t[1]===139?au.ungzip(e):e}function WS(e){let t=new Uint8Array(2048),i=xd(e),r=255;for(let a=1;a<6;a++){if(i.indexOf(up[a])!=-1){r=254;break}if(i.indexOf(hp[a])!=-1){r=245;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(fp[a])!=-1){r=253;break}if(i.indexOf(pp[a])!=-1){r=252;break}if(i.indexOf(mp[a])!=-1){r=244;break}if(i.indexOf(gp[a])!=-1){r=251;break}if(i.indexOf(vp[a])!=-1){r=250;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(yp[a])!=-1){r=249;break}if(i.indexOf(bp[a])!=-1){r=248;break}if(i.indexOf(wp[a])!=-1){r=247;break}if(i.indexOf(_p[a])!=-1){r=246;break}}let n;switch(r){case 255:n=nt(e,e.byteLength,t);break;case 254:n=nt(e,e.byteLength,t,up);break;case 245:n=nt(e,e.byteLength,t,hp);break;case 253:n=nt(e,e.byteLength,t,fp);break;case 252:n=nt(e,e.byteLength,t,pp);break;case 244:n=nt(e,e.byteLength,t,mp);break;case 251:n=nt(e,e.byteLength,t,gp);break;case 250:n=nt(e,e.byteLength,t,vp);break;case 249:n=nt(e,e.byteLength,t,yp);break;case 248:n=nt(e,e.byteLength,t,bp);break;case 247:n=nt(e,e.byteLength,t,wp);break;case 246:n=nt(e,e.byteLength,t,_p);break}let s=t.subarray(0,n);if(s.byteLength>=e.byteLength)return e;let o=new Uint8Array(s.byteLength+2);return o.set(s,0),o.set([r,255],s.byteLength),s=o,s}function qS(e){const t=e[e.byteLength-1],i=e[e.byteLength-2];if(t!=255||i<244||i>255)return e;let r=i,n=e.subarray(0,e.byteLength-2),s=new Uint8Array(2048),o;switch(r){case 255:o=Qe(n,n.byteLength,s,qe,je,G0,Ye);break;case 254:o=Qe(n,n.byteLength,s,qe,je,up,Ye);break;case 245:o=Qe(n,n.byteLength,s,qe,je,hp,Ye);break;case 253:o=Qe(n,n.byteLength,s,qe,je,fp,Ye);break;case 252:o=Qe(n,n.byteLength,s,qe,je,pp,Ye);break;case 244:o=Qe(n,n.byteLength,s,qe,je,mp,Ye);break;case 251:o=Qe(n,n.byteLength,s,qe,je,gp,Ye);break;case 250:o=Qe(n,n.byteLength,s,qe,je,vp,Ye);break;case 249:o=Qe(n,n.byteLength,s,qe,je,yp,Ye);break;case 248:o=Qe(n,n.byteLength,s,qe,je,bp,Ye);break;case 247:o=Qe(n,n.byteLength,s,qe,je,wp,Ye);break;case 246:o=Qe(n,n.byteLength,s,qe,je,_p,Ye);break}return s.subarray(0,o)}function S4(e){let t=new Array,i,r;for(let o=0;o0;)r=i%10,t.push(r),i=Math.floor(i/10);let n=0,s=0;for(let o=0;o=10&&(t[o]=t[o]%10+Math.floor(t[o]/10))),n=n+t[o];return s=10-n%10,s}function jS(e){let t=e[e.byteLength-1];return S4(e.subarray(0,e.byteLength-1))==t}function YS(e){let t=0;for(let i=e.length-1;i>=e.length-4;i--)e[i]=="="&&t++;return e.slice(0,e.length-t)}function XS(e){return e.length%4==3?e+"=":e.length%4==2?e+"==":e}function zc(e){const t=new Uint8Array(e.sigBytes);for(let i=0;i>>2]>>>24-i%4*8&255;return t}function xd(e){let t=pr.fromUint8Array(e);return pr.decode(t)}function ri(e){let t=new w4(Math.floor(Math.random()*1e9));return Math.floor(t.random()*e)}function po(e,t){return e.slice(t)+e.slice(0,t)}function mo(e,t){return e.slice(e.length-t)+e.slice(0,e.length-t)}function nr(e){let t,i,r,n,s,o;return t=ct.indexOf(e),i=vt.indexOf(e),r=ct.indexOf(Cs[t]),n=vt.indexOf(xs[i]),s=ct.indexOf(As[r]),o=vt.indexOf(Ss[n]),t!=-1?Es[s]:i!=-1?Ts[o]:ia}function Iv(e){let t,i,r,n,s,o;return t=Es.indexOf(e),i=Ts.indexOf(e),r=As.indexOf(ct[t]),n=Ss.indexOf(vt[i]),s=Cs.indexOf(ct[r]),o=xs.indexOf(vt[n]),t!=-1?ct[s]:i!=-1?vt[o]:ia}function Sd(){let e=0;Ta==32&&(Ta=0),e=tm[Ta]%10,e==0&&(e=10),e%2==0?(Cs=po(Cs,6),xs=po(xs,6),As=mo(As,e),Ss=mo(Ss,e),Es=po(Es,e/2+1),Ts=po(Ts,e/2+1)):(Cs=mo(Cs,3),xs=mo(xs,3),As=po(As,e),Ss=po(Ss,e),Es=mo(Es,(e+7)/2),Ts=mo(Ts,(e+7)/2)),Ta++}function Td(){Ta=0,tm=new Array(32),Cs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",As="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",Es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",xs="1234567890+/=",Ss="5=0764+389/12",Ts="1234567890+/="}function T4(e){let t=Mt.SHA256(e);tm=zc(t)}function ZS(e){if(e<=3)return[];let t=Math.floor(e*.2),i=e-2*t;return i<=0&&(t=Math.floor((e-2)/3),i=e-2*t,i<=0)?[]:[t,i,t]}function GS(e,t=0){let i,r=ZS(e),n=[];for(let s=0;s<3;s++){let o=r[s];if(s==0)for(let a=0;a6){let h=ri(91);h<30?c=l[l.length-3]:h>=30&&h<60?c=l[l.length-2]:c=l[l.length-1]}else c=l.pop();else i>100&&i<=200&&(c=l[ri(l.length)],l=l.filter(h=>h>c));let d=[];for(let h=0;h6){let h=ri(91);h<30?c=l[l.length-3]:h>=30&&h<60?c=l[l.length-2]:c=l[l.length-1]}else c=l.pop();else i>100&&i<=200&&(c=l[ri(l.length)],l=l.filter(h=>h>c));let d=[];for(let h=0;h6){let h=ri(91);h<30?c=l[l.length-3]:h>=30&&h<60?c=l[l.length-2]:c=l[l.length-1]}else c=l.pop();else i>100&&i<=200&&(c=l[ri(l.length)],l=l.filter(h=>h>c));let d=[];for(let h=0;h=3&&_!=u.length-2?(l=l+"。",b=0):(l=l+",",b+=w+1):(l=l+"。",b=0)}m&&(b=0)}}if(!i){let _="";for(let g=0;g{t==n&&(i=Iv(r))});if(i)return i;for(let r in mi)mi[r].forEach(n=>{t==n&&(i=Iv(r))});return i||ia}const ua=class gt{constructor(t=gt.TEXT,i=gt.TEXT){if($u(this,ss,""),$u(this,Ca,""),$u(this,_t,null),t!=gt.TEXT&&t!=gt.UINT8||i!=gt.TEXT&&i!=gt.UINT8)throw"Unexpected Argument";gr(this,ss,t),gr(this,Ca,i)}Input(t,i,r="ABRACADABRA",n=!1){if(fi(this,ss)==gt.UINT8){if(Object.prototype.toString.call(t)!="[object Uint8Array]")throw"Unexpected Input Type";let s=new TextDecoder("utf-8",{fatal:!0}),o=!1,a="";try{a=s.decode(t)}catch{o=!0}let l;o?(l=new E4(t,!0,!1),gr(this,_t,Ph(l,r,n))):(l=Tv(a),l.isEncrypted&&i!=gt.ENCRYPT||i==gt.DECRYPT?gr(this,_t,Rv(l,r)):gr(this,_t,Ph(l,r,n)))}else if(fi(this,ss)==gt.TEXT){if(Object.prototype.toString.call(t)!="[object String]")throw"Unexpected Input Type";let s=Tv(t);s.isEncrypted&&i!=gt.ENCRYPT||i==gt.DECRYPT?gr(this,_t,Rv(s,r)):gr(this,_t,Ph(s,r,n))}return 0}Output(){if(fi(this,_t)==null)throw"Null Output, please input some data at first.";if(typeof fi(this,_t)=="object")return fi(this,Ca)==gt.TEXT?fi(this,_t).output:fi(this,_t).output_B!=null?fi(this,_t).output_B:new TextEncoder().encode(fi(this,_t).output);if(typeof fi(this,_t)=="string")return fi(this,Ca)==gt.TEXT?fi(this,_t):new TextEncoder().encode(fi(this,_t))}Input_Next(t,i,r="ABRACADABRA",n=!0,s=50){if(fi(this,ss)==gt.UINT8){if(Object.prototype.toString.call(t)!="[object Uint8Array]")throw"Unexpected Input Type";if(i==gt.ENCRYPT){let o=new Object;o.output=t,gr(this,_t,$v(o,r,n,s))}else if(i==gt.DECRYPT){let o=new Object;o.output=t,gr(this,_t,Pv(o,r))}return 0}else if(fi(this,ss)==gt.TEXT){if(Object.prototype.toString.call(t)!="[object String]")throw"Unexpected Input Type";let o=new Object;return o.output=C4(t),i==gt.ENCRYPT?gr(this,_t,$v(o,r,n,s)):i==gt.DECRYPT&&gr(this,_t,Pv(o,r)),0}return 0}};ss=new WeakMap;Ca=new WeakMap;_t=new WeakMap;ql(ua,"TEXT","TEXT");ql(ua,"UINT8","UINT8");ql(ua,"ENCRYPT","ENCRYPT");ql(ua,"DECRYPT","DECRYPT");ql(ua,"AUTO","AUTO");let Dh=ua;const eT=ve("div",{id:"MagicBadge",style:{}},[ve("span",{style:{"font-size":"3rem","font-weight":"bold",margin:"10px 10px 10px 20px",height:"fit-content",width:"fit-content"}},"魔曰"),ve("span",{style:{"font-size":"1rem","font-variant":"petite-caps","margin-left":"20px",height:"fit-content",width:"fit-content"}},"Abracadabra")],-1),tT={id:"MainContainer",style:{display:"grid","grid-template-rows":"80px 150px 80px","grid-gap":"7px"}},iT={key:0,id:"InputCard",variant:"outlined",rows:"2",label:"话语",placeholder:"你渴求吟唱的话语",style:{"grid-area":"1",height:"80px",width:"360px"}},rT=ve("h1",{style:{"align-self":"center","justify-self":"center"}},"选择文件",-1),nT=ve("p",{style:{"align-self":"center","justify-self":"center"}},"拖拽或点击",-1),sT={style:{"align-self":"center","justify-self":"center","margin-bottom":"0"}},oT={id:"controlBar",style:{"grid-area":"2",display:"grid","grid-template-columns":"360px"}},aT=ve("mdui-slider",{id:"Randomness",step:"25",value:"50",min:"0",max:"100",style:{background:"#0000003b",padding:"0 25px",width:"215px","margin-left":"5px","border-radius":"25px",height:"35px"}},null,-1),lT={key:2,id:"OutputText",variant:"outlined",rows:"4",label:"符文",placeholder:"回路末端的符文",style:{"grid-area":"3",height:"120px",width:"360px"}},cT=ve("h1",{style:{"align-self":"center","justify-self":"center"}},"输出文件",-1),dT={id:"CopyrightBadger",style:{"grid-area":"4",display:"grid","grid-template-columns":"50% 50%"}},uT=ve("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"60px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"6px","border-radius":"inherit",margin:"0px"}},[Ud(" Abracadabra V3.0.10"),ve("br"),ve("a",{href:"https://github.com/SheepChef/Abracadabra"},"Github Repo")],-1),hT=ve("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"98px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"0px","border-radius":"inherit",margin:"0px",right:"4px","justify-self":"end",opacity:"0.5"}}," SheepChef © ",-1),fT={id:"CryptControl"},pT=ve("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"雪藏话语",-1),mT=ve("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"探求真意",-1),gT=ve("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"去除标志",-1),vT=ve("div",{id:"PositionOccupie"},null,-1),yT={__name:"HomeView",setup(e){const t=dt("TEXT"),i=dt("TEXT"),r=dt("Next"),n=dt(!0),s=dt(!1),o=dt(!1),a=dt(!1);dt("#5b6169");var l=dt(new Array);const c=dt(null),d=dt("");Ro(()=>l.value[0],P=>{c.value=P,d.value=P.name,window.inputfile=P});function u(P){return new Promise((B,O)=>{const H=new FileReader;H.onload=U=>{const oe=new Uint8Array(U.target.result);B(oe)},H.onerror=O,H.readAsArrayBuffer(P)})}function h(P,B,O){const H=new Blob([P],{type:O});return new File([H],B,{type:O})}function f(P){P.preventDefault(),document.getElementById("FileCard").style.background="#6ea0be"}function m(P){P.preventDefault(),document.getElementById("FileCard").style.background="#5b6169"}function b(P){P.preventDefault()}function w(P){P.preventDefault(),document.getElementById("FileCard").style.background="#5b6169";const B=P.dataTransfer.files;p(B)}function _(P){const B=P.target.files;p(B)}function g(P){document.querySelector("#fileIn").click()}function p(P){l.value=[];for(let B=0;B{var O;return["fullscreen","standalone","minimal-ui"].some(H=>window.matchMedia("(display-mode: "+H+")").matches)||((O=window.navigator)==null?void 0:O.standalone)||document.referrer.includes("android-app://")};function C(){if(r.value=="Next"){document.getElementById("ForceEnc").disabled=!0,document.getElementById("Forceq").disabled=!0,document.getElementById("ForceDec").disabled=!0;return}else document.getElementById("ForceEnc").checked==!0?(document.getElementById("ForceDec").disabled=!0,document.getElementById("ForceDec").checked=!1,s.value=!0,o.value=!1):document.getElementById("ForceDec").checked==!0?(document.getElementById("ForceEnc").disabled=!0,document.getElementById("Forceq").disabled=!0,document.getElementById("ForceEnc").checked=!1,s.value=!1,o.value=!0):(document.getElementById("ForceDec").disabled=!1,document.getElementById("ForceEnc").disabled=!1,document.getElementById("Forceq").disabled=!1,s.value=!1,o.value=!1)}function E(){document.getElementById("Forceq").checked==!0?a.value=!0:a.value=!1}async function A(){r.value=="Normal"?(document.getElementById("NormalControlBar").style.display="none",document.getElementById("NextControlBar").style.display="grid",r.value="Next"):r.value=="Next"&&(document.getElementById("NormalControlBar").style.display="block",document.getElementById("NextControlBar").style.display="none",r.value="Normal"),C()}async function S(){document.getElementById("KeyCard").blur(),await x()}async function x(){let P=new Dh(t.value,i.value),B;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(B="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):B=document.getElementById("KeyCard").value,s.value?a.value?P.Input(document.getElementById("InputCard").value,"ENCRYPT",B,!0):P.Input(document.getElementById("InputCard").value,"ENCRYPT",B,!1):o.value?P.Input(document.getElementById("InputCard").value,"DECRYPT",B):P.Input(document.getElementById("InputCard").value,"AUTO",B,a.value)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(B="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):B=document.getElementById("KeyCard").value;let O=await u(window.inputfile);s.value?a.value?P.Input(O,"ENCRYPT",B,!0):P.Input(O,"ENCRYPT",B,!1):o.value?P.Input(O,"DECRYPT",B):P.Input(O,"AUTO",B,a.value)}if(i.value=="TEXT")document.getElementById("OutputText").value=P.Output();else if(i.value=="UINT8"){let O=P.Output(),H=h(O,"Abracadabra_Result","application/octet-stream"),U=document.createElement("a");U.download=H.name;let oe=URL.createObjectURL(H);U.href=oe,U.click(),URL.revokeObjectURL(oe)}}catch(O){Sr({message:"发生错误, "+O.toString()})}}async function k(){let P=new Dh(t.value,i.value),B;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(B="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):B=document.getElementById("KeyCard").value,P.Input_Next(document.getElementById("InputCard").value,"ENCRYPT",B,!0,parseInt(document.querySelector("#Randomness").value))}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(B="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):B=document.getElementById("KeyCard").value;let O=await u(window.inputfile);P.Input_Next(O,"ENCRYPT",B,!0,parseInt(document.querySelector("#Randomness").value))}if(i.value=="TEXT")document.getElementById("OutputText").value=P.Output();else if(i.value=="UINT8"){let O=P.Output(),H=h(O,"Abracadabra_Result","application/octet-stream"),U=document.createElement("a");U.download=H.name;let oe=URL.createObjectURL(H);U.href=oe,U.click(),URL.revokeObjectURL(oe)}}catch(O){Sr({message:"发生错误, "+O.toString()})}}async function T(){let P=new Dh(t.value,i.value),B;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(B="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):B=document.getElementById("KeyCard").value,P.Input_Next(document.getElementById("InputCard").value,"DECRYPT",B)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(B="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):B=document.getElementById("KeyCard").value;let O=await u(window.inputfile);P.Input_Next(O,"DECRYPT",B)}if(i.value=="TEXT")document.getElementById("OutputText").value=P.Output();else if(i.value=="UINT8"){let O=P.Output(),H=h(O,"Abracadabra_Result","application/octet-stream"),U=document.createElement("a");U.download=H.name;let oe=URL.createObjectURL(H);U.href=oe,U.click(),URL.revokeObjectURL(oe)}}catch(O){Sr({message:"发生错误, "+O.toString()})}}function N(){document.getElementById("OutputText").value!=""&&(document.getElementById("OutputText").select(),navigator.clipboard.writeText(window.getSelection().toString()))}async function I(){window.deferredPrompt&&(window.deferredPrompt.prompt(),(await window.deferredPrompt.userChoice).outcome==="accepted"?Sr({message:"感谢你选择魔曰",placement:"top-end"}):console.log("PWA Install cancelled"))}return hn(()=>{y()&&(n.value=!1),C();const P=document.querySelector("#Randomness");P.labelFormatter=B=>B==0?"长句优先":B==25?"稍随机":B==50?"适中":B==75?"较随机":B==100?"完全随机":""}),$l(()=>{}),(P,B)=>(vi(),Pr(xt,null,[eT,Ue(ka,{id:"FunctionCard"},{default:ls(()=>[ve("div",tT,[t.value=="TEXT"?(vi(),Pr("mdui-text-field",iT)):as("",!0),t.value=="UINT8"?(vi(),nl(ka,{key:1,id:"FileCard",Background:"#5b6169",Width:"360px",Height:"80px",Other:{"grid-area":1,transition:"all 1s ease"},clickable:"",onDragenter:f,onDragleave:m,onDragover:b,onDrop:w,onClick:g},{default:ls(()=>[rT,nT,ve("p",sT,zv(d.value),1),ve("input",{type:"file",id:"fileIn",style:{display:"contents"},onChange:_},null,32)]),_:1})):as("",!0),ve("div",oT,[ve("mdui-text-field",{onKeydown:Ry(S,["enter"]),id:"KeyCard",variant:"outlined",rows:"1",label:"魔咒",placeholder:"将一切雪藏的魔咒",style:{"grid-column":"span 3","align-self":"center",width:"360px"}},null,32),ve("div",{id:"NormalControlBar",style:{"align-self":"center",display:"none"}},[ve("mdui-button",{icon:"arrow_downward--rounded",onClick:x,style:{"align-self":"center",top:"-4px",width:"230px","margin-right":"6px"}},"吟唱你的魔法"),ve("mdui-button",{variant:"elevated",icon:"auto_awesome--rounded",onClick:A,style:{"align-self":"center",top:"-4px",width:"120px",border:"solid 2px white"}},"文言仿真")]),ve("div",{id:"NextControlBar",style:{"align-self":"center",display:"grid","grid-template-columns":"235px 124px"}},[ve("mdui-button",{icon:"arrow_downward--rounded",onClick:x,style:{"align-self":"center",top:"-4px",width:"230px","margin-right":"6px",display:"none"}},"吟唱你的魔法"),ve("div",{style:{display:"grid","grid-template-rows":"40px 33px"}},[ve("div",{style:{width:"fit-content","align-self":"center","justify-self":"center","margin-left":"-10px"}},[ve("mdui-chip",{icon:"keyboard_double_arrow_down--rounded",onClick:k,style:{"align-self":"center",width:"105px","text-align":"center","margin-right":"5px"}},"加密"),ve("mdui-chip",{icon:"keyboard_double_arrow_down--rounded",onClick:T,style:{"align-self":"center",width:"105px","text-align":"center"}},"解密")]),aT]),ve("mdui-button",{variant:"elevated",icon:"auto_fix_off--rounded",onClick:A,style:{"align-self":"center",top:"-4px",width:"120px",border:"solid 2px white"}},"传统加密")])]),i.value=="TEXT"?(vi(),Pr("mdui-text-field",lT)):as("",!0),ve("mdui-button-icon",{icon:"content_copy--rounded",style:{position:"absolute",bottom:"95px",right:"22px",background:"rgb(11 11 11 / 25%)","backdrop-filter":"blur(2px)"},onClick:N}),i.value=="UINT8"?(vi(),nl(ka,{key:3,id:"FileCard2",Background:"#5b6169",Width:"360px",Height:"120px",Other:{"grid-area":3,transition:"all 1s ease"}},{default:ls(()=>[cT]),_:1})):as("",!0),ve("div",dT,[uT,n.value?(vi(),Pr("mdui-chip",{key:0,elevated:"",icon:"file_download--rounded",style:{position:"absolute",bottom:"40px",right:"15px",background:"rgba(11, 11, 11, 0.25)","backdrop-filter":"blur(2px)"},onClick:I},"安装应用")):as("",!0),hT])])]),_:1}),Ue(ka,{id:"FloatCard"},{default:ls(()=>[ve("div",fT,[pT,ve("mdui-switch",{id:"ForceEnc",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:C},null,32),mT,ve("mdui-switch",{id:"ForceDec",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:C},null,32),gT,ve("mdui-switch",{id:"Forceq","checked-icon":"auto_awesome--rounded",style:{"align-self":"center","justify-self":"left"},onChange:E},null,32)])]),_:1}),vT],64))}},bT={id:"ImWindowContainer",ref:"ImContainer"},wT={id:"ImContentContainer"},_T={id:"main_content",style:{height:"fit-content"}},kT={__name:"ImMainView",setup(e){const t=dt(0),i=new ResizeObserver(r=>{r.forEach(n=>{t.value=n.contentRect.height})});return hn(()=>{i.observe(document.getElementById("ImWindowContainer"))}),(r,n)=>(vi(),Pr("div",bT,[Ue(lC,{ContainerId:"ImWindowContainer",ContentContainerId:"ImContentContainer",Direction:"Right",Length:"calc(100% - 120px)",Width:"10px",PBottom:"10px",PRight:"2px",PMarginOne:"27px",PMarginTwo:"0px",Id:"TestBar"}),ve("div",wT,[ve("div",_T,[Ue(yT)])])],512))}},CT=ve("header",null,[ve("link",{rel:"shortcut icon",href:"favicon.ico"})],-1),AT={style:{width:"100% !important",height:"100%"}},ET={class:"InnerUI",fullHeight:""},xT={__name:"App",setup(e){return hn(()=>{}),(t,i)=>(vi(),Pr(xt,null,[CT,ve("mdui-layout",AT,[ve("mdui-layout-main",ET,[Ue(kT)])])],64))}};window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),window.deferredPrompt=e});const R4=Dy(xT);nC("#09355b");R4.component("Card",ka);R4.mount("body"); + */return i.mode.CTRGladman=function(){var r=i.lib.BlockCipherMode.extend();function n(a){if((a>>24&255)===255){var l=a>>16&255,c=a>>8&255,d=a&255;l===255?(l=0,c===255?(c=0,d===255?d=0:++d):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=d}else a+=1<<24;return a}function s(a){return(a[0]=n(a[0]))===0&&(a[1]=n(a[1])),a}var o=r.Encryptor=r.extend({processBlock:function(a,l){var c=this._cipher,d=c.blockSize,u=this._iv,h=this._counter;u&&(h=this._counter=u.slice(0),this._iv=void 0),s(h);var f=h.slice(0);c.encryptBlock(f,0);for(var m=0;m>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Ansix923})}(ih)),ih.exports}var rh={exports:{}},bg;function HC(){return bg||(bg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.Iso10126={pad:function(r,n){var s=n*4,o=s-r.sigBytes%s;r.concat(i.lib.WordArray.random(o-1)).concat(i.lib.WordArray.create([o<<24],1))},unpad:function(r){var n=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=n}},i.pad.Iso10126})}(rh)),rh.exports}var nh={exports:{}},wg;function UC(){return wg||(wg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.Iso97971={pad:function(r,n){r.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(r,n)},unpad:function(r){i.pad.ZeroPadding.unpad(r),r.sigBytes--}},i.pad.Iso97971})}(nh)),nh.exports}var sh={exports:{}},_g;function KC(){return _g||(_g=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.ZeroPadding={pad:function(r,n){var s=n*4;r.clamp(),r.sigBytes+=s-(r.sigBytes%s||s)},unpad:function(r){for(var n=r.words,s=r.sigBytes-1,s=r.sigBytes-1;s>=0;s--)if(n[s>>>2]>>>24-s%4*8&255){r.sigBytes=s+1;break}}},i.pad.ZeroPadding})}(sh)),sh.exports}var oh={exports:{}},kg;function WC(){return kg||(kg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})}(oh)),oh.exports}var ah={exports:{}},Cg;function qC(){return Cg||(Cg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),Kt())})(Te,function(i){return function(r){var n=i,s=n.lib,o=s.CipherParams,a=n.enc,l=a.Hex,c=n.format;c.Hex={stringify:function(d){return d.ciphertext.toString(l)},parse:function(d){var u=l.parse(d);return o.create({ciphertext:u})}}}(),i.format.Hex})}(ah)),ah.exports}var lh={exports:{}},Ag;function jC(){return Ag||(Ag=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo,a=[],l=[],c=[],d=[],u=[],h=[],f=[],m=[],b=[],w=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var C=0,E=0,y=0;y<256;y++){var A=E^E<<1^E<<2^E<<3^E<<4;A=A>>>8^A&255^99,a[C]=A,l[A]=C;var x=p[C],S=p[x],k=p[S],N=p[A]*257^A*16843008;c[C]=N<<24|N>>>8,d[C]=N<<16|N>>>16,u[C]=N<<8|N>>>24,h[C]=N;var N=k*16843009^S*65537^x*257^C*16843008;f[A]=N<<24|N>>>8,m[A]=N<<16|N>>>16,b[A]=N<<8|N>>>24,w[A]=N,C?(C=x^p[p[p[k^x]]],E^=p[p[E]]):C=E=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=s.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,C=y.words,E=y.sigBytes/4,A=this._nRounds=E+6,x=(A+1)*4,S=this._keySchedule=[],k=0;k6&&k%E==4&&(p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255]):(p=p<<8|p>>>24,p=a[p>>>24]<<24|a[p>>>16&255]<<16|a[p>>>8&255]<<8|a[p&255],p^=_[k/E|0]<<24),S[k]=S[k-E]^p);for(var N=this._invKeySchedule=[],I=0;I>>24]]^m[a[p>>>16&255]]^b[a[p>>>8&255]]^w[a[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,c,d,u,h,a)},decryptBlock:function(p,y){var C=p[y+1];p[y+1]=p[y+3],p[y+3]=C,this._doCryptBlock(p,y,this._invKeySchedule,f,m,b,w,l);var C=p[y+1];p[y+1]=p[y+3],p[y+3]=C},_doCryptBlock:function(p,y,C,E,A,x,S,k){for(var N=this._nRounds,I=p[y]^C[0],T=p[y+1]^C[1],P=p[y+2]^C[2],O=p[y+3]^C[3],M=4,H=1;H>>24]^A[T>>>16&255]^x[P>>>8&255]^S[O&255]^C[M++],me=E[T>>>24]^A[P>>>16&255]^x[O>>>8&255]^S[I&255]^C[M++],ye=E[P>>>24]^A[O>>>16&255]^x[I>>>8&255]^S[T&255]^C[M++],F=E[O>>>24]^A[I>>>16&255]^x[T>>>8&255]^S[P&255]^C[M++];I=U,T=me,P=ye,O=F}var U=(k[I>>>24]<<24|k[T>>>16&255]<<16|k[P>>>8&255]<<8|k[O&255])^C[M++],me=(k[T>>>24]<<24|k[P>>>16&255]<<16|k[O>>>8&255]<<8|k[I&255])^C[M++],ye=(k[P>>>24]<<24|k[O>>>16&255]<<16|k[I>>>8&255]<<8|k[T&255])^C[M++],F=(k[O>>>24]<<24|k[I>>>16&255]<<16|k[T>>>8&255]<<8|k[P&255])^C[M++];p[y]=U,p[y+1]=me,p[y+2]=ye,p[y+3]=F},keySize:256/32});r.AES=s._createHelper(g)}(),i.AES})}(lh)),lh.exports}var ch={exports:{}},Eg;function YC(){return Eg||(Eg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.WordArray,o=n.BlockCipher,a=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=a.DES=o.extend({_doReset:function(){for(var _=this._key,g=_.words,p=[],y=0;y<56;y++){var C=l[y]-1;p[y]=g[C>>>5]>>>31-C%32&1}for(var E=this._subKeys=[],A=0;A<16;A++){for(var x=E[A]=[],S=d[A],y=0;y<24;y++)x[y/6|0]|=p[(c[y]-1+S)%28]<<31-y%6,x[4+(y/6|0)]|=p[28+(c[y+24]-1+S)%28]<<31-y%6;x[0]=x[0]<<1|x[0]>>>31;for(var y=1;y<7;y++)x[y]=x[y]>>>(y-1)*4+3;x[7]=x[7]<<5|x[7]>>>27}for(var k=this._invSubKeys=[],y=0;y<16;y++)k[y]=E[15-y]},encryptBlock:function(_,g){this._doCryptBlock(_,g,this._subKeys)},decryptBlock:function(_,g){this._doCryptBlock(_,g,this._invSubKeys)},_doCryptBlock:function(_,g,p){this._lBlock=_[g],this._rBlock=_[g+1],m.call(this,4,252645135),m.call(this,16,65535),b.call(this,2,858993459),b.call(this,8,16711935),m.call(this,1,1431655765);for(var y=0;y<16;y++){for(var C=p[y],E=this._lBlock,A=this._rBlock,x=0,S=0;S<8;S++)x|=u[S][((A^C[S])&h[S])>>>0];this._lBlock=A,this._rBlock=E^x}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,m.call(this,1,1431655765),b.call(this,8,16711935),b.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),_[g]=this._lBlock,_[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(_,g){var p=(this._lBlock>>>_^this._rBlock)&g;this._rBlock^=p,this._lBlock^=p<<_}function b(_,g){var p=(this._rBlock>>>_^this._lBlock)&g;this._lBlock^=p,this._rBlock^=p<<_}r.DES=o._createHelper(f);var w=a.TripleDES=o.extend({_doReset:function(){var _=this._key,g=_.words;if(g.length!==2&&g.length!==4&&g.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=g.slice(0,2),y=g.length<4?g.slice(0,2):g.slice(2,4),C=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=f.createEncryptor(s.create(p)),this._des2=f.createEncryptor(s.create(y)),this._des3=f.createEncryptor(s.create(C))},encryptBlock:function(_,g){this._des1.encryptBlock(_,g),this._des2.decryptBlock(_,g),this._des3.encryptBlock(_,g)},decryptBlock:function(_,g){this._des3.decryptBlock(_,g),this._des2.encryptBlock(_,g),this._des1.decryptBlock(_,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(w)}(),i.TripleDES})}(ch)),ch.exports}var dh={exports:{}},xg;function XC(){return xg||(xg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=o.RC4=s.extend({_doReset:function(){for(var d=this._key,u=d.words,h=d.sigBytes,f=this._S=[],m=0;m<256;m++)f[m]=m;for(var m=0,b=0;m<256;m++){var w=m%h,_=u[w>>>2]>>>24-w%4*8&255;b=(b+f[m]+_)%256;var g=f[m];f[m]=f[b],f[b]=g}this._i=this._j=0},_doProcessBlock:function(d,u){d[u]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var d=this._S,u=this._i,h=this._j,f=0,m=0;m<4;m++){u=(u+1)%256,h=(h+d[u])%256;var b=d[u];d[u]=d[h],d[h]=b,f|=d[(d[u]+d[h])%256]<<24-m*8}return this._i=u,this._j=h,f}r.RC4=s._createHelper(a);var c=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)l.call(this)}});r.RC4Drop=s._createHelper(c)}(),i.RC4})}(dh)),dh.exports}var uh={exports:{}},Sg;function ZC(){return Sg||(Sg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.Rabbit=s.extend({_doReset:function(){for(var h=this._key.words,f=this.cfg.iv,m=0;m<4;m++)h[m]=(h[m]<<8|h[m]>>>24)&16711935|(h[m]<<24|h[m]>>>8)&4278255360;var b=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],w=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)u.call(this);for(var m=0;m<8;m++)w[m]^=b[m+4&7];if(f){var _=f.words,g=_[0],p=_[1],y=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E=y>>>16|C&4294901760,A=C<<16|y&65535;w[0]^=y,w[1]^=E,w[2]^=C,w[3]^=A,w[4]^=y,w[5]^=E,w[6]^=C,w[7]^=A;for(var m=0;m<4;m++)u.call(this)}},_doProcessBlock:function(h,f){var m=this._X;u.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,m=0;m<8;m++)l[m]=f[m];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var m=0;m<8;m++){var b=h[m]+f[m],w=b&65535,_=b>>>16,g=((w*w>>>17)+w*_>>>15)+_*_,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[m]=g^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=s._createHelper(d)}(),i.Rabbit})}(uh)),uh.exports}var hh={exports:{}},Tg;function GC(){return Tg||(Tg=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.StreamCipher,o=r.algo,a=[],l=[],c=[],d=o.RabbitLegacy=s.extend({_doReset:function(){var h=this._key.words,f=this.cfg.iv,m=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],b=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var w=0;w<4;w++)u.call(this);for(var w=0;w<8;w++)b[w]^=m[w+4&7];if(f){var _=f.words,g=_[0],p=_[1],y=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E=y>>>16|C&4294901760,A=C<<16|y&65535;b[0]^=y,b[1]^=E,b[2]^=C,b[3]^=A,b[4]^=y,b[5]^=E,b[6]^=C,b[7]^=A;for(var w=0;w<4;w++)u.call(this)}},_doProcessBlock:function(h,f){var m=this._X;u.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,h[f+b]^=a[b]},blockSize:128/32,ivSize:64/32});function u(){for(var h=this._X,f=this._C,m=0;m<8;m++)l[m]=f[m];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var m=0;m<8;m++){var b=h[m]+f[m],w=b&65535,_=b>>>16,g=((w*w>>>17)+w*_>>>15)+_*_,p=((b&4294901760)*b|0)+((b&65535)*b|0);c[m]=g^p}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=s._createHelper(d)}(),i.RabbitLegacy})}(hh)),hh.exports}var fh={exports:{}},Ng;function QC(){return Ng||(Ng=1,function(e,t){(function(i,r,n){e.exports=r(Pe(),io(),ro(),Qn(),Kt())})(Te,function(i){return function(){var r=i,n=r.lib,s=n.BlockCipher,o=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var d={pbox:[],sbox:[]};function u(w,_){let g=_>>24&255,p=_>>16&255,y=_>>8&255,C=_&255,E=w.sbox[0][g]+w.sbox[1][p];return E=E^w.sbox[2][y],E=E+w.sbox[3][C],E}function h(w,_,g){let p=_,y=g,C;for(let E=0;E1;--E)p=p^w.pbox[E],y=u(w,p)^y,C=p,p=y,y=C;return C=p,p=y,y=C,y=y^w.pbox[1],p=p^w.pbox[0],{left:p,right:y}}function m(w,_,g){for(let A=0;A<4;A++){w.sbox[A]=[];for(let x=0;x<256;x++)w.sbox[A][x]=c[A][x]}let p=0;for(let A=0;A=g&&(p=0);let y=0,C=0,E=0;for(let A=0;A=0;)e[t]=0}const iA=0,$5=1,rA=2,nA=3,sA=258,K0=29,jl=256,kl=jl+1+K0,Po=30,W0=19,P5=2*kl+1,fs=15,ph=16,oA=7,q0=256,D5=16,L5=17,B5=18,zf=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Mc=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),aA=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),O5=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),lA=512,Gr=new Array((kl+2)*2);la(Gr);const Ua=new Array(Po*2);la(Ua);const Cl=new Array(lA);la(Cl);const Al=new Array(sA-nA+1);la(Al);const j0=new Array(K0);la(j0);const bd=new Array(Po);la(bd);function mh(e,t,i,r,n){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=r,this.max_length=n,this.has_stree=e&&e.length}let M5,V5,F5;function gh(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const z5=e=>e<256?Cl[e]:Cl[256+(e>>>7)],El=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},$i=(e,t,i)=>{e.bi_valid>ph-i?(e.bi_buf|=t<>ph-e.bi_valid,e.bi_valid+=i-ph):(e.bi_buf|=t<{$i(e,i[t*2],i[t*2+1])},H5=(e,t)=>{let i=0;do i|=e&1,e>>>=1,i<<=1;while(--t>0);return i>>>1},cA=e=>{e.bi_valid===16?(El(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},dA=(e,t)=>{const i=t.dyn_tree,r=t.max_code,n=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,d,u,h,f,m,b=0;for(h=0;h<=fs;h++)e.bl_count[h]=0;for(i[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;cl&&(h=l,b++),i[d*2+1]=h,!(d>r)&&(e.bl_count[h]++,f=0,d>=a&&(f=o[d-a]),m=i[d*2],e.opt_len+=m*(h+f),s&&(e.static_len+=m*(n[d*2+1]+f)));if(b!==0){do{for(h=l-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[l]--,b-=2}while(b>0);for(h=l;h!==0;h--)for(d=e.bl_count[h];d!==0;)u=e.heap[--c],!(u>r)&&(i[u*2+1]!==h&&(e.opt_len+=(h-i[u*2+1])*i[u*2],i[u*2+1]=h),d--)}},U5=(e,t,i)=>{const r=new Array(fs+1);let n=0,s,o;for(s=1;s<=fs;s++)n=n+i[s-1]<<1,r[s]=n;for(o=0;o<=t;o++){let a=e[o*2+1];a!==0&&(e[o*2]=H5(r[a]++,a))}},uA=()=>{let e,t,i,r,n;const s=new Array(fs+1);for(i=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?El(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},$g=(e,t,i,r)=>{const n=t*2,s=i*2;return e[n]{const r=e.heap[i];let n=i<<1;for(;n<=e.heap_len&&(n{let r,n,s=0,o,a;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,n=e.pending_buf[e.sym_buf+s++],r===0?$r(e,n,t):(o=Al[n],$r(e,o+jl+1,t),a=zf[o],a!==0&&(n-=j0[o],$i(e,n,a)),r--,o=z5(r),$r(e,o,i),a=Mc[o],a!==0&&(r-=bd[o],$i(e,r,a)));while(s{const i=t.dyn_tree,r=t.stat_desc.static_tree,n=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,a,l=-1,c;for(e.heap_len=0,e.heap_max=P5,o=0;o>1;o>=1;o--)vh(e,i,o);c=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],vh(e,i,1),a=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=a,i[c*2]=i[o*2]+i[a*2],e.depth[c]=(e.depth[o]>=e.depth[a]?e.depth[o]:e.depth[a])+1,i[o*2+1]=i[a*2+1]=c,e.heap[1]=c++,vh(e,i,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],dA(e,t),U5(i,l,e.bl_count)},Dg=(e,t,i)=>{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(i+1)*2+1]=65535,r=0;r<=i;r++)s=o,o=t[(r+1)*2+1],!(++a{let r,n=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),r=0;r<=i;r++)if(s=o,o=t[(r+1)*2+1],!(++a{let t;for(Dg(e,e.dyn_ltree,e.l_desc.max_code),Dg(e,e.dyn_dtree,e.d_desc.max_code),Hf(e,e.bl_desc),t=W0-1;t>=3&&e.bl_tree[O5[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},fA=(e,t,i,r)=>{let n;for($i(e,t-257,5),$i(e,i-1,5),$i(e,r-4,4),n=0;n{let t=4093624447,i;for(i=0;i<=31;i++,t>>>=1)if(t&1&&e.dyn_ltree[i*2]!==0)return Rg;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Ig;for(i=32;i{Bg||(uA(),Bg=!0),e.l_desc=new gh(e.dyn_ltree,M5),e.d_desc=new gh(e.dyn_dtree,V5),e.bl_desc=new gh(e.bl_tree,F5),e.bi_buf=0,e.bi_valid=0,K5(e)},q5=(e,t,i,r)=>{$i(e,(iA<<1)+(r?1:0),3),W5(e),El(e,i),El(e,~i),i&&e.pending_buf.set(e.window.subarray(t,t+i),e.pending),e.pending+=i},gA=e=>{$i(e,$5<<1,3),$r(e,q0,Gr),cA(e)},vA=(e,t,i,r)=>{let n,s,o=0;e.level>0?(e.strm.data_type===tA&&(e.strm.data_type=pA(e)),Hf(e,e.l_desc),Hf(e,e.d_desc),o=hA(e),n=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=n&&(n=s)):n=s=i+5,i+4<=n&&t!==-1?q5(e,t,i,r):e.strategy===eA||s===n?($i(e,($5<<1)+(r?1:0),3),Pg(e,Gr,Ua)):($i(e,(rA<<1)+(r?1:0),3),fA(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Pg(e,e.dyn_ltree,e.dyn_dtree)),K5(e),r&&W5(e)},yA=(e,t,i)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=i,t===0?e.dyn_ltree[i*2]++:(e.matches++,t--,e.dyn_ltree[(Al[i]+jl+1)*2]++,e.dyn_dtree[z5(t)*2]++),e.sym_next===e.sym_end);var bA=mA,wA=q5,_A=vA,kA=yA,CA=gA,AA={_tr_init:bA,_tr_stored_block:wA,_tr_flush_block:_A,_tr_tally:kA,_tr_align:CA};const EA=(e,t,i,r)=>{let n=e&65535|0,s=e>>>16&65535|0,o=0;for(;i!==0;){o=i>2e3?2e3:i,i-=o;do n=n+t[r++]|0,s=s+n|0;while(--o);n%=65521,s%=65521}return n|s<<16|0};var xl=EA;const xA=()=>{let e,t=[];for(var i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[i]=e}return t},SA=new Uint32Array(xA()),TA=(e,t,i,r)=>{const n=SA,s=r+i;e^=-1;for(let o=r;o>>8^n[(e^t[o])&255];return e^-1};var Bt=TA,qs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},no={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:NA,_tr_stored_block:Uf,_tr_flush_block:RA,_tr_tally:Bn,_tr_align:IA}=AA,{Z_NO_FLUSH:On,Z_PARTIAL_FLUSH:$A,Z_FULL_FLUSH:PA,Z_FINISH:or,Z_BLOCK:Og,Z_OK:qt,Z_STREAM_END:Mg,Z_STREAM_ERROR:Dr,Z_DATA_ERROR:DA,Z_BUF_ERROR:yh,Z_DEFAULT_COMPRESSION:LA,Z_FILTERED:BA,Z_HUFFMAN_ONLY:yc,Z_RLE:OA,Z_FIXED:MA,Z_DEFAULT_STRATEGY:VA,Z_UNKNOWN:FA,Z_DEFLATED:nu}=no,zA=9,HA=15,UA=8,KA=29,WA=256,Kf=WA+1+KA,qA=30,jA=19,YA=2*Kf+1,XA=15,Ie=3,In=258,Lr=In+Ie+1,ZA=32,Jo=42,Y0=57,Wf=69,qf=73,jf=91,Yf=103,ps=113,Ea=666,bi=1,ca=2,js=3,da=4,GA=3,ms=(e,t)=>(e.msg=qs[t],t),Vg=e=>e*2-(e>4?9:0),Nn=e=>{let t=e.length;for(;--t>=0;)e[t]=0},QA=e=>{let t,i,r,n=e.w_size;t=e.hash_size,r=t;do i=e.head[--r],e.head[r]=i>=n?i-n:0;while(--t);t=n,r=t;do i=e.prev[--r],e.prev[r]=i>=n?i-n:0;while(--t)};let JA=(e,t,i)=>(t<{const t=e.state;let i=t.pending;i>e.avail_out&&(i=e.avail_out),i!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+i),e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,t.pending===0&&(t.pending_out=0))},qi=(e,t)=>{RA(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,zi(e.strm)},ze=(e,t)=>{e.pending_buf[e.pending++]=t},ba=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Xf=(e,t,i,r)=>{let n=e.avail_in;return n>r&&(n=r),n===0?0:(e.avail_in-=n,t.set(e.input.subarray(e.next_in,e.next_in+n),i),e.state.wrap===1?e.adler=xl(e.adler,t,n,i):e.state.wrap===2&&(e.adler=Bt(e.adler,t,n,i)),e.next_in+=n,e.total_in+=n,n)},j5=(e,t)=>{let i=e.max_chain_length,r=e.strstart,n,s,o=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-Lr?e.strstart-(e.w_size-Lr):0,c=e.window,d=e.w_mask,u=e.prev,h=e.strstart+In;let f=c[r+o-1],m=c[r+o];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do if(n=t,!(c[n+o]!==m||c[n+o-1]!==f||c[n]!==c[r]||c[++n]!==c[r+1])){r+=2,n++;do;while(c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&c[++r]===c[++n]&&ro){if(e.match_start=t,o=s,s>=a)break;f=c[r+o-1],m=c[r+o]}}while((t=u[t&d])>l&&--i!==0);return o<=e.lookahead?o:e.lookahead},ea=e=>{const t=e.w_size;let i,r,n;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Lr)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),QA(e),r+=t),e.strm.avail_in===0)break;if(i=Xf(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=i,e.lookahead+e.insert>=Ie)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=Mn(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=Mn(e,e.ins_h,e.window[n+Ie-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert{let i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,n,s,o=0,a=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_outn+e.strm.avail_in&&(r=n+e.strm.avail_in),r>s&&(r=s),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,zi(e.strm),n&&(n>r&&(n=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+n),e.strm.next_out),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n,e.block_start+=n,r-=n),r&&(Xf(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_waters&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(Xf(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,i=s>e.w_size?e.w_size:s,n=e.strstart-e.block_start,(n>=i||(n||t===or)&&t!==On&&e.strm.avail_in===0&&n<=s)&&(r=n>s?s:n,o=t===or&&e.strm.avail_in===0&&r===n?1:0,Uf(e,e.block_start,r,o),e.block_start+=r,zi(e.strm)),o?js:bi)},bh=(e,t)=>{let i,r;for(;;){if(e.lookahead=Ie&&(e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),i!==0&&e.strstart-i<=e.w_size-Lr&&(e.match_length=j5(e,i)),e.match_length>=Ie)if(r=Bn(e,e.strstart-e.match_start,e.match_length-Ie),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Ie){e.match_length--;do e.strstart++,e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+1]);else r=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(qi(e,!1),e.strm.avail_out===0))return bi}return e.insert=e.strstart{let i,r,n;for(;;){if(e.lookahead=Ie&&(e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Ie-1,i!==0&&e.prev_length4096)&&(e.match_length=Ie-1)),e.prev_length>=Ie&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-Ie,r=Bn(e,e.strstart-1-e.prev_match,e.prev_length-Ie),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=Mn(e,e.ins_h,e.window[e.strstart+Ie-1]),i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Ie-1,e.strstart++,r&&(qi(e,!1),e.strm.avail_out===0))return bi}else if(e.match_available){if(r=Bn(e,0,e.window[e.strstart-1]),r&&qi(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return bi}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Bn(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let i,r,n,s;const o=e.window;for(;;){if(e.lookahead<=In){if(ea(e),e.lookahead<=In&&t===On)return bi;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Ie&&e.strstart>0&&(n=e.strstart-1,r=o[n],r===o[++n]&&r===o[++n]&&r===o[++n])){s=e.strstart+In;do;while(r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&ne.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Ie?(i=Bn(e,1,e.match_length-Ie),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(qi(e,!1),e.strm.avail_out===0))return bi}return e.insert=0,t===or?(qi(e,!0),e.strm.avail_out===0?js:da):e.sym_next&&(qi(e,!1),e.strm.avail_out===0)?bi:ca},tE=(e,t)=>{let i;for(;;){if(e.lookahead===0&&(ea(e),e.lookahead===0)){if(t===On)return bi;break}if(e.match_length=0,i=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(qi(e,!1),e.strm.avail_out===0))return bi}return e.insert=0,t===or?(qi(e,!0),e.strm.avail_out===0?js:da):e.sym_next&&(qi(e,!1),e.strm.avail_out===0)?bi:ca};function Tr(e,t,i,r,n){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=r,this.func=n}const xa=[new Tr(0,0,0,0,Y5),new Tr(4,4,8,4,bh),new Tr(4,5,16,8,bh),new Tr(4,6,32,32,bh),new Tr(4,4,16,16,lo),new Tr(8,16,32,32,lo),new Tr(8,16,128,128,lo),new Tr(8,32,128,256,lo),new Tr(32,128,258,1024,lo),new Tr(32,258,258,4096,lo)],iE=e=>{e.window_size=2*e.w_size,Nn(e.head),e.max_lazy_match=xa[e.level].max_lazy,e.good_match=xa[e.level].good_length,e.nice_match=xa[e.level].nice_length,e.max_chain_length=xa[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Ie-1,e.match_available=0,e.ins_h=0};function rE(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=nu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(YA*2),this.dyn_dtree=new Uint16Array((2*qA+1)*2),this.bl_tree=new Uint16Array((2*jA+1)*2),Nn(this.dyn_ltree),Nn(this.dyn_dtree),Nn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(XA+1),this.heap=new Uint16Array(2*Kf+1),Nn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Kf+1),Nn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Yl=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Jo&&t.status!==Y0&&t.status!==Wf&&t.status!==qf&&t.status!==jf&&t.status!==Yf&&t.status!==ps&&t.status!==Ea?1:0},X5=e=>{if(Yl(e))return ms(e,Dr);e.total_in=e.total_out=0,e.data_type=FA;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Y0:t.wrap?Jo:ps,e.adler=t.wrap===2?0:1,t.last_flush=-2,NA(t),qt},Z5=e=>{const t=X5(e);return t===qt&&iE(e.state),t},nE=(e,t)=>Yl(e)||e.state.wrap!==2?Dr:(e.state.gzhead=t,qt),G5=(e,t,i,r,n,s)=>{if(!e)return Dr;let o=1;if(t===LA&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),n<1||n>zA||i!==nu||r<8||r>15||t<0||t>9||s<0||s>MA||r===8&&o!==1)return ms(e,Dr);r===8&&(r=9);const a=new rE;return e.state=a,a.strm=e,a.status=Jo,a.wrap=o,a.gzhead=null,a.w_bits=r,a.w_size=1<G5(e,t,nu,HA,UA,VA),oE=(e,t)=>{if(Yl(e)||t>Og||t<0)return e?ms(e,Dr):Dr;const i=e.state;if(!e.output||e.avail_in!==0&&!e.input||i.status===Ea&&t!==or)return ms(e,e.avail_out===0?yh:Dr);const r=i.last_flush;if(i.last_flush=t,i.pending!==0){if(zi(e),e.avail_out===0)return i.last_flush=-1,qt}else if(e.avail_in===0&&Vg(t)<=Vg(r)&&t!==or)return ms(e,yh);if(i.status===Ea&&e.avail_in!==0)return ms(e,yh);if(i.status===Jo&&i.wrap===0&&(i.status=ps),i.status===Jo){let n=nu+(i.w_bits-8<<4)<<8,s=-1;if(i.strategy>=yc||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,n|=s<<6,i.strstart!==0&&(n|=ZA),n+=31-n%31,ba(i,n),i.strstart!==0&&(ba(i,e.adler>>>16),ba(i,e.adler&65535)),e.adler=1,i.status=ps,zi(e),i.pending!==0)return i.last_flush=-1,qt}if(i.status===Y0){if(e.adler=0,ze(i,31),ze(i,139),ze(i,8),i.gzhead)ze(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ze(i,i.gzhead.time&255),ze(i,i.gzhead.time>>8&255),ze(i,i.gzhead.time>>16&255),ze(i,i.gzhead.time>>24&255),ze(i,i.level===9?2:i.strategy>=yc||i.level<2?4:0),ze(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(ze(i,i.gzhead.extra.length&255),ze(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Bt(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Wf;else if(ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,0),ze(i,i.level===9?2:i.strategy>=yc||i.level<2?4:0),ze(i,GA),i.status=ps,zi(e),i.pending!==0)return i.last_flush=-1,qt}if(i.status===Wf){if(i.gzhead.extra){let n=i.pending,s=(i.gzhead.extra.length&65535)-i.gzindex;for(;i.pending+s>i.pending_buf_size;){let a=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+a),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex+=a,zi(e),i.pending!==0)return i.last_flush=-1,qt;n=0,s-=a}let o=new Uint8Array(i.gzhead.extra);i.pending_buf.set(o.subarray(i.gzindex,i.gzindex+s),i.pending),i.pending+=s,i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=qf}if(i.status===qf){if(i.gzhead.name){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),zi(e),i.pending!==0)return i.last_flush=-1,qt;n=0}i.gzindexn&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=jf}if(i.status===jf){if(i.gzhead.comment){let n=i.pending,s;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n)),zi(e),i.pending!==0)return i.last_flush=-1,qt;n=0}i.gzindexn&&(e.adler=Bt(e.adler,i.pending_buf,i.pending-n,n))}i.status=Yf}if(i.status===Yf){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(zi(e),i.pending!==0))return i.last_flush=-1,qt;ze(i,e.adler&255),ze(i,e.adler>>8&255),e.adler=0}if(i.status=ps,zi(e),i.pending!==0)return i.last_flush=-1,qt}if(e.avail_in!==0||i.lookahead!==0||t!==On&&i.status!==Ea){let n=i.level===0?Y5(i,t):i.strategy===yc?tE(i,t):i.strategy===OA?eE(i,t):xa[i.level].func(i,t);if((n===js||n===da)&&(i.status=Ea),n===bi||n===js)return e.avail_out===0&&(i.last_flush=-1),qt;if(n===ca&&(t===$A?IA(i):t!==Og&&(Uf(i,0,0,!1),t===PA&&(Nn(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),zi(e),e.avail_out===0))return i.last_flush=-1,qt}return t!==or?qt:i.wrap<=0?Mg:(i.wrap===2?(ze(i,e.adler&255),ze(i,e.adler>>8&255),ze(i,e.adler>>16&255),ze(i,e.adler>>24&255),ze(i,e.total_in&255),ze(i,e.total_in>>8&255),ze(i,e.total_in>>16&255),ze(i,e.total_in>>24&255)):(ba(i,e.adler>>>16),ba(i,e.adler&65535)),zi(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?qt:Mg)},aE=e=>{if(Yl(e))return Dr;const t=e.state.status;return e.state=null,t===ps?ms(e,DA):qt},lE=(e,t)=>{let i=t.length;if(Yl(e))return Dr;const r=e.state,n=r.wrap;if(n===2||n===1&&r.status!==Jo||r.lookahead)return Dr;if(n===1&&(e.adler=xl(e.adler,t,i,0)),r.wrap=0,i>=r.w_size){n===0&&(Nn(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(i-r.w_size,i),0),t=l,i=r.w_size}const s=e.avail_in,o=e.next_in,a=e.input;for(e.avail_in=i,e.next_in=0,e.input=t,ea(r);r.lookahead>=Ie;){let l=r.strstart,c=r.lookahead-(Ie-1);do r.ins_h=Mn(r,r.ins_h,r.window[l+Ie-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--c);r.strstart=l,r.lookahead=Ie-1,ea(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Ie-1,r.match_available=0,e.next_in=o,e.input=a,e.avail_in=s,r.wrap=n,qt};var cE=sE,dE=G5,uE=Z5,hE=X5,fE=nE,pE=oE,mE=aE,gE=lE,vE="pako deflate (from Nodeca project)",Ka={deflateInit:cE,deflateInit2:dE,deflateReset:uE,deflateResetKeep:hE,deflateSetHeader:fE,deflate:pE,deflateEnd:mE,deflateSetDictionary:gE,deflateInfo:vE};const yE=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var bE=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const i=t.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(const r in i)yE(i,r)&&(e[r]=i[r])}}return e},wE=e=>{let t=0;for(let r=0,n=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Sl[254]=Sl[254]=1;var _E=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,i,r,n,s,o=e.length,a=0;for(n=0;n>>6,t[s++]=128|i&63):i<65536?(t[s++]=224|i>>>12,t[s++]=128|i>>>6&63,t[s++]=128|i&63):(t[s++]=240|i>>>18,t[s++]=128|i>>>12&63,t[s++]=128|i>>>6&63,t[s++]=128|i&63);return t};const kE=(e,t)=>{if(t<65534&&e.subarray&&Q5)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let i="";for(let r=0;r{const i=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,n;const s=new Array(i*2);for(n=0,r=0;r4){s[n++]=65533,r+=a-1;continue}for(o&=a===2?31:a===3?15:7;a>1&&r1){s[n++]=65533;continue}o<65536?s[n++]=o:(o-=65536,s[n++]=55296|o>>10&1023,s[n++]=56320|o&1023)}return kE(s,n)},AE=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let i=t-1;for(;i>=0&&(e[i]&192)===128;)i--;return i<0||i===0?t:i+Sl[e[i]]>t?i:t},Tl={string2buf:_E,buf2string:CE,utf8border:AE};function EE(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var J5=EE;const e4=Object.prototype.toString,{Z_NO_FLUSH:xE,Z_SYNC_FLUSH:SE,Z_FULL_FLUSH:TE,Z_FINISH:NE,Z_OK:wd,Z_STREAM_END:RE,Z_DEFAULT_COMPRESSION:IE,Z_DEFAULT_STRATEGY:$E,Z_DEFLATED:PE}=no;function Xl(e){this.options=su.assign({level:IE,method:PE,chunkSize:16384,windowBits:15,memLevel:8,strategy:$E},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new J5,this.strm.avail_out=0;let i=Ka.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(i!==wd)throw new Error(qs[i]);if(t.header&&Ka.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Tl.string2buf(t.dictionary):e4.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,i=Ka.deflateSetDictionary(this.strm,r),i!==wd)throw new Error(qs[i]);this._dict_set=!0}}Xl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize;let n,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?NE:xE,typeof e=="string"?i.input=Tl.string2buf(e):e4.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){if(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),(s===SE||s===TE)&&i.avail_out<=6){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(n=Ka.deflate(i,s),n===RE)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Ka.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===wd;if(i.avail_out===0){this.onData(i.output);continue}if(s>0&&i.next_out>0){this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;continue}if(i.avail_in===0)break}return!0};Xl.prototype.onData=function(e){this.chunks.push(e)};Xl.prototype.onEnd=function(e){e===wd&&(this.result=su.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function X0(e,t){const i=new Xl(t);if(i.push(e,!0),i.err)throw i.msg||qs[i.err];return i.result}function DE(e,t){return t=t||{},t.raw=!0,X0(e,t)}function LE(e,t){return t=t||{},t.gzip=!0,X0(e,t)}var BE=Xl,OE=X0,ME=DE,VE=LE,FE=no,zE={Deflate:BE,deflate:OE,deflateRaw:ME,gzip:VE,constants:FE};const bc=16209,HE=16191;var UE=function(t,i){let r,n,s,o,a,l,c,d,u,h,f,m,b,w,_,g,p,y,C,E,A,x,S,k;const N=t.state;r=t.next_in,S=t.input,n=r+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(i-t.avail_out),a=s+(t.avail_out-257),l=N.dmax,c=N.wsize,d=N.whave,u=N.wnext,h=N.window,f=N.hold,m=N.bits,b=N.lencode,w=N.distcode,_=(1<>>24,f>>>=y,m-=y,y=p>>>16&255,y===0)k[s++]=p&65535;else if(y&16){C=p&65535,y&=15,y&&(m>>=y,m-=y),m<15&&(f+=S[r++]<>>24,f>>>=y,m-=y,y=p>>>16&255,y&16){if(E=p&65535,y&=15,ml){t.msg="invalid distance too far back",N.mode=bc;break e}if(f>>>=y,m-=y,y=s-o,E>y){if(y=E-y,y>d&&N.sane){t.msg="invalid distance too far back",N.mode=bc;break e}if(A=0,x=h,u===0){if(A+=c-y,y2;)k[s++]=x[A++],k[s++]=x[A++],k[s++]=x[A++],C-=3;C&&(k[s++]=x[A++],C>1&&(k[s++]=x[A++]))}else{A=s-E;do k[s++]=k[A++],k[s++]=k[A++],k[s++]=k[A++],C-=3;while(C>2);C&&(k[s++]=k[A++],C>1&&(k[s++]=k[A++]))}}else if(y&64){t.msg="invalid distance code",N.mode=bc;break e}else{p=w[(p&65535)+(f&(1<>3,r-=C,m-=C<<3,f&=(1<{const l=a.bits;let c=0,d=0,u=0,h=0,f=0,m=0,b=0,w=0,_=0,g=0,p,y,C,E,A,x=null,S;const k=new Uint16Array(co+1),N=new Uint16Array(co+1);let I=null,T,P,O;for(c=0;c<=co;c++)k[c]=0;for(d=0;d=1&&k[h]===0;h--);if(f>h&&(f=h),h===0)return n[s++]=1<<24|64<<16|0,n[s++]=1<<24|64<<16|0,a.bits=1,0;for(u=1;u0&&(e===Hg||h!==1))return-1;for(N[1]=0,c=1;cFg||e===Ug&&_>zg)return 1;for(;;){T=c-b,o[d]+1=S?(P=I[o[d]-S],O=x[o[d]-S]):(P=96,O=0),p=1<>b)+y]=T<<24|P<<16|O|0;while(y!==0);for(p=1<>=1;if(p!==0?(g&=p-1,g+=p):g=0,d++,--k[c]===0){if(c===h)break;c=t[i+o[d]]}if(c>f&&(g&E)!==C){for(b===0&&(b=f),A+=u,m=c-b,w=1<Fg||e===Ug&&_>zg)return 1;C=g&E,n[C]=f<<24|m<<16|A-s|0}}return g!==0&&(n[A+g]=c-b<<24|64<<16|0),a.bits=f,0};var Wa=YE;const XE=0,t4=1,i4=2,{Z_FINISH:Kg,Z_BLOCK:ZE,Z_TREES:wc,Z_OK:Ys,Z_STREAM_END:GE,Z_NEED_DICT:QE,Z_STREAM_ERROR:mr,Z_DATA_ERROR:r4,Z_MEM_ERROR:n4,Z_BUF_ERROR:JE,Z_DEFLATED:Wg}=no,ou=16180,qg=16181,jg=16182,Yg=16183,Xg=16184,Zg=16185,Gg=16186,Qg=16187,Jg=16188,ev=16189,_d=16190,Wr=16191,_h=16192,tv=16193,kh=16194,iv=16195,rv=16196,nv=16197,sv=16198,_c=16199,kc=16200,ov=16201,av=16202,lv=16203,cv=16204,dv=16205,Ch=16206,uv=16207,hv=16208,tt=16209,s4=16210,o4=16211,ex=852,tx=592,ix=15,rx=ix,fv=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function nx(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const so=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeo4?1:0},a4=e=>{if(so(e))return mr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=ou,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(ex),t.distcode=t.distdyn=new Int32Array(tx),t.sane=1,t.back=-1,Ys},l4=e=>{if(so(e))return mr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,a4(e)},c4=(e,t)=>{let i;if(so(e))return mr;const r=e.state;return t<0?(i=0,t=-t):(i=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?mr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=i,r.wbits=t,l4(e))},d4=(e,t)=>{if(!e)return mr;const i=new nx;e.state=i,i.strm=e,i.window=null,i.mode=ou;const r=c4(e,t);return r!==Ys&&(e.state=null),r},sx=e=>d4(e,rx);let pv=!0,Ah,Eh;const ox=e=>{if(pv){Ah=new Int32Array(512),Eh=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Wa(t4,e.lens,0,288,Ah,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Wa(i4,e.lens,0,32,Eh,0,e.work,{bits:5}),pv=!1}e.lencode=Ah,e.lenbits=9,e.distcode=Eh,e.distbits=5},u4=(e,t,i,r)=>{let n;const s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(i-s.wsize,i),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>r&&(n=r),s.window.set(t.subarray(i-r,i-r+n),s.wnext),r-=n,r?(s.window.set(t.subarray(i-r,i),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave{let i,r,n,s,o,a,l,c,d,u,h,f,m,b,w=0,_,g,p,y,C,E,A,x;const S=new Uint8Array(4);let k,N;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(so(e)||!e.output||!e.input&&e.avail_in!==0)return mr;i=e.state,i.mode===Wr&&(i.mode=_h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,u=a,h=l,x=Ys;e:for(;;)switch(i.mode){case ou:if(i.wrap===0){i.mode=_h;break}for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=Bt(i.check,S,2,0),c=0,d=0,i.mode=qg;break}if(i.head&&(i.head.done=!1),!(i.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",i.mode=tt;break}if((c&15)!==Wg){e.msg="unknown compression method",i.mode=tt;break}if(c>>>=4,d-=4,A=(c&15)+8,i.wbits===0&&(i.wbits=A),A>15||A>i.wbits){e.msg="invalid window size",i.mode=tt;break}i.dmax=1<>8&1),i.flags&512&&i.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,i.check=Bt(i.check,S,2,0)),c=0,d=0,i.mode=jg;case jg:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>8&255,S[2]=c>>>16&255,S[3]=c>>>24&255,i.check=Bt(i.check,S,4,0)),c=0,d=0,i.mode=Yg;case Yg:for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>8),i.flags&512&&i.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,i.check=Bt(i.check,S,2,0)),c=0,d=0,i.mode=Xg;case Xg:if(i.flags&1024){for(;d<16;){if(a===0)break e;a--,c+=r[s++]<>>8&255,i.check=Bt(i.check,S,2,0)),c=0,d=0}else i.head&&(i.head.extra=null);i.mode=Zg;case Zg:if(i.flags&1024&&(f=i.length,f>a&&(f=a),f&&(i.head&&(A=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(r.subarray(s,s+f),A)),i.flags&512&&i.wrap&4&&(i.check=Bt(i.check,r,f,s)),a-=f,s+=f,i.length-=f),i.length))break e;i.length=0,i.mode=Gg;case Gg:if(i.flags&2048){if(a===0)break e;f=0;do A=r[s+f++],i.head&&A&&i.length<65536&&(i.head.name+=String.fromCharCode(A));while(A&&f>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=Wr;break;case ev:for(;d<32;){if(a===0)break e;a--,c+=r[s++]<>>=d&7,d-=d&7,i.mode=Ch;break}for(;d<3;){if(a===0)break e;a--,c+=r[s++]<>>=1,d-=1,c&3){case 0:i.mode=tv;break;case 1:if(ox(i),i.mode=_c,t===wc){c>>>=2,d-=2;break e}break;case 2:i.mode=rv;break;case 3:e.msg="invalid block type",i.mode=tt}c>>>=2,d-=2;break;case tv:for(c>>>=d&7,d-=d&7;d<32;){if(a===0)break e;a--,c+=r[s++]<>>16^65535)){e.msg="invalid stored block lengths",i.mode=tt;break}if(i.length=c&65535,c=0,d=0,i.mode=kh,t===wc)break e;case kh:i.mode=iv;case iv:if(f=i.length,f){if(f>a&&(f=a),f>l&&(f=l),f===0)break e;n.set(r.subarray(s,s+f),o),a-=f,s+=f,l-=f,o+=f,i.length-=f;break}i.mode=Wr;break;case rv:for(;d<14;){if(a===0)break e;a--,c+=r[s++]<>>=5,d-=5,i.ndist=(c&31)+1,c>>>=5,d-=5,i.ncode=(c&15)+4,c>>>=4,d-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=tt;break}i.have=0,i.mode=nv;case nv:for(;i.have>>=3,d-=3}for(;i.have<19;)i.lens[I[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,k={bits:i.lenbits},x=Wa(XE,i.lens,0,19,i.lencode,0,i.work,k),i.lenbits=k.bits,x){e.msg="invalid code lengths set",i.mode=tt;break}i.have=0,i.mode=sv;case sv:for(;i.have>>24,g=w>>>16&255,p=w&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=_,d-=_,i.lens[i.have++]=p;else{if(p===16){for(N=_+2;d>>=_,d-=_,i.have===0){e.msg="invalid bit length repeat",i.mode=tt;break}A=i.lens[i.have-1],f=3+(c&3),c>>>=2,d-=2}else if(p===17){for(N=_+3;d>>=_,d-=_,A=0,f=3+(c&7),c>>>=3,d-=3}else{for(N=_+7;d>>=_,d-=_,A=0,f=11+(c&127),c>>>=7,d-=7}if(i.have+f>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=tt;break}for(;f--;)i.lens[i.have++]=A}}if(i.mode===tt)break;if(i.lens[256]===0){e.msg="invalid code -- missing end-of-block",i.mode=tt;break}if(i.lenbits=9,k={bits:i.lenbits},x=Wa(t4,i.lens,0,i.nlen,i.lencode,0,i.work,k),i.lenbits=k.bits,x){e.msg="invalid literal/lengths set",i.mode=tt;break}if(i.distbits=6,i.distcode=i.distdyn,k={bits:i.distbits},x=Wa(i4,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,k),i.distbits=k.bits,x){e.msg="invalid distances set",i.mode=tt;break}if(i.mode=_c,t===wc)break e;case _c:i.mode=kc;case kc:if(a>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=a,i.hold=c,i.bits=d,UE(e,h),o=e.next_out,n=e.output,l=e.avail_out,s=e.next_in,r=e.input,a=e.avail_in,c=i.hold,d=i.bits,i.mode===Wr&&(i.back=-1);break}for(i.back=0;w=i.lencode[c&(1<>>24,g=w>>>16&255,p=w&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>y)],_=w>>>24,g=w>>>16&255,p=w&65535,!(y+_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=y,d-=y,i.back+=y}if(c>>>=_,d-=_,i.back+=_,i.length=p,g===0){i.mode=dv;break}if(g&32){i.back=-1,i.mode=Wr;break}if(g&64){e.msg="invalid literal/length code",i.mode=tt;break}i.extra=g&15,i.mode=ov;case ov:if(i.extra){for(N=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=av;case av:for(;w=i.distcode[c&(1<>>24,g=w>>>16&255,p=w&65535,!(_<=d);){if(a===0)break e;a--,c+=r[s++]<>y)],_=w>>>24,g=w>>>16&255,p=w&65535,!(y+_<=d);){if(a===0)break e;a--,c+=r[s++]<>>=y,d-=y,i.back+=y}if(c>>>=_,d-=_,i.back+=_,g&64){e.msg="invalid distance code",i.mode=tt;break}i.offset=p,i.extra=g&15,i.mode=lv;case lv:if(i.extra){for(N=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=tt;break}i.mode=cv;case cv:if(l===0)break e;if(f=h-l,i.offset>f){if(f=i.offset-f,f>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=tt;break}f>i.wnext?(f-=i.wnext,m=i.wsize-f):m=i.wnext-f,f>i.length&&(f=i.length),b=i.window}else b=n,m=o-i.offset,f=i.length;f>l&&(f=l),l-=f,i.length-=f;do n[o++]=b[m++];while(--f);i.length===0&&(i.mode=kc);break;case dv:if(l===0)break e;n[o++]=i.length,l--,i.mode=kc;break;case Ch:if(i.wrap){for(;d<32;){if(a===0)break e;a--,c|=r[s++]<{if(so(e))return mr;let t=e.state;return t.window&&(t.window=null),e.state=null,Ys},cx=(e,t)=>{if(so(e))return mr;const i=e.state;return i.wrap&2?(i.head=t,t.done=!1,Ys):mr},dx=(e,t)=>{const i=t.length;let r,n,s;return so(e)||(r=e.state,r.wrap!==0&&r.mode!==_d)?mr:r.mode===_d&&(n=1,n=xl(n,t,i,0),n!==r.check)?r4:(s=u4(e,t,i,i),s?(r.mode=s4,n4):(r.havedict=1,Ys))};var ux=l4,hx=c4,fx=a4,px=sx,mx=d4,gx=ax,vx=lx,yx=cx,bx=dx,wx="pako inflate (from Nodeca project)",Qr={inflateReset:ux,inflateReset2:hx,inflateResetKeep:fx,inflateInit:px,inflateInit2:mx,inflate:gx,inflateEnd:vx,inflateGetHeader:yx,inflateSetDictionary:bx,inflateInfo:wx};function _x(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var kx=_x;const h4=Object.prototype.toString,{Z_NO_FLUSH:Cx,Z_FINISH:Ax,Z_OK:Nl,Z_STREAM_END:xh,Z_NEED_DICT:Sh,Z_STREAM_ERROR:Ex,Z_DATA_ERROR:mv,Z_MEM_ERROR:xx}=no;function Zl(e){this.options=su.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new J5,this.strm.avail_out=0;let i=Qr.inflateInit2(this.strm,t.windowBits);if(i!==Nl)throw new Error(qs[i]);if(this.header=new kx,Qr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Tl.string2buf(t.dictionary):h4.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=Qr.inflateSetDictionary(this.strm,t.dictionary),i!==Nl)))throw new Error(qs[i])}Zl.prototype.push=function(e,t){const i=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let s,o,a;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Ax:Cx,h4.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(i.avail_out===0&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),s=Qr.inflate(i,o),s===Sh&&n&&(s=Qr.inflateSetDictionary(i,n),s===Nl?s=Qr.inflate(i,o):s===mv&&(s=Sh));i.avail_in>0&&s===xh&&i.state.wrap>0&&e[i.next_in]!==0;)Qr.inflateReset(i),s=Qr.inflate(i,o);switch(s){case Ex:case mv:case Sh:case xx:return this.onEnd(s),this.ended=!0,!1}if(a=i.avail_out,i.next_out&&(i.avail_out===0||s===xh))if(this.options.to==="string"){let l=Tl.utf8border(i.output,i.next_out),c=i.next_out-l,d=Tl.buf2string(i.output,l);i.next_out=c,i.avail_out=r-c,c&&i.output.set(i.output.subarray(l,l+c),0),this.onData(d)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(!(s===Nl&&a===0)){if(s===xh)return s=Qr.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(i.avail_in===0)break}}return!0};Zl.prototype.onData=function(e){this.chunks.push(e)};Zl.prototype.onEnd=function(e){e===Nl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=su.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Z0(e,t){const i=new Zl(t);if(i.push(e),i.err)throw i.msg||qs[i.err];return i.result}function Sx(e,t){return t=t||{},t.raw=!0,Z0(e,t)}var Tx=Zl,Nx=Z0,Rx=Sx,Ix=Z0,$x=no,Px={Inflate:Tx,inflate:Nx,inflateRaw:Rx,ungzip:Ix,constants:$x};const{Deflate:Dx,deflate:Lx,deflateRaw:Bx,gzip:Ox}=zE,{Inflate:Mx,inflate:Vx,inflateRaw:Fx,ungzip:zx}=Px;var Hx=Dx,Ux=Lx,Kx=Bx,Wx=Ox,qx=Mx,jx=Vx,Yx=Fx,Xx=zx,Zx=no,au={Deflate:Hx,deflate:Ux,deflateRaw:Kx,gzip:Wx,Inflate:qx,inflate:jx,inflateRaw:Yx,ungzip:Xx,constants:Zx},qe=new Uint8Array([0,64,128,192,224]),je=new Uint8Array([2,2,2,3,3]),G0=['": "','": ',": +\0[]\\;' @*&?!^|\r~\`\0\0\0`,"\0,.01925-/34678() =+$%#\0\0\0\0\0"],Vc=new Array(94),ja=new Uint8Array([0,64,96,128,144,160,176,192,208,216,224,228,232,236,238,240,242,244,246,247,248,249,250,251,252,253,254,255]),Ya=new Uint8Array([2,3,3,4,4,4,4,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8]),gv=new Uint8Array([57,58,59,87,88,89]),Ti=5;const Gx=90,vv=91,Qx=39,Jx=40,eS=54,tS=46,yv=81,Zf=248,Gf=5,iS=128,rS=2,nS=0,f4=2,p4=0,m4=6,g4=4,bv=33;function sS(e,t,i){for(var r=0;r32&&(Vc[i-bv]=(e<<5)+t,i>=97&&i<=122&&(Vc[i-bv-32]=(e<<5)+t))}wv=1}}var oS=new Uint8Array([128,192,224,240,248,252,254,255]);function de(e,t,i,r,n){for(var s,o,a,l;n>0;){if(s=i%8,o=n,a=r&oS[o-1],a>>=s,o+s>8&&(o=8-s),l=i/8,l<0||t<=l)return-1;s==0?e[i>>3]=a:e[i>>3]|=a,r<<=o,i+=o,n-=o}return i}function gi(e,t,i,r){return r==it?(i=de(e,t,i,Zf,Gf),i=de(e,t,i,iS,rS)):i=de(e,t,i,nS,f4),i}function rs(e,t,i,r,n,s,o){var a=r>>5,l=r&31;if(o[a]==0&&a!=Ne)return[i,n];switch(a){case Ne:n!=Ne&&(i=gi(e,t,i,n),i=de(e,t,i,s[Ne],o[Ne]),n=Ne);break;case qa:i=gi(e,t,i,n),i=de(e,t,i,s[qa],o[qa]);break;case yt:n!=yt&&(i=gi(e,t,i,n),i=de(e,t,i,s[yt],o[yt]),kd[a].charCodeAt(l)>=48&&kd[a].charCodeAt(l)<=57&&(n=yt))}return[de(e,t,i,ja[l],Ya[l]),n]}const gs=new Uint8Array([2,4,7,11,16]),Qf=[4,20,148,2196,67732],Cd=new Uint8Array([1,130,195,228,244]);function tn(e,t,i,r){for(var n=0;n<5;n++)if(r0?Qf[n-1]:0)<<16-gs[n];return gs[n]>8?(i=de(e,t,i,s>>8,8),i=de(e,t,i,s&255,gs[n]-8)):i=de(e,t,i,s>>8,gs[n]),i}return i}const sr=new Uint8Array([6,12,14,16,21]),y4=[0,64,4160,20544,86080];function aS(e,t,i,r,n){const s=new Uint8Array([1,130,195,228,245,253]);var o=0,a=r-n;a<0&&(a=-a);for(var l=0;l<5;l++)if(o+=1<r?128:0,1);var c=a-y4[l];return sr[l]>16?(c<<=24-sr[l],i=de(e,t,i,c>>16,8),i=de(e,t,i,c>>8&255,8),i=de(e,t,i,c&255,sr[l]-16)):sr[l]>8?(c<<=16-sr[l],i=de(e,t,i,c>>8,8),i=de(e,t,i,c&255,sr[l]-8)):(c<<=8-sr[l],i=de(e,t,i,c&255,sr[l])),i}return i}function Th(e,t,i){var r=0;if(typeof e=="string")return r=e.codePointAt(i),[r,r===e.charCodeAt(i)?1:2];var n=0;return i=0;c--){for(d=i;d>6==2;)d--;if(d-i>Ti-1){var f=d-i-Ti,m=i-c-Ti+1;f>h&&(h=f,u=m)}}return h>0?(s=gi(r,n,s,o),s=de(r,n,s,a[Xs],l[Xs]),s=tn(r,n,s,h),s=tn(r,n,s,u),i+=h+Ti,i--,[i,s]):[-i,s]}function cS(e,t,i,r,n,s,o,a,l,c,d){var u=s,h=0,f=0,m=0,b=0,w=0;do for(var _,g,p=o[a-b],y=p.length,C=b==0?i:y;w>6==2;)g--;if(g-w>=Ti){if(h>0){if(w>f)continue;s=u}h=g-w,f=w,m=b,s=gi(r,n,s,l),s=de(r,n,s,c[Xs],d[Xs]),s=tn(r,n,s,h-Ti),s=tn(r,n,s,f),s=tn(r,n,s,m),w+=h}}while(b++0?(i+=h,i--,[i,s]):[-i,s]}function Nh(e){return e>=48&&e<=57?e-48<<4:e>=65&&e<=70?e-65+10<<4:e>=97&&e<=102?e-97+10<<4:0}const Yr=0,Rr=1,ta=2,Jf=3;function Cc(e){return e>=48&&e<=57?Yr:e>=97&&e<=102?Rr:e>=65&&e<=70?ta:Jf}function Ac(e,t,i,r,n,s){return i=gi(e,t,i,r),i=de(e,t,i,n[yt],s[yt]),i=de(e,t,i,0,2),i}function dS(e,t,i,r,n,s,o){return o[Ne]?(yt!=r&&(i=gi(e,t,i,r),i=de(e,t,i,s[yt],o[yt])),i=de(e,t,i,ja[vv&31],Ya[vv&31])):i=de(e,t,i,p4,n?g4:m4),i=de(e,t,i,i==0||e[(i-1)/8]<<(i-1&7)>=0?0:255,8-i%8&7),i}function uS(e,t,i){if(i)return e===t;if(e.length!==t.length)return!1;for(var r=0;r0&&c0)continue;if(c<0&&u<0)return p+1;c=-c}else{if([c,u]=lS(e,t,c,i,p,u,l,r,n),c>0)continue;if(c<0&&u<0)return p+1;c=-c}if(h=e[c],c>0&&t>4&&c0&&h<=(y?"~":126)&&h==e[c-1]&&h==e[c+1]&&h==e[c+2]&&h==e[c+3]){for(var C=c+4;C0){var E=y?"-":45,A=Yr;if(e[c+8]===E&&e[c+13]===E&&e[c+18]===E&&e[c+23]===E){for(var x=c;x0){var A=Yr,N=0;do{var S=y?e.charCodeAt(c+N):e[c+N],k=Cc(S);if(k==Jf||a)break;if(k!=Yr){if(A!=Yr&&A!=k)break;A=k}N++}while(c+N10&&A==Yr&&(A=Rr),(A==Rr||A==ta)&&N>3){u=Ac(i,p,u,l,r,n),u=de(i,p,u,A==Rr?128:224,A==Rr?2:4),u=tn(i,p,u,N);do{var S=y?e.charCodeAt(c):e[c];u=de(i,p,u,Nh(S),4),c++}while(--N>0);c--;continue}}if(o!=null&&o!=null){var I;for(I=0;I<5;I++)if(typeof o[I]=="string"){for(var T=o[I].length,P=0;P(O==="r"?55:O==="t"?51:49))break}else if(O.charCodeAt(0)!==h)break}if(P/T>.66){T=T-P,u=Ac(i,p,u,l,r,n),u=de(i,p,u,0,1),u=de(i,p,u,Cd[I]&248,Cd[I]&7),u=tn(i,p,u,T);for(var M=0;M=0&&c<=t-H&&n[gv[I]>>5]&&uS(s[I].slice(0,H),e.slice(c,c+H),y)){[u,l]=rs(i,p,u,gv[I],l,r,n),c+=H,c--;break}}if(I<6)continue}if(h=y?e.charCodeAt(c):e[c],b=!1,h>=65&&h<=90?b=!0:w&&(w=!1,u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]),l=Ne),b&&!w&&(l==yt&&(u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]),l=Ne),u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]),l==it&&(l=Ne,u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]))),f=0,c+1=32&&h<=126){if(b&&!w){for(d=c+4;d>=c&&d90)break}d==c-1&&(u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]),l=Ne,w=!0)}if(l==it){var me=" .,".indexOf(String.fromCharCode(h));if(me!=-1){u=de(i,p,u,Zf,Gf),u=de(i,p,u,hS[me],fS[me]);continue}}h-=32,w&&b&&(h+=32),h===0?l==yt?u=de(i,p,u,ja[yv&31],Ya[yv&31]):u=de(i,p,u,ja[1],Ya[1]):(h=h-1,[u,l]=rs(i,p,u,Vc[h],l,r,n))}else if(h===13&&f===10)[u,l]=rs(i,p,u,Jx,l,r,n),c++;else if(h===10)l==it?(u=de(i,p,u,Zf,Gf),u=de(i,p,u,240,4)):[u,l]=rs(i,p,u,Qx,l,r,n);else if(h===13)[u,l]=rs(i,p,u,eS,l,r,n);else if(h===9)[u,l]=rs(i,p,u,tS,l,r,n);else{var ye,F,W;if([ye,F]=Th(e,t,c),ye>0)c+=F,l!=it&&([W,F]=Th(e,t,c),W>0?(l!=Ne&&(u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne])),u=gi(i,p,u,l),u=de(i,p,u,r[Ne],n[Ne]),u=de(i,p,u,ja[1],Ya[1]),l=it):(u=gi(i,p,u,l),u=de(i,p,u,r[it],n[it]))),u=aS(i,p,u,ye,m),m=ye,c--;else{for(var Z=1,K=c+1;K0||K0);c--}}}{var xe=(u+7)/8;return u=dS(i,xe,u,l,w,r,n),xe}}function nt(e,t,i,r=G0){let n=new Uint8Array(2048),s,o;return s=Ec(e,t,n,qe,je,r,Ye,!1),o=Ec(e,t,n,qe,je,r,Ye,!0),n=void 0,s>=o?Ec(e,t,i,qe,je,r,Ye,!0):Ec(e,t,i,qe,je,r,Ye,!1)}function Q0(e,t){return e[t>>3]&128>>t%8}function J0(e,t,i){var r=i&7,n=i>>3;t>>=3;var s=e[n]<>8-r:s|=255>>8-r,[s,i]}const pS=5,mS=new Uint8Array([127,191,223,239,255]),gS=new Uint8Array([0,4,8,12,20]),vS=new Uint8Array([127,63,31,15,15]),yS=new Uint8Array([5,4,3,1,0]),bS=new Uint8Array([32,32,65,66,99,100,101,102,103,103,136,137,170,170,171,171,172,172,205,206,207,207,208,208,209,209,242,243,244,245,246,247,248,249,250,251]);function Rh(e,t,i){if(i>yS[n])];return i+=(s>>5)+1,i>t?[99,i]:[s&31,i]}while(++n0&&(s&wS[n[o]-1])==r[o])return i+=n[o],[o,i]}return[99,i]}function Rl(e,t,i,r){for(var n=0;i0;)if(n++,i++,n==r)return[n,i];return i>=t?[99,i]:(i++,[n,i])}function Xa(e,t,i,r){for(var n=0;r-- >0&&i0?1<=i)return[-1,t];var n=Xa(e,i,t,gs[r])+(r>0?Qf[r-1]:0);return t+=gs[r],[n,t]}function _S(e,t,i){var r=0;if([r,t]=Rl(e,i,t,5),r==99)return[2147483491,t];if(r==5)return[r,t]=Rl(e,i,t,4),[2147483392+r,t];if(r>=0){var n=t=i)return[2147483491,t];var s=Xa(e,i,t,sr[r]);return s+=y4[r],t+=sr[r],[n>0?-s:s,t]}return[0,t]}function _v(e,t,i,r,n,s,o,a,l,c,d){var u=0;if([u,n]=rn(e,n,t),u+=Ti,u=i.length);b++)i[r]=m[h+b],r++;return[n,r]}function kv(e,t,i,r,n){var s=0;if([s,n]=rn(e,n,t),s+=Ti,s=i.length);a++)i[r]=i[r-o],r++;return[n,r]}function Cv(e,t){return e>=0&&e<=9?String.fromCharCode(48+e):t>6),e[t++]=128+(i&63)):i<65536?(e[t++]=224+(i>>12),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)):(e[t++]=240+(i>>18),e[t++]=128+(i>>12&63),e[t++]=128+(i>>6&63),e[t++]=128+(i&63)),t}function vr(e,t,i){return e==null?t+=i:t=e.length);r++)e[t++]=i.charCodeAt(r);return t}function Qe(e,t,i,r,n,s,o){var a,l,c,d,u,h=null,f;v4(),l=1,a=c=Ne,u=0;var m=0;e instanceof Array&&(h=e,f=t,e=h[f],t=e.length),t<<=3;for(var b=i==null?"":0;l>8==8388607){var g=_&255;if(g==99)break;switch(g){case 0:b=vr(i,b," ");continue;case 1:if([c,l]=Ih(e,t,l,r,n),c==99){l=t;continue}if(c==it||c==Ne){a=c;continue}if(c==Xs){if(h==null?[l,b]=kv(e,t,i,b,l):[l,b]=_v(e,t,i,b,l,h,f,r,n,s,o),l<0)return b;c=a;continue}break;case 2:b=vr(i,b,",");continue;case 3:b=vr(i,b,".");continue;case 4:b=vr(i,b,` +`);continue}}else m+=_,m>0&&(i==null?b+=String.fromCodePoint(m):b=kS(i,b,m));if(a==it&&c==it)continue}else c=a;var p="",y=u;if([d,l]=Rh(e,t,l),d==99||c==99){l=w;break}if(d==0&&c!=qa){if(l>=t)break;if((c!=yt||a!=it)&&([c,l]=Ih(e,t,l,r,n),c==99||l>=t)){l=w;break}if(c==Ne)if(a==Ne){if(n[Ne]==0&&p4==(J0(e,t,l-f4)&255<<8-(u?g4:m4)))break;if(u){y=u=0;continue}if([d,l]=Rh(e,t,l),d==99){l=w;break}if(d==0){if([c,l]=Ih(e,t,l,r,n),c==99){l=w;break}if(c==Ne){u=1;continue}}y=1}else{a=Ne;continue}else if(c==Xs){if(h==null?[l,b]=kv(e,t,i,b,l):[l,b]=_v(e,t,i,b,l,h,f,r,n,s,o),l<0)break;continue}else{if(c==it)continue;if((c!=yt||a!=it)&&([d,l]=Rh(e,t,l)),d==99){l=w;break}if(c==yt&&d==0){var C;if([C,l]=Rl(e,t,l,5),C==99)break;if(C==0){if([C,l]=Rl(e,t,l,4),C>=5)break;var E;if([E,l]=rn(e,l,t),E<0||o[C]==null)break;var A=o[C].length;if(E>A)break;E=A-E;for(var x=!1,S=0;S0)}else{var M=0;if(C==2||C==4)M=32;else if([M,l]=rn(e,l,t),M<0||M==0)break;do{var H=Xa(e,t,l,4);if(H<0)break;var T=Cv(H,C<3?Rr:ta);b=vr(i,b,T),(C==2||C==4)&&(M==25||M==21||M==17||M==13)&&(b=vr(i,b,"-")),l+=4}while(--M>0);if(M>0)break}a==it&&(c=it);continue}}}if(y&&d==1){c=a=it;continue}if(c<3&&d<28&&(p=kd[c].charAt(d)),p>="a"&&p<="z")a=Ne,y&&(p=String.fromCharCode(p.charCodeAt(0)-32));else if(p!==0&&p.charCodeAt(0)>=48&&p.charCodeAt(0)<=57)a=yt;else if(p.charCodeAt(0)===0&&p!=="0"){if(d==8)b=$h(i,b,`\r +`);else if(c==yt&&d==26){var U;if([U,l]=rn(e,l,t),U<0)break;U+=4;for(var me=i==null?b.charAt(b.length-1):String.fromCharCode(i[b-1]);U--;)b=vr(i,b,me)}else if(c==qa&&d>24)d-=25,b=$h(i,b,s[d]);else if(c==yt&&d>22&&d<26)d-=20,b=$h(i,b,s[d]);else break;a==it&&(c=it);continue}a==it&&(c=it),b=vr(i,b,p)}return b}var mn=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};mn.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};mn.prototype.init_by_array=function(e,t){var i,r,n;for(this.init_seed(19650218),i=1,r=0,n=this.N>t?this.N:t;n;n--){var s=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(((s&4294901760)>>>16)*1664525<<16)+(s&65535)*1664525)+e[r]+r,this.mt[i]>>>=0,i++,r++,i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1),r>=t&&(r=0)}for(n=this.N-1;n;n--){var s=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(((s&4294901760)>>>16)*1566083941<<16)+(s&65535)*1566083941)-i,this.mt[i]>>>=0,i++,i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1)}this.mt[0]=2147483648};mn.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_seed(5489),i=0;i>>1^t[e&1];for(;i>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};mn.prototype.random_int31=function(){return this.random_int()>>>1};mn.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};mn.prototype.random=function(){return this.random_int()*(1/4294967296)};mn.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};mn.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var CS=mn;const b4=T5(CS),AS='{"basic":{"alphabet":{"a":["请","上","中","之","等","人","到","年","个","将"],"b":["得","可","并","发","过","协","曲","闭","斋","峦"],"c":["页","于","而","被","无","挽","裕","斜","绪","镜"],"d":["由","把","好","从","会","帕","莹","盈","敬","粒"],"e":["的","在","了","是","为","有","和","我","一","与"],"f":["站","最","号","及","能","迟","鸭","呈","玻","据"],"g":["着","很","此","但","看","浩","附","侃","汐","绸"],"h":["名","呢","又","图","啊","棉","畅","蒸","玫","添"],"i":["对","地","您","给","这","下","网","也","来","你"],"j":["更","天","去","用","只","矽","萌","镁","芯","夸"],"k":["第","者","所","两","里","氢","羟","纽","夏","春"],"l":["自","做","前","二","他","氦","汀","兰","竹","捷"],"m":["家","点","路","至","十","锂","羧","暑","夕","振"],"n":["区","想","向","主","四","铍","烃","惠","芳","岩"],"o":["就","新","吗","该","不","多","还","要","让","大"],"p":["小","如","成","位","其","硼","酞","褔","苑","笋"],"q":["吧","每","机","几","总","碳","铂","涓","绣","悦"],"r":["起","它","内","高","次","氮","铵","奏","鲤","淳"],"s":["非","元","类","五","使","氧","醇","迷","霁","琅"],"t":["首","进","即","没","市","氖","酯","琳","绫","濑"],"u":["后","三","本","都","时","月","或","说","已","以"],"v":["种","快","那","篇","万","钠","炔","柯","睿","琼"],"w":["长","按","报","比","信","硅","烷","静","欣","束"],"x":["再","带","才","全","呀","磷","烯","柔","雪","冰"],"y":["业","却","版","美","们","硫","桉","寒","冻","玖"],"z":["像","走","文","各","当","氯","缬","妃","琉","璃"],"A":["贴","则","老","生","达","商","行","周","证","经"],"B":["事","场","同","化","找","建","手","道","间","式"],"C":["特","城","型","定","接","局","问","重","叫","通"],"D":["件","少","面","金","近","买","听","学","见","称"],"E":["写","选","片","体","组","先","仅","别","表","现"],"F":["雨","泊","注","织","赴","茶","因","设","环","青"],"G":["数","心","子","处","作","项","谁","分","转","字"],"H":["砂","妥","鹦","课","栗","霞","鹉","翌","蕴","憩"],"I":["畔","珑","咫","瑞","玲","郊","蛟","昱","祉","菁"],"J":["铁","宙","耕","琴","铃","瑰","旬","茉","砺","莅"],"K":["钇","莉","筱","森","曳","苹","踵","晰","砥","舀"],"L":["锆","粟","魄","辉","谜","馅","醋","甄","韶","泪"],"M":["钌","倘","祥","善","泉","惦","铠","骏","韵","泣"],"N":["铑","筑","铿","智","禀","磊","桨","檀","荧","铭"],"O":["钯","骐","烛","蔬","凛","溯","困","炯","酿","瑕"],"P":["银","榻","驿","缎","澟","绒","莺","萤","桅","枕"],"Q":["镉","赞","瑾","程","怡","漱","穗","湍","栀","皆"],"R":["碘","礼","饴","舒","芷","麟","沥","描","锄","墩"],"S":["锡","彰","瞻","雅","贮","喵","翊","闪","翎","婉"],"T":["钨","咨","涌","益","嵩","御","饶","纺","栩","稔"],"U":["铋","骆","橘","未","泰","频","琥","囍","浣","裳"],"V":["钕","飒","浇","哦","途","瓢","珀","涨","仓","棠"],"W":["祁","蓬","灿","部","涧","舫","曙","航","礁","渡"],"X":["旺","嫦","漫","佑","钥","谧","葵","咩","诵","绮"],"Y":["阐","译","锻","茜","坞","砌","靛","猫","芮","绚"],"Z":["拌","皎","笙","沃","悟","拓","遨","揽","昼","蔗"]},"numbersymbol":{"0":["卡","风","水","放","花","钾","宏","谊","探","棋"],"1":["需","头","话","曾","楼","钙","吾","恋","菲","遥"],"2":["连","系","门","力","量","钛","苗","氛","鹤","雀"],"3":["书","亿","跟","深","方","钒","鸳","鸯","纸","鸢"],"4":["若","低","谈","明","百","铬","羯","尧","舜","兆"],"5":["关","客","读","双","回","锰","熙","瀚","渊","灯"],"6":["较","品","嘛","单","价","钴","阑","珊","雁","鹂"],"7":["山","西","动","厂","热","锌","鹃","鸠","昆","仑"],"8":["言","笑","度","易","身","镓","乾","坤","澈","饺"],"9":["份","星","千","仍","办","锗","彗","聪","慧","磋"],"+":["集","费","传","室","拉"],"/":["难","界","指","管","具"],"?":["相","儿","李","早","拿"],"-":["科","白","段","飞","住"],".":["利","红","板","光","约"],"(":["变","款","林","夹","院"],")":["服","句","声","务","游"],"[":["股","南","社","阿","远"],"]":["意","换","些","必","赛"],"<":["届","完","乐","彩","讲"],">":["展","帮","且","物","班"],",":["何","流","密","某","房"],"|":["语","亚","常","除","装"],"=":["极","载","题","刚","气"],"@":["米","影","德","世","坐"],"#":["北","招","短","活","斯"],"!":["值","店","树","哪","余"],"~":["盘","速","座","求","创"],"`":["梦","足","半","视","安"],"$":["空","歌","派","顶","登"],"%":["夜","云","感","啦","欲"],"^":["边","工","眼","街","奖"],"&":["获","占","理","任","实"],"*":["知","掉","色","讯","克"],"_":["直","评","往","层","园"],"{":["留","靠","亦","罗","营"],"}":["合","尚","产","诚","汨"],":":["曱","朩","杉","杸","歩"],";":["毋","氕","気","氘","氙"]}},"special":{"DECRYPT":{"JP":["桜","込","凪","雫","実","沢"],"CN":["玚","俟","玊","欤","瞐","珏"]}}}';var Sa=0,em=new Uint8Array(32);const Bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var vs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ys="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";const ES="ABCDEFGHIJKLMNOPQRSTUVWXYZ",xS="1234567890",SS="+=_-/?.>,<|`~!@#$%^&*(){}[];:",Do="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";var ws="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",_s="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",ks="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:";const TS="桜込凪雫実沢",NS="玚俟玊欤瞐珏",Wn="孎",ep=["https://","lanzou","pan.quark.cn","pan.baidu.com","aliyundrive.com","123pan.com"],tp=["https://","mypikpak.com","mega.nz","drive.google.com","sharepoint.com","1drv.ms"],ip=["https://","baidu.com","b23.tv","bilibili.com","weibo.com","weixin.qq.com"],rp=["https://","google.com","youtube.com","x.com","twitter.com","telegra.ph"],np=["https://","wikipedia.org","github.com","pages.dev","github.io","netlify.app"],sp=["https://","pixiv.net","nicovideo.jp","dlsite.com","line.me","dmm.com"],op=["https://","nyaa.si","bangumi.moe","thepiratebay.org","e-hentai.org","exhentai.org"],ap=["https://","magnet:?xt=urn:btih:","magnet:?xt=urn:sha1:","ed2k://","thunder://","torrent"],lp=["https://",".cn",".com",".net",".org",".xyz"],cp=["https://",".info",".moe",".cc",".co",".dev"],dp=["https://",".io",".us",".eu",".jp",".de"],Ot=JSON.parse(AS);function w4(e,t,i){let r=Mt.SHA256(t),n=Fc(r),s=new Uint8Array(n.byteLength+2);s.set(n,0),s.set([i[0],i[1]],n.byteLength),n=s;let o=Mt.lib.WordArray.create(n),a=Mt.SHA256(o),l=Fc(a),c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=l[d];let u=Mt.lib.WordArray.create(c),h=Mt.lib.WordArray.create(e),f=Mt.AES.encrypt(h,r,{mode:Mt.mode.CTR,padding:Mt.pad.NoPadding,iv:u});return Fc(f.ciphertext)}function Av(e){let t=au.gzip(e);return t.byteLength>=e.byteLength?e:t}function RS(e){const t=new Uint8Array(e.buffer,0,2);return t[0]===31&&t[1]===139?au.ungzip(e):e}function IS(e){let t=new Uint8Array(2048),i=Ad(e),r=255;for(let a=1;a<6;a++){if(i.indexOf(ep[a])!=-1){r=254;break}if(i.indexOf(tp[a])!=-1){r=245;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(ip[a])!=-1){r=253;break}if(i.indexOf(rp[a])!=-1){r=252;break}if(i.indexOf(np[a])!=-1){r=244;break}if(i.indexOf(sp[a])!=-1){r=251;break}if(i.indexOf(op[a])!=-1){r=250;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(ap[a])!=-1){r=249;break}if(i.indexOf(lp[a])!=-1){r=248;break}if(i.indexOf(cp[a])!=-1){r=247;break}if(i.indexOf(dp[a])!=-1){r=246;break}}let n;switch(r){case 255:n=nt(e,e.byteLength,t);break;case 254:n=nt(e,e.byteLength,t,ep);break;case 245:n=nt(e,e.byteLength,t,tp);break;case 253:n=nt(e,e.byteLength,t,ip);break;case 252:n=nt(e,e.byteLength,t,rp);break;case 244:n=nt(e,e.byteLength,t,np);break;case 251:n=nt(e,e.byteLength,t,sp);break;case 250:n=nt(e,e.byteLength,t,op);break;case 249:n=nt(e,e.byteLength,t,ap);break;case 248:n=nt(e,e.byteLength,t,lp);break;case 247:n=nt(e,e.byteLength,t,cp);break;case 246:n=nt(e,e.byteLength,t,dp);break}let s=t.subarray(0,n);if(s.byteLength>=e.byteLength)return e;let o=new Uint8Array(s.byteLength+2);return o.set(s,0),o.set([r,255],s.byteLength),s=o,s}function $S(e){const t=e[e.byteLength-1],i=e[e.byteLength-2];if(t!=255||i<244||i>255)return e;let r=i,n=e.subarray(0,e.byteLength-2),s=new Uint8Array(2048),o;switch(r){case 255:o=Qe(n,n.byteLength,s,qe,je,G0,Ye);break;case 254:o=Qe(n,n.byteLength,s,qe,je,ep,Ye);break;case 245:o=Qe(n,n.byteLength,s,qe,je,tp,Ye);break;case 253:o=Qe(n,n.byteLength,s,qe,je,ip,Ye);break;case 252:o=Qe(n,n.byteLength,s,qe,je,rp,Ye);break;case 244:o=Qe(n,n.byteLength,s,qe,je,np,Ye);break;case 251:o=Qe(n,n.byteLength,s,qe,je,sp,Ye);break;case 250:o=Qe(n,n.byteLength,s,qe,je,op,Ye);break;case 249:o=Qe(n,n.byteLength,s,qe,je,ap,Ye);break;case 248:o=Qe(n,n.byteLength,s,qe,je,lp,Ye);break;case 247:o=Qe(n,n.byteLength,s,qe,je,cp,Ye);break;case 246:o=Qe(n,n.byteLength,s,qe,je,dp,Ye);break}return s.subarray(0,o)}function _4(e){let t=new Array,i,r;for(let o=0;o0;)r=i%10,t.push(r),i=Math.floor(i/10);let n=0,s=0;for(let o=0;o=10&&(t[o]=t[o]%10+Math.floor(t[o]/10))),n=n+t[o];return s=10-n%10,s}function PS(e){let t=e[e.byteLength-1];return _4(e.subarray(0,e.byteLength-1))==t}function DS(e){let t=0;for(let i=e.length-1;i>=e.length-4;i--)e[i]=="="&&t++;return e.slice(0,e.length-t)}function LS(e){return e.length%4==3?e+"=":e.length%4==2?e+"==":e}function Fc(e){const t=new Uint8Array(e.sigBytes);for(let i=0;i>>2]>>>24-i%4*8&255;return t}function k4(e){let t=pr.encode(e);return pr.toUint8Array(t)}function Ad(e){let t=pr.fromUint8Array(e);return pr.decode(t)}function Ev(e,t,i){return t>e.length-1?e:e.substring(0,t)+i+e.substring(t+1)}function Jr(e){let t=new b4(Math.floor(Math.random()*1e9));return Math.floor(t.random()*e)}function xv(e,t,i){return e.slice(0,i)+t+e.slice(i)}function BS(e,t){return e.filter(i=>!t.includes(i))}function uo(e,t){return e.slice(t)+e.slice(0,t)}function ho(e,t){return e.slice(e.length-t)+e.slice(0,e.length-t)}function fo(e){let t,i,r,n,s,o;return t=Bs.indexOf(e),i=Do.indexOf(e),r=Bs.indexOf(vs[t]),n=Do.indexOf(ws[i]),s=Bs.indexOf(ys[r]),o=Do.indexOf(_s[n]),t!=-1?bs[s]:i!=-1?ks[o]:Wn}function Sv(e){let t,i,r,n,s,o;return t=bs.indexOf(e),i=ks.indexOf(e),r=ys.indexOf(Bs[t]),n=_s.indexOf(Do[i]),s=vs.indexOf(Bs[r]),o=ws.indexOf(Do[n]),t!=-1?Bs[s]:i!=-1?Do[o]:Wn}function Ed(){let e=0;Sa==32&&(Sa=0),e=em[Sa]%10,e==0&&(e=10),e%2==0?(vs=uo(vs,6),ws=uo(ws,6),ys=ho(ys,e*2),_s=ho(_s,e*2),bs=uo(bs,e/2+1),ks=uo(ks,e/2+1)):(vs=ho(vs,3),ws=ho(ws,3),ys=uo(ys,e),_s=uo(_s,e),bs=ho(bs,(e+7)/2),ks=ho(ks,(e+7)/2)),Sa++}function Za(){Sa=0,em=new Array(32),vs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ys="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",bs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ws="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:",_s="~3{8}_-$[6(2^|1*%0,<9:`+@7/?.>4=];!)",ks="1234567890+=_-/?.>,<|`~!@#$%^&*(){}[];:"}function C4(e){let t=Mt.SHA256(e);em=Fc(t)}class A4{constructor(t,i=!1){this.output=t,this.isEncrypted=i}}function Tv(e){let t=String(e),i=t.length,r,n=!1,s=!1,o=!1;for(let l=0;l{t==n&&(i=Sv(r))});if(i)return i;for(let r in Ot.basic.numbersymbol)Ot.basic.numbersymbol[r].forEach(n=>{t==n&&(i=Sv(r))});return i||Wn}const VS='{"Actual":{"N":{"alphabet":{"a":"人","b":"镜","c":"鹏","d":"曲","e":"霞","f":"绸","g":"裳","h":"路","i":"岩","j":"叶","k":"鲤","l":"月","m":"雪","n":"冰","o":"局","p":"恋","q":"褔","r":"铃","s":"琴","t":"家","u":"天","v":"韵","w":"书","x":"莺","y":"璃","z":"雨","A":"文","B":"涧","C":"水","D":"花","E":"风","F":"棋","G":"楼","H":"鹤","I":"鸢","J":"灯","K":"雁","L":"星","M":"声","N":"树","O":"茶","P":"竹","Q":"兰","R":"苗","S":"心","T":"语","U":"礼","V":"梦","W":"庭","X":"木","Y":"驿","Z":"火"},"numbersymbol":{"0":"森","1":"夏","2":"光","3":"林","4":"物","5":"云","6":"夜","7":"城","8":"春","9":"空","+":"雀","/":"鹂","=":"鸳"}},"V":{"alphabet":{"a":"关","b":"赴","c":"呈","d":"添","e":"停","f":"成","g":"走","h":"达","i":"行","j":"称","k":"见","l":"学","m":"听","n":"买","o":"作","p":"弹","q":"写","r":"定","s":"谈","t":"动","u":"旅","v":"返","w":"度","x":"开","y":"筑","z":"选","A":"流","B":"指","C":"换","D":"探","E":"放","F":"看","G":"报","H":"事","I":"泊","J":"现","K":"迸","L":"彰","M":"需","N":"飞","O":"游","P":"求","Q":"御","R":"航","S":"歌","T":"读","U":"振","V":"登","W":"任","X":"留","Y":"奏","Z":"连"},"numbersymbol":{"0":"知","1":"至","2":"致","3":"去","4":"画","5":"说","6":"进","7":"信","8":"取","9":"问","+":"笑","/":"视","=":"言"}},"MV":["欲","应","可","能","将","请","想","必","当"],"A":{"alphabet":{"a":"莹","b":"畅","c":"新","d":"高","e":"静","f":"美","g":"绿","h":"佳","i":"善","j":"良","k":"瀚","l":"明","m":"早","n":"宏","o":"青","p":"遥","q":"速","r":"慧","s":"绚","t":"绮","u":"寒","v":"冷","w":"银","x":"灵","y":"绣","z":"北","A":"临","B":"南","C":"俊","D":"捷","E":"骏","F":"益","G":"雅","H":"舒","I":"智","J":"谜","K":"彩","L":"余","M":"短","N":"秋","O":"乐","P":"怡","Q":"瑞","R":"惠","S":"和","T":"纯","U":"悦","V":"迷","W":"长","X":"少","Y":"近","Z":"清"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"聪","4":"秀","5":"旧","6":"浩","7":"盈","8":"快","9":"悠","+":"后","/":"轻","=":"坚"}},"AD":{"alphabet":{"a":"诚","b":"畅","c":"新","d":"高","e":"静","f":"恒","g":"愈","h":"谨","i":"善","j":"良","k":"频","l":"笃","m":"早","n":"湛","o":"昭","p":"遥","q":"速","r":"朗","s":"祗","t":"攸","u":"徐","v":"咸","w":"皆","x":"灵","y":"恭","z":"弥","A":"临","B":"允","C":"公","D":"捷","E":"淳","F":"益","G":"雅","H":"舒","I":"嘉","J":"勤","K":"协","L":"永","M":"短","N":"歆","O":"乐","P":"怡","Q":"已","R":"忻","S":"和","T":"谧","U":"悦","V":"稍","W":"长","X":"少","Y":"近","Z":"尚"},"numbersymbol":{"0":"远","1":"极","2":"安","3":"竟","4":"悉","5":"渐","6":"颇","7":"辄","8":"快","9":"悠","+":"后","/":"轻","=":"曾"}}},"Virtual":{"zhi":["之"],"hu":["乎"],"zhe":["者"],"ye":["也"],"for":["为"],"ba":["把"],"le":["了"],"er":["而"],"this":["此","斯"],"still":["仍"],"with":["与","同"],"also":["亦","也"],"is":["是","乃"],"not":["未","莫"],"or":["或"],"more":["更"],"make":["使","将","让"],"and":["与","同"],"anti":["非","不"],"why":["为何","奈何","何哉"],"but":["但","却","则","而","况","且"],"like":["似","如","若"],"if":["若","倘"],"int":["哉","呼","噫"],"self":["自"],"by":["以","于"]},"Sentences":{"Begin":["1/非/N/ye","1/N/曰","1/若夫/N","1/anti/MV/V/ye/P","2/A/N/曰","2/N/以/A","2/N/anti/在/A","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/初,/N/V/by/N","3/夫/N/anti/V/by/N","3/AD/V/zhi/谓/A","3/V/而/V/zhi/zhi/谓/A","3/N/,/N/zhi/N/ye/P","3/A/之/V/者/必/有/N/P","4/非/N/不/A/,/V/不/A","4/A/N/AD/V","4/V/N/以/V/N","4/N/不在/A/,/有/N/则/A/P","4/A/N/常有/,/而/A/N/不常有/P","4/N/有/MV/V/,/N/有/AD/然/P","4/N/无/N/,/无以/V/N","5/V/N/而/V/A/,/V/zhi/道/ye/P","5/N/zhi/V/V/,/实为/A/A/P","5/本/MV/V/A/,/anti/V/N/N","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/今/N/乃/A/N/A/N","5/A/N/V/A/N","5/夫/N/、/N/不/MV/AD/V/N","5/不/有/A/N/,/何/V/A/N/Q","6/以/N/V/,/like/V/N/V/N","6/A/N/zhi/N/,/V/zhi/以/V/其/N","6/A/N/V/于/N/而/V/N","6/A/N/未/V/N/、/N/之/N","7/N/以/A/A/,/AD/V/A/N","7/V/N/A/,/A/N/V/N","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/则有/N/A/N/A/,/N/N/具/V","7/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","8/V/A/N/,/V/A/N/,/by/MV/A/zhi/N/P","8/N/anti/AD/V/zhe/by/AD/V/zhe/V/,/anti/MV/AD/V/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/V/A/N/,/N/V/A/N","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/A/N/V/N/,/N/N/V/N/P","8/尝/V/A/N/,/AD/V/A/N/zhi/N","8/予/V/夫/A/N/A/N/,/在/A/N/之/N","8/N/V/于/A/N/,/而/N/V/于/A/N","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V/P","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"],"Main":["1/非/N/ye","1/anti/MV/V/ye","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/N/with/N/V","3/N/曰,何/A/zhi/V/Q","4/A/N/AD/V","4/V/N/以/V/N","4/N/无/N/,/无以/V/N/P","4/N/不在/A/,/有/N/则/A/P","4/N/有/MV/V/,/N/有/AD/然/P","4/N/非/V/而/V/之/者/,/孰/MV/无/N/P","4/A/N/常有/,/而/A/N/不常有/P","4/不/以/N/V/,/不/以/N/V/P","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/本/MV/V/A/,/anti/V/N/N","5/今/N/乃/A/N/A/N","5/每/有/V/N/,/便/AD/然/V/N/P","5/N/V/而/A/N/V/也","5/不/有/A/N/,/何/V/A/N/Q","6/以/N/V/,/like/V/N/V/N","6/N/V/,/V/N/V/N","6/虽/V/V/A/A/,/A/A/不/同/P","6/而/A/N/zhi/N/,/V/zhi/以/V/其/N/P","6/A/N/V/于/N/而/V/N","6/A/N/未/V/N/、/N/之/N","6/V/A/N/,/V/A/N","6/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6/将/有/V/,/则/V/A/N/以/V/N/P","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/V/A/N/zhe/,/常/V/其/所/A/,/而/V/其/所/A/P","7/A/N/之/不/V/也/AD/矣/,/欲/N/之/无/N/也/AD/矣/P","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","7/有/A/N/、/A/N/、/A/N/之/N/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/是/故/无/A/无/A/,/无/A/无/A/,/N/之/所/V/、/N/之/所/V/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/A/N/V/N/,/N/N/V/N/P","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8/予/V/夫/A/N/A/N/,/在/A/N/之/N","8/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8/N/V/于/A/N/,/而/N/V/于/A/N","8/A/N/MV/A/N/之/A/,/V/N/中/之/A","8/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","8/使/其/A/N/AD/V/,/A/N/AD/V/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A","9/V/A/N/,/N/A/N/A/,/乃/AD/V"],"End":["1/非/N/ye","1/anti/MV/V/ye","2/唯/N/V/zhi","2/V/by/N","2/其/also/A/hu/其/V/ye/P","2/N/make/N/zhi","2/MV/N/zhe/A","2/有/N/则/A","2/V/zhe/V/zhi","2/but/MV/A/zhe/A","3/V/在/A/N","3/今/zhi/V/zhe/,/亦将有/V/于/this/N/P","3/某也/A/,/某也/A/,/可/不/A/哉","4/V/N/zhi/N/by/N","4/A/N/AD/V","4/V/N/以/V/N","4/N/无/N/,/无以/V/N","4/噫/,/A/N/ye/,/N/谁/与/V/Q","4/不/以/N/V/,/不/以/N/V/P","5/请/V/N/zhi/N/中/,/是/N/zhi/N/P","5/今/V/N/以/V/A/N","5/N/乃/V/V/N/zhi/N","5/本/MV/V/A/,/anti/V/N/N","5/今/N/乃/A/N/A/N","5/N/V/而/A/N/V/也","5/不/有/A/N/,/何/V/A/N/Q","6/以/N/V/,/like/V/N/V/N","6/A/zhi/V/N/,/亦/like/今/zhi/V/N/,/A/夫/P","6/N/V/,/V/N/V/N","6/V/N/之/N/,/为/N/V/者/,/可以/V/矣/P","6/V/MV/with/其/N/,/而/V/MV/V/以/N/者/,/N/也/P","6/A/N/必/有/A/N/V/之者/、/予/可/无/N/也/P","6/虽/V/V/A/A/,/A/A/不/同/P","6/将/有/V/,/则/V/A/N/以/V/N/P","7/N/V/以/N/V/,/V/不/V/N","7/N/N/V/N/,/A/于/N/N","7/MV/AD/V/A/N/,/but/V/V/不/A","7/或/V/N/V/N/,/V/N/于/N","7/A/N/之/N/不在/N/,/在乎/A/N/之/N/也/P","7/A/N/之/N/,/V/之/N/而/V/之/N/也/P","7/是故/A/N/不必不如/N/,/N/不必/A/于/A/N/P","7/有/A/N/、/A/N/、/A/N/之/N/P","8/虽/N/A/N/A/,/所/以/V/N/,其/N/A/ye/P","8/何必/V/N/V/N/,/V/N/zhi/N/N/哉/P","8/N/anti/MV/V/N/,/still/继/N/V/,/why/,/and/N/而/anti/V/N/ye/P","8/V/N/A/A/,/V/N/A/A","8/N/在/A/N/,/A/N/zhi/A/,/V/于/N/P","8/A/N/AD/V/,/N/N/AD/V","8/虽/无/N/N/zhi/V/,/亦/V/以/AD/V/A/N/P","8/故/V/A/N/者/,/当/V/A/N/之/A/N/P","8/N/V/于/A/N/之上/,/AD/V/于/A/N/之间/P","8/使/其/A/N/AD/V/,/A/N/AD/V/P","9/A/N/V/zhi/而不/V/zhi/、亦/make/A/N/er/复/V/A/N/ye/P","9/N/MV/V/N/V/V/,/but/N/N/AD/V","9/以/N/,/当/V/A/N/,/非/N/V/N/所/MV/AD/V/P","9/此/N/有/A/N/A/N/,/A/N/A/N/P","9/是/N/ye/,/N/A/N/A/,/N/A/N/A/P"]}}';var Ta=0,tm=new Uint8Array(32);const ct="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";var Cs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",As="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",Es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";const FS="ABCDEFGHIJKLMNOPQRSTUVWXYZ",zS="1234567890",HS="+/=",vt="0123456789+/=";var xs="0123456789+/=",Ss="5=0764+389/12",Ts="0123456789+/=";const ia="孎",up=["https://","lanzou","pan.quark.cn","pan.baidu.com","aliyundrive.com","123pan.com"],hp=["https://","mypikpak.com","mega.nz","drive.google.com","sharepoint.com","1drv.ms"],fp=["https://","baidu.com","b23.tv","bilibili.com","weibo.com","weixin.qq.com"],pp=["https://","google.com","youtube.com","x.com","twitter.com","telegra.ph"],mp=["https://","wikipedia.org","github.com","pages.dev","github.io","netlify.app"],gp=["https://","pixiv.net","nicovideo.jp","dlsite.com","line.me","dmm.com"],vp=["https://","nyaa.si","bangumi.moe","thepiratebay.org","e-hentai.org","exhentai.org"],yp=["https://","magnet:?xt=urn:btih:","magnet:?xt=urn:sha1:","ed2k://","thunder://","torrent"],bp=["https://",".cn",".com",".net",".org",".xyz"],wp=["https://",".info",".moe",".cc",".co",".dev"],_p=["https://",".io",".us",".eu",".jp",".de"],oe=JSON.parse(VS);let mi={},Pt="";function US(){mi={},Pt="";for(let e=0;e<52;e++)mi[ct[e]]=[],mi[ct[e]].push(oe.Actual.N.alphabet[ct[e]]),mi[ct[e]].push(oe.Actual.A.alphabet[ct[e]]),mi[ct[e]].push(oe.Actual.V.alphabet[ct[e]]),Pt=Pt+oe.Actual.N.alphabet[ct[e]],Pt=Pt+oe.Actual.A.alphabet[ct[e]],Pt=Pt+oe.Actual.V.alphabet[ct[e]],oe.Actual.A.alphabet[ct[e]]!=oe.Actual.AD.alphabet[ct[e]]&&(mi[ct[e]].push(oe.Actual.AD.alphabet[ct[e]]),Pt=Pt+oe.Actual.AD.alphabet[ct[e]]);for(let e=0;e<13;e++)mi[vt[e]]=[],mi[vt[e]].push(oe.Actual.N.numbersymbol[vt[e]]),mi[vt[e]].push(oe.Actual.A.numbersymbol[vt[e]]),mi[vt[e]].push(oe.Actual.V.numbersymbol[vt[e]]),Pt=Pt+oe.Actual.N.numbersymbol[vt[e]],Pt=Pt+oe.Actual.A.numbersymbol[vt[e]],Pt=Pt+oe.Actual.V.numbersymbol[vt[e]],oe.Actual.A.numbersymbol[vt[e]]!=oe.Actual.AD.numbersymbol[vt[e]]&&(mi[vt[e]].push(oe.Actual.AD.numbersymbol[vt[e]]),Pt=Pt+oe.Actual.AD.numbersymbol[vt[e]])}function E4(e,t,i){let r=Mt.SHA256(t),n=zc(r),s=new Uint8Array(n.byteLength+2);s.set(n,0),s.set([i[0],i[1]],n.byteLength),n=s;let o=Mt.lib.WordArray.create(n),a=Mt.SHA256(o),l=zc(a),c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=l[d];let u=Mt.lib.WordArray.create(c),h=Mt.lib.WordArray.create(e),f=Mt.AES.encrypt(h,r,{mode:Mt.mode.CTR,padding:Mt.pad.NoPadding,iv:u});return zc(f.ciphertext)}function Rv(e){let t=au.gzip(e);return t.byteLength>=e.byteLength?e:t}function KS(e){const t=new Uint8Array(e.buffer,0,2);return t[0]===31&&t[1]===139?au.ungzip(e):e}function WS(e){let t=new Uint8Array(2048),i=xd(e),r=255;for(let a=1;a<6;a++){if(i.indexOf(up[a])!=-1){r=254;break}if(i.indexOf(hp[a])!=-1){r=245;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(fp[a])!=-1){r=253;break}if(i.indexOf(pp[a])!=-1){r=252;break}if(i.indexOf(mp[a])!=-1){r=244;break}if(i.indexOf(gp[a])!=-1){r=251;break}if(i.indexOf(vp[a])!=-1){r=250;break}}if(r==255)for(let a=1;a<6;a++){if(i.indexOf(yp[a])!=-1){r=249;break}if(i.indexOf(bp[a])!=-1){r=248;break}if(i.indexOf(wp[a])!=-1){r=247;break}if(i.indexOf(_p[a])!=-1){r=246;break}}let n;switch(r){case 255:n=nt(e,e.byteLength,t);break;case 254:n=nt(e,e.byteLength,t,up);break;case 245:n=nt(e,e.byteLength,t,hp);break;case 253:n=nt(e,e.byteLength,t,fp);break;case 252:n=nt(e,e.byteLength,t,pp);break;case 244:n=nt(e,e.byteLength,t,mp);break;case 251:n=nt(e,e.byteLength,t,gp);break;case 250:n=nt(e,e.byteLength,t,vp);break;case 249:n=nt(e,e.byteLength,t,yp);break;case 248:n=nt(e,e.byteLength,t,bp);break;case 247:n=nt(e,e.byteLength,t,wp);break;case 246:n=nt(e,e.byteLength,t,_p);break}let s=t.subarray(0,n);if(s.byteLength>=e.byteLength)return e;let o=new Uint8Array(s.byteLength+2);return o.set(s,0),o.set([r,255],s.byteLength),s=o,s}function qS(e){const t=e[e.byteLength-1],i=e[e.byteLength-2];if(t!=255||i<244||i>255)return e;let r=i,n=e.subarray(0,e.byteLength-2),s=new Uint8Array(2048),o;switch(r){case 255:o=Qe(n,n.byteLength,s,qe,je,G0,Ye);break;case 254:o=Qe(n,n.byteLength,s,qe,je,up,Ye);break;case 245:o=Qe(n,n.byteLength,s,qe,je,hp,Ye);break;case 253:o=Qe(n,n.byteLength,s,qe,je,fp,Ye);break;case 252:o=Qe(n,n.byteLength,s,qe,je,pp,Ye);break;case 244:o=Qe(n,n.byteLength,s,qe,je,mp,Ye);break;case 251:o=Qe(n,n.byteLength,s,qe,je,gp,Ye);break;case 250:o=Qe(n,n.byteLength,s,qe,je,vp,Ye);break;case 249:o=Qe(n,n.byteLength,s,qe,je,yp,Ye);break;case 248:o=Qe(n,n.byteLength,s,qe,je,bp,Ye);break;case 247:o=Qe(n,n.byteLength,s,qe,je,wp,Ye);break;case 246:o=Qe(n,n.byteLength,s,qe,je,_p,Ye);break}return s.subarray(0,o)}function x4(e){let t=new Array,i,r;for(let o=0;o0;)r=i%10,t.push(r),i=Math.floor(i/10);let n=0,s=0;for(let o=0;o=10&&(t[o]=t[o]%10+Math.floor(t[o]/10))),n=n+t[o];return s=10-n%10,s}function jS(e){let t=e[e.byteLength-1];return x4(e.subarray(0,e.byteLength-1))==t}function YS(e){let t=0;for(let i=e.length-1;i>=e.length-4;i--)e[i]=="="&&t++;return e.slice(0,e.length-t)}function XS(e){return e.length%4==3?e+"=":e.length%4==2?e+"==":e}function zc(e){const t=new Uint8Array(e.sigBytes);for(let i=0;i>>2]>>>24-i%4*8&255;return t}function xd(e){let t=pr.fromUint8Array(e);return pr.decode(t)}function ri(e){let t=new b4(Math.floor(Math.random()*1e9));return Math.floor(t.random()*e)}function po(e,t){return e.slice(t)+e.slice(0,t)}function mo(e,t){return e.slice(e.length-t)+e.slice(0,e.length-t)}function nr(e){let t,i,r,n,s,o;return t=ct.indexOf(e),i=vt.indexOf(e),r=ct.indexOf(Cs[t]),n=vt.indexOf(xs[i]),s=ct.indexOf(As[r]),o=vt.indexOf(Ss[n]),t!=-1?Es[s]:i!=-1?Ts[o]:ia}function Iv(e){let t,i,r,n,s,o;return t=Es.indexOf(e),i=Ts.indexOf(e),r=As.indexOf(ct[t]),n=Ss.indexOf(vt[i]),s=Cs.indexOf(ct[r]),o=xs.indexOf(vt[n]),t!=-1?ct[s]:i!=-1?vt[o]:ia}function Sd(){let e=0;Ta==32&&(Ta=0),e=tm[Ta]%10,e==0&&(e=10),e%2==0?(Cs=po(Cs,6),xs=po(xs,6),As=mo(As,e),Ss=mo(Ss,e),Es=po(Es,e/2+1),Ts=po(Ts,e/2+1)):(Cs=mo(Cs,3),xs=mo(xs,3),As=po(As,e),Ss=po(Ss,e),Es=mo(Es,(e+7)/2),Ts=mo(Ts,(e+7)/2)),Ta++}function Td(){Ta=0,tm=new Array(32),Cs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",As="FbPoDRStyJKAUcdahfVXlqwnOGpHZejzvmrBCigQILxkYMuWTEsN",Es="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",xs="1234567890+/=",Ss="5=0764+389/12",Ts="1234567890+/="}function S4(e){let t=Mt.SHA256(e);tm=zc(t)}function ZS(e){if(e<=3)return[];let t=Math.floor(e*.2),i=e-2*t;return i<=0&&(t=Math.floor((e-2)/3),i=e-2*t,i<=0)?[]:[t,i,t]}function GS(e,t=0){let i,r=ZS(e),n=[];for(let s=0;s<3;s++){let o=r[s];if(s==0)for(let a=0;a6){let h=ri(91);h<30?c=l[l.length-3]:h>=30&&h<60?c=l[l.length-2]:c=l[l.length-1]}else c=l.pop();else i>100&&i<=200&&(c=l[ri(l.length)],l=l.filter(h=>h>c));let d=[];for(let h=0;h6){let h=ri(91);h<30?c=l[l.length-3]:h>=30&&h<60?c=l[l.length-2]:c=l[l.length-1]}else c=l.pop();else i>100&&i<=200&&(c=l[ri(l.length)],l=l.filter(h=>h>c));let d=[];for(let h=0;h6){let h=ri(91);h<30?c=l[l.length-3]:h>=30&&h<60?c=l[l.length-2]:c=l[l.length-1]}else c=l.pop();else i>100&&i<=200&&(c=l[ri(l.length)],l=l.filter(h=>h>c));let d=[];for(let h=0;h=3&&_!=u.length-2?(l=l+"。",b=0):(l=l+",",b+=w+1):(l=l+"。",b=0)}m&&(b=0)}}if(!i){let _="";for(let g=0;g{t==n&&(i=Iv(r))});if(i)return i;for(let r in mi)mi[r].forEach(n=>{t==n&&(i=Iv(r))});return i||ia}const ua=class gt{constructor(t=gt.TEXT,i=gt.TEXT){if($u(this,ss,""),$u(this,Ca,""),$u(this,_t,null),t!=gt.TEXT&&t!=gt.UINT8||i!=gt.TEXT&&i!=gt.UINT8)throw"Unexpected Argument";gr(this,ss,t),gr(this,Ca,i)}Input(t,i,r="ABRACADABRA",n=!1){if(fi(this,ss)==gt.UINT8){if(Object.prototype.toString.call(t)!="[object Uint8Array]")throw"Unexpected Input Type";let s=new TextDecoder("utf-8",{fatal:!0}),o=!1,a="";try{a=s.decode(t)}catch{o=!0}let l;o?(l=new A4(t,!0,!1),gr(this,_t,Ph(l,r,n))):(l=Tv(a),l.isEncrypted&&i!=gt.ENCRYPT||i==gt.DECRYPT?gr(this,_t,Nv(l,r)):gr(this,_t,Ph(l,r,n)))}else if(fi(this,ss)==gt.TEXT){if(Object.prototype.toString.call(t)!="[object String]")throw"Unexpected Input Type";let s=Tv(t);s.isEncrypted&&i!=gt.ENCRYPT||i==gt.DECRYPT?gr(this,_t,Nv(s,r)):gr(this,_t,Ph(s,r,n))}return 0}Output(){if(fi(this,_t)==null)throw"Null Output, please input some data at first.";if(typeof fi(this,_t)=="object")return fi(this,Ca)==gt.TEXT?fi(this,_t).output:fi(this,_t).output_B!=null?fi(this,_t).output_B:new TextEncoder().encode(fi(this,_t).output);if(typeof fi(this,_t)=="string")return fi(this,Ca)==gt.TEXT?fi(this,_t):new TextEncoder().encode(fi(this,_t))}Input_Next(t,i,r="ABRACADABRA",n=!0,s=50){if(fi(this,ss)==gt.UINT8){if(Object.prototype.toString.call(t)!="[object Uint8Array]")throw"Unexpected Input Type";if(i==gt.ENCRYPT){let o=new Object;o.output=t,gr(this,_t,$v(o,r,n,s))}else if(i==gt.DECRYPT){let o=new Object;o.output=t,gr(this,_t,Pv(o,r))}return 0}else if(fi(this,ss)==gt.TEXT){if(Object.prototype.toString.call(t)!="[object String]")throw"Unexpected Input Type";let o=new Object;return o.output=k4(t),i==gt.ENCRYPT?gr(this,_t,$v(o,r,n,s)):i==gt.DECRYPT&&gr(this,_t,Pv(o,r)),0}return 0}};ss=new WeakMap;Ca=new WeakMap;_t=new WeakMap;ql(ua,"TEXT","TEXT");ql(ua,"UINT8","UINT8");ql(ua,"ENCRYPT","ENCRYPT");ql(ua,"DECRYPT","DECRYPT");ql(ua,"AUTO","AUTO");let Dh=ua;const eT=ve("div",{id:"MagicBadge",style:{}},[ve("span",{style:{"font-size":"3rem","font-weight":"bold",margin:"10px 10px 10px 20px",height:"fit-content",width:"fit-content"}},"魔曰"),ve("span",{style:{"font-size":"1rem","font-variant":"petite-caps","margin-left":"20px",height:"fit-content",width:"fit-content"}},"Abracadabra")],-1),tT={id:"MainContainer",style:{display:"grid","grid-template-rows":"80px 150px 80px","grid-gap":"7px"}},iT={key:0,id:"InputCard",variant:"outlined",rows:"2",label:"话语",placeholder:"你渴求吟唱的话语",style:{"grid-area":"1",height:"80px",width:"360px"}},rT=ve("h1",{style:{"align-self":"center","justify-self":"center"}},"选择文件",-1),nT=ve("p",{style:{"align-self":"center","justify-self":"center"}},"拖拽或点击",-1),sT={style:{"align-self":"center","justify-self":"center","margin-bottom":"0"}},oT=ve("mdui-text-field",{id:"KeyCard",variant:"outlined",rows:"1",label:"魔咒",placeholder:"将一切雪藏的魔咒",style:{"grid-column":"span 3","align-self":"center",width:"360px"}},null,-1),aT=ve("mdui-slider",{id:"Randomness",step:"25",value:"50",min:"0",max:"100",style:{background:"#0000003b",padding:"0 25px",width:"215px","margin-left":"5px","border-radius":"25px",height:"35px"}},null,-1),lT={key:2,id:"OutputText",variant:"outlined",rows:"4",label:"符文",placeholder:"回路末端的符文",style:{"grid-area":"3",height:"120px",width:"360px"}},cT=ve("h1",{style:{"align-self":"center","justify-self":"center"}},"输出文件",-1),dT={id:"CopyrightBadger",style:{"grid-area":"4",display:"grid","grid-template-columns":"50% 50%"}},uT=ve("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"60px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"6px","border-radius":"inherit",margin:"0px"}},[Ud(" Abracadabra V3.0.11"),ve("br"),ve("a",{href:"https://github.com/SheepChef/Abracadabra"},"Github Repo")],-1),hT=ve("p",{style:{position:"relative",width:"fit-content",height:"fit-content",top:"98px","font-size":"1rem","font-variant":"petite-caps","text-align":"left",padding:"0px","border-radius":"inherit",margin:"0px",right:"4px","justify-self":"end",opacity:"0.5"}}," SheepChef © ",-1),fT={id:"CryptControl"},pT=ve("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"雪藏话语",-1),mT=ve("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"探求真意",-1),gT=ve("span",{style:{"align-self":"center","justify-self":"right","margin-right":"0px"}},"去除标志",-1),vT=ve("div",{id:"PositionOccupie"},null,-1),yT={__name:"HomeView",setup(e){const t=dt("TEXT"),i=dt("TEXT"),r=dt("Next"),n=dt(!0),s=dt(!1),o=dt(!1),a=dt(!1);dt("#5b6169");var l=dt(new Array);const c=dt(null),d=dt("");No(()=>l.value[0],T=>{c.value=T,d.value=T.name,window.inputfile=T});function u(T){return new Promise((P,O)=>{const M=new FileReader;M.onload=H=>{const U=new Uint8Array(H.target.result);P(U)},M.onerror=O,M.readAsArrayBuffer(T)})}function h(T,P,O){const M=new Blob([T],{type:O});return new File([M],P,{type:O})}function f(T){T.preventDefault(),document.getElementById("FileCard").style.background="#6ea0be"}function m(T){T.preventDefault(),document.getElementById("FileCard").style.background="#5b6169"}function b(T){T.preventDefault()}function w(T){T.preventDefault(),document.getElementById("FileCard").style.background="#5b6169";const P=T.dataTransfer.files;p(P)}function _(T){const P=T.target.files;p(P)}function g(T){document.querySelector("#fileIn").click()}function p(T){l.value=[];for(let P=0;P{var O;return["fullscreen","standalone","minimal-ui"].some(M=>window.matchMedia("(display-mode: "+M+")").matches)||((O=window.navigator)==null?void 0:O.standalone)||document.referrer.includes("android-app://")};function C(){if(r.value=="Next"){document.getElementById("ForceEnc").disabled=!0,document.getElementById("Forceq").disabled=!0,document.getElementById("ForceDec").disabled=!0;return}else document.getElementById("ForceEnc").checked==!0?(document.getElementById("ForceDec").disabled=!0,document.getElementById("ForceDec").checked=!1,s.value=!0,o.value=!1):document.getElementById("ForceDec").checked==!0?(document.getElementById("ForceEnc").disabled=!0,document.getElementById("Forceq").disabled=!0,document.getElementById("ForceEnc").checked=!1,s.value=!1,o.value=!0):(document.getElementById("ForceDec").disabled=!1,document.getElementById("ForceEnc").disabled=!1,document.getElementById("Forceq").disabled=!1,s.value=!1,o.value=!1)}function E(){document.getElementById("Forceq").checked==!0?a.value=!0:a.value=!1}async function A(){r.value=="Normal"?(document.getElementById("NormalControlBar").style.display="none",document.getElementById("NextControlBar").style.display="grid",r.value="Next"):r.value=="Next"&&(document.getElementById("NormalControlBar").style.display="block",document.getElementById("NextControlBar").style.display="none",r.value="Normal"),C()}async function x(){let T=new Dh(t.value,i.value),P;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value,s.value?a.value?T.Input(document.getElementById("InputCard").value,"ENCRYPT",P,!0):T.Input(document.getElementById("InputCard").value,"ENCRYPT",P,!1):o.value?T.Input(document.getElementById("InputCard").value,"DECRYPT",P):T.Input(document.getElementById("InputCard").value,"AUTO",P,a.value)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value;let O=await u(window.inputfile);s.value?a.value?T.Input(O,"ENCRYPT",P,!0):T.Input(O,"ENCRYPT",P,!1):o.value?T.Input(O,"DECRYPT",P):T.Input(O,"AUTO",P,a.value)}if(i.value=="TEXT")document.getElementById("OutputText").value=T.Output();else if(i.value=="UINT8"){let O=T.Output(),M=h(O,"Abracadabra_Result","application/octet-stream"),H=document.createElement("a");H.download=M.name;let U=URL.createObjectURL(M);H.href=U,H.click(),URL.revokeObjectURL(U)}}catch(O){Sr({message:"发生错误, "+O.toString()})}}async function S(){let T=new Dh(t.value,i.value),P;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value,T.Input_Next(document.getElementById("InputCard").value,"ENCRYPT",P,!0,parseInt(document.querySelector("#Randomness").value))}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value;let O=await u(window.inputfile);T.Input_Next(O,"ENCRYPT",P,!0,parseInt(document.querySelector("#Randomness").value))}if(i.value=="TEXT")document.getElementById("OutputText").value=T.Output();else if(i.value=="UINT8"){let O=T.Output(),M=h(O,"Abracadabra_Result","application/octet-stream"),H=document.createElement("a");H.download=M.name;let U=URL.createObjectURL(M);H.href=U,H.click(),URL.revokeObjectURL(U)}}catch(O){Sr({message:"发生错误, "+O.toString()})}}async function k(){let T=new Dh(t.value,i.value),P;try{if(t.value=="TEXT"){if(document.getElementById("InputCard").value=="")return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value,T.Input_Next(document.getElementById("InputCard").value,"DECRYPT",P)}else if(t.value=="UINT8"){if(window.inputfile==null||window.inputfile==null)return;document.getElementById("KeyCard").value==""?(P="ABRACADABRA",Sr({message:"你没有填写魔咒,自动使用默认魔咒,这不安全",autoCloseDelay:1500})):P=document.getElementById("KeyCard").value;let O=await u(window.inputfile);T.Input_Next(O,"DECRYPT",P)}if(i.value=="TEXT")document.getElementById("OutputText").value=T.Output();else if(i.value=="UINT8"){let O=T.Output(),M=h(O,"Abracadabra_Result","application/octet-stream"),H=document.createElement("a");H.download=M.name;let U=URL.createObjectURL(M);H.href=U,H.click(),URL.revokeObjectURL(U)}}catch(O){Sr({message:"发生错误, "+O.toString()})}}function N(){document.getElementById("OutputText").value!=""&&(document.getElementById("OutputText").select(),navigator.clipboard.writeText(window.getSelection().toString()))}async function I(){window.deferredPrompt&&(window.deferredPrompt.prompt(),(await window.deferredPrompt.userChoice).outcome==="accepted"?Sr({message:"感谢你选择魔曰",placement:"top-end"}):console.log("PWA Install cancelled"))}return hn(()=>{y()&&(n.value=!1),C();const T=document.querySelector("#Randomness");T.labelFormatter=P=>P==0?"长句优先":P==25?"稍随机":P==50?"适中":P==75?"较随机":P==100?"完全随机":""}),$l(()=>{}),(T,P)=>(vi(),Pr(xt,null,[eT,Ue(ka,{id:"FunctionCard"},{default:ls(()=>[ve("div",tT,[t.value=="TEXT"?(vi(),Pr("mdui-text-field",iT)):as("",!0),t.value=="UINT8"?(vi(),nl(ka,{key:1,id:"FileCard",Background:"#5b6169",Width:"360px",Height:"80px",Other:{"grid-area":1,transition:"all 1s ease"},clickable:"",onDragenter:f,onDragleave:m,onDragover:b,onDrop:w,onClick:g},{default:ls(()=>[rT,nT,ve("p",sT,zv(d.value),1),ve("input",{type:"file",id:"fileIn",style:{display:"contents"},onChange:_},null,32)]),_:1})):as("",!0),ve("div",{id:"controlBar",style:{"grid-area":"2",display:"grid","grid-template-columns":"360px"}},[oT,ve("div",{id:"NormalControlBar",style:{"align-self":"center",display:"none"}},[ve("mdui-button",{icon:"arrow_downward--rounded",onClick:x,style:{"align-self":"center",top:"-4px",width:"230px","margin-right":"6px"}},"吟唱你的魔法"),ve("mdui-button",{variant:"elevated",icon:"auto_awesome--rounded",onClick:A,style:{"align-self":"center",top:"-4px",width:"120px",border:"solid 2px white"}},"文言仿真")]),ve("div",{id:"NextControlBar",style:{"align-self":"center",display:"grid","grid-template-columns":"235px 124px"}},[ve("mdui-button",{icon:"arrow_downward--rounded",onClick:x,style:{"align-self":"center",top:"-4px",width:"230px","margin-right":"6px",display:"none"}},"吟唱你的魔法"),ve("div",{style:{display:"grid","grid-template-rows":"40px 33px"}},[ve("div",{style:{width:"fit-content","align-self":"center","justify-self":"center","margin-left":"-10px"}},[ve("mdui-chip",{icon:"keyboard_double_arrow_down--rounded",onClick:S,style:{"align-self":"center",width:"105px","text-align":"center","margin-right":"5px"}},"加密"),ve("mdui-chip",{icon:"keyboard_double_arrow_down--rounded",onClick:k,style:{"align-self":"center",width:"105px","text-align":"center"}},"解密")]),aT]),ve("mdui-button",{variant:"elevated",icon:"auto_fix_off--rounded",onClick:A,style:{"align-self":"center",top:"-4px",width:"120px",border:"solid 2px white"}},"传统加密")])]),i.value=="TEXT"?(vi(),Pr("mdui-text-field",lT)):as("",!0),ve("mdui-button-icon",{icon:"content_copy--rounded",style:{position:"absolute",bottom:"95px",right:"22px",background:"rgb(11 11 11 / 25%)","backdrop-filter":"blur(2px)"},onClick:N}),i.value=="UINT8"?(vi(),nl(ka,{key:3,id:"FileCard2",Background:"#5b6169",Width:"360px",Height:"120px",Other:{"grid-area":3,transition:"all 1s ease"}},{default:ls(()=>[cT]),_:1})):as("",!0),ve("div",dT,[uT,n.value?(vi(),Pr("mdui-chip",{key:0,elevated:"",icon:"file_download--rounded",style:{position:"absolute",bottom:"40px",right:"15px",background:"rgba(11, 11, 11, 0.25)","backdrop-filter":"blur(2px)"},onClick:I},"安装应用")):as("",!0),hT])])]),_:1}),Ue(ka,{id:"FloatCard"},{default:ls(()=>[ve("div",fT,[pT,ve("mdui-switch",{id:"ForceEnc",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:C},null,32),mT,ve("mdui-switch",{id:"ForceDec",style:{"align-self":"center","justify-self":"left"},"unchecked-icon":"hdr_auto--rounded","checked-icon":"auto_awesome--rounded",onChange:C},null,32),gT,ve("mdui-switch",{id:"Forceq","checked-icon":"auto_awesome--rounded",style:{"align-self":"center","justify-self":"left"},onChange:E},null,32)])]),_:1}),vT],64))}},bT={id:"ImWindowContainer",ref:"ImContainer"},wT={id:"ImContentContainer"},_T={id:"main_content",style:{height:"fit-content"}},kT={__name:"ImMainView",setup(e){const t=dt(0),i=new ResizeObserver(r=>{r.forEach(n=>{t.value=n.contentRect.height})});return hn(()=>{i.observe(document.getElementById("ImWindowContainer"))}),(r,n)=>(vi(),Pr("div",bT,[Ue(lC,{ContainerId:"ImWindowContainer",ContentContainerId:"ImContentContainer",Direction:"Right",Length:"calc(100% - 120px)",Width:"10px",PBottom:"10px",PRight:"2px",PMarginOne:"27px",PMarginTwo:"0px",Id:"TestBar"}),ve("div",wT,[ve("div",_T,[Ue(yT)])])],512))}},CT=ve("header",null,[ve("link",{rel:"shortcut icon",href:"favicon.ico"})],-1),AT={style:{width:"100% !important",height:"100%"}},ET={class:"InnerUI",fullHeight:""},xT={__name:"App",setup(e){return hn(()=>{}),(t,i)=>(vi(),Pr(xt,null,[CT,ve("mdui-layout",AT,[ve("mdui-layout-main",ET,[Ue(kT)])])],64))}};window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),window.deferredPrompt=e});const T4=Py(xT);nC("#09355b");T4.component("Card",ka);T4.mount("body"); diff --git a/docs/index.html b/docs/index.html index b1c1bac..ee1e5e0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,7 +11,7 @@ return this._attachShadow({ mode: "open" }); }; - + diff --git a/docs/sw.js b/docs/sw.js index 89d7022..0bd6f32 100644 --- a/docs/sw.js +++ b/docs/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const n=(n,i)=>(n=new URL(n+".js",i).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let a={};const l=e=>n(e,t),u={module:{uri:t},exports:a,require:l};s[t]=Promise.all(i.map((e=>u[e]||l(e)))).then((e=>(r(...e),a)))}}define(["./workbox-20f94e4f"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/bg-CjkYdVK5.webp",revision:null},{url:"assets/favicon-aOK6_042.ico",revision:null},{url:"assets/index-D1EP5wIh.js",revision:null},{url:"assets/index-kawgJGu9.css",revision:null},{url:"assets/mdui-round-DrirKXBx.woff2",revision:null},{url:"assets/SamsungSans-Regular-BsRQoNIc.ttf",revision:null},{url:"index.html",revision:"a9e60f296157d8081952c6c95366835b"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"manifest.webmanifest",revision:"bb69ddda7143ce9786815542f7f773ee"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/\.(?:png|jpg|jpeg|svg)$/,new e.CacheFirst({cacheName:"wisbayar-images",plugins:[new e.ExpirationPlugin({maxEntries:30})]}),"GET"),e.registerRoute(/.*\.js.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-js",plugins:[new e.ExpirationPlugin({maxEntries:30,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.css.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-css",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.html.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-html",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET")})); +if(!self.define){let e,s={};const n=(n,i)=>(n=new URL(n+".js",i).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let a={};const l=e=>n(e,t),u={module:{uri:t},exports:a,require:l};s[t]=Promise.all(i.map((e=>u[e]||l(e)))).then((e=>(r(...e),a)))}}define(["./workbox-20f94e4f"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/bg-CjkYdVK5.webp",revision:null},{url:"assets/favicon-aOK6_042.ico",revision:null},{url:"assets/index-kawgJGu9.css",revision:null},{url:"assets/index-Y14zB65A.js",revision:null},{url:"assets/mdui-round-DrirKXBx.woff2",revision:null},{url:"assets/SamsungSans-Regular-BsRQoNIc.ttf",revision:null},{url:"index.html",revision:"f1e28b31ae068194f02388025c5c47cb"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"manifest.webmanifest",revision:"bb69ddda7143ce9786815542f7f773ee"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/\.(?:png|jpg|jpeg|svg)$/,new e.CacheFirst({cacheName:"wisbayar-images",plugins:[new e.ExpirationPlugin({maxEntries:30})]}),"GET"),e.registerRoute(/.*\.js.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-js",plugins:[new e.ExpirationPlugin({maxEntries:30,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.css.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-css",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET"),e.registerRoute(/.*\.html.*/,new e.StaleWhileRevalidate({cacheName:"wisbayar-html",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[200]})]}),"GET")}));