diff --git a/doc/sql.md b/doc/sql.md new file mode 100644 index 0000000..e6cb7f0 --- /dev/null +++ b/doc/sql.md @@ -0,0 +1,198 @@ + + +```sql +/* ---------------------------------------------------- */ +/* Generated by Enterprise Architect Version 10.10 */ +/* Created On : 20-1月-2026 15:13:42 */ +/* DBMS : PostgreSQL */ +/* ---------------------------------------------------- */ + +/* Drop Sequences for Autonumber Columns */ +DROP SEQUENCE IF EXISTS cg_template_id_seq; + +/* Drop Tables */ +DROP TABLE IF EXISTS cg_fun_item CASCADE; +DROP TABLE IF EXISTS cg_fun_module CASCADE; +DROP TABLE IF EXISTS cg_fun_operation CASCADE; +DROP TABLE IF EXISTS cg_menu CASCADE; +DROP TABLE IF EXISTS cg_role CASCADE; +DROP TABLE IF EXISTS cg_role_fun CASCADE; +DROP TABLE IF EXISTS cg_template CASCADE; + +/* Create Tables */ +CREATE TABLE cg_fun_item ( + id bigint NOT NULL, -- id + module_id bigint NOT NULL, -- 模块ID + item_id bigint NOT NULL, -- 功能ID + item_name varchar(50) NOT NULL, -- 功能名称 + item_code varchar(64) NOT NULL, -- 功能编码 + is_tenant boolean NOT NULL DEFAULT true, -- 是否租户 + describe varchar(250) NULL, -- 说明 + sort_order smallint NOT NULL DEFAULT 0 -- 排序 +); + +CREATE TABLE cg_fun_module ( + id bigint NOT NULL, -- id + module_code varchar(16) NOT NULL, -- 模块编码 + module_name varchar(8) NOT NULL, -- 模块名称 + package_name varchar(250) NOT NULL, -- 包名称 + api_package_name varchar(250) NOT NULL, -- 参数包名 + sort_order smallint NOT NULL DEFAULT 0, -- 排序 + describe varchar(250) NULL -- 描述 +); + +CREATE TABLE cg_fun_operation ( + id bigint NOT NULL, -- id + module_id bigint NOT NULL, -- 模块ID + item_id bigint NOT NULL, -- 功能ID(表主键ID) + is_green_light boolean NOT NULL DEFAULT false, -- 直接放行 + operation_id bigint NOT NULL, -- 操作ID + operation_code varchar(32) NULL, -- 操作编码 + fun_name varchar(16) NOT NULL, -- 操作名称 + fun_type smallint NOT NULL, -- 操作类型 > >查 > >改 > >删 > >增 + request_type smallint NOT NULL, -- 请求类型 + is_req_params boolean NOT NULL DEFAULT true, -- 是否需要请求参数 + is_res_params boolean NOT NULL DEFAULT true, -- 是否需要响应参数 + is_page boolean NOT NULL DEFAULT true, -- 是否分页 + path_params varchar(16) NULL, -- 路径参数(与请求参数true互斥) + usable_config json NOT NULL DEFAULT '[]', -- 可配置数据类型json[] + field_config json NOT NULL DEFAULT '[]', -- 可配置字段 + sort_order smallint NOT NULL DEFAULT 0, -- 排序 + describe varchar(250) NULL -- 说明说明 +); + +CREATE TABLE cg_menu ( + id bigint NOT NULL, -- 主键ID + client_type smallint NOT NULL, -- 客户端类型:0 PC端,1 小程序端,2 H5端 + menu_name varchar(32) NOT NULL, -- 菜单名称 + parent_id bigint NOT NULL DEFAULT 0, -- 父菜单ID + fun_id bigint NULL, -- 操作ID/来自操作表 + menu_type smallint NOT NULL DEFAULT 0, -- 0菜单1按钮 + path varchar(64) NULL, -- 路由路径 + icon varchar(64) NULL, -- 菜单图标 + is_tenant boolean NOT NULL DEFAULT true, -- 是否租户 + is_hide boolean NOT NULL DEFAULT false, -- 是否隐藏 + sort_order smallint NOT NULL DEFAULT 0 -- 排序 +); + +CREATE TABLE cg_role ( + id bigint NOT NULL, -- 主键ID + role_name varchar(32) NOT NULL, -- 角色名称 + role_type smallint NOT NULL -- 角色类型 0平台 1套餐 +); + +CREATE TABLE cg_role_fun ( + id bigint NOT NULL, -- 主键ID + role_id bigint NOT NULL, -- 角色ID + fun_id bigint NOT NULL, -- 操作ID + data_scope smallint NOT NULL DEFAULT 0, -- 数据权限默认:0无 + assign_data_scope json NOT NULL DEFAULT '[]', -- 指定的数据权限范围 + exclude_field json NOT NULL DEFAULT '[]', -- 排除的字段 + client_type smallserial NOT NULL -- 客户端类型:0 PC端,1 小程序端,2 H5端 +); + +CREATE TABLE cg_template ( + id bigint NOT NULL DEFAULT NEXTVAL(('"cg_template_id_seq"'::text)::regclass), -- 主键ID + is_use boolean NOT NULL DEFAULT false, -- 是否使用 + template_name varchar(32) NOT NULL, -- 模板名称 + template_type smallint NOT NULL, -- 模板类型 + content text NOT NULL -- 正文 +); + +/* Create Primary Keys, Indexes, Uniques, Checks */ +ALTER TABLE cg_fun_item ADD CONSTRAINT "PK_cg_fun_item" PRIMARY KEY (id); +ALTER TABLE cg_fun_item ADD CONSTRAINT u_module_item_code UNIQUE (module_id, item_id, item_code); +ALTER TABLE cg_fun_item ADD CONSTRAINT u_module_item_id UNIQUE (module_id, item_id); + +ALTER TABLE cg_fun_module ADD CONSTRAINT "PK_cg_fun_module" PRIMARY KEY (id); + +ALTER TABLE cg_fun_operation ADD CONSTRAINT "PK_cg_fun_operation" PRIMARY KEY (id); +ALTER TABLE cg_fun_operation ADD CONSTRAINT u_module_item_opration UNIQUE (module_id, item_id, operation_code); +ALTER TABLE cg_fun_operation ADD CONSTRAINT u_module_item_operation_id UNIQUE (module_id, item_id, operation_id); + +ALTER TABLE cg_menu ADD CONSTRAINT "PK_cg_menu" PRIMARY KEY (id); + +ALTER TABLE cg_role ADD CONSTRAINT "PK_cg_role" PRIMARY KEY (id); + +ALTER TABLE cg_role_fun ADD CONSTRAINT "PK_cg_role_fun" PRIMARY KEY (id); + +ALTER TABLE cg_template ADD CONSTRAINT "PK_cg_template" PRIMARY KEY (id); + +/* Create Table Comments, Sequences for Autonumber Columns */ +COMMENT ON TABLE cg_fun_item IS '功能项配置'; +COMMENT ON COLUMN cg_fun_item.id IS 'id'; +COMMENT ON COLUMN cg_fun_item.module_id IS '模块ID'; +COMMENT ON COLUMN cg_fun_item.item_id IS '功能ID'; +COMMENT ON COLUMN cg_fun_item.item_name IS '功能名称'; +COMMENT ON COLUMN cg_fun_item.item_code IS '功能编码'; +COMMENT ON COLUMN cg_fun_item.is_tenant IS '是否租户'; +COMMENT ON COLUMN cg_fun_item.describe IS '说明'; +COMMENT ON COLUMN cg_fun_item.sort_order IS '排序'; + +COMMENT ON TABLE cg_fun_module IS '模块配置'; +COMMENT ON COLUMN cg_fun_module.id IS 'id'; +COMMENT ON COLUMN cg_fun_module.module_code IS '模块编码'; +COMMENT ON COLUMN cg_fun_module.module_name IS '模块名称'; +COMMENT ON COLUMN cg_fun_module.package_name IS '包名称'; +COMMENT ON COLUMN cg_fun_module.api_package_name IS '参数包名'; +COMMENT ON COLUMN cg_fun_module.sort_order IS '排序'; +COMMENT ON COLUMN cg_fun_module.describe IS '描述'; + +COMMENT ON TABLE cg_fun_operation IS '操作配置'; +COMMENT ON COLUMN cg_fun_operation.id IS 'id'; +COMMENT ON COLUMN cg_fun_operation.module_id IS '模块ID'; +COMMENT ON COLUMN cg_fun_operation.item_id IS '功能ID(表主键ID)'; +COMMENT ON COLUMN cg_fun_operation.is_green_light IS '直接放行'; +COMMENT ON COLUMN cg_fun_operation.operation_id IS '操作ID'; +COMMENT ON COLUMN cg_fun_operation.operation_code IS '操作编码'; +COMMENT ON COLUMN cg_fun_operation.fun_name IS '操作名称'; +COMMENT ON COLUMN cg_fun_operation.fun_type IS '操作类型 > >查 > >改 > >删 > >增'; +COMMENT ON COLUMN cg_fun_operation.request_type IS '请求类型'; +COMMENT ON COLUMN cg_fun_operation.is_req_params IS '是否需要请求参数'; +COMMENT ON COLUMN cg_fun_operation.is_res_params IS '是否需要响应参数'; +COMMENT ON COLUMN cg_fun_operation.is_page IS '是否分页'; +COMMENT ON COLUMN cg_fun_operation.path_params IS '路径参数(与请求参数true互斥)'; +COMMENT ON COLUMN cg_fun_operation.usable_config IS '可配置数据类型json[]'; +COMMENT ON COLUMN cg_fun_operation.field_config IS '可配置字段'; +COMMENT ON COLUMN cg_fun_operation.sort_order IS '排序'; +COMMENT ON COLUMN cg_fun_operation.describe IS '说明说明'; + +COMMENT ON TABLE cg_menu IS '菜单'; +COMMENT ON COLUMN cg_menu.id IS '主键ID'; +COMMENT ON COLUMN cg_menu.client_type IS '客户端类型:0 PC端,1 小程序端,2 H5端'; +COMMENT ON COLUMN cg_menu.menu_name IS '菜单名称'; +COMMENT ON COLUMN cg_menu.parent_id IS '父菜单ID'; +COMMENT ON COLUMN cg_menu.fun_id IS '操作ID/来自操作表'; +COMMENT ON COLUMN cg_menu.menu_type IS '0菜单1按钮'; +COMMENT ON COLUMN cg_menu.path IS '路由路径'; +COMMENT ON COLUMN cg_menu.icon IS '菜单图标'; +COMMENT ON COLUMN cg_menu.is_tenant IS '是否租户'; +COMMENT ON COLUMN cg_menu.is_hide IS '是否隐藏'; +COMMENT ON COLUMN cg_menu.sort_order IS '排序'; + +COMMENT ON TABLE cg_role IS '角色表'; +COMMENT ON COLUMN cg_role.id IS '主键ID'; +COMMENT ON COLUMN cg_role.role_name IS '角色名称'; +COMMENT ON COLUMN cg_role.role_type IS '角色类型 0平台 1套餐'; + +COMMENT ON TABLE cg_role_fun IS '角色权限表'; +COMMENT ON COLUMN cg_role_fun.id IS '主键ID'; +COMMENT ON COLUMN cg_role_fun.role_id IS '角色ID'; +COMMENT ON COLUMN cg_role_fun.fun_id IS '操作ID'; +COMMENT ON COLUMN cg_role_fun.data_scope IS '数据权限默认:0无'; +COMMENT ON COLUMN cg_role_fun.assign_data_scope IS '指定的数据权限范围'; +COMMENT ON COLUMN cg_role_fun.exclude_field IS '排除的字段'; +COMMENT ON COLUMN cg_role_fun.client_type IS '客户端类型:0 PC端,1 小程序端,2 H5端'; + +COMMENT ON TABLE cg_template IS '模板表'; +COMMENT ON COLUMN cg_template.id IS '主键ID'; +COMMENT ON COLUMN cg_template.is_use IS '是否使用'; +COMMENT ON COLUMN cg_template.template_name IS '模板名称'; +COMMENT ON COLUMN cg_template.template_type IS '模板类型'; +COMMENT ON COLUMN cg_template.content IS '正文'; + +CREATE SEQUENCE cg_template_id_seq INCREMENT 1 START 1; +``` + + + diff --git a/generated_code.zip b/generated_code.zip index cff00ed..1021faa 100644 Binary files a/generated_code.zip and b/generated_code.zip differ diff --git a/src/main/java/com/cczsa/xinghe/codegen/config/WebConfig.java b/src/main/java/com/cczsa/xinghe/codegen/config/WebConfig.java new file mode 100644 index 0000000..4074b01 --- /dev/null +++ b/src/main/java/com/cczsa/xinghe/codegen/config/WebConfig.java @@ -0,0 +1,26 @@ +package com.cczsa.xinghe.codegen.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; + +/** + * @author xia + * @date 2026/1/20 + * @version 0.0.1 + */ +@Configuration +public class WebConfig implements WebMvcConfigurer { + + @Override + public void addViewControllers(ViewControllerRegistry registry) { + // 将所有非 API 的路径转发到 index.html + // 注意:这里假设你的 API 请求都有 /api 前缀 + registry.addViewController("/{path:[^\\.]*}") + .setViewName("forward:/index.html"); + + // 针对多级路径的递归处理(可选) + registry.addViewController("/**/{path:[^\\.]*}") + .setViewName("forward:/index.html"); + } +} \ No newline at end of file diff --git a/src/main/resources/static/app-loading.css b/src/main/resources/static/app-loading.css new file mode 100644 index 0000000..4f1346d --- /dev/null +++ b/src/main/resources/static/app-loading.css @@ -0,0 +1,45 @@ +/** 白屏阶段会执行的 CSS 加载动画 */ + +#app-loading { + position: relative; + top: 45vh; + margin: 0 auto; + color: #409eff; + font-size: 12px; +} + +#app-loading, +#app-loading::before, +#app-loading::after { + width: 2em; + height: 2em; + border-radius: 50%; + animation: 2s ease-in-out infinite app-loading-animation; +} + +#app-loading::before, +#app-loading::after { + content: ""; + position: absolute; +} + +#app-loading::before { + left: -4em; + animation-delay: -0.2s; +} + +#app-loading::after { + left: 4em; + animation-delay: 0.2s; +} + +@keyframes app-loading-animation { + 0%, + 80%, + 100% { + box-shadow: 0 2em 0 -2em; + } + 40% { + box-shadow: 0 2em 0 0; + } +} diff --git a/src/main/resources/static/favicon.ico b/src/main/resources/static/favicon.ico new file mode 100644 index 0000000..de03843 Binary files /dev/null and b/src/main/resources/static/favicon.ico differ diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html new file mode 100644 index 0000000..f450358 --- /dev/null +++ b/src/main/resources/static/index.html @@ -0,0 +1,21 @@ + + +
+ + + + +"u"?!1:e instanceof ShadowRoot||e instanceof On(e).ShadowRoot}const _J=new Set(["inline","contents"]);function vr(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=Zn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!_J.has(a)}const yJ=new Set(["table","td","th"]);function bJ(e){return yJ.has(rl(e))}const wJ=[":popover-open",":modal"];function Us(e){return wJ.some(t=>{try{return e.matches(t)}catch{return!1}})}const CJ=["transform","translate","scale","rotate","perspective"],$J=["transform","translate","scale","rotate","perspective","filter"],kJ=["paint","layout","strict","content"];function Nc(e){const t=Ic(),n=Xn(e)?Zn(e):e;return CJ.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||$J.some(o=>(n.willChange||"").includes(o))||kJ.some(o=>(n.contain||"").includes(o))}function SJ(e){let t=Ko(e);for(;uo(t)&&!Xa(t);){if(Nc(t))return t;if(Us(t))return null;t=Ko(t)}return null}function Ic(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const MJ=new Set(["html","body","#document"]);function Xa(e){return MJ.has(rl(e))}function Zn(e){return On(e).getComputedStyle(e)}function Ys(e){return Xn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ko(e){if(rl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||O0(e)&&e.host||To(e);return O0(t)?t.host:t}function rp(e){const t=Ko(e);return Xa(t)?e.ownerDocument?e.ownerDocument.body:e.body:uo(t)&&vr(t)?t:rp(t)}function Wi(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=rp(e),l=a===((o=e.ownerDocument)==null?void 0:o.body),s=On(a);if(l){const i=ji(s);return t.concat(s,s.visualViewport||[],vr(a)?a:[],i&&n?Wi(i):[])}return t.concat(a,Wi(a,[],n))}function ji(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sp(e){const t=Zn(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=uo(e),l=a?e.offsetWidth:n,s=a?e.offsetHeight:o,i=vs(n)!==l||vs(o)!==s;return i&&(n=l,o=s),{width:n,height:o,$:i}}function ip(e){return Xn(e)?e:e.contextElement}function La(e){const t=ip(e);if(!uo(t))return lo(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:l}=sp(t);let s=(l?vs(n.width):n.width)/o,i=(l?vs(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const EJ=lo(0);function up(e){const t=On(e);return!Ic()||!t.visualViewport?EJ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xJ(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==On(e)?!1:t}function Wl(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=ip(e);let s=lo(1);t&&(o?Xn(o)&&(s=La(o)):s=La(e));const i=xJ(l,n,o)?up(l):lo(0);let u=(a.left+i.x)/s.x,c=(a.top+i.y)/s.y,f=a.width/s.x,d=a.height/s.y;if(l){const p=On(l),h=o&&Xn(o)?On(o):o;let m=p,v=ji(m);for(;v&&o&&h!==m;){const _=La(v),y=v.getBoundingClientRect(),$=Zn(v),b=y.left+(v.clientLeft+parseFloat($.paddingLeft))*_.x,w=y.top+(v.clientTop+parseFloat($.paddingTop))*_.y;u*=_.x,c*=_.y,f*=_.x,d*=_.y,u+=b,c+=w,m=On(v),v=ji(m)}}return ap({width:f,height:d,x:u,y:c})}function Gs(e,t){const n=Ys(e).scrollLeft;return t?t.left+n:Wl(To(e)).left+n}function cp(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Gs(e,n),a=n.top+t.scrollTop;return{x:o,y:a}}function TJ(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const l=a==="fixed",s=To(o),i=t?Us(t.floating):!1;if(o===s||i&&l)return n;let u={scrollLeft:0,scrollTop:0},c=lo(1);const f=lo(0),d=uo(o);if((d||!d&&!l)&&((rl(o)!=="body"||vr(s))&&(u=Ys(o)),uo(o))){const h=Wl(o);c=La(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}const p=s&&!d&&!l?cp(s,u):lo(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-u.scrollTop*c.y+f.y+p.y}}function zJ(e){return Array.from(e.getClientRects())}function OJ(e){const t=To(e),n=Ys(e),o=e.ownerDocument.body,a=Va(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=Va(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Gs(e);const i=-n.scrollTop;return Zn(o).direction==="rtl"&&(s+=Va(t.clientWidth,o.clientWidth)-a),{width:a,height:l,x:s,y:i}}const A0=25;function AJ(e,t){const n=On(e),o=To(e),a=n.visualViewport;let l=o.clientWidth,s=o.clientHeight,i=0,u=0;if(a){l=a.width,s=a.height;const f=Ic();(!f||f&&t==="fixed")&&(i=a.offsetLeft,u=a.offsetTop)}const c=Gs(o);if(c<=0){const f=o.ownerDocument,d=f.body,p=getComputedStyle(d),h=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(o.clientWidth-d.clientWidth-h);m<=A0&&(l-=m)}else c<=A0&&(l+=c);return{width:l,height:s,x:i,y:u}}const NJ=new Set(["absolute","fixed"]);function IJ(e,t){const n=Wl(e,!0,t==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,l=uo(e)?La(e):lo(1),s=e.clientWidth*l.x,i=e.clientHeight*l.y,u=a*l.x,c=o*l.y;return{width:s,height:i,x:u,y:c}}function N0(e,t,n){let o;if(t==="viewport")o=AJ(e,n);else if(t==="document")o=OJ(To(e));else if(Xn(t))o=IJ(t,n);else{const a=up(e);o={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return ap(o)}function dp(e,t){const n=Ko(e);return n===t||!Xn(n)||Xa(n)?!1:Zn(n).position==="fixed"||dp(n,t)}function VJ(e,t){const n=t.get(e);if(n)return n;let o=Wi(e,[],!1).filter(i=>Xn(i)&&rl(i)!=="body"),a=null;const l=Zn(e).position==="fixed";let s=l?Ko(e):e;for(;Xn(s)&&!Xa(s);){const i=Zn(s),u=Nc(s);!u&&i.position==="fixed"&&(a=null),(l?!u&&!a:!u&&i.position==="static"&&!!a&&NJ.has(a.position)||vr(s)&&!u&&dp(e,s))?o=o.filter(f=>f!==s):a=i,s=Ko(s)}return t.set(e,o),o}function LJ(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const s=[...n==="clippingAncestors"?Us(t)?[]:VJ(t,this._c):[].concat(n),o],i=s[0],u=s.reduce((c,f)=>{const d=N0(t,f,a);return c.top=Va(d.top,c.top),c.right=Kl(d.right,c.right),c.bottom=Kl(d.bottom,c.bottom),c.left=Va(d.left,c.left),c},N0(t,i,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function HJ(e){const{width:t,height:n}=sp(e);return{width:t,height:n}}function PJ(e,t,n){const o=uo(t),a=To(t),l=n==="fixed",s=Wl(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const u=lo(0);function c(){u.x=Gs(a)}if(o||!o&&!l)if((rl(t)!=="body"||vr(a))&&(i=Ys(t)),o){const h=Wl(t,!0,l,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else a&&c();l&&!o&&a&&c();const f=a&&!o&&!l?cp(a,i):lo(0),d=s.left+i.scrollLeft-u.x-f.x,p=s.top+i.scrollTop-u.y-f.y;return{x:d,y:p,width:s.width,height:s.height}}function pi(e){return Zn(e).position==="static"}function I0(e,t){if(!uo(e)||Zn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return To(e)===n&&(n=n.ownerDocument.body),n}function fp(e,t){const n=On(e);if(Us(e))return n;if(!uo(e)){let a=Ko(e);for(;a&&!Xa(a);){if(Xn(a)&&!pi(a))return a;a=Ko(a)}return n}let o=I0(e,t);for(;o&&bJ(o)&&pi(o);)o=I0(o,t);return o&&Xa(o)&&pi(o)&&!Nc(o)?n:o||SJ(e)||n}const BJ=async function(e){const t=this.getOffsetParent||fp,n=this.getDimensions,o=await n(e.floating);return{reference:PJ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function RJ(e){return Zn(e).direction==="rtl"}const DJ={convertOffsetParentRelativeRectToViewportRelativeRect:TJ,getDocumentElement:To,getClippingRect:LJ,getOffsetParent:fp,getElementRects:BJ,getClientRects:zJ,getDimensions:HJ,getScale:La,isElement:Xn,isRTL:RJ},FJ=gJ,KJ=vJ,WJ=(e,t,n)=>{const o=new Map,a={platform:DJ,...n},l={...a.platform,_c:o};return pJ(e,t,{...a,platform:l})};_e({});const jJ=e=>{if(!pt)return;if(!e)return e;const t=xn(e);return t||(dn(e)?t:e)},qJ=({middleware:e,placement:t,strategy:n})=>{const o=A(),a=A(),l=A(),s=A(),i=A({}),u={x:l,y:s,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!pt)return;const f=jJ(o),d=xn(a);if(!f||!d)return;const p=await WJ(f,d,{placement:r(t),strategy:r(n),middleware:r(e)});Bl(u).forEach(h=>{u[h].value=p[h]})};return Je(()=>{zn(()=>{c()})}),{...u,update:c,referenceRef:o,contentRef:a}},UJ=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const o=r(e);return o?KJ({element:o,padding:t}).fn(n):{}}});function YJ(e){const t=A();function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:l,value:s}=e.value;if(a==null||l==null)return;const i=s.slice(0,Math.max(0,a)),u=s.slice(Math.max(0,l));t.value={selectionStart:a,selectionEnd:l,value:s,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:l,afterTxt:s,selectionStart:i}=t.value;if(l==null||s==null||i==null)return;let u=a.length;if(a.endsWith(s))u=a.length-s.length;else if(a.startsWith(l))u=l.length;else{const c=l[i-1],f=a.indexOf(c,i-1);f!==-1&&(u=f+1)}e.value.setSelectionRange(u,u)}return[n,o]}const GJ=(e,t,n)=>Ia(e.subTree).filter(l=>{var s;return Bt(l)&&((s=l.type)==null?void 0:s.name)===t&&!!l.component}).map(l=>l.component.uid).map(l=>n[l]).filter(l=>!!l),Vc=(e,t)=>{const n={},o=Mt([]);return{children:o,addChild:s=>{n[s.uid]=s,o.value=GJ(e,t,n)},removeChild:s=>{delete n[s],o.value=o.value.filter(i=>i.uid!==s)}}},ln=Qn({type:String,values:fo,required:!1}),pp=Symbol("size"),XJ=()=>{const e=xe(pp,{});return C(()=>r(e.size)||"")};function ZJ(e,{afterFocus:t,afterBlur:n}={}){const o=Ze(),{emit:a}=o,l=Mt(),s=A(!1),i=f=>{s.value||(s.value=!0,a("focus",f),t==null||t())},u=f=>{var d;f.relatedTarget&&((d=l.value)!=null&&d.contains(f.relatedTarget))||(s.value=!1,a("blur",f),n==null||n())},c=()=>{var f;(f=e.value)==null||f.focus()};return ce(l,f=>{f&&f.setAttribute("tabindex","-1")}),xt(l,"click",c),{wrapperRef:l,isFocused:s,handleFocus:i,handleBlur:u}}const vp=Symbol(),hs=A();function Xs(e,t=void 0){const n=Ze()?xe(vp,hs):hs;return e?C(()=>{var o,a;return(a=(o=n.value)==null?void 0:o[e])!=null?a:t}):n}function Zs(e,t){const n=Xs(),o=de(e,C(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||kl})),a=ht(C(()=>{var i;return(i=n.value)==null?void 0:i.locale})),l=ll(C(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||Q1})),s=C(()=>{var i;return r(t)||((i=n.value)==null?void 0:i.size)||""});return Lc(C(()=>r(n)||{})),{ns:o,locale:a,zIndex:l,size:s}}const Lc=(e,t,n=!1)=>{var o;const a=!!Ze(),l=a?Xs():void 0,s=(o=t==null?void 0:t.provide)!=null?o:a?dt:void 0;if(!s)return;const i=C(()=>{const u=r(e);return l!=null&&l.value?JJ(l.value,u):u});return s(vp,i),s(x1,C(()=>i.value.locale)),s(N1,C(()=>i.value.namespace)),s(ep,C(()=>i.value.zIndex)),s(pp,{size:C(()=>i.value.size||"")}),(n||!hs.value)&&(hs.value=i.value),i},JJ=(e,t)=>{var n;const o=[...new Set([...Bl(e),...Bl(t)])],a={};for(const l of o)a[l]=(n=t[l])!=null?n:e[l];return a},QJ=_e({a11y:{type:Boolean,default:!0},locale:{type:ee(Object)},size:ln,button:{type:ee(Object)},experimentalFeatures:{type:ee(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ee(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),qi={},eQ=U({name:"ElConfigProvider",props:QJ,setup(e,{slots:t}){ce(()=>e.message,o=>{Object.assign(qi,o??{})},{immediate:!0,deep:!0});const n=Lc(e);return()=>se(t,"default",{config:n==null?void 0:n.value})}}),tQ=Qe(eQ),nQ="2.3.9",oQ=(e=[])=>({version:nQ,install:(n,o)=>{n[v0]||(n[v0]=!0,e.forEach(a=>n.use(a)),o&&Lc(o,n,!0))}}),aQ=_e({zIndex:{type:ee([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),lQ={scroll:({scrollTop:e,fixed:t})=>Re(e)&&Kt(t),[Et]:e=>Kt(e)};var ge=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};const hp="ElAffix",rQ=U({name:hp}),sQ=U({...rQ,props:aQ,emits:lQ,setup(e,{expose:t,emit:n}){const o=e,a=de("affix"),l=Mt(),s=Mt(),i=Mt(),{height:u}=yy(),{height:c,width:f,top:d,bottom:p,update:h}=u0(s,{windowScroll:!1}),m=u0(l),v=A(!1),_=A(0),y=A(0),$=C(()=>({height:v.value?`${c.value}px`:"",width:v.value?`${f.value}px`:""})),b=C(()=>{if(!v.value)return{};const M=o.offset?Pt(o.offset):0;return{height:`${c.value}px`,width:`${f.value}px`,top:o.position==="top"?M:"",bottom:o.position==="bottom"?M:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:o.zIndex}}),w=()=>{if(i.value)if(_.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0,o.position==="top")if(o.target){const M=m.bottom.value-o.offset-c.value;v.value=o.offset>d.value&&m.bottom.value>0,y.value=M<0?M:0}else v.value=o.offset>d.value;else if(o.target){const M=u.value-m.top.value-o.offset-c.value;v.value=u.value-o.offset
(g(),S("div",{class:E(r(l))},[u.title||u.extra||u.$slots.title||u.$slots.extra?(g(),S("div",{key:0,class:E(r(n).e("header"))},[k("div",{class:E(r(n).e("title"))},[se(u.$slots,"title",{},()=>[gt(me(u.title),1)])],2),k("div",{class:E(r(n).e("extra"))},[se(u.$slots,"extra",{},()=>[gt(me(u.extra),1)])],2)],2)):J("v-if",!0),k("div",{class:E(r(n).e("body"))},[k("table",{class:E([r(n).e("table"),r(n).is("bordered",u.border)])},[k("tbody",null,[(g(!0),S(Ie,null,ft(i(),(f,d)=>(g(),ne(fie,{key:d,row:f},null,8,["row"]))),128))])],2)],2)],2))}});var mie=ge(hie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),Dv=U({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const gie=Qe(mie,{DescriptionsItem:Dv}),_ie=Lt(Dv),yie=_e({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ee([String,Array,Object])},zIndex:{type:ee([String,Number])}}),bie={click:e=>e instanceof MouseEvent},wie="overlay";var Cie=U({name:"ElOverlay",props:yie,emits:bie,setup(e,{slots:t,emit:n}){const o=de(wie),a=u=>{n("click",u)},{onClick:l,onMousedown:s,onMouseup:i}=Tc(e.customMaskEvent?void 0:a);return()=>e.mask?j("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:s,onMouseup:i},[se(t,"default")],An.STYLE|An.CLASS|An.PROPS,["onClick","onMouseup","onMousedown"]):Ae("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[se(t,"default")])}});const Yc=Cie,Fv=Symbol("dialogInjectionKey"),Kv=_e({center:Boolean,alignCenter:Boolean,closeIcon:{type:kt},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),$ie={close:()=>!0},kie=["aria-label"],Sie=["id"],Mie=U({name:"ElDialogContent"}),Eie=U({...Mie,props:Kv,emits:$ie,setup(e){const t=e,{t:n}=ht(),{Close:o}=S1,{dialogRef:a,headerRef:l,bodyId:s,ns:i,style:u}=xe(Fv),{focusTrapRef:c}=xe(Pc),f=C(()=>[i.b(),i.is("fullscreen",t.fullscreen),i.is("draggable",t.draggable),i.is("align-center",t.alignCenter),{[i.m("center")]:t.center},t.customClass]),d=Rs(c,a),p=C(()=>t.draggable);return E1(a,l,p),(h,m)=>(g(),S("div",{ref:r(d),class:E(r(f)),style:ze(r(u)),tabindex:"-1"},[k("header",{ref_key:"headerRef",ref:l,class:E(r(i).e("header"))},[se(h.$slots,"header",{},()=>[k("span",{role:"heading",class:E(r(i).e("title"))},me(h.title),3)]),h.showClose?(g(),S("button",{key:0,"aria-label":r(n)("el.dialog.close"),class:E(r(i).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=v=>h.$emit("close"))},[j(r(Se),{class:E(r(i).e("close"))},{default:X(()=>[(g(),ne(ot(h.closeIcon||r(o))))]),_:1},8,["class"])],10,kie)):J("v-if",!0)],2),k("div",{id:r(s),class:E(r(i).e("body"))},[se(h.$slots,"default")],10,Sie),h.$slots.footer?(g(),S("footer",{key:0,class:E(r(i).e("footer"))},[se(h.$slots,"footer")],2)):J("v-if",!0)],6))}});var xie=ge(Eie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Wv=_e({...Kv,appendToBody:Boolean,beforeClose:{type:ee(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),jv={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[tt]:e=>Kt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},qv=(e,t)=>{const o=Ze().emit,{nextZIndex:a}=ll();let l="";const s=Dn(),i=Dn(),u=A(!1),c=A(!1),f=A(!1),d=A(e.zIndex||a());let p,h;const m=Xs("namespace",kl),v=C(()=>{const B={},W=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(B[`${W}-margin-top`]=e.top),e.width&&(B[`${W}-width`]=Pt(e.width))),B}),_=C(()=>e.alignCenter?{display:"flex"}:{});function y(){o("opened")}function $(){o("closed"),o(tt,!1),e.destroyOnClose&&(f.value=!1)}function b(){o("close")}function w(){h==null||h(),p==null||p(),e.openDelay&&e.openDelay>0?{stop:p}=ua(()=>T(),e.openDelay):T()}function x(){p==null||p(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=ua(()=>V(),e.closeDelay):V()}function M(){function B(W){W||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(B):x()}function O(){e.closeOnClickModal&&M()}function T(){pt&&(u.value=!0)}function V(){u.value=!1}function L(){o("openAutoFocus")}function H(){o("closeAutoFocus")}function P(B){var W;((W=B.detail)==null?void 0:W.focusReason)==="pointer"&&B.preventDefault()}e.lockScroll&&I1(u);function N(){e.closeOnPressEscape&&M()}return ce(()=>e.modelValue,B=>{B?(c.value=!1,w(),f.value=!0,d.value=e.zIndex?d.value++:a(),Ee(()=>{o("open"),t.value&&(t.value.scrollTop=0)})):u.value&&x()}),ce(()=>e.fullscreen,B=>{t.value&&(B?(l=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=l)}),Je(()=>{e.modelValue&&(u.value=!0,f.value=!0,w())}),{afterEnter:y,afterLeave:$,beforeLeave:b,handleClose:M,onModalClick:O,close:x,doClose:V,onOpenAutoFocus:L,onCloseAutoFocus:H,onCloseRequested:N,onFocusoutPrevented:P,titleId:s,bodyId:i,closed:c,style:v,overlayDialogStyle:_,rendered:f,visible:u,zIndex:d}},Tie=["aria-label","aria-labelledby","aria-describedby"],zie=U({name:"ElDialog",inheritAttrs:!1}),Oie=U({...zie,props:Wv,emits:jv,setup(e,{expose:t}){const n=e,o=en();so({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},C(()=>!!o.title)),so({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},C(()=>!!n.customClass));const a=de("dialog"),l=A(),s=A(),i=A(),{visible:u,titleId:c,bodyId:f,style:d,overlayDialogStyle:p,rendered:h,zIndex:m,afterEnter:v,afterLeave:_,beforeLeave:y,handleClose:$,onModalClick:b,onOpenAutoFocus:w,onCloseAutoFocus:x,onCloseRequested:M,onFocusoutPrevented:O}=qv(n,l);dt(Fv,{dialogRef:l,headerRef:s,bodyId:f,ns:a,rendered:h,style:d});const T=Tc(b),V=C(()=>n.draggable&&!n.fullscreen);return t({visible:u,dialogContentRef:i}),(L,H)=>(g(),ne(or,{to:"body",disabled:!L.appendToBody},[j(Wt,{name:"dialog-fade",onAfterEnter:r(v),onAfterLeave:r(_),onBeforeLeave:r(y),persisted:""},{default:X(()=>[Ye(j(r(Yc),{"custom-mask-event":"",mask:L.modal,"overlay-class":L.modalClass,"z-index":r(m)},{default:X(()=>[k("div",{role:"dialog","aria-modal":"true","aria-label":L.title||void 0,"aria-labelledby":L.title?void 0:r(c),"aria-describedby":r(f),class:E(`${r(a).namespace.value}-overlay-dialog`),style:ze(r(p)),onClick:H[0]||(H[0]=(...P)=>r(T).onClick&&r(T).onClick(...P)),onMousedown:H[1]||(H[1]=(...P)=>r(T).onMousedown&&r(T).onMousedown(...P)),onMouseup:H[2]||(H[2]=(...P)=>r(T).onMouseup&&r(T).onMouseup(...P))},[j(r(Qs),{loop:"",trapped:r(u),"focus-start-el":"container",onFocusAfterTrapped:r(w),onFocusAfterReleased:r(x),onFocusoutPrevented:r(O),onReleaseRequested:r(M)},{default:X(()=>[r(h)?(g(),ne(xie,lt({key:0,ref_key:"dialogContentRef",ref:i},L.$attrs,{"custom-class":L.customClass,center:L.center,"align-center":L.alignCenter,"close-icon":L.closeIcon,draggable:r(V),fullscreen:L.fullscreen,"show-close":L.showClose,title:L.title,onClose:r($)}),wo({header:X(()=>[L.$slots.title?se(L.$slots,"title",{key:1}):se(L.$slots,"header",{key:0,close:r($),titleId:r(c),titleClass:r(a).e("title")})]),default:X(()=>[se(L.$slots,"default")]),_:2},[L.$slots.footer?{name:"footer",fn:X(()=>[se(L.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):J("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,Tie)]),_:3},8,["mask","overlay-class","z-index"]),[[mt,r(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Aie=ge(Oie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Nie=Qe(Aie),Iie=_e({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ee(String),default:"solid"}}),Vie=U({name:"ElDivider"}),Lie=U({...Vie,props:Iie,setup(e){const t=e,n=de("divider"),o=C(()=>n.cssVar({"border-style":t.borderStyle}));return(a,l)=>(g(),S("div",{class:E([r(n).b(),r(n).m(a.direction)]),style:ze(r(o)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(g(),S("div",{key:0,class:E([r(n).e("text"),r(n).is(a.contentPosition)])},[se(a.$slots,"default")],2)):J("v-if",!0)],6))}});var Hie=ge(Lie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const Uv=Qe(Hie),Pie=_e({...Wv,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),Bie=jv,Rie=U({name:"ElDrawer",components:{ElOverlay:Yc,ElFocusTrap:Qs,ElIcon:Se,Close:Pn},inheritAttrs:!1,props:Pie,emits:Bie,setup(e,{slots:t}){so({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},C(()=>!!t.title)),so({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},C(()=>!!e.customClass));const n=A(),o=A(),a=de("drawer"),{t:l}=ht(),s=C(()=>e.direction==="rtl"||e.direction==="ltr"),i=C(()=>Pt(e.size));return{...qv(e,n),drawerRef:n,focusStartRef:o,isHorizontal:s,drawerSize:i,ns:a,t:l}}}),Die=["aria-label","aria-labelledby","aria-describedby"],Fie=["id"],Kie=["aria-label"],Wie=["id"];function jie(e,t,n,o,a,l){const s=Ue("close"),i=Ue("el-icon"),u=Ue("el-focus-trap"),c=Ue("el-overlay");return g(),ne(or,{to:"body",disabled:!e.appendToBody},[j(Wt,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:X(()=>[Ye(j(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:X(()=>[j(u,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:X(()=>[k("div",lt({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=Be(()=>{},["stop"]))}),[k("span",{ref:"focusStartRef",class:E(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(g(),S("header",{key:0,class:E(e.ns.e("header"))},[e.$slots.title?se(e.$slots,"title",{key:1},()=>[J(" DEPRECATED SLOT ")]):se(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?J("v-if",!0):(g(),S("span",{key:0,id:e.titleId,role:"heading",class:E(e.ns.e("title"))},me(e.title),11,Fie))]),e.showClose?(g(),S("button",{key:2,"aria-label":e.t("el.drawer.close"),class:E(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...f)=>e.handleClose&&e.handleClose(...f))},[j(i,{class:E(e.ns.e("close"))},{default:X(()=>[j(s)]),_:1},8,["class"])],10,Kie)):J("v-if",!0)],2)):J("v-if",!0),e.rendered?(g(),S("div",{key:1,id:e.bodyId,class:E(e.ns.e("body"))},[se(e.$slots,"default")],10,Wie)):J("v-if",!0),e.$slots.footer?(g(),S("div",{key:2,class:E(e.ns.e("footer"))},[se(e.$slots,"footer")],2)):J("v-if",!0)],16,Die)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[mt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var qie=ge(Rie,[["render",jie],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const Uie=Qe(qie),Yie=U({inheritAttrs:!1});function Gie(e,t,n,o,a,l){return se(e.$slots,"default")}var Xie=ge(Yie,[["render",Gie],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const Zie=U({name:"ElCollectionItem",inheritAttrs:!1});function Jie(e,t,n,o,a,l){return se(e.$slots,"default")}var Qie=ge(Zie,[["render",Jie],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Yv="data-el-collection-item",Gv=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),a=Symbol(n),l={...Xie,name:t,setup(){const i=A(null),u=new Map;dt(o,{itemMap:u,getItems:()=>{const f=r(i);if(!f)return[];const d=Array.from(f.querySelectorAll(`[${Yv}]`));return[...u.values()].sort((h,m)=>d.indexOf(h.ref)-d.indexOf(m.ref))},collectionRef:i})}},s={...Qie,name:n,setup(i,{attrs:u}){const c=A(null),f=xe(o,void 0);dt(a,{collectionItemRef:c}),Je(()=>{const d=r(c);d&&f.itemMap.set(d,{ref:d,...u})}),At(()=>{const d=r(c);f.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:l,ElCollectionItem:s}},eue=_e({style:{type:ee([String,Array,Object])},currentTabId:{type:ee(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ee(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:tue,ElCollectionItem:nue,COLLECTION_INJECTION_KEY:Gc,COLLECTION_ITEM_INJECTION_KEY:oue}=Gv("RovingFocusGroup"),Xc=Symbol("elRovingFocusGroup"),Xv=Symbol("elRovingFocusGroupItem"),aue={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},lue=(e,t)=>{if(t!=="rtl")return e;switch(e){case Oe.right:return Oe.left;case Oe.left:return Oe.right;default:return e}},rue=(e,t,n)=>{const o=lue(e.key,n);if(!(t==="vertical"&&[Oe.left,Oe.right].includes(o))&&!(t==="horizontal"&&[Oe.up,Oe.down].includes(o)))return aue[o]},sue=(e,t)=>e.map((n,o)=>e[(o+t)%e.length]),Zc=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},C2="currentTabIdChange",$2="rovingFocusGroup.entryFocus",iue={bubbles:!1,cancelable:!0},uue=U({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:eue,emits:[C2,"entryFocus"],setup(e,{emit:t}){var n;const o=A((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=A(!1),l=A(!1),s=A(null),{getItems:i}=xe(Gc,void 0),u=C(()=>[{outline:"none"},e.style]),c=v=>{t(C2,v)},f=()=>{a.value=!0},d=Vt(v=>{var _;(_=e.onMousedown)==null||_.call(e,v)},()=>{l.value=!0}),p=Vt(v=>{var _;(_=e.onFocus)==null||_.call(e,v)},v=>{const _=!r(l),{target:y,currentTarget:$}=v;if(y===$&&_&&!r(a)){const b=new Event($2,iue);if($==null||$.dispatchEvent(b),!b.defaultPrevented){const w=i().filter(V=>V.focusable),x=w.find(V=>V.active),M=w.find(V=>V.id===r(o)),T=[x,M,...w].filter(Boolean).map(V=>V.ref);Zc(T)}}l.value=!1}),h=Vt(v=>{var _;(_=e.onBlur)==null||_.call(e,v)},()=>{a.value=!1}),m=(...v)=>{t("entryFocus",...v)};dt(Xc,{currentTabbedId:xs(o),loop:Ot(e,"loop"),tabIndex:C(()=>r(a)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:u,orientation:Ot(e,"orientation"),dir:Ot(e,"dir"),onItemFocus:c,onItemShiftTab:f,onBlur:h,onFocus:p,onMousedown:d}),ce(()=>e.currentTabId,v=>{o.value=v??null}),xt(s,$2,m)}});function cue(e,t,n,o,a,l){return se(e.$slots,"default")}var due=ge(uue,[["render",cue],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const fue=U({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:tue,ElRovingFocusGroupImpl:due}});function pue(e,t,n,o,a,l){const s=Ue("el-roving-focus-group-impl"),i=Ue("el-focus-group-collection");return g(),ne(i,null,{default:X(()=>[j(s,qn(qu(e.$attrs)),{default:X(()=>[se(e.$slots,"default")]),_:3},16)]),_:3})}var vue=ge(fue,[["render",pue],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const hue=U({components:{ElRovingFocusCollectionItem:nue},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:o,onItemFocus:a,onItemShiftTab:l}=xe(Xc,void 0),{getItems:s}=xe(Gc,void 0),i=Dn(),u=A(null),c=Vt(h=>{t("mousedown",h)},h=>{e.focusable?a(r(i)):h.preventDefault()}),f=Vt(h=>{t("focus",h)},()=>{a(r(i))}),d=Vt(h=>{t("keydown",h)},h=>{const{key:m,shiftKey:v,target:_,currentTarget:y}=h;if(m===Oe.tab&&v){l();return}if(_!==y)return;const $=rue(h);if($){h.preventDefault();let w=s().filter(x=>x.focusable).map(x=>x.ref);switch($){case"last":{w.reverse();break}case"prev":case"next":{$==="prev"&&w.reverse();const x=w.indexOf(y);w=o.value?sue(w,x+1):w.slice(x+1);break}}Ee(()=>{Zc(w)})}}),p=C(()=>n.value===r(i));return dt(Xv,{rovingFocusGroupItemRef:u,tabIndex:C(()=>r(p)?0:-1),handleMousedown:c,handleFocus:f,handleKeydown:d}),{id:i,handleKeydown:d,handleFocus:f,handleMousedown:c}}});function mue(e,t,n,o,a,l){const s=Ue("el-roving-focus-collection-item");return g(),ne(s,{id:e.id,focusable:e.focusable,active:e.active},{default:X(()=>[se(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var gue=ge(hue,[["render",mue],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Xr=_e({trigger:ql.trigger,effect:{...Qt.effect,default:"light"},type:{type:ee(String)},placement:{type:ee(String),default:"bottom"},popperOptions:{type:ee(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:ee([Number,String]),default:0},maxHeight:{type:ee([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ee(Object)},teleported:Qt.teleported}),Zv=_e({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:kt}}),_ue=_e({onKeydown:{type:ee(Function)}}),yue=[Oe.down,Oe.pageDown,Oe.home],Jv=[Oe.up,Oe.pageUp,Oe.end],bue=[...yue,...Jv],{ElCollection:wue,ElCollectionItem:Cue,COLLECTION_INJECTION_KEY:$ue,COLLECTION_ITEM_INJECTION_KEY:kue}=Gv("Dropdown"),ni=Symbol("elDropdown"),{ButtonGroup:Sue}=on,Mue=U({name:"ElDropdown",components:{ElButton:on,ElButtonGroup:Sue,ElScrollbar:zo,ElDropdownCollection:wue,ElTooltip:mn,ElRovingFocusGroup:vue,ElOnlyChild:$p,ElIcon:Se,ArrowDown:Mo},props:Xr,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Ze(),o=de("dropdown"),{t:a}=ht(),l=A(),s=A(),i=A(null),u=A(null),c=A(null),f=A(null),d=A(!1),p=[Oe.enter,Oe.space,Oe.down],h=C(()=>({maxHeight:Pt(e.maxHeight)})),m=C(()=>[o.m(w.value)]),v=Dn().value,_=C(()=>e.id||v);ce([l,Ot(e,"trigger")],([F,I],[R])=>{var z,D,G;const K=et(I)?I:[I];(z=R==null?void 0:R.$el)!=null&&z.removeEventListener&&R.$el.removeEventListener("pointerenter",M),(D=F==null?void 0:F.$el)!=null&&D.removeEventListener&&F.$el.removeEventListener("pointerenter",M),(G=F==null?void 0:F.$el)!=null&&G.addEventListener&&K.includes("hover")&&F.$el.addEventListener("pointerenter",M)},{immediate:!0}),At(()=>{var F,I;(I=(F=l.value)==null?void 0:F.$el)!=null&&I.removeEventListener&&l.value.$el.removeEventListener("pointerenter",M)});function y(){$()}function $(){var F;(F=i.value)==null||F.onClose()}function b(){var F;(F=i.value)==null||F.onOpen()}const w=qt();function x(...F){t("command",...F)}function M(){var F,I;(I=(F=l.value)==null?void 0:F.$el)==null||I.focus()}function O(){}function T(){const F=r(u);F==null||F.focus(),f.value=null}function V(F){f.value=F}function L(F){d.value||(F.preventDefault(),F.stopImmediatePropagation())}function H(){t("visible-change",!0)}function P(F){(F==null?void 0:F.type)==="keydown"&&u.value.focus()}function N(){t("visible-change",!1)}return dt(ni,{contentRef:u,role:C(()=>e.role),triggerId:_,isUsingKeyboard:d,onItemEnter:O,onItemLeave:T}),dt("elDropdown",{instance:n,dropdownSize:w,handleClick:y,commandHandler:x,trigger:Ot(e,"trigger"),hideOnClick:Ot(e,"hideOnClick")}),{t:a,ns:o,scrollbar:c,wrapStyle:h,dropdownTriggerKls:m,dropdownSize:w,triggerId:_,triggerKeys:p,currentTabId:f,handleCurrentTabIdChange:V,handlerMainButtonClick:F=>{t("click",F)},handleEntryFocus:L,handleClose:$,handleOpen:b,handleBeforeShowTooltip:H,handleShowTooltip:P,handleBeforeHideTooltip:N,onFocusAfterTrapped:F=>{var I,R;F.preventDefault(),(R=(I=u.value)==null?void 0:I.focus)==null||R.call(I,{preventScroll:!0})},popperRef:i,contentRef:u,triggeringElementRef:l,referenceElementRef:s}}});function Eue(e,t,n,o,a,l){var s;const i=Ue("el-dropdown-collection"),u=Ue("el-roving-focus-group"),c=Ue("el-scrollbar"),f=Ue("el-only-child"),d=Ue("el-tooltip"),p=Ue("el-button"),h=Ue("arrow-down"),m=Ue("el-icon"),v=Ue("el-button-group");return g(),S("div",{class:E([e.ns.b(),e.ns.is("disabled",e.disabled)])},[j(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(s=e.referenceElementRef)==null?void 0:s.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},wo({content:X(()=>[j(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:X(()=>[j(u,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:X(()=>[j(i,null,{default:X(()=>[se(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:X(()=>[j(f,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:X(()=>[se(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(g(),ne(v,{key:0},{default:X(()=>[j(p,lt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:X(()=>[se(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),j(p,lt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:X(()=>[j(m,{class:E(e.ns.e("icon"))},{default:X(()=>[j(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):J("v-if",!0)],2)}var xue=ge(Mue,[["render",Eue],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Tue=U({name:"DropdownItemImpl",components:{ElIcon:Se},props:Zv,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=de("dropdown"),{role:o}=xe(ni,void 0),{collectionItemRef:a}=xe(kue,void 0),{collectionItemRef:l}=xe(oue,void 0),{rovingFocusGroupItemRef:s,tabIndex:i,handleFocus:u,handleKeydown:c,handleMousedown:f}=xe(Xv,void 0),d=Rs(a,l,s),p=C(()=>o.value==="menu"?"menuitem":o.value==="navigation"?"link":"button"),h=Vt(m=>{const{code:v}=m;if(v===Oe.enter||v===Oe.space)return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},c);return{ns:n,itemRef:d,dataset:{[Yv]:""},role:p,tabIndex:i,handleFocus:u,handleKeydown:h,handleMousedown:f}}}),zue=["aria-disabled","tabindex","role"];function Oue(e,t,n,o,a,l){const s=Ue("el-icon");return g(),S(Ie,null,[e.divided?(g(),S("li",lt({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):J("v-if",!0),k("li",lt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=Be((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon?(g(),ne(s,{key:0},{default:X(()=>[(g(),ne(ot(e.icon)))]),_:1})):J("v-if",!0),se(e.$slots,"default")],16,zue)],64)}var Aue=ge(Tue,[["render",Oue],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const Qv=()=>{const e=xe("elDropdown",{}),t=C(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Nue=U({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Cue,ElRovingFocusItem:gue,ElDropdownItemImpl:Aue},inheritAttrs:!1,props:Zv,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=Qv(),a=Ze(),l=A(null),s=C(()=>{var h,m;return(m=(h=r(l))==null?void 0:h.textContent)!=null?m:""}),{onItemEnter:i,onItemLeave:u}=xe(ni,void 0),c=Vt(h=>(t("pointermove",h),h.defaultPrevented),e0(h=>{if(e.disabled){u(h);return}const m=h.currentTarget;m===document.activeElement||m.contains(document.activeElement)||(i(h),h.defaultPrevented||m==null||m.focus())})),f=Vt(h=>(t("pointerleave",h),h.defaultPrevented),e0(h=>{u(h)})),d=Vt(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var m,v,_;if(e.disabled){h.stopImmediatePropagation();return}(m=o==null?void 0:o.hideOnClick)!=null&&m.value&&((v=o.handleClick)==null||v.call(o)),(_=o.commandHandler)==null||_.call(o,e.command,a,h)}),p=C(()=>({...e,...n}));return{handleClick:d,handlePointerMove:c,handlePointerLeave:f,textContent:s,propsAndAttrs:p}}});function Iue(e,t,n,o,a,l){var s;const i=Ue("el-dropdown-item-impl"),u=Ue("el-roving-focus-item"),c=Ue("el-dropdown-collection-item");return g(),ne(c,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:X(()=>[j(u,{focusable:!e.disabled},{default:X(()=>[j(i,lt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:X(()=>[se(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var eh=ge(Nue,[["render",Iue],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Vue=U({name:"ElDropdownMenu",props:_ue,setup(e){const t=de("dropdown"),{_elDropdownSize:n}=Qv(),o=n.value,{focusTrapRef:a,onKeydown:l}=xe(Pc,void 0),{contentRef:s,role:i,triggerId:u}=xe(ni,void 0),{collectionRef:c,getItems:f}=xe($ue,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:p,tabIndex:h,onBlur:m,onFocus:v,onMousedown:_}=xe(Xc,void 0),{collectionRef:y}=xe(Gc,void 0),$=C(()=>[t.b("menu"),t.bm("menu",o==null?void 0:o.value)]),b=Rs(s,c,a,d,y),w=Vt(M=>{var O;(O=e.onKeydown)==null||O.call(e,M)},M=>{const{currentTarget:O,code:T,target:V}=M;if(O.contains(V),Oe.tab===T&&M.stopImmediatePropagation(),M.preventDefault(),V!==r(s)||!bue.includes(T))return;const H=f().filter(P=>!P.disabled).map(P=>P.ref);Jv.includes(T)&&H.reverse(),Zc(H)});return{size:o,rovingFocusGroupRootStyle:p,tabIndex:h,dropdownKls:$,role:i,triggerId:u,dropdownListWrapperRef:b,handleKeydown:M=>{w(M),l(M)},onBlur:m,onFocus:v,onMousedown:_}}}),Lue=["role","aria-labelledby"];function Hue(e,t,n,o,a,l){return g(),S("ul",{ref:e.dropdownListWrapperRef,class:E(e.dropdownKls),style:ze(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...s)=>e.onBlur&&e.onBlur(...s)),onFocus:t[1]||(t[1]=(...s)=>e.onFocus&&e.onFocus(...s)),onKeydown:t[2]||(t[2]=Be((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=Be((...s)=>e.onMousedown&&e.onMousedown(...s),["self"]))},[se(e.$slots,"default")],46,Lue)}var th=ge(Vue,[["render",Hue],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Pue=Qe(xue,{DropdownItem:eh,DropdownMenu:th}),Bue=Lt(eh),Rue=Lt(th),Due={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Fue=["id"],Kue=["stop-color"],Wue=["stop-color"],jue=["id"],que=["stop-color"],Uue=["stop-color"],Yue=["id"],Gue={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Xue={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},Zue={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},Jue=["fill"],Que=["fill"],ece={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},tce=["fill"],nce=["fill"],oce=["fill"],ace=["fill"],lce=["fill"],rce={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},sce=["fill","xlink:href"],ice=["fill","mask"],uce=["fill"],cce=U({name:"ImgEmpty"}),dce=U({...cce,setup(e){const t=de("empty"),n=Dn();return(o,a)=>(g(),S("svg",Due,[k("defs",null,[k("linearGradient",{id:`linearGradient-1-${r(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[k("stop",{"stop-color":`var(${r(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Kue),k("stop",{"stop-color":`var(${r(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,Wue)],8,Fue),k("linearGradient",{id:`linearGradient-2-${r(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[k("stop",{"stop-color":`var(${r(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,que),k("stop",{"stop-color":`var(${r(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,Uue)],8,jue),k("rect",{id:`path-3-${r(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,Yue)]),k("g",Gue,[k("g",Xue,[k("g",Zue,[k("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${r(t).cssVarBlockName("fill-color-3")})`},null,8,Jue),k("polygon",{id:"Rectangle-Copy-14",fill:`var(${r(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,Que),k("g",ece,[k("polygon",{id:"Rectangle-Copy-10",fill:`var(${r(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,tce),k("polygon",{id:"Rectangle-Copy-11",fill:`var(${r(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,nce),k("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${r(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,oce),k("polygon",{id:"Rectangle-Copy-13",fill:`var(${r(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,ace)]),k("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${r(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,lce),k("g",rce,[k("use",{id:"Mask",fill:`var(${r(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${r(n)}`},null,8,sce),k("polygon",{id:"Rectangle-Copy",fill:`var(${r(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${r(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,ice)]),k("polygon",{id:"Rectangle-Copy-18",fill:`var(${r(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,uce)])])])]))}});var fce=ge(dce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const pce=_e({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),vce=["src"],hce={key:1},mce=U({name:"ElEmpty"}),gce=U({...mce,props:pce,setup(e){const t=e,{t:n}=ht(),o=de("empty"),a=C(()=>t.description||n("el.table.emptyText")),l=C(()=>({width:Pt(t.imageSize)}));return(s,i)=>(g(),S("div",{class:E(r(o).b())},[k("div",{class:E(r(o).e("image")),style:ze(r(l))},[s.image?(g(),S("img",{key:0,src:s.image,ondragstart:"return false"},null,8,vce)):se(s.$slots,"image",{key:1},()=>[j(fce)])],6),k("div",{class:E(r(o).e("description"))},[s.$slots.description?se(s.$slots,"description",{key:0}):(g(),S("p",hce,me(r(a)),1))],2),s.$slots.default?(g(),S("div",{key:0,class:E(r(o).e("bottom"))},[se(s.$slots,"default")],2)):J("v-if",!0)],2))}});var _ce=ge(gce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const nh=Qe(_ce),yce=_e({urlList:{type:ee(Array),default:()=>zt([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),bce={close:()=>!0,switch:e=>Re(e)},wce=["src"],Cce=U({name:"ElImageViewer"}),$ce=U({...Cce,props:yce,emits:bce,setup(e,{expose:t,emit:n}){const o=e,a={CONTAIN:{name:"contain",icon:yl(u1)},ORIGINAL:{name:"original",icon:yl(g1)}},{t:l}=ht(),s=de("image-viewer"),{nextZIndex:i}=ll(),u=A(),c=A([]),f=N4(),d=A(!0),p=A(o.initialIndex),h=Mt(a.CONTAIN),m=A({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=C(()=>{const{urlList:z}=o;return z.length<=1}),_=C(()=>p.value===0),y=C(()=>p.value===o.urlList.length-1),$=C(()=>o.urlList[p.value]),b=C(()=>[s.e("btn"),s.e("prev"),s.is("disabled",!o.infinite&&_.value)]),w=C(()=>[s.e("btn"),s.e("next"),s.is("disabled",!o.infinite&&y.value)]),x=C(()=>{const{scale:z,deg:D,offsetX:G,offsetY:K,enableTransition:Z}=m.value;let le=G/z,he=K/z;switch(D%360){case 90:case-270:[le,he]=[he,-le];break;case 180:case-180:[le,he]=[-le,-he];break;case 270:case-90:[le,he]=[-he,le];break}const ae={transform:`scale(${z}) rotate(${D}deg) translate(${le}px, ${he}px)`,transition:Z?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(ae.maxWidth=ae.maxHeight="100%"),ae}),M=C(()=>Re(o.zIndex)?o.zIndex:i());function O(){V(),n("close")}function T(){const z=la(G=>{switch(G.code){case Oe.esc:o.closeOnPressEscape&&O();break;case Oe.space:B();break;case Oe.left:F();break;case Oe.up:R("zoomIn");break;case Oe.right:I();break;case Oe.down:R("zoomOut");break}}),D=la(G=>{const K=G.deltaY||G.deltaX;R(K<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});f.run(()=>{xt(document,"keydown",z),xt(document,"wheel",D)})}function V(){f.stop()}function L(){d.value=!1}function H(z){d.value=!1,z.target.alt=l("el.image.error")}function P(z){if(d.value||z.button!==0||!u.value)return;m.value.enableTransition=!1;const{offsetX:D,offsetY:G}=m.value,K=z.pageX,Z=z.pageY,le=la(ae=>{m.value={...m.value,offsetX:D+ae.pageX-K,offsetY:G+ae.pageY-Z}}),he=xt(document,"mousemove",le);xt(document,"mouseup",()=>{he()}),z.preventDefault()}function N(){m.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function B(){if(d.value)return;const z=Bl(a),D=Object.values(a),G=h.value.name,Z=(D.findIndex(le=>le.name===G)+1)%z.length;h.value=a[z[Z]],N()}function W(z){const D=o.urlList.length;p.value=(z+D)%D}function F(){_.value&&!o.infinite||W(p.value-1)}function I(){y.value&&!o.infinite||W(p.value+1)}function R(z,D={}){if(d.value)return;const{zoomRate:G,rotateDeg:K,enableTransition:Z}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...D};switch(z){case"zoomOut":m.value.scale>.2&&(m.value.scale=Number.parseFloat((m.value.scale/G).toFixed(3)));break;case"zoomIn":m.value.scale<7&&(m.value.scale=Number.parseFloat((m.value.scale*G).toFixed(3)));break;case"clockwise":m.value.deg+=K;break;case"anticlockwise":m.value.deg-=K;break}m.value.enableTransition=Z}return ce($,()=>{Ee(()=>{const z=c.value[0];z!=null&&z.complete||(d.value=!0)})}),ce(p,z=>{N(),n("switch",z)}),Je(()=>{var z,D;T(),(D=(z=u.value)==null?void 0:z.focus)==null||D.call(z)}),t({setActiveItem:W}),(z,D)=>(g(),ne(or,{to:"body",disabled:!z.teleported},[j(Wt,{name:"viewer-fade",appear:""},{default:X(()=>[k("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:E(r(s).e("wrapper")),style:ze({zIndex:r(M)})},[k("div",{class:E(r(s).e("mask")),onClick:D[0]||(D[0]=Be(G=>z.hideOnClickModal&&O(),["self"]))},null,2),J(" CLOSE "),k("span",{class:E([r(s).e("btn"),r(s).e("close")]),onClick:O},[j(r(Se),null,{default:X(()=>[j(r(Pn))]),_:1})],2),J(" ARROW "),r(v)?J("v-if",!0):(g(),S(Ie,{key:0},[k("span",{class:E(r(b)),onClick:F},[j(r(Se),null,{default:X(()=>[j(r(Co))]),_:1})],2),k("span",{class:E(r(w)),onClick:I},[j(r(Se),null,{default:X(()=>[j(r(sn))]),_:1})],2)],64)),J(" ACTIONS "),k("div",{class:E([r(s).e("btn"),r(s).e("actions")])},[k("div",{class:E(r(s).e("actions__inner"))},[j(r(Se),{onClick:D[1]||(D[1]=G=>R("zoomOut"))},{default:X(()=>[j(r($1))]),_:1}),j(r(Se),{onClick:D[2]||(D[2]=G=>R("zoomIn"))},{default:X(()=>[j(r(mc))]),_:1}),k("i",{class:E(r(s).e("actions__divider"))},null,2),j(r(Se),{onClick:B},{default:X(()=>[(g(),ne(ot(r(h).icon)))]),_:1}),k("i",{class:E(r(s).e("actions__divider"))},null,2),j(r(Se),{onClick:D[3]||(D[3]=G=>R("anticlockwise"))},{default:X(()=>[j(r(h1))]),_:1}),j(r(Se),{onClick:D[4]||(D[4]=G=>R("clockwise"))},{default:X(()=>[j(r(m1))]),_:1})],2)],2),J(" CANVAS "),k("div",{class:E(r(s).e("canvas"))},[(g(!0),S(Ie,null,ft(z.urlList,(G,K)=>Ye((g(),S("img",{ref_for:!0,ref:Z=>c.value[K]=Z,key:G,src:G,style:ze(r(x)),class:E(r(s).e("img")),onLoad:L,onError:H,onMousedown:P},null,46,wce)),[[mt,K===p.value]])),128))],2),se(z.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var kce=ge($ce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const oh=Qe(kce),Sce=_e({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:ee([String,Object])},previewSrcList:{type:ee(Array),default:()=>zt([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),Mce={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Re(e),close:()=>!0,show:()=>!0},Ece=["src","loading"],xce={key:0},Tce=U({name:"ElImage",inheritAttrs:!1}),zce=U({...Tce,props:Sce,emits:Mce,setup(e,{emit:t}){const n=e;let o="";const{t:a}=ht(),l=de("image"),s=ha(),i=yc(),u=A(),c=A(!1),f=A(!0),d=A(!1),p=A(),h=A(),m=pt&&"loading"in HTMLImageElement.prototype;let v,_;const y=C(()=>[l.e("inner"),w.value&&l.e("preview"),f.value&&l.is("loading")]),$=C(()=>s.style),b=C(()=>{const{fit:R}=n;return pt&&R?{objectFit:R}:{}}),w=C(()=>{const{previewSrcList:R}=n;return Array.isArray(R)&&R.length>0}),x=C(()=>{const{previewSrcList:R,initialIndex:z}=n;let D=z;return z>R.length-1&&(D=0),D}),M=C(()=>n.loading==="eager"?!1:!m&&n.loading==="lazy"||n.lazy),O=()=>{pt&&(f.value=!0,c.value=!1,u.value=n.src)};function T(R){f.value=!1,c.value=!1,t("load",R)}function V(R){f.value=!1,c.value=!0,t("error",R)}function L(){by(p.value,h.value)&&(O(),N())}const H=Zf(L,200,!0);async function P(){var R;if(!pt)return;await Ee();const{scrollContainer:z}=n;Hn(z)?h.value=z:ct(z)&&z!==""?h.value=(R=document.querySelector(z))!=null?R:void 0:p.value&&(h.value=dc(p.value)),h.value&&(v=xt(h,"scroll",H),setTimeout(()=>L(),100))}function N(){!pt||!h.value||!H||(v==null||v(),h.value=void 0)}function B(R){if(R.ctrlKey){if(R.deltaY<0)return R.preventDefault(),!1;if(R.deltaY>0)return R.preventDefault(),!1}}function W(){w.value&&(_=xt("wheel",B,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,t("show"))}function F(){_==null||_(),document.body.style.overflow=o,d.value=!1,t("close")}function I(R){t("switch",R)}return ce(()=>n.src,()=>{M.value?(f.value=!0,c.value=!1,N(),P()):O()}),Je(()=>{M.value?P():O()}),(R,z)=>(g(),S("div",{ref_key:"container",ref:p,class:E([r(l).b(),R.$attrs.class]),style:ze(r($))},[c.value?se(R.$slots,"error",{key:0},()=>[k("div",{class:E(r(l).e("error"))},me(r(a)("el.image.error")),3)]):(g(),S(Ie,{key:1},[u.value!==void 0?(g(),S("img",lt({key:0},r(i),{src:u.value,loading:R.loading,style:r(b),class:r(y),onClick:W,onLoad:T,onError:V}),null,16,Ece)):J("v-if",!0),f.value?(g(),S("div",{key:1,class:E(r(l).e("wrapper"))},[se(R.$slots,"placeholder",{},()=>[k("div",{class:E(r(l).e("placeholder"))},null,2)])],2)):J("v-if",!0)],64)),r(w)?(g(),S(Ie,{key:2},[d.value?(g(),ne(r(oh),{key:0,"z-index":R.zIndex,"initial-index":r(x),infinite:R.infinite,"zoom-rate":R.zoomRate,"url-list":R.previewSrcList,"hide-on-click-modal":R.hideOnClickModal,teleported:R.previewTeleported,"close-on-press-escape":R.closeOnPressEscape,onClose:F,onSwitch:I},{default:X(()=>[R.$slots.viewer?(g(),S("div",xce,[se(R.$slots,"viewer")])):J("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):J("v-if",!0)],64)):J("v-if",!0)],6))}});var Oce=ge(zce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const Ace=Qe(Oce),Nce=_e({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:ln,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Re(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),Ice={[Et]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[fn]:e=>Re(e)||Ft(e),[tt]:e=>Re(e)||Ft(e)},Vce=["aria-label","onKeydown"],Lce=["aria-label","onKeydown"],Hce=U({name:"ElInputNumber"}),Pce=U({...Hce,props:Nce,emits:Ice,setup(e,{expose:t,emit:n}){const o=e,{t:a}=ht(),l=de("input-number"),s=A(),i=Ct({currentValue:o.modelValue,userInput:null}),{formItem:u}=gn(),c=C(()=>Re(o.modelValue)&&o.modelValue<=o.min),f=C(()=>Re(o.modelValue)&&o.modelValue>=o.max),d=C(()=>{const N=y(o.step);return Xt(o.precision)?Math.max(y(o.modelValue),N):(N>o.precision,o.precision)}),p=C(()=>o.controls&&o.controlsPosition==="right"),h=qt(),m=Sn(),v=C(()=>{if(i.userInput!==null)return i.userInput;let N=i.currentValue;if(Ft(N))return"";if(Re(N)){if(Number.isNaN(N))return"";Xt(o.precision)||(N=N.toFixed(o.precision))}return N}),_=(N,B)=>{if(Xt(B)&&(B=d.value),B===0)return Math.round(N);let W=String(N);const F=W.indexOf(".");if(F===-1||!W.replace(".","").split("")[F+B])return N;const z=W.length;return W.charAt(z-1)==="5"&&(W=`${W.slice(0,Math.max(0,z-1))}6`),Number.parseFloat(Number(W).toFixed(B))},y=N=>{if(Ft(N))return 0;const B=N.toString(),W=B.indexOf(".");let F=0;return W!==-1&&(F=B.length-W-1),F},$=(N,B=1)=>Re(N)?_(N+o.step*B):i.currentValue,b=()=>{if(o.readonly||m.value||f.value)return;const N=Number(v.value)||0,B=$(N);M(B),n(fn,i.currentValue)},w=()=>{if(o.readonly||m.value||c.value)return;const N=Number(v.value)||0,B=$(N,-1);M(B),n(fn,i.currentValue)},x=(N,B)=>{const{max:W,min:F,step:I,precision:R,stepStrictly:z,valueOnClear:D}=o;W w2e(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:a,total:l,layout:s,width:i}=e,u=Jl(s)?i:a,c=Aa(e,t,o),f=n+u;let d=c.offset+c.size,p=t;for(;p {const o=go(e,t,n,"column");return[o.size,o.offset]},getRowPosition:(e,t,n)=>{const o=go(e,t,n,"row");return[o.size,o.offset]},getColumnOffset:(e,t,n,o,a,l)=>A2(e,t,n,o,a,"column",l),getRowOffset:(e,t,n,o,a,l)=>A2(e,t,n,o,a,"row",l),getColumnStartIndexForOffset:(e,t,n)=>O2(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,o)=>{const a=go(e,t,o,"column"),l=n+e.width;let s=a.offset+a.size,i=t;for(;i =e.length&&(e=void 0),{value:e&&e[c++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=b("../lib/dom"),a=b("./mouse_event").MouseEvent,l=b("../tooltip").HoverTooltip,r=b("../config").nls,o=b("../range").Range;function i(e){var t=e.editor,s=t.renderer.$gutterLayer;e.$tooltip=new n(t),e.$tooltip.addToEditor(t),e.$tooltip.setDataProvider(function(c,u){var p=c.getDocumentPosition().row;e.$tooltip.showTooltip(p)}),e.editor.setDefaultHandler("guttermousedown",function(c){if(!(!t.isFocused()||c.getButton()!=0)){var u=s.getRegion(c);if(u!="foldWidgets"){var p=c.getDocumentPosition().row,v=t.session.selection;if(c.getShiftKey())v.selectTo(p,0);else{if(c.domEvent.detail==2)return t.selectAll(),c.preventDefault();e.$clickSelection=t.selection.getLineRange(p)}return e.setState("selectByLines"),e.captureMouse(c),c.preventDefault()}}})}k.GutterHandler=i;var n=function(e){A(t,e);function t(s){var c=e.call(this,s.container)||this;c.id="gt"+ ++t.$uid,c.editor=s,c.visibleTooltipRow;var u=c.getElement();return u.setAttribute("role","tooltip"),u.setAttribute("id",c.id),u.style.pointerEvents="auto",c.idleTime=50,c.onDomMouseMove=c.onDomMouseMove.bind(c),c.onDomMouseOut=c.onDomMouseOut.bind(c),c.setClassName("ace_gutter-tooltip"),c}return t.prototype.onDomMouseMove=function(s){var c=new a(s,this.editor);this.onMouseMove(c,this.editor)},t.prototype.onDomMouseOut=function(s){var c=new a(s,this.editor);this.onMouseOut(c)},t.prototype.addToEditor=function(s){var c=s.renderer.$gutter;c.addEventListener("mousemove",this.onDomMouseMove),c.addEventListener("mouseout",this.onDomMouseOut),e.prototype.addToEditor.call(this,s)},t.prototype.removeFromEditor=function(s){var c=s.renderer.$gutter;c.removeEventListener("mousemove",this.onDomMouseMove),c.removeEventListener("mouseout",this.onDomMouseOut),e.prototype.removeFromEditor.call(this,s)},t.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),e.prototype.destroy.call(this)},Object.defineProperty(t,"annotationLabels",{get:function(){return{error:{singular:r("gutter-tooltip.aria-label.error.singular","error"),plural:r("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:r("gutter-tooltip.aria-label.security.singular","security finding"),plural:r("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:r("gutter-tooltip.aria-label.warning.singular","warning"),plural:r("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:r("gutter-tooltip.aria-label.info.singular","information message"),plural:r("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:r("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:r("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),t.prototype.showTooltip=function(s){var c,u=this.editor.renderer.$gutterLayer,p=u.$annotations[s],v;p?v={displayText:Array.from(p.displayText),type:Array.from(p.type)}:v={displayText:[],type:[]};var f=u.session.getFoldLine(s);if(f&&u.$showFoldedAnnotations){for(var d={error:[],security:[],warning:[],info:[],hint:[]},$={error:1,security:2,warning:3,info:4,hint:5},L,S=s+1;S<=f.end.row;S++)if(u.$annotations[S])for(var M=0;M M||(c.push(f=new m(d,M,d+p-1,R)),p>2&&(d=d+p-2))}}else for(var C,w=0;w =c;d++){var $=n.getLine(f--);u=u==null?$:$+`
+`+u}var L=r(u,e,v);if(L){var S=u.slice(0,L.index).split(`
+`),M=L[0].split(`
+`),R=f+S.length,C=S[S.length-1].length,w=R+M.length-1,g=M.length==1?C+M[0].length:M[M.length-1].length;return{startRow:R,startCol:C,endRow:w,endCol:g}}}return null},i.prototype.$matchIterator=function(n,e){var t=this.$assembleRegExp(e);if(!t)return!1;var s=this.$isMultilineSearch(e),c=this.$multiLineForward,u=this.$multiLineBackward,p=e.backwards==!0,v=e.skipCurrent!=!1,f=t.unicode,d=e.range,$=e.start;$||($=d?d[p?"end":"start"]:n.selection.getRange()),$.start&&($=$[v!=p?"end":"start"]);var L=d?d.start.row:0,S=d?d.end.row:n.getLength()-1;if(p)var M=function(w){var g=$.row;if(!C(g,$.column,w)){for(g--;g>=L;g--)if(C(g,Number.MAX_VALUE,w))return;if(e.wrap!=!1){for(g=S,L=$.row;g>=L;g--)if(C(g,Number.MAX_VALUE,w))return}}};else var M=function(g){var h=$.row;if(!C(h,$.column,g)){for(h=h+1;h<=S;h++)if(C(h,0,g))return;if(e.wrap!=!1){for(h=L,S=$.row;h<=S;h++)if(C(h,0,g))return}}};if(e.$isMultiLine)var R=t.length,C=function(w,g,h){var y=p?w-R+1:w;if(!(y<0||y+R>n.getLength())){var _=n.getLine(y),T=_.search(t[0]);if(!(!p&&Tu.level-i.level),l=Object.create(null),s=Object.keys(o);a.forEach(i=>i.setChecked(!1,!1));for(let i=0,u=a.length;i0;)l[p.data[t]]=!0,p=p.parent;if(c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const h=function(m){m.childNodes.forEach(_=>{_.isLeaf||_.setChecked(!1,!1),h(_)})};h(c)}}}setCheckedNodes(t,n=!1){const o=this.key,a={};t.forEach(l=>{a[(l||{})[o]]=!0}),this._setCheckedKeys(o,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const o=this.key,a={};t.forEach(l=>{a[l]=!0}),this._setCheckedKeys(o,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const o=this.getNode(n);o&&o.expand(null,this.autoExpandParent)})}setChecked(t,n,o){const a=this.getNode(t);a&&a.setChecked(!!n,o)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const o=t[this.key],a=this.nodesMap[o];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const o=this.getNode(t);o&&(this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const Phe=U({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=de("tree"),n=xe("NodeInstance"),o=xe("RootTree");return()=>{const a=e.node,{data:l,store:s}=a;return e.renderContent?e.renderContent(Ae,{_self:n,node:a,data:l,store:s}):o.ctx.slots.default?o.ctx.slots.default({node:a,data:l}):Ae("span",{class:t.be("node","label")},[a.label])}}});var Bhe=ge(Phe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function r4(e){const t=xe("TreeNodeMap",null),n={treeNodeExpand:o=>{e.node!==o&&e.node.collapse()},children:[]};return t&&t.children.push(n),dt("TreeNodeMap",n),{broadcastExpanded:o=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(o)}}}const s4=Symbol("dragEvents");function Rhe({props:e,ctx:t,el$:n,dropIndicator$:o,store:a}){const l=de("tree"),s=A({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return dt(s4,{treeNodeDragStart:({event:f,treeNode:d})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(d.node))return f.preventDefault(),!1;f.dataTransfer.effectAllowed="move";try{f.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=d,t.emit("node-drag-start",d.node,f)},treeNodeDragOver:({event:f,treeNode:d})=>{const p=d,h=s.value.dropNode;h&&h.node.id!==p.node.id&&Cn(h.$el,l.is("drop-inner"));const m=s.value.draggingNode;if(!m||!p)return;let v=!0,_=!0,y=!0,$=!0;typeof e.allowDrop=="function"&&(v=e.allowDrop(m.node,p.node,"prev"),$=_=e.allowDrop(m.node,p.node,"inner"),y=e.allowDrop(m.node,p.node,"next")),f.dataTransfer.dropEffect=_||v||y?"move":"none",(v||_||y)&&(h==null?void 0:h.node.id)!==p.node.id&&(h&&t.emit("node-drag-leave",m.node,h.node,f),t.emit("node-drag-enter",m.node,p.node,f)),(v||_||y)&&(s.value.dropNode=p),p.node.nextSibling===m.node&&(y=!1),p.node.previousSibling===m.node&&(v=!1),p.node.contains(m.node,!1)&&(_=!1),(m.node===p.node||m.node.contains(p.node))&&(v=!1,_=!1,y=!1);const b=p.$el.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),w=n.value.getBoundingClientRect();let x;const M=v?_?.25:y?.45:1:-1,O=y?_?.75:v?.55:0:1;let T=-9999;const V=f.clientY-b.top;V0;)if(s=n[r],t===s.toLowerCase())return s;return null}const st=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ot=e=>!q(e)&&e!==st;function pe(){const{caseless:e}=ot(this)&&this||{},t={},n=(r,s)=>{const o=e&&rt(t,s)||s;X(t[o])&&X(r)?t[o]=pe(t[o],r):X(r)?t[o]=pe({},r):H(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(J(t,(s,o)=>{n&&O(s)?e[o]=et(s,n):e[o]=s},{allOwnKeys:r}),e),Cn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Pn=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Se(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Dn=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!nt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Nn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Se(Uint8Array)),Bn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Fn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ln=P("HTMLFormElement"),In=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ne=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vn=P("RegExp"),it=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(s,o)=>{t(s,o,e)!==!1&&(r[o]=s)}),Object.defineProperties(e,r)},Mn=e=>{it(e,(t,n)=>{if(O(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(O(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Un=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return H(e)?r(e):r(String(e).split(t)),n},zn=()=>{},Hn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ue="abcdefghijklmnopqrstuvwxyz",Be="0123456789",at={DIGIT:Be,ALPHA:ue,ALPHA_DIGIT:ue+ue.toUpperCase()+Be},jn=(e=16,t=at.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function qn(e){return!!(e&&O(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Jn=e=>{const t=new Array(10),n=(r,s)=>{if(oe(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=H(r)?[]:{};return J(r,(i,l)=>{const p=n(i,s+1);!q(p)&&(o[l]=p)}),t[s]=void 0,o}}return r};return n(e,0)},$n=P("AsyncFunction"),Wn=e=>e&&(oe(e)||O(e))&&O(e.then)&&O(e.catch),c={isArray:H,isArrayBuffer:tt,isBuffer:hn,isFormData:An,isArrayBufferView:En,isString:gn,isNumber:nt,isBoolean:yn,isObject:oe,isPlainObject:X,isUndefined:q,isDate:wn,isFile:bn,isBlob:vn,isRegExp:Vn,isFunction:O,isStream:_n,isURLSearchParams:Tn,isTypedArray:Nn,isFileList:Sn,forEach:J,merge:pe,extend:Rn,trim:On,stripBOM:Cn,inherits:xn,toFlatObject:Pn,kindOf:re,kindOfTest:P,endsWith:kn,toArray:Dn,forEachEntry:Bn,matchAll:Fn,isHTMLForm:Ln,hasOwnProperty:Ne,hasOwnProp:Ne,reduceDescriptors:it,freezeMethods:Mn,toObjectSet:Un,toCamelCase:In,noop:zn,toFiniteNumber:Hn,findKey:rt,global:st,isContextDefined:ot,ALPHABET:at,generateString:jn,isSpecCompliantForm:qn,toJSONObject:Jn,isAsyncFn:$n,isThenable:Wn};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ct=y.prototype,ut={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ut[e]={value:e}});Object.defineProperties(y,ut);Object.defineProperty(ct,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(ct);return c.toFlatObject(e,i,function(p){return p!==Error.prototype},l=>l!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Gn=null;function he(e){return c.isPlainObject(e)||c.isArray(e)}function lt(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Fe(e,t,n){return e?e.concat(t).map(function(s,o){return s=lt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Kn(e){return c.isArray(e)&&!e.some(he)}const Xn=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,E){return!c.isUndefined(E[d])});const r=n.metaTokens,s=n.visitor||m,o=n.dots,i=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function u(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!p&&c.isBlob(a))throw new y("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?p&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function m(a,d,E){let w=a;if(a&&!E&&typeof a=="object"){if(c.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&Kn(a)||(c.isFileList(a)||c.endsWith(d,"[]"))&&(w=c.toArray(a)))return d=lt(d),w.forEach(function(A,b){!(c.isUndefined(A)||A===null)&&t.append(i===!0?Fe([d],b,o):i===null?d:d+"[]",u(A))}),!1}return he(a)?!0:(t.append(Fe(E,d,o),u(a)),!1)}const f=[],h=Object.assign(Xn,{defaultVisitor:m,convertValue:u,isVisitable:he});function g(a,d){if(!c.isUndefined(a)){if(f.indexOf(a)!==-1)throw Error("Circular reference detected in "+d.join("."));f.push(a),c.forEach(a,function(w,_){(!(c.isUndefined(w)||w===null)&&s.call(t,w,c.isString(_)?_.trim():_,d,h))===!0&&g(w,d?d.concat(_):[_])}),f.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Le(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _e(e,t){this._pairs=[],e&&ie(e,this,t)}const dt=_e.prototype;dt.append=function(t,n){this._pairs.push([t,n])};dt.toString=function(t){const n=t?function(r){return t.call(this,r,Le)}:Le;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Yn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ft(e,t,n){if(!t)return e;const r=n&&n.encode||Yn,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new _e(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Zn{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ie=Zn,mt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qn=typeof URLSearchParams<"u"?URLSearchParams:_e,er=typeof FormData<"u"?FormData:null,tr=typeof Blob<"u"?Blob:null,nr=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),rr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),x={isBrowser:!0,classes:{URLSearchParams:Qn,FormData:er,Blob:tr},isStandardBrowserEnv:nr,isStandardBrowserWebWorkerEnv:rr,protocols:["http","https","file","blob","url","data"]};function sr(e,t){return ie(e,new x.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return x.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function or(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ir(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,p?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=ir(s[i])),!l)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(or(r),s,n,0)}),n}return null}const ar={"Content-Type":void 0};function cr(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ae={transitional:mt,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s&&s?JSON.stringify(pt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return sr(t,this.formSerializer).toString();if((l=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return ie(l?{"files[]":t}:t,p&&new p,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),cr(t)):t}],transformResponse:[function(t){const n=this.transitional||ae.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?y.from(l,y.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};c.forEach(["delete","get","head"],function(t){ae.headers[t]={}});c.forEach(["post","put","patch"],function(t){ae.headers[t]=c.merge(ar)});const Ae=ae,ur=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lr=e=>{const t={};let n,r,s;return e&&e.split(`
+`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&ur[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ve=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function Y(e){return e===!1||e==null?e:c.isArray(e)?e.map(Y):String(e)}function dr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const fr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function le(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function mr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function pr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class ce{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,p,u){const m=j(p);if(!m)throw new Error("header name must be a non-empty string");const f=c.findKey(s,m);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||p]=Y(l))}const i=(l,p)=>c.forEach(l,(u,m)=>o(u,m,p));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!fr(t)?i(lr(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=j(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return dr(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||le(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const l=c.findKey(r,i);l&&(!n||le(r,r[l],l,n))&&(delete r[l],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||le(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=Y(s),delete n[o];return}const l=t?mr(o):String(o).trim();l!==o&&delete n[o],n[l]=Y(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
+`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ve]=this[Ve]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=j(i);r[l]||(pr(s,i),r[l]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}}ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.freezeMethods(ce.prototype);c.freezeMethods(ce);const N=ce;function de(e,t){const n=this||Ae,r=t||n,s=N.from(r.headers);let o=r.data;return c.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ht(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits($,y,{__CANCEL__:!0});function hr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Er=x.isStandardBrowserEnv?function(){return{write:function(n,r,s,o,i,l){const p=[];p.push(n+"="+encodeURIComponent(r)),c.isNumber(s)&&p.push("expires="+new Date(s).toGMTString()),c.isString(o)&&p.push("path="+o),c.isString(i)&&p.push("domain="+i),l===!0&&p.push("secure"),document.cookie=p.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function gr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yr(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Et(e,t){return e&&!gr(t)?yr(e,t):t}const wr=x.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const l=c.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function br(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(p){const u=Date.now(),m=r[o];i||(i=u),n[s]=p,r[s]=u;let f=o,h=0;for(;f!==s;)h+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-ia.length)&&(m=a.length),m-=x.length;var l=a.indexOf(x,m);return l!==-1&&l===m}),String.prototype.repeat||A(String.prototype,"repeat",function(x){for(var m="",a=this;x>0;)x&1&&(m+=a),(x>>=1)&&(a+=a);return m}),String.prototype.includes||A(String.prototype,"includes",function(x,m){return this.indexOf(x,m)!=-1}),Object.assign||(Object.assign=function(x){if(x==null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(x),a=1;a0&&/^\s*$/.test(e));i=e.length,/\s+$/.test(e)||(e="")}var t=x.stringReverse(e),s=this.$shortWordEndIndex(t);return this.moveCursorTo(o,i-s)},r.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},r.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},r.prototype.moveCursorBy=function(o,i){var n=this.session.documentToScreenPosition(this.lead.row,this.lead.column),e;if(i===0&&(o!==0&&(this.session.$bidiHandler.isBidiRow(n.row,this.lead.row)?(e=this.session.$bidiHandler.getPosLeft(n.column),n.column=Math.round(e/this.session.$bidiHandler.charWidths[0])):e=n.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column),o!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var t=this.session.lineWidgets[this.lead.row];o<0?o-=t.rowsAbove||0:o>0&&(o+=t.rowCount-(t.rowsAbove||0))}var s=this.session.screenToDocumentPosition(n.row+o,n.column,e);o!==0&&i===0&&s.row===this.lead.row&&(s.column,this.lead.column),this.moveCursorTo(s.row,s.column+i,i===0)},r.prototype.moveCursorToPosition=function(o){this.moveCursorTo(o.row,o.column)},r.prototype.moveCursorTo=function(o,i,n){var e=this.session.getFoldAt(o,i,1);e&&(o=e.start.row,i=e.start.column),this.$keepDesiredColumnOnChange=!0;var t=this.session.getLine(o);/[\uDC00-\uDFFF]/.test(t.charAt(i))&&t.charAt(i-1)&&(this.lead.row==o&&this.lead.column==i+1?i=i-1:i=i+1),this.lead.setPosition(o,i),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},r.prototype.moveCursorToScreen=function(o,i,n){var e=this.session.screenToDocumentPosition(o,i);this.moveCursorTo(e.row,e.column,n)},r.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},r.prototype.fromOrientedRange=function(o){this.setSelectionRange(o,o.cursor==o.start),this.$desiredColumn=o.desiredColumn||this.$desiredColumn},r.prototype.toOrientedRange=function(o){var i=this.getRange();return o?(o.start.column=i.start.column,o.start.row=i.start.row,o.end.column=i.end.column,o.end.row=i.end.row):o=i,o.cursor=this.isBackwards()?o.start:o.end,o.desiredColumn=this.$desiredColumn,o},r.prototype.getRangeOfMovements=function(o){var i=this.getCursor();try{o(this);var n=this.getCursor();return a.fromPoints(i,n)}catch{return a.fromPoints(i,i)}finally{this.moveCursorToPosition(i)}},r.prototype.toJSON=function(){if(this.rangeCount)var o=this.ranges.map(function(i){var n=i.clone();return n.isBackwards=i.cursor==i.start,n});else{var o=this.getRange();o.isBackwards=this.isBackwards()}return o},r.prototype.fromJSON=function(o){if(o.start==null)if(this.rangeList&&o.length>1){this.toSingleRange(o[0]);for(var i=o.length;i--;){var n=a.fromPoints(o[i].start,o[i].end);o[i].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}else o=o[0];this.rangeList&&this.toSingleRange(o),this.setSelectionRange(o,o.isBackwards)},r.prototype.isEqual=function(o){if((o.length||this.rangeCount)&&o.length!=this.rangeCount)return!1;if(!o.length||!this.ranges)return this.getRange().isEqual(o);for(var i=this.ranges.length;i--;)if(!this.ranges[i].isEqual(o[i]))return!1;return!0},r}();l.prototype.setSelectionAnchor=l.prototype.setAnchor,l.prototype.getSelectionAnchor=l.prototype.getAnchor,l.prototype.setSelectionRange=l.prototype.setRange,A.implement(l.prototype,m),k.Selection=l}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(b,k,F){var A=b("./lib/report_error").reportError,x=2e3,m=function(){function a(l){this.splitRegex,this.states=l,this.regExps={},this.matchMappings={};for(var r in this.states){for(var o=this.states[r],i=[],n=0,e=this.matchMappings[r]={defaultToken:"text"},t="g",s=[],c=0;ci)break;if(c.start.row==i&&c.start.column>=r.column&&(c.start.column==r.column&&this.$bias<=0||(c.start.column+=p,c.start.row+=u)),c.end.row==i&&c.end.column>=r.column){if(c.end.column==r.column&&this.$bias<0)continue;c.end.column==r.column&&p>0&&tn)break;c.end.row=o)return t;if(t.end.row>o)return null}return null},this.getNextFoldLine=function(o,i){var n=this.$foldData,e=0;for(i&&(e=n.indexOf(i)),e==-1&&(e=0),e;e