oceanpress 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,222 @@
1
+ (function(s,X){typeof exports=="object"&&typeof module<"u"?module.exports=X(require("vue")):typeof define=="function"&&define.amd?define(["vue"],X):(s=typeof globalThis<"u"?globalThis:s||self,s.OceanPressApp=X(s.Vue))})(this,function(s){"use strict";function X(e){let n=".",r="__",t="--",o;if(e){let f=e.blockPrefix;f&&(n=f),f=e.elementPrefix,f&&(r=f),f=e.modifierPrefix,f&&(t=f)}const i={install(f){o=f.c;const g=f.context;g.bem={},g.bem.b=null,g.bem.els=null}};function c(f){let g,v;return{before(b){g=b.bem.b,v=b.bem.els,b.bem.els=null},after(b){b.bem.b=g,b.bem.els=v},$({context:b,props:$}){return f=typeof f=="string"?f:f({context:b,props:$}),b.bem.b=f,`${($==null?void 0:$.bPrefix)||n}${b.bem.b}`}}}function a(f){let g;return{before(v){g=v.bem.els},after(v){v.bem.els=g},$({context:v,props:b}){return f=typeof f=="string"?f:f({context:v,props:b}),v.bem.els=f.split(",").map($=>$.trim()),v.bem.els.map($=>`${(b==null?void 0:b.bPrefix)||n}${v.bem.b}${r}${$}`).join(", ")}}}function l(f){return{$({context:g,props:v}){f=typeof f=="string"?f:f({context:g,props:v});const b=f.split(",").map(I=>I.trim());function $(I){return b.map(oe=>`&${(v==null?void 0:v.bPrefix)||n}${g.bem.b}${I!==void 0?`${r}${I}`:""}${t}${oe}`).join(", ")}const P=g.bem.els;if(P!==null){if(process.env.NODE_ENV!=="production"&&P.length>=2)throw Error(`[css-render/plugin-bem]: m(${f}) is invalid, using modifier inside multiple elements is not allowed`);return $(P[0])}else return $()}}}function u(f){return{$({context:g,props:v}){f=typeof f=="string"?f:f({context:g,props:v});const b=g.bem.els;if(process.env.NODE_ENV!=="production"&&b!==null&&b.length>=2)throw Error(`[css-render/plugin-bem]: notM(${f}) is invalid, using modifier inside multiple elements is not allowed`);return`&:not(${(v==null?void 0:v.bPrefix)||n}${g.bem.b}${b!==null&&b.length>0?`${r}${b[0]}`:""}${t}${f})`}}}return Object.assign(i,{cB:(...f)=>o(c(f[0]),f[1],f[2]),cE:(...f)=>o(a(f[0]),f[1],f[2]),cM:(...f)=>o(l(f[0]),f[1],f[2]),cNotM:(...f)=>o(u(f[0]),f[1],f[2])}),i}function Jn(e){let n=0;for(let r=0;r<e.length;++r)e[r]==="&"&&++n;return n}const Ne=/\s*,(?![^(]*\))\s*/g,Xn=/\s+/g;function Yn(e,n){const r=[];return n.split(Ne).forEach(t=>{let o=Jn(t);if(o){if(o===1){e.forEach(c=>{r.push(t.replace("&",c))});return}}else{e.forEach(c=>{r.push((c&&c+" ")+t)});return}let i=[t];for(;o--;){const c=[];i.forEach(a=>{e.forEach(l=>{c.push(a.replace("&",l))})}),i=c}i.forEach(c=>r.push(c))}),r}function Qn(e,n){const r=[];return n.split(Ne).forEach(t=>{e.forEach(o=>{r.push((o&&o+" ")+t)})}),r}function er(e){let n=[""];return e.forEach(r=>{r=r&&r.trim(),r&&(r.includes("&")?n=Yn(n,r):n=Qn(n,r))}),n.join(", ").replace(Xn," ")}function ke(e){if(!e)return;const n=e.parentElement;n&&n.removeChild(e)}function ie(e,n){return(n??document.head).querySelector(`style[cssr-id="${e}"]`)}function nr(e){const n=document.createElement("style");return n.setAttribute("cssr-id",e),n}function se(e){return e?/^\s*@(s|m)/.test(e):!1}const rr=/[A-Z]/g;function Ve(e){return e.replace(rr,n=>"-"+n.toLowerCase())}function tr(e,n=" "){return typeof e=="object"&&e!==null?` {
2
+ `+Object.entries(e).map(r=>n+` ${Ve(r[0])}: ${r[1]};`).join(`
3
+ `)+`
4
+ `+n+"}":`: ${e};`}function or(e,n,r){return typeof e=="function"?e({context:n.context,props:r}):e}function We(e,n,r,t){if(!n)return"";const o=or(n,r,t);if(!o)return"";if(typeof o=="string")return`${e} {
5
+ ${o}
6
+ }`;const i=Object.keys(o);if(i.length===0)return r.config.keepEmptyBlock?e+` {
7
+ }`:"";const c=e?[e+" {"]:[];return i.forEach(a=>{const l=o[a];if(a==="raw"){c.push(`
8
+ `+l+`
9
+ `);return}a=Ve(a),l!=null&&c.push(` ${a}${tr(l)}`)}),e&&c.push("}"),c.join(`
10
+ `)}function ye(e,n,r){e&&e.forEach(t=>{if(Array.isArray(t))ye(t,n,r);else if(typeof t=="function"){const o=t(n);Array.isArray(o)?ye(o,n,r):o&&r(o)}else t&&r(t)})}function Ue(e,n,r,t,o){const i=e.$;let c="";if(!i||typeof i=="string")se(i)?c=i:n.push(i);else if(typeof i=="function"){const u=i({context:t.context,props:o});se(u)?c=u:n.push(u)}else if(i.before&&i.before(t.context),!i.$||typeof i.$=="string")se(i.$)?c=i.$:n.push(i.$);else if(i.$){const u=i.$({context:t.context,props:o});se(u)?c=u:n.push(u)}const a=er(n),l=We(a,e.props,t,o);c?r.push(`${c} {`):l.length&&r.push(l),e.children&&ye(e.children,{context:t.context,props:o},u=>{if(typeof u=="string"){const d=We(a,{raw:u},t,o);r.push(d)}else Ue(u,n,r,t,o)}),n.pop(),c&&r.push("}"),i&&i.after&&i.after(t.context)}function ir(e,n,r){const t=[];return Ue(e,[],t,n,r),t.join(`
11
+
12
+ `)}function xe(e){for(var n=0,r,t=0,o=e.length;o>=4;++t,o-=4)r=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,n=(r&65535)*1540483477+((r>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(e.charCodeAt(t+2)&255)<<16;case 2:n^=(e.charCodeAt(t+1)&255)<<8;case 1:n^=e.charCodeAt(t)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function sr(e,n,r,t){const{els:o}=n;if(r===void 0)o.forEach(ke),n.els=[];else{const i=ie(r,t);i&&o.includes(i)&&(ke(i),n.els=o.filter(c=>c!==i))}}function qe(e,n){e.push(n)}function ar(e,n,r,t,o,i,c,a,l){let u;if(r===void 0&&(u=n.render(t),r=xe(u)),l){l.adapter(r,u??n.render(t));return}a===void 0&&(a=document.head);const d=ie(r,a);if(d!==null&&!i)return d;const p=d??nr(r);if(u===void 0&&(u=n.render(t)),p.textContent=u,d!==null)return d;if(c){const m=a.querySelector(`meta[name="${c}"]`);if(m)return a.insertBefore(p,m),qe(n.els,p),p}return o?a.insertBefore(p,a.querySelector("style, link")):a.appendChild(p),qe(n.els,p),p}function lr(e){return ir(this,this.instance,e)}function cr(e={}){const{id:n,ssr:r,props:t,head:o=!1,force:i=!1,anchorMetaName:c,parent:a}=e;return ar(this.instance,this,n,t,o,i,c,a,r)}function ur(e={}){const{id:n,parent:r}=e;sr(this.instance,this,n,r)}const ae=function(e,n,r,t){return{instance:e,$:n,props:r,children:t,els:[],render:lr,mount:cr,unmount:ur}},fr=function(e,n,r,t){return Array.isArray(n)?ae(e,{$:null},null,n):Array.isArray(r)?ae(e,n,null,r):Array.isArray(t)?ae(e,n,r,t):ae(e,n,r,null)};function dr(e={}){const n={c:(...r)=>fr(n,...r),use:(r,...t)=>r.install(n,...t),find:ie,context:{},config:e};return n}function hr(e,n){if(e===void 0)return!1;if(n){const{context:{ids:r}}=n;return r.has(e)}return ie(e)!==null}const pr=".n-",gr="__",mr="--",Ze=dr(),Ke=X({blockPrefix:pr,elementPrefix:gr,modifierPrefix:mr});Ze.use(Ke);const{c:C,find:Is}=Ze,{cB:V,cE:L,cM:S,cNotM:br}=Ke;function j(e,n){return e+(n==="default"?"":n.replace(/^[a-z]/,r=>r.toUpperCase()))}const Ge={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function vr(e,n,r){n/=100,r/=100;let t=(o,i=(o+e/60)%6)=>r-r*n*Math.max(Math.min(i,4-i,1),0);return[t(5)*255,t(3)*255,t(1)*255]}function Cr(e,n,r){n/=100,r/=100;let t=n*Math.min(r,1-r),o=(i,c=(i+e/30)%12)=>r-t*Math.max(Math.min(c-3,9-c,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const _="^\\s*",B="\\s*$",M="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",E="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",D="([0-9A-Fa-f])",z="([0-9A-Fa-f]{2})",Je=new RegExp(`${_}hsl\\s*\\(${E},${M},${M}\\)${B}`),Xe=new RegExp(`${_}hsv\\s*\\(${E},${M},${M}\\)${B}`),Ye=new RegExp(`${_}hsla\\s*\\(${E},${M},${M},${E}\\)${B}`),Qe=new RegExp(`${_}hsva\\s*\\(${E},${M},${M},${E}\\)${B}`),yr=new RegExp(`${_}rgb\\s*\\(${E},${E},${E}\\)${B}`),xr=new RegExp(`${_}rgba\\s*\\(${E},${E},${E},${E}\\)${B}`),$r=new RegExp(`${_}#${D}${D}${D}${B}`),wr=new RegExp(`${_}#${z}${z}${z}${B}`),Fr=new RegExp(`${_}#${D}${D}${D}${D}${B}`),Ar=new RegExp(`${_}#${z}${z}${z}${z}${B}`);function A(e){return parseInt(e,16)}function Er(e){try{let n;if(n=Ye.exec(e))return[ce(n[1]),R(n[5]),R(n[9]),H(n[13])];if(n=Je.exec(e))return[ce(n[1]),R(n[5]),R(n[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(n){throw n}}function Sr(e){try{let n;if(n=Qe.exec(e))return[ce(n[1]),R(n[5]),R(n[9]),H(n[13])];if(n=Xe.exec(e))return[ce(n[1]),R(n[5]),R(n[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(n){throw n}}function W(e){try{let n;if(n=wr.exec(e))return[A(n[1]),A(n[2]),A(n[3]),1];if(n=yr.exec(e))return[w(n[1]),w(n[5]),w(n[9]),1];if(n=xr.exec(e))return[w(n[1]),w(n[5]),w(n[9]),H(n[13])];if(n=$r.exec(e))return[A(n[1]+n[1]),A(n[2]+n[2]),A(n[3]+n[3]),1];if(n=Ar.exec(e))return[A(n[1]),A(n[2]),A(n[3]),H(A(n[4])/255)];if(n=Fr.exec(e))return[A(n[1]+n[1]),A(n[2]+n[2]),A(n[3]+n[3]),H(A(n[4]+n[4])/255)];if(e in Ge)return W(Ge[e]);if(Je.test(e)||Ye.test(e)){const[r,t,o,i]=Er(e);return[...Cr(r,t,o),i]}else if(Xe.test(e)||Qe.test(e)){const[r,t,o,i]=Sr(e);return[...vr(r,t,o),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(n){throw n}}function _r(e){return e>1?1:e<0?0:e}function Br(e,n,r,t){return`rgba(${w(e)}, ${w(n)}, ${w(r)}, ${_r(t)})`}function $e(e,n,r,t,o){return w((e*n*(1-t)+r*t)/o)}function Or(e,n){Array.isArray(e)||(e=W(e)),Array.isArray(n)||(n=W(n));const r=e[3],t=n[3],o=H(r+t-r*t);return Br($e(e[0],r,n[0],t,o),$e(e[1],r,n[1],t,o),$e(e[2],r,n[2],t,o),o)}function le(e,n){const[r,t,o,i=1]=Array.isArray(e)?e:W(e),{lightness:c=1,alpha:a=1}=n;return Pr([r*c,t*c,o*c,i*a])}function H(e){const n=Math.round(Number(e)*100)/100;return n>1?1:n<0?0:n}function ce(e){const n=Math.round(Number(e));return n>=360||n<0?0:n}function w(e){const n=Math.round(Number(e));return n>255?255:n<0?0:n}function R(e){const n=Math.round(Number(e));return n>100?100:n<0?0:n}function Pr(e){const[n,r,t]=e;return 3 in e?`rgba(${w(n)}, ${w(r)}, ${w(t)}, ${H(e[3])})`:`rgba(${w(n)}, ${w(r)}, ${w(t)}, 1)`}function Tr(e=8){return Math.random().toString(16).slice(2,2+e)}function jr(){const e=s.ref(!1);return s.onMounted(()=>{e.value=!0}),s.readonly(e)}function Ls(e){return e}const Mr="@css-render/vue3-ssr";function Rr(e,n){return`<style cssr-id="${e}">
13
+ ${n}
14
+ </style>`}function Ir(e,n,r){const{styles:t,ids:o}=r;o.has(e)||t!==null&&(o.add(e),t.push(Rr(e,n)))}const Lr=typeof document<"u";function ue(){if(Lr)return;const e=s.inject(Mr,null);if(e!==null)return{adapter:(n,r)=>Ir(n,r,e),context:e}}function en(e,n){throw new Error(`[naive/${e}]: ${n}`)}function Dr(e,n=[],r){const t={};return Object.getOwnPropertyNames(e).forEach(i=>{n.includes(i)||(t[i]=e[i])}),Object.assign(t,r)}function zr(e,...n){return typeof e=="function"?e(...n):typeof e=="string"?s.createTextVNode(e):typeof e=="number"?s.createTextVNode(String(e)):null}const U="n-config-provider",Hr="n";function nn(e={},n={defaultBordered:!0}){const r=s.inject(U,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:s.computed(()=>{var t,o;const{bordered:i}=e;return i!==void 0?i:(o=(t=r==null?void 0:r.mergedBorderedRef.value)!==null&&t!==void 0?t:n.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:r?r.mergedClsPrefixRef:s.shallowRef(Hr),namespaceRef:s.computed(()=>r==null?void 0:r.mergedNamespaceRef.value)}}function Nr(e,n,r,t){r||en("useThemeClass","cssVarsRef is not passed");const o=s.inject(U,null),i=o==null?void 0:o.mergedThemeHashRef,c=o==null?void 0:o.styleMountTarget,a=s.ref(""),l=ue();let u;const d=`__${e}`,p=()=>{let m=d;const x=n?n.value:void 0,f=i==null?void 0:i.value;f&&(m+=`-${f}`),x&&(m+=`-${x}`);const{themeOverrides:g,builtinThemeOverrides:v}=t;g&&(m+=`-${xe(JSON.stringify(g))}`),v&&(m+=`-${xe(JSON.stringify(v))}`),a.value=m,u=()=>{const b=r.value;let $="";for(const P in b)$+=`${P}: ${b[P]};`;C(`.${m}`,$).mount({id:m,ssr:l,parent:c}),u=void 0}};return s.watchEffect(()=>{p()}),{themeClass:a,onRender:()=>{u==null||u()}}}var rn=typeof global=="object"&&global&&global.Object===Object&&global,kr=typeof self=="object"&&self&&self.Object===Object&&self,q=rn||kr||Function("return this")(),Z=q.Symbol,tn=Object.prototype,Vr=tn.hasOwnProperty,Wr=tn.toString,Y=Z?Z.toStringTag:void 0;function Ur(e){var n=Vr.call(e,Y),r=e[Y];try{e[Y]=void 0;var t=!0}catch{}var o=Wr.call(e);return t&&(n?e[Y]=r:delete e[Y]),o}var qr=Object.prototype,Zr=qr.toString;function Kr(e){return Zr.call(e)}var Gr="[object Null]",Jr="[object Undefined]",on=Z?Z.toStringTag:void 0;function Q(e){return e==null?e===void 0?Jr:Gr:on&&on in Object(e)?Ur(e):Kr(e)}function K(e){return e!=null&&typeof e=="object"}var Xr="[object Symbol]";function Yr(e){return typeof e=="symbol"||K(e)&&Q(e)==Xr}function Qr(e,n){for(var r=-1,t=e==null?0:e.length,o=Array(t);++r<t;)o[r]=n(e[r],r,e);return o}var fe=Array.isArray,sn=Z?Z.prototype:void 0,an=sn?sn.toString:void 0;function ln(e){if(typeof e=="string")return e;if(fe(e))return Qr(e,ln)+"";if(Yr(e))return an?an.call(e):"";var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}function N(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function cn(e){return e}var et="[object AsyncFunction]",nt="[object Function]",rt="[object GeneratorFunction]",tt="[object Proxy]";function we(e){if(!N(e))return!1;var n=Q(e);return n==nt||n==rt||n==et||n==tt}var Fe=q["__core-js_shared__"],un=function(){var e=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ot(e){return!!un&&un in e}var it=Function.prototype,st=it.toString;function at(e){if(e!=null){try{return st.call(e)}catch{}try{return e+""}catch{}}return""}var lt=/[\\^$.*+?()[\]{}|]/g,ct=/^\[object .+?Constructor\]$/,ut=Function.prototype,ft=Object.prototype,dt=ut.toString,ht=ft.hasOwnProperty,pt=RegExp("^"+dt.call(ht).replace(lt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gt(e){if(!N(e)||ot(e))return!1;var n=we(e)?pt:ct;return n.test(at(e))}function mt(e,n){return e==null?void 0:e[n]}function Ae(e,n){var r=mt(e,n);return gt(r)?r:void 0}var fn=Object.create,bt=function(){function e(){}return function(n){if(!N(n))return{};if(fn)return fn(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}();function vt(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}function Ct(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n}var yt=800,xt=16,$t=Date.now;function wt(e){var n=0,r=0;return function(){var t=$t(),o=xt-(t-r);if(r=t,o>0){if(++n>=yt)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Ft(e){return function(){return e}}var de=function(){try{var e=Ae(Object,"defineProperty");return e({},"",{}),e}catch{}}(),At=de?function(e,n){return de(e,"toString",{configurable:!0,enumerable:!1,value:Ft(n),writable:!0})}:cn,Et=wt(At),St=9007199254740991,_t=/^(?:0|[1-9]\d*)$/;function dn(e,n){var r=typeof e;return n=n??St,!!n&&(r=="number"||r!="symbol"&&_t.test(e))&&e>-1&&e%1==0&&e<n}function Ee(e,n,r){n=="__proto__"&&de?de(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}function he(e,n){return e===n||e!==e&&n!==n}var Bt=Object.prototype,Ot=Bt.hasOwnProperty;function Pt(e,n,r){var t=e[n];(!(Ot.call(e,n)&&he(t,r))||r===void 0&&!(n in e))&&Ee(e,n,r)}function Tt(e,n,r,t){var o=!r;r||(r={});for(var i=-1,c=n.length;++i<c;){var a=n[i],l=void 0;l===void 0&&(l=e[a]),o?Ee(r,a,l):Pt(r,a,l)}return r}var hn=Math.max;function jt(e,n,r){return n=hn(n===void 0?e.length-1:n,0),function(){for(var t=arguments,o=-1,i=hn(t.length-n,0),c=Array(i);++o<i;)c[o]=t[n+o];o=-1;for(var a=Array(n+1);++o<n;)a[o]=t[o];return a[n]=r(c),vt(e,this,a)}}function Mt(e,n){return Et(jt(e,n,cn),e+"")}var Rt=9007199254740991;function pn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Rt}function Se(e){return e!=null&&pn(e.length)&&!we(e)}function It(e,n,r){if(!N(r))return!1;var t=typeof n;return(t=="number"?Se(r)&&dn(n,r.length):t=="string"&&n in r)?he(r[n],e):!1}function Lt(e){return Mt(function(n,r){var t=-1,o=r.length,i=o>1?r[o-1]:void 0,c=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,c&&It(r[0],r[1],c)&&(i=o<3?void 0:i,o=1),n=Object(n);++t<o;){var a=r[t];a&&e(n,a,t,i)}return n})}var Dt=Object.prototype;function gn(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||Dt;return e===r}function zt(e,n){for(var r=-1,t=Array(e);++r<e;)t[r]=n(r);return t}var Ht="[object Arguments]";function mn(e){return K(e)&&Q(e)==Ht}var bn=Object.prototype,Nt=bn.hasOwnProperty,kt=bn.propertyIsEnumerable,_e=mn(function(){return arguments}())?mn:function(e){return K(e)&&Nt.call(e,"callee")&&!kt.call(e,"callee")};function Vt(){return!1}var vn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cn=vn&&typeof module=="object"&&module&&!module.nodeType&&module,Wt=Cn&&Cn.exports===vn,yn=Wt?q.Buffer:void 0,Ut=yn?yn.isBuffer:void 0,xn=Ut||Vt,qt="[object Arguments]",Zt="[object Array]",Kt="[object Boolean]",Gt="[object Date]",Jt="[object Error]",Xt="[object Function]",Yt="[object Map]",Qt="[object Number]",eo="[object Object]",no="[object RegExp]",ro="[object Set]",to="[object String]",oo="[object WeakMap]",io="[object ArrayBuffer]",so="[object DataView]",ao="[object Float32Array]",lo="[object Float64Array]",co="[object Int8Array]",uo="[object Int16Array]",fo="[object Int32Array]",ho="[object Uint8Array]",po="[object Uint8ClampedArray]",go="[object Uint16Array]",mo="[object Uint32Array]",y={};y[ao]=y[lo]=y[co]=y[uo]=y[fo]=y[ho]=y[po]=y[go]=y[mo]=!0,y[qt]=y[Zt]=y[io]=y[Kt]=y[so]=y[Gt]=y[Jt]=y[Xt]=y[Yt]=y[Qt]=y[eo]=y[no]=y[ro]=y[to]=y[oo]=!1;function bo(e){return K(e)&&pn(e.length)&&!!y[Q(e)]}function vo(e){return function(n){return e(n)}}var $n=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ee=$n&&typeof module=="object"&&module&&!module.nodeType&&module,Co=ee&&ee.exports===$n,Be=Co&&rn.process,wn=function(){try{var e=ee&&ee.require&&ee.require("util").types;return e||Be&&Be.binding&&Be.binding("util")}catch{}}(),Fn=wn&&wn.isTypedArray,An=Fn?vo(Fn):bo;function yo(e,n){var r=fe(e),t=!r&&_e(e),o=!r&&!t&&xn(e),i=!r&&!t&&!o&&An(e),c=r||t||o||i,a=c?zt(e.length,String):[],l=a.length;for(var u in e)c&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||dn(u,l))||a.push(u);return a}function xo(e,n){return function(r){return e(n(r))}}function $o(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var wo=Object.prototype,Fo=wo.hasOwnProperty;function Ao(e){if(!N(e))return $o(e);var n=gn(e),r=[];for(var t in e)t=="constructor"&&(n||!Fo.call(e,t))||r.push(t);return r}function En(e){return Se(e)?yo(e):Ao(e)}var ne=Ae(Object,"create");function Eo(){this.__data__=ne?ne(null):{},this.size=0}function So(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var _o="__lodash_hash_undefined__",Bo=Object.prototype,Oo=Bo.hasOwnProperty;function Po(e){var n=this.__data__;if(ne){var r=n[e];return r===_o?void 0:r}return Oo.call(n,e)?n[e]:void 0}var To=Object.prototype,jo=To.hasOwnProperty;function Mo(e){var n=this.__data__;return ne?n[e]!==void 0:jo.call(n,e)}var Ro="__lodash_hash_undefined__";function Io(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ne&&n===void 0?Ro:n,this}function k(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var t=e[n];this.set(t[0],t[1])}}k.prototype.clear=Eo,k.prototype.delete=So,k.prototype.get=Po,k.prototype.has=Mo,k.prototype.set=Io;function Lo(){this.__data__=[],this.size=0}function pe(e,n){for(var r=e.length;r--;)if(he(e[r][0],n))return r;return-1}var Do=Array.prototype,zo=Do.splice;function Ho(e){var n=this.__data__,r=pe(n,e);if(r<0)return!1;var t=n.length-1;return r==t?n.pop():zo.call(n,r,1),--this.size,!0}function No(e){var n=this.__data__,r=pe(n,e);return r<0?void 0:n[r][1]}function ko(e){return pe(this.__data__,e)>-1}function Vo(e,n){var r=this.__data__,t=pe(r,e);return t<0?(++this.size,r.push([e,n])):r[t][1]=n,this}function T(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var t=e[n];this.set(t[0],t[1])}}T.prototype.clear=Lo,T.prototype.delete=Ho,T.prototype.get=No,T.prototype.has=ko,T.prototype.set=Vo;var Sn=Ae(q,"Map");function Wo(){this.size=0,this.__data__={hash:new k,map:new(Sn||T),string:new k}}function Uo(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function ge(e,n){var r=e.__data__;return Uo(n)?r[typeof n=="string"?"string":"hash"]:r.map}function qo(e){var n=ge(this,e).delete(e);return this.size-=n?1:0,n}function Zo(e){return ge(this,e).get(e)}function Ko(e){return ge(this,e).has(e)}function Go(e,n){var r=ge(this,e),t=r.size;return r.set(e,n),this.size+=r.size==t?0:1,this}function G(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var t=e[n];this.set(t[0],t[1])}}G.prototype.clear=Wo,G.prototype.delete=qo,G.prototype.get=Zo,G.prototype.has=Ko,G.prototype.set=Go;function Jo(e){return e==null?"":ln(e)}var _n=xo(Object.getPrototypeOf,Object),Xo="[object Object]",Yo=Function.prototype,Qo=Object.prototype,Bn=Yo.toString,ei=Qo.hasOwnProperty,ni=Bn.call(Object);function ri(e){if(!K(e)||Q(e)!=Xo)return!1;var n=_n(e);if(n===null)return!0;var r=ei.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&Bn.call(r)==ni}function ti(e,n,r){var t=-1,o=e.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(o);++t<o;)i[t]=e[t+n];return i}function oi(e,n,r){var t=e.length;return r=r===void 0?t:r,ti(e,n,r)}var ii="\\ud800-\\udfff",si="\\u0300-\\u036f",ai="\\ufe20-\\ufe2f",li="\\u20d0-\\u20ff",ci=si+ai+li,ui="\\ufe0e\\ufe0f",fi="\\u200d",di=RegExp("["+fi+ii+ci+ui+"]");function On(e){return di.test(e)}function hi(e){return e.split("")}var Pn="\\ud800-\\udfff",pi="\\u0300-\\u036f",gi="\\ufe20-\\ufe2f",mi="\\u20d0-\\u20ff",bi=pi+gi+mi,vi="\\ufe0e\\ufe0f",Ci="["+Pn+"]",Oe="["+bi+"]",Pe="\\ud83c[\\udffb-\\udfff]",yi="(?:"+Oe+"|"+Pe+")",Tn="[^"+Pn+"]",jn="(?:\\ud83c[\\udde6-\\uddff]){2}",Mn="[\\ud800-\\udbff][\\udc00-\\udfff]",xi="\\u200d",Rn=yi+"?",In="["+vi+"]?",$i="(?:"+xi+"(?:"+[Tn,jn,Mn].join("|")+")"+In+Rn+")*",wi=In+Rn+$i,Fi="(?:"+[Tn+Oe+"?",Oe,jn,Mn,Ci].join("|")+")",Ai=RegExp(Pe+"(?="+Pe+")|"+Fi+wi,"g");function Ei(e){return e.match(Ai)||[]}function Si(e){return On(e)?Ei(e):hi(e)}function _i(e){return function(n){n=Jo(n);var r=On(n)?Si(n):void 0,t=r?r[0]:n.charAt(0),o=r?oi(r,1).join(""):n.slice(1);return t[e]()+o}}var Bi=_i("toUpperCase");function Oi(){this.__data__=new T,this.size=0}function Pi(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function Ti(e){return this.__data__.get(e)}function ji(e){return this.__data__.has(e)}var Mi=200;function Ri(e,n){var r=this.__data__;if(r instanceof T){var t=r.__data__;if(!Sn||t.length<Mi-1)return t.push([e,n]),this.size=++r.size,this;r=this.__data__=new G(t)}return r.set(e,n),this.size=r.size,this}function J(e){var n=this.__data__=new T(e);this.size=n.size}J.prototype.clear=Oi,J.prototype.delete=Pi,J.prototype.get=Ti,J.prototype.has=ji,J.prototype.set=Ri;var Ln=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dn=Ln&&typeof module=="object"&&module&&!module.nodeType&&module,Ii=Dn&&Dn.exports===Ln,zn=Ii?q.Buffer:void 0;zn&&zn.allocUnsafe;function Li(e,n){return e.slice()}var Hn=q.Uint8Array;function Di(e){var n=new e.constructor(e.byteLength);return new Hn(n).set(new Hn(e)),n}function zi(e,n){var r=Di(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Hi(e){return typeof e.constructor=="function"&&!gn(e)?bt(_n(e)):{}}function Ni(e){return function(n,r,t){for(var o=-1,i=Object(n),c=t(n),a=c.length;a--;){var l=c[++o];if(r(i[l],l,i)===!1)break}return n}}var ki=Ni();function Te(e,n,r){(r!==void 0&&!he(e[n],r)||r===void 0&&!(n in e))&&Ee(e,n,r)}function Vi(e){return K(e)&&Se(e)}function je(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}function Wi(e){return Tt(e,En(e))}function Ui(e,n,r,t,o,i,c){var a=je(e,r),l=je(n,r),u=c.get(l);if(u){Te(e,r,u);return}var d=i?i(a,l,r+"",e,n,c):void 0,p=d===void 0;if(p){var m=fe(l),x=!m&&xn(l),f=!m&&!x&&An(l);d=l,m||x||f?fe(a)?d=a:Vi(a)?d=Ct(a):x?(p=!1,d=Li(l)):f?(p=!1,d=zi(l)):d=[]:ri(l)||_e(l)?(d=a,_e(a)?d=Wi(a):(!N(a)||we(a))&&(d=Hi(l))):p=!1}p&&(c.set(l,d),o(d,l,t,i,c),c.delete(l)),Te(e,r,d)}function Nn(e,n,r,t,o){e!==n&&ki(n,function(i,c){if(o||(o=new J),N(i))Ui(e,n,c,r,Nn,t,o);else{var a=t?t(je(e,c),i,c+"",e,n,o):void 0;a===void 0&&(a=i),Te(e,c,a)}},En)}var me=Lt(function(e,n,r){Nn(e,n,r)});const re="naive-ui-style";function qi(e,n,r){if(!n)return;const t=ue(),o=s.computed(()=>{const{value:a}=n;if(!a)return;const l=a[e];if(l)return l}),i=s.inject(U,null),c=()=>{s.watchEffect(()=>{const{value:a}=r,l=`${a}${e}Rtl`;if(hr(l,t))return;const{value:u}=o;u&&u.style.mount({id:l,head:!0,anchorMetaName:re,props:{bPrefix:a?`.${a}-`:void 0},ssr:t,parent:i==null?void 0:i.styleMountTarget})})};return t?c():s.onBeforeMount(c),o}const be={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:Zi,fontFamily:Ki,lineHeight:Gi}=be,kn=C("body",`
15
+ margin: 0;
16
+ font-size: ${Zi};
17
+ font-family: ${Ki};
18
+ line-height: ${Gi};
19
+ -webkit-text-size-adjust: 100%;
20
+ -webkit-tap-highlight-color: transparent;
21
+ `,[C("input",`
22
+ font-family: inherit;
23
+ font-size: inherit;
24
+ `)]);function Me(e,n,r){if(!n){process.env.NODE_ENV!=="production"&&en("use-style","No style is specified.");return}const t=ue(),o=s.inject(U,null),i=()=>{const c=r.value;n.mount({id:c===void 0?e:c+e,head:!0,anchorMetaName:re,props:{bPrefix:c?`.${c}-`:void 0},ssr:t,parent:o==null?void 0:o.styleMountTarget}),o!=null&&o.preflightStyleDisabled||kn.mount({id:"n-global",head:!0,anchorMetaName:re,ssr:t,parent:o==null?void 0:o.styleMountTarget})};t?i():s.onBeforeMount(i)}function Re(e,n,r,t,o,i){const c=ue(),a=s.inject(U,null);if(r){const u=()=>{const d=i==null?void 0:i.value;r.mount({id:d===void 0?n:d+n,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:re,ssr:c,parent:a==null?void 0:a.styleMountTarget}),a!=null&&a.preflightStyleDisabled||kn.mount({id:"n-global",head:!0,anchorMetaName:re,ssr:c,parent:a==null?void 0:a.styleMountTarget})};c?u():s.onBeforeMount(u)}return s.computed(()=>{var u;const{theme:{common:d,self:p,peers:m={}}={},themeOverrides:x={},builtinThemeOverrides:f={}}=o,{common:g,peers:v}=x,{common:b=void 0,[e]:{common:$=void 0,self:P=void 0,peers:I={}}={}}=(a==null?void 0:a.mergedThemeRef.value)||{},{common:oe=void 0,[e]:ve={}}=(a==null?void 0:a.mergedThemeOverridesRef.value)||{},{common:De,peers:ze={}}=ve,Ce=me({},d||$||b||t.common,oe,De,g),He=me((u=p||P||t.self)===null||u===void 0?void 0:u(Ce),f,ve,x);return{common:Ce,self:He,peers:me({},t.peers,I,m),peerOverrides:me({},f.peers,ze,v)}})}Re.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Ji=V("base-icon",`
25
+ height: 1em;
26
+ width: 1em;
27
+ line-height: 1em;
28
+ text-align: center;
29
+ display: inline-block;
30
+ position: relative;
31
+ fill: currentColor;
32
+ transform: translateZ(0);
33
+ `,[C("svg",`
34
+ height: 1em;
35
+ width: 1em;
36
+ `)]),Vn=s.defineComponent({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){Me("-base-icon",Ji,s.toRef(e,"clsPrefix"))},render(){return s.h("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)}}),Wn=s.defineComponent({name:"BaseIconSwitchTransition",setup(e,{slots:n}){const r=jr();return()=>s.h(s.Transition,{name:"icon-switch-transition",appear:r.value},n)}});function te(e,n){const r=s.defineComponent({render(){return n()}});return s.defineComponent({name:Bi(e),setup(){var t;const o=(t=s.inject(U,null))===null||t===void 0?void 0:t.mergedIconsRef;return()=>{var i;const c=(i=o==null?void 0:o.value)===null||i===void 0?void 0:i[e];return c?c():s.h(r,null)}}})}const Xi=te("close",()=>s.h("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},s.h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s.h("g",{fill:"currentColor","fill-rule":"nonzero"},s.h("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),Yi=te("error",()=>s.h("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s.h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s.h("g",{"fill-rule":"nonzero"},s.h("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Qi=te("info",()=>s.h("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s.h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s.h("g",{"fill-rule":"nonzero"},s.h("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),es=te("success",()=>s.h("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s.h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s.h("g",{"fill-rule":"nonzero"},s.h("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),ns=te("warning",()=>s.h("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s.h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s.h("g",{"fill-rule":"nonzero"},s.h("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),{cubicBezierEaseInOut:rs}=be;function Ie({originalTransform:e="",left:n=0,top:r=0,transition:t=`all .3s ${rs} !important`}={}){return[C("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:n,top:r,opacity:0}),C("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:n,top:r,opacity:1}),C("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:n,top:r,transition:t})]}const ts=V("base-close",`
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ cursor: pointer;
41
+ background-color: transparent;
42
+ color: var(--n-close-icon-color);
43
+ border-radius: var(--n-close-border-radius);
44
+ height: var(--n-close-size);
45
+ width: var(--n-close-size);
46
+ font-size: var(--n-close-icon-size);
47
+ outline: none;
48
+ border: none;
49
+ position: relative;
50
+ padding: 0;
51
+ `,[S("absolute",`
52
+ height: var(--n-close-icon-size);
53
+ width: var(--n-close-icon-size);
54
+ `),C("&::before",`
55
+ content: "";
56
+ position: absolute;
57
+ width: var(--n-close-size);
58
+ height: var(--n-close-size);
59
+ left: 50%;
60
+ top: 50%;
61
+ transform: translateY(-50%) translateX(-50%);
62
+ transition: inherit;
63
+ border-radius: inherit;
64
+ `),br("disabled",[C("&:hover",`
65
+ color: var(--n-close-icon-color-hover);
66
+ `),C("&:hover::before",`
67
+ background-color: var(--n-close-color-hover);
68
+ `),C("&:focus::before",`
69
+ background-color: var(--n-close-color-hover);
70
+ `),C("&:active",`
71
+ color: var(--n-close-icon-color-pressed);
72
+ `),C("&:active::before",`
73
+ background-color: var(--n-close-color-pressed);
74
+ `)]),S("disabled",`
75
+ cursor: not-allowed;
76
+ color: var(--n-close-icon-color-disabled);
77
+ background-color: transparent;
78
+ `),S("round",[C("&::before",`
79
+ border-radius: 50%;
80
+ `)])]),os=s.defineComponent({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 Me("-base-close",ts,s.toRef(e,"clsPrefix")),()=>{const{clsPrefix:n,disabled:r,absolute:t,round:o,isButtonTag:i}=e,c=i?"button":"div";return s.h(c,{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:[`${n}-base-close`,t&&`${n}-base-close--absolute`,r&&`${n}-base-close--disabled`,o&&`${n}-base-close--round`],onMousedown:a=>{e.focusable||a.preventDefault()},onClick:e.onClick},s.h(Vn,{clsPrefix:n},{default:()=>s.h(Xi,null)}))}}}),is=s.defineComponent({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:n}){function r(a){e.width?a.style.maxWidth=`${a.offsetWidth}px`:a.style.maxHeight=`${a.offsetHeight}px`,a.offsetWidth}function t(a){e.width?a.style.maxWidth="0":a.style.maxHeight="0",a.offsetWidth;const{onLeave:l}=e;l&&l()}function o(a){e.width?a.style.maxWidth="":a.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(a){if(a.style.transition="none",e.width){const l=a.offsetWidth;a.style.maxWidth="0",a.offsetWidth,a.style.transition="",a.style.maxWidth=`${l}px`}else if(e.reverse)a.style.maxHeight=`${a.offsetHeight}px`,a.offsetHeight,a.style.transition="",a.style.maxHeight="0";else{const l=a.offsetHeight;a.style.maxHeight="0",a.offsetWidth,a.style.transition="",a.style.maxHeight=`${l}px`}a.offsetWidth}function c(a){var l;e.width?a.style.maxWidth="":e.reverse||(a.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const{group:a,width:l,appear:u,mode:d}=e,p=a?s.TransitionGroup:s.Transition,m={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:u,onEnter:i,onAfterEnter:c,onBeforeLeave:r,onLeave:t,onAfterLeave:o};return a||(m.mode=d),s.h(p,m,n)}}}),ss=C([C("@keyframes rotator",`
81
+ 0% {
82
+ -webkit-transform: rotate(0deg);
83
+ transform: rotate(0deg);
84
+ }
85
+ 100% {
86
+ -webkit-transform: rotate(360deg);
87
+ transform: rotate(360deg);
88
+ }`),V("base-loading",`
89
+ position: relative;
90
+ line-height: 0;
91
+ width: 1em;
92
+ height: 1em;
93
+ `,[L("transition-wrapper",`
94
+ position: absolute;
95
+ width: 100%;
96
+ height: 100%;
97
+ `,[Ie()]),L("placeholder",`
98
+ position: absolute;
99
+ left: 50%;
100
+ top: 50%;
101
+ transform: translateX(-50%) translateY(-50%);
102
+ `,[Ie({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),L("container",`
103
+ animation: rotator 3s linear infinite both;
104
+ `,[L("icon",`
105
+ height: 1em;
106
+ width: 1em;
107
+ `)])])]),Le="1.6s",as={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},ls=s.defineComponent({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},as),setup(e){Me("-base-loading",ss,s.toRef(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:n,strokeWidth:r,stroke:t,scale:o}=this,i=n/o;return s.h("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},s.h(Wn,null,{default:()=>this.show?s.h("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},s.h("div",{class:`${e}-base-loading__container`},s.h("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:t}},s.h("g",null,s.h("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:Le,fill:"freeze",repeatCount:"indefinite"}),s.h("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:n-r/2,"stroke-dasharray":5.67*n,"stroke-dashoffset":18.48*n},s.h("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:Le,fill:"freeze",repeatCount:"indefinite"}),s.h("animate",{attributeName:"stroke-dashoffset",values:`${5.67*n};${1.42*n};${5.67*n}`,begin:"0s",dur:Le,fill:"freeze",repeatCount:"indefinite"})))))):s.h("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),h={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},cs=W(h.neutralBase),Un=W(h.neutralInvertBase),us=`rgba(${Un.slice(0,3).join(", ")}, `;function qn(e){return`${us+String(e)})`}function F(e){const n=Array.from(Un);return n[3]=Number(e),Or(cs,n)}const fs=Object.assign(Object.assign({name:"common"},be),{baseColor:h.neutralBase,primaryColor:h.primaryDefault,primaryColorHover:h.primaryHover,primaryColorPressed:h.primaryActive,primaryColorSuppl:h.primarySuppl,infoColor:h.infoDefault,infoColorHover:h.infoHover,infoColorPressed:h.infoActive,infoColorSuppl:h.infoSuppl,successColor:h.successDefault,successColorHover:h.successHover,successColorPressed:h.successActive,successColorSuppl:h.successSuppl,warningColor:h.warningDefault,warningColorHover:h.warningHover,warningColorPressed:h.warningActive,warningColorSuppl:h.warningSuppl,errorColor:h.errorDefault,errorColorHover:h.errorHover,errorColorPressed:h.errorActive,errorColorSuppl:h.errorSuppl,textColorBase:h.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:F(h.alpha4),placeholderColor:F(h.alpha4),placeholderColorDisabled:F(h.alpha5),iconColor:F(h.alpha4),iconColorHover:le(F(h.alpha4),{lightness:.75}),iconColorPressed:le(F(h.alpha4),{lightness:.9}),iconColorDisabled:F(h.alpha5),opacity1:h.alpha1,opacity2:h.alpha2,opacity3:h.alpha3,opacity4:h.alpha4,opacity5:h.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:F(Number(h.alphaClose)),closeIconColorHover:F(Number(h.alphaClose)),closeIconColorPressed:F(Number(h.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:F(h.alpha4),clearColorHover:le(F(h.alpha4),{lightness:.75}),clearColorPressed:le(F(h.alpha4),{lightness:.9}),scrollbarColor:qn(h.alphaScrollbar),scrollbarColorHover:qn(h.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:F(h.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:h.neutralPopover,tableColor:h.neutralCard,cardColor:h.neutralCard,modalColor:h.neutralModal,bodyColor:h.neutralBody,tagColor:"#eee",avatarColor:F(h.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:F(h.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:h.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),{cubicBezierEaseInOut:O,cubicBezierEaseOut:ds,cubicBezierEaseIn:hs}=be;function ps({overflow:e="hidden",duration:n=".3s",originalTransition:r="",leavingDelay:t="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:c=void 0,reverse:a=!1}={}){const l=a?"leave":"enter",u=a?"enter":"leave";return[C(`&.fade-in-height-expand-transition-${u}-from,
108
+ &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),C(`&.fade-in-height-expand-transition-${u}-to,
109
+ &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},c),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),C(`&.fade-in-height-expand-transition-${u}-active`,`
110
+ overflow: ${e};
111
+ transition:
112
+ max-height ${n} ${O} ${t},
113
+ opacity ${n} ${ds} ${t},
114
+ margin-top ${n} ${O} ${t},
115
+ margin-bottom ${n} ${O} ${t},
116
+ padding-top ${n} ${O} ${t},
117
+ padding-bottom ${n} ${O} ${t}
118
+ ${r?`,${r}`:""}
119
+ `),C(`&.fade-in-height-expand-transition-${l}-active`,`
120
+ overflow: ${e};
121
+ transition:
122
+ max-height ${n} ${O},
123
+ opacity ${n} ${hs},
124
+ margin-top ${n} ${O},
125
+ margin-bottom ${n} ${O},
126
+ padding-top ${n} ${O},
127
+ padding-bottom ${n} ${O}
128
+ ${r?`,${r}`:""}
129
+ `)]}const gs="n-message-api",Zn="n-message-provider",ms={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function bs(e){const{textColor2:n,closeIconColor:r,closeIconColorHover:t,closeIconColorPressed:o,infoColor:i,successColor:c,errorColor:a,warningColor:l,popoverColor:u,boxShadow2:d,primaryColor:p,lineHeight:m,borderRadius:x,closeColorHover:f,closeColorPressed:g}=e;return Object.assign(Object.assign({},ms),{closeBorderRadius:x,textColor:n,textColorInfo:n,textColorSuccess:n,textColorError:n,textColorWarning:n,textColorLoading:n,color:u,colorInfo:u,colorSuccess:u,colorError:u,colorWarning:u,colorLoading:u,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:n,iconColorInfo:i,iconColorSuccess:c,iconColorWarning:l,iconColorError:a,iconColorLoading:p,closeColorHover:f,closeColorPressed:g,closeIconColor:r,closeIconColorHover:t,closeIconColorPressed:o,closeColorHoverInfo:f,closeColorPressedInfo:g,closeIconColorInfo:r,closeIconColorHoverInfo:t,closeIconColorPressedInfo:o,closeColorHoverSuccess:f,closeColorPressedSuccess:g,closeIconColorSuccess:r,closeIconColorHoverSuccess:t,closeIconColorPressedSuccess:o,closeColorHoverError:f,closeColorPressedError:g,closeIconColorError:r,closeIconColorHoverError:t,closeIconColorPressedError:o,closeColorHoverWarning:f,closeColorPressedWarning:g,closeIconColorWarning:r,closeIconColorHoverWarning:t,closeIconColorPressedWarning:o,closeColorHoverLoading:f,closeColorPressedLoading:g,closeIconColorLoading:r,closeIconColorHoverLoading:t,closeIconColorPressedLoading:o,loadingColor:p,lineHeight:m,borderRadius:x})}const vs={common:fs,self:bs},Kn={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},Cs=C([V("message-wrapper",`
130
+ margin: var(--n-margin);
131
+ z-index: 0;
132
+ transform-origin: top center;
133
+ display: flex;
134
+ `,[ps({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),V("message",`
135
+ box-sizing: border-box;
136
+ display: flex;
137
+ align-items: center;
138
+ transition:
139
+ color .3s var(--n-bezier),
140
+ box-shadow .3s var(--n-bezier),
141
+ background-color .3s var(--n-bezier),
142
+ opacity .3s var(--n-bezier),
143
+ transform .3s var(--n-bezier),
144
+ margin-bottom .3s var(--n-bezier);
145
+ padding: var(--n-padding);
146
+ border-radius: var(--n-border-radius);
147
+ flex-wrap: nowrap;
148
+ overflow: hidden;
149
+ max-width: var(--n-max-width);
150
+ color: var(--n-text-color);
151
+ background-color: var(--n-color);
152
+ box-shadow: var(--n-box-shadow);
153
+ `,[L("content",`
154
+ display: inline-block;
155
+ line-height: var(--n-line-height);
156
+ font-size: var(--n-font-size);
157
+ `),L("icon",`
158
+ position: relative;
159
+ margin: var(--n-icon-margin);
160
+ height: var(--n-icon-size);
161
+ width: var(--n-icon-size);
162
+ font-size: var(--n-icon-size);
163
+ flex-shrink: 0;
164
+ `,[["default","info","success","warning","error","loading"].map(e=>S(`${e}-type`,[C("> *",`
165
+ color: var(--n-icon-color-${e});
166
+ transition: color .3s var(--n-bezier);
167
+ `)])),C("> *",`
168
+ position: absolute;
169
+ left: 0;
170
+ top: 0;
171
+ right: 0;
172
+ bottom: 0;
173
+ `,[Ie()])]),L("close",`
174
+ margin: var(--n-close-margin);
175
+ transition:
176
+ background-color .3s var(--n-bezier),
177
+ color .3s var(--n-bezier);
178
+ flex-shrink: 0;
179
+ `,[C("&:hover",`
180
+ color: var(--n-close-icon-color-hover);
181
+ `),C("&:active",`
182
+ color: var(--n-close-icon-color-pressed);
183
+ `)])]),V("message-container",`
184
+ z-index: 6000;
185
+ position: fixed;
186
+ height: 0;
187
+ overflow: visible;
188
+ display: flex;
189
+ flex-direction: column;
190
+ align-items: center;
191
+ `,[S("top",`
192
+ top: 12px;
193
+ left: 0;
194
+ right: 0;
195
+ `),S("top-left",`
196
+ top: 12px;
197
+ left: 12px;
198
+ right: 0;
199
+ align-items: flex-start;
200
+ `),S("top-right",`
201
+ top: 12px;
202
+ left: 0;
203
+ right: 12px;
204
+ align-items: flex-end;
205
+ `),S("bottom",`
206
+ bottom: 4px;
207
+ left: 0;
208
+ right: 0;
209
+ justify-content: flex-end;
210
+ `),S("bottom-left",`
211
+ bottom: 4px;
212
+ left: 12px;
213
+ right: 0;
214
+ justify-content: flex-end;
215
+ align-items: flex-start;
216
+ `),S("bottom-right",`
217
+ bottom: 4px;
218
+ left: 0;
219
+ right: 12px;
220
+ justify-content: flex-end;
221
+ align-items: flex-end;
222
+ `)])]),ys={info:()=>s.h(Qi,null),success:()=>s.h(es,null),warning:()=>s.h(ns,null),error:()=>s.h(Yi,null),default:()=>null},xs=s.defineComponent({name:"Message",props:Object.assign(Object.assign({},Kn),{render:Function}),setup(e){const{inlineThemeDisabled:n,mergedRtlRef:r}=nn(e),{props:t,mergedClsPrefixRef:o}=s.inject(Zn),i=qi("Message",r,o),c=Re("Message","-message",Cs,vs,t,o),a=s.computed(()=>{const{type:u}=e,{common:{cubicBezierEaseInOut:d},self:{padding:p,margin:m,maxWidth:x,iconMargin:f,closeMargin:g,closeSize:v,iconSize:b,fontSize:$,lineHeight:P,borderRadius:I,iconColorInfo:oe,iconColorSuccess:ve,iconColorWarning:De,iconColorError:ze,iconColorLoading:Ce,closeIconSize:He,closeBorderRadius:Es,[j("textColor",u)]:Ss,[j("boxShadow",u)]:_s,[j("color",u)]:Bs,[j("closeColorHover",u)]:Os,[j("closeColorPressed",u)]:Ps,[j("closeIconColor",u)]:Ts,[j("closeIconColorPressed",u)]:js,[j("closeIconColorHover",u)]:Ms}}=c.value;return{"--n-bezier":d,"--n-margin":m,"--n-padding":p,"--n-max-width":x,"--n-font-size":$,"--n-icon-margin":f,"--n-icon-size":b,"--n-close-icon-size":He,"--n-close-border-radius":Es,"--n-close-size":v,"--n-close-margin":g,"--n-text-color":Ss,"--n-color":Bs,"--n-box-shadow":_s,"--n-icon-color-info":oe,"--n-icon-color-success":ve,"--n-icon-color-warning":De,"--n-icon-color-error":ze,"--n-icon-color-loading":Ce,"--n-close-color-hover":Os,"--n-close-color-pressed":Ps,"--n-close-icon-color":Ts,"--n-close-icon-color-pressed":js,"--n-close-icon-color-hover":Ms,"--n-line-height":P,"--n-border-radius":I}}),l=n?Nr("message",s.computed(()=>e.type[0]),a,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:t,handleClose(){var u;(u=e.onClose)===null||u===void 0||u.call(e)},cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:t.placement}},render(){const{render:e,type:n,closable:r,content:t,mergedClsPrefix:o,cssVars:i,themeClass:c,onRender:a,icon:l,handleClose:u,showIcon:d}=this;a==null||a();let p;return s.h("div",{class:[`${o}-message-wrapper`,c],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):s.h("div",{class:[`${o}-message ${o}-message--${n}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(p=$s(l,n,o))&&d?s.h("div",{class:`${o}-message__icon ${o}-message__icon--${n}-type`},s.h(Wn,null,{default:()=>p})):null,s.h("div",{class:`${o}-message__content`},zr(t)),r?s.h(os,{clsPrefix:o,class:`${o}-message__close`,onClick:u,absolute:!0}):null))}});function $s(e,n,r){if(typeof e=="function")return e();{const t=n==="loading"?s.h(ls,{clsPrefix:r,strokeWidth:24,scale:.85}):ys[n]();return t?s.h(Vn,{clsPrefix:r,key:n},{default:()=>t}):null}}const ws=s.defineComponent({name:"MessageEnvironment",props:Object.assign(Object.assign({},Kn),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let n=null;const r=s.ref(!0);s.onMounted(()=>{t()});function t(){const{duration:d}=e;d&&(n=window.setTimeout(c,d))}function o(d){d.currentTarget===d.target&&n!==null&&(window.clearTimeout(n),n=null)}function i(d){d.currentTarget===d.target&&t()}function c(){const{onHide:d}=e;r.value=!1,n&&(window.clearTimeout(n),n=null),d&&d()}function a(){const{onClose:d}=e;d&&d(),c()}function l(){const{onAfterLeave:d,onInternalAfterLeave:p,onAfterHide:m,internalKey:x}=e;d&&d(),p&&p(x),m&&m()}function u(){c()}return{show:r,hide:c,handleClose:a,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:o,deactivate:u}},render(){return s.h(is,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?s.h(xs,{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]})}}),Fs=Object.assign(Object.assign({},Re.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),As=s.defineComponent({name:"MessageProvider",props:Fs,setup(e){const{mergedClsPrefixRef:n}=nn(e),r=s.ref([]),t=s.ref({}),o={create(l,u){return i(l,Object.assign({type:"default"},u))},info(l,u){return i(l,Object.assign(Object.assign({},u),{type:"info"}))},success(l,u){return i(l,Object.assign(Object.assign({},u),{type:"success"}))},warning(l,u){return i(l,Object.assign(Object.assign({},u),{type:"warning"}))},error(l,u){return i(l,Object.assign(Object.assign({},u),{type:"error"}))},loading(l,u){return i(l,Object.assign(Object.assign({},u),{type:"loading"}))},destroyAll:a};s.provide(Zn,{props:e,mergedClsPrefixRef:n}),s.provide(gs,o);function i(l,u){const d=Tr(),p=s.reactive(Object.assign(Object.assign({},u),{content:l,key:d,destroy:()=>{var x;(x=t.value[d])===null||x===void 0||x.hide()}})),{max:m}=e;return m&&r.value.length>=m&&r.value.shift(),r.value.push(p),p}function c(l){r.value.splice(r.value.findIndex(u=>u.key===l),1),delete t.value[l]}function a(){Object.values(t.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:n,messageRefs:t,messageList:r,handleAfterLeave:c},o)},render(){var e,n,r;return s.h(s.Fragment,null,(n=(e=this.$slots).default)===null||n===void 0?void 0:n.call(e),this.messageList.length?s.h(s.Teleport,{to:(r=this.to)!==null&&r!==void 0?r:"body"},s.h("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(t=>s.h(ws,Object.assign({ref:o=>{o&&(this.messageRefs[t.key]=o)},internalKey:t.key,onInternalAfterLeave:this.handleAfterLeave},Dr(t,["destroy"],void 0),{duration:t.duration===void 0?this.duration:t.duration,keepAliveOnHover:t.keepAliveOnHover===void 0?this.keepAliveOnHover:t.keepAliveOnHover,closable:t.closable===void 0?this.closable:t.closable}))))):null)}}),Gn=(new URLSearchParams(location.search).get("model")||"")==="siyuan_plugin"||!1;return console.log("[isSiyuanPlugin]",Gn),()=>s.createVNode(s.Fragment,null,[s.createVNode(As,null,{default:()=>[s.createVNode(s.resolveComponent("router-view"),null,null)]}),s.createVNode("div",null,[s.createTextVNode("可关注"),s.createVNode("a",{href:"https://ld246.com/article/1693989505448"},[s.createTextVNode("OceanPress_js 版的开发记录")]),s.createTextVNode("获取最新进展")]),Gn?null:s.createVNode("div",null,[s.createTextVNode("查看OceanPress生成的效果:"),s.createVNode("a",{href:"/notebook/请从这里开始.html#20210428212840-859h45j"},[s.createTextVNode("《思源笔记用户指南》: 请从这里开始.html")]),s.createVNode("br",null,null),s.createVNode("a",{href:"/notebook/请从这里开始/编辑器/排版元素.html"},[s.createTextVNode("《思源笔记用户指南》: 排版元素.html")])]),s.createVNode("hr",null,null),s.createVNode("div",null,[s.createVNode("div",null,[s.createTextVNode("由"),s.createVNode("a",{href:"https://shenzilong.cn"},[s.createTextVNode("崮生(子虚")]),s.createTextVNode("开发")]),s.createVNode("div",null,[s.createVNode("a",{href:"https://oceanpress-js.heartstack.space"},[s.createTextVNode("项目地址")])]),s.createVNode("div",null,[s.createVNode("a",{href:"https://github.com/siyuan-note/oceanpress"},[s.createTextVNode("开源代码仓库")])])])])});
@@ -0,0 +1,31 @@
1
+ import { readFileSync, writeFileSync } from "fs";
2
+ import http from "http";
3
+
4
+ const server = http.createServer((req, res) => {
5
+ let body = "";
6
+
7
+ req.on("data", (chunk) => {
8
+ // 将数据块拼接到请求体中
9
+ body += chunk;
10
+ });
11
+
12
+ req.on("end", () => {
13
+ // 请求体接收完毕,可以对其进行处理
14
+ const json = JSON.parse(body);
15
+ console.log(`write ${json.data.length}`, json.path);
16
+ writeFileSync(json.path, json.data);
17
+ // 发送响应
18
+ res.statusCode = 200;
19
+ res.setHeader("Content-Type", "text/plain");
20
+ res.setHeader("Access-Control-Allow-Origin", "*"); // 允许所有来源的请求
21
+ res.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE"); // 允许的 HTTP 方法
22
+ res.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");
23
+ res.end("Received request body" + json.data.length + json.path);
24
+ });
25
+ });
26
+
27
+ const PORT = process.env.PORT || 3000;
28
+
29
+ server.listen(PORT, () => {
30
+ console.log(`[write file] Server is running on port ${PORT}`);
31
+ });
@@ -0,0 +1,2 @@
1
+
2
+ export { }