1717 lines
654 KiB
JavaScript
1717 lines
654 KiB
JavaScript
|
|
var $y=Object.defineProperty;var Ty=(e,t,r)=>t in e?$y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Of=(e,t,r)=>(Ty(e,typeof t!="symbol"?t+"":t,r),r);import{g as Py,c as ze}from"./lodash.f4bc9830.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function r(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerpolicy&&(i.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?i.credentials="include":n.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=r(n);fetch(n.href,i)}})();function ja(e,t){const r=Object.create(null),o=e.split(",");for(let n=0;n<o.length;n++)r[o[n]]=!0;return t?n=>!!r[n.toLowerCase()]:n=>!!r[n]}const Ey="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",ky=ja(Ey),Ay="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ry=ja(Ay);function Dm(e){return!!e||e===""}function Wa(e){if(Ce(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],n=at(o)?Oy(o):Wa(o);if(n)for(const i in n)t[i]=n[i]}return t}else{if(at(e))return e;if(Qe(e))return e}}const zy=/;(?![^(]*\))/g,Iy=/:(.+)/;function Oy(e){const t={};return e.split(zy).forEach(r=>{if(r){const o=r.split(Iy);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Jn(e){let t="";if(at(e))t=e;else if(Ce(e))for(let r=0;r<e.length;r++){const o=Jn(e[r]);o&&(t+=o+" ")}else if(Qe(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function WD(e){if(!e)return null;let{class:t,style:r}=e;return t&&!at(t)&&(e.class=Jn(t)),r&&(e.style=Wa(r)),e}function By(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=$o(e[o],t[o]);return r}function $o(e,t){if(e===t)return!0;let r=Mf(e),o=Mf(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=ji(e),o=ji(t),r||o)return e===t;if(r=Ce(e),o=Ce(t),r||o)return r&&o?By(e,t):!1;if(r=Qe(e),o=Qe(t),r||o){if(!r||!o)return!1;const n=Object.keys(e).length,i=Object.keys(t).length;if(n!==i)return!1;for(const s in e){const a=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(a&&!l||!a&&l||!$o(e[s],t[s]))return!1}}return String(e)===String(t)}function Ua(e,t){return e.findIndex(r=>$o(r,t))}const Bf=e=>at(e)?e:e==null?"":Ce(e)||Qe(e)&&(e.toString===Fm||!Ae(e.toString))?JSON.stringify(e,Lm,2):String(e),Lm=(e,t)=>t&&t.__v_isRef?Lm(e,t.value):zn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,n])=>(r[`${o} =>`]=n,r),{})}:nn(t)?{[`Set(${t.size})`]:[...t.values()]}:Qe(t)&&!Ce(t)&&!Nm(t)?String(t):t,We={},Rn=[],vr=()=>{},My=()=>!1,Hy=/^on[^a-z]/,ds=e=>Hy.test(e),sd=e=>e.startsWith("onUpdate:"),ct=Object.assign,ad=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Dy=Object.prototype.hasOwnProperty,Be=(e,t)=>Dy.call(e,t),Ce=Array.isArray,zn=e=>fs(e)==="[object Map]",nn=e=>fs(e)==="[object Set]",Mf=e=>fs(e)==="[object Date]",Ae=e=>typeof e=="function",at=e=>typeof e=="string",ji=e=>typeof e=="symbol",Qe=e=>e!==null&&typeof e=="object",ld=e=>Qe(e)&&Ae(e.then)&&Ae(e.catch),Fm=Object.prototype.toString,fs=e=>Fm.call(e),Ly=e=>fs(e).slice(8,-1),Nm=e=>fs(e)==="[object Object]",cd=e=>at(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ki=ja(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ka=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Fy=/-(\w)/g,cr=Ka(e=>e.replace(Fy,(t,r)=>r?r.toUpperCase():"")),Ny=/\B([A-Z])/g,Or=Ka(e=>e.replace(Ny,"-$1").toLowerCase()),Va=Ka(e=>e.charAt(0).toUpperCase()+e.slice(1)),oa=Ka(e=>e?`on${Va(e)}`:""),jn=(e,t)=>!Object.is(e,t),In=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},pa=(e,t,r)=>{Object.
|
|||
|
|
`),n]);else{const i=[`[Vue warn]: ${e}`,...t];n.length&&i.push(`
|
|||
|
|
`,...TC(n)),console.warn(...i)}an()}function $C(){let e=Ai[Ai.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function TC(e){const t=[];return e.forEach((r,o)=>{t.push(...o===0?[]:[`
|
|||
|
|
`],...PC(r))}),t}function PC({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,n=` at <${Fv(e.component,e.type,o)}`,i=">"+r;return e.props?[n,...EC(e.props),i]:[n+i]}function EC(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(o=>{t.push(...sv(o,e[o]))}),r.length>3&&t.push(" ..."),t}function sv(e,t,r){return at(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:xt(t)?(t=sv(e,He(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):Ae(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=He(t),r?t:[`${e}=`,t])}function Kr(e,t,r,o){let n;try{n=o?e(...o):e()}catch(i){ei(i,t,r)}return n}function sr(e,t,r,o){if(Ae(e)){const i=Kr(e,t,r,o);return i&&ld(i)&&i.catch(s=>{ei(s,t,r)}),i}const n=[];for(let i=0;i<e.length;i++)n.push(sr(e[i],t,r,o));return n}function ei(e,t,r,o=!0){const n=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,a=r;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Kr(l,null,10,[e,s,a]);return}}kC(e,r,n,o)}function kC(e,t,r,o=!0){console.error(e)}let Ui=!1,ou=!1;const _t=[];let kr=0;const Mn=[];let Nr=null,No=0;const av=Promise.resolve();let pd=null;function Co(e){const t=pd||av;return e?t.then(this?e.bind(this):e):t}function AC(e){let t=kr+1,r=_t.length;for(;t<r;){const o=t+r>>>1;Ki(_t[o])<e?t=o+1:r=o}return t}function Ja(e){(!_t.length||!_t.includes(e,Ui&&e.allowRecurse?kr+1:kr))&&(e.id==null?_t.push(e):_t.splice(AC(e.id),0,e),lv())}function lv(){!Ui&&!ou&&(ou=!0,pd=av.then(uv))}function RC(e){const t=_t.indexOf(e);t>kr&&_t.splice(t,1)}function cv(e){Ce(e)?Mn.push(...e):(!Nr||!Nr.includes(e,e.allowRecurse?No+1:No))&&Mn.push(e),lv()}function Kf(e,t=Ui?kr+1:0){for(;t<_t.length;t++){const r=_t[t];r&&r.pre&&(_t.splice(t,1),t--,r())}}function ga(e){if(Mn.length){const t=[...new Set(Mn)];if(Mn.length=0,Nr){Nr.push(...t);return}for(Nr=t,Nr.sort((r,o)=>Ki(r)-Ki(o)),No=0;No<Nr.length;No++)Nr[No]();Nr=null,No=0}}const Ki=e=>e.id==null?1/0:e.id,zC=(e,t)=>{const r=Ki(e)-Ki(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function uv(e){ou=!1,Ui=!0,_t.sort(zC);const t=vr;try{for(kr=0;kr<_t.length;kr++){const r=_t[kr];r&&r.active!==!1&&Kr(r,null,14)}}finally{kr=0,_t.length=0,ga(),Ui=!1,pd=null,(_t.length||Mn.length)&&uv()}}let mi,ks=[];function IC(e,t){var r,o;mi=e,mi?(mi.enabled=!0,ks.forEach(({event:n,args:i})=>mi.emit(n,...i)),ks=[]):typeof window<"u"&&window.HTMLElement&&!(!((o=(r=window.navigator)===null||r===void 0?void 0:r.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{IC(i,t)}),setTimeout(()=>{mi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ks=[])},3e3)):ks=[]}function OC(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||We;let n=r;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:f}=o[u]||We;f&&(n=r.map(p=>p.trim())),d&&(n=r.map(To))}let a,l=o[a=oa(t)]||o[a=oa(cr(t))];!l&&i&&(l=o[a=oa(Or(t))]),l&&sr(l,e,6,n);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,sr(c,e,6,n)}}function dv(e,t,r=!1){const o=t.emitsCache,n=o.get(e);if(n!==void 0)return n;const i=e.emits;let s={},a=!1;if(!Ae(e)){const l=c=>{const u=dv(c,t,!0);u&&(a=!0,ct(s,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Qe(e)&&o.set(e,null),null):(Ce(i)?i.forEach(l=>s[l]=null):ct(s,i),Qe(e)&&o.set(e,s),s)}function el(e,t){return!e||!ds(t)?!1:(t=t.slice(2).replace(/Once$/,""),Be(e,t[0].toLowerCase()+t.slice(1))||Be(e,Or(t))||Be(e,t))}let $t=null,tl=null;function Vi(e){const t=$t;return $t=e,tl=e&&e.type.__scopeId||null,t}function md(e){tl=e}function vd(){tl=null}const QD=e=>je;function je(e,t=$t,r){if(!t||e._n)return e;const o=(...n)=>{o._d&&n0(-1);const i=Vi(t);let s;try{s=e(...n)}finally{Vi(i),o._d&&n0(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function na(e){cons
|
|||
|
|
`+Object.entries(e).map(r=>t+` ${ag(r[0])}: ${r[1]};`).join(`
|
|||
|
|
`)+`
|
|||
|
|
`+t+"}":`: ${e};`}function N2(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function R0(e,t,r,o){if(!t)return"";const n=N2(t,r,o);if(!n)return"";if(typeof n=="string")return`${e} {
|
|||
|
|
${n}
|
|||
|
|
}`;const i=Object.keys(n);if(i.length===0)return r.config.keepEmptyBlock?e+` {
|
|||
|
|
}`:"";const s=e?[e+" {"]:[];return i.forEach(a=>{const l=n[a];if(a==="raw"){s.push(`
|
|||
|
|
`+l+`
|
|||
|
|
`);return}a=ag(a),l!=null&&s.push(` ${a}${F2(l)}`)}),e&&s.push("}"),s.join(`
|
|||
|
|
`)}function gu(e,t,r){!e||e.forEach(o=>{if(Array.isArray(o))gu(o,t,r);else if(typeof o=="function"){const n=o(t);Array.isArray(n)?gu(n,t,r):n&&r(n)}else o&&r(o)})}function lg(e,t,r,o,n,i){const s=e.$;let a="";if(!s||typeof s=="string")Os(s)?a=s:t.push(s);else if(typeof s=="function"){const u=s({context:o.context,props:n});Os(u)?a=u:t.push(u)}else if(s.before&&s.before(o.context),!s.$||typeof s.$=="string")Os(s.$)?a=s.$:t.push(s.$);else if(s.$){const u=s.$({context:o.context,props:n});Os(u)?a=u:t.push(u)}const l=H2(t),c=R0(l,e.props,o,n);a?(r.push(`${a} {`),i&&c&&i.insertRule(`${a} {
|
|||
|
|
${c}
|
|||
|
|
}
|
|||
|
|
`)):(i&&c&&i.insertRule(c),!i&&c.length&&r.push(c)),e.children&&gu(e.children,{context:o.context,props:n},u=>{if(typeof u=="string"){const d=R0(l,{raw:u},o,n);i?i.insertRule(d):r.push(d)}else lg(u,t,r,o,n,i)}),t.pop(),a&&r.push("}"),s&&s.after&&s.after(o.context)}function cg(e,t,r,o=!1){const n=[];return lg(e,[],n,t,r,o?e.instance.__styleSheet:void 0),o?"":n.join(`
|
|||
|
|
|
|||
|
|
`)}function Gn(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function j2(e,t,r){const{els:o}=t;if(r===void 0)o.forEach(A0),t.els=[];else{const n=al(r);n&&o.includes(n)&&(A0(n),t.els=o.filter(i=>i!==n))}}function z0(e,t){e.push(t)}function W2(e,t,r,o,n,i,s,a,l){if(i&&!l){if(r===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const f=window.__cssrContext;f[r]||(f[r]=!0,cg(t,e,o,i));return}let c;if(r===void 0&&(c=t.render(o),r=Gn(c)),l){l.adapter(r,c!=null?c:t.render(o));return}const u=al(r);if(u!==null&&!s)return u;const d=u!=null?u:D2(r);if(c===void 0&&(c=t.render(o)),d.textContent=c,u!==null)return u;if(a){const f=document.head.querySelector(`meta[name="${a}"]`);if(f)return document.head.insertBefore(d,f),z0(t.els,d),d}return n?document.head.insertBefore(d,document.head.querySelector("style, link")):document.head.appendChild(d),z0(t.els,d),d}function U2(e){return cg(this,this.instance,e)}function K2(e={}){const{id:t,ssr:r,props:o,head:n=!1,silent:i=!1,force:s=!1,anchorMetaName:a}=e;return W2(this.instance,this,t,o,n,i,s,a,r)}function V2(e={}){const{id:t}=e;j2(this.instance,this,t)}const Bs=function(e,t,r,o){return{instance:e,$:t,props:r,children:o,els:[],render:U2,mount:K2,unmount:V2}},q2=function(e,t,r,o){return Array.isArray(t)?Bs(e,{$:null},null,t):Array.isArray(r)?Bs(e,t,null,r):Array.isArray(o)?Bs(e,t,r,o):Bs(e,t,r,null)};function ug(e={}){let t=null;const r={c:(...o)=>q2(r,...o),use:(o,...n)=>o.install(r,...n),find:al,context:{},config:e,get __styleSheet(){if(!t){const o=document.createElement("style");return document.head.appendChild(o),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}function G2(e,t){if(e===void 0)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return al(e)!==null}function X2(e){let t=".",r="__",o="--",n;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(r=h),h=e.modifierPrefix,h&&(o=h)}const i={install(h){n=h.c;const v=h.context;v.bem={},v.bem.b=null,v.bem.els=null}};function s(h){let v,x;return{before(g){v=g.bem.b,x=g.bem.els,g.bem.els=null},after(g){g.bem.b=v,g.bem.els=x},$({context:g,props:m}){return h=typeof h=="string"?h:h({context:g,props:m}),g.bem.b=h,`${(m==null?void 0:m.bPrefix)||t}${g.bem.b}`}}}function a(h){let v;return{before(x){v=x.bem.els},after(x){x.bem.els=v},$({context:x,props:g}){return h=typeof h=="string"?h:h({context:x,props:g}),x.bem.els=h.split(",").map(m=>m.trim()),x.bem.els.map(m=>`${(g==null?void 0:g.bPrefix)||t}${x.bem.b}${r}${m}`).join(", ")}}}function l(h){return{$({context:v,props:x}){h=typeof h=="string"?h:h({context:v,props:x});const g=h.split(",").map(b=>b.trim());function m(b){return g.map(_=>`&${(x==null?void 0:x.bPrefix)||t}${v.bem.b}${b!==void 0?`${r}${b}`:""}${o}${_}`).join(", ")}const y=v.bem.els;return y!==null?m(y[0]):m()}}}function c(h){return{$({context:v,props:x}){h=typeof h=="string"?h:h({context:v,props:x});const g=v.bem.els;return`&:not(${(x==null?void 0:x.bPrefix)||t}${v.bem.b}${g!==null&&g.length>0?`${r}${g[0]}`:""}${o}${h})`}}}return Object.assign(i,{cB:(...h)=>n(s(h[0]),h[1],h[2]),cE:(...h)=>n(a(h[0]),h[1],h[2]),cM:(...h)=>n(l(h[0]),h[1],h[2]),cNotM:(...h)=>n(c(h[0]),h[1],h[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,r=>r.toUpperCase()))}ye("abc","def");const Y2="n",Zi=`.${Y2}-`,Z2="__",Q2="--",dg=ug(),fg=X2({blockPrefix:Zi,elementPrefix:Z2,modifierPrefix:Q2});dg.use(fg);const{c:N,find:HL}=dg,{cB:Z,cE:Q,cM:le,cNotM:Dt}=fg;function J2(e){return N(({props:{bPrefix:t}})=>`${t||Zi}modal, ${t||Zi}drawer`,[e])}funct
|
|||
|
|
${t}
|
|||
|
|
</style>`}function ES(e,t){const r=$e(yg,null);if(r===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:o,ids:n}=r;n.has(e)||o!==null&&(n.add(e),o.push(PS(e,t)))}const kS=typeof document<"u";function ni(){if(kS)return;const e=$e(yg,null);if(e!==null)return{adapter:ES,context:e}}function B0(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:En}=ug(),Cg="vueuc-style";function M0(e){return typeof e=="string"?document.querySelector(e):e()}const wg=me({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:iS(Me(e,"show")),mergedTo:V(()=>{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?xu("lazy-teleport",this.$slots):A(Rv,{disabled:this.disabled,to:this.mergedTo},xu("lazy-teleport",this.$slots)):null}}),Ms={top:"bottom",bottom:"top",left:"right",right:"left"},H0={start:"end",center:"center",end:"start"},Ll={top:"height",bottom:"height",left:"width",right:"width"},AS={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},RS={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},zS={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},D0={top:!0,bottom:!1,left:!0,right:!1},L0={top:"end",bottom:"start",left:"end",right:"start"};function IS(e,t,r,o,n,i){if(!n||i)return{placement:e,top:0,left:0};const[s,a]=e.split("-");let l=a!=null?a:"center",c={top:0,left:0};const u=(p,h,v)=>{let x=0,g=0;const m=r[p]-t[h]-t[p];return m>0&&o&&(v?g=D0[h]?m:-m:x=D0[h]?m:-m),{left:x,top:g}},d=s==="left"||s==="right";if(l!=="center"){const p=zS[e],h=Ms[p],v=Ll[p];if(r[v]>t[v]){if(t[p]+t[v]<r[v]){const x=(r[v]-t[v])/2;t[p]<x||t[h]<x?t[p]<t[h]?(l=H0[a],c=u(v,h,d)):c=u(v,p,d):l="center"}}else r[v]<t[v]&&t[h]<0&&t[p]>t[h]&&(l=H0[a])}else{const p=s==="bottom"||s==="top"?"left":"top",h=Ms[p],v=Ll[p],x=(r[v]-t[v])/2;(t[p]<x||t[h]<x)&&(t[p]>t[h]?(l=L0[p],c=u(v,p,d)):(l=L0[h],c=u(v,h,d)))}let f=s;return t[s]<r[Ll[s]]&&t[s]<t[Ms[s]]&&(f=Ms[s]),{placement:l!=="center"?`${f}-${l}`:f,left:c.left,top:c.top}}function OS(e,t){return t?RS[e]:AS[e]}function BS(e,t,r,o,n,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-50%)"};c
|
|||
|
|
margin: 0;
|
|||
|
|
font-size: ${y$};
|
|||
|
|
font-family: ${C$};
|
|||
|
|
line-height: ${w$};
|
|||
|
|
-webkit-text-size-adjust: 100%;
|
|||
|
|
-webkit-tap-highlight-color: transparent;
|
|||
|
|
`,[N("input",`
|
|||
|
|
font-family: inherit;
|
|||
|
|
font-size: inherit;
|
|||
|
|
`)]),Yr="n-config-provider",ts="naive-ui-style";function Ke(e,t,r,o,n,i){const s=ni(),a=$e(Yr,null);if(r){const c=()=>{const u=i==null?void 0:i.value;r.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:ts,ssr:s}),a!=null&&a.preflightStyleDisabled||lx.mount({id:"n-global",head:!0,anchorMetaName:ts,ssr:s})};s?c():ln(c)}return V(()=>{var c;const{theme:{common:u,self:d,peers:f={}}={},themeOverrides:p={},builtinThemeOverrides:h={}}=n,{common:v,peers:x}=p,{common:g=void 0,[e]:{common:m=void 0,self:y=void 0,peers:b={}}={}}=(a==null?void 0:a.mergedThemeRef.value)||{},{common:_=void 0,[e]:$={}}=(a==null?void 0:a.mergedThemeOverridesRef.value)||{},{common:w,peers:S={}}=$,k=kn({},u||m||g||o.common,_,w,v),C=kn((c=d||y||o.self)===null||c===void 0?void 0:c(k),h,$,p);return{common:k,self:C,peers:kn({},o.peers,b,f),peerOverrides:kn({},h.peers,S,x)}})}Ke.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const cx="n";function Et(e={},t={defaultBordered:!0}){const r=$e(Yr,null);return{inlineThemeDisabled:r==null?void 0:r.inlineThemeDisabled,mergedRtlRef:r==null?void 0:r.mergedRtlRef,mergedComponentPropsRef:r==null?void 0:r.mergedComponentPropsRef,mergedBreakpointsRef:r==null?void 0:r.mergedBreakpointsRef,mergedBorderedRef:V(()=>{var o,n;const{bordered:i}=e;return i!==void 0?i:(n=(o=r==null?void 0:r.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:V(()=>(r==null?void 0:r.mergedClsPrefixRef.value)||cx),namespaceRef:V(()=>r==null?void 0:r.mergedNamespaceRef.value)}}const S$={name:"zh-CN",global:{undo:"\u64A4\u9500",redo:"\u91CD\u505A",confirm:"\u786E\u8BA4"},Popconfirm:{positiveText:"\u786E\u8BA4",negativeText:"\u53D6\u6D88"},Cascader:{placeholder:"\u8BF7\u9009\u62E9",loading:"\u52A0\u8F7D\u4E2D",loadingRequiredMessage:e=>`\u52A0\u8F7D\u5168\u90E8 ${e} \u7684\u5B50\u8282\u70B9\u540E\u624D\u53EF\u9009\u4E2D`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy\u5E74",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"\u6E05\u9664",now:"\u6B64\u523B",confirm:"\u786E\u8BA4",selectTime:"\u9009\u62E9\u65F6\u95F4",selectDate:"\u9009\u62E9\u65E5\u671F",datePlaceholder:"\u9009\u62E9\u65E5\u671F",datetimePlaceholder:"\u9009\u62E9\u65E5\u671F\u65F6\u95F4",monthPlaceholder:"\u9009\u62E9\u6708\u4EFD",yearPlaceholder:"\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u9009\u62E9\u5B63\u5EA6",startDatePlaceholder:"\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u7ED3\u675F\u65E5\u671F",startDatetimePlaceholder:"\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",endDatetimePlaceholder:"\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",startMonthPlaceholder:"\u5F00\u59CB\u6708\u4EFD",endMonthPlaceholder:"\u7ED3\u675F\u6708\u4EFD",monthBeforeYear:!1,firstDayOfWeek:0,today:"\u4ECA\u5929"},DataTable:{checkTableAll:"\u9009\u62E9\u5168\u90E8\u8868\u683C\u6570\u636E",uncheckTableAll:"\u53D6\u6D88\u9009\u62E9\u5168\u90E8\u8868\u683C\u6570\u636E",confirm:"\u786E\u8BA4",clear:"\u91CD\u7F6E"},LegacyTransfer:{sourceTitle:"\u6E90\u9879",targetTitle:"\u76EE\u6807\u9879"},Transfer:{selectAll:"\u5168\u9009",clearAll:"\u6E05\u9664",unselectAll:"\u53D6\u6D88\u5168\u9009",total:e=>`\u5171 ${e} \u9879`,selected:e=>`\u5DF2\u9009 ${e} \u9879`},Empty:{description:"\u65E0\u6570\u636E"},Select:{placeholder:"\u8BF7\u9009\u62E9"},TimePicker:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",positiveText:"\u786E\u8BA4",negativeText:"\u53D6\u6D88",now:"\u6B64\u523B"},Pagination:{goto:"\u8DF3\u81F3",selectionSuffix:"\u9875"},DynamicTags:{add:"\u6DFB\u52A0"},Log:{loading:"\u52A0\u8F7D\u4E2D"},Input:{placeholder:"\u8BF7\u8F93\u5165"},InputNumber:{placeholder:"\u8BF7\u8F93\u5165"},DynamicInput:{create:"\u6DFB\u52A0"},ThemeEditor:{title:"\u4E3B\u9898\u7F16\u8F91\u5668",clearAllVars:"\u6E05\u9664\u5168\u90E8\u53D8\u91CF",clearSearch:"\u6E05\u9664\u641C\u7D22",filterCompName:"\u8FC7\u6EE4\u7EC4\u4EF6\u540D",filterVarName:"\u8FC7\u6EE4\u53D8
|
|||
|
|
height: 1em;
|
|||
|
|
width: 1em;
|
|||
|
|
line-height: 1em;
|
|||
|
|
text-align: center;
|
|||
|
|
display: inline-block;
|
|||
|
|
position: relative;
|
|||
|
|
fill: currentColor;
|
|||
|
|
transform: translateZ(0);
|
|||
|
|
`,[N("svg",`
|
|||
|
|
height: 1em;
|
|||
|
|
width: 1em;
|
|||
|
|
`)]),qt=me({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){pl("-base-icon",hT,Me(e,"clsPrefix"))},render(){return A("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),pT=Z("base-close",`
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: center;
|
|||
|
|
cursor: pointer;
|
|||
|
|
background-color: transparent;
|
|||
|
|
color: var(--n-close-icon-color);
|
|||
|
|
border-radius: var(--n-close-border-radius);
|
|||
|
|
height: var(--n-close-size);
|
|||
|
|
width: var(--n-close-size);
|
|||
|
|
font-size: var(--n-close-icon-size);
|
|||
|
|
outline: none;
|
|||
|
|
border: none;
|
|||
|
|
position: relative;
|
|||
|
|
padding: 0;
|
|||
|
|
`,[le("absolute",`
|
|||
|
|
height: var(--n-close-icon-size);
|
|||
|
|
width: var(--n-close-icon-size);
|
|||
|
|
`),N("&::before",`
|
|||
|
|
content: "";
|
|||
|
|
position: absolute;
|
|||
|
|
width: var(--n-close-size);
|
|||
|
|
height: var(--n-close-size);
|
|||
|
|
left: 50%;
|
|||
|
|
top: 50%;
|
|||
|
|
transform: translateY(-50%) translateX(-50%);
|
|||
|
|
transition: inherit;
|
|||
|
|
border-radius: inherit;
|
|||
|
|
`),Dt("disabled",[N("&:hover",`
|
|||
|
|
color: var(--n-close-icon-color-hover);
|
|||
|
|
`),N("&:hover::before",`
|
|||
|
|
background-color: var(--n-close-color-hover);
|
|||
|
|
`),N("&:focus::before",`
|
|||
|
|
background-color: var(--n-close-color-hover);
|
|||
|
|
`),N("&:active",`
|
|||
|
|
color: var(--n-close-icon-color-pressed);
|
|||
|
|
`),N("&:active::before",`
|
|||
|
|
background-color: var(--n-close-color-pressed);
|
|||
|
|
`)]),le("disabled",`
|
|||
|
|
cursor: not-allowed;
|
|||
|
|
color: var(--n-close-icon-color-disabled);
|
|||
|
|
background-color: transparent;
|
|||
|
|
`),le("round",[N("&::before",`
|
|||
|
|
border-radius: 50%;
|
|||
|
|
`)])]),Yd=me({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return pl("-base-close",pT,Me(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:r,absolute:o,round:n,isButtonTag:i}=e;return A(i?"button":"div",{type:i?"button":void 0,tabindex:r||!e.focusable?-1:0,"aria-disabled":r,"aria-label":"close",role:i?void 0:"button",disabled:r,class:[`${t}-base-close`,o&&`${t}-base-close--absolute`,r&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`],onMousedown:a=>{e.focusable||a.preventDefault()},onClick:e.onClick},A(qt,{clsPrefix:t},{default:()=>A(rT,null)}))}}}),{cubicBezierEaseInOut:mT}=Oo;function za({originalTransform:e="",left:t=0,top:r=0,transition:o=`all .3s ${mT} !important`}={}){return[N("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),N("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),N("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:o})]}const vT=N([N("@keyframes loading-container-rotate",`
|
|||
|
|
to {
|
|||
|
|
-webkit-transform: rotate(360deg);
|
|||
|
|
transform: rotate(360deg);
|
|||
|
|
}
|
|||
|
|
`),N("@keyframes loading-layer-rotate",`
|
|||
|
|
12.5% {
|
|||
|
|
-webkit-transform: rotate(135deg);
|
|||
|
|
transform: rotate(135deg);
|
|||
|
|
}
|
|||
|
|
25% {
|
|||
|
|
-webkit-transform: rotate(270deg);
|
|||
|
|
transform: rotate(270deg);
|
|||
|
|
}
|
|||
|
|
37.5% {
|
|||
|
|
-webkit-transform: rotate(405deg);
|
|||
|
|
transform: rotate(405deg);
|
|||
|
|
}
|
|||
|
|
50% {
|
|||
|
|
-webkit-transform: rotate(540deg);
|
|||
|
|
transform: rotate(540deg);
|
|||
|
|
}
|
|||
|
|
62.5% {
|
|||
|
|
-webkit-transform: rotate(675deg);
|
|||
|
|
transform: rotate(675deg);
|
|||
|
|
}
|
|||
|
|
75% {
|
|||
|
|
-webkit-transform: rotate(810deg);
|
|||
|
|
transform: rotate(810deg);
|
|||
|
|
}
|
|||
|
|
87.5% {
|
|||
|
|
-webkit-transform: rotate(945deg);
|
|||
|
|
transform: rotate(945deg);
|
|||
|
|
}
|
|||
|
|
100% {
|
|||
|
|
-webkit-transform: rotate(1080deg);
|
|||
|
|
transform: rotate(1080deg);
|
|||
|
|
}
|
|||
|
|
`),N("@keyframes loading-left-spin",`
|
|||
|
|
from {
|
|||
|
|
-webkit-transform: rotate(265deg);
|
|||
|
|
transform: rotate(265deg);
|
|||
|
|
}
|
|||
|
|
50% {
|
|||
|
|
-webkit-transform: rotate(130deg);
|
|||
|
|
transform: rotate(130deg);
|
|||
|
|
}
|
|||
|
|
to {
|
|||
|
|
-webkit-transform: rotate(265deg);
|
|||
|
|
transform: rotate(265deg);
|
|||
|
|
}
|
|||
|
|
`),N("@keyframes loading-right-spin",`
|
|||
|
|
from {
|
|||
|
|
-webkit-transform: rotate(-265deg);
|
|||
|
|
transform: rotate(-265deg);
|
|||
|
|
}
|
|||
|
|
50% {
|
|||
|
|
-webkit-transform: rotate(-130deg);
|
|||
|
|
transform: rotate(-130deg);
|
|||
|
|
}
|
|||
|
|
to {
|
|||
|
|
-webkit-transform: rotate(-265deg);
|
|||
|
|
transform: rotate(-265deg);
|
|||
|
|
}
|
|||
|
|
`),Z("base-loading",`
|
|||
|
|
position: relative;
|
|||
|
|
line-height: 0;
|
|||
|
|
width: 1em;
|
|||
|
|
height: 1em;
|
|||
|
|
`,[Q("transition-wrapper",`
|
|||
|
|
position: absolute;
|
|||
|
|
width: 100%;
|
|||
|
|
height: 100%;
|
|||
|
|
`,[za()]),Q("container",`
|
|||
|
|
display: inline-flex;
|
|||
|
|
position: relative;
|
|||
|
|
direction: ltr;
|
|||
|
|
line-height: 0;
|
|||
|
|
animation: loading-container-rotate 1568.2352941176ms linear infinite;
|
|||
|
|
font-size: 0;
|
|||
|
|
letter-spacing: 0;
|
|||
|
|
white-space: nowrap;
|
|||
|
|
opacity: 1;
|
|||
|
|
width: 100%;
|
|||
|
|
height: 100%;
|
|||
|
|
`,[Q("svg",`
|
|||
|
|
stroke: var(--n-text-color);
|
|||
|
|
fill: transparent;
|
|||
|
|
position: absolute;
|
|||
|
|
height: 100%;
|
|||
|
|
overflow: hidden;
|
|||
|
|
`),Q("container-layer",`
|
|||
|
|
position: absolute;
|
|||
|
|
width: 100%;
|
|||
|
|
height: 100%;
|
|||
|
|
animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|||
|
|
`,[Q("container-layer-left",`
|
|||
|
|
display: inline-flex;
|
|||
|
|
position: relative;
|
|||
|
|
width: 50%;
|
|||
|
|
height: 100%;
|
|||
|
|
overflow: hidden;
|
|||
|
|
`,[Q("svg",`
|
|||
|
|
animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|||
|
|
width: 200%;
|
|||
|
|
`)]),Q("container-layer-patch",`
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
left: 47.5%;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
width: 5%;
|
|||
|
|
height: 100%;
|
|||
|
|
overflow: hidden;
|
|||
|
|
`,[Q("svg",`
|
|||
|
|
left: -900%;
|
|||
|
|
width: 2000%;
|
|||
|
|
transform: rotate(180deg);
|
|||
|
|
`)]),Q("container-layer-right",`
|
|||
|
|
display: inline-flex;
|
|||
|
|
position: relative;
|
|||
|
|
width: 50%;
|
|||
|
|
height: 100%;
|
|||
|
|
overflow: hidden;
|
|||
|
|
`,[Q("svg",`
|
|||
|
|
animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|||
|
|
left: -100%;
|
|||
|
|
width: 200%;
|
|||
|
|
`)])])]),Q("placeholder",`
|
|||
|
|
position: absolute;
|
|||
|
|
left: 50%;
|
|||
|
|
top: 50%;
|
|||
|
|
transform: translateX(-50%) translateY(-50%);
|
|||
|
|
`,[za({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),fx=me({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},scale:{type:Number,default:1},radius:{type:Number,default:100},strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},show:{type:Boolean,default:!0}},setup(e){pl("-base-loading",vT,Me(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:o,scale:n}=this,i=t/n;return A("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},A(Gd,null,{default:()=>this.show?A("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},A("div",{class:`${e}-base-loading__container`},A("div",{class:`${e}-base-loading__container-layer`},A("div",{class:`${e}-base-loading__container-layer-left`},A("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},A("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),A("div",{class:`${e}-base-loading__container-layer-patch`},A("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},A("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),A("div",{class:`${e}-base-loading__container-layer-right`},A("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},A("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):A("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function kh(e){return Array.isArray(e)?e:[e]}const ku={STOP:"STOP"};function hx(e,t){const r=t(e);e.children!==void 0&&r!==ku.STOP&&e.children.forEach(o=>hx(o,t))}function gT(e,t={}){const{preserveGroup:r=!1}=t,o=[],n=r?s=>{s.isLeaf||(o.push(s.key),i(s.children))}:s=>{s.isLeaf||(s.isGroup||o.push(s.key),i(s.children))};function i(s){s.forEach(n)}return i(e),o}function xT(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function bT(e){return e.children}function yT(e){return e.key}function CT(){return!1}function wT(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function ST(e){return e.disabled===!0}function _T(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function ql(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Gl(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function $T(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)||r.add(o)}),Array.from(r)}function TT(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)&&r.delete(o)}),Array.from(r)}function PT(e){return(e==null?void 0:e.type)==="group"}function NL(e){const t=new Map;return e.forEach((r,o)=>{t.set(r.key,o)}),r=>{var o;return(o=t.get(r))!==null&&o!==void 0?o:null}}class ET extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function kT(e,t,r,o){return Ia(t.concat(e),r,o,!1)}function AT(e,t){const r=new Set;return e.forEach(o=>{const n=t.treeNodeMap.get(o);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function RT(e,t,r,o){const n=Ia(t,r,o,!1),i=Ia(e,r,o,!0),s=AT(e,r),a=[];return n.forEach(l=>{(i.has(l)||s.has(l))&&a.push(l)}),a.forEach(l=>n.delete(l)),n}function Xl(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:s,leafOnly:a,checkStrategy:l,allowNotLoaded:c}=e;if(!s)return o!==void 0?{checkedKeys:$T(r,o),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:TT(r,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let d;n!==void 0?d=RT(n,r,t,c):o!==void 0?d=kT(o,r,t,c):d=Ia(r,t,c,!1);const f=
|
|||
|
|
overflow: hidden;
|
|||
|
|
position: relative;
|
|||
|
|
z-index: auto;
|
|||
|
|
height: 100%;
|
|||
|
|
width: 100%;
|
|||
|
|
`,[N(">",[Z("scrollbar-container",`
|
|||
|
|
width: 100%;
|
|||
|
|
overflow: scroll;
|
|||
|
|
height: 100%;
|
|||
|
|
max-height: inherit;
|
|||
|
|
scrollbar-width: none;
|
|||
|
|
`,[N("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|||
|
|
width: 0;
|
|||
|
|
height: 0;
|
|||
|
|
display: none;
|
|||
|
|
`),N(">",[Z("scrollbar-content",`
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
min-width: 100%;
|
|||
|
|
`)])])]),N(">, +",[Z("scrollbar-rail",`
|
|||
|
|
position: absolute;
|
|||
|
|
pointer-events: none;
|
|||
|
|
user-select: none;
|
|||
|
|
-webkit-user-select: none;
|
|||
|
|
`,[le("horizontal",`
|
|||
|
|
left: 2px;
|
|||
|
|
right: 2px;
|
|||
|
|
bottom: 4px;
|
|||
|
|
height: var(--n-scrollbar-height);
|
|||
|
|
`,[N(">",[Q("scrollbar",`
|
|||
|
|
height: var(--n-scrollbar-height);
|
|||
|
|
border-radius: var(--n-scrollbar-border-radius);
|
|||
|
|
right: 0;
|
|||
|
|
`)])]),le("vertical",`
|
|||
|
|
right: 4px;
|
|||
|
|
top: 2px;
|
|||
|
|
bottom: 2px;
|
|||
|
|
width: var(--n-scrollbar-width);
|
|||
|
|
`,[N(">",[Q("scrollbar",`
|
|||
|
|
width: var(--n-scrollbar-width);
|
|||
|
|
border-radius: var(--n-scrollbar-border-radius);
|
|||
|
|
bottom: 0;
|
|||
|
|
`)])]),le("disabled",[N(">",[Q("scrollbar",{pointerEvents:"none"})])]),N(">",[Q("scrollbar",`
|
|||
|
|
position: absolute;
|
|||
|
|
cursor: pointer;
|
|||
|
|
pointer-events: all;
|
|||
|
|
background-color: var(--n-scrollbar-color);
|
|||
|
|
transition: background-color .2s var(--n-scrollbar-bezier);
|
|||
|
|
`,[Au(),N("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),JT=Object.assign(Object.assign({},Ke.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),yx=me({name:"Scrollbar",props:JT,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:o}=Et(e),n=bs("Scrollbar",o,t),i=ae(null),s=ae(null),a=ae(null),l=ae(null),c=ae(null),u=ae(null),d=ae(null),f=ae(null),p=ae(null),h=ae(null),v=ae(null),x=ae(0),g=ae(0),m=ae(!1),y=ae(!1);let b=!1,_=!1,$,w,S=0,k=0,C=0,T=0;const P=mS(),I=V(()=>{const{value:se}=f,{value:be}=u,{value:Pe}=h;return se===null||be===null||Pe===null?0:Math.min(se,Pe*se/be+e.size*1.5)}),z=V(()=>`${I.value}px`),D=V(()=>{const{value:se}=p,{value:be}=d,{value:Pe}=v;return se===null||be===null||Pe===null?0:Pe*se/be+e.size*1.5}),B=V(()=>`${D.value}px`),j=V(()=>{const{value:se}=f,{value:be}=x,{value:Pe}=u,{value:qe}=h;if(se===null||Pe===null||qe===null)return 0;{const nt=Pe-se;return nt?be/nt*(qe-I.value):0}}),re=V(()=>`${j.value}px`),ue=V(()=>{const{value:se}=p,{value:be}=g,{value:Pe}=d,{value:qe}=v;if(se===null||Pe===null||qe===null)return 0;{const nt=Pe-se;return nt?be/nt*(qe-D.value):0}}),ge=V(()=>`${ue.value}px`),F=V(()=>{const{value:se}=f,{value:be}=u;return se!==null&&be!==null&&be>se}),U=V(()=>{const{value:se}=p,{value:be}=d;return se!==null&&be!==null&&be>se}),G=V(()=>{const{trigger:se}=e;return se==="none"||m.value}),J=V(()=>{const{trigger:se}=e;return se==="none"||y.value}),L=V(()=>{const{container:se}=e;return se?se():s.value}),q=V(()=>{const{content:se}=e;return se?se():a.value}),X=Bd(()=>{e.container||ke({top:x.value,left:g.value})}),ie=()=>{X.isDeactivated||xe()},de=se=>{if(X.isDeactivated)return;const{onResize:be}=e;be&&be(se),xe()},ke=(se,be)=>{if(!e.scrollable)return;if(typeof se=="number"){E(be!=null?be:0,se,0,!1,"auto");return}const{left:Pe,top:qe,index:nt,elSize:vt,position:It,behavior:Je,el:Ut,debounce:Hr=!0}=se;(Pe!==void 0||qe!==void 0)&&E(Pe!=null?Pe:0,qe!=null?qe:0,0,!1,Je),Ut!==void 0?E(0,Ut.offsetTop,Ut.offsetHeight,Hr,Je):nt!==void 0&&vt!==void 0?E(0,nt*vt,vt,Hr,Je):It==="bottom"?E(0,Number.MAX_SAFE_INTEGER,0,!1,Je):It==="top"&&E(0,0,0,!1,Je)},ne=(se,be)=>{if(!e.scrollable)return;const{value:Pe}=L;!Pe||(typeof se=="object"?Pe.scrollBy(se):Pe.scrollBy(se,be||0))};function E(se,be,Pe,qe,nt){const{value:vt}=L;if(!!vt){if(qe){const{scrollTop:It,offsetHeight:Je}=vt;if(be>It){be+Pe<=It+Je||vt.scrollTo({left:se,top:be+Pe-Je,behavior:nt});return}}vt.scrollTo({left:se,top:be,behavior:nt})}}function R(){Y(),te(),xe()}function H(){O()}function O(){M(),W()}function M(){w!==void 0&&window.clearTimeout(w),w=window.setTimeout(()=>{y.value=!1},e.duration)}function W(){$!==void 0&&window.clearTimeout($),$=window.setTimeout(()=>{m.value=!1},e.duration)}function Y(){$!==void 0&&window.clearTimeout($),m.value=!0}function te(){w!==void 0&&window.clearTimeout(w),y.value=!0}function ee(se){const{onScroll:be}=e;be&&be(se),K()}function K(){const{value:se}=L;se&&(x.value=se.scrollTop,g.value=se.scrollLeft*(n!=null&&n.value?-1:1))}function fe(){const{value:se}=q;se&&(u.value=se.offsetHeight,d.value=se.offsetWidth);const{value:be}=L;be&&(f.value=be.offsetHeight,p.value=be.offsetWidth);const{value:Pe}=c,{value:qe}=l;Pe&&(v.value=Pe.offsetWidth),qe&&(h.value=qe.offsetHeight)}function pe(){const{value:se}=L;se&&(x.value=se.scrollTop,g.value=se.scrollLeft*(n!=null&&n.value?-1:1),f.value=se.offsetHeight,p.value=se.offsetWidth,u.value=se.scrollHeight,d.value=se.scrollWidth);const{value:be}=c,{value:Pe}=l;be&&(v.value=be.offsetWidth),Pe&&(h.value=Pe.offsetHeight)}function xe(){!e.scro
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
border-radius: inherit;
|
|||
|
|
`),nP=me({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){pl("-base-wave",oP,Me(e,"clsPrefix"));const t=ae(null),r=ae(!1);let o=null;return Pt(()=>{o!==null&&window.clearTimeout(o)}),{active:r,selfRef:t,play(){o!==null&&(window.clearTimeout(o),r.value=!1,o=null),Co(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,r.value=!0,o=window.setTimeout(()=>{r.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:e}=this;return A("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),iP={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Tx=e=>{const{boxShadow2:t,popoverColor:r,textColor2:o,borderRadius:n,fontSize:i,dividerColor:s}=e;return Object.assign(Object.assign({},iP),{fontSize:i,borderRadius:n,color:r,dividerColor:s,textColor:o,boxShadow:t})},sP={name:"Popover",common:Ve,self:Tx},ai=sP,aP={name:"Popover",common:ce,self:Tx},pn=aP,Yl={top:"bottom",bottom:"top",left:"right",right:"left"},pt="var(--n-arrow-height) * 1.414",lP=N([Z("popover",`
|
|||
|
|
transition:
|
|||
|
|
box-shadow .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
color .3s var(--n-bezier);
|
|||
|
|
position: relative;
|
|||
|
|
font-size: var(--n-font-size);
|
|||
|
|
color: var(--n-text-color);
|
|||
|
|
box-shadow: var(--n-box-shadow);
|
|||
|
|
`,[N(">",[Z("scrollbar",`
|
|||
|
|
height: inherit;
|
|||
|
|
max-height: inherit;
|
|||
|
|
`)]),Dt("raw",`
|
|||
|
|
background-color: var(--n-color);
|
|||
|
|
border-radius: var(--n-border-radius);
|
|||
|
|
`,[Dt("scrollable",[Dt("show-header-or-footer","padding: var(--n-padding);")])]),Q("header",`
|
|||
|
|
padding: var(--n-padding);
|
|||
|
|
border-bottom: 1px solid var(--n-divider-color);
|
|||
|
|
transition: border-color .3s var(--n-bezier);
|
|||
|
|
`),Q("footer",`
|
|||
|
|
padding: var(--n-padding);
|
|||
|
|
border-top: 1px solid var(--n-divider-color);
|
|||
|
|
transition: border-color .3s var(--n-bezier);
|
|||
|
|
`),le("scrollable, show-header-or-footer",[Q("content",`
|
|||
|
|
padding: var(--n-padding);
|
|||
|
|
`)])]),Z("popover-shared",`
|
|||
|
|
transform-origin: inherit;
|
|||
|
|
`,[Z("popover-arrow-wrapper",`
|
|||
|
|
position: absolute;
|
|||
|
|
overflow: hidden;
|
|||
|
|
pointer-events: none;
|
|||
|
|
`,[Z("popover-arrow",`
|
|||
|
|
transition: background-color .3s var(--n-bezier);
|
|||
|
|
position: absolute;
|
|||
|
|
display: block;
|
|||
|
|
width: calc(${pt});
|
|||
|
|
height: calc(${pt});
|
|||
|
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
|||
|
|
transform: rotate(45deg);
|
|||
|
|
background-color: var(--n-color);
|
|||
|
|
pointer-events: all;
|
|||
|
|
`)]),N("&.popover-transition-enter-from, &.popover-transition-leave-to",`
|
|||
|
|
opacity: 0;
|
|||
|
|
transform: scale(.85);
|
|||
|
|
`),N("&.popover-transition-enter-to, &.popover-transition-leave-from",`
|
|||
|
|
transform: scale(1);
|
|||
|
|
opacity: 1;
|
|||
|
|
`),N("&.popover-transition-enter-active",`
|
|||
|
|
transition:
|
|||
|
|
box-shadow .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
opacity .15s var(--n-bezier-ease-out),
|
|||
|
|
transform .15s var(--n-bezier-ease-out);
|
|||
|
|
`),N("&.popover-transition-leave-active",`
|
|||
|
|
transition:
|
|||
|
|
box-shadow .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
opacity .15s var(--n-bezier-ease-in),
|
|||
|
|
transform .15s var(--n-bezier-ease-in);
|
|||
|
|
`)]),or("top-start",`
|
|||
|
|
top: calc(${pt} / -2);
|
|||
|
|
left: calc(${Dr("top-start")} - var(--v-offset-left));
|
|||
|
|
`),or("top",`
|
|||
|
|
top: calc(${pt} / -2);
|
|||
|
|
transform: translateX(calc(${pt} / -2)) rotate(45deg);
|
|||
|
|
left: 50%;
|
|||
|
|
`),or("top-end",`
|
|||
|
|
top: calc(${pt} / -2);
|
|||
|
|
right: calc(${Dr("top-end")} + var(--v-offset-left));
|
|||
|
|
`),or("bottom-start",`
|
|||
|
|
bottom: calc(${pt} / -2);
|
|||
|
|
left: calc(${Dr("bottom-start")} - var(--v-offset-left));
|
|||
|
|
`),or("bottom",`
|
|||
|
|
bottom: calc(${pt} / -2);
|
|||
|
|
transform: translateX(calc(${pt} / -2)) rotate(45deg);
|
|||
|
|
left: 50%;
|
|||
|
|
`),or("bottom-end",`
|
|||
|
|
bottom: calc(${pt} / -2);
|
|||
|
|
right: calc(${Dr("bottom-end")} + var(--v-offset-left));
|
|||
|
|
`),or("left-start",`
|
|||
|
|
left: calc(${pt} / -2);
|
|||
|
|
top: calc(${Dr("left-start")} - var(--v-offset-top));
|
|||
|
|
`),or("left",`
|
|||
|
|
left: calc(${pt} / -2);
|
|||
|
|
transform: translateY(calc(${pt} / -2)) rotate(45deg);
|
|||
|
|
top: 50%;
|
|||
|
|
`),or("left-end",`
|
|||
|
|
left: calc(${pt} / -2);
|
|||
|
|
bottom: calc(${Dr("left-end")} + var(--v-offset-top));
|
|||
|
|
`),or("right-start",`
|
|||
|
|
right: calc(${pt} / -2);
|
|||
|
|
top: calc(${Dr("right-start")} - var(--v-offset-top));
|
|||
|
|
`),or("right",`
|
|||
|
|
right: calc(${pt} / -2);
|
|||
|
|
transform: translateY(calc(${pt} / -2)) rotate(45deg);
|
|||
|
|
top: 50%;
|
|||
|
|
`),or("right-end",`
|
|||
|
|
right: calc(${pt} / -2);
|
|||
|
|
bottom: calc(${Dr("right-end")} + var(--v-offset-top));
|
|||
|
|
`),...g$({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),o=r?"width":"height";return e.map(n=>{const i=n.split("-")[1]==="end",a=`calc((${`var(--v-target-${o}, 0px)`} - ${pt}) / 2)`,l=Dr(n);return N(`[v-placement="${n}"] >`,[Z("popover-shared",[le("center-arrow",[Z("popover-arrow",`${t}: calc(max(${a}, ${l}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function Dr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function or(e,t){const r=e.split("-")[0],o=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return N(`[v-placement="${e}"] >`,[Z("popover-shared",`
|
|||
|
|
margin-${Yl[r]}: var(--n-space);
|
|||
|
|
`,[le("show-arrow",`
|
|||
|
|
margin-${Yl[r]}: var(--n-space-arrow);
|
|||
|
|
`),le("overlap",`
|
|||
|
|
margin: 0;
|
|||
|
|
`),rS("popover-arrow-wrapper",`
|
|||
|
|
right: 0;
|
|||
|
|
left: 0;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
${r}: 100%;
|
|||
|
|
${Yl[r]}: auto;
|
|||
|
|
${o}
|
|||
|
|
`,[Z("popover-arrow",t)])])])}const Px=Object.assign(Object.assign({},Ke.props),{to:Yn.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),Ex=({arrowStyle:e,clsPrefix:t})=>A("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},A("div",{class:`${t}-popover-arrow`,style:e})),cP=me({name:"PopoverBody",inheritAttrs:!1,props:Px,setup(e,{slots:t,attrs:r}){const{namespaceRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:i}=Et(e),s=Ke("Popover","-popover",lP,ai,e,n),a=ae(null),l=$e("NPopover"),c=ae(null),u=ae(e.show),d=ae(!1);br(()=>{const{show:w}=e;w&&!oS()&&!e.internalDeactivateImmediately&&(d.value=!0)});const f=V(()=>{const{trigger:w,onClickoutside:S}=e,k=[],{positionManuallyRef:{value:C}}=l;return C||(w==="click"&&!S&&k.push([O0,b,void 0,{capture:!0}]),w==="hover"&&k.push([wS,y])),S&&k.push([O0,b,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&d.value)&&k.push([vs,e.show]),k}),p=V(()=>{const w=e.width==="trigger"?void 0:Qo(e.width),S=[];w&&S.push({width:w});const{maxWidth:k,minWidth:C}=e;return k&&S.push({maxWidth:Qo(k)}),C&&S.push({maxWidth:Qo(C)}),i||S.push(h.value),S}),h=V(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:S,cubicBezierEaseOut:k},self:{space:C,spaceArrow:T,padding:P,fontSize:I,textColor:z,dividerColor:D,color:B,boxShadow:j,borderRadius:re,arrowHeight:ue,arrowOffset:ge,arrowOffsetVertical:F}}=s.value;return{"--n-box-shadow":j,"--n-bezier":w,"--n-bezier-ease-in":S,"--n-bezier-ease-out":k,"--n-font-size":I,"--n-text-color":z,"--n-color":B,"--n-divider-color":D,"--n-border-radius":re,"--n-arrow-height":ue,"--n-arrow-offset":ge,"--n-arrow-offset-vertical":F,"--n-padding":P,"--n-space":C,"--n-space-arrow":T}}),v=i?fr("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:x}),Pt(()=>{l.setBodyInstance(null)}),ot(Me(e,"show"),w=>{e.animated||(w?u.value=!0:u.value=!1)});function x(){var w;(w=a.value)===null||w===void 0||w.syncPosition()}function g(w){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(w)}function m(w){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(w)}function y(w){e.trigger==="hover"&&!_().contains(_a(w))&&l.handleMouseMoveOutside(w)}function b(w){(e.trigger==="click"&&!_().contains(_a(w))||e.onClickoutside)&&l.handleClickOutside(w)}function _(){return l.getTriggerElement()}Ue(cl,c),Ue(zd,null),Ue(Rd,null);function $(){if(v==null||v.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&d.value))return null;let S;const k=l.internalRenderBodyRef.value,{value:C}=n;if(k)S=k([`${C}-popover-shared`,v==null?void 0:v.themeClass.value,e.overlap&&`${C}-popover-shared--overlap`,e.showArrow&&`${C}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${C}-popover-shared--center-arrow`],c,p.value,g,m);else{const{value:T}=l.extraClassRef,{internalTrapFocus:P}=e,I=!vu(t.header)||!vu(t.footer),z=()=>{var D;const B=I?A(Xe,null,Xt(t.header,ue=>ue?A("div",{class:`${C}-popover__header`,style:e.headerStyle},ue):null),Xt(t.default,ue=>ue?A("div",{class:`${C}-popover__content`,style:e.contentStyle},t):null),Xt(t.footer,ue=>ue?A("div",{class:`${C}-popover__footer`,style:e.footerStyle},ue):null)):e.scrollable?(D=t.default)===null||D===void 0?void 0:D.call(t):A("div",{class:`${C}-popover__content`,style:e.contentStyle},t),j=e.scrollable?A(wx,{contentClass:I?void 0:`${C}-popover__content`,contentStyle:I?void 0:e.contentStyle},{default:()=>B}):B,re=e.showArrow?Ex({arrowStyle:e.arrowStyle,clsPrefix:C}):null;return[j,re]};S=A("div",cn({class:[`${C}-popover`,`${C}-popover-shared`,v==null?void 0:v.themeClass.value,T.map(D=>`${C}-${D}`),{[`${C}-popover--scro
|
|||
|
|
opacity: 0!important;
|
|||
|
|
margin-left: 0!important;
|
|||
|
|
margin-right: 0!important;
|
|||
|
|
`),N("&.fade-in-width-expand-transition-leave-active",`
|
|||
|
|
overflow: hidden;
|
|||
|
|
transition:
|
|||
|
|
opacity ${e} ${lo},
|
|||
|
|
max-width ${e} ${lo} ${t},
|
|||
|
|
margin-left ${e} ${lo} ${t},
|
|||
|
|
margin-right ${e} ${lo} ${t};
|
|||
|
|
`),N("&.fade-in-width-expand-transition-enter-active",`
|
|||
|
|
overflow: hidden;
|
|||
|
|
transition:
|
|||
|
|
opacity ${e} ${lo} ${t},
|
|||
|
|
max-width ${e} ${lo},
|
|||
|
|
margin-left ${e} ${lo},
|
|||
|
|
margin-right ${e} ${lo};
|
|||
|
|
`)]}const wP={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},SP={name:"Alert",common:ce,self(e){const{lineHeight:t,borderRadius:r,fontWeightStrong:o,dividerColor:n,inputColor:i,textColor1:s,textColor2:a,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:h,warningColorSuppl:v,errorColorSuppl:x,fontSize:g}=e;return Object.assign(Object.assign({},wP),{fontSize:g,lineHeight:t,titleFontWeight:o,borderRadius:r,border:`1px solid ${n}`,color:i,titleTextColor:s,iconColor:a,contentTextColor:a,closeBorderRadius:r,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${he(p,{alpha:.35})}`,colorInfo:he(p,{alpha:.25}),titleTextColorInfo:s,iconColorInfo:p,contentTextColorInfo:a,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${he(h,{alpha:.35})}`,colorSuccess:he(h,{alpha:.25}),titleTextColorSuccess:s,iconColorSuccess:h,contentTextColorSuccess:a,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${he(v,{alpha:.35})}`,colorWarning:he(v,{alpha:.25}),titleTextColorWarning:s,iconColorWarning:v,contentTextColorWarning:a,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${he(x,{alpha:.35})}`,colorError:he(x,{alpha:.25}),titleTextColorError:s,iconColorError:x,contentTextColorError:a,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},_P=SP,{cubicBezierEaseInOut:Pr,cubicBezierEaseOut:$P,cubicBezierEaseIn:TP}=Oo;function zx({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:o="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:s=void 0,reverse:a=!1}={}){const l=a?"leave":"enter",c=a?"enter":"leave";return[N(`&.fade-in-height-expand-transition-${c}-from,
|
|||
|
|
&.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),N(`&.fade-in-height-expand-transition-${c}-to,
|
|||
|
|
&.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},s),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),N(`&.fade-in-height-expand-transition-${c}-active`,`
|
|||
|
|
overflow: ${e};
|
|||
|
|
transition:
|
|||
|
|
max-height ${t} ${Pr} ${o},
|
|||
|
|
opacity ${t} ${$P} ${o},
|
|||
|
|
margin-top ${t} ${Pr} ${o},
|
|||
|
|
margin-bottom ${t} ${Pr} ${o},
|
|||
|
|
padding-top ${t} ${Pr} ${o},
|
|||
|
|
padding-bottom ${t} ${Pr} ${o}
|
|||
|
|
${r?","+r:""}
|
|||
|
|
`),N(`&.fade-in-height-expand-transition-${l}-active`,`
|
|||
|
|
overflow: ${e};
|
|||
|
|
transition:
|
|||
|
|
max-height ${t} ${Pr},
|
|||
|
|
opacity ${t} ${TP},
|
|||
|
|
margin-top ${t} ${Pr},
|
|||
|
|
margin-bottom ${t} ${Pr},
|
|||
|
|
padding-top ${t} ${Pr},
|
|||
|
|
padding-bottom ${t} ${Pr}
|
|||
|
|
${r?","+r:""}
|
|||
|
|
`)]}const PP={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},EP=e=>{const{borderRadius:t,railColor:r,primaryColor:o,primaryColorHover:n,primaryColorPressed:i,textColor2:s}=e;return Object.assign(Object.assign({},PP),{borderRadius:t,railColor:r,railColorActive:o,linkColor:he(o,{alpha:.15}),linkTextColor:s,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:o})},kP={name:"Anchor",common:ce,self:EP},AP=kP,RP=gs&&"chrome"in window;gs&&navigator.userAgent.includes("Firefox");const zP=gs&&navigator.userAgent.includes("Safari")&&!RP,Ix={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},IP={name:"Input",common:ce,self(e){const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:s,inputColorDisabled:a,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:p,fontSizeTiny:h,fontSizeSmall:v,fontSizeMedium:x,fontSizeLarge:g,heightTiny:m,heightSmall:y,heightMedium:b,heightLarge:_,clearColor:$,clearColorHover:w,clearColorPressed:S,placeholderColor:k,placeholderColorDisabled:C,iconColor:T,iconColorDisabled:P,iconColorHover:I,iconColorPressed:z}=e;return Object.assign(Object.assign({},Ix),{countTextColorDisabled:o,countTextColor:r,heightTiny:m,heightSmall:y,heightMedium:b,heightLarge:_,fontSizeTiny:h,fontSizeSmall:v,fontSizeMedium:x,fontSizeLarge:g,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:s,textColor:t,textColorDisabled:o,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:k,placeholderColorDisabled:C,color:s,colorDisabled:a,colorFocus:he(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${he(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:he(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${he(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:he(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${he(u,{alpha:.3})}`,caretColorError:u,clearColor:$,clearColorHover:w,clearColorPressed:S,iconColor:T,iconColorDisabled:P,iconColorHover:I,iconColorPressed:z,suffixTextColor:t})}},hr=IP,OP=e=>{const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:s,inputColorDisabled:a,borderColor:l,warningColor:c,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:p,lineHeight:h,fontSizeTiny:v,fontSizeSmall:x,fontSizeMedium:g,fontSizeLarge:m,heightTiny:y,heightSmall:b,heightMedium:_,heightLarge:$,actionColor:w,clearColor:S,clearColorHover:k,clearColorPressed:C,placeholderColor:T,placeholderColorDisabled:P,iconColor:I,iconColorDisabled:z,iconColorHover:D,iconColorPressed:B}=e;return Object.assign(Object.assign({},Ix),{countTextColorDisabled:o,countTextColor:r,heightTiny:y,heightSmall:b,heightMedium:_,heightLarge:$,fontSizeTiny:v,fontSizeSmall:x,fontSizeMedium:g,fontSizeLarge:m,lineHeight:h,lineHeightTextarea:h,borderRadius:p,iconSize:"16px",groupLabelColor:w,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:n,placeholderColor:T,placeholderColorDisabled:P,color:s,colorDisabled:a,colorFocus:s,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${he(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:s,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${he(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:s,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${he(d
|
|||
|
|
margin: 0;
|
|||
|
|
font-weight: var(--n-font-weight);
|
|||
|
|
line-height: 1;
|
|||
|
|
font-family: inherit;
|
|||
|
|
padding: var(--n-padding);
|
|||
|
|
height: var(--n-height);
|
|||
|
|
font-size: var(--n-font-size);
|
|||
|
|
border-radius: var(--n-border-radius);
|
|||
|
|
color: var(--n-text-color);
|
|||
|
|
background-color: var(--n-color);
|
|||
|
|
width: var(--n-width);
|
|||
|
|
white-space: nowrap;
|
|||
|
|
outline: none;
|
|||
|
|
position: relative;
|
|||
|
|
z-index: auto;
|
|||
|
|
border: none;
|
|||
|
|
display: inline-flex;
|
|||
|
|
flex-wrap: nowrap;
|
|||
|
|
flex-shrink: 0;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: center;
|
|||
|
|
user-select: none;
|
|||
|
|
-webkit-user-select: none;
|
|||
|
|
text-align: center;
|
|||
|
|
cursor: pointer;
|
|||
|
|
text-decoration: none;
|
|||
|
|
transition:
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
opacity .3s var(--n-bezier),
|
|||
|
|
border-color .3s var(--n-bezier);
|
|||
|
|
`,[le("color",[Q("border",{borderColor:"var(--n-border-color)"}),le("disabled",[Q("border",{borderColor:"var(--n-border-color-disabled)"})]),Dt("disabled",[N("&:focus",[Q("state-border",{borderColor:"var(--n-border-color-focus)"})]),N("&:hover",[Q("state-border",{borderColor:"var(--n-border-color-hover)"})]),N("&:active",[Q("state-border",{borderColor:"var(--n-border-color-pressed)"})]),le("pressed",[Q("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),le("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[Q("border",{border:"var(--n-border-disabled)"})]),Dt("disabled",[N("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[Q("state-border",{border:"var(--n-border-focus)"})]),N("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[Q("state-border",{border:"var(--n-border-hover)"})]),N("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Q("state-border",{border:"var(--n-border-pressed)"})]),le("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Q("state-border",{border:"var(--n-border-pressed)"})])]),le("loading","cursor: wait;"),Z("base-wave",`
|
|||
|
|
pointer-events: none;
|
|||
|
|
top: 0;
|
|||
|
|
right: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
left: 0;
|
|||
|
|
animation-iteration-count: 1;
|
|||
|
|
animation-duration: var(--n-ripple-duration);
|
|||
|
|
animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
|
|||
|
|
`,[le("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),gs&&"MozBoxSizing"in document.createElement("div").style?N("&::moz-focus-inner",{border:0}):null,Q("border, state-border",`
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
top: 0;
|
|||
|
|
right: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
border-radius: inherit;
|
|||
|
|
transition: border-color .3s var(--n-bezier);
|
|||
|
|
pointer-events: none;
|
|||
|
|
`),Q("border",{border:"var(--n-border)"}),Q("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),Q("icon",`
|
|||
|
|
margin: var(--n-icon-margin);
|
|||
|
|
margin-left: 0;
|
|||
|
|
height: var(--n-icon-size);
|
|||
|
|
width: var(--n-icon-size);
|
|||
|
|
max-width: var(--n-icon-size);
|
|||
|
|
font-size: var(--n-icon-size);
|
|||
|
|
position: relative;
|
|||
|
|
flex-shrink: 0;
|
|||
|
|
`,[Z("icon-slot",`
|
|||
|
|
height: var(--n-icon-size);
|
|||
|
|
width: var(--n-icon-size);
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
top: 50%;
|
|||
|
|
transform: translateY(-50%);
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: center;
|
|||
|
|
`,[za({top:"50%",originalTransform:"translateY(-50%)"})]),CP()]),Q("content",`
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
flex-wrap: nowrap;
|
|||
|
|
min-width: 0;
|
|||
|
|
`,[N("~",[Q("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),le("block",`
|
|||
|
|
display: flex;
|
|||
|
|
width: 100%;
|
|||
|
|
`),le("dashed",[Q("border, state-border",{borderStyle:"dashed !important"})]),le("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),N("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),N("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),aE=Object.assign(Object.assign({},Ke.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!zP}}),lE=me({name:"Button",props:aE,setup(e){const t=ae(null),r=ae(null),o=ae(!1),n=Rt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=$e(rE,{}),{mergedSizeRef:s}=c_({},{defaultSize:"medium",mergedSize:b=>{const{size:_}=e;if(_)return _;const{size:$}=i;if($)return $;const{mergedSize:w}=b||{};return w?w.value:"medium"}}),a=V(()=>e.focusable&&!e.disabled),l=b=>{var _;a.value||b.preventDefault(),!e.nativeFocusBehavior&&(b.preventDefault(),!e.disabled&&a.value&&((_=t.value)===null||_===void 0||_.focus({preventScroll:!0})))},c=b=>{var _;if(!e.disabled&&!e.loading){const{onClick:$}=e;$&&tt($,b),e.text||(_=r.value)===null||_===void 0||_.play()}},u=b=>{switch(b.key){case"Enter":if(!e.keyboard)return;o.value=!1}},d=b=>{switch(b.key){case"Enter":if(!e.keyboard||e.loading){b.preventDefault();return}o.value=!0}},f=()=>{o.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:h,mergedRtlRef:v}=Et(e),x=Ke("Button","-button",sE,ef,e,h),g=bs("Button",v,h),m=V(()=>{const b=x.value,{common:{cubicBezierEaseInOut:_,cubicBezierEaseOut:$},self:w}=b,{rippleDuration:S,opacityDisabled:k,fontWeight:C,fontWeightStrong:T}=w,P=s.value,{dashed:I,type:z,ghost:D,text:B,color:j,round:re,circle:ue,textColor:ge,secondary:F,tertiary:U,quaternary:G,strong:J}=e,L={"font-weight":J?T:C};let q={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const X=z==="tertiary",ie=z==="default",de=X?"default":z;if(B){const ee=ge||j;q={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ee||w[ye("textColorText",de)],"--n-text-color-hover":ee?Ho(ee):w[ye("textColorTextHover",de)],"--n-text-color-pressed":ee?Ns(ee):w[ye("textColorTextPressed",de)],"--n-text-color-focus":ee?Ho(ee):w[ye("textColorTextHover",de)],"--n-text-color-disabled":ee||w[ye("textColorTextDisabled",de)]}}else if(D||I){const ee=ge||j;q={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":j||w[ye("rippleColor",de)],"--n-text-color":ee||w[ye("textColorGhost",de)],"--n-text-color-hover":ee?Ho(ee):w[ye("textColorGhostHover",de)],"--n-text-color-pressed":ee?Ns(ee):w[ye("textColorGhostPressed",de)],"--n-text-color-focus":ee?Ho(ee):w[ye("textColorGhostHover",de)],"--n-text-color-disabled":ee||w[ye("textColorGhostDisabled",de)]}}else if(F){const ee=ie?w.textColor:X?w.textColorTertiary:w[ye("color",de)],K=j||ee,fe=z!=="default"&&z!=="tertiary";q={"--n-color":fe?he(K,{alpha:Number(w.colorOpacitySecondary)}):w.colorSecondary,"--n-color-hover":fe?he(K,{alpha:Number(w.colorOpacitySecondaryHover)}):w.colorSecondaryHover,"--n-color-pressed":fe?he(K,{alpha:Number(w.colorOpacitySecondaryPressed)}):w.colorSec
|
|||
|
|
font-size: var(--n-font-size);
|
|||
|
|
line-height: var(--n-line-height);
|
|||
|
|
display: flex;
|
|||
|
|
flex-direction: column;
|
|||
|
|
width: 100%;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
position: relative;
|
|||
|
|
border-radius: var(--n-border-radius);
|
|||
|
|
background-color: var(--n-color);
|
|||
|
|
color: var(--n-text-color);
|
|||
|
|
word-break: break-word;
|
|||
|
|
transition:
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
box-shadow .3s var(--n-bezier),
|
|||
|
|
border-color .3s var(--n-bezier);
|
|||
|
|
`,[tS({background:"var(--n-color-modal)"}),le("hoverable",[N("&:hover","box-shadow: var(--n-box-shadow);")]),le("content-segmented",[N(">",[Q("content",{paddingTop:"var(--n-padding-bottom)"})])]),le("content-soft-segmented",[N(">",[Q("content",`
|
|||
|
|
margin: 0 var(--n-padding-left);
|
|||
|
|
padding: var(--n-padding-bottom) 0;
|
|||
|
|
`)])]),le("footer-segmented",[N(">",[Q("footer",{paddingTop:"var(--n-padding-bottom)"})])]),le("footer-soft-segmented",[N(">",[Q("footer",`
|
|||
|
|
padding: var(--n-padding-bottom) 0;
|
|||
|
|
margin: 0 var(--n-padding-left);
|
|||
|
|
`)])]),N(">",[Z("card-header",`
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
font-size: var(--n-title-font-size);
|
|||
|
|
padding:
|
|||
|
|
var(--n-padding-top)
|
|||
|
|
var(--n-padding-left)
|
|||
|
|
var(--n-padding-bottom)
|
|||
|
|
var(--n-padding-left);
|
|||
|
|
`,[Q("main",`
|
|||
|
|
font-weight: var(--n-title-font-weight);
|
|||
|
|
transition: color .3s var(--n-bezier);
|
|||
|
|
flex: 1;
|
|||
|
|
color: var(--n-title-text-color);
|
|||
|
|
`),Q("extra",`
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
font-size: var(--n-font-size);
|
|||
|
|
font-weight: 400;
|
|||
|
|
transition: color .3s var(--n-bezier);
|
|||
|
|
color: var(--n-text-color);
|
|||
|
|
`),Q("close",`
|
|||
|
|
margin: 0 0 0 8px;
|
|||
|
|
transition:
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
color .3s var(--n-bezier);
|
|||
|
|
`)]),Q("action",`
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
transition:
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
border-color .3s var(--n-bezier);
|
|||
|
|
background-clip: padding-box;
|
|||
|
|
background-color: var(--n-action-color);
|
|||
|
|
`),Q("content","flex: 1;"),Q("content, footer",`
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
|
|||
|
|
font-size: var(--n-font-size);
|
|||
|
|
`,[N("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),Q("action",`
|
|||
|
|
background-color: var(--n-action-color);
|
|||
|
|
padding: var(--n-padding-bottom) var(--n-padding-left);
|
|||
|
|
border-bottom-left-radius: var(--n-border-radius);
|
|||
|
|
border-bottom-right-radius: var(--n-border-radius);
|
|||
|
|
`)]),Z("card-cover",`
|
|||
|
|
overflow: hidden;
|
|||
|
|
width: 100%;
|
|||
|
|
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|||
|
|
`,[N("img",`
|
|||
|
|
display: block;
|
|||
|
|
width: 100%;
|
|||
|
|
`)]),le("bordered",`
|
|||
|
|
border: 1px solid var(--n-border-color);
|
|||
|
|
`,[N("&:target","border-color: var(--n-color-target);")]),le("action-segmented",[N(">",[Q("action",[N("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),le("content-segmented, content-soft-segmented",[N(">",[Q("content",{transition:"border-color 0.3s var(--n-bezier)"},[N("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),le("footer-segmented, footer-soft-segmented",[N(">",[Q("footer",{transition:"border-color 0.3s var(--n-bezier)"},[N("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),le("embedded",`
|
|||
|
|
background-color: var(--n-color-embedded);
|
|||
|
|
`)]),J2(Z("card",`
|
|||
|
|
background: var(--n-color-modal);
|
|||
|
|
`,[le("embedded",`
|
|||
|
|
background-color: var(--n-color-embedded-modal);
|
|||
|
|
`)])),eS(Z("card",`
|
|||
|
|
background: var(--n-color-popover);
|
|||
|
|
`,[le("embedded",`
|
|||
|
|
background-color: var(--n-color-embedded-popover);
|
|||
|
|
`)]))]),Fx={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},hoverable:Boolean,role:String,onClose:[Function,Array]},jL=sl(Fx),yE=Object.assign(Object.assign({},Ke.props),Fx),Nx=me({name:"Card",props:yE,setup(e){const t=()=>{const{onClose:c}=e;c&&tt(c)},{inlineThemeDisabled:r,mergedClsPrefixRef:o,mergedRtlRef:n}=Et(e),i=Ke("Card","-card",bE,Dx,e,o),s=bs("Card",n,o),a=V(()=>{const{size:c}=e,{self:{color:u,colorModal:d,colorTarget:f,textColor:p,titleTextColor:h,titleFontWeight:v,borderColor:x,actionColor:g,borderRadius:m,lineHeight:y,closeIconColor:b,closeIconColorHover:_,closeIconColorPressed:$,closeColorHover:w,closeColorPressed:S,closeBorderRadius:k,closeIconSize:C,closeSize:T,boxShadow:P,colorPopover:I,colorEmbedded:z,colorEmbeddedModal:D,colorEmbeddedPopover:B,[ye("padding",c)]:j,[ye("fontSize",c)]:re,[ye("titleFontSize",c)]:ue},common:{cubicBezierEaseInOut:ge}}=i.value,{top:F,left:U,bottom:G}=y2(j);return{"--n-bezier":ge,"--n-border-radius":m,"--n-color":u,"--n-color-modal":d,"--n-color-popover":I,"--n-color-embedded":z,"--n-color-embedded-modal":D,"--n-color-embedded-popover":B,"--n-color-target":f,"--n-text-color":p,"--n-line-height":y,"--n-action-color":g,"--n-title-text-color":h,"--n-title-font-weight":v,"--n-close-icon-color":b,"--n-close-icon-color-hover":_,"--n-close-icon-color-pressed":$,"--n-close-color-hover":w,"--n-close-color-pressed":S,"--n-border-color":x,"--n-box-shadow":P,"--n-padding-top":F,"--n-padding-bottom":G,"--n-padding-left":U,"--n-font-size":re,"--n-title-font-size":ue,"--n-close-size":T,"--n-close-icon-size":C,"--n-close-border-radius":k}}),l=r?fr("card",V(()=>e.size[0]),a,e):void 0;return{rtlEnabled:s,mergedClsPrefix:o,mergedTheme:i,handleCloseClick:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:r,mergedClsPrefix:o,rtlEnabled:n,onRender:i,embedded:s,$slots:a}=this;return i==null||i(),A("div",{class:[`${o}-card`,this.themeClass,s&&`${o}-card--embedded`,{[`${o}-card--rtl`]:n,[`${o}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${o}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${o}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${o}-card--bordered`]:t,[`${o}-card--hoverable`]:r}],style:this.cssVars,role:this.role},Xt(a.cover,l=>l&&A("div",{class:`${o}-card-cover`,role:"none"},l)),Xt(a.header,l=>l||this.title||this.closable?A("div",{class:`${o}-card-header`,style:this.headerStyle},A("div",{class:`${o}-card-header__main`,role:"heading"},l||this.title),Xt(a["header-extra"],c=>c&&A("div",{class:`${o}-card-header__extra`,style:this.headerExtraStyle},c)),this.closable?A(Yd,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Xt(a.default,l=>l&&A("div",{class:`${o}-card__content`,style:this.contentStyle,role:"none"},l)),Xt(a.footer,l=>l&&[A("div",{class:`${o}-card__footer`,style:this.footerStyle,role:"none"},l)]),Xt(a.action,l=>l&&A("div",{class:`${o}-card__action`,role:"none"},l)))}}),CE=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),wE={name:"Carousel",common:ce,self:CE},SE=wE,_E={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px"},jx=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:o,modalColor:n,popoverColor:i,textColorDisabled:s,borderColor:a,primaryColor:l,textColor2:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:h}=e;return Object.assign(Object.assign({},_E),{labelLineHeight:h,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:l,colorDis
|
|||
|
|
height: 1em;
|
|||
|
|
width: 1em;
|
|||
|
|
line-height: 1em;
|
|||
|
|
text-align: center;
|
|||
|
|
display: inline-block;
|
|||
|
|
position: relative;
|
|||
|
|
fill: currentColor;
|
|||
|
|
transform: translateZ(0);
|
|||
|
|
`,[le("color-transition",{transition:"color .3s var(--n-bezier)"}),le("depth",{color:"var(--n-color)"},[N("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),N("svg",{height:"1em",width:"1em"})]),yk=Object.assign(Object.assign({},Ke.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),Ck=me({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:yk,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Et(e),o=Ke("Icon","-icon",bk,vk,e,t),n=V(()=>{const{depth:s}=e,{common:{cubicBezierEaseInOut:a},self:l}=o.value;if(s!==void 0){const{color:c,[`opacity${s}Depth`]:u}=l;return{"--n-bezier":a,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":a,"--n-color":"","--n-opacity":""}}),i=r?fr("icon",V(()=>`${e.depth||"d"}`),n,e):void 0;return{mergedClsPrefix:t,mergedStyle:V(()=>{const{size:s,color:a}=e;return{fontSize:Qo(s),color:a}}),cssVars:r?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:o,component:n,onRender:i,themeClass:s}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Yi("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),A("i",cn(this.$attrs,{role:"img",class:[`${o}-icon`,s,{[`${o}-icon--depth`]:r,[`${o}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),n?A(n):this.$slots)}}),nf="n-dropdown-menu",xl="n-dropdown",Mh="n-dropdown-option";function Ru(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function wk(e){return e.type==="group"}function n1(e){return e.type==="divider"}function Sk(e){return e.type==="render"}const i1=me({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=$e(xl),{hoverKeyRef:r,keyboardKeyRef:o,lastToggledSubmenuKeyRef:n,pendingKeyPathRef:i,activeKeyPathRef:s,animatedRef:a,mergedShowRef:l,renderLabelRef:c,renderIconRef:u,labelFieldRef:d,childrenFieldRef:f,renderOptionRef:p,nodePropsRef:h,menuPropsRef:v}=t,x=$e(Mh,null),g=$e(nf),m=$e(cl),y=V(()=>e.tmNode.rawNode),b=V(()=>{const{value:j}=f;return Ru(e.tmNode.rawNode,j)}),_=V(()=>{const{disabled:j}=e.tmNode;return j}),$=V(()=>{if(!b.value)return!1;const{key:j,disabled:re}=e.tmNode;if(re)return!1;const{value:ue}=r,{value:ge}=o,{value:F}=n,{value:U}=i;return ue!==null?U.includes(j):ge!==null?U.includes(j)&&U[U.length-1]!==j:F!==null?U.includes(j):!1}),w=V(()=>o.value===null&&!a.value),S=nS($,300,w),k=V(()=>!!(x!=null&&x.enteringSubmenuRef.value)),C=ae(!1);Ue(Mh,{enteringSubmenuRef:C});function T(){C.value=!0}function P(){C.value=!1}function I(){const{parentKey:j,tmNode:re}=e;re.disabled||!l.value||(n.value=j,o.value=null,r.value=re.key)}function z(){const{tmNode:j}=e;j.disabled||!l.value||r.value!==j.key&&I()}function D(j){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:re}=j;re&&!S0({target:re},"dropdownOption")&&!S0({target:re},"scrollbarRail")&&(r.value=null)}function B(){const{value:j}=b,{tmNode:re}=e;!l.value||!j&&!re.disabled&&(t.doSelect(re.key,re.rawNode),t.doUpdateShow(!1))}return{labelField:d,renderLabel:c,renderIcon:u,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:v,popoverBody:m,animated:a,mergedShowSubmenu:V(()=>S.value&&!k.value),rawNode:y,hasSubmenu:b,pending:Rt(()=>{const{value:j}=i,{key:re}=e.tmNode;return j.includes(re)}),childActive:Rt(()=>{const{value:j}=s,{key:re}=e.tmNode,ue=j.findIndex(ge=>re===ge);return ue===-1?!1:ue<j.length-1}),active:Rt(()=>{const{value:j}=s,{key:re}=e.tmNode,ue=j.findIndex(ge=>re===ge);return ue===-1?!1:ue===j.length-1}),mergedDisabled:_,renderOption:p,nodeProps:h,handleClick:B,handleMouseMove:z,handleMouseEnter:I,handleMouseLeave:D,handleSubmenuBeforeEnter:T,handleSubmenuAfterEnter:P}},render(){var e,t;const{animated:r,rawNode:o,mergedShowSubmenu:n,clsPrefix:i,siblingHasIcon:s,siblingHasSubmenu:a,renderLabel:l,renderIcon:c,renderOption:u,nodeProps:d,props:f,scrollable:p}=t
|
|||
|
|
transform-origin: var(--v-transform-origin);
|
|||
|
|
background-color: var(--n-color);
|
|||
|
|
border-radius: var(--n-border-radius);
|
|||
|
|
box-shadow: var(--n-box-shadow);
|
|||
|
|
position: relative;
|
|||
|
|
transition:
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
box-shadow .3s var(--n-bezier);
|
|||
|
|
`,[$x(),Z("dropdown-option",`
|
|||
|
|
position: relative;
|
|||
|
|
`,[N("a",`
|
|||
|
|
text-decoration: none;
|
|||
|
|
color: inherit;
|
|||
|
|
outline: none;
|
|||
|
|
`,[N("&::before",`
|
|||
|
|
content: "";
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
`)]),Z("dropdown-option-body",`
|
|||
|
|
display: flex;
|
|||
|
|
cursor: pointer;
|
|||
|
|
position: relative;
|
|||
|
|
height: var(--n-option-height);
|
|||
|
|
line-height: var(--n-option-height);
|
|||
|
|
font-size: var(--n-font-size);
|
|||
|
|
color: var(--n-option-text-color);
|
|||
|
|
transition: color .3s var(--n-bezier);
|
|||
|
|
`,[N("&::before",`
|
|||
|
|
content: "";
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
left: 4px;
|
|||
|
|
right: 4px;
|
|||
|
|
transition: background-color .3s var(--n-bezier);
|
|||
|
|
border-radius: var(--n-border-radius);
|
|||
|
|
`),Dt("disabled",[le("pending",`
|
|||
|
|
color: var(--n-option-text-color-hover);
|
|||
|
|
`,[Q("prefix, suffix",`
|
|||
|
|
color: var(--n-option-text-color-hover);
|
|||
|
|
`),N("&::before","background-color: var(--n-option-color-hover);")]),le("active",`
|
|||
|
|
color: var(--n-option-text-color-active);
|
|||
|
|
`,[Q("prefix, suffix",`
|
|||
|
|
color: var(--n-option-text-color-active);
|
|||
|
|
`),N("&::before","background-color: var(--n-option-color-active);")]),le("child-active",`
|
|||
|
|
color: var(--n-option-text-color-child-active);
|
|||
|
|
`,[Q("prefix, suffix",`
|
|||
|
|
color: var(--n-option-text-color-child-active);
|
|||
|
|
`)])]),le("disabled",`
|
|||
|
|
cursor: not-allowed;
|
|||
|
|
opacity: var(--n-option-opacity-disabled);
|
|||
|
|
`),le("group",`
|
|||
|
|
font-size: calc(var(--n-font-size) - 1px);
|
|||
|
|
color: var(--n-group-header-text-color);
|
|||
|
|
`,[Q("prefix",`
|
|||
|
|
width: calc(var(--n-option-prefix-width) / 2);
|
|||
|
|
`,[le("show-icon",`
|
|||
|
|
width: calc(var(--n-option-icon-prefix-width) / 2);
|
|||
|
|
`)])]),Q("prefix",`
|
|||
|
|
width: var(--n-option-prefix-width);
|
|||
|
|
display: flex;
|
|||
|
|
justify-content: center;
|
|||
|
|
align-items: center;
|
|||
|
|
color: var(--n-prefix-color);
|
|||
|
|
transition: color .3s var(--n-bezier);
|
|||
|
|
z-index: 1;
|
|||
|
|
`,[le("show-icon",`
|
|||
|
|
width: var(--n-option-icon-prefix-width);
|
|||
|
|
`),Z("icon",`
|
|||
|
|
font-size: var(--n-option-icon-size);
|
|||
|
|
`)]),Q("label",`
|
|||
|
|
white-space: nowrap;
|
|||
|
|
flex: 1;
|
|||
|
|
z-index: 1;
|
|||
|
|
`),Q("suffix",`
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
flex-grow: 0;
|
|||
|
|
flex-shrink: 0;
|
|||
|
|
display: flex;
|
|||
|
|
justify-content: flex-end;
|
|||
|
|
align-items: center;
|
|||
|
|
min-width: var(--n-option-suffix-width);
|
|||
|
|
padding: 0 8px;
|
|||
|
|
transition: color .3s var(--n-bezier);
|
|||
|
|
color: var(--n-suffix-color);
|
|||
|
|
z-index: 1;
|
|||
|
|
`,[le("has-submenu",`
|
|||
|
|
width: var(--n-option-icon-suffix-width);
|
|||
|
|
`),Z("icon",`
|
|||
|
|
font-size: var(--n-option-icon-size);
|
|||
|
|
`)]),Z("dropdown-menu","pointer-events: all;")]),Z("dropdown-offset-container",`
|
|||
|
|
pointer-events: none;
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
top: -4px;
|
|||
|
|
bottom: -4px;
|
|||
|
|
`)]),Z("dropdown-divider",`
|
|||
|
|
transition: background-color .3s var(--n-bezier);
|
|||
|
|
background-color: var(--n-divider-color);
|
|||
|
|
height: 1px;
|
|||
|
|
margin: 4px 0;
|
|||
|
|
`),Z("dropdown-menu-wrapper",`
|
|||
|
|
transform-origin: var(--v-transform-origin);
|
|||
|
|
width: fit-content;
|
|||
|
|
`),N(">",[Z("scrollbar",`
|
|||
|
|
height: inherit;
|
|||
|
|
max-height: inherit;
|
|||
|
|
`)]),Dt("scrollable",`
|
|||
|
|
padding: var(--n-padding);
|
|||
|
|
`),le("scrollable",[Q("content",`
|
|||
|
|
padding: var(--n-padding);
|
|||
|
|
`)])]),Ek={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},kk=Object.keys(ml),Ak=Object.assign(Object.assign(Object.assign({},ml),Ek),Ke.props),a1=me({name:"Dropdown",inheritAttrs:!1,props:Ak,setup(e){const t=ae(!1),r=Xn(Me(e,"show"),t),o=V(()=>{const{keyField:P,childrenField:I}=e;return mx(e.options,{getKey(z){return z[P]},getDisabled(z){return z.disabled===!0},getIgnored(z){return z.type==="divider"||z.type==="render"},getChildren(z){return z[I]}})}),n=V(()=>o.value.treeNodes),i=ae(null),s=ae(null),a=ae(null),l=V(()=>{var P,I,z;return(z=(I=(P=i.value)!==null&&P!==void 0?P:s.value)!==null&&I!==void 0?I:a.value)!==null&&z!==void 0?z:null}),c=V(()=>o.value.getPath(l.value).keyPath),u=V(()=>o.value.getPath(e.value).keyPath),d=Rt(()=>e.keyboard&&r.value);vS({keydown:{ArrowUp:{prevent:!0,handler:_},ArrowRight:{prevent:!0,handler:b},ArrowDown:{prevent:!0,handler:$},ArrowLeft:{prevent:!0,handler:y},Enter:{prevent:!0,handler:w},Escape:m}},d);const{mergedClsPrefixRef:f,inlineThemeDisabled:p}=Et(e),h=Ke("Dropdown","-dropdown",Pk,tf,e,f);Ue(xl,{labelFieldRef:Me(e,"labelField"),childrenFieldRef:Me(e,"childrenField"),renderLabelRef:Me(e,"renderLabel"),renderIconRef:Me(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:s,lastToggledSubmenuKeyRef:a,pendingKeyPathRef:c,activeKeyPathRef:u,animatedRef:Me(e,"animated"),mergedShowRef:r,nodePropsRef:Me(e,"nodeProps"),renderOptionRef:Me(e,"renderOption"),menuPropsRef:Me(e,"menuProps"),doSelect:v,doUpdateShow:x}),ot(r,P=>{!e.animated&&!P&&g()});function v(P,I){const{onSelect:z}=e;z&&tt(z,P,I)}function x(P){const{"onUpdate:show":I,onUpdateShow:z}=e;I&&tt(I,P),z&&tt(z,P),t.value=P}function g(){i.value=null,s.value=null,a.value=null}function m(){x(!1)}function y(){k("left")}function b(){k("right")}function _(){k("up")}function $(){k("down")}function w(){const P=S();(P==null?void 0:P.isLeaf)&&r.value&&(v(P.key,P.rawNode),x(!1))}function S(){var P;const{value:I}=o,{value:z}=l;return!I||z===null?null:(P=I.getNode(z))!==null&&P!==void 0?P:null}function k(P){const{value:I}=l,{value:{getFirstAvailableNode:z}}=o;let D=null;if(I===null){const B=z();B!==null&&(D=B.key)}else{const B=S();if(B){let j;switch(P){case"down":j=B.getNext();break;case"up":j=B.getPrev();break;case"right":j=B.getChild();break;case"left":j=B.getParent();break}j&&(D=j.key)}}D!==null&&(i.value=null,s.value=D)}const C=V(()=>{const{size:P,inverted:I}=e,{common:{cubicBezierEaseInOut:z},self:D}=h.value,{padding:B,dividerColor:j,borderRadius:re,optionOpacityDisabled:ue,[ye("optionIconSuffixWidth",P)]:ge,[ye("optionSuffixWidth",P)]:F,[ye("optionIconPrefixWidth",P)]:U,[ye("optionPrefixWidth",P)]:G,[ye("fontSize",P)]:J,[ye("optionHeight",P)]:L,[ye("optionIconSize",P)]:q}=D,X={"--n-bezier":z,"--n-font-size":J,"--n-padding":B,"--n-border-radius":re,"--n-option-height":L,"--n-option-prefix-width":G,"--n-option-icon-prefix-width":U,"--n-option-suffix-width":F,"--n-option-icon-suffix-width":ge,"--n-option-icon-size":q,"--n-divider-color":j,"--n-option-opacity-disabled":ue};return I?(X["--n-color"]=D.colorInverted,X["--n-option-color-hover"]=D.optionColorHoverInverted,X["--n-option-color-active"]=D.optionColorActiveInverted,X["--n-option-text-color"]=D.optionTextColorInverted,X["--n-option-text-color-hover"]=D.optionTextColorHoverInverted,X["--n-option-text-color-active"]=D.optionTextColorActiveInverted,X["--n-option-text-color-child-active"]=D.optionTextColorChildActiveInverted,X["--n-prefix-color"]=D.prefixColorInverted,X["--n-suffix-color"]=D.suffixColorInverted,X["--n-group-header-text-color"]=D.groupHeaderTextColorInverted):(X["--n-color"]=D.color,X["--n-option-color-hover"]=D.optionColorHover,X["--n-option-col
|
|||
|
|
position: fixed;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
display: flex;
|
|||
|
|
`),Z("image-preview-overlay",`
|
|||
|
|
z-index: -1;
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
background: rgba(0, 0, 0, .3);
|
|||
|
|
`,[Au()]),Z("image-preview-toolbar",`
|
|||
|
|
z-index: 1;
|
|||
|
|
position: absolute;
|
|||
|
|
left: 50%;
|
|||
|
|
transform: translateX(-50%);
|
|||
|
|
border-radius: var(--n-toolbar-border-radius);
|
|||
|
|
height: 48px;
|
|||
|
|
bottom: 40px;
|
|||
|
|
padding: 0 12px;
|
|||
|
|
background: var(--n-toolbar-color);
|
|||
|
|
box-shadow: var(--n-toolbar-box-shadow);
|
|||
|
|
color: var(--n-toolbar-icon-color);
|
|||
|
|
transition: color .3s var(--n-bezier);
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
`,[Z("base-icon",`
|
|||
|
|
padding: 0 8px;
|
|||
|
|
font-size: 28px;
|
|||
|
|
cursor: pointer;
|
|||
|
|
`),Au()]),Z("image-preview-wrapper",`
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
display: flex;
|
|||
|
|
pointer-events: none;
|
|||
|
|
`,[$x()]),Z("image-preview",`
|
|||
|
|
user-select: none;
|
|||
|
|
-webkit-user-select: none;
|
|||
|
|
pointer-events: all;
|
|||
|
|
margin: auto;
|
|||
|
|
max-height: calc(100vh - 32px);
|
|||
|
|
max-width: calc(100vw - 32px);
|
|||
|
|
transition: transform .3s var(--n-bezier);
|
|||
|
|
`),Z("image",`
|
|||
|
|
display: inline-flex;
|
|||
|
|
max-height: 100%;
|
|||
|
|
max-width: 100%;
|
|||
|
|
`,[Dt("preview-disabled",`
|
|||
|
|
cursor: pointer;
|
|||
|
|
`),N("img",`
|
|||
|
|
border-radius: inherit;
|
|||
|
|
`)])]),js=32,w1=me({name:"ImagePreview",props:Object.assign(Object.assign({},sf),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Ke("Image","-image",xz,TA,e,Me(e,"clsPrefix"));let r=null;const o=ae(null),n=ae(null),i=ae(void 0),s=ae(!1),a=ae(!1),{localeRef:l}=eT("Image");function c(){const{value:ne}=n;if(!r||!ne)return;const{style:E}=ne,R=r.getBoundingClientRect(),H=R.left+R.width/2,O=R.top+R.height/2;E.transformOrigin=`${H}px ${O}px`}function u(ne){var E,R;switch(ne.key){case"ArrowLeft":(E=e.onPrev)===null||E===void 0||E.call(e);break;case"ArrowRight":(R=e.onNext)===null||R===void 0||R.call(e);break;case"Escape":J();break}}ot(s,ne=>{ne?lt("keydown",document,u):Ze("keydown",document,u)}),Pt(()=>{Ze("keydown",document,u)});let d=0,f=0,p=0,h=0,v=0,x=0,g=0,m=0,y=!1;function b(ne){const{clientX:E,clientY:R}=ne;p=E-d,h=R-f,ng(G)}function _(ne){const{mouseUpClientX:E,mouseUpClientY:R,mouseDownClientX:H,mouseDownClientY:O}=ne,M=H-E,W=O-R,Y=`vertical${W>0?"Top":"Bottom"}`,te=`horizontal${M>0?"Left":"Right"}`;return{moveVerticalDirection:Y,moveHorizontalDirection:te,deltaHorizontal:M,deltaVertical:W}}function $(ne){const{value:E}=o;if(!E)return{offsetX:0,offsetY:0};const R=E.getBoundingClientRect(),{moveVerticalDirection:H,moveHorizontalDirection:O,deltaHorizontal:M,deltaVertical:W}=ne||{};let Y=0,te=0;return R.width<=window.innerWidth?Y=0:R.left>0?Y=(R.width-window.innerWidth)/2:R.right<window.innerWidth?Y=-(R.width-window.innerWidth)/2:O==="horizontalRight"?Y=Math.min((R.width-window.innerWidth)/2,v-(M!=null?M:0)):Y=Math.max(-((R.width-window.innerWidth)/2),v-(M!=null?M:0)),R.height<=window.innerHeight?te=0:R.top>0?te=(R.height-window.innerHeight)/2:R.bottom<window.innerHeight?te=-(R.height-window.innerHeight)/2:H==="verticalBottom"?te=Math.min((R.height-window.innerHeight)/2,x-(W!=null?W:0)):te=Math.max(-((R.height-window.innerHeight)/2),x-(W!=null?W:0)),{offsetX:Y,offsetY:te}}function w(ne){Ze("mousemove",document,b),Ze("mouseup",document,w);const{clientX:E,clientY:R}=ne;y=!1;const H=_({mouseUpClientX:E,mouseUpClientY:R,mouseDownClientX:g,mouseDownClientY:m}),O=$(H);p=O.offsetX,h=O.offsetY,G()}function S(ne){const{clientX:E,clientY:R}=ne;y=!0,d=E-p,f=R-h,v=p,x=h,g=E,m=R,G(),lt("mousemove",document,b),lt("mouseup",document,w)}function k(){const ne=ge();P=P===ne?1:ne,G()}const C=1.5;let T=0,P=1,I=0;function z(){P=1,T=0}function D(){var ne;z(),I=0,(ne=e.onPrev)===null||ne===void 0||ne.call(e)}function B(){var ne;z(),I=0,(ne=e.onNext)===null||ne===void 0||ne.call(e)}function j(){I-=90,G()}function re(){I+=90,G()}function ue(){const{value:ne}=o;if(!ne)return 1;const{innerWidth:E,innerHeight:R}=window,H=Math.max(1,ne.naturalHeight/(R-js)),O=Math.max(1,ne.naturalWidth/(E-js));return Math.max(3,H*2,O*2)}function ge(){const{value:ne}=o;if(!ne)return 1;const{innerWidth:E,innerHeight:R}=window,H=ne.naturalHeight/(R-js),O=ne.naturalWidth/(E-js);return H<1&&O<1?1:Math.max(H,O)}function F(){const ne=ue();P<ne&&(T+=1,P=Math.min(ne,Math.pow(C,T)),G())}function U(){if(P>.5){const ne=P;T-=1,P=Math.max(.5,Math.pow(C,T));const E=ne-P;G(!1);const R=$();P+=E,G(!1),P-=E,p=R.offsetX,h=R.offsetY,G()}}function G(ne=!0){const{value:E}=o;if(!E)return;const{style:R}=E,H=`transform-origin: center; transform: translateX(${p}px) translateY(${h}px) rotate(${I}deg) scale(${P});`;y?R.cssText="cursor: grabbing; transition: none;"+H:R.cssText="cursor: grab;"+H+(ne?"":"transition: none;"),ne||E.offsetHeight}function J(){s.value=!s.value,a.value=!0}function L(){P=ge(),T=Math.ceil(Math.log(P)/Math.log(C)),p=0,h=0,G()}const q={setPreviewSrc:ne=>{i.value=ne},setThumbnailEl:ne=>{r=ne},toggleShow:J};function X(ne,E){if(e.showToolbarTooltip){const{value:R}=t;return A(of,{to:!1,theme:R.peers.Tooltip,themeOverrides:R.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>l.value[E],trigger:()=>ne})}else return ne}const ie=V(()=>{const{common:{cubicBezierEaseInOut:ne},self:{toolbarIconColor:E,toolbarBorderRadius:R,toolbarBoxShadow:H,toolbarColor:O}}=t.value;return{"--n-bezier":ne,"--n-toolbar-icon-color":E,"--n-toolbar-color":O,"-
|
|||
|
|
color: var(--n-text-color);
|
|||
|
|
background-color: var(--n-color);
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
position: relative;
|
|||
|
|
z-index: auto;
|
|||
|
|
flex: auto;
|
|||
|
|
overflow: hidden;
|
|||
|
|
transition:
|
|||
|
|
box-shadow .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
color .3s var(--n-bezier);
|
|||
|
|
`,[Z("layout-scroll-container",`
|
|||
|
|
overflow-x: hidden;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
height: 100%;
|
|||
|
|
`),le("absolute-positioned",`
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
`)]),wz={embedded:Boolean,position:T1,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},P1="n-layout";function Sz(e){return me({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Ke.props),wz),setup(t){const r=ae(null),o=ae(null),{mergedClsPrefixRef:n,inlineThemeDisabled:i}=Et(t),s=Ke("Layout","-layout",Cz,g1,t,n);function a(v,x){if(t.nativeScrollbar){const{value:g}=r;g&&(x===void 0?g.scrollTo(v):g.scrollTo(v,x))}else{const{value:g}=o;g&&g.scrollTo(v,x)}}Ue(P1,t);let l=0,c=0;const u=v=>{var x;const g=v.target;l=g.scrollLeft,c=g.scrollTop,(x=t.onScroll)===null||x===void 0||x.call(t,v)};Bd(()=>{if(t.nativeScrollbar){const v=r.value;v&&(v.scrollTop=c,v.scrollLeft=l)}});const d={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:a},p=V(()=>{const{common:{cubicBezierEaseInOut:v},self:x}=s.value;return{"--n-bezier":v,"--n-color":t.embedded?x.colorEmbedded:x.color,"--n-text-color":x.textColor}}),h=i?fr("layout",V(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:r,scrollbarInstRef:o,hasSiderStyle:d,mergedTheme:s,handleNativeElScroll:u,cssVars:i?void 0:p,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender},f)},render(){var t;const{mergedClsPrefix:r,hasSider:o}=this;(t=this.onRender)===null||t===void 0||t.call(this);const n=o?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${r}-layout-content`,`${r}-layout`,`${r}-layout--${this.position}-positioned`];return A("div",{class:i,style:this.cssVars},this.nativeScrollbar?A("div",{ref:"scrollableElRef",class:`${r}-layout-scroll-container`,style:[this.contentStyle,n],onScroll:this.handleNativeElScroll},this.$slots):A(Cx,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,n]}),this.$slots))}})}const _z=Sz(!1),$z=Z("layout-sider",`
|
|||
|
|
flex-shrink: 0;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
position: relative;
|
|||
|
|
z-index: 1;
|
|||
|
|
color: var(--n-text-color);
|
|||
|
|
transition:
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
border-color .3s var(--n-bezier),
|
|||
|
|
min-width .3s var(--n-bezier),
|
|||
|
|
max-width .3s var(--n-bezier),
|
|||
|
|
transform .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier);
|
|||
|
|
background-color: var(--n-color);
|
|||
|
|
display: flex;
|
|||
|
|
justify-content: flex-end;
|
|||
|
|
`,[le("bordered",[Q("border",`
|
|||
|
|
content: "";
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
width: 1px;
|
|||
|
|
background-color: var(--n-border-color);
|
|||
|
|
transition: background-color .3s var(--n-bezier);
|
|||
|
|
`)]),Q("left-placement",[le("bordered",[Q("border",`
|
|||
|
|
right: 0;
|
|||
|
|
`)])]),le("right-placement",`
|
|||
|
|
justify-content: flex-start;
|
|||
|
|
`,[le("bordered",[Q("border",`
|
|||
|
|
left: 0;
|
|||
|
|
`)]),le("collapsed",[Z("layout-toggle-button",[Z("base-icon",`
|
|||
|
|
transform: rotate(180deg);
|
|||
|
|
`)]),Z("layout-toggle-bar",[N("&:hover",[Q("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),Q("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),Z("layout-toggle-button",`
|
|||
|
|
left: 0;
|
|||
|
|
transform: translateX(-50%) translateY(-50%);
|
|||
|
|
`,[Z("base-icon",`
|
|||
|
|
transform: rotate(0);
|
|||
|
|
`)]),Z("layout-toggle-bar",`
|
|||
|
|
left: -28px;
|
|||
|
|
transform: rotate(180deg);
|
|||
|
|
`,[N("&:hover",[Q("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),Q("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),le("collapsed",[Z("layout-toggle-bar",[N("&:hover",[Q("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),Q("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),Z("layout-toggle-button",[Z("base-icon",`
|
|||
|
|
transform: rotate(0);
|
|||
|
|
`)])]),Z("layout-toggle-button",`
|
|||
|
|
transition:
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
right .3s var(--n-bezier),
|
|||
|
|
left .3s var(--n-bezier),
|
|||
|
|
border-color .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier);
|
|||
|
|
cursor: pointer;
|
|||
|
|
width: 24px;
|
|||
|
|
height: 24px;
|
|||
|
|
position: absolute;
|
|||
|
|
top: 50%;
|
|||
|
|
right: 0;
|
|||
|
|
border-radius: 50%;
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: center;
|
|||
|
|
font-size: 18px;
|
|||
|
|
color: var(--n-toggle-button-icon-color);
|
|||
|
|
border: var(--n-toggle-button-border);
|
|||
|
|
background-color: var(--n-toggle-button-color);
|
|||
|
|
box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);
|
|||
|
|
transform: translateX(50%) translateY(-50%);
|
|||
|
|
z-index: 1;
|
|||
|
|
`,[Z("base-icon",`
|
|||
|
|
transition: transform .3s var(--n-bezier);
|
|||
|
|
transform: rotate(180deg);
|
|||
|
|
`)]),Z("layout-toggle-bar",`
|
|||
|
|
cursor: pointer;
|
|||
|
|
height: 72px;
|
|||
|
|
width: 32px;
|
|||
|
|
position: absolute;
|
|||
|
|
top: calc(50% - 36px);
|
|||
|
|
right: -28px;
|
|||
|
|
`,[Q("top, bottom",`
|
|||
|
|
position: absolute;
|
|||
|
|
width: 4px;
|
|||
|
|
border-radius: 2px;
|
|||
|
|
height: 38px;
|
|||
|
|
left: 14px;
|
|||
|
|
transition:
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
transform .3s var(--n-bezier);
|
|||
|
|
`),Q("bottom",`
|
|||
|
|
position: absolute;
|
|||
|
|
top: 34px;
|
|||
|
|
`),N("&:hover",[Q("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),Q("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),Q("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),N("&:hover",[Q("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),Q("border",`
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
right: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
width: 1px;
|
|||
|
|
transition: background-color .3s var(--n-bezier);
|
|||
|
|
`),Z("layout-sider-scroll-container",`
|
|||
|
|
flex-grow: 1;
|
|||
|
|
flex-shrink: 0;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
height: 100%;
|
|||
|
|
opacity: 0;
|
|||
|
|
transition: opacity .3s var(--n-bezier);
|
|||
|
|
max-width: 100%;
|
|||
|
|
`),le("show-content",[Z("layout-sider-scroll-container",{opacity:1})]),le("absolute-positioned",`
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
`)]),Tz=me({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return A("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},A(qt,{clsPrefix:e},{default:()=>A(dx,null)}))}}),Pz=me({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return A("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},A("div",{class:`${e}-layout-toggle-bar__top`}),A("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),Ez={position:T1,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},E1=me({name:"LayoutSider",props:Object.assign(Object.assign({},Ke.props),Ez),setup(e){const t=$e(P1),r=ae(null),o=ae(null),n=V(()=>Qo(l.value?e.collapsedWidth:e.width)),i=V(()=>e.collapseMode!=="transform"?{}:{minWidth:Qo(e.width)}),s=V(()=>t?t.siderPlacement:"left"),a=ae(e.defaultCollapsed),l=Xn(Me(e,"collapsed"),a);function c(_,$){if(e.nativeScrollbar){const{value:w}=r;w&&($===void 0?w.scrollTo(_):w.scrollTo(_,$))}else{const{value:w}=o;w&&w.scrollTo(_,$)}}function u(){const{"onUpdate:collapsed":_,onUpdateCollapsed:$,onExpand:w,onCollapse:S}=e,{value:k}=l;$&&tt($,!k),_&&tt(_,!k),a.value=!k,k?w&&tt(w):S&&tt(S)}let d=0,f=0;const p=_=>{var $;const w=_.target;d=w.scrollLeft,f=w.scrollTop,($=e.onScroll)===null||$===void 0||$.call(e,_)};Bd(()=>{if(e.nativeScrollbar){const _=r.value;_&&(_.scrollTop=f,_.scrollLeft=d)}}),Ue($1,{collapsedRef:l,collapseModeRef:Me(e,"collapseMode")});const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=Et(e),x=Ke("Layout","-layout-sider",$z,g1,e,h);function g(_){var $,w;_.propertyName==="max-width"&&(l.value?($=e.onAfterLeave)===null||$===void 0||$.call(e):(w=e.onAfterEnter)===null||w===void 0||w.call(e))}const m={scrollTo:c},y=V(()=>{const{common:{cubicBezierEaseInOut:_},self:$}=x.value,{siderToggleButtonColor:w,siderToggleButtonBorder:S,siderToggleBarColor:k,siderToggleBarColorHover:C}=$,T={"--n-bezier":_,"--n-toggle-button-color":w,"--n-toggle-button-border":S,"--n-toggle-bar-color":k,"--n-toggle-bar-color-hover":C};return e.inverted?(T["--n-color"]=$.siderColorInverted,T["--n-text-color"]=$.textColorInverted,T["--n-border-color"]=$.siderBorderColorInverted,T["--n-toggle-button-icon-color"]=$.siderToggleButtonIconColorInverted,T.__invertScrollbar=$.__invertScrollbar):(T["--n-color"]=$.siderColor,T["--n-text-color"]=$.textColor,T["--n-border-color"]=$.siderBorderColor,T["--n-toggle-button-icon-color"]=$.siderToggleButtonIconColor),T}),b=v?fr("layout-sider",V(()=>e.inverted?"a":"b"),y,e):void 0;return Object.assign({scrollableElRef:r,scrollbarInstRef:o,mergedClsPrefix:h,mergedTheme:x,styleMaxWidth:n,mergedCollapsed:l,scrollContainerStyle:i,siderPlacement:s,handleNativeElScroll:p,handleTransitionend:g,handleTriggerClick:u,inlineThemeDisabled:v,cssVars:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender},m)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:r,showTrigger:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),A("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,r&&`${t}-layout-sider--collapsed`,(!r||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Qo(this.
|
|||
|
|
color: var(--n-arrow-color-hover);
|
|||
|
|
`),Q("icon",`
|
|||
|
|
color: var(--n-item-icon-color-hover);
|
|||
|
|
`),Z("menu-item-content-header",`
|
|||
|
|
color: var(--n-item-text-color-hover);
|
|||
|
|
`,[N("a",`
|
|||
|
|
color: var(--n-item-text-color-hover);
|
|||
|
|
`),Q("extra",`
|
|||
|
|
color: var(--n-item-text-color-hover);
|
|||
|
|
`)])],Dh=[Q("icon",`
|
|||
|
|
color: var(--n-item-icon-color-hover-horizontal);
|
|||
|
|
`),Z("menu-item-content-header",`
|
|||
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|||
|
|
`,[N("a",`
|
|||
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|||
|
|
`),Q("extra",`
|
|||
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|||
|
|
`)])],Fz=N([Z("menu",`
|
|||
|
|
background-color: var(--n-color);
|
|||
|
|
color: var(--n-item-text-color);
|
|||
|
|
overflow: hidden;
|
|||
|
|
transition: background-color .3s var(--n-bezier);
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
font-size: var(--n-font-size);
|
|||
|
|
padding-bottom: 6px;
|
|||
|
|
`,[le("horizontal",`
|
|||
|
|
display: inline-flex;
|
|||
|
|
padding-bottom: 0;
|
|||
|
|
`,[Z("submenu","margin: 0;"),Z("menu-item","margin: 0;"),Z("menu-item-content",`
|
|||
|
|
padding: 0 20px;
|
|||
|
|
border-bottom: 2px solid #0000;
|
|||
|
|
`,[N("&::before","display: none;"),le("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),Z("menu-item-content",[le("selected",[Q("icon","color: var(--n-item-icon-color-active-horizontal);"),Z("menu-item-content-header",`
|
|||
|
|
color: var(--n-item-text-color-active-horizontal);
|
|||
|
|
`,[N("a","color: var(--n-item-text-color-active-horizontal);"),Q("extra","color: var(--n-item-text-color-active-horizontal);")])]),le("child-active",`
|
|||
|
|
border-bottom: 2px solid var(--n-border-color-horizontal);
|
|||
|
|
`,[Z("menu-item-content-header",`
|
|||
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|||
|
|
`,[N("a",`
|
|||
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|||
|
|
`),Q("extra",`
|
|||
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|||
|
|
`)]),Q("icon",`
|
|||
|
|
color: var(--n-item-icon-color-child-active-horizontal);
|
|||
|
|
`)]),Dt("disabled",[Dt("selected, child-active",[N("&:focus-within",Dh)]),le("selected",[Do(null,[Q("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),Z("menu-item-content-header",`
|
|||
|
|
color: var(--n-item-text-color-active-hover-horizontal);
|
|||
|
|
`,[N("a","color: var(--n-item-text-color-active-hover-horizontal);"),Q("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),le("child-active",[Do(null,[Q("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),Z("menu-item-content-header",`
|
|||
|
|
color: var(--n-item-text-color-child-active-hover-horizontal);
|
|||
|
|
`,[N("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),Q("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Do("border-bottom: 2px solid var(--n-border-color-horizontal);",Dh)]),Z("menu-item-content-header",[N("a","color: var(--n-item-text-color-horizontal);")])])]),le("collapsed",[Z("menu-item-content",[le("selected",[N("&::before",`
|
|||
|
|
background-color: var(--n-item-color-active-collapsed) !important;
|
|||
|
|
`)]),Z("menu-item-content-header","opacity: 0;"),Q("arrow","opacity: 0;"),Q("icon","color: var(--n-item-icon-color-collapsed);")])]),Z("menu-item",`
|
|||
|
|
height: var(--n-item-height);
|
|||
|
|
margin-top: 6px;
|
|||
|
|
position: relative;
|
|||
|
|
`),Z("menu-item-content",`
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
line-height: 1.75;
|
|||
|
|
height: 100%;
|
|||
|
|
display: grid;
|
|||
|
|
grid-template-areas: "icon content arrow";
|
|||
|
|
grid-template-columns: auto 1fr auto;
|
|||
|
|
align-items: center;
|
|||
|
|
cursor: pointer;
|
|||
|
|
position: relative;
|
|||
|
|
padding-right: 18px;
|
|||
|
|
transition:
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
padding-left .3s var(--n-bezier),
|
|||
|
|
border-color .3s var(--n-bezier);
|
|||
|
|
`,[N("> *","z-index: 1;"),N("&::before",`
|
|||
|
|
z-index: auto;
|
|||
|
|
content: "";
|
|||
|
|
background-color: #0000;
|
|||
|
|
position: absolute;
|
|||
|
|
left: 8px;
|
|||
|
|
right: 8px;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
pointer-events: none;
|
|||
|
|
border-radius: var(--n-border-radius);
|
|||
|
|
transition: background-color .3s var(--n-bezier);
|
|||
|
|
`),le("disabled",`
|
|||
|
|
opacity: .45;
|
|||
|
|
cursor: not-allowed;
|
|||
|
|
`),le("collapsed",[Q("arrow","transform: rotate(0);")]),le("selected",[N("&::before","background-color: var(--n-item-color-active);"),Q("arrow","color: var(--n-arrow-color-active);"),Q("icon","color: var(--n-item-icon-color-active);"),Z("menu-item-content-header",`
|
|||
|
|
color: var(--n-item-text-color-active);
|
|||
|
|
`,[N("a","color: var(--n-item-text-color-active);"),Q("extra","color: var(--n-item-text-color-active);")])]),le("child-active",[Z("menu-item-content-header",`
|
|||
|
|
color: var(--n-item-text-color-child-active);
|
|||
|
|
`,[N("a",`
|
|||
|
|
color: var(--n-item-text-color-child-active);
|
|||
|
|
`),Q("extra",`
|
|||
|
|
color: var(--n-item-text-color-child-active);
|
|||
|
|
`)]),Q("arrow",`
|
|||
|
|
color: var(--n-arrow-color-child-active);
|
|||
|
|
`),Q("icon",`
|
|||
|
|
color: var(--n-item-icon-color-child-active);
|
|||
|
|
`)]),Dt("disabled",[Dt("selected, child-active",[N("&:focus-within",Hh)]),le("selected",[Do(null,[Q("arrow","color: var(--n-arrow-color-active-hover);"),Q("icon","color: var(--n-item-icon-color-active-hover);"),Z("menu-item-content-header",`
|
|||
|
|
color: var(--n-item-text-color-active-hover);
|
|||
|
|
`,[N("a","color: var(--n-item-text-color-active-hover);"),Q("extra","color: var(--n-item-text-color-active-hover);")])])]),le("child-active",[Do(null,[Q("arrow","color: var(--n-arrow-color-child-active-hover);"),Q("icon","color: var(--n-item-icon-color-child-active-hover);"),Z("menu-item-content-header",`
|
|||
|
|
color: var(--n-item-text-color-child-active-hover);
|
|||
|
|
`,[N("a","color: var(--n-item-text-color-child-active-hover);"),Q("extra","color: var(--n-item-text-color-child-active-hover);")])])]),le("selected",[Do(null,[N("&::before","background-color: var(--n-item-color-active-hover);")])]),Do(null,Hh)]),Q("icon",`
|
|||
|
|
grid-area: icon;
|
|||
|
|
color: var(--n-item-icon-color);
|
|||
|
|
transition:
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
font-size .3s var(--n-bezier),
|
|||
|
|
margin-right .3s var(--n-bezier);
|
|||
|
|
box-sizing: content-box;
|
|||
|
|
display: inline-flex;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: center;
|
|||
|
|
`),Q("arrow",`
|
|||
|
|
grid-area: arrow;
|
|||
|
|
font-size: 16px;
|
|||
|
|
color: var(--n-arrow-color);
|
|||
|
|
transform: rotate(180deg);
|
|||
|
|
opacity: 1;
|
|||
|
|
transition:
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
transform 0.2s var(--n-bezier),
|
|||
|
|
opacity 0.2s var(--n-bezier);
|
|||
|
|
`),Z("menu-item-content-header",`
|
|||
|
|
grid-area: content;
|
|||
|
|
transition:
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
opacity .3s var(--n-bezier);
|
|||
|
|
opacity: 1;
|
|||
|
|
white-space: nowrap;
|
|||
|
|
overflow: hidden;
|
|||
|
|
text-overflow: ellipsis;
|
|||
|
|
color: var(--n-item-text-color);
|
|||
|
|
`,[N("a",`
|
|||
|
|
outline: none;
|
|||
|
|
text-decoration: none;
|
|||
|
|
transition: color .3s var(--n-bezier);
|
|||
|
|
color: var(--n-item-text-color);
|
|||
|
|
`,[N("&::before",`
|
|||
|
|
content: "";
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
`)]),Q("extra",`
|
|||
|
|
font-size: .93em;
|
|||
|
|
color: var(--n-group-text-color);
|
|||
|
|
transition: color .3s var(--n-bezier);
|
|||
|
|
`)])]),Z("submenu",`
|
|||
|
|
cursor: pointer;
|
|||
|
|
position: relative;
|
|||
|
|
margin-top: 6px;
|
|||
|
|
`,[Z("menu-item-content",`
|
|||
|
|
height: var(--n-item-height);
|
|||
|
|
`),Z("submenu-children",`
|
|||
|
|
overflow: hidden;
|
|||
|
|
padding: 0;
|
|||
|
|
`,[zx({duration:".2s"})])]),Z("menu-item-group",[Z("menu-item-group-title",`
|
|||
|
|
margin-top: 6px;
|
|||
|
|
color: var(--n-group-text-color);
|
|||
|
|
cursor: default;
|
|||
|
|
font-size: .93em;
|
|||
|
|
height: 36px;
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
transition:
|
|||
|
|
padding-left .3s var(--n-bezier),
|
|||
|
|
color .3s var(--n-bezier);
|
|||
|
|
`)])]),Z("menu-tooltip",[N("a",`
|
|||
|
|
color: inherit;
|
|||
|
|
text-decoration: none;
|
|||
|
|
`)]),Z("menu-divider",`
|
|||
|
|
transition: background-color .3s var(--n-bezier);
|
|||
|
|
background-color: var(--n-divider-color);
|
|||
|
|
height: 1px;
|
|||
|
|
margin: 6px 18px;
|
|||
|
|
`)]);function Do(e,t){return[le("hover",e,t),N("&:hover",e,t)]}const Nz=Object.assign(Object.assign({},Ke.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),O1=me({name:"Menu",props:Nz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Et(e),o=Ke("Menu","-menu",Fz,tR,e,t),n=$e($1,null),i=V(()=>{var S;const{collapsed:k}=e;if(k!==void 0)return k;if(n){const{collapseModeRef:C,collapsedRef:T}=n;if(C.value==="width")return(S=T.value)!==null&&S!==void 0?S:!1}return!1}),s=V(()=>{const{keyField:S,childrenField:k,disabledField:C}=e;return mx(e.items||e.options,{getIgnored(T){return I1(T)},getChildren(T){return T[k]},getDisabled(T){return T[C]},getKey(T){var P;return(P=T[S])!==null&&P!==void 0?P:T.name}})}),a=V(()=>new Set(s.value.treeNodes.map(S=>S.key))),{watchProps:l}=e,c=ae(null);l!=null&&l.includes("defaultValue")?br(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const u=Me(e,"value"),d=Xn(u,c),f=ae([]),p=()=>{f.value=e.defaultExpandAll?s.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||s.value.getPath(d.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?br(p):p();const h=$a(e,["expandedNames","expandedKeys"]),v=Xn(h,f),x=V(()=>s.value.treeNodes),g=V(()=>s.value.getPath(d.value).keyPath);Ue(Cs,{props:e,mergedCollapsedRef:i,mergedThemeRef:o,mergedValueRef:d,mergedExpandedKeysRef:v,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:V(()=>e.mode==="horizontal"),invertedRef:Me(e,"inverted"),doSelect:m,toggleExpand:b});function m(S,k){const{"onUpdate:value":C,onUpdateValue:T,onSelect:P}=e;T&&tt(T,S,k),C&&tt(C,S,k),P&&tt(P,S,k),c.value=S}function y(S){const{"onUpdate:expandedKeys":k,onUpdateExpandedKeys:C,onExpandedNamesChange:T,onOpenNamesChange:P}=e;k&&tt(k,S),C&&tt(C,S),T&&tt(T,S),P&&tt(P,S),f.value=S}function b(S){const k=Array.from(v.value),C=k.findIndex(T=>T===S);if(~C)k.splice(C,1);else{if(e.accordion&&a.value.has(S)){const T=k.findIndex(P=>a.value.has(P));T>-1&&k.splice(T,1)}k.push(S)}y(k)}const _=S=>{const k=s.value.getPath(S!=null?S:d.value,{includeSelf:!1}).keyPath;if(!k.length)return;const C=Array.from(v.value),T=new Set([...C,...k]);e.accordion&&a.value.forEach(P=>{T.has(P)&&!k.includes(P)&&T.delete(P)}),y(Array.from(T))},$=V(()=>{const{inverted:S}=e,{common:{cubicBezierEaseInOut:k},self:C}=o.value,{borderRadius:T,borderColorHorizontal:P,fontSize:I,itemHeight:z,dividerColor:D}=C,B={"--n-divider-color":D,"--n-bezier":k,"--n-font-size":I,"--n-border-color-horizontal":P,"--n-border-radius":T,"--n-item-height":z};return S?(B["--n-group-text-color"]=C.groupTextColorInverted,B["--n-color"]=C.colorInverted,B["--n-item-text-color"]=C.itemTextColorInverted,B["--n-item-text-color-hover"]=C.itemTextColorHoverInverted,B["--n-item-text-color-active"]=C.itemTextColorActiveInverted,B["--n-item-text-color-child-active"]=C.itemTextColorChildActiveInverted,B["--n-item-text-color-child-active-hover"]=C.itemTextColorChildActiveInverted,B["--n-item-t
|
|||
|
|
margin: var(--n-margin);
|
|||
|
|
z-index: 0;
|
|||
|
|
transform-origin: top center;
|
|||
|
|
display: flex;
|
|||
|
|
`,[zx({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),Z("message",`
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
transition:
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
box-shadow .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
opacity .3s var(--n-bezier),
|
|||
|
|
transform .3s var(--n-bezier),
|
|||
|
|
margin-bottom .3s var(--n-bezier);
|
|||
|
|
padding: var(--n-padding);
|
|||
|
|
border-radius: var(--n-border-radius);
|
|||
|
|
flex-wrap: nowrap;
|
|||
|
|
overflow: hidden;
|
|||
|
|
max-width: var(--n-max-width);
|
|||
|
|
color: var(--n-text-color);
|
|||
|
|
background-color: var(--n-color);
|
|||
|
|
box-shadow: var(--n-box-shadow);
|
|||
|
|
`,[Q("content",`
|
|||
|
|
display: inline-block;
|
|||
|
|
line-height: var(--n-line-height);
|
|||
|
|
font-size: var(--n-font-size);
|
|||
|
|
`),Q("icon",`
|
|||
|
|
position: relative;
|
|||
|
|
margin: var(--n-icon-margin);
|
|||
|
|
height: var(--n-icon-size);
|
|||
|
|
width: var(--n-icon-size);
|
|||
|
|
font-size: var(--n-icon-size);
|
|||
|
|
flex-shrink: 0;
|
|||
|
|
`,[["default","info","success","warning","error","loading"].map(e=>le(`${e}-type`,[N("> *",`
|
|||
|
|
color: var(--n-icon-color-${e});
|
|||
|
|
transition: color .3s var(--n-bezier);
|
|||
|
|
`)])),N("> *",`
|
|||
|
|
position: absolute;
|
|||
|
|
left: 0;
|
|||
|
|
top: 0;
|
|||
|
|
right: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
`,[za()])]),Q("close",`
|
|||
|
|
margin: var(--n-close-margin);
|
|||
|
|
transition:
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
color .3s var(--n-bezier);
|
|||
|
|
flex-shrink: 0;
|
|||
|
|
`,[N("&:hover",`
|
|||
|
|
color: var(--n-close-icon-color-hover);
|
|||
|
|
`),N("&:active",`
|
|||
|
|
color: var(--n-close-icon-color-pressed);
|
|||
|
|
`)])]),Z("message-container",`
|
|||
|
|
z-index: 6000;
|
|||
|
|
position: fixed;
|
|||
|
|
height: 0;
|
|||
|
|
overflow: visible;
|
|||
|
|
display: flex;
|
|||
|
|
flex-direction: column;
|
|||
|
|
align-items: center;
|
|||
|
|
`,[le("top",`
|
|||
|
|
top: 12px;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
`),le("top-left",`
|
|||
|
|
top: 12px;
|
|||
|
|
left: 12px;
|
|||
|
|
right: 0;
|
|||
|
|
align-items: flex-start;
|
|||
|
|
`),le("top-right",`
|
|||
|
|
top: 12px;
|
|||
|
|
left: 0;
|
|||
|
|
right: 12px;
|
|||
|
|
align-items: flex-end;
|
|||
|
|
`),le("bottom",`
|
|||
|
|
bottom: 4px;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
justify-content: flex-end;
|
|||
|
|
`),le("bottom-left",`
|
|||
|
|
bottom: 4px;
|
|||
|
|
left: 12px;
|
|||
|
|
right: 0;
|
|||
|
|
justify-content: flex-end;
|
|||
|
|
align-items: flex-start;
|
|||
|
|
`),le("bottom-right",`
|
|||
|
|
bottom: 4px;
|
|||
|
|
left: 0;
|
|||
|
|
right: 12px;
|
|||
|
|
justify-content: flex-end;
|
|||
|
|
align-items: flex-end;
|
|||
|
|
`)])]),Wz={info:()=>A(nT,null),success:()=>A(iT,null),warning:()=>A(sT,null),error:()=>A(oT,null),default:()=>null},Uz=me({name:"Message",props:Object.assign(Object.assign({},B1),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:r}=Et(e),{props:o,mergedClsPrefixRef:n}=$e(H1),i=bs("Message",r,n),s=Ke("Message","-message",jz,IA,o,n),a=V(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:d,margin:f,maxWidth:p,iconMargin:h,closeMargin:v,closeSize:x,iconSize:g,fontSize:m,lineHeight:y,borderRadius:b,iconColorInfo:_,iconColorSuccess:$,iconColorWarning:w,iconColorError:S,iconColorLoading:k,closeIconSize:C,closeBorderRadius:T,[ye("textColor",c)]:P,[ye("boxShadow",c)]:I,[ye("color",c)]:z,[ye("closeColorHover",c)]:D,[ye("closeColorPressed",c)]:B,[ye("closeIconColor",c)]:j,[ye("closeIconColorPressed",c)]:re,[ye("closeIconColorHover",c)]:ue}}=s.value;return{"--n-bezier":u,"--n-margin":f,"--n-padding":d,"--n-max-width":p,"--n-font-size":m,"--n-icon-margin":h,"--n-icon-size":g,"--n-close-icon-size":C,"--n-close-border-radius":T,"--n-close-size":x,"--n-close-margin":v,"--n-text-color":P,"--n-color":z,"--n-box-shadow":I,"--n-icon-color-info":_,"--n-icon-color-success":$,"--n-icon-color-warning":w,"--n-icon-color-error":S,"--n-icon-color-loading":k,"--n-close-color-hover":D,"--n-close-color-pressed":B,"--n-close-icon-color":j,"--n-close-icon-color-pressed":re,"--n-close-icon-color-hover":ue,"--n-line-height":y,"--n-border-radius":b}}),l=t?fr("message",V(()=>e.type[0]),a,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:i,messageProviderProps:o,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:o.placement}},render(){const{render:e,type:t,closable:r,content:o,mergedClsPrefix:n,cssVars:i,themeClass:s,onRender:a,icon:l,handleClose:c,showIcon:u}=this;a==null||a();let d;return A("div",{class:[`${n}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):A("div",{class:[`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`]},(d=Kz(l,t,n))&&u?A("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},A(Gd,null,{default:()=>d})):null,A("div",{class:`${n}-message__content`},ar(o)),r?A(Yd,{clsPrefix:n,class:`${n}-message__close`,onClick:c,absolute:!0}):null))}});function Kz(e,t,r){if(typeof e=="function")return e();{const o=t==="loading"?A(fx,{clsPrefix:r,strokeWidth:24,scale:.85}):Wz[t]();return o?A(qt,{clsPrefix:r,key:t},{default:()=>o}):null}}const Vz=me({name:"MessageEnvironment",props:Object.assign(Object.assign({},B1),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const r=ae(!0);Lt(()=>{o()});function o(){const{duration:u}=e;u&&(t=window.setTimeout(s,u))}function n(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&o()}function s(){const{onHide:u}=e;r.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function a(){const{onClose:u}=e;u&&u(),s()}function l(){const{onAfterLeave:u,onInternalAfterLeave:d,onAfterHide:f,internalKey:p}=e;u&&u(),d&&d(p),f&&f()}function c(){s()}return{show:r,hide:s,handleClose:a,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:n,deactivate:c}},render(){return A(Xd,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?A(Uz,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),qz=Object.assign(Object.assign({},Ke.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:B
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
width: 100%;
|
|||
|
|
transition:
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
border-color .3s var(--n-bezier);
|
|||
|
|
`,[le("segment-type",[Z("tabs-rail",[N("&.transition-disabled","color: red;",[Z("tabs-tab",`
|
|||
|
|
transition: none;
|
|||
|
|
`)])])]),Z("tabs-rail",`
|
|||
|
|
padding: 3px;
|
|||
|
|
border-radius: var(--n-tab-border-radius);
|
|||
|
|
width: 100%;
|
|||
|
|
background-color: var(--n-color-segment);
|
|||
|
|
transition: background-color .3s var(--n-bezier);
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
`,[Z("tabs-tab-wrapper",`
|
|||
|
|
flex-basis: 0;
|
|||
|
|
flex-grow: 1;
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: center;
|
|||
|
|
`,[Z("tabs-tab",`
|
|||
|
|
overflow: hidden;
|
|||
|
|
border-radius: var(--n-tab-border-radius);
|
|||
|
|
width: 100%;
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: center;
|
|||
|
|
`,[le("active",`
|
|||
|
|
font-weight: var(--n-font-weight-strong);
|
|||
|
|
color: var(--n-tab-text-color-active);
|
|||
|
|
background-color: var(--n-tab-color-segment);
|
|||
|
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
|
|||
|
|
`),N("&:hover",`
|
|||
|
|
color: var(--n-tab-text-color-hover);
|
|||
|
|
`)])])]),le("flex",[Z("tabs-nav",{width:"100%"},[Z("tabs-wrapper",{width:"100%"},[Z("tabs-tab",{marginRight:0})])])]),Z("tabs-nav",`
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
line-height: 1.5;
|
|||
|
|
display: flex;
|
|||
|
|
transition: border-color .3s var(--n-bezier);
|
|||
|
|
`,[Q("prefix, suffix",`
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
`),Q("prefix","padding-right: 16px;"),Q("suffix","padding-left: 16px;")]),Z("tabs-nav-scroll-wrapper",`
|
|||
|
|
flex: 1;
|
|||
|
|
position: relative;
|
|||
|
|
overflow: hidden;
|
|||
|
|
`,[le("shadow-before",[N("&::before",`
|
|||
|
|
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|||
|
|
`)]),le("shadow-after",[N("&::after",`
|
|||
|
|
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|||
|
|
`)]),N("&::before, &::after",`
|
|||
|
|
transition: box-shadow .3s var(--n-bezier);
|
|||
|
|
pointer-events: none;
|
|||
|
|
content: "";
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
width: 20px;
|
|||
|
|
z-index: 1;
|
|||
|
|
`),N("&::before",`
|
|||
|
|
left: 0;
|
|||
|
|
`),N("&::after",`
|
|||
|
|
right: 0;
|
|||
|
|
`)]),Z("tabs-nav-scroll-content",`
|
|||
|
|
display: flex;
|
|||
|
|
position: relative;
|
|||
|
|
min-width: 100%;
|
|||
|
|
width: fit-content;
|
|||
|
|
`),Z("tabs-wrapper",`
|
|||
|
|
display: inline-flex;
|
|||
|
|
flex-wrap: nowrap;
|
|||
|
|
position: relative;
|
|||
|
|
`),Z("tabs-tab-wrapper",`
|
|||
|
|
display: flex;
|
|||
|
|
flex-wrap: nowrap;
|
|||
|
|
flex-shrink: 0;
|
|||
|
|
flex-grow: 0;
|
|||
|
|
`),Z("tabs-tab",`
|
|||
|
|
cursor: pointer;
|
|||
|
|
white-space: nowrap;
|
|||
|
|
flex-wrap: nowrap;
|
|||
|
|
display: inline-flex;
|
|||
|
|
align-items: center;
|
|||
|
|
color: var(--n-tab-text-color);
|
|||
|
|
font-size: var(--n-tab-font-size);
|
|||
|
|
background-clip: padding-box;
|
|||
|
|
padding: var(--n-tab-padding);
|
|||
|
|
transition:
|
|||
|
|
box-shadow .3s var(--n-bezier),
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
border-color .3s var(--n-bezier);
|
|||
|
|
`,[le("disabled",{cursor:"not-allowed"}),Q("close",`
|
|||
|
|
margin-left: 6px;
|
|||
|
|
transition:
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
color .3s var(--n-bezier);
|
|||
|
|
`),Q("label",`
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
`)]),Z("tabs-bar",`
|
|||
|
|
position: absolute;
|
|||
|
|
bottom: 0;
|
|||
|
|
height: 2px;
|
|||
|
|
border-radius: 1px;
|
|||
|
|
background-color: var(--n-bar-color);
|
|||
|
|
transition:
|
|||
|
|
left .2s var(--n-bezier),
|
|||
|
|
max-width .2s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier);
|
|||
|
|
`,[N("&.transition-disabled",`
|
|||
|
|
transition: none;
|
|||
|
|
`),le("disabled",`
|
|||
|
|
background-color: var(--n-tab-text-color-disabled)
|
|||
|
|
`)]),Z("tabs-pane-wrapper",`
|
|||
|
|
position: relative;
|
|||
|
|
overflow: hidden;
|
|||
|
|
transition: max-height .2s var(--n-bezier);
|
|||
|
|
`),Z("tab-pane",`
|
|||
|
|
color: var(--n-pane-text-color);
|
|||
|
|
width: 100%;
|
|||
|
|
padding: var(--n-pane-padding);
|
|||
|
|
transition:
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
opacity .2s var(--n-bezier);
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
top: 0;
|
|||
|
|
`,[N("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
|
|||
|
|
transition:
|
|||
|
|
color .3s var(--n-bezier),
|
|||
|
|
background-color .3s var(--n-bezier),
|
|||
|
|
transform .2s var(--n-bezier),
|
|||
|
|
opacity .2s var(--n-bezier);
|
|||
|
|
`),N("&.next-transition-leave-active, &.prev-transition-leave-active",`
|
|||
|
|
position: absolute;
|
|||
|
|
`),N("&.next-transition-enter-from, &.prev-transition-leave-to",`
|
|||
|
|
transform: translateX(32px);
|
|||
|
|
opacity: 0;
|
|||
|
|
`),N("&.next-transition-leave-to, &.prev-transition-enter-from",`
|
|||
|
|
transform: translateX(-32px);
|
|||
|
|
opacity: 0;
|
|||
|
|
`),N("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
|
|||
|
|
transform: translateX(0);
|
|||
|
|
opacity: 1;
|
|||
|
|
`)]),Z("tabs-tab-pad",`
|
|||
|
|
width: var(--n-tab-gap);
|
|||
|
|
flex-grow: 0;
|
|||
|
|
flex-shrink: 0;
|
|||
|
|
`),le("line-type, bar-type",[Z("tabs-tab",`
|
|||
|
|
font-weight: var(--n-tab-font-weight);
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
vertical-align: bottom;
|
|||
|
|
`,[N("&:hover",{color:"var(--n-tab-text-color-hover)"}),le("active",`
|
|||
|
|
color: var(--n-tab-text-color-active);
|
|||
|
|
font-weight: var(--n-tab-font-weight-active);
|
|||
|
|
`),le("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),Z("tabs-nav",[le("line-type",[Q("prefix, suffix",`
|
|||
|
|
transition: border-color .3s var(--n-bezier);
|
|||
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|||
|
|
`),Z("tabs-nav-scroll-content",`
|
|||
|
|
transition: border-color .3s var(--n-bezier);
|
|||
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|||
|
|
`),Z("tabs-bar",`
|
|||
|
|
border-radius: 0;
|
|||
|
|
bottom: -1px;
|
|||
|
|
`)]),le("card-type",[Q("prefix, suffix",`
|
|||
|
|
transition: border-color .3s var(--n-bezier);
|
|||
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|||
|
|
`),Z("tabs-pad",`
|
|||
|
|
flex-grow: 1;
|
|||
|
|
transition: border-color .3s var(--n-bezier);
|
|||
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|||
|
|
`),Z("tabs-tab-pad",`
|
|||
|
|
transition: border-color .3s var(--n-bezier);
|
|||
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|||
|
|
`),Z("tabs-tab",`
|
|||
|
|
font-weight: var(--n-tab-font-weight);
|
|||
|
|
border: 1px solid var(--n-tab-border-color);
|
|||
|
|
border-top-left-radius: var(--n-tab-border-radius);
|
|||
|
|
border-top-right-radius: var(--n-tab-border-radius);
|
|||
|
|
background-color: var(--n-tab-color);
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
position: relative;
|
|||
|
|
vertical-align: bottom;
|
|||
|
|
display: flex;
|
|||
|
|
justify-content: space-between;
|
|||
|
|
font-size: var(--n-tab-font-size);
|
|||
|
|
color: var(--n-tab-text-color);
|
|||
|
|
`,[le("addable",`
|
|||
|
|
padding-left: 8px;
|
|||
|
|
padding-right: 8px;
|
|||
|
|
font-size: 16px;
|
|||
|
|
`,[Q("height-placeholder",`
|
|||
|
|
width: 0;
|
|||
|
|
font-size: var(--n-tab-font-size);
|
|||
|
|
`),Dt("disabled",[N("&:hover",`
|
|||
|
|
color: var(--n-tab-text-color-hover);
|
|||
|
|
`)])]),le("closable","padding-right: 6px;"),le("active",`
|
|||
|
|
border-bottom: 1px solid #0000;
|
|||
|
|
background-color: #0000;
|
|||
|
|
font-weight: var(--n-tab-font-weight-active);
|
|||
|
|
color: var(--n-tab-text-color-active);
|
|||
|
|
`),le("disabled","color: var(--n-tab-text-color-disabled);")]),Z("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")])])]),eI=Object.assign(Object.assign({},Ke.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),tI=me({name:"Tabs",props:eI,setup(e,{slots:t}){var r,o,n,i;const{mergedClsPrefixRef:s,inlineThemeDisabled:a}=Et(e),l=Ke("Tabs","-tabs",Jz,NR,e,s),c=ae(null),u=ae(null),d=ae(null),f=ae(null),p=ae(null),h=ae(!0),v=ae(!0),x=$a(e,["labelSize","size"]),g=$a(e,["activeName","value"]),m=ae((o=(r=g.value)!==null&&r!==void 0?r:e.defaultValue)!==null&&o!==void 0?o:t.default?(i=(n=Zo(t.default())[0])===null||n===void 0?void 0:n.props)===null||i===void 0?void 0:i.name:null),y=Xn(g,m),b={id:0},_=V(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});ot(y,()=>{b.id=0,S(),k()});function $(){var O;const{value:M}=y;return M===null?null:(O=c.value)===null||O===void 0?void 0:O.querySelector(`[data-name="${M}"]`)}function w(O){if(e.type==="card")return;const{value:M}=u;if(!!M&&O){const W=`${s.value}-tabs-bar--disabled`,{barWidth:Y}=e;if(O.dataset.disabled==="true"?M.classList.add(W):M.classList.remove(W),typeof Y=="number"&&O.offsetWidth>=Y){const te=Math.floor((O.offsetWidth-Y)/2)+O.offsetLeft;M.style.left=`${te}px`,M.style.maxWidth=`${Y}px`}else M.style.left=`${O.offsetLeft}px`,M.style.maxWidth=`${O.offsetWidth}px`;M.style.width="8192px",M.offsetWidth}}function S(){if(e.type==="card")return;const O=$();O&&w(O)}function k(O){var M;const W=(M=p.value)===null||M===void 0?void 0:M.$el;if(!W)return;const Y=$();if(!Y)return;const{scrollLeft:te,offsetWidth:ee}=W,{offsetLeft:K,offsetWidth:fe}=Y;te>K?W.scrollTo({top:0,left:K,behavior:"smooth"}):K+fe>te+ee&&W.scrollTo({top:0,left:K+fe-ee,behavior:"smooth"})}const C=ae(null);let T=0,P=null;function I(O){const M=C.value;if(M){T=O.getBoundingClientRect().height;const W=`${T}px`,Y=()=>{M.style.height=W,M.style.maxHeight=W};P?(Y(),P(),P=null):P=Y}}function z(O){const M=C.value;if(M){const W=O.getBoundingClientRect().height,Y=()=>{document.body.offsetHeight,M.style.maxHeight=`${W}px`,M.style.height=`${Math.max(T,W)}px`};P?(P(),P=null,Y()):P=Y}}function D(){const O=C.value;O&&(O.style.maxHeight="",O.style.height="")}const B={value:[]},j=ae("next");function re(O){const M=y.value;let W="next";for(const Y of B.value){if(Y===M)break;if(Y===O){W="prev";break}}j.value=W,ue(O)}function ue(O){const{onActiveNameChange:M,onUpdateValue:W,"onUpdate:value":Y}=e;M&&tt(M,O),W&&tt(W,O),Y&&tt(Y,O),m.value=O}function ge(O){const{onClose:M}=e;M&&tt(M,O)}function F(){const{value:O}=u;if(!O)return;const M="transition-disabled";O.classList.add(M),S(),O.classList.remove(M)}let U=0;function G(O){var M;if(O.contentRect.width===0&&O.contentRect.height===0||U===O.contentRect.width)return;U=O.contentRect.width;const{type:W}=e;(W==="line"||W==="bar")&&F(),W!=="segment"&&de((M=p.value)===null||M===void 0?void 0:M.$el)}const J=Vl(G,64);ot([()=>e.justifyContent,()=>e.size],()=>{Co(()=>{const{type:O}=e;(O==="line"||O==="bar")&&F()})});const L=ae(!1);function q(O){var M;const{target:W,contentRect:{width:Y}}=O,te=W.parentElement.offsetWidth;if(!L.value)te<Y&&(L.value=!0);else{const{value:ee}=f;if(!ee)return;te-Y>ee.$el.offsetWidth&&(L.value=!1)}de((M=p.value)===null||M===void 0?void 0:M.$el)}const X=Vl(q,64);function ie(){const{onAdd:O}=e;O&&O(),Co(()=>{const M=$(),{value:W}=p;!M||!W||W.scrollTo({left:M.offsetLeft,top:0,behavior:"smooth"})})}function de(O){if(!O)return;const{scrollLeft:M,scrollWidth:W,offsetWidth:Y}=O;h.value=M<=0,v.value=M+
|
|||
|
|
* vuex v4.1.0
|
|||
|
|
* (c) 2022 Evan You
|
|||
|
|
* @license MIT
|
|||
|
|
*/var N1="store";function ci(e){return e===void 0&&(e=null),$e(e!==null?e:N1)}function ui(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function pI(e){return e!==null&&typeof e=="object"}function mI(e){return e&&typeof e.then=="function"}function vI(e,t){return function(){return e(t)}}function j1(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}}function W1(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;bl(e,r,[],e._modules.root,!0),hf(e,r,t)}function hf(e,t,r){var o=e._state,n=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,s={},a={},l=Wy(!0);l.run(function(){ui(i,function(c,u){s[u]=vI(c,e),a[u]=V(function(){return s[u]()}),Object.defineProperty(e.getters,u,{get:function(){return a[u].value},enumerable:!0})})}),e._state=Mr({data:t}),e._scope=l,e.strict&&CI(e),o&&r&&e._withCommit(function(){o.data=null}),n&&n.stop()}function bl(e,t,r,o,n){var i=!r.length,s=e._modules.getNamespace(r);if(o.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=o),!i&&!n){var a=pf(t,r.slice(0,-1)),l=r[r.length-1];e._withCommit(function(){a[l]=o.state})}var c=o.context=gI(e,s,r);o.forEachMutation(function(u,d){var f=s+d;xI(e,f,u,c)}),o.forEachAction(function(u,d){var f=u.root?d:s+d,p=u.handler||u;bI(e,f,p,c)}),o.forEachGetter(function(u,d){var f=s+d;yI(e,f,u,c)}),o.forEachChild(function(u,d){bl(e,t,r.concat(d),u,n)})}function gI(e,t,r){var o=t==="",n={dispatch:o?e.dispatch:function(i,s,a){var l=Oa(i,s,a),c=l.payload,u=l.options,d=l.type;return(!u||!u.root)&&(d=t+d),e.dispatch(d,c)},commit:o?e.commit:function(i,s,a){var l=Oa(i,s,a),c=l.payload,u=l.options,d=l.type;(!u||!u.root)&&(d=t+d),e.commit(d,c,u)}};return Object.defineProperties(n,{getters:{get:o?function(){return e.getters}:function(){return U1(e,t)}},state:{get:function(){return pf(e.state,r)}}}),n}function U1(e,t){if(!e._makeLocalGettersCache[t]){var r={},o=t.length;Object.keys(e.getters).forEach(function(n){if(n.slice(0,o)===t){var i=n.slice(o);Object.defineProperty(r,i,{get:function(){return e.getters[n]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function xI(e,t,r,o){var n=e._mutations[t]||(e._mutations[t]=[]);n.push(function(s){r.call(e,o.state,s)})}function bI(e,t,r,o){var n=e._actions[t]||(e._actions[t]=[]);n.push(function(s){var a=r.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},s);return mI(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function yI(e,t,r,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(i){return r(o.state,o.getters,i.state,i.getters)})}function CI(e){ot(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function pf(e,t){return t.reduce(function(r,o){return r[o]},e)}function Oa(e,t,r){return pI(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}var wI="vuex bindings",Wh="vuex:mutations",rc="vuex:actions",wn="vuex",SI=0;function _I(e,t){hI({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[wI]},function(r){r.addTimelineLayer({id:Wh,label:"Vuex Mutations",color:Uh}),r.addTimelineLayer({id:rc,label:"Vuex Actions",color:Uh}),r.addInspector({id:wn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(o){if(o.app===e&&o.inspectorId===wn)if(o.filter){var n=[];G1(n,t._modules.root,o.filter,""),o.rootNodes=n}else o.rootNodes=[q1(t._modules.root,"")]}),r.on.getInspectorState(function(o){if(o.app===e&&o.inspectorId===wn){var n=o.nodeId;U1(t,n),o.state=PI(kI(t._modules,n),n==="root"?t.getters:t._makeLocalGettersCache,n)}}),r.on.editInspectorState(function(o){if(o.app===e&&o.inspectorId===wn){var n=o.nodeId,i=o.path;n!=="root"&&(i=n.split("/").fil
|
|||
|
|
* vue-router v4.1.6
|
|||
|
|
* (c) 2022 Eduardo San Martin Morote
|
|||
|
|
* @license MIT
|
|||
|
|
*/const Tn=typeof window<"u";function OI(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ge=Object.assign;function oc(e,t){const r={};for(const o in t){const n=t[o];r[o]=Cr(n)?n.map(e):e(n)}return r}const Li=()=>{},Cr=Array.isArray,BI=/\/$/,MI=e=>e.replace(BI,"");function nc(e,t,r="/"){let o,n={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),n=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=FI(o!=null?o:t,r),{fullPath:o+(i&&"?")+i+s,path:o,query:n,hash:s}}function HI(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Kh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function DI(e,t,r){const o=t.matched.length-1,n=r.matched.length-1;return o>-1&&o===n&&Zn(t.matched[o],r.matched[n])&&Z1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Zn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Z1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!LI(e[r],t[r]))return!1;return!0}function LI(e,t){return Cr(e)?Vh(e,t):Cr(t)?Vh(t,e):e===t}function Vh(e,t){return Cr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function FI(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/");let n=r.length-1,i,s;for(i=0;i<o.length;i++)if(s=o[i],s!==".")if(s==="..")n>1&&n--;else break;return r.slice(0,n).join("/")+"/"+o.slice(i-(i===o.length?1:0)).join("/")}var rs;(function(e){e.pop="pop",e.push="push"})(rs||(rs={}));var Fi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Fi||(Fi={}));function NI(e){if(!e)if(Tn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),MI(e)}const jI=/^[^#]+#/;function WI(e,t){return e.replace(jI,"#")+t}function UI(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const yl=()=>({left:window.pageXOffset,top:window.pageYOffset});function KI(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),n=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!n)return;t=UI(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function qh(e,t){return(history.state?history.state.position-t:-1)+e}const Bu=new Map;function VI(e,t){Bu.set(e,t)}function qI(e){const t=Bu.get(e);return Bu.delete(e),t}let GI=()=>location.protocol+"//"+location.host;function Q1(e,t){const{pathname:r,search:o,hash:n}=t,i=e.indexOf("#");if(i>-1){let a=n.includes(e.slice(i))?e.slice(i).length:1,l=n.slice(a);return l[0]!=="/"&&(l="/"+l),Kh(l,"")}return Kh(r,e)+o+n}function XI(e,t,r,o){let n=[],i=[],s=null;const a=({state:f})=>{const p=Q1(e,location),h=r.value,v=t.value;let x=0;if(f){if(r.value=p,t.value=f,s&&s===h){s=null;return}x=v?f.position-v.position:0}else o(p);n.forEach(g=>{g(r.value,h,{delta:x,type:rs.pop,direction:x?x>0?Fi.forward:Fi.back:Fi.unknown})})};function l(){s=r.value}function c(f){n.push(f);const p=()=>{const h=n.indexOf(f);h>-1&&n.splice(h,1)};return i.push(p),p}function u(){const{history:f}=window;!f.state||f.replaceState(Ge({},f.state,{scroll:yl()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:d}}function Gh(e,t,r,o=!1,n=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:n?yl():null}}function YI(e){const{history:t,location:r}=window,o={value:Q1(e,r)},n={value:t.state};n.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.ind
|
|||
|
|
`?(n++,o=0):o+=i,s},end(){return t>=r},get(){return{prev:e[t-1],curr:e[t+0],next:e[t+1],next2:e[t+2],next3:e[t+3],pos:[o,n]}}}}function UO(e){for(;e.next();){let{curr:t,prev:r}=e.get();if(Re.comment(t,r))break}}function KO(e){for(;e.next()&&e.curr()!==`
|
|||
|
|
`;);}function lp(e){return[":",";",",","{","}","(",")","[","]"].includes(e)}function cp(e){let t="";for(;!e.end();){let{curr:r,next:o}=e.get();t+=r;let n=Re.symbol(o)||Re.space(o)||Re.digit(o);if(t.length&&n&&!Re.closedTag(r,o))break;e.next()}return t.trim()}function VO(e){let t="";for(;!e.end();){let{curr:r,next:o}=e.get();if(t+=r,!Re.space(o))break;e.next()}return t}function up(e){let t="",r=!1;for(;!e.end();){let{curr:o,next:n,next2:i,next3:s}=e.get();if(t+=o,r&&Re.dot(n)||(Re.dot(o)&&(r=!0),Re.dots(n,i)))break;if(Re.expWithSign(n,i,s))t+=e.next()+e.next();else if(Re.exp(n,i))t+=e.next();else if(!Re.digit(n)&&!Re.dot(n))break;e.next()}return t}function qO(e){let t="0x";for(e.next(2);!e.end();){let{curr:r,next:o}=e.get();if(t+=r,!Re.hexNum(o))break;e.next()}return t}function Us(e){return e[e.length-1]}function to(e,t={}){let r=pr(String(e).trim()),o=[],n=[];for(;r.next();){let{prev:s,curr:a,next:l,next2:c,pos:u}=r.get();if(Re.comment(a,l))UO(r);else if(t.ignoreInlineComment&&Re.inlineComment(a,l))KO(r);else if(Re.hex(a,l,c)){let d=qO(r);o.push(new mo({type:"Number",value:d,pos:u}))}else if(Re.digit(a)||Re.digit(l)&&Re.dot(a)&&!Re.dots(s,a)){let d=up(r);o.push(new mo({type:"Number",value:d,pos:u}))}else if(Re.symbol(a)&&!Re.selfClosedTag(a,l)){let d=Us(o),f=Re.digit(l)||Re.dot(l)&&Re.digit(c);if(a==="-"&&f&&(!d||!d.isNumber())){let h=up(r);o.push(new mo({type:"Number",value:h,pos:u}));continue}let p={type:"Symbol",value:a,pos:u};if(n.length&&Re.escape(d.value)){o.pop();let h=cp(r);h.length&&o.push(new mo({type:"Word",value:h,pos:u}))}else Re.quote(a)&&(Us(n)==a?(n.pop(),p.status="close"):(n.push(a),p.status="open")),o.push(new mo(p))}else if(Re.space(a)){let d=VO(r),f=Us(o),{next:p}=r.get();if(!n.length&&f){let h=f.value,v=lp(h)&&h!==")",x=lp(p)&&p!=="(";if(v||x)continue;d=t.preserveLineBreak?a:" "}o.length&&p&&p.trim()&&o.push(new mo({type:"Space",value:d,pos:u}))}else{let d=cp(r);d.length&&o.push(new mo({type:"Word",value:d,pos:u}))}}let i=Us(o);return i&&i.isSpace()&&(o.length=o.length-1),o}function GO(e){let t=pr(to(e));return cb(t)}function cb(e){let t=[];for(;e.next();){let{curr:r,next:o}=e.get();if(r.value==="var"){if(o&&o.isSymbol("(")){e.next();let n=XO(e);YO(n.name)&&t.push(n)}}else if(t.length&&!r.isSymbol(","))break}return t}function XO(e){let t={},r=[];for(;e.next();){let{curr:o,next:n}=e.get();if(o.isSymbol(")",";")&&!t.name){t.name=dp(r);break}else o.isSymbol(",")?(t.name===void 0&&(t.name=dp(r),r=[]),t.name&&(t.fallback=cb(e))):r.push(o)}return t}function dp(e){return e.map(t=>t.value).join("")}function YO(e){return!(e===void 0||e.length<=2||e.substr(2).startsWith("-")||!e.startsWith("--"))}function xr(e,t,r){return e=Number(e)||0,Math.max(t,Math.min(r,e))}function ZO(e,t){return e?typeof t=="function"?t():t:""}function QO(e,t,r){let o=0,n=e,i=l=>l>0&&l<1?.1:1,s=arguments.length;s==1&&([e,t]=[i(e),e]),s<3&&(r=i(e));let a=[];for(;(r>=0&&e<=t||r<0&&e>t)&&(a.push(e),e+=r,!(o++>=65535)););return a.length||a.push(n),a}function ub(e,t){for(let[r,o]of Object.entries(t))e[r]=e[o];return e}function fp(e){return/^[a-zA-Z]$/.test(e)}function it(e){return e==null}function sc(e){return it(e)||Number.isNaN(e)}function qo(e){return it(e)||e===""}function Du(e){let t=r=>(...o)=>e(r,...o);return t.lazy=!0,t}function JO(e,t){let[r,o=1]=String(e).split(/[x-]/);r=xr(Math.ceil(r)||1,1,65536),o=xr(Math.ceil(o)||1,1,65536);let n=r*o,i=[],s=1;if(/x/.test(e))for(let a=1;a<=o;++a)for(let l=1;l<=r;++l)i.push(t(s++,l,a,n,r,o));else if(/-/.test(e))if(n=Math.abs(r-o)+1,r<=o)for(let a=r;a<=o;++a)i.push(t(a,a,1,n,n,1));else for(let a=r;a>=o;--a)i.push(t(a,a,1,n,n,1));else for(let a=1;a<=r;++a)i.push(t(a,a,1,r,r,1));return i}function Ni(e,t,r){return"c-"+e+"-"+t+"-"+r}function Yt(e){let t=e;for(;t&&!it(t.value);)t=t.value;return it(t)?"":t}function eB(e){return(it(e)?Date.now():String(e).replace(/\/.png$/g,""))+".png"}function db(e,t,r=0){let o=new Image;o.crossOrigin="anonymous",o.src=e,o.onload=function(){setTimeout(t,r)}}function Lu(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Fu(e){let t=document.crea
|
|||
|
|
`){return(e||[]).join(t)}function st(e,t=1){return it(e)?"":e[e.length-t]}function pp(e){return e[0]}function lB(e){return JSON.parse(JSON.stringify(e))}function cB(e){return[].concat(e,e)}function mb(e,t){return Array.prototype.flatMap?e.flatMap(t):e.reduce((r,o)=>r.concat(t(o)),[])}function uB(e){return e.filter(t=>!it(t)&&String(t).trim().length)}const Zt={func(e=""){return{type:"func",name:e,arguments:[]}},argument(){return{type:"argument",value:[]}},text(e=""){return{type:"text",value:e}},pseudo(e=""){return{type:"pseudo",selector:e,styles:[]}},cond(e=""){return{type:"cond",name:e,styles:[],arguments:[]}},rule(e=""){return{type:"rule",property:e,value:[]}},keyframes(e=""){return{type:"keyframes",name:e,steps:[]}},step(e=""){return{type:"step",name:e,styles:[]}}},Tt={white_space(e){return/[\s\n\t]/.test(e)},line_break(e){return/\n/.test(e)},number(e){return!isNaN(e)},pair(e){return['"',"(",")","'"].includes(e)},pair_of(e,t){return{'"':'"',"'":"'","(":")"}[e]==t}},Da={\u03C0:Math.PI,"\u220F":Math.PI};function mp(e){return["@canvas","@shaders","@doodle"].includes(e)}function vb(e=""){let t=0,r=1,o=1;return{curr(n=0){return e[t+n]},end(){return e.length<=t},info(){return{index:t,col:r,line:o}},index(n){return n===void 0?t:t=n},range(n,i){return e.substring(n,i)},next(){let n=e[t++];return n==`
|
|||
|
|
`?(o++,r=0):r++,n}}}function dB(e,{col:t,line:r}){console.warn(`(at line ${r}, column ${t}) ${e}`)}function fB(e){return e.trim().length?Tt.number(+e)?+e:e.trim():e}function bf(e){return function(t,r){let o=t.index(),n="";for(;!t.end();){let i=t.next();if(e(i))break;n+=i}return r&&t.index(o),n}}function gb(e,t){return bf(o=>/[^\w@]/.test(o))(e,t)}function hB(e){return bf(t=>/[\s\{]/.test(t))(e)}function xb(e,t){return bf(o=>Tt.line_break(o)||o=="{")(e,t)}function pB(e,t){let r,o=Zt.step();for(;!e.end()&&(r=e.curr())!="}";){if(Tt.white_space(r)){e.next();continue}else if(!o.name.length)o.name=Cb(e);else if(o.styles.push(wl(e,t)),e.curr()=="}")break;e.next()}return o}function mB(e,t){const r=[];let o;for(;!e.end()&&(o=e.curr())!="}";){if(Tt.white_space(o)){e.next();continue}else r.push(pB(e,t));e.next()}return r}function vB(e,t){let r=Zt.keyframes(),o;for(;!e.end()&&(o=e.curr())!="}";){if(r.name.length){if(o=="{"||e.curr(-1)=="{"){e.next(),r.steps=mB(e,t);break}}else{if(gb(e),r.name=hB(e),!r.name.length){dB("missing keyframes name",e.info());break}continue}e.next()}return r}function Cl(e,t={}){for(e.next();!e.end();){let r=e.curr();if(t.inline){if(r==`
|
|||
|
|
`)break}else if((r=e.curr())=="*"&&e.curr(1)=="/")break;e.next()}t.inline||(e.next(),e.next())}function gB(e){for(e.next();!e.end()&&e.curr()!=">";)e.next()}function xB(e){let t="",r;for(;!e.end()&&(r=e.curr())!=":";)Tt.white_space(r)||(t+=r),e.next();return t}function Ku(e,t,r){let o=[],n=[],i=[],s="",a,l="";for(;!e.end();){a=e.curr();let c=e.index();if(/[\('"`]/.test(a)&&e.curr(-1)!=="\\")i.length?(a!=="("&&st(i)==="("&&i.pop(),a!="("&&a===st(i)?i.pop():i.push(a)):i.push(a),s+=a;else if(a=="@"&&!r)n.length||(s=s.trimLeft()),s.length&&(n.push(Zt.text(s)),s=""),n.push(bb(e));else if(r&&/[)]/.test(a)||!r&&/[,)]/.test(a))if(i.length)a==")"&&st(i)==="("&&i.pop(),s+=a;else{if(s.length&&(n.length?/\S/.test(s)&&n.push(Zt.text(s)):n.push(Zt.text(fB(s))),s.startsWith("\xB1")&&!r)){let u=s.substr(1),d=lB(n);st(d).value="-"+u,o.push(ac(d)),st(n).value=u}if(o.push(ac(n)),[n,s]=[[],""],a==")")break}else Da[a]&&!/[0-9]/.test(e.curr(-1))&&(a=Da[a]),s+=a;if(t&&(e.curr(1)==")"||!/[0-9a-zA-Z_\-.]/.test(e.curr()))&&!i.length){n.length&&o.push(ac(n));break}else l+=e.range(c,e.index()+1),e.next()}return[bB(o),l]}function bB(e){let t=st(e[0]);return t&&t.type==="text"&&!String(t.value).trim().length&&(e[0]=e[0].slice(0,-1)),e}function ac(e){let t=e.map(n=>{if(n.type=="text"&&typeof n.value=="string"){let i=String(n.value);i.includes("`")&&(n.value=i=i.replace(/`/g,'"')),n.value=i}return n}),r=pp(t)||{},o=st(t)||{};if(r.type=="text"&&o.type=="text"){let n=pp(r.value),i=st(o.value);typeof r.value=="string"&&typeof o.value=="string"&&Tt.pair_of(n,i)&&(r.value=r.value.slice(1),o.value=o.value.slice(0,o.value.length-1),t.cluster=!0)}return t}function yB(e){let t="",r="";if(/\D$/.test(e)&&!/\d+[x-]\d+/.test(e)||Math[e.substr(1)])return{fname:e,extra:r};for(let o=e.length-1;o>=0;o--){let n=e[o],i=e[o-1],s=e[o+1];if(/[\d.]/.test(n)||(n=="x"||n=="-")&&/\d/.test(i)&&/\d/.test(s))r=n+r;else{t=e.substring(0,o+1);break}}return{fname:t,extra:r}}function CB(e){let t=JSON.stringify(e);return t.includes("pureName")&&t.includes("times")}function bb(e){let t=Zt.func(),r="@",o,n=!1;for(e.next();!e.end();){o=e.curr();let a=o=="."&&e.curr(1)=="@",l=e.curr(1);if(o=="("||a){n=!0,e.next();let[c,u]=Ku(e,a,mp(r));if(r==="@svg"&&/\d\s*{/.test(u)){let d=Wu(u);if(CB(d)){let f=aB(d);f+=")",c=Ku(vb(f),a,mp(r))[0]}}t.arguments=c;break}else if(!n&&l!=="("&&!/[0-9a-zA-Z_\-.]/.test(l)){r+=o;break}else r+=o;e.next()}let{fname:i,extra:s}=yB(r);return t.name=i,s.length&&t.arguments.unshift([{type:"text",value:s}]),t.position=e.info().index,t}function yb(e){let t=Zt.text(),r=0,o=!0,n;const i=[],s=[];for(i[r]=[];!e.end();){if(n=e.curr(),o&&Tt.white_space(n)){e.next();continue}else o=!1;if(n==`
|
|||
|
|
`&&!Tt.white_space(e.curr(-1)))t.value+=" ";else if(n==","&&!s.length)t.value.length&&(i[r].push(t),t=Zt.text()),i[++r]=[],o=!0;else if(/[;}<]/.test(n)){t.value.length&&(i[r].push(t),t=Zt.text());break}else n=="@"?(t.value.length&&(i[r].push(t),t=Zt.text()),i[r].push(bb(e))):(!Tt.white_space(n)||!Tt.white_space(e.curr(-1)))&&(n=="("&&s.push(n),n==")"&&s.pop(),Da[n]&&!/[0-9]/.test(e.curr(-1))&&(n=Da[n]),t.value+=n);e.next()}return t.value.length&&i[r].push(t),i}function Cb(e){let t="",r;for(;!e.end()&&(r=e.curr())!="{";)Tt.white_space(r)||(t+=r),e.next();return t}function wB(e){let t={name:"",arguments:[]},r;for(;!e.end();){if((r=e.curr())=="(")e.next(),t.arguments=Ku(e)[0];else{if(/[){]/.test(r))break;Tt.white_space(r)||(t.name+=r)}e.next()}return t}function wb(e,t){let r=Zt.pseudo(),o;for(;!e.end();){if(o=e.curr(),o=="/"&&e.curr(1)=="*")Cl(e);else{if(o=="}")break;if(Tt.white_space(o)){e.next();continue}else if(!r.selector)r.selector=Cb(e);else{let n=wl(e,t);if(n.property=="@use"?r.styles=r.styles.concat(n.value):r.styles.push(n),e.curr()=="}")break}}e.next()}return r}function wl(e,t){let r=Zt.rule(),o,n=e.index();for(;!e.end();){if(o=e.curr(),o=="/"&&e.curr(1)=="*")Cl(e);else{if(o==";")break;if(r.property.length){r.value=yb(e);break}else if(r.property=xB(e),r.property=="@use"){r.value=SB(e,t);break}}e.next()}let i=e.index();return r.raw=()=>e.range(n,i).trim(),r}function Sb(e,t){let r=Zt.cond(),o;for(;!e.end();){if(o=e.curr(),o=="/"&&e.curr(1)=="*")Cl(e);else{if(o=="}")break;if(!r.name.length)Object.assign(r,wB(e));else if(o==":"){let n=wb(e);n.selector&&r.styles.push(n)}else if(o=="@"&&!xb(e,!0).includes(":"))r.styles.push(Sb(e));else if(!Tt.white_space(o)){let n=wl(e,t);if(n.property&&r.styles.push(n),e.curr()=="}")break}}e.next()}return r}function vp(e,t){let r="";return e&&e.get_variable&&(r=e.get_variable(t)),r}function _b(e,t){e.forEach&&e.forEach(r=>{if(r.type=="text"&&r.value){let o=GO(r.value);r.value=o.reduce((n,i)=>{let s="",a="",l;s=vp(t,i.name),!s&&i.fallback&&i.fallback.every(c=>{if(a=vp(t,c.name),a)return s=a,!1});try{l=Pi(s,t)}catch{}return l&&n.push.apply(n,l),n},[])}r.type=="func"&&r.arguments&&r.arguments.forEach(o=>{_b(o,t)})})}function SB(e,t){return e.next(),(yb(e)||[]).reduce((o,n)=>{_b(n,t);let[i]=n;return i.value&&i.value.length&&o.push(...i.value),o},[])}function Pi(e,t){const r=vb(e),o=[];for(;!r.end();){let n=r.curr();if(Tt.white_space(n)){r.next();continue}else if(n=="/"&&r.curr(1)=="*")Cl(r);else if(n==":"){let i=wb(r,t);i.selector&&o.push(i)}else if(n=="@"&&gb(r,!0)==="@keyframes"){let i=vB(r,t);o.push(i)}else if(n=="@"&&!xb(r,!0).includes(":")){let i=Sb(r,t);i.name.length&&o.push(i)}else if(n=="<")gB(r);else if(!Tt.white_space(n)){let i=wl(r,t);i.property&&o.push(i)}r.next()}return o}function Vu(e,t=64){const[r,o,n]=[1,t,t*t];let[i,s,a]=(e+"").replace(/\s+/g,"").replace(/[,,xX]+/g,"x").split("x").map(d=>parseInt(d));const l=i==1||s==1?n:o,c=i==1&&s==1?n:r,u={x:xr(i||r,1,l),y:xr(s||i||r,1,l),z:xr(a||r,1,c)};return Object.assign({},u,{count:u.x*u.y*u.z,ratio:u.x/u.y})}function _B(e){let r=pr($b(to(e,{preserveLineBreak:!0,ignoreInlineComment:!0}))),o=[],n=[],i,s,a={textures:[]};for(;r.next();){let{curr:l,next:c}=r.get();if(l.isSymbol("{")){if(o.length)n.push(l);else{let u=lc(n);$B(u)?(i=u,n=[]):n.push(l)}o.push("{")}else if(l.isSymbol("}"))if(o.pop(),!o.length&&i){let u=lc(n);i&&u.length&&(i.startsWith("texture")?a.textures.push({name:i,value:u}):a[i]=u,n=[]),i=null}else n.push(l);else!qo(s)&&s!=l.pos[1]&&(n.push(gp()),s=null),l.isWord()&&l.value.startsWith("#")&&(n.push(gp()),s=c.pos[1]),n.push(l)}return qo(a.fragment)&&(a.fragment=lc(n),a.textures=a.textures||[]),a}function $B(e){return/^texture\w*$|^(fragment|vertex)$/.test(e)}function gp(){return new mo({type:"LineBreak",value:`
|
|||
|
|
`})}function $b(e){let t=e[0],r=e[e.length-1];for(;t&&t.isSymbol("(")&&r&&r.isSymbol(")");)e=e.slice(1,e.length-1),t=e[0],r=e[e.length-1];return e}function lc(e){return $b(e).map(t=>t.value).join("")}const TB="http://www.w3.org/2000/svg",PB="http://www.w3.org/1999/xlink";function xp(e,t){return`url("data:image/svg+xml;utf8,${encodeURIComponent(e)+(t?`#${t}`:"")}")`}function bp(e){const t=`xmlns="${TB}"`,r=`xmlns:xlink="${PB}"`;return e.includes("<svg")||(e=`<svg ${t} ${r}>${e}</svg>`),e.includes("xmlns")||(e=e.replace(/<svg([\s>])/,`<svg ${t} ${r}$1`)),e}const EB="http://www.w3.org/2000/svg",kB="http://www.w3.org/1999/xlink",AB=fb();class qs{constructor(t,r=""){if(!t)throw new Error("Tag name is required");this.name=t,this.body=[],this.attrs={},this.isTextNode()&&(this.body=r)}isTextNode(){return this.name==="text-node"}find(t){let r=t.attrs.id,o=t.name;if(Array.isArray(this.body)&&r!==void 0)return this.body.find(n=>n.attrs.id===r&&n.name===o)}append(t){this.isTextNode()||this.body.push(t)}merge(t){for(let[r,o]of Object.entries(t.attrs))this.attrs[r]=o;Array.isArray(t.body)&&this.body.push(...t.body)}attr(t,r){if(!this.isTextNode())return r===void 0?this.attrs[t]:this.attrs[t]=r}toString(){if(this.isTextNode())return yp(this.body);let t=[""],r=[];for(let[o,n]of Object.entries(this.attrs))n=yp(n),t.push(`${o}="${n}"`);for(let o of this.body)r.push(o.toString());return`<${this.name}${t.join(" ")}>${r.join("")}</${this.name}>`}}function Tb(e,t){return`${e}:${t};`}function Pb(e){const t=e.value.map(r=>r.type==="block"?Pb(r):Tb(r.name,r.value)).join("");return`${e.name}{${t}}`}function yp(e){e=String(e);let t=e.startsWith('"')&&e.endsWith('"'),r=e.startsWith("'")&&e.endsWith("'");return t||r?e.substring(1,e.length-1):e}function qu(e,t,r,o){let n;if(t||(t=new qs("root")),e.type==="block")if(e.name==="style"){if(Array.isArray(e.value)){let i=new qs("style"),s=[];for(let a of e.value)a.type==="block"&&s.push(Pb(a));i.append(s.join("")),t.append(i)}}else{let i=new qs(e.name);o||(o=i,o.attr("xmlns",EB));for(let a of e.value){let l=qu(a,i,e,o);l&&(n=l)}if(e.inline){let a=e.value.find(l=>l.type==="statement"&&l.name==="id");a?n=a.value:(n=AB(e.name),i.attr("id",n))}let s=o.find(i);s?s.merge(i):t.append(i)}if(e.type==="statement")if(e.name==="content"){let i=new qs("text-node",e.value);t.append(i)}else if(e.name.startsWith("style ")){let i=(e.name.split("style ")[1]||"").trim();if(i.length){let s=t.attr("style")||"";t.attr("style",s+Tb(i,e.value))}}else{let i=e.value;if(i&&i.type==="block"){let s=qu(e.value,o,e,o);i=`url(#${s})`,(e.name==="xlink:href"||e.name==="href")&&(i=`#${s}`)}t.attr(e.name,i),e.name.includes("xlink:")&&o.attr("xmlns:xlink",kB)}return r?n:o.toString()}function Cp(e){return qu(e)}function Eb(e){let t=pr(to(e)),r={},o=!1;for(;t.next();){let{prev:n,curr:i,next:s}=t.get(),a=o&&(i.isWord()||i.isSymbol())&&n&&n.isNumber()&&!s;if(i.isNumber())r.value=Number(i.value),o=!0;else if(a)r.unit=i.value;else break}return r}function wp(e){return(...t)=>{let r=[],o=[];for(let s of t){let{unit:a,value:l}=Eb(s);a!==void 0&&r.push(a),l!==void 0&&o.push(l)}let n=e(...o),i=r.find(s=>s!==void 0);return i===void 0?n:Array.isArray(n)?n.map(s=>s+i):n+i}}function Gu(e){return(...t)=>{let r=t.map(n=>String(n).charCodeAt(0)),o=e(...r);return Array.isArray(o)?o.map(n=>String.fromCharCode(n)):String.fromCharCode(o)}}const RB={\u03C0:Math.PI,gcd:(e,t)=>{for(;t;)[e,t]=[t,e%t];return e}},Xu={"^":7,"*":6,"/":6,"\xF7":6,"%":6,"&":5,"|":5,"+":4,"-":4,"<":3,"<<":3,">":3,">>":3,"=":3,"==":3,"\u2264":3,"<=":3,"\u2265":3,">=":3,"\u2260":3,"!=":3,"\u2227":2,"&&":2,"\u2228":2,"||":2,"(":1,")":1};function La(e,t,r=[]){let o=[];for(;e.length;){let{name:n,value:i,type:s}=e.shift();if(s==="variable"){let a=t[i];sc(a)&&(a=Math[i]),sc(a)&&(a=Sp(i,t)),sc(a)&&/^\-\D/.test(i)&&(a=Sp("-1"+i.substr(1),t)),a===void 0&&(a=0),typeof a!="number"&&(r.push(a),OB(r)?(a=0,r=[]):a=La(ns(a),t,r)),o.push(a)}else if(s==="function"){let a=!1;/^\-/.test(n)&&(a=!0,n=n.substr(1));let l=i.map(d=>La(d,t)),c=n.split("."),u;for(;u=c.pop();){if(!u)continue;let d=t[u]||Math[u];l=typeo
|
|||
|
|
split: 180;
|
|||
|
|
scale: .99
|
|||
|
|
`,triangle:()=>gt`
|
|||
|
|
rotate: 30;
|
|||
|
|
scale: 1.1;
|
|||
|
|
move: 0 .2
|
|||
|
|
`,pentagon:()=>gt`
|
|||
|
|
split: 5;
|
|||
|
|
rotate: 54
|
|||
|
|
`,hexagon:()=>gt`
|
|||
|
|
split: 6;
|
|||
|
|
rotate: 30;
|
|||
|
|
scale: .98
|
|||
|
|
`,octagon:()=>gt`
|
|||
|
|
split: 8;
|
|||
|
|
rotat: 22.5;
|
|||
|
|
scale: .99
|
|||
|
|
`,star:()=>gt`
|
|||
|
|
split: 10;
|
|||
|
|
r: cos(5t);
|
|||
|
|
rotate: -18;
|
|||
|
|
scale: .99
|
|||
|
|
`,infinity:()=>gt`
|
|||
|
|
split: 180;
|
|||
|
|
scale: .99;
|
|||
|
|
x: cos(t)*.99 / (sin(t)^2 + 1);
|
|||
|
|
y: x * sin(t)
|
|||
|
|
`,heart:()=>gt`
|
|||
|
|
split: 180;
|
|||
|
|
rotate: 180;
|
|||
|
|
a: cos(t)*13/18 - cos(2t)*5/18;
|
|||
|
|
b: cos(3t)/18 + cos(4t)/18;
|
|||
|
|
x: (.75 * sin(t)^3) * 1.2;
|
|||
|
|
y: (a - b + .2) * -1.1
|
|||
|
|
`,bean:()=>gt`
|
|||
|
|
split: 180;
|
|||
|
|
r: sin(t)^3 + cos(t)^3;
|
|||
|
|
move: -.35 .35;
|
|||
|
|
`,bicorn:()=>gt`
|
|||
|
|
split: 180;
|
|||
|
|
x: cos(t);
|
|||
|
|
y: sin(t)^2 / (2 + sin(t)) - .5
|
|||
|
|
`,drop:()=>gt`
|
|||
|
|
split: 180;
|
|||
|
|
rotate: 90;
|
|||
|
|
scale: .95;
|
|||
|
|
x: sin(t);
|
|||
|
|
y: (1 + sin(t)) * cos(t) / 1.6
|
|||
|
|
`,fish:()=>gt`
|
|||
|
|
split: 240;
|
|||
|
|
x: cos(t) - sin(t)^2 / sqrt(2) - .04;
|
|||
|
|
y: sin(2t)/2
|
|||
|
|
`,whale:()=>gt`
|
|||
|
|
split: 240;
|
|||
|
|
rotate: 180;
|
|||
|
|
R: 3.4 * (sin(t)^2 - .5) * cos(t);
|
|||
|
|
x: cos(t) * R + .75;
|
|||
|
|
y: sin(t) * R * 1.2
|
|||
|
|
`,windmill:()=>gt`
|
|||
|
|
split: 18;
|
|||
|
|
R: seq(.618, 1, 0);
|
|||
|
|
T: seq(t-.55, t, t);
|
|||
|
|
x: R * cos(T);
|
|||
|
|
y: R * sin(T)
|
|||
|
|
`,vase:()=>gt`
|
|||
|
|
split: 240;
|
|||
|
|
scale: .3;
|
|||
|
|
x: sin(4t) + sin(t) * 1.4;
|
|||
|
|
y: cos(t) + cos(t) * 4.8 + .3
|
|||
|
|
`,clover:(e=3)=>(e=xr(e,3,5),e==4&&(e=2),gt`
|
|||
|
|
split: 240;
|
|||
|
|
r: cos(${e}t);
|
|||
|
|
scale: .98
|
|||
|
|
`),hypocycloid:(e=3)=>{e=xr(e,3,5);let t=[0,0,0,.34,.25,.19][e];return gt`
|
|||
|
|
split: 240;
|
|||
|
|
scale: ${t};
|
|||
|
|
k: ${e};
|
|||
|
|
x: (k-1)*cos(t) + cos((k-1)*t);
|
|||
|
|
y: (k-1)*sin(t) - sin((k-1)*t)
|
|||
|
|
`},bud:(e=3)=>(e=xr(e,3,10),gt`
|
|||
|
|
split: 240;
|
|||
|
|
scale: .8;
|
|||
|
|
r: 1 + .2 * cos(${e}t)
|
|||
|
|
`)};class Pp{constructor(t,r,o){this.x=t,this.y=r,this.extra=o}valueOf(){return this.x+" "+this.y}toString(){return this.valueOf()}}function KB(e,t){typeof arguments[0]=="function"&&(t=e,e={}),t||(t=h=>[is(h),ss(h)]);let r=e.split||180,o=e.turn||1,n=e.frame,i=e.fill||e["fill-rule"],s=jB(e.direction||e.dir||""),a=e.unit,l=Cf*2*o/r,c=[],u,d,f=e.scale===void 0?1:e.scale,p=([h,v,x=0,g=0])=>{if(h=="evenodd"||h=="nonzero")return c.push(new Pp(h,"",""));let[m,y]=Ep(h,-v,f),[b,_]=Ep(x,-g,f),$=VB(m,y,b,_,s);a!==void 0&&a!=="%"?a!=="none"&&(m+=a,y+=a):(m=(m+1)*50+"%",y=(y+1)*50+"%"),c.push(new Pp(m,y,$))};(i=="nonzero"||i=="evenodd")&&p([i,"",""]);for(let h=0;h<r;++h){let v=l*h,x=t(v,h);h||(u=x),p(x)}if(n!==void 0){p(u);let h=n/100;o>1&&(h*=2),h==0&&(h=.002);for(let v=0;v<r;++v){let x=-l*v,[g,m,y=0,b=0]=t(x,v),_=kb(m+b,g-y),$=[g-h*is(_),m-h*ss(_)];v||(d=$),p($)}p(d),p(u)}return c}function VB(e,t,r,o,n){let i=kb(t+o,e-r)*180/Cf;return n.direction==="reverse"&&(i-=180),n.direction||(i=90),n.angle&&(i+=n.angle),i}function qB(e,t,r){let o=-Cf/180*r;return[e*is(o)-t*ss(o),t*is(o)+e*ss(o)]}function GB(e,t,r){let[o,n=o]=nr(r).map(Number);return[e+(o||0),t-(n||0),o,n]}function Ep(e,t,r){let[o,n=o]=nr(r).map(Number);return[e*o,t*n]}function da(e,{min:t,max:r}){let o=xr(parseInt(e.vertices||e.points||e.split)||0,t,r),n=qo(e.x)?"cos(t)":e.x,i=qo(e.y)?"sin(t)":e.y,s=qo(e.r)?"":e.r,{unit:a,value:l}=Eb(s);a&&!e[a]&&a!=="t"&&(qo(e.unit)&&(e.unit=a),s=e.r=l),e.degree&&(e.rotate=e.degree),e.origin&&(e.move=e.origin);let c=Object.assign({},e,{split:o});return KB(c,(u,d)=>{let f=Object.assign({},e,{t:u,\u03B8:u,i:d+1,seq(...g){return g.length?g[d%g.length]:""},range(g,m=0){g=Number(g)||0,m=Number(m)||0,g>m&&([g,m]=[m,g]);let y=UB(m-g)/(o-1);return g+y*d}}),p=ir(n,f),h=ir(i,f),v=0,x=0;if(s){let g=ir(s,f);g==0&&(g=1e-5),p=g*is(u),h=g*ss(u)}return e.rotate&&([p,h]=qB(p,h,Number(e.rotate)||0)),e.move&&([p,h,v,x]=GB(p,h,e.move)),[p,h,v,x]})}const XB="MmLlHhVvCcSsQqTtAaZz",YB="mlhvcsqtaz";function Ys(e){let t=pr(to(e)),r={},o={commands:[],valid:!0};for(;t.next();){let{curr:n}=t.get();if(!(n.isSpace()||n.isSymbol(",")))if(n.isWord())r.name&&(o.commands.push(r),r={}),r.name=n.value,r.value=[],XB.includes(n.value)?YB.includes(n.value)?r.type="relative":r.type="absolute":(r.type="unknown",o.valid=!1);else if(r.value){let i=n.value;n.isNumber()&&(i=Number(n.value)),r.value.push(i)}else r.name||(o.valid=!1)}return r.name&&o.commands.push(r),o}const Mt={name:"cssd-uniform-time","animation-name":"cssd-uniform-time-animation","animation-duration":31536e6,"animation-iteration-count":"infinite","animation-delay":"0s","animation-direction":"normal","animation-fill-mode":"none","animation-play-state":"running","animation-timing-function":"linear"};Mt.animation=`
|
|||
|
|
${Mt["animation-duration"]}ms
|
|||
|
|
${Mt["animation-timing-function"]}
|
|||
|
|
${Mt["animation-delay"]}
|
|||
|
|
${Mt["animation-iteration-count"]}
|
|||
|
|
${Mt["animation-name"]}
|
|||
|
|
`;const Ab={name:"cssd-uniform-mousex"},Rb={name:"cssd-uniform-mousey"},zb={name:"cssd-uniform-width"},Ib={name:"cssd-uniform-height"},Pn=Object.freeze(Object.defineProperty({__proto__:null,uniform_time:Mt,uniform_mousex:Ab,uniform_mousey:Rb,uniform_width:zb,uniform_height:Ib},Symbol.toStringTag,{value:"Module"}));function uc(e){return Du((t,r,...o)=>{if(!o||!r)return"";let n=Yt(r()),i=n;/\D/.test(n)&&!/\d+[x-]\d+/.test(n)&&(i=ir(n),i===0&&(i=n));let s=Math.random();return JO(i,(...a)=>o.map(l=>Yt(l(...a,s))).join(",")).join(e)})}function _n(e,t,r){return e[t]||(e[t]=new LB),e[t].push(r),r}function kp(e){return-1*e}function ZB(e,t,r,o=1){let i=Math.sqrt(2/4)*o,[s,a]=[-i,i];return jr((e-s)/(a-s),t*o,r*o)}const Yu=ub({i({count:e}){return t=>e},y({y:e}){return t=>e},x({x:e}){return t=>e},z({z:e}){return t=>e},I({grid:e}){return t=>e.count},Y({grid:e}){return t=>e.y},X({grid:e}){return t=>e.x},Z({grid:e}){return t=>e.z},id({x:e,y:t,z:r}){return o=>Ni(e,t,r)},n({extra:e}){let t=st(e);return r=>t?t[0]+(Number(r)||0):"@n"},nx({extra:e}){let t=st(e);return r=>t?t[1]+(Number(r)||0):"@nx"},ny({extra:e}){let t=st(e);return r=>t?t[2]+(Number(r)||0):"@ny"},N({extra:e}){let t=st(e);return r=>t?t[3]+(Number(r)||0):"@N"},m:uc(","),M:uc(" "),\u00B5:uc(""),p({context:e,pick:t}){return Xs((...r)=>{r.length||(r=e.last_pick_args||[]);let o=t(r);return e.last_pick_args=r,_n(e,"last_pick",o)})},P({context:e,pick:t,position:r}){let o="P-counter"+r;return Xs((...n)=>{let i=!0;n.length||(n=e.last_pick_args||[],i=!1);let s=e.last_pick,a=s?s.last(1):"";if(i&&(e[o]||(e[o]={}),a=e[o].last_pick),n.length>1){let c=n.findIndex(u=>u===a);c!==-1&&n.splice(c,1)}let l=t(n);return e.last_pick_args=n,i&&(e[o].last_pick=l),_n(e,"last_pick",l)})},pn({context:e,extra:t,position:r}){let o=st(t),n=o?st(o):"",i="pn-counter"+r+n;return Xs((...s)=>{e[i]||(e[i]=0),e[i]+=1;let a=s.length,[l=e[i]]=o||[],c=(l-1)%a,u=s[c];return _n(e,"last_pick",u)})},pd({context:e,extra:t,position:r,shuffle:o}){let n=st(t),i=n?st(n):"",s="pd-counter"+r+i,a="pd-values"+r+i;return Xs((...l)=>{e[s]||(e[s]=0),e[s]+=1,e[a]||(e[a]=o(l||[]));let c=l.length,[u=e[s]]=n||[],d=(u-1)%c,f=e[a][d];return _n(e,"last_pick",f)})},lp({context:e}){return(t=1)=>{let r=e.last_pick;return r?r.last(t):""}},r({context:e,rand:t}){return(...r)=>{let n=(r.every(fp)?Gu:wp)(t)(...r);return _n(e,"last_rand",n)}},rn({x:e,y:t,context:r,position:o,grid:n,extra:i,shuffle:s}){let a="noise-2d"+o,[l,c,u,d,f,p]=st(i)||[],h=l&&d;return(...v)=>{let{from:x=0,to:g=x,frequency:m=1,amplitude:y=1}=$p(v,["from","to","frequency","amplitude"]);v.length==1&&([x,g]=[0,x]),r[a]||(r[a]=new _p(s)),m=xr(m,0,1/0),y=xr(y,0,1/0);let b=[x,g].every(fp)?Gu:wp,_=h?r[a].noise((c-1)/f*m,(u-1)/p*m,0):r[a].noise((e-1)/n.x*m,(t-1)/n.y*m,0),w=b((S,k)=>ZB(_*y,S,k,y))(x,g);return _n(r,"last_rand",w)}},lr({context:e}){return(t=1)=>{let r=e.last_rand;return r?r.last(t):""}},noise({context:e,grid:t,position:r,shuffle:o,...n}){let i={i:n.count,I:t.count,x:n.x,X:t.x,y:n.y,Y:t.y,z:n.z,Z:t.z};return(s,a,l=0)=>{let c="raw-noise-2d"+r;return e[c]||(e[c]=new _p(o)),e[c].noise(ir(s,i),ir(a,i),ir(l,i))}},stripe(){return(...e)=>{let t=e.map(Yt),r=t.length,o=0,n=[],i;if(!r)return"";t.forEach(a=>{let[l,c]=nr(a);c!==void 0?n.push(c):o+=1});let s=n.length?`(100% - ${n.join(" - ")}) / ${o}`:`100% / ${r}`;return t.map((a,l)=>{if(n.length){let[c,u]=nr(a);return i=(i?i+" + ":"")+(u!==void 0?u:s),`${c} 0 calc(${i})`}return`${a} 0 ${100/r*(l+1)}%`}).join(",")}},calc(){return e=>ir(Yt(e))},hex(){return e=>parseInt(Yt(e)).toString(16)},svg:Du((e,...t)=>{let r=t.map(n=>Yt(n())).join(",");if(!r.startsWith("<")){let n=Wu(r);r=Cp(n)}let o=bp(r);return xp(o)}),filter:Du((e,...t)=>{let r=t.map(s=>Yt(s())),o=r.join(","),n=Ti("filter-");if(r.every(s=>/^[\d.]/.test(s)||/^(\w+)/.test(s)&&!/[{}<>]/.test(s))){let{frequency:s,scale:a=1,octave:l,seed:c=e.seed,blur:u,erode:d,dilate:f}=$p(r,["frequency","scale","octave","seed","blur","erode","dilate"]);if(o=`
|
|||
|
|
x: -20%;
|
|||
|
|
y: -20%;
|
|||
|
|
width: 140%;
|
|||
|
|
height: 140%;
|
|||
|
|
`,it(f)||(o+=`
|
|||
|
|
feMorphology {
|
|||
|
|
operator: dilate;
|
|||
|
|
radius: ${f};
|
|||
|
|
}
|
|||
|
|
`),it(d)||(o+=`
|
|||
|
|
feMorphology {
|
|||
|
|
operator: erode;
|
|||
|
|
radius: ${d};
|
|||
|
|
}
|
|||
|
|
`),it(u)||(o+=`
|
|||
|
|
feGaussianBlur {
|
|||
|
|
stdDeviation: ${u};
|
|||
|
|
}
|
|||
|
|
`),!it(s)){let[p,h=p]=nr(s);l=l?`numOctaves: ${l};`:"",o+=`
|
|||
|
|
feTurbulence {
|
|||
|
|
type: fractalNoise;
|
|||
|
|
baseFrequency: ${p} ${h};
|
|||
|
|
seed: ${c};
|
|||
|
|
${l}
|
|||
|
|
}
|
|||
|
|
feDisplacementMap {
|
|||
|
|
in: SourceGraphic;
|
|||
|
|
scale: ${a};
|
|||
|
|
}
|
|||
|
|
`}}if(!o.startsWith("<")){let s=Wu(o,{type:"block",name:"filter"});o=Cp(s)}let i=bp(o).replace(/<filter([\s>])/,`<filter id="${n}"$1`);return xp(i,n)}),var(){return e=>`var(${Yt(e)})`},ut(){return e=>`var(--${Mt.name})`},uw(){return e=>`var(--${zb.name})`},uh(){return e=>`var(--${Ib.name})`},ux(){return e=>`var(--${Ab.name})`},uy(){return e=>`var(--${Rb.name})`},plot({count:e,context:t,extra:r,position:o,grid:n}){let i="offset-points"+o,s=st(r);return a=>{let[l=e,c,u,d=n.count]=s||[];if(!t[i]){let f=ua(a);delete f.fill,delete f["fill-rule"],delete f.frame,f.points=d,t[i]=da(f,{min:1,max:65536})}return t[i][l-1]}},Plot({count:e,context:t,extra:r,position:o,grid:n}){let i="Offset-points"+o,s=st(r);return a=>{let[l=e,c,u,d=n.count]=s||[];if(!t[i]){let f=ua(a);delete f.fill,delete f["fill-rule"],delete f.frame,f.points=d,f.unit=f.unit||"none",t[i]=da(f,{min:1,max:65536})}return t[i][l-1]}},shape(){return yf("shape-function",(e="",...t)=>{e=String(e).trim();let r=[];if(e.length)if(typeof Fa[e]=="function")r=Fa[e](t);else{let o=e,n=t.join(",");n.length&&(o=e+","+n);let i=ua(o);r=da(i,{min:3,max:3600})}return`polygon(${r.join(",")})`})},doodle(){return e=>e},shaders(){return e=>e},canvas(){return e=>e},pattern(){return e=>e},invert(){return e=>{let t=Ys(e);return t.valid?t.commands.map(({name:r,value:o})=>{switch(r){case"v":return"h"+o.join(" ");case"V":return"H"+o.join(" ");case"h":return"v"+o.join(" ");case"H":return"V"+o.join(" ");default:return r+o.join(" ")}}).join(" "):e}},flipH(){return e=>{let t=Ys(e);return t.valid?t.commands.map(({name:r,value:o})=>{switch(r){case"h":case"H":return r+o.map(kp).join(" ");default:return r+o.join(" ")}}).join(" "):e}},flipV(){return e=>{let t=Ys(e);return t.valid?t.commands.map(({name:r,value:o})=>{switch(r){case"v":case"V":return r+o.map(kp).join(" ");default:return r+o.join(" ")}}).join(" "):e}},flip(...e){let t=Yu.flipH(...e),r=Yu.flipV(...e);return o=>r(t(o))},reverse(...e){return t=>{let r=Ys(t);return r.valid?r.commands.reverse().map(({name:o,value:n})=>o+n.join(" ")).join(" "):t}}},{index:"i",col:"x",row:"y",depth:"z",rand:"r",pick:"p",stripes:"stripe",strip:"stripe",patern:"pattern",flipv:"flipV",fliph:"flipH",t:"ut","svg-filter":"filter","last-rand":"lr","last-pick":"lp",multiple:"m",multi:"m",rep:"\xB5",repeat:"\xB5",ms:"M",s:"I",size:"I",sx:"X","size-x":"X","size-col":"X","max-col":"X",sy:"Y","size-y":"Y","size-row":"Y","max-row":"Y",sz:"Z","size-z":"Z","size-depth":"Z","pick-by-turn":"pn","pick-n":"pn","pick-d":"pd",offset:"plot",Offset:"Plot",point:"plot",Point:"Plot",paint:"canvas"}),Ob={"4a0":[1682,2378],"2a0":[1189,1682],a0:[841,1189],a1:[594,841],a2:[420,594],a3:[297,420],a4:[210,297],a5:[148,210],a6:[105,148],a7:[74,105],a8:[52,74],a9:[37,52],a10:[26,37],b0:[1e3,1414],b1:[707,1e3],b2:[500,707],b3:[353,500],b4:[250,353],b5:[176,250],b6:[125,176],b7:[88,125],b8:[62,88],b9:[44,62],b10:[31,44],b11:[22,32],b12:[16,22],c0:[917,1297],c1:[648,917],c2:[458,648],c3:[324,458],c4:[229,324],c5:[162,229],c6:[114,162],c7:[81,114],c8:[57,81],c9:[40,57],c10:[28,40],c11:[22,32],c12:[16,22],d0:[764,1064],d1:[532,760],d2:[380,528],d3:[264,376],d4:[188,260],d5:[130,184],d6:[92,126],letter:[216,279],postcard:[100,148],poster:[390,540]},QB={portrait:"p",pt:"p",p:"p",landscape:"l",ls:"l",l:"l"},JB="mm";function eM(e,t){e=String(e).toLowerCase();let[r,o]=Ob[e]||[];return QB[t]=="p"&&([o,r]=[r,o]),[o,r].map(n=>n+JB)}function tM(e){return!!Ob[e]}let Zs=[];function Bb(e){if(!Zs.length){let t=new Set;if(typeof document<"u")for(let r in document.head.style)r.startsWith("-")||t.add(r.replace(/[A-Z]/g,"-$&").toLowerCase());t.has("grid-gap")||t.add("grid-gap"),Zs=Array.from(t)}return e instanceof RegExp?Zs.filter(t=>e.test(t)):Zs}function Mb(e){let t=new RegExp(`\\-?${e}\\-?`);return Bb(t).map(r=>r.replace(t,"")).reduce((r,o)=>(r[o]=o,r),{})}const rM=Mb("webkit"),oM=Mb("moz");function Hb(e,t){return rM[e]?`-webkit-${t} ${t}`:oM[e]?`-moz-${t} ${t}`:t}const nM={center:"50%",left:"0%",right:"100%",top:"50%",bottom:"50%"},iM={center:"50%",top:"0%",bottom:"100%",left:"50%",right:"50%"},Qs=ub({size(
|
|||
|
|
width: ${o};
|
|||
|
|
height: ${n};
|
|||
|
|
`;return t?(o==="auto"||n==="auto")&&(i+=`aspect-ratio: ${r.ratio};`):i+=`
|
|||
|
|
--internal-cell-width: ${o};
|
|||
|
|
--internal-cell-height: ${n};
|
|||
|
|
`,i},position(e,{extra:t}){let[r,o="50%"]=nr(e);r=nM[r]||r,o=iM[o]||o;const n="var(--internal-cell-width, 25%)",i="var(--internal-cell-height, 25%)";return`
|
|||
|
|
position: absolute;
|
|||
|
|
left: ${r};
|
|||
|
|
top: ${o};
|
|||
|
|
width: ${n};
|
|||
|
|
height: ${i};
|
|||
|
|
margin-left: calc(${n} / -2);
|
|||
|
|
margin-top: calc(${i} / -2);
|
|||
|
|
grid-area: unset;
|
|||
|
|
--plot-angle: ${t||0};
|
|||
|
|
transform: rotate(${t||0}deg);
|
|||
|
|
`},grid(e,t){let[r,o]=nr(e,{symbol:"/",noSpace:!0});return{grid:Vu(r,t.max_grid),size:o?this.size(o,t):""}},seed(e){return e},shape:yf("shape-property",e=>{let[t,...r]=nr(e);if(typeof Fa[t]!="function")return"";let o="clip-path",n=Fa[t](...r),i=`${o}: polygon(${n.join(",")});`;return Hb(o,i)+"overflow: hidden;"}),use(e){if(e.length>2)return e}},{place:"position","place-cell":"position",offset:"position"}),uo={even:e=>!(e%2),odd:e=>!!(e%2)};function dc(e,t,r){for(let o=0;o<=r;++o)if(ir(e,{n:o})==t)return!0}const sM={at({x:e,y:t}){return(r,o)=>e==r&&t==o},nth({count:e,grid:t}){return(...r)=>r.some(o=>uo[o]?uo[o](e):dc(o,e,t.count))},row({y:e,grid:t}){return(...r)=>r.some(o=>uo[o]?uo[o](e):dc(o,e,t.y))},col({x:e,grid:t}){return(...r)=>r.some(o=>uo[o]?uo[o](e):dc(o,e,t.x))},even({count:e,grid:t,x:r,y:o}){return n=>uo.odd(r+o)},odd({count:e,grid:t,x:r,y:o}){return n=>uo.even(r+o)},random({random:e,count:t,x:r,y:o,grid:n}){return(i=.5)=>/\D/.test(i)?e()<ir("("+i+")",{x:r,X:n.x,y:o,Y:n.y,i:t,I:n.count,random:e}):e()<i},match({count:e,grid:t,x:r,y:o,random:n}){return i=>!!ir("("+i+")",{x:r,X:t.x,y:o,Y:t.y,i:e,I:t.count,random:n})}};var Ci=globalThis,as=Math,Na=[],Ur=256,Db=6,aM=52,lM="random",cM=as.pow(Ur,Db),Lb=as.pow(2,aM),uM=Lb*2,Go=Ur-1,Ap;function Js(e,t,r){var o=[];t=t==!0?{entropy:!0}:t||{};var n=Zu(Fb(t.entropy?[e,ls(Na)]:e==null?fM():e,3),o),i=new dM(o),s=function(){for(var a=i.g(Db),l=cM,c=0;a<Lb;)a=(a+c)*Ur,l*=Ur,c=i.g(1);for(;a>=uM;)a/=2,l/=2,c>>>=1;return(a+c)/l};return s.int32=function(){return i.g(4)|0},s.quick=function(){return i.g(4)/4294967296},s.double=s,Zu(ls(i.S),Na),(t.pass||r||function(a,l,c,u){return u&&(u.S&&Rp(u,i),a.state=function(){return Rp(i,{})}),c?(as[lM]=a,l):a})(s,n,"global"in t?t.global:this==as,t.state)}function dM(e){var t,r=e.length,o=this,n=0,i=o.i=o.j=0,s=o.S=[];for(r||(e=[r++]);n<Ur;)s[n]=n++;for(n=0;n<Ur;n++)s[n]=s[i=Go&i+e[n%r]+(t=s[n])],s[i]=t;(o.g=function(a){for(var l,c=0,u=o.i,d=o.j,f=o.S;a--;)l=f[u=Go&u+1],c=c*Ur+f[Go&(f[u]=f[d=Go&d+l])+(f[d]=l)];return o.i=u,o.j=d,c})(Ur)}function Rp(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function Fb(e,t){var r=[],o=typeof e,n;if(t&&o=="object")for(n in e)try{r.push(Fb(e[n],t-1))}catch{}return r.length?r:o=="string"?e:e+"\0"}function Zu(e,t){for(var r=e+"",o,n=0;n<r.length;)t[Go&n]=Go&(o^=t[Go&n]*19)+r.charCodeAt(n++);return ls(t)}function fM(){try{var e;return Ap&&(e=Ap.randomBytes)||(e=new Uint8Array(Ur),(Ci.crypto||Ci.msCrypto).getRandomValues(e)),ls(e)}catch{var t=Ci.navigator,r=t&&t.plugins;return[+new Date,Ci,r,Ci.screen,ls(Na)]}}function ls(e){return String.fromCharCode.apply(0,e)}Zu(as.random(),Na);function vo(e){return/^\:(host|doodle)/.test(e)}function Qu(e){return/^\:(container|parent)/.test(e)}function fc(e){return vo(e)||Qu(e)}const Nb={};for(let e of Object.getOwnPropertyNames(Math))Nb[e]=()=>(...t)=>typeof Math[e]=="number"?Math[e]:(t=t.map(r=>ir(Yt(r))),Math[e](...t));class hM{constructor(t){this.tokens=t,this.rules={},this.props={},this.keyframes={},this.grid=null,this.seed=null,this.is_grid_defined=!1,this.coords=[],this.doodles={},this.canvas={},this.pattern={},this.shaders={},this.reset(),this.custom_properties={},this.uniforms={}}reset(){this.styles={host:"",container:"",cells:"",keyframes:""},this.coords=[],this.doodles={},this.canvas={},this.pattern={},this.shaders={};for(let t in this.rules)t.startsWith("#c")&&delete this.rules[t]}add_rule(t,r){let o=this.rules[t];o||(o=this.rules[t]=[]),o.push.apply(o,Ks(r))}pick_func(t){return Yu[t]||Nb[t]}apply_func(t,r,o){let n=t(...Ks(r)),i=[];return o.forEach(a=>{let l=typeof a.value,c=l==="number"||l==="string";if(!a.cluster&&c)i.push(...nr(a.value,{noSpace:!0}));else if(typeof a=="function")i.push(a);else if(!it(a.value)){let u=Yt(a.value);i.push(u)}}),i=uB(i),n(...Ks(i))}compose_aname(...t){return t.join("-")}compose_selector({x:t,y:r,z:o},n=""){return`#${Ni(t,r,o)}${n}`}is_composable(t){return["doodle","shaders","canvas","pattern"].includes(t)}read_var(t,r){let o=r.count,n=Object.assign({},this.custom_properties.host,this.custom_properties.container,this.custom_propert
|
|||
|
|
${Vs(n.steps.map(a=>`
|
|||
|
|
${a.name} {
|
|||
|
|
${Vs(a.styles.map(l=>this.compose_rule(l,s)))}
|
|||
|
|
}
|
|||
|
|
`))}
|
|||
|
|
`)}})}output(){for(let[t,r]of Object.entries(this.rules))if(Qu(t))this.styles.container+=`
|
|||
|
|
.container {
|
|||
|
|
${Vs(r)}
|
|||
|
|
}
|
|||
|
|
`;else{let o=vo(t)?"host":"cells",n=Vs(r).trim(),i=o==="host"?`${t}, .host`:t;this.styles[o]+=`${i} { ${n} }`}return this.uniforms.time&&(this.styles.container+=`
|
|||
|
|
:host, .host {
|
|||
|
|
animation: ${Mt.animation};
|
|||
|
|
}
|
|||
|
|
`,this.styles.keyframes+=`
|
|||
|
|
@keyframes ${Mt["animation-name"]} {
|
|||
|
|
from { --${Mt.name}: 0 }
|
|||
|
|
to { --${Mt.name}: ${Mt["animation-duration"]/10} }
|
|||
|
|
}
|
|||
|
|
`),this.coords.forEach((t,r)=>{for(let[o,n]of Object.entries(this.keyframes)){let i=this.compose_aname(o,t.count);this.styles.keyframes+=`
|
|||
|
|
${ZO(r===0,`@keyframes ${o} { ${n(t)} }`)}
|
|||
|
|
@keyframes ${i} {
|
|||
|
|
${n(t)}
|
|||
|
|
}
|
|||
|
|
`}}),{props:this.props,styles:this.styles,grid:this.grid,seed:this.seed,random:this.random,doodles:this.doodles,shaders:this.shaders,canvas:this.canvas,pattern:this.pattern,uniforms:this.uniforms}}}function zp(e,t,r,o,n){let i=new hM(e),s=n||Js(String(r)),a={};function l(h){s=Js(String(h))}function c(h=0,v){return arguments.length==1&&([h,v]=[0,h]),jr(s(),h,v)}function u(...h){let v=h.reduce((x,g)=>x.concat(g),[]);return v[~~(s()*v.length)]}function d(h){let v=[...h],x=h.length;for(;x;){let g=~~(s()*x--),m=v[x];v[x]=v[g],v[g]=m}return v}i.pre_compose({x:1,y:1,z:1,count:1,context:{},grid:{x:1,y:1,z:1,count:1},random:s,rand:c,pick:u,shuffle:d,max_grid:o,update_random:l});let{grid:f,seed:p}=i.output();if(f&&(t=f),p?(p=String(p),s=Js(p)):p=r,it(p)&&(p=Date.now(),s=Js(p)),p=String(p),i.seed=p,i.random=s,i.reset(),t.z==1)for(let h=1,v=0;h<=t.y;++h)for(let x=1;x<=t.x;++x)i.compose({x,y:h,z:1,count:++v,grid:t,context:a,rand:c,pick:u,shuffle:d,random:s,seed:p,max_grid:o});else for(let h=1,v=0;h<=t.z;++h)i.compose({x:1,y:1,z:h,count:++v,grid:t,context:a,rand:c,pick:u,shuffle:d,random:s,seed:p,max_grid:o});return i.output()}function Ip(e,t,r){let o=e.createShader(t);return e.shaderSource(o,r),e.compileShader(o),o}function pM(e,t,r){let o=Ip(e,e.VERTEX_SHADER,t),n=Ip(e,e.FRAGMENT_SHADER,r),i=e.createProgram();return e.attachShader(i,o),e.attachShader(i,n),e.linkProgram(i),e.getProgramParameter(i,e.LINK_STATUS)||(console.warn("Link failed: "+e.getProgramInfoLog(i)),console.warn("vs info-log: "+e.getShaderInfoLog(o)),console.warn("fs info-log: "+e.getShaderInfoLog(n))),i}function $n(e,t){return e.includes(t)?e:t+`
|
|||
|
|
`+e}const mM=`#version 300 es
|
|||
|
|
precision highp float;
|
|||
|
|
out vec4 FragColor;
|
|||
|
|
`,vM=`#version 300 es
|
|||
|
|
in vec4 position;
|
|||
|
|
void main() {
|
|||
|
|
gl_Position = position;
|
|||
|
|
}
|
|||
|
|
`;function gM(e,t,r){const o=e.createTexture();e.activeTexture(e["TEXTURE"+r]),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.bindTexture(e.TEXTURE_2D,o),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR)}function Op(e,t,r,o){let n=_o.get(e);if(n)return Promise.resolve(n);let i=document.createElement("canvas"),s=window.devicePixelRatio||1;t*=s,r*=s,i.width=t,i.height=r;let a=i.getContext("webgl2",{preserveDrawingBuffer:!0});if(!a)return Promise.resolve("");let l=$n(e.fragment||"","uniform vec2 u_resolution;");l=$n(l,"uniform float u_time;"),l=$n(l,"uniform float u_timeDelta;"),l=$n(l,"uniform int u_frameIndex;"),l=$n(l,"uniform vec2 u_seed;"),e.textures.forEach(y=>{let b=`uniform sampler2D ${y.name};`;l=$n(l,b)}),/(^|[^\w\_])void\s+mainImage\(\s*out\s+vec4\s+fragColor,\s*in\s+vec2\s+fragCoord\s*\)/mg.test(l)&&(l=`// https://www.shadertoy.com/howto
|
|||
|
|
|
|||
|
|
#define iResolution vec3(u_resolution, 0)
|
|||
|
|
#define iTime u_time
|
|||
|
|
#define iTimeDelta u_timeDelta
|
|||
|
|
#define iFrame u_frameIndex
|
|||
|
|
|
|||
|
|
${e.textures.map((y,b)=>`#define iChannel${b} ${y.name}`).join(`
|
|||
|
|
`)}
|
|||
|
|
|
|||
|
|
${l}
|
|||
|
|
|
|||
|
|
void main() {
|
|||
|
|
mainImage(FragColor, gl_FragCoord.xy);
|
|||
|
|
}`);let u=pM(a,e.vertex||vM,mM+l),d=a.getAttribLocation(u,"position"),f=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,f);let p=[-1,-1,-1,1,1,-1,1,1,-1,1,1,-1];a.bufferData(a.ARRAY_BUFFER,new Float32Array(p),a.STATIC_DRAW),a.enableVertexAttribArray(d),a.vertexAttribPointer(d,2,a.FLOAT,!1,0,0),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.useProgram(u);const h=a.getUniformLocation(u,"u_resolution");a.uniform2fv(h,[t,r]),e.textures.forEach((y,b)=>{gM(a,y.value,b),a.uniform1i(a.getUniformLocation(u,y.name),b)});const v=a.getUniformLocation(u,"u_seed");v&&a.uniform2f(v,Nu(o)/1e16,Math.random());const x=a.getUniformLocation(u,"u_time"),g=a.getUniformLocation(u,"u_frameIndex"),m=a.getUniformLocation(u,"u_timeDelta");if(x||m||g){let y=0,b=0;return Promise.resolve(_o.set(e,_=>(a.clear(a.COLOR_BUFFER_BIT),x&&a.uniform1f(x,_/1e3),g&&a.uniform1i(g,y++),m&&(a.uniform1f(m,(b-_)/1e3),b=_),a.drawArrays(a.TRIANGLES,0,6),i.toDataURL())))}else return a.drawArrays(a.TRIANGLES,0,6),Promise.resolve(_o.set(e,i.toDataURL()))}function xM(e,t){let r=[];for(;e.next();){let{curr:o,next:n}=e.get(),i=!n||o.isSymbol(";")||n.isSymbol("}");if(r.push(o),i)break}return r.length&&(t.value=Ju(r)),t}function jb(e,t){let r=[],o=[],n=t&&t.type||"",i=[];for(;e.next();){let{prev:s,curr:a,next:l}=e.get(),c=!l||a.isSymbol("}");if(n==="block"&&c){!l&&r.length&&!a.isSymbol("}")&&(r[r.length-1].value+=";"+a.value),t.value=r;break}else if(a.isSymbol("{")&&o.length&&!i.length){let u=bM(o);if(!u.length)continue;let d=jb(e,{type:"block",name:"unkown",value:[]});u.forEach(f=>{let p=Object.assign({},d,{name:f.name,args:f.args});r.push(p)}),o=[]}else if(a.isSymbol(":")&&o.length&&!i.length){let u=Ju(o);r.push(xM(e,{type:"statement",name:u,value:""})),n=="block"&&(t.value=r),o=[]}else a.isSymbol(";")?r.length&&o.length&&(r[r.length-1].value+=";"+Ju(o),o=[]):(a.isSymbol("(")&&i.push(a),a.isSymbol(")")&&i.pop(),o.push(a))}return r.length&&n=="block"&&(t.value=r),n?t:r}function Ju(e){return e.filter((t,r)=>!(t.isSymbol(";")&&r===e.length-1)).map(t=>t.value).join("")}function bM(e){let t=pr(e),r=[],o="",n=[],i=[],s=[];for(;t.next();){let{curr:a,next:l}=t.get();!o.length&&a.isWord()?o=a.value:a.isSymbol("(")?(s.length&&i.push(a.value),s.push(a)):a.isSymbol(")")?(s.pop(),s.length?i.push(a.value):i.length&&(n.push(i.join("")),i=[])):a.isSymbol(",")?s.length?(n.push(i.join("")),i=[]):(i.length&&(n.push(i.join("")),i=[]),o&&(r.push({name:o,args:n}),o="",n=[],i=[])):i.push(a.value)}return o&&r.push({name:o,args:n}),r.filter((a,l,c)=>c.findIndex(d=>d.name===a.name&&a.args.join("")==d.args.join(""))===l)}function yM(e){let t=pr(to(e));return jb(t)}function CM(e,t){return`
|
|||
|
|
vec3 mapping(vec2 uv, vec2 grid) {
|
|||
|
|
vec2 _grid = 1.0/grid;
|
|||
|
|
float x = ceil(uv.x/_grid.x);
|
|||
|
|
float y = ceil(grid.y - uv.y/_grid.y);
|
|||
|
|
float i = x + (y - 1.0) * y;
|
|||
|
|
return vec3(x, y, i);
|
|||
|
|
}
|
|||
|
|
vec4 getColor(float x, float y, float i, float I, float X, float Y, float t) {
|
|||
|
|
vec4 color = vec4(0, 0, 0, 0);
|
|||
|
|
${e}
|
|||
|
|
return color;
|
|||
|
|
}
|
|||
|
|
void main() {
|
|||
|
|
vec2 uv = gl_FragCoord.xy/u_resolution.xy;
|
|||
|
|
vec2 grid = vec2(${t.x}, ${t.y});
|
|||
|
|
vec3 p = mapping(uv, grid);
|
|||
|
|
FragColor = getColor(p.x, p.y, p.z, grid.x * grid.y, grid.x, grid.y, u_time);
|
|||
|
|
}
|
|||
|
|
`}function Wb(e,t){if(e.name==="fill"){let{r,g:o,b:n,a:i}=t.get_rgba_color(e.value);return{type:"statement",value:`
|
|||
|
|
color = vec4(${ea(r/255)}, ${ea(o/255)}, ${ea(n/255)}, ${ea(i)});
|
|||
|
|
`}}return e.name=="grid"?{type:"grid",value:e.value}:{type:"statement",value:""}}function wM(e,t){if(e.name==="match"){let r=e.args[0],o=[];return e.value.forEach(n=>{let i=Wb(n,t);i.type=="statement"&&o.push(i.value)}),`
|
|||
|
|
if (${r}) {
|
|||
|
|
${o.join("")}
|
|||
|
|
}
|
|||
|
|
`}return""}function ea(e){return String(e).includes(".")?e:e+".0"}function SM(e){let[t,r=t]=String(e+"").replace(/\s+/g,"").replace(/[,,xX]+/g,"x").split("x").map(o=>parseInt(o));return(!t||t<1)&&(t=1),(!r||r<1)&&(r=1),{x:t,y:r}}function _M(e,t){let r=yM(e),o=[],n={x:1,y:1};return r.forEach(i=>{if(i.type==="statement"){let s=Wb(i,t);s.type=="statement"&&o.push(s.value),s.type==="grid"&&(n=SM(s.value))}else i.type==="block"&&o.push(wM(i,t))}),CM(o.join(""),n)}const $M=fb();function TM(e){let t=_o.get(e);if(t)return Promise.resolve(t);let r=$M("css-doodle-paint"),o=PM(r,e),n=new Blob([o],{type:"text/javascript"});try{CSS.paintWorklet&&CSS.paintWorklet.addModule(URL.createObjectURL(n))}catch{}return Promise.resolve(_o.set(e,`paint(${r})`))}function PM(e,t){return t=Fu(t),t.includes("paint(")||(t=`
|
|||
|
|
paint(ctx, {width, height}, props) {
|
|||
|
|
${t}
|
|||
|
|
}
|
|||
|
|
`),`
|
|||
|
|
registerPaint('${e}', class {
|
|||
|
|
${t}
|
|||
|
|
})
|
|||
|
|
`}function EM(e,t,r,o){return new Promise((n,i)=>{let s=`data:image/svg+xml;utf8,${encodeURIComponent(e)}`;function a(){let l=new Image;l.crossOrigin="anonymous",l.src=s,l.onload=()=>{let c=document.createElement("canvas"),u=c.getContext("2d"),d=window.devicePixelRatio||1;o!=1&&(d=1),c.width=t*d,c.height=r*d,u.drawImage(l,0,0,c.width,c.height);try{c.toBlob(f=>{n({blob:f,source:s,url:URL.createObjectURL(f)})})}catch(f){i(f)}}}Lu()?db(s,a,200):a()})}function kM(e){if(typeof getComputedStyle>"u")return"";let t={};if(e.computedStyleMap)for(let[r,o]of e.computedStyleMap())r.startsWith("--")&&(t[r]=o[0][0]);else{let r=getComputedStyle(e);for(let o of r)o.startsWith("--")&&(t[o]=r.getPropertyValue(o))}return RM(t)}function AM(e,t){return typeof getComputedStyle>"u"?"":getComputedStyle(e).getPropertyValue(t).trim().replace(/^\(|\)$/g,"")}function RM(e){let t=[];for(let[r,o]of Object.entries(e))t.push(r+":"+o);return t.join(";")}function zM(e){let[t,r,o,n=1]=e.replace(/rgba?\((.+)\)/,(i,s)=>s).split(/,\s*/);return{r:t,g:r,b:o,a:n}}function IM(e,t){let r=e.querySelector("#defs");return r?(r.style.color=t,zM(getComputedStyle(r).color)):{r:0,g:0,b:0,a:1}}const Bp=1e3/60,Mp=1e3/1;function OM(e){let t,r=0,o=0,n=0,i=!1;function s(a){r||(r=a),e(r);let l=a-o;l<Bp&&(l=Bp),l>Mp&&(l=n||Mp),o&&(r+=l),n=l,o=a,t=requestAnimationFrame(s)}return t=requestAnimationFrame(s),{resume(){t&&i&&(i=!1,t=requestAnimationFrame(s))},pause(){t&&(cancelAnimationFrame(t),i=!0)},cancel(){t&&(i=!1,cancelAnimationFrame(t),t=null)}}}if(typeof customElements<"u"){class e extends HTMLElement{constructor(){super(),this.doodle=this.attachShadow({mode:"open"}),this.animations=[],this.extra={get_variable:r=>AM(this,r),get_rgba_color:r=>IM(this.shadowRoot,r)}}connectedCallback(r){this.innerHTML?this.load(r):setTimeout(()=>this.load(r))}disconnectedCallback(){this.cleanup()}cleanup(){_o.clear();for(let r of this.animations)r.cancel();this.animations=[]}update(r){this.cleanup();let o=this.get_use();r||(r=Fu(this.innerHTML)),this.innerHTML=r,this.grid_size||(this.grid_size=this.get_grid());let{x:n,y:i,z:s}=this.grid_size;const a=this.generate(Pi(o+r,this.extra));if(!this.shadowRoot.innerHTML)return Object.assign(this.grid_size,a.grid),this.build_grid(a,a.grid);if(a.grid){let{x:c,y:u,z:d}=a.grid;if(n!==c||i!==u||s!==d)return Object.assign(this.grid_size,a.grid),this.build_grid(a,a.grid);Object.assign(this.grid_size,a.grid)}else{let c=this.get_grid(),{x:u,y:d,z:f}=c;if(n!==u||i!==d||s!==f)return Object.assign(this.grid_size,c),this.build_grid(this.generate(Pi(o+r,this.extra)),c)}let l=this.replace(a);this.set_content(".style-keyframes",l(a.styles.keyframes)),a.props.has_animation&&(this.set_content(".style-cells",""),this.set_content(".style-container","")),setTimeout(()=>{this.set_content(".style-container",l(hc(this.grid_size)+a.styles.host+a.styles.container)),this.set_content(".style-cells",l(a.styles.cells))})}get grid(){return Object.assign({},this.grid_size)}set grid(r){this.attr("grid",r),this.connectedCallback(!0)}get seed(){return this._seed_value}set seed(r){this.attr("seed",r),this.connectedCallback(!0)}get use(){return this.attr("use")}set use(r){this.attr("use",r),this.connectedCallback(!0)}get_max_grid(){return this.hasAttribute("experimental")?256:64}get_grid(){return Vu(this.attr("grid"),this.get_max_grid())}get_use(){let r=String(this.attr("use")||"").trim();return/^var\(/.test(r)&&(r=`@use:${r};`),r}attr(r,o){if(arguments.length===1)return this.getAttribute(r);if(arguments.length===2)return this.setAttribute(r,o),o}generate(r){let o=this.get_grid(),n=this.attr("seed")||this.attr("data-seed");it(n)&&(n=Date.now());let i=this.compiled=zp(r,o,n,this.get_max_grid());return this._seed_value=i.seed,this._seed_random=i.random,i}doodle_to_image(r,o,n){typeof o=="function"&&(n=o,o=null),r=":doodle { width:100%;height:100% }"+r;let i=Pi(r,this.extra),s=Vu(""),a=zp(i,s,this._seed_value,this.get_max_grid(),this._seed_random),l=a.grid?a.grid:s;const{keyframes:c,host:u,container:d,cells:f}=a.styles;let p=this.replace(a),h=Lp(l),v=o&&o.width&&o.height?`width="${o.widt
|
|||
|
|
<svg ${v} xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none">
|
|||
|
|
<foreignObject width="100%" height="100%">
|
|||
|
|
<div class="host" xmlns="http://www.w3.org/1999/xhtml">
|
|||
|
|
<style>
|
|||
|
|
${Hp()}
|
|||
|
|
${hc(l)}
|
|||
|
|
${u}
|
|||
|
|
${d}
|
|||
|
|
${f}
|
|||
|
|
${c}
|
|||
|
|
</style>
|
|||
|
|
<svg id="defs" xmlns="http://www.w3.org/2000/svg" style="width:0; height:0"></svg>
|
|||
|
|
${h}
|
|||
|
|
</div>
|
|||
|
|
</foreignObject>
|
|||
|
|
</svg>
|
|||
|
|
`).then(x=>{let g=`data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(x)))}`;Lu()&&db(g),n(g)})}pattern_to_image({code:r,cell:o,id:n},i){let s=_M(r,this.extra);this.shader_to_image({shader:s,cell:o,id:n},i)}canvas_to_image({code:r},o){TM(r).then(o)}pause(){this.setAttribute("cssd-paused-animation",!0);for(let r of this.animations)r.pause()}resume(){this.removeAttribute("cssd-paused-animation");for(let r of this.animations)r.resume()}shader_to_image({shader:r,cell:o,id:n},i){let s=typeof r=="string"?_B(r):r,a=this.doodle.getElementById(o);const l=this.seed,c=h=>{a.style.setProperty(n,`url(${h})`)},u=h=>{if(typeof h=="function"){let v=OM(x=>{c(h(x))});return this.animations.push(v),""}c(h)};let{width:d,height:f}=a&&a.getBoundingClientRect()||{width:0,height:0},p=window.devicePixelRatio||1;if(!s.textures.length||s.ticker)Op(s,d,f,l).then(u).then(i);else{let h=s.textures.map(v=>new Promise(x=>{this.doodle_to_image(v.value,{width:d,height:f},g=>{let m=new Image;m.width=d*p,m.height=f*p,m.onload=()=>x({name:v.name,value:m}),m.src=g})}));Promise.all(h).then(v=>{s.textures=v,Op(s,d,f,l).then(u).then(i)})}}load(r){this.cleanup();let o=this.get_use(),n=Pi(o+Fu(this.innerHTML),this.extra),i=this.generate(n);r||this.hasAttribute("click-to-update")&&this.addEventListener("click",s=>this.update()),this.grid_size=i.grid?i.grid:this.get_grid(),this.build_grid(i,this.grid_size)}replace({doodles:r,shaders:o,canvas:n,pattern:i}){let s=Object.keys(r),a=Object.keys(o),l=Object.keys(n),c=Object.keys(i),u=s.length+l.length+a.length+c.length;return d=>{if(!u)return Promise.resolve(d);let f=[].concat(s.map(p=>d.includes(p)?new Promise(h=>{this.doodle_to_image(r[p],v=>h({id:p,value:v}))}):Promise.resolve("")),a.map(p=>d.includes(p)?new Promise(h=>{this.shader_to_image(o[p],v=>h({id:p,value:v}))}):Promise.resolve("")),l.map(p=>d.includes(p)?new Promise(h=>{this.canvas_to_image(n[p],v=>h({id:p,value:v}))}):Promise.resolve("")),c.map(p=>d.includes(p)?new Promise(h=>{this.pattern_to_image(i[p],v=>h({id:p,value:v}))}):Promise.resolve("")));return Promise.all(f).then(p=>{for(let{id:h,value:v}of p){let x=`url(${v})`;/^canvas/.test(h)&&(x=v),/^shader|^pattern/.test(h)&&(x=`var(--${h})`),d=d.replaceAll("${"+h+"}",x)}return d})}}build_grid(r,o){const{has_transition:n,has_animation:i}=r.props;let s=n||i;const{keyframes:a,host:l,container:c,cells:u}=r.styles;let d=hc(o)+l+c,f=s?"":u;const{uniforms:p}=r;let h=this.replace(r);this.doodle.innerHTML=`
|
|||
|
|
<style>${Hp()}</style>
|
|||
|
|
<style class="style-keyframes">${a}</style>
|
|||
|
|
<style class="style-container">${d}</style>
|
|||
|
|
<style class="style-cells">${f}</style>
|
|||
|
|
<svg id="defs" xmlns="http://www.w3.org/2000/svg" style="width:0;height:0"></svg>
|
|||
|
|
${Lp(o)}
|
|||
|
|
`,this.set_content(".style-container",h(d)),s?setTimeout(()=>{this.set_content(".style-cells",h(u))},50):this.set_content(".style-cells",h(u)),p.time&&this.register_uniform_time(),p.mousex||p.mousey?this.register_uniform_mouse(p):this.remove_uniform_mouse(),p.width||p.height?this.register_uniform_resolution(p):this.remove_uniform_resolution()}register_uniform_mouse(r){if(!this.uniform_mouse_callback){let{uniform_mousex:o,uniform_mousey:n}=Pn;this.uniform_mouse_callback=s=>{let a=s.detail||s;r.mousex&&this.style.setProperty("--"+o.name,a.offsetX),r.mousey&&this.style.setProperty("--"+n.name,a.offsetY)},this.addEventListener("pointermove",this.uniform_mouse_callback);let i=new CustomEvent("pointermove",{detail:{offsetX:0,offsetY:0}});this.dispatchEvent(i)}}remove_uniform_mouse(){if(this.uniform_mouse_callback){let{uniform_mousex:r,uniform_mousey:o}=Pn;this.style.removeProperty("--"+r.name),this.style.removeProperty("--"+o.name),this.removeEventListener("pointermove",this.uniform_mouse_callback),this.uniform_mouse_callback=null}}register_uniform_resolution(r){if(!this.uniform_resolution_observer){let{uniform_width:o,uniform_height:n}=Pn;const i=()=>{let s=this.getBoundingClientRect();r.width&&this.style.setProperty("--"+o.name,s.width),r.height&&this.style.setProperty("--"+n.name,s.height)};i(),this.uniform_resolution_observer=new ResizeObserver(s=>{for(let a of s)(a.contentBoxSize||a.contentRect)&&i()}),this.uniform_resolution_observer.observe(this)}}remove_uniform_resolution(){if(this.uniform_resolution_observer){let{uniform_width:r,uniform_height:o}=Pn;this.style.removeProperty("--"+r.name),this.style.removeProperty("--"+o.name),this.uniform_resolution_observer.unobserve(this),this.uniform_resolution_observer=null}}register_uniform_time(){if(!window.CSS||!window.CSS.registerProperty)return!1;if(!this.is_uniform_time_registered){let{uniform_time:r}=Pn;try{CSS.registerProperty({name:"--"+r.name,syntax:"<number>",initialValue:0,inherits:!0})}catch{}this.is_uniform_time_registered=!0}}export({scale:r,name:o,download:n,detail:i}={}){return new Promise((s,a)=>{let l=kM(this),c=this.doodle.innerHTML,{width:u,height:d}=this.getBoundingClientRect();r=parseInt(r)||1;let f=u*r,p=d*r,h=`
|
|||
|
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|||
|
|
preserveAspectRatio="none"
|
|||
|
|
viewBox="0 0 ${u} ${d}"
|
|||
|
|
${Lu()?"":`width="${f}px" height="${p}px"`}
|
|||
|
|
>
|
|||
|
|
<foreignObject width="100%" height="100%">
|
|||
|
|
<div
|
|||
|
|
class="host"
|
|||
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|||
|
|
style="width: ${u}px; height: ${d}px; "
|
|||
|
|
>
|
|||
|
|
<style>.host { ${tB(l)} }</style>
|
|||
|
|
${c}
|
|||
|
|
</div>
|
|||
|
|
</foreignObject>
|
|||
|
|
</svg>
|
|||
|
|
`;n||i?EM(h,f,p,r).then(({source:v,url:x,blob:g})=>{if(s({width:f,height:p,svg:h,blob:g,source:v}),n){let m=document.createElement("a");m.download=eB(o),m.href=x,m.click()}}).catch(v=>{a(v)}):s({width:f,height:p,svg:h})})}set_content(r,o){if(o instanceof Promise)o.then(n=>{this.set_content(r,n)});else{const n=this.shadowRoot.querySelector(r);n&&(n.styleSheet?n.styleSheet.cssText=o:n.innerHTML=o)}}}customElements.get("css-doodle")||customElements.define("css-doodle",e)}function Hp(){let{uniform_time:e}=Pn;const t=Bb(/grid/).map(r=>`${r}: inherit;`).join("");return`
|
|||
|
|
*, *::after, *::before {
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
animation-play-state: var(--cssd-animation-play-state) !important;
|
|||
|
|
}
|
|||
|
|
:host, .host {
|
|||
|
|
display: block;
|
|||
|
|
visibility: visible;
|
|||
|
|
width: auto;
|
|||
|
|
height: auto;
|
|||
|
|
--${e.name}: 0
|
|||
|
|
}
|
|||
|
|
:host([hidden]), .host[hidden] {
|
|||
|
|
display: none
|
|||
|
|
}
|
|||
|
|
.container {
|
|||
|
|
position: relative;
|
|||
|
|
width: 100%;
|
|||
|
|
height: 100%;
|
|||
|
|
display: grid;
|
|||
|
|
${t}
|
|||
|
|
}
|
|||
|
|
cell:empty {
|
|||
|
|
position: relative;
|
|||
|
|
line-height: 1;
|
|||
|
|
display: grid;
|
|||
|
|
place-items: center
|
|||
|
|
}
|
|||
|
|
svg {
|
|||
|
|
position: absolute;
|
|||
|
|
width: 100%;
|
|||
|
|
height: 100%;
|
|||
|
|
}
|
|||
|
|
:host([cssd-paused-animation]) {
|
|||
|
|
--cssd-animation-play-state: paused;
|
|||
|
|
animation-play-state: paused !important;
|
|||
|
|
}
|
|||
|
|
`}function hc(e){let{x:t,y:r}=e||{};return`
|
|||
|
|
:host, .host {
|
|||
|
|
grid-template-rows: repeat(${r}, 1fr);
|
|||
|
|
grid-template-columns: repeat(${t}, 1fr);
|
|||
|
|
}
|
|||
|
|
`}function Dp(e,t,r){let o=document.createElement("cell");return o.id=Ni(e,t,r),o}function Lp(e){let{x:t,y:r,z:o}=e||{},n=document.createElement("grid"),i=document.createDocumentFragment();if(o==1)for(let s=1;s<=r;++s)for(let a=1;a<=t;++a)i.appendChild(Dp(a,s,1));else{let s=null;for(let a=1;a<=o;++a){let l=Dp(1,1,a);(s||i).appendChild(l),s=l}s=null}return n.className="container",n.appendChild(i),n.outerHTML}const BM={setup(){return{}}};const MM=e=>(md("data-v-efa2effb"),e=e(),vd(),e),HM={class:"not-found"},DM=MM(()=>Ne("span",{class:"label"},"404",-1));function LM(e,t,r,o,n,i){const s=wo("css-doodle");return rt(),Gr("div",HM,[Te(s,{class:"bg"},{default:je(()=>[gr(" @grid: 50x1 / 100%; @place: center; @size: calc(75% / @I * @i); transform: rotate(calc(@i * 5deg)); border-radius: 30%; border: 1px solid hsla( calc(10 + 4 * @i), 70%, 68%, @r.8 ); ")]),_:1}),DM])}const FM=_r(BM,[["render",LM],["__scopeId","data-v-efa2effb"]]),NM={setup(){return{}}};function jM(e,t,r,o,n,i){return rt(),Gr("div",null," Hello world; ")}const WM=_r(NM,[["render",jM]]),UM={setup(){return{}},created(){}};function KM(e,t,r,o,n,i){const s=wo("router-view");return rt(),At(s)}const VM=_r(UM,[["render",KM]]),qM=me({setup(){const e=$e("reload"),t=ci();let r=V(()=>t.getters["theme/getTheme"]),o=V(()=>t.getters["theme/getHaveForward"]);const n=V(()=>t.getters["adminNavStore/getShowTabs"]);return{reload:e,theme:r,haveFroward:o,showTabs:n,toggleShowTabs(){t.dispatch("adminNavStore/setShowTabs")}}},methods:{toggleTheme(e){this.$store.dispatch("theme/toggle",e)},toggleLanguage(e){this.$store.dispatch("theme/toggleLanguage",e)},goRouter(e){return this.$router.go(e)}}});const vn=e=>(md("data-v-71ef9a99"),e=e(),vd(),e),GM=vn(()=>Ne("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[Ne("g",{fill:"none"},[Ne("path",{d:"M20.026 17.001c-2.762 4.784-8.879 6.423-13.663 3.661A9.965 9.965 0 0 1 3.13 17.68a.75.75 0 0 1 .365-1.132c3.767-1.348 5.785-2.91 6.956-5.146c1.232-2.353 1.551-4.93.689-8.463a.75.75 0 0 1 .769-.927a9.961 9.961 0 0 1 4.457 1.327c4.784 2.762 6.423 8.879 3.66 13.662zm-8.248-4.903c-1.25 2.389-3.31 4.1-6.817 5.499a8.49 8.49 0 0 0 2.152 1.766a8.502 8.502 0 0 0 8.502-14.725a8.484 8.484 0 0 0-2.792-1.015c.647 3.384.23 6.043-1.045 8.475z",fill:"currentColor"})])],-1)),XM=vn(()=>Ne("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[Ne("g",{fill:"none"},[Ne("path",{d:"M12 2a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 2zm0 15a5 5 0 1 0 0-10a5 5 0 0 0 0 10zm0-1.5a3.5 3.5 0 1 1 0-7a3.5 3.5 0 0 1 0 7zm9.25-2.75a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zM12 19a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 19zm-7.75-6.25a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zm-.03-8.53a.75.75 0 0 1 1.06 0l1.5 1.5a.75.75 0 0 1-1.06 1.06l-1.5-1.5a.75.75 0 0 1 0-1.06zm1.06 15.56a.75.75 0 1 1-1.06-1.06l1.5-1.5a.75.75 0 1 1 1.06 1.06l-1.5 1.5zm14.5-15.56a.75.75 0 0 0-1.06 0l-1.5 1.5a.75.75 0 0 0 1.06 1.06l1.5-1.5a.75.75 0 0 0 0-1.06zm-1.06 15.56a.75.75 0 1 0 1.06-1.06l-1.5-1.5a.75.75 0 1 0-1.06 1.06l1.5 1.5z",fill:"currentColor"})])],-1)),YM=vn(()=>Ne("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[Ne("path",{d:"M17.65 6.35a7.95 7.95 0 0 0-6.48-2.31c-3.67.37-6.69 3.35-7.1 7.02C3.52 15.91 7.27 20 12 20a7.98 7.98 0 0 0 7.21-4.56c.32-.67-.16-1.44-.9-1.44c-.37 0-.72.2-.88.53a5.994 5.994 0 0 1-6.8 3.31c-2.22-.49-4.01-2.3-4.48-4.52A6.002 6.002 0 0 1 12 6c1.66 0 3.14.69 4.22 1.78l-1.51 1.51c-.63.63-.19 1.71.7 1.71H19c.55 0 1-.45 1-1V6.41c0-.89-1.08-1.34-1.71-.71l-.64.65z",fill:"currentColor"})],-1)),ZM=vn(()=>Ne("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[Ne("g",{fill:"none"},[Ne("path",{d:"M16.5 6.5h-5.75a4.25 4.25 0 0 0-4.25 4.25v5.75H5.25A3.25 3.25 0 0 1 2 13.25v-8A3.25 3.25 0 0 1 5.25 2h8a3.25 3.25 0 0 1 3.25 3.25V6.5zM22 18.75A3.25 3.25 0 0 1 18.75 22h-8a3.25 3.25 0 0 1-3.25-3.25v-8a3.25 3.25 0 0 1 3
|
|||
|
|
`+Object.entries(e).map(r=>t+` ${qb(r[0])}: ${r[1]};`).join(`
|
|||
|
|
`)+`
|
|||
|
|
`+t+"}":`: ${e};`}function TH(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function Fp(e,t,r,o){if(!t)return"";const n=TH(t,r,o);if(!n)return"";if(typeof n=="string")return`${e} {
|
|||
|
|
${n}
|
|||
|
|
}`;const i=Object.keys(n);if(i.length===0)return r.config.keepEmptyBlock?e+` {
|
|||
|
|
}`:"";const s=e?[e+" {"]:[];return i.forEach(a=>{const l=n[a];if(a==="raw"){s.push(`
|
|||
|
|
`+l+`
|
|||
|
|
`);return}a=qb(a),l!=null&&s.push(` ${a}${$H(l)}`)}),e&&s.push("}"),s.join(`
|
|||
|
|
`)}function ed(e,t,r){!e||e.forEach(o=>{if(Array.isArray(o))ed(o,t,r);else if(typeof o=="function"){const n=o(t);Array.isArray(n)?ed(n,t,r):n&&r(n)}else o&&r(o)})}function Gb(e,t,r,o,n,i){const s=e.$;!s||typeof s=="string"?t.push(s):typeof s=="function"?t.push(s({context:o.context,props:n})):(s.before&&s.before(o.context),!s.$||typeof s.$=="string"?t.push(s.$):s.$&&t.push(s.$({context:o.context,props:n})));const a=SH(t),l=Fp(a,e.props,o,n);i&&l&&i.insertRule(l),!i&&l.length&&r.push(l),e.children&&ed(e.children,{context:o.context,props:n},c=>{if(typeof c=="string"){const u=Fp(a,{raw:c},o,n);i?i.insertRule(u):r.push(u)}else Gb(c,t,r,o,n,i)}),t.pop(),s&&s.after&&s.after(o.context)}function Xb(e,t,r,o=!1){const n=[];return Gb(e,[],n,t,r,o?e.instance.__styleSheet:void 0),o?"":n.join(`
|
|||
|
|
|
|||
|
|
`)}function pc(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function wf(e){return document.querySelector(`style[cssr-id="${e}"]`)}function PH(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}window&&(window.__cssrContext={});function Yb(e){const t=e.getAttribute("mount-count");return t===null?null:Number(t)}function td(e,t){e.setAttribute("mount-count",String(t))}function Np(e,t,r,o){const{els:n}=t;if(r===void 0)n.forEach(pc),t.els=[];else{const i=wf(r);if(i&&n.includes(i)){const s=Yb(i);o?s===null?console.error(`[css-render/unmount]: The style with target='${r}' is mounted in count mode.`):s<=1?(pc(i),t.els=n.filter(a=>a!==i)):td(i,s-1):s!==null?console.error(`[css-render/unmount]: The style with target='${r}' is mounted in no-count mode.`):(pc(i),t.els=n.filter(a=>a!==i))}}}function EH(e,t){e.push(t)}function kH(e,t,r,o,n,i,s,a,l){if(s&&!l){if(r===void 0){console.error("[css-render/mount]: `id` is required in `boost` mode.");return}const p=window.__cssrContext;p[r]||(p[r]=!0,Xb(t,e,o,s));return}let c;const{els:u}=t;let d;if(r===void 0&&(d=t.render(o),r=Gn(d)),l){l(r,d!=null?d:t.render(o));return}const f=wf(r);if(a||f===null){if(c=f===null?PH(r):f,d===void 0&&(d=t.render(o)),c.textContent=d,f!==null)return;if(n){const p=document.head.getElementsByTagName("style")[0]||null;document.head.insertBefore(c,p)}else document.head.appendChild(c);i&&td(c,1),EH(u,c)}else{const p=Yb(f);i?p===null?console.error(`[css-render/mount]: The style with id='${r}' has been mounted in no-count mode.`):td(f,p+1):p!==null&&console.error(`[css-render/mount]: The style with id='${r}' has been mounted in count mode.`)}return f!=null?f:c}function AH(e){return Xb(this,this.instance,e)}function RH(e={}){const{target:t,id:r,ssr:o,props:n,count:i=!1,head:s=!1,boost:a=!1,force:l=!1}=e;return kH(this.instance,this,r!=null?r:t,n,s,i,a,l,o)}function zH(e={}){const{id:t,target:r,delay:o=0,count:n=!1}=e;o===0?Np(this.instance,this,t!=null?t:r,n):setTimeout(()=>Np(this.instance,this,t!=null?t:r,n),o)}const ta=function(e,t,r,o){return{instance:e,$:t,props:r,children:o,els:[],render:AH,mount:RH,unmount:zH}},IH=function(e,t,r,o){return Array.isArray(t)?ta(e,{$:null},null,t):Array.isArray(r)?ta(e,t,null,r):Array.isArray(o)?ta(e,t,r,o):ta(e,t,r,null)};function OH(e={}){let t=null;const r={c:(...o)=>IH(r,...o),use:(o,...n)=>o.install(r,...n),find:wf,context:{},config:e,get __styleSheet(){if(!t){const o=document.createElement("style");return document.head.appendChild(o),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}const{c:mc}=OH(),BH=mc(".xicon",{width:"1em",height:"1em",display:"inline-flex"},[mc("svg",{width:"1em",height:"1em"}),mc("svg:not([fill])",{fill:"currentColor"})]),MH=()=>{BH.mount({id:"xicons-icon"})},Zb={size:[String,Number],color:String,tag:String},Qb=Symbol("IconConfigInjection");me({name:"IconConfigProvider",props:Zb,setup(e,{slots:t}){return Ue(Qb,e),()=>Sd(t,"default")}});const HH="span",DH=me({name:"Icon",props:Zb,setup(e,{slots:t}){const r=$e(Qb,null),o=V(()=>{var s;const a=(s=e.size)!==null&&s!==void 0?s:r==null?void 0:r.size;if(a!==void 0)return typeof a=="number"||/^\d+$/.test(a)?`${a}px`:a}),n=V(()=>{const{color:s}=e;return s===void 0?r?r.color:void 0:s}),i=V(()=>{var s;const{tag:a}=e;return a===void 0?(s=r==null?void 0:r.tag)!==null&&s!==void 0?s:HH:a});return ln(()=>{MH()}),()=>A(i.value,{class:"xicon",style:{color:n.value,fontSize:o.value}},[Sd(t,"default")])}}),LH=me({components:{GeneralMenu:fH,Avatar:Kb,LogOutOutline:xH,Icon:DH},setup(){const e=ci(),t=V(()=>e.getters["menuStore/getActiveKey"]);let r=V(()=>e.getters["theme/getTheme"]);return{userInfo:e.getters["auth/getUser"],activeKey:t,theme:r,collapsed:ae(!1)}},created(){let e=this.$route.path.replace("/admin/","");this.$store.dispatch("menuStore/setActiveKey",e)},methods:{async handleSelect(e){if(e=="logout"){const{data:t}=await this.$http.post("admin/api/auth/logout");if(t)return this.$store.dispatch("auth/logout"),this.$store.dispatch("auth/initClientId"),this.$router.push({path:"/admin/login",query:{dire
|
|||
|
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|||
|
|
|
|||
|
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|||
|
|
|
|||
|
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|||
|
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|||
|
|
|
|||
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/return function(o){var n=r,i=n.lib,s=i.WordArray,a=i.Hasher,l=n.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=s.create([0,1518500249,1859775393,2400959708,2840853838]),h=s.create([1352829926,1548603684,1836072691,2053994217,0]),v=l.RIPEMD160=a.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function($,w){for(var S=0;S<16;S++){var k=w+S,C=$[k];$[k]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var T=this._hash.words,P=p.words,I=h.words,z=c.words,D=u.words,B=d.words,j=f.words,re,ue,ge,F,U,G,J,L,q,X;G=re=T[0],J=ue=T[1],L=ge=T[2],q=F=T[3],X=U=T[4];for(var ie,S=0;S<80;S+=1)ie=re+$[w+z[S]]|0,S<16?ie+=x(ue,ge,F)+P[0]:S<32?ie+=g(ue,ge,F)+P[1]:S<48?ie+=m(ue,ge,F)+P[2]:S<64?ie+=y(ue,ge,F)+P[3]:ie+=b(ue,ge,F)+P[4],ie=ie|0,ie=_(ie,B[S]),ie=ie+U|0,re=U,U=F,F=_(ge,10),ge=ue,ue=ie,ie=G+$[w+D[S]]|0,S<16?ie+=b(J,L,q)+I[0]:S<32?ie+=y(J,L,q)+I[1]:S<48?ie+=m(J,L,q)+I[2]:S<64?ie+=g(J,L,q)+I[3]:ie+=x(J,L,q)+I[4],ie=ie|0,ie=_(ie,j[S]),ie=ie+X|0,G=X,X=q,q=_(L,10),L=J,J=ie;ie=T[1]+ge+q|0,T[1]=T[2]+F+X|0,T[2]=T[3]+U+G|0,T[3]=T[4]+re+J|0,T[4]=T[0]+ue+L|0,T[0]=ie},_doFinalize:function(){var $=this._data,w=$.words,S=this._nDataBytes*8,k=$.sigBytes*8;w[k>>>5]|=128<<24-k%32,w[(k+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,$.sigBytes=(w.length+1)*4,this._process();for(var C=this._hash,T=C.words,P=0;P<5;P++){var I=T[P];T[P]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return C},clone:function(){var $=a.clone.call(this);return $._hash=this._hash.clone(),$}});function x($,w,S){return $^w^S}function g($,w,S){return $&w|~$&S}function m($,w,S){return($|~w)^S}function y($,w,S){return $&S|w&~S}function b($,w,S){return $^(w|~S)}function _($,w){return $<<w|$>>>32-w}n.RIPEMD160=a._createHelper(v),n.HmacRIPEMD160=a._createHmacHelper(v)}(),r.RIPEMD160})}(kc)),kc.exports}var Ac={exports:{}},rm;function _f(){return rm||(rm=1,function(e,t){(function(r,o){e.exports=o(De())})(ze,function(r){(function(){var o=r,n=o.lib,i=n.Base,s=o.enc,a=s.Utf8,l=o.algo;l.HMAC=i.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=a.parse(u));var d=c.blockSize,f=d*4;u.sigBytes>f&&(u=c.finalize(u)),u.clamp();for(var p=this._oKey=u.clone(),h=this._iKey=u.clone(),v=p.words,x=h.words,g=0;g<d;g++)v[g]^=1549556828,x[g]^=909522486;p.sigBytes=h.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,d=u.finalize(c);u.reset();var f=u.finalize(this._oKey.clone().concat(d));return f}})})()})}(Ac)),Ac.exports}var Rc={exports:{}},om;function h7(){return om||(om=1,function(e,t){(function(r,o,n){e.exports=o(De(),Sf(),_f())})(ze,function(r){return function(){var o=r,n=o.lib,i=n.Base,s=n.WordArray,a=o.algo,l=a.SHA1,c=a.HMAC,u=a.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,f){for(var p=this.cfg,h=c.create(p.hasher,d),v=s.create(),x=s.create([1]),g=v.words,m=x.words,y=p.keySize,b=p.iterations;g.length<y;){var _=h.update(f).finalize(x);h.reset();for(var $=_.words,w=$.length,S=_,k=1;k<b;k++){S=h.finalize(S),h.reset();for(var C=S.words,T=0;T<w;T++)$[T]^=C[T]}v.concat(_),m[0]++}return v
|
|||
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|||
|
|
* derived from CryptoJS.mode.CTR
|
|||
|
|
* Jan Hruby jhruby.web@gmail.com
|
|||
|
|
*/return r.mode.CTRGladman=function(){var o=r.lib.BlockCipherMode.extend();function n(a){if((a>>24&255)===255){var l=a>>16&255,c=a>>8&255,u=a&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=u}else a+=1<<24;return a}function i(a){return(a[0]=n(a[0]))===0&&(a[1]=n(a[1])),a}var s=o.Encryptor=o.extend({processBlock:function(a,l){var c=this._cipher,u=c.blockSize,d=this._iv,f=this._counter;d&&(f=this._counter=d.slice(0),this._iv=void 0),i(f);var p=f.slice(0);c.encryptBlock(p,0);for(var h=0;h<u;h++)a[l+h]^=p[h]}});return o.Decryptor=s,o}(),r.mode.CTRGladman})}(Mc)),Mc.exports}var Hc={exports:{}},cm;function g7(){return cm||(cm=1,function(e,t){(function(r,o,n){e.exports=o(De(),Ct())})(ze,function(r){return r.mode.OFB=function(){var o=r.lib.BlockCipherMode.extend(),n=o.Encryptor=o.extend({processBlock:function(i,s){var a=this._cipher,l=a.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(u,0);for(var d=0;d<l;d++)i[s+d]^=u[d]}});return o.Decryptor=n,o}(),r.mode.OFB})}(Hc)),Hc.exports}var Dc={exports:{}},um;function x7(){return um||(um=1,function(e,t){(function(r,o,n){e.exports=o(De(),Ct())})(ze,function(r){return r.mode.ECB=function(){var o=r.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(n,i){this._cipher.encryptBlock(n,i)}}),o.Decryptor=o.extend({processBlock:function(n,i){this._cipher.decryptBlock(n,i)}}),o}(),r.mode.ECB})}(Dc)),Dc.exports}var Lc={exports:{}},dm;function b7(){return dm||(dm=1,function(e,t){(function(r,o,n){e.exports=o(De(),Ct())})(ze,function(r){return r.pad.AnsiX923={pad:function(o,n){var i=o.sigBytes,s=n*4,a=s-i%s,l=i+a-1;o.clamp(),o.words[l>>>2]|=a<<24-l%4*8,o.sigBytes+=a},unpad:function(o){var n=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=n}},r.pad.Ansix923})}(Lc)),Lc.exports}var Fc={exports:{}},fm;function y7(){return fm||(fm=1,function(e,t){(function(r,o,n){e.exports=o(De(),Ct())})(ze,function(r){return r.pad.Iso10126={pad:function(o,n){var i=n*4,s=i-o.sigBytes%i;o.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(o){var n=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=n}},r.pad.Iso10126})}(Fc)),Fc.exports}var Nc={exports:{}},hm;function C7(){return hm||(hm=1,function(e,t){(function(r,o,n){e.exports=o(De(),Ct())})(ze,function(r){return r.pad.Iso97971={pad:function(o,n){o.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(o,n)},unpad:function(o){r.pad.ZeroPadding.unpad(o),o.sigBytes--}},r.pad.Iso97971})}(Nc)),Nc.exports}var jc={exports:{}},pm;function w7(){return pm||(pm=1,function(e,t){(function(r,o,n){e.exports=o(De(),Ct())})(ze,function(r){return r.pad.ZeroPadding={pad:function(o,n){var i=n*4;o.clamp(),o.sigBytes+=i-(o.sigBytes%i||i)},unpad:function(o){for(var n=o.words,i=o.sigBytes-1,i=o.sigBytes-1;i>=0;i--)if(n[i>>>2]>>>24-i%4*8&255){o.sigBytes=i+1;break}}},r.pad.ZeroPadding})}(jc)),jc.exports}var Wc={exports:{}},mm;function S7(){return mm||(mm=1,function(e,t){(function(r,o,n){e.exports=o(De(),Ct())})(ze,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(Wc)),Wc.exports}var Uc={exports:{}},vm;function _7(){return vm||(vm=1,function(e,t){(function(r,o,n){e.exports=o(De(),Ct())})(ze,function(r){return function(o){var n=r,i=n.lib,s=i.CipherParams,a=n.enc,l=a.Hex,c=n.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var d=l.parse(u);return s.create({ciphertext:d})}}}(),r.format.Hex})}(Uc)),Uc.exports}var Kc={exports:{}},gm;function $7(){return gm||(gm=1,function(e,t){(function(r,o,n){e.exports=o(De(),di(),fi(),gn(),Ct())})(ze,function(r){return function(){var o=r,n=o.lib,i=n.BlockCipher,s=o.algo,a=[],l=[],c=[],u=[],d=[],f=[],p=[],h=[],v=[],x=[];(function(){for(var y=[],b=0;b<256;b++)b<128?y[b]=b<<1:y[b]=b<<1^283;for(var _=0,$=0,b=0;b<256;b++){var w=$^$<<1^$<<2^$<<3^$<<4;w=w>>>8^w&255^99,a[_]=w,l[w]=_;var S=y[_],k=y[S],C=y[k],T=y[w]*257^w*16843008;c[_]=T<<24|T>>>8,u[_]=T<<16|T>>>16,d[_]=T<<8|T>>>24,f[_]=T;var T=C*16843009^k*65537^S*257^_*16843008;p[w]=T<<24|
|
|||
|
|
`).forEach(function(s){n=s.indexOf(":"),r=s.substring(0,n).trim().toLowerCase(),o=s.substring(n+1).trim(),!(!r||t[r]&&TD[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t},Am=Symbol("internals"),gy=Symbol("defaults");function Ei(e){return e&&String(e).trim().toLowerCase()}function ha(e){return e===!1||e==null?e:oe.isArray(e)?e.map(ha):String(e)}function ED(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}function Rm(e,t,r,o){if(oe.isFunction(o))return o.call(this,t,r);if(!!oe.isString(t)){if(oe.isString(o))return t.indexOf(o)!==-1;if(oe.isRegExp(o))return o.test(t)}}function kD(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function AD(e,t){const r=oe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(n,i,s){return this[o].call(this,t,n,i,s)},configurable:!0})})}function Si(e,t){t=t.toLowerCase();const r=Object.keys(e);let o=r.length,n;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}function lr(e,t){e&&this.set(e),this[gy]=t||null}Object.assign(lr.prototype,{set:function(e,t,r){const o=this;function n(i,s,a){const l=Ei(s);if(!l)throw new Error("header name must be a non-empty string");const c=Si(o,l);c&&a!==!0&&(o[c]===!1||a===!1)||(o[c||s]=ha(i))}return oe.isPlainObject(e)?oe.forEach(e,(i,s)=>{n(i,s,t)}):n(t,e,r),this},get:function(e,t){if(e=Ei(e),!e)return;const r=Si(this,e);if(r){const o=this[r];if(!t)return o;if(t===!0)return ED(o);if(oe.isFunction(t))return t.call(this,o,r);if(oe.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Ei(e),e){const r=Si(this,e);return!!(r&&(!t||Rm(this,this[r],r,t)))}return!1},delete:function(e,t){const r=this;let o=!1;function n(i){if(i=Ei(i),i){const s=Si(r,i);s&&(!t||Rm(r,r[s],s,t))&&(delete r[s],o=!0)}}return oe.isArray(e)?e.forEach(n):n(e),o},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,r={};return oe.forEach(this,(o,n)=>{const i=Si(r,n);if(i){t[i]=ha(o),delete t[n];return}const s=e?kD(n):String(n).trim();s!==n&&delete t[n],t[s]=ha(o),r[s]=!0}),this},toJSON:function(e){const t=Object.create(null);return oe.forEach(Object.assign({},this[gy]||null,this),(r,o)=>{r==null||r===!1||(t[o]=e&&oe.isArray(r)?r.join(", "):r)}),t}});Object.assign(lr,{from:function(e){return oe.isString(e)?new this(PD(e)):e instanceof this?e:new this(e)},accessor:function(e){const r=(this[Am]=this[Am]={accessors:{}}).accessors,o=this.prototype;function n(i){const s=Ei(i);r[s]||(AD(o,i),r[s]=!0)}return oe.isArray(e)?e.forEach(n):n(e),this}});lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);oe.freezeMethods(lr.prototype);oe.freezeMethods(lr);function RD(e,t){e=e||10;const r=new Array(e),o=new Array(e);let n=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=o[i];s||(s=c),r[n]=l,o[n]=c;let d=i,f=0;for(;d!==n;)f+=r[d++],d=d%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function zm(e,t){let r=0;const o=RD(50,250);return n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,l=o(a),c=i<=s;r=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-i)/l:void 0};u[t?"download":"upload"]=!0,e(u)}}function Im(e){return new Promise(function(r,o){let n=e.data;const i=lr.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}oe.isFormData(n)&&Vr.isStandardBrowserEnv&&i.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+h))}const u=vy(e.baseURL,e.url);c.open(e.method.toUpperCase(),hy(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const p=lr.from("getAllResponseHeaders"in c&&c.getAllRes
|