layui/package/document-layer/dist/assets/index.1157d8c1.js

6 lines
89 KiB
JavaScript
Raw Normal View History

2022-06-25 20:10:12 +08:00
const ni=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}};ni();function ds(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const si="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ri=ds(si);function Br(e){return!!e||e===""}function hs(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=de(s)?li(s):hs(s);if(r)for(const o in r)t[o]=r[o]}return t}else{if(de(e))return e;if(ue(e))return e}}const oi=/;(?![^(]*\))/g,ii=/:(.+)/;function li(e){const t={};return e.split(oi).forEach(n=>{if(n){const s=n.split(ii);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Cn(e){let t="";if(de(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const s=Cn(e[n]);s&&(t+=s+" ")}else if(ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const gf=e=>de(e)?e:e==null?"":H(e)||ue(e)&&(e.toString===Dr||!j(e.toString))?JSON.stringify(e,Hr,2):String(e),Hr=(e,t)=>t&&t.__v_isRef?Hr(e,t.value):xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:kr(t)?{[`Set(${t.size})`]:[...t.values()]}:ue(t)&&!H(t)&&!Ur(t)?String(t):t,ee={},wt=[],Le=()=>{},ci=()=>!1,ui=/^on[^a-z]/,An=e=>ui.test(e),ps=e=>e.startsWith("onUpdate:"),he=Object.assign,gs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fi=Object.prototype.hasOwnProperty,V=(e,t)=>fi.call(e,t),H=Array.isArray,xt=e=>wn(e)==="[object Map]",kr=e=>wn(e)==="[object Set]",j=e=>typeof e=="function",de=e=>typeof e=="string",ms=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",jr=e=>ue(e)&&j(e.then)&&j(e.catch),Dr=Object.prototype.toString,wn=e=>Dr.call(e),ai=e=>wn(e).slice(8,-1),Ur=e=>wn(e)==="[object Object]",_s=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,un=ds(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},di=/-(\w)/g,Ue=xn(e=>e.replace(di,(t,n)=>n?n.toUpperCase():"")),hi=/\B([A-Z])/g,It=xn(e=>e.replace(hi,"-$1").toLowerCase()),Rn=xn(e=>e.charAt(0).toUpperCase()+e.slice(1)),kn=xn(e=>e?`on${Rn(e)}`:""),Qt=(e,t)=>!Object.is(e,t),fn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},pn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},gn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let js;const pi=()=>js||(js=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let ke;class gi{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&ke&&(this.parent=ke,this.index=(ke.scopes||(ke.scopes=[])).push(this)-1)}run(t){if(this.active){const n=ke;try{return ke=this,t()}finally{ke=n}}}on(){ke=this}off(){ke=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function mi(e,t=ke){t&&t.active&&t.effects.push(e)}const ys=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Kr=e=>(e.w&rt)>0,$r=e=>(e.n&rt)>0,_i=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=rt},yi=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<
* vue-router v4.0.16
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const zo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Nt=e=>zo?Symbol(e):"_vr_"+e,Lc=Nt("rvlm"),br=Nt("rvd"),Ls=Nt("r"),Vo=Nt("rl"),us=Nt("rvl"),At=typeof window!="undefined";function Fc(e){return e.__esModule||zo&&e[Symbol.toStringTag]==="Module"}const J=Object.assign;function zn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Array.isArray(r)?r.map(e):e(r)}return n}const Wt=()=>{},Bc=/\/$/,Hc=e=>e.replace(Bc,"");function Vn(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("?"),l=t.indexOf("#",c>-1?c:0);return c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=Uc(s!=null?s:t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function kc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Er(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function jc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Tt(t.matched[s],n.matched[r])&&Wo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Tt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Wo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Dc(e[n],t[n]))return!1;return!0}function Dc(e,t){return Array.isArray(e)?Cr(e,t):Array.isArray(t)?Cr(t,e):e===t}function Cr(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Uc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o<s.length;o++)if(i=s[o],!(r===1||i==="."))if(i==="..")r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var tn;(function(e){e.pop="pop",e.push="push"})(tn||(tn={}));var qt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(qt||(qt={}));function Kc(e){if(!e)if(At){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Hc(e)}const $c=/^[^#]+#/;function zc(e,t){return e.replace($c,"#")+t}function Vc(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Bn=()=>({left:window.pageXOffset,top:window.pageYOffset});function Wc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Vc(r,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 Ar(e,t){return(history.state?history.state.position-t:-1)+e}const fs=new Map;function qc(e,t){fs.set(e,t)}function Qc(e){const t=fs.get(e);return fs.delete(e),t}let Yc=()=>location.protocol+"//"+location.host;function qo(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),Er(l,"")}return Er(n,e)+s+r}function Gc(e,t,n,s){let r=[],o=[],i=null;const c=({state:h})=>{const v=qo(e,location),E=n.value,M=t.value;let T=0;if(h){if(n.value=v,t.value=h,i&&i===E){i=null;return}T=M?h.position-M.position:0}else s(v);r.forEach(P=>{P(n.value,E,{delta:T,type:tn.pop,direction:T?T>0?qt.forward:qt.back:qt.unknown})})};function l(){i=n.value}function f(h){r.push(h);const v=()=>{const E=r.indexOf(h);E>-1&&r.splice(E,1)};return o.push(v),v}function a(){const{history:h}=window;!h.state||h.replaceState(J({},h.state,{scroll:Bn()}),"")}function p(){for(const h of o)h();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",a),{pauseListeners:l,listen:f,destroy:p}}function wr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Bn():null}}function Xc(e){const{history:t,locatio