zb-admin/docs/assets/index.4c4e3eb3.js

2 lines
56 KiB
JavaScript
Raw Normal View History

2022-12-12 07:14:19 +00:00
import{_ as Ee,o as le,c as Ae,H as Be,g as De,h as At,r as gt,j as Pe,w as X,a as zt,b as H,d as J,bL as ke,q as _e}from"./index.2a72fe30.js";function Mt(i){return i===""?i:i==="true"||i=="1"}function Te(i,t){return new Promise((e,r)=>{var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var o=new FileReader;o.onloadend=function(){e(o.result)},o.readAsArrayBuffer(n.response)},n.open("GET",i),n.send()})}function ot(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function Yt(i,t){for(var e="",r=0,n=-1,o=0,a,l=0;l<=i.length;++l){if(l<i.length)a=i.charCodeAt(l);else{if(a===47)break;a=47}if(a===47){if(!(n===l-1||o===1))if(n!==l-1&&o===2){if(e.length<2||r!==2||e.charCodeAt(e.length-1)!==46||e.charCodeAt(e.length-2)!==46){if(e.length>2){var s=e.lastIndexOf("/");if(s!==e.length-1){s===-1?(e="",r=0):(e=e.slice(0,s),r=e.length-1-e.lastIndexOf("/")),n=l,o=0;continue}}else if(e.length===2||e.length===1){e="",r=0,n=l,o=0;continue}}t&&(e.length>0?e+="/..":e="..",r=2)}else e.length>0?e+="/"+i.slice(n+1,l):e=i.slice(n+1,l),r=l-n-1;n=l,o=0}else a===46&&o!==-1?++o:o=-1}return e}function Se(i,t){var e=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return e?e===t.root?e+r:e+i+r:r}var mt={resolve:function(){for(var t="",e=!1,r,n=arguments.length-1;n>=-1&&!e;n--){var o;n>=0?o=arguments[n]:(r===void 0&&(r=process.cwd()),o=r),ot(o),o.length!==0&&(t=o+"/"+t,e=o.charCodeAt(0)===47)}return t=Yt(t,!e),e?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(ot(t),t.length===0)return".";var e=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Yt(t,!e),t.length===0&&!e&&(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return ot(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e<arguments.length;++e){var r=arguments[e];ot(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":mt.normalize(t)},relative:function(t,e){if(ot(t),ot(e),t===e||(t=mt.resolve(t),e=mt.resolve(e),t===e))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var n=t.length,o=n-r,a=1;a<e.length&&e.charCodeAt(a)===47;++a);for(var l=e.length,s=l-a,u=o<s?o:s,f=-1,h=0;h<=u;++h){if(h===u){if(s>u){if(e.charCodeAt(a+h)===47)return e.slice(a+h+1);if(h===0)return e.slice(a+h)}else o>u&&(t.charCodeAt(r+h)===47?f=h:h===0&&(f=0));break}var v=t.charCodeAt(r+h),b=e.charCodeAt(a+h);if(v!==b)break;v===47&&(f=h)}var D="";for(h=r+f+1;h<=n;++h)(h===n||t.charCodeAt(h)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+e.slice(a+f):(a+=f,e.charCodeAt(a)===47&&++a,e.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(ot(t),t.length===0)return".";for(var e=t.charCodeAt(0),r=e===47,n=-1,o=!0,a=t.length-1;a>=1;--a)if(e=t.charCodeAt(a),e===47){if(!o){n=a;break}}else o=!1;return n===-1?r?"/":".":r&&n===1?"//":t.slice(0,n)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');ot(t);var r=0,n=-1,o=!0,a;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var l=e.length-1,s=-1;for(a=t.length-1;a>=0;--a){var u=t.charCodeAt(a);if(u===47){if(!o){r=a+1;break}}else s===-1&&(o=!1,s=a+1),l>=0&&(u===e.charCodeAt(l)?--l===-1&&(n=a):(l=-1,n=s))}return r===n?n=s:n===-1&&(n=t.length),t.slice(r,n)}else{for(a=t.length-1;a>=0;--a)if(t.charCodeAt(a)===47){if(!o){r=a+1;break}}else n===-1&&(o=!1,n=a+1);return n===-1?"":t.slice(r,n)}},extname:function(t){ot(t);for(var e=-1,r=0,n=-1,o=!0,a=0,l=t.length-1;l>=0;--l){var s=t.charCodeAt(l);if(s===47){if(!o){r=l+1;break}continue}n===-1&&(o=!1,n=l+1),s===46?e===-1?e=l:a!==1&&(a=1):e!==-1&&(a=-1)}return e===-1||n===-1||a===0||a===1&&e===n-1&&e===r+1?"":t.slice(e,n)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Se("/",t)},parse:function(t){ot(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var r=t.charCodeAt(0),n=r===47,o;n?(e.root="/",o=1):o=0;for(var a=-1,l=0,s=-1,u=!0,