26 lines
202 KiB
JavaScript
26 lines
202 KiB
JavaScript
|
function __vite__mapDeps(indexes) {
|
||
|
if (!__vite__mapDeps.viteFileDeps) {
|
||
|
__vite__mapDeps.viteFileDeps = ["assets/pages-index-index.DwQoNhOO.js","assets/old.CKixGO1Z.js","assets/useWeChatAuth.BbPcLRMD.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/index-DVDje-mb.css","assets/pages-index-phonebumber.BA1uUnPp.js","assets/phonebumber-D3FOy7V7.css","assets/pages-index-code.A-2JBG3o.js","assets/uni-app.es.CdisLe7k.js","assets/code-CLjXvbSV.css","assets/pages-index-callback.Cjt7QCcb.js","assets/callback-k9HmfsB1.css","assets/pages-map-index.s85BvS79.js","assets/index-A6Qk_IiB.css","assets/pages-pay-index.BLyKtgIz.js","assets/index-Bj1b-t7_.css"]
|
||
|
}
|
||
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
||
|
}
|
||
|
!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const e={},t=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){const t=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=(null==i?void 0:i.nonce)||(null==i?void 0:i.getAttribute("nonce"));r=Promise.all(n.map((n=>{if((n=function(e){return"/wechat/thd/"+e}(n))in e)return;e[n]=!0;const r=n.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(!!o)for(let e=t.length-1;e>=0;e--){const o=t[e];if(o.href===n&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${n}"]${i}`))return;const a=document.createElement("link");return a.rel=r?"stylesheet":"modulepreload",r||(a.as="script",a.crossOrigin=""),a.href=n,s&&a.setAttribute("nonce",s),document.head.appendChild(a),r?new Promise(((e,t)=>{a.addEventListener("load",e),a.addEventListener("error",(()=>t(new Error(`Unable to preload CSS for ${n}`))))})):void 0})))}return r.then((()=>t())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))};
|
||
|
/**
|
||
|
* @vue/shared v3.4.21
|
||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
* @license MIT
|
||
|
**/
|
||
|
function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const o={},r=[],i=()=>{},s=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,d=(e,t)=>f.call(e,t),p=Array.isArray,h=e=>"[object Map]"===x(e),g=e=>"[object Set]"===x(e),m=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,_=e=>(b(e)||m(e))&&m(e.then)&&m(e.catch),w=Object.prototype.toString,x=e=>w.call(e),S=e=>"[object Object]"===x(e),C=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E=/-(\w)/g,$=k((e=>e.replace(E,((e,t)=>t?t.toUpperCase():"")))),O=/\B([A-Z])/g,L=k((e=>e.replace(O,"-$1").toLowerCase())),A=k((e=>e.charAt(0).toUpperCase()+e.slice(1))),P=k((e=>e?`on${A(e)}`:"")),I=(e,t)=>!Object.is(e,t),j=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},R=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let M;const N=()=>M||(M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function F(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=v(o)?W(o):F(o);if(r)for(const e in r)t[e]=r[e]}return t}if(v(e)||b(e))return e}const V=/;(?![^(]*\))/g,D=/:([^]+)/,q=/\/\*[^]*?\*\//g;function W(e){const t={};return e.replace(q,"").split(V).forEach((e=>{if(e){const n=e.split(D);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function H(e){let t="";if(v(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const o=H(e[n]);o&&(t+=o+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const z=n("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function U(e){return!!e||""===e}const G=e=>v(e)?e:null==e?"":p(e)||b(e)&&(e.toString===w||!m(e.toString))?JSON.stringify(e,X,2):String(e),X=(e,t)=>t&&t.__v_isRef?X(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[K(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>K(e)))}:y(t)?K(t):!b(t)||p(t)||S(t)?t:String(t),K=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},Y=["ad","ad-content-page","ad-draw","audio","button","camera","canvas","checkbox","checkbox-group","cover-image","cover-view","editor","form","functional-page-navigator","icon","image","input","label","live-player","live-pusher","map","movable-area","movable-view","navigator","official-account","open-data","picker","picker-view","picker-view-column","progress","radio","radio-group","rich-text","scroll-view","slider","swiper","swiper-item","switch","text","textarea","video","view","web-view","location-picker","location-view"].map((e=>"uni-"+e)),J=["list-view","list-item","sticky-section","sticky-header","cloud-db-element"].map((e=>"uni-"+e)),Z=["list-item"].map((e=>"uni-"+e));function Q(e){if(-1!==Z.indexOf(e))return!1;const t="uni-"+e.replace("v-uni-","");return-1!==Y.indexOf(t)||-1!==J.indexOf(t)}const ee=/^([a-z-]+:)?\/\//i,te=/^data:.*,.*/,ne="onLoad";function oe(e){return 0===e.indexOf("/")}function re(e){return oe(e)?e:"/"+e}function ie(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}let se;function ae(){return se||(se=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),se)}function le(e){return e&&(e.appContext?e.proxy:e)}function ce(e){if(!e)return;let t=e.type.name;for(;t&&Q(L(t));)t=(e=e.parent).type.name;return e.proxy}function ue(e){return 1===e.nodeType}function fe(e){const t=ae();if(t&&t.UTSJSONObject&&e instanceof t.UTSJSONObject){c
|
||
|
/**
|
||
|
* @dcloudio/uni-h5-vue v3.4.21
|
||
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
* @license MIT
|
||
|
**/let je,Re;class Be{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!e&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=je;try{return je=this,e()}finally{je=t}}}on(){je=this}off(){je=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function Me(e){return new Be(e)}class Ne{constructor(e,t,n,o){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=je){t&&t.active&&t.effects.push(e)}(this,o)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,ze();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(t.computed.value,this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Ue()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=qe,t=Re;try{return qe=!0,Re=this,this._runnings++,Fe(this),this.fn()}finally{Ve(this),this._runnings--,Re=t,qe=e}}stop(){var e;this.active&&(Fe(this),Ve(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function Fe(e){e._trackId++,e._depsLength=0}function Ve(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)De(e.deps[t],e);e.deps.length=e._depsLength}}function De(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let qe=!0,We=0;const He=[];function ze(){He.push(qe),qe=!1}function Ue(){const e=He.pop();qe=void 0===e||e}function Ge(){We++}function Xe(){for(We--;!We&&Ye.length;)Ye.shift()()}function Ke(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&De(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ye=[];function Je(e,t,n){Ge();for(const o of e.keys()){let n;o._dirtyLevel<t&&(null!=n?n:n=e.get(o)===o._trackId)&&(o._shouldSchedule||(o._shouldSchedule=0===o._dirtyLevel),o._dirtyLevel=t),o._shouldSchedule&&(null!=n?n:n=e.get(o)===o._trackId)&&(o.trigger(),o._runnings&&!o.allowRecurse||2===o._dirtyLevel||(o._shouldSchedule=!1,o.scheduler&&Ye.push(o.scheduler)))}Xe()}const Ze=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Qe=new WeakMap,et=Symbol(""),tt=Symbol("");function nt(e,t,n){if(qe&&Re){let t=Qe.get(e);t||Qe.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Ze((()=>t.delete(n)))),Ke(Re,o)}}function ot(e,t,n,o,r,i){const s=Qe.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&p(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!y(n)&&n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":p(e)?C(n)&&a.push(s.get("length")):(a.push(s.get(et)),h(e)&&a.push(s.get(tt)));break;case"delete":p(e)||(a.push(s.get(et)),h(e)&&a.push(s.get(tt)));break;case"set":h(e)&&a.push(s.get(et))}Ge();for(const l of a)l&&Je(l,4);Xe()}const rt=n("__proto__,__v_isRef,__isVue"),it=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(y)),st=at();function at(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Kt(this);for(let t=0,r=this.length;t<r;t++)nt(n,0,t+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Kt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ze(),Ge();const n=Kt(this)[t].apply(this,e);return Xe(),Ue(),n}})),e}function lt(e){const t=Kt(this);return nt(t,0,e),t.hasOwnProperty(e)}class ct{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isRead
|
||
|
/*! #__NO_SIDE_EFFECTS__ */function vo(e,t){return m(e)?(()=>c({name:e.name},t,{setup:e}))():e}const yo=e=>!!e.type.__asyncLoader
|
||
|
/*! #__NO_SIDE_EFFECTS__ */;function bo(e){m(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:a}=e;let l,c=null,u=0;const f=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise(((t,n)=>{a(e,(()=>t((u++,c=null,f()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return vo({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return l},setup(){const e=di;if(l)return()=>_o(l,e);const t=t=>{c=null,dn(t,e,13,!o)};if(s&&e.suspense||bi)return f().then((t=>()=>_o(t,e))).catch((e=>(t(e),()=>o?ti(o,{error:e}):null)));const a=on(!1),u=on(),d=on(!!r);return r&&setTimeout((()=>{d.value=!1}),r),null!=i&&setTimeout((()=>{if(!a.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),f().then((()=>{a.value=!0,e.parent&&wo(e.parent.vnode)&&(e.parent.effect.dirty=!0,Cn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>a.value&&l?_o(l,e):u.value&&o?ti(o,{error:u.value}):n&&!d.value?ti(n):void 0}})}function _o(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=ti(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const wo=e=>e.type.__isKeepAlive;class xo{constructor(e){this.max=e,this._cache=new Map,this._keys=new Set,this._max=parseInt(e,10)}get(e){const{_cache:t,_keys:n,_max:o}=this,r=t.get(e);if(r)n.delete(e),n.add(e);else if(n.add(e),o&&n.size>o){const e=n.values().next().value;this.pruneCacheEntry(t.get(e)),this.delete(e)}return r}set(e,t){this._cache.set(e,t)}delete(e){this._cache.delete(e),this._keys.delete(e)}forEach(e,t){this._cache.forEach(e.bind(t))}}const So={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number],matchBy:{type:String,default:"name"},cache:Object},setup(e,{slots:t}){const n=pi(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=e.cache||new xo(e.max);r.pruneCacheEntry=s;let i=null;function s(t){var o;!i||!Yr(t,i)||"key"===e.matchBy&&t.key!==i.key?(Lo(o=t),u(o,n,a,!0)):i&&Lo(i)}const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=o,d=f("div");function p(t){r.forEach(((n,o)=>{const i=Po(n,e.matchBy);!i||t&&t(i)||(r.delete(o),s(n))}))}o.activate=(e,t,n,o,r)=>{const i=e.component;if(i.ba){const e=i.isDeactivated;i.isDeactivated=!1,j(i.ba),i.isDeactivated=e}c(e,t,n,0,a),l(i.vnode,e,t,n,i,a,o,e.slotScopeIds,r),Ar((()=>{i.isDeactivated=!1,i.a&&j(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ci(t,i.parent,e)}),a)},o.deactivate=e=>{const t=e.component;t.bda&&Io(t.bda),c(e,d,null,1,a),Ar((()=>{t.bda&&t.bda.forEach((e=>e.__called=!1)),t.da&&j(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ci(n,t.parent,e),t.isDeactivated=!0}),a)},Zn((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&p((t=>To(e,t))),t&&p((e=>!To(t,e)))}),{flush:"post",deep:!0});let h=null;const g=()=>{null!=h&&r.set(h,Ao(n.subTree))};return Mo(g),Fo(g),Vo((()=>{r.forEach(((t,o)=>{r.delete(o),s(t);const{subTree:i,suspense:a}=n,l=Ao(i);if(t.type!==l.type||"key"===e.matchBy&&t.key!==l.key);else{l.component.bda&&j(l.component.bda),Lo(l);const e=l.component.da;e&&Ar(e,a)}}))})),()=>{if(h=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!Kr(o)||!(4&o.shapeFlag)&&!Xn(o.type))return i=null,o;let s=Ao(o);const a=s.type,l=Po(s,e.matchBy),{include:c,exclude:u}=e;if(c&&(!l||!To(c,l))||u&&l&&To(u,l))return i=s,o;const f=null==s.key?a:s.key,d=r.get(f);return s.el&&(s=ni(s),Xn(o.type)&&(o.ssContent=s)),h=f,d&&(s.el=d.el,s.component=d.component,s.transition&&go(s,s.transition),s.shapeFlag|=512),s.shapeFlag|=256,i=s,Xn(o.type)?o:s}}},Co=So;function To(e,t){return p(e)?e.some((e=>To(e,t))):v(e)?e.split(",").includes(t):"[object RegExp]"===x(e)&&e.test(t)}function ko(e,t){$o(e,"a",t)}function Eo(e,t){$o(e,"da",t)}function $o(e,t,n=di){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(o.__ca
|
||
|
/*!
|
||
|
* vue-router v4.3.0
|
||
|
* (c) 2024 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/(e);if(!o)return;const r=t._component;m(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};const xs="undefined"!=typeof document;const Ss=Object.assign;function Cs(e,t){const n={};for(const o in t){const r=t[o];n[o]=ks(r)?r.map(e):e(r)}return n}const Ts=()=>{},ks=Array.isArray,Es=/#/g,$s=/&/g,Os=/\//g,Ls=/=/g,As=/\?/g,Ps=/\+/g,Is=/%5B/g,js=/%5D/g,Rs=/%5E/g,Bs=/%60/g,Ms=/%7B/g,Ns=/%7C/g,Fs=/%7D/g,Vs=/%20/g;function Ds(e){return encodeURI(""+e).replace(Ns,"|").replace(Is,"[").replace(js,"]")}function qs(e){return Ds(e).replace(Ps,"%2B").replace(Vs,"+").replace(Es,"%23").replace($s,"%26").replace(Bs,"`").replace(Ms,"{").replace(Fs,"}").replace(Rs,"^")}function Ws(e){return null==e?"":function(e){return Ds(e).replace(Es,"%23").replace(As,"%3F")}(e).replace(Os,"%2F")}function Hs(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const zs=/\/$/;function Us(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,a=n.length-1;for(i=0;i<o.length;i++)if(s=o[i],"."!==s){if(".."!==s)break;a>1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Hs(s)}}function Gs(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Xs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ks(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ys(e[n],t[n]))return!1;return!0}function Ys(e,t){return ks(e)?Js(e,t):ks(t)?Js(t,e):e===t}function Js(e,t){return ks(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Zs,Qs,ea,ta;function na(e){if(!e)if(xs){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(zs,"")}(Qs=Zs||(Zs={})).pop="pop",Qs.push="push",(ta=ea||(ea={})).back="back",ta.forward="forward",ta.unknown="";const oa=/^[^#]+#/;function ra(e,t){return e.replace(oa,"#")+t}const ia=()=>({left:window.scrollX,top:window.scrollY});function sa(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function aa(e,t){return(history.state?history.state.position-t:-1)+e}const la=new Map;function ca(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Gs(n,"")}return Gs(n,e)+o+r}function ua(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ia():null}}function fa(e){const{history:t,location:n}=window,o={value:ca(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=Ss({},r.value,t.state,{forward:e,scroll:ia()});i(s.curren
|