web source editor: v3.22.102518
This commit is contained in:
1 parent
fd2c1d1f36
commit
11879a91e9
2 files changed
+4
-4
No files matched your search
@@ -1 +1 @@
|
||||
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="./favicon.ico"><title>legado_web_source_editor</title><script defer="defer" src="./js/chunk-vendors.4436dc1e.js"></script><script defer="defer" src="./js/app.2b2f4590.js"></script><link href="./css/app.17c64812.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but legado_web_source_editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
||||
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="./favicon.ico"><title>legado_web_source_editor</title><script defer="defer" src="./js/chunk-vendors.a0b56ea7.js"></script><script defer="defer" src="./js/app.2b2f4590.js"></script><link href="./css/app.17c64812.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but legado_web_source_editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
(self["webpackChunklegado_web_source_editor"]=self["webpackChunklegado_web_source_editor"]||[]).push([[998],{2262:function(t,e,n){"use strict";n.d(e,{B:function(){return s},BK:function(){return Gt},Bj:function(){return i},Fl:function(){return Wt},IU:function(){return Rt},Jd:function(){return S},PG:function(){return Ct},SU:function(){return Dt},Um:function(){return xt},WL:function(){return Vt},X$:function(){return j},X3:function(){return jt},XI:function(){return $t},Xl:function(){return Pt},dq:function(){return Mt},iH:function(){return Lt},j:function(){return O},lk:function(){return C},qj:function(){return wt},qq:function(){return _},yT:function(){return Et}});var r=n(3577);let o;class i{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=o,!t&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(t){if(this.active){const e=o;try{return o=this,t()}finally{o=e}}else 0}on(){o=this}off(){o=this.parent}stop(t){if(this.active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this.active=!1}}}function s(t){return new i(t)}function c(t,e=o){e&&e.active&&e.effects.push(t)}const u=t=>{const e=new Set(t);return e.w=0,e.n=0,e},l=t=>(t.w&v)>0,a=t=>(t.n&v)>0,f=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=v},p=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const o=e[r];l(o)&&!a(o)?o.delete(t):e[n++]=o,o.w&=~v,o.n&=~v}e.length=n}},d=new WeakMap;let h=0,v=1;const m=30;let g;const y=Symbol(""),b=Symbol("");class _{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,c(this,n)}run(){if(!this.active)return this.fn();let t=g,e=x;while(t){if(t===this)return;t=t.parent}try{return this.parent=g,g=this,x=!0,v=1<<++h,h<=m?f(this):w(this),this.fn()}finally{h<=m&&p(this),v=1<<--h,g=this.parent,x=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){g===this?this.deferStop=!0:this.active&&(w(this),this.onStop&&this.onStop(),this.active=!1)}}function w(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let x=!0;const k=[];function S(){k.push(x),x=!1}function C(){const t=k.pop();x=void 0===t||t}function O(t,e,n){if(x&&g){let e=d.get(t);e||d.set(t,e=new Map);let r=e.get(n);r||e.set(n,r=u());const o=void 0;E(r,o)}}function E(t,e){let n=!1;h<=m?a(t)||(t.n|=v,n=!l(t)):n=!t.has(g),n&&(t.add(g),g.deps.push(t))}function j(t,e,n,o,i,s){const c=d.get(t);if(!c)return;let l=[];if("clear"===e)l=[...c.values()];else if("length"===n&&(0,r.kJ)(t))c.forEach(((t,e)=>{("length"===e||e>=o)&&l.push(t)}));else switch(void 0!==n&&l.push(c.get(n)),e){case"add":(0,r.kJ)(t)?(0,r.S0)(n)&&l.push(c.get("length")):(l.push(c.get(y)),(0,r._N)(t)&&l.push(c.get(b)));break;case"delete":(0,r.kJ)(t)||(l.push(c.get(y)),(0,r._N)(t)&&l.push(c.get(b)));break;case"set":(0,r._N)(t)&&l.push(c.get(y));break}if(1===l.length)l[0]&&R(l[0]);else{const t=[];for(const e of l)e&&t.push(...e);R(u(t))}}function R(t,e){const n=(0,r.kJ)(t)?t:[...t];for(const r of n)r.computed&&P(r,e);for(const r of n)r.computed||P(r,e)}function P(t,e){(t!==g||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const A=(0,r.fY)("__proto__,__v_isRef,__isVue"),I=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(r.yk)),T=U(),F=U(!1,!0),M=U(!0),L=$();function $(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Rt(this);for(let e=0,o=this.length;e<o;e++)O(n,"get",e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(Rt)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){S();const n=Rt(this)[e].apply(this,t);return C(),n}})),t}function U(t=!1,e=!1){return function(n,o,i){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_isShallow"===o)return e;if("__v_raw"===o&&i===(t?e?yt:gt:e?mt:vt).get(n))return n;const s=(0,r.kJ)(n);if(!t&&s&&(0,r.RI)(L,o))return Reflect.get(L,o,i);const c=Reflect.get(n,o,i);return((0,r.yk)(o)?I.has(o):A(o))?c:(t||O(n,"get",o),e?c:Mt(c)?s&&(0,r.S0)(o)?c:c.value:(0,r.Kn)(c)?t?kt(c):wt(c):c)}}const N=J(),D=J(!0);function J(t=!1){return function(e,n,o,i){let s=e[n];if(Ot(s)&&Mt(s)&&!Mt(o))return!1;if(!t&&(Et(o)||Ot(o)||(s=Rt(s),o=Rt(o)),!(0,r.kJ)(e)&&Mt(s)&&!Mt(o)))return s.value=o,!0;const c=(0,r.kJ)(e)&&(0,r.S0)(n)?Number(n)<e.length:(0,r.RI)(e,n),u=Reflect.set(e,n,o,i);return e===Rt(i)&&(c?(0,r.aU)(o,s)&&j(e,"set",n,o,s):j(e,"add",n,o)),u}}function V(t,e){const n=(0,r.RI)(t,e),o=t[e],i=Reflect.deleteProperty(t,e);return i&&n&&j(t,"delete",e,void 0,o),i}function G(t,e){const n=Reflect.has(t,e);return(0,r.yk)(e)&&I.has(e)||O(t,"has",e),n}function B(t){return OLine truncated
|
||||
(self["webpackChunklegado_web_source_editor"]=self["webpackChunklegado_web_source_editor"]||[]).push([[998],{2262:function(t,e,n){"use strict";n.d(e,{B:function(){return s},BK:function(){return Gt},Bj:function(){return i},Fl:function(){return Wt},IU:function(){return Rt},Jd:function(){return S},PG:function(){return Ct},SU:function(){return Dt},Um:function(){return xt},WL:function(){return Vt},X$:function(){return j},X3:function(){return jt},XI:function(){return $t},Xl:function(){return Pt},dq:function(){return Mt},iH:function(){return Lt},j:function(){return O},lk:function(){return C},qj:function(){return wt},qq:function(){return _},yT:function(){return Et}});var r=n(3577);let o;class i{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=o,!t&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(t){if(this.active){const e=o;try{return o=this,t()}finally{o=e}}else 0}on(){o=this}off(){o=this.parent}stop(t){if(this.active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this.active=!1}}}function s(t){return new i(t)}function c(t,e=o){e&&e.active&&e.effects.push(t)}const u=t=>{const e=new Set(t);return e.w=0,e.n=0,e},l=t=>(t.w&v)>0,a=t=>(t.n&v)>0,f=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=v},p=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const o=e[r];l(o)&&!a(o)?o.delete(t):e[n++]=o,o.w&=~v,o.n&=~v}e.length=n}},d=new WeakMap;let h=0,v=1;const m=30;let g;const y=Symbol(""),b=Symbol("");class _{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,c(this,n)}run(){if(!this.active)return this.fn();let t=g,e=x;while(t){if(t===this)return;t=t.parent}try{return this.parent=g,g=this,x=!0,v=1<<++h,h<=m?f(this):w(this),this.fn()}finally{h<=m&&p(this),v=1<<--h,g=this.parent,x=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){g===this?this.deferStop=!0:this.active&&(w(this),this.onStop&&this.onStop(),this.active=!1)}}function w(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let x=!0;const k=[];function S(){k.push(x),x=!1}function C(){const t=k.pop();x=void 0===t||t}function O(t,e,n){if(x&&g){let e=d.get(t);e||d.set(t,e=new Map);let r=e.get(n);r||e.set(n,r=u());const o=void 0;E(r,o)}}function E(t,e){let n=!1;h<=m?a(t)||(t.n|=v,n=!l(t)):n=!t.has(g),n&&(t.add(g),g.deps.push(t))}function j(t,e,n,o,i,s){const c=d.get(t);if(!c)return;let l=[];if("clear"===e)l=[...c.values()];else if("length"===n&&(0,r.kJ)(t))c.forEach(((t,e)=>{("length"===e||e>=o)&&l.push(t)}));else switch(void 0!==n&&l.push(c.get(n)),e){case"add":(0,r.kJ)(t)?(0,r.S0)(n)&&l.push(c.get("length")):(l.push(c.get(y)),(0,r._N)(t)&&l.push(c.get(b)));break;case"delete":(0,r.kJ)(t)||(l.push(c.get(y)),(0,r._N)(t)&&l.push(c.get(b)));break;case"set":(0,r._N)(t)&&l.push(c.get(y));break}if(1===l.length)l[0]&&R(l[0]);else{const t=[];for(const e of l)e&&t.push(...e);R(u(t))}}function R(t,e){const n=(0,r.kJ)(t)?t:[...t];for(const r of n)r.computed&&P(r,e);for(const r of n)r.computed||P(r,e)}function P(t,e){(t!==g||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const A=(0,r.fY)("__proto__,__v_isRef,__isVue"),I=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(r.yk)),T=U(),F=U(!1,!0),M=U(!0),L=$();function $(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Rt(this);for(let e=0,o=this.length;e<o;e++)O(n,"get",e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(Rt)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){S();const n=Rt(this)[e].apply(this,t);return C(),n}})),t}function U(t=!1,e=!1){return function(n,o,i){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_isShallow"===o)return e;if("__v_raw"===o&&i===(t?e?yt:gt:e?mt:vt).get(n))return n;const s=(0,r.kJ)(n);if(!t&&s&&(0,r.RI)(L,o))return Reflect.get(L,o,i);const c=Reflect.get(n,o,i);return((0,r.yk)(o)?I.has(o):A(o))?c:(t||O(n,"get",o),e?c:Mt(c)?s&&(0,r.S0)(o)?c:c.value:(0,r.Kn)(c)?t?kt(c):wt(c):c)}}const N=J(),D=J(!0);function J(t=!1){return function(e,n,o,i){let s=e[n];if(Ot(s)&&Mt(s)&&!Mt(o))return!1;if(!t&&(Et(o)||Ot(o)||(s=Rt(s),o=Rt(o)),!(0,r.kJ)(e)&&Mt(s)&&!Mt(o)))return s.value=o,!0;const c=(0,r.kJ)(e)&&(0,r.S0)(n)?Number(n)<e.length:(0,r.RI)(e,n),u=Reflect.set(e,n,o,i);return e===Rt(i)&&(c?(0,r.aU)(o,s)&&j(e,"set",n,o,s):j(e,"add",n,o)),u}}function V(t,e){const n=(0,r.RI)(t,e),o=t[e],i=Reflect.deleteProperty(t,e);return i&&n&&j(t,"delete",e,void 0,o),i}function G(t,e){const n=Reflect.has(t,e);return(0,r.yk)(e)&&I.has(e)||O(t,"has",e),n}function B(t){return OLine truncated
|
||||
/*!
|
||||
* vuex v4.1.0
|
||||
* (c) 2022 Evan You
|
||||
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
var m="store";function g(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function y(t){return null!==t&&"object"===typeof t}function b(t){return t&&"function"===typeof t.then}function _(t,e){return function(){return t(e)}}function w(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function x(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;S(t,n,[],t._modules.root,!0),k(t,n,e)}function k(t,e,n){var i=t._state,s=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var c=t._wrappedGetters,u={},l={},a=(0,o.B)(!0);a.run((function(){g(c,(function(e,n){u[n]=_(e,t),l[n]=(0,r.Fl)((function(){return u[n]()})),Object.defineProperty(t.getters,n,{get:function(){return l[n].value},enumerable:!0})}))})),t._state=(0,o.qj)({data:e}),t._scope=a,t.strict&&P(t),i&&n&&t._withCommit((function(){i.data=null})),s&&s.stop()}function S(t,e,n,r,o){var i=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=r),!i&&!o){var c=A(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){c[u]=r.state}))}var l=r.context=C(t,s,n);r.forEachMutation((function(e,n){var r=s+n;E(t,r,e,l)})),r.forEachAction((function(e,n){var r=e.root?n:s+n,o=e.handler||e;j(t,r,o,l)})),r.forEachGetter((function(e,n){var r=s+n;R(t,r,e,l)})),r.forEachChild((function(r,i){S(t,e,n.concat(i),r,o)}))}function C(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=I(n,r,o),s=i.payload,c=i.options,u=i.type;return c&&c.root||(u=e+u),t.dispatch(u,s)},commit:r?t.commit:function(n,r,o){var i=I(n,r,o),s=i.payload,c=i.options,u=i.type;c&&c.root||(u=e+u),t.commit(u,s,c)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return O(t,e)}},state:{get:function(){return A(t.state,n)}}}),o}function O(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function E(t,e,n,r){var o=t._mutations[e]||(t._mutations[e]=[]);o.push((function(e){n.call(t,r.state,e)}))}function j(t,e,n,r){var o=t._actions[e]||(t._actions[e]=[]);o.push((function(e){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return b(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}function R(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function P(t){(0,r.YP)((function(){return t._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function A(t,e){return e.reduce((function(t,e){return t[e]}),t)}function I(t,e,n){return y(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var T="vuex bindings",F="vuex:mutations",M="vuex:actions",L="vuex",$=0;function U(t,e){v({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[T]},(function(n){n.addTimelineLayer({id:F,label:"Vuex Mutations",color:N}),n.addTimelineLayer({id:M,label:"Vuex Actions",color:N}),n.addInspector({id:L,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===t&&n.inspectorId===L)if(n.filter){var r=[];q(r,e._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[B(e._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===t&&n.inspectorId===L){var r=n.nodeId;O(e,r),n.state=H(W(e._modules,r),"root"===r?e.getters:e._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===t&&n.inspectorId===L){var r=n.nodeId,o=n.path;"root"!==r&&(o=r.split("/").filter(Boolean).concat(o)),e._withCommit((function(){n.set(e._state.data,o,n.state.value)}))}})),e.subscribe((function(t,e){var r={};t.payload&&(r.payload=t.payload),r.state=e,n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.addTimelineEvent({layerId:F,event:{time:Date.now(),title:t.type,data:r}})})),e.subscribeAction({before:function(t,e){var r={};t.payload&&(r.payload=t.payload),t._id=$++,t._time=Date.now(),r.state=e,n.addTimelineEvent({layerId:M,event:{time:t._time,title:t.type,groupId:t._id,subtitle:"start",data:r}})},after:function(t,e){var r={},o=Date.now()-t._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},t.payload&&(r.payload=t.payload),r.state=e,n.addTimelineEvent({layerId:M,event:{time:Date.now(),title:t.type,groupId:t._id,subtitle:"end",data:r}})}})}))}var N=8702998,D=6710886,J=16777215,V={label:"namespaced",textColor:J,backgroundColor:D};function G(t){return t&&"root"!=Line truncated
|
||||
/*!
|
||||
* vue-router v4.1.5
|
||||
* vue-router v4.1.6
|
||||
* (c) 2022 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/
|
||||
const i="undefined"!==typeof window;function s(t){return t.__esModule||"Module"===t[Symbol.toStringTag]}const c=Object.assign;function u(t,e){const n={};for(const r in e){const o=e[r];n[r]=a(o)?o.map(t):t(o)}return n}const l=()=>{},a=Array.isArray;const f=/\/$/,p=t=>t.replace(f,"");function d(t,e,n="/"){let r,o={},i="",s="";const c=e.indexOf("#");let u=e.indexOf("?");return c<u&&c>=0&&(u=-1),u>-1&&(r=e.slice(0,u),i=e.slice(u+1,c>-1?c:e.length),o=t(i)),c>-1&&(r=r||e.slice(0,c),s=e.slice(c,e.length)),r=w(null!=r?r:e,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function h(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function v(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function m(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&g(e.matched[r],n.matched[o])&&y(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function g(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function y(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!b(t[n],e[n]))return!1;return!0}function b(t,e){return a(t)?_(t,e):a(e)?_(e,t):t===e}function _(t,e){return a(e)?t.length===e.length&&t.every(((t,n)=>t===e[n])):1===t.length&&t[0]===e}function w(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let o,i,s=n.length-1;for(o=0;o<r.length;o++)if(i=r[o],"."!==i){if(".."!==i)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var x,k;(function(t){t["pop"]="pop",t["push"]="push"})(x||(x={})),function(t){t["back"]="back",t["forward"]="forward",t["unknown"]=""}(k||(k={}));function S(t){if(!t)if(i){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),p(t)}const C=/^[^#]+#/;function O(t,e){return t.replace(C,"#")+e}function E(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const j=()=>({left:window.pageXOffset,top:window.pageYOffset});function R(t){let e;if("el"in t){const n=t.el,r="string"===typeof n&&n.startsWith("#");0;const o="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=E(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function P(t,e){const n=history.state?history.state.position-e:-1;return n+t}const A=new Map;function I(t,e){A.set(t,e)}function T(t){const e=A.get(t);return A.delete(t),e}let F=()=>location.protocol+"//"+location.host;function M(t,e){const{pathname:n,search:r,hash:o}=e,i=t.indexOf("#");if(i>-1){let e=o.includes(t.slice(i))?t.slice(i).length:1,n=o.slice(e);return"/"!==n[0]&&(n="/"+n),v(n,"")}const s=v(n,t);return s+r+o}function L(t,e,n,r){let o=[],i=[],s=null;const u=({state:i})=>{const c=M(t,location),u=n.value,l=e.value;let a=0;if(i){if(n.value=c,e.value=i,s&&s===u)return void(s=null);a=l?i.position-l.position:0}else r(c);o.forEach((t=>{t(n.value,u,{delta:a,type:x.pop,direction:a?a>0?k.forward:k.back:k.unknown})}))};function l(){s=n.value}function a(t){o.push(t);const e=()=>{const e=o.indexOf(t);e>-1&&o.splice(e,1)};return i.push(e),e}function f(){const{history:t}=window;t.state&&t.replaceState(c({},t.state,{scroll:j()}),"")}function p(){for(const t of i)t();i=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:a,destroy:p}}function $(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?j():null}}function U(t){const{history:e,location:n}=window,r={value:M(t,n)},o={value:e.state};function i(r,i,s){const c=t.indexOf("#"),u=c>-1?(n.host&&document.querySelector("base")?t:t.slice(c))+r:F()+t+r;try{e[s?"replaceState":"pushState"](i,"",u),o.value=i}catch(l){console.error(l),n[s?"replace":"assign"](u)}}function s(t,n){const s=c({},e.state,$(o.value.back,t,o.value.forward,!0),n,{position:o.value.position});i(t,s,!0),r.value=t}function u(t,n){const s=c({},o.value,e.state,{forward:t,scroll:j()});i(s.current,s,!0);const u=c({},$(r.value,t,null),{position:s.position+1},n);i(t,u,!1),r.value=t}return o.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:u,replace:s}}function N(t){t=S(t);const e=U(t),n=L(t,e.state,e.location,e.replace);function r(t,e=!0){e||n.pauseListeners(),history.go(t)}const o=c({location:"",base:t,go:r,createHref:O.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function D(t){return t=location.host?t||locatioLine truncated
|
||||
const i="undefined"!==typeof window;function s(t){return t.__esModule||"Module"===t[Symbol.toStringTag]}const c=Object.assign;function u(t,e){const n={};for(const r in e){const o=e[r];n[r]=a(o)?o.map(t):t(o)}return n}const l=()=>{},a=Array.isArray;const f=/\/$/,p=t=>t.replace(f,"");function d(t,e,n="/"){let r,o={},i="",s="";const c=e.indexOf("#");let u=e.indexOf("?");return c<u&&c>=0&&(u=-1),u>-1&&(r=e.slice(0,u),i=e.slice(u+1,c>-1?c:e.length),o=t(i)),c>-1&&(r=r||e.slice(0,c),s=e.slice(c,e.length)),r=w(null!=r?r:e,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function h(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function v(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function m(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&g(e.matched[r],n.matched[o])&&y(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function g(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function y(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!b(t[n],e[n]))return!1;return!0}function b(t,e){return a(t)?_(t,e):a(e)?_(e,t):t===e}function _(t,e){return a(e)?t.length===e.length&&t.every(((t,n)=>t===e[n])):1===t.length&&t[0]===e}function w(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let o,i,s=n.length-1;for(o=0;o<r.length;o++)if(i=r[o],"."!==i){if(".."!==i)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var x,k;(function(t){t["pop"]="pop",t["push"]="push"})(x||(x={})),function(t){t["back"]="back",t["forward"]="forward",t["unknown"]=""}(k||(k={}));function S(t){if(!t)if(i){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),p(t)}const C=/^[^#]+#/;function O(t,e){return t.replace(C,"#")+e}function E(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const j=()=>({left:window.pageXOffset,top:window.pageYOffset});function R(t){let e;if("el"in t){const n=t.el,r="string"===typeof n&&n.startsWith("#");0;const o="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=E(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function P(t,e){const n=history.state?history.state.position-e:-1;return n+t}const A=new Map;function I(t,e){A.set(t,e)}function T(t){const e=A.get(t);return A.delete(t),e}let F=()=>location.protocol+"//"+location.host;function M(t,e){const{pathname:n,search:r,hash:o}=e,i=t.indexOf("#");if(i>-1){let e=o.includes(t.slice(i))?t.slice(i).length:1,n=o.slice(e);return"/"!==n[0]&&(n="/"+n),v(n,"")}const s=v(n,t);return s+r+o}function L(t,e,n,r){let o=[],i=[],s=null;const u=({state:i})=>{const c=M(t,location),u=n.value,l=e.value;let a=0;if(i){if(n.value=c,e.value=i,s&&s===u)return void(s=null);a=l?i.position-l.position:0}else r(c);o.forEach((t=>{t(n.value,u,{delta:a,type:x.pop,direction:a?a>0?k.forward:k.back:k.unknown})}))};function l(){s=n.value}function a(t){o.push(t);const e=()=>{const e=o.indexOf(t);e>-1&&o.splice(e,1)};return i.push(e),e}function f(){const{history:t}=window;t.state&&t.replaceState(c({},t.state,{scroll:j()}),"")}function p(){for(const t of i)t();i=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:a,destroy:p}}function $(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?j():null}}function U(t){const{history:e,location:n}=window,r={value:M(t,n)},o={value:e.state};function i(r,i,s){const c=t.indexOf("#"),u=c>-1?(n.host&&document.querySelector("base")?t:t.slice(c))+r:F()+t+r;try{e[s?"replaceState":"pushState"](i,"",u),o.value=i}catch(l){console.error(l),n[s?"replace":"assign"](u)}}function s(t,n){const s=c({},e.state,$(o.value.back,t,o.value.forward,!0),n,{position:o.value.position});i(t,s,!0),r.value=t}function u(t,n){const s=c({},o.value,e.state,{forward:t,scroll:j()});i(s.current,s,!0);const u=c({},$(r.value,t,null),{position:s.position+1},n);i(t,u,!1),r.value=t}return o.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:u,replace:s}}function N(t){t=S(t);const e=U(t),n=L(t,e.state,e.location,e.replace);function r(t,e=!0){e||n.pauseListeners(),history.go(t)}const o=c({location:"",base:t,go:r,createHref:O.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function D(t){return t=location.host?t||locatioLine truncated
|
||||
Reference in new issue
Block a user