PageSourceSearch

https://www.mtcxx.com/build/assets/SearchApp-DgbTeIox.js

js mtcxx.com collected 2026-10-03 00:56:45 UTC 110,137 bytes, 72 lines download raw bytes

1import{r as S,s as te,o as y,d as w,a as l,n as nt,k as U,D as it,m as mr,e as T,b as k,w as g,F,g as at,c as E,u as d,i as b,f as X,t as O,l as yr,J as Ke,U as gr,W as ne}from"./app-BXvF3HYt.js";import{_ as wr}from"./[email protected]";import{_ as kr}from"./back_to_top-__afgZ5z.js";import{S as xt,a as Pt,A as Et}from"./swiper-DI3iGfOs.js";import{P as It}from"./pagination-CPuzzYuZ.js";/*!
2 * better-scroll / core
3 * (c) 2016-2023 ustbhuangyi
4 * Released under the MIT License.
5 *//*! *****************************************************************************
6Copyright (c) Microsoft Corporation.
7
8Permission to use, copy, modify, and/or distribute this software for any
9purpose with or without fee is hereby granted.
10
11THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17PERFORMANCE OF THIS SOFTWARE.
18***************************************************************************** */var Gt=function(r,t){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s])},Gt(r,t)};function zt(r,t){Gt(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var lt=function(){return lt=Object.assign||function(t){for(var e,o=1,s=arguments.length;o<s;o++){e=arguments[o];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},lt.apply(this,arguments)};function Ve(){for(var r=0,t=0,e=arguments.length;t<e;t++)r+=arguments[t].length;for(var o=Array(r),s=0,t=0;t<e;t++)for(var n=arguments[t],i=0,a=n.length;i<a;i++,s++)o[s]=n[i];return o}var br=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.animater.stop",key:"stop"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];function Dt(r){console.error("[BScroll warn]: "+r)}var B=typeof window<"u",ot=B&&navigator.userAgent.toLowerCase(),Tr=!!(ot&&/wechatdevtools/.test(ot)),Sr=ot&&ot.indexOf("android")>0,xr=function(){if(typeof ot=="string"){var r=/os (\d\d?_\d(_\d)?)/,t=r.exec(ot);if(!t)return!1;var e=t[1].split("_").map(function(o){return parseInt(o,10)});return e[0]===13&&e[1]>=4}return!1}(),je=!1;if(B){var Pr="test-passive";try{var ie={};Object.defineProperty(ie,"passive",{get:function(){je=!0}}),window.addEventListener(Pr,function(){},ie)}catch(r){}}function K(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var Jt=function(r,t){for(var e in t)r[e]=t[e];return r};function Zt(r){return r==null}function ae(r,t,e){return r<t?t:r>e?e:r}var ee=B&&document.createElement("div").style,q=function(){if(!B)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=r;t<e.length;t++){var o=e[t];if(ee[o.value]!==void 0)return o.key}return!1}();function M(r){return q===!1?r:q==="standard"?r==="transitionEnd"?"transitionend":r:q+r.charAt(0).toUpperCase()+r.substr(1)}function qe(r){return typeof r=="string"?document.querySelector(r):r}function Er(r,t,e,o){var s=je?{passive:!1,capture:!!o}:!!o;r.addEventListener(t,e,s)}function Dr(r,t,e,o){r.removeEventListener(t,e,{capture:!!o})}function Ge(r){r.cancelable&&r.preventDefault()}function le(r){for(var t=0,e=0;r;)t-=r.offsetLeft,e-=r.offsetTop,r=r.offsetParent;return{left:t,top:e}}q&&q!=="standard"&&""+q.toLowerCase();var Br=M("transform"),Je=M("transition"),Or=B&&M("perspective")in ee,ce=B&&("ontouchstart"in window||Tr),Mr=B&&Je in ee,W={transform:Br,transition:Je,transitionTimingFunction:M("transitionTimingFunction"),transitionDuration:M("transitionDuration"),transitionDelay:M("transitionDelay"),transformOrigin:M("transformOrigin"),transitionEnd:M("transitionEnd"),transitionProperty:M("transitionProperty")},Rt={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function he(r){if(r instanceof window.SVGElement){var t=r.getBoundingClientRect();
18return{top:t.top,left:t.left,width:t.width,height:t.height}}else return{top:r.offsetTop,left:r.offsetLeft,width:r.offsetWidth,height:r.offsetHeight}}function ct(r,t){for(var e in t)if(t[e].test(r[e]))return!0;return!1}var Cr=ct;function $r(r,t){var e=document.createEvent("Event");e.initEvent(t,!0,!0),e.pageX=r.pageX,e.pageY=r.pageY,r.target.dispatchEvent(e)}function Ze(r,t){t===void 0&&(t="click");var e;r.type==="mouseup"?e=r:(r.type==="touchend"||r.type==="touchcancel")&&(e=r.changedTouches[0]);var o={};e&&(o.screenX=e.screenX||0,o.screenY=e.screenY||0,o.clientX=e.clientX||0,o.clientY=e.clientY||0);var s,n=!0,i=!0,a=r.ctrlKey,c=r.shiftKey,h=r.altKey,f=r.metaKey,p={ctrlKey:a,shiftKey:c,altKey:h,metaKey:f};if(typeof MouseEvent<"u")try{s=new MouseEvent(t,Jt(lt({bubbles:n,cancelable:i},p),o))}catch(v){u()}else u();function u(){s=document.createEvent("Event"),s.initEvent(t,n,i),Jt(s,o)}s.forwardedTouchEvent=!0,s._constructed=!0,r.target.dispatchEvent(s)}function Ar(r){Ze(r,"dblclick")}var R={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(r){return 1+--r*r*r*r*r}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(r){return r*(2-r)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(r){return 1- --r*r*r*r}}},_r=1e3/60,N=B&&window;function Qe(){}var tr=function(){return B?N.requestAnimationFrame||N.webkitRequestAnimationFrame||N.mozRequestAnimationFrame||N.oRequestAnimationFrame||function(r){return window.setTimeout(r,r.interval||_r)}:Qe}(),V=function(){return B?N.cancelAnimationFrame||N.webkitCancelAnimationFrame||N.mozCancelAnimationFrame||N.oCancelAnimationFrame||function(r){window.clearTimeout(r)}:Qe}(),ue=function(r){},Ut={enumerable:!0,configurable:!0,get:ue,set:ue},Hr=function(r,t){for(var e=t.split("."),o=0;o<e.length-1;o++)if(r=r[e[o]],typeof r!="object"||!r)return;var s=e.pop();return typeof r[s]=="function"?function(){return r[s].apply(r,arguments)}:r[s]},Yr=function(r,t,e){for(var o=t.split("."),s,n=0;n<o.length-1;n++)s=o[n],r[s]||(r[s]={}),r=r[s];r[o.pop()]=e};function Lr(r,t,e){Ut.get=function(){return Hr(this,t)},Ut.set=function(s){Yr(this,t,s)},Object.defineProperty(r,e,Ut)}var I=function(){function r(t){this.events={},this.eventTypes={},this.registerType(t)}return r.prototype.on=function(t,e,o){return o===void 0&&(o=this),this.hasType(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,o]),this},r.prototype.once=function(t,e,o){var s=this;o===void 0&&(o=this),this.hasType(t);var n=function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];s.off(t,n);var c=e.apply(o,i);if(c===!0)return c};return n.fn=e,this.on(t,n),this},r.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this.hasType(t),!e)return this.events[t]=[],this;var o=this.events[t];if(!o)return this;for(var s=o.length;s--;)(o[s][0]===e||o[s][0]&&o[s][0].fn===e)&&o.splice(s,1);return this}},r.prototype.trigger=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];this.hasType(t);var s=this.events[t];if(s)for(var n=s.length,i=Ve(s),a,c=0;c<n;c++){var h=i[c],f=h[0],p=h[1];if(f&&(a=f.apply(p,e),a===!0))return a}},r.prototype.registerType=function(t){var e=this;t.forEach(function(o){e.eventTypes[o]=o})},r.prototype.destroy=function(){this.events={},this.eventTypes={}},r.prototype.hasType=function(t){var e=this.eventTypes,o=e[t]===t;o||Dt('EventEmitter has used unknown event type: "'+t+'", should be oneof ['+(""+Object.keys(e).map(function(s){return JSON.stringify(s)}))+"]")},r}(),Ot=function(){function r(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return r.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},r.prototype.addDOMEvents=function(){this.handleDOMEvents(Er)},r.prototype.removeDOMEvents=function(){this.handleDOMEvents(Dr)},r.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach(function(s){t(o,s.name,e,!!s.capture)})},r.prototype.handleEvent=function(t){var e=t.type;this.events.some(function(o){return o.name===e?(o.handler(t),!0):!1})},r}(),Xr=function(){function r(){}return r}(),zr=function(r){zt(t,r);function t(){var e=r.call(this)||this;return e.startX=0,e.startY=0,e.scrollX=!1,e.scrollY=!0,e.freeScroll=!1,e.directionLockThreshold=0,e.eventPassthrough="",e.click=!1,e.dblclick=!1,e.tap="",e.bounce={top:!0,bottom:!0,left:!0,right:!0},e.bounceTime=800,e.momentum=!0,e.momentumLimitTime=300,e.momentumLimitDistance=15,e.swipeTime=2500,e.swipeBounceTime=500,e.deceleration=.0015,e.flickLimitTime=200,e.flickLimitDistance=100,e.resizePolling=60,e.probeType=0,e.stopPropagation=!1,e.preventDefault=!0,e.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|
18SELECT|AUDIO)$/},e.tagException={tagName:/^TEXTAREA$/},e.HWCompositing=!0,e.useTransition=!0,e.bindToWrapper=!1,e.bindToTarget=!1,e.disableMouse=ce,e.disableTouch=!ce,e.autoBlur=!0,e.autoEndDistance=5,e.outOfBoundaryDampingFactor=1/3,e.specifiedIndexAsContent=0,e.quadrant=1,e}return t.prototype.merge=function(e){if(!e)return this;for(var o in e){if(o==="bounce"){this.bounce=this.resolveBounce(e[o]);continue}this[o]=e[o]}return this},t.prototype.process=function(){return this.translateZ=this.HWCompositing&&Or?" translateZ(1px)":"",this.useTransition=this.useTransition&&Mr,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX=this.eventPassthrough==="horizontal"?!1:this.scrollX,this.scrollY=this.eventPassthrough==="vertical"?!1:this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=this.freeScroll?!0:this.scrollX,this.scrollY=this.freeScroll?!0:this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},t.prototype.resolveBounce=function(e){var o={top:!0,right:!0,bottom:!0,left:!0},s={top:!1,right:!1,bottom:!1,left:!1},n;return typeof e=="object"?n=Jt(o,e):n=e?o:s,n},t}(Xr),Nr=function(){function r(t,e){this.wrapper=t,this.options=e,this.hooks=new I(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return r.prototype.handleDOMEvents=function(){var t=this.options,e=t.bindToWrapper,o=t.disableMouse,s=t.disableTouch,n=t.click,i=this.wrapper,a=e?i:window,c=[],h=[],f=!s,p=!o;n&&c.push({name:"click",handler:this.click.bind(this),capture:!0}),f&&(c.push({name:"touchstart",handler:this.start.bind(this)}),h.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),p&&(c.push({name:"mousedown",handler:this.start.bind(this)}),h.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new Ot(i,c),this.targetEventRegister=new Ot(a,h)},r.prototype.beforeHandler=function(t,e){var o=this.options,s=o.preventDefault,n=o.stopPropagation,i=o.preventDefaultException,a={start:function(){return s&&!ct(t.target,i)},end:function(){return s&&!ct(t.target,i)},move:function(){return s}};a[e]()&&t.preventDefault(),n&&t.stopPropagation()},r.prototype.setInitiated=function(t){t===void 0&&(t=0),this.initiated=t},r.prototype.start=function(t){var e=Rt[t.type];if(!(this.initiated&&this.initiated!==e)){if(this.setInitiated(e),Cr(t.target,this.options.tagException)){this.setInitiated();return}if(!(e===2&&t.button!==0)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,t)){this.beforeHandler(t,"start");var o=t.touches?t.touches[0]:t;this.pointX=o.pageX,this.pointY=o.pageY,this.hooks.trigger(this.hooks.eventTypes.start,t)}}},r.prototype.move=function(t){if(Rt[t.type]===this.initiated){this.beforeHandler(t,"move");var e=t.touches?t.touches[0]:t,o=e.pageX-this.pointX,s=e.pageY-this.pointY;if(this.pointX=e.pageX,this.pointY=e.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:o,deltaY:s,e:t})){var n=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,i=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,a=this.pointX-n,c=this.pointY-i,h=this.options.autoEndDistance;(a>document.documentElement.clientWidth-h||c>document.documentElement.clientHeight-h||a<h||c<h)&&this.end(t)}}},r.prototype.end=function(t){Rt[t.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(t,"end"),this.hooks.trigger(this.hooks.eventTypes.end,t))},r.prototype.click=function(t){this.hooks.trigger(this.hooks.eventTypes.click,t)},r.prototype.setContent=function(t){t!==this.wrapper&&(this.wrapper=t,this.rebindDOMEvents())},r.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},r.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},r}(),Wt={x:["translateX","px"],y:["translateY","px"]},Fr=function(){function r(t){this.setContent(t),this.hooks=new I(["beforeTranslate","translate"])}return r.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.content,null),e=t[W.transform].split(")")[0].split(", "),o=+(e[12]||e[4])||0,s=+(e[13]||e[5])||0;return{x:o,y:s}},r.prototype.translate=function(t){var e=[];
18Object.keys(t).forEach(function(o){if(Wt[o]){var s=Wt[o][0];if(s){var n=Wt[o][1],i=t[o];e.push(s+"("+i+n+")")}}}),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,e,t),this.style[W.transform]=e.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,t)},r.prototype.setContent=function(t){this.content!==t&&(this.content=t,this.style=t.style)},r.prototype.destroy=function(){this.hooks.destroy()},r}(),er=function(){function r(t,e,o){this.translater=e,this.options=o,this.timer=0,this.hooks=new I(["move","end","beforeForceStop","forceStop","callStop","time","timeFunction"]),this.setContent(t)}return r.prototype.translate=function(t){this.translater.translate(t)},r.prototype.setPending=function(t){this.pending=t},r.prototype.setForceStopped=function(t){this.forceStopped=t},r.prototype.setCallStop=function(t){this.callStopWhenPending=t},r.prototype.setContent=function(t){this.content!==t&&(this.content=t,this.style=t.style,this.stop())},r.prototype.clearTimer=function(){this.timer&&(V(this.timer),this.timer=0)},r.prototype.destroy=function(){this.hooks.destroy(),V(this.timer)},r}(),Ir=function(r,t,e,o){var s=function(h,f){var p=h-f,u=p>0?-1:p<0?1:0;return u},n=s(t.x,r.x),i=s(t.y,r.y),a=e.x-o.x,c=e.y-o.y;return n*a<=0&&i*c<=0},Rr=function(r){zt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.startProbe=function(e,o){var s=this,n=e,i=function(){var a=s.translater.getComputedPosition();Ir(e,o,a,n)&&s.hooks.trigger(s.hooks.eventTypes.move,a),s.pending||(s.callStopWhenPending?s.callStopWhenPending=!1:s.hooks.trigger(s.hooks.eventTypes.end,a)),n=a,s.pending&&(s.timer=tr(i))};this.callStopWhenPending&&this.setCallStop(!1),V(this.timer),i()},t.prototype.transitionTime=function(e){e===void 0&&(e=0),this.style[W.transitionDuration]=e+"ms",this.hooks.trigger(this.hooks.eventTypes.time,e)},t.prototype.transitionTimingFunction=function(e){this.style[W.transitionTimingFunction]=e,this.hooks.trigger(this.hooks.eventTypes.timeFunction,e)},t.prototype.transitionProperty=function(){this.style[W.transitionProperty]=W.transform},t.prototype.move=function(e,o,s,n){this.setPending(s>0),this.transitionTimingFunction(n),this.transitionProperty(),this.transitionTime(s),this.translate(o);var i=this.options.probeType===3;s&&i&&this.startProbe(e,o),s||(this._reflow=this.content.offsetHeight,i&&this.hooks.trigger(this.hooks.eventTypes.move,o),this.hooks.trigger(this.hooks.eventTypes.end,o))},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),V(this.timer);var o=this.translater.getComputedPosition(),s=o.x,n=o.y;this.transitionTime(),this.translate({x:s,y:n}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:s,y:n})}return e},t.prototype.stop=function(){var e=this.doStop();e&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(er),Ur=function(r){zt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.move=function(e,o,s,n){if(!s){this.translate(o),this.options.probeType===3&&this.hooks.trigger(this.hooks.eventTypes.move,o),this.hooks.trigger(this.hooks.eventTypes.end,o);return}this.animate(e,o,s,n)},t.prototype.animate=function(e,o,s,n){var i=this,a=K(),c=a+s,h=this.options.probeType===3,f=function(){var p=K();if(p>=c){i.translate(o),h&&i.hooks.trigger(i.hooks.eventTypes.move,o),i.hooks.trigger(i.hooks.eventTypes.end,o);return}p=(p-a)/s;var u=n(p),v={};Object.keys(o).forEach(function(m){var x=e[m],st=o[m];v[m]=(st-x)*u+x}),i.translate(v),h&&i.hooks.trigger(i.hooks.eventTypes.move,v),i.pending&&(i.timer=tr(f)),i.pending||(i.callStopWhenPending?i.callStopWhenPending=!1:i.hooks.trigger(i.hooks.eventTypes.end,o))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),V(this.timer),f()},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),V(this.timer);var o=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,o)}return e},t.prototype.stop=function(){var e=this.doStop();e&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(er);function Wr(r,t,e){var o=e.useTransition,s={};return Object.defineProperty(s,"probeType",{enumerable:!0,configurable:!1,get:function(){return e.probeType}}),o?new Rr(r,t,s):new Ur(r,t,s)}var fe=function(){function r(t,e,o){this.wrapper=t,this.options=o,this.hooks=new I(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(e)}return r.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},r.prototype.move=function(t){return t=this.hasScroll?t:0,this.setMovingDirection(t),this.performDampingAlgorithm(t,this.options.outOfBoundaryDampingFactor)},r.prototype.setMovingDirection=function(t){this.movingDirection=t>0?-1:t<0?1:0},r.prototype.setDirection=function(t){this.direction=t>0?-1:t<0?1:0},r.prototype.performDampingAlgorithm=function(t,e){var o=this.currentPos+t;return(o>this.minScrollPos||o<this.maxScrollPos)&&(o>this.minScrollPos&&this.options.bounces[0]||o<this.maxScrollPos&&this.options.bounces[1]?o=this.currentPos+t*e:o=o>this.minScrollPos?this.minScrollPos:this.maxScrollPos),o},r.prototype.end=function(t){var e={duration:0},o=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&t<this.options.momentumLimitTime&&o>this.options.momentumLimitDistance){var s=this.direction===-1&&this.options.bounces[0]||this.direction===1&&this.options.bounces[1]?this.wrapperSize:0;e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,s,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,e);return e},r.prototype.momentum=function(t,e,o,s,n,i,a){a===void 0&&(a=this.options);var c=t-e,h=Math.abs(c)/o,f=a.deceleration,p=a.swipeBounceTime,u=a.swipeTime,v=Math.min(u,h*2/f),m={destination:t+h*h/f*(c<0?-1:1),duration:v,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,m,c),m.destination<s?(m.destination=i?Math.max(s-i/4,s-i/m.rate*h):s,m.duration=p):m.destination>n&&(m.destination=i?Math.min(n+i/4,n+i/m.rate*h):n,m.duration=p),m.destination=Math.round(m.destination),m},r.prototype.updateDirection=function(){var t=this.currentPos-this.absStartPos;this.setDirection(t)},r.prototype.refresh=function(t){var e=this.options.rect,o=e.size,s=e.position,n=window.getComputedStyle(this.wrapper,null).position==="static",i=he(this.wrapper);this.wrapperSize=this.wrapper[o==="width"?"clientWidth":"clientHeight"],this.setContent(t);var a=he(this.content);this.contentSize=a[o],this.relativeOffset=a[s],n&&(this.relativeOffset-=i[s]),this.computeBoundary(),this.setDirection(0)},r.prototype.setContent=function(t){t!==this.content&&(this.content=t,this.resetState())},r.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},r.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var t={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};t.maxScrollPos<0&&(t.maxScrollPos-=this.relativeOffset,this.options.specifiedIndexAsContent===0&&(t.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,t),this.minScrollPos=t.minScrollPos,this.maxScrollPos=t.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,!this.hasScroll&&this.minScrollPos<this.maxScrollPos&&(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize)},r.prototype.updatePosition=function(t){this.currentPos=t},r.prototype.getCurrentPos=function(){return this.currentPos},r.prototype.checkInBoundary=function(){var t=this.adjustPosition(this.currentPos),e=t===this.getCurrentPos();return{position:t,inBoundary:e}},r.prototype.adjustPosition=function(t){return!this.hasScroll&&!this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll)?t=this.minScrollPos:t>this.minScrollPos?t=this.minScrollPos:t<this.maxScrollPos&&(t=this.maxScrollPos),t},r.prototype.updateStartPos=function(){this.startPos=this.currentPos},r.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},r.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},r.prototype.getAbsDist=function(t){return this.dist+=t,Math.abs(this.dist)},r.prototype.destroy=function(){this.hooks.destroy()},r}(),gt,wt,kt,bt,pe=(gt={},gt.yes=function(r){return!0},gt.no=function(r){return Ge(r),!1},gt),Kr=(wt={},wt.horizontal=(kt={}
18,kt.yes="horizontal",kt.no="vertical",kt),wt.vertical=(bt={},bt.yes="vertical",bt.no="horizontal",bt),wt),Vr=function(){function r(t,e,o){this.directionLockThreshold=t,this.freeScroll=e,this.eventPassthrough=o,this.reset()}return r.prototype.reset=function(){this.directionLocked=""},r.prototype.checkMovingDirection=function(t,e,o){return this.computeDirectionLock(t,e),this.handleEventPassthrough(o)},r.prototype.adjustDelta=function(t,e){return this.directionLocked==="horizontal"?e=0:this.directionLocked==="vertical"&&(t=0),{deltaX:t,deltaY:e}},r.prototype.computeDirectionLock=function(t,e){this.directionLocked===""&&!this.freeScroll&&(t>e+this.directionLockThreshold?this.directionLocked="horizontal":e>=t+this.directionLockThreshold?this.directionLocked="vertical":this.directionLocked="none")},r.prototype.handleEventPassthrough=function(t){var e=Kr[this.directionLocked];if(e){if(this.eventPassthrough===e.yes)return pe.yes(t);if(this.eventPassthrough===e.no)return pe.no(t)}return!1},r}(),jr=function(r,t,e){return e===2?[t,-r]:e===3?[-r,-t]:e===4?[-t,r]:[r,t]},qr=function(){function r(t,e,o,s,n){this.hooks=new I(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd","contentNotMoved","detectMovingDirection","coordinateTransformation"]),this.scrollBehaviorX=t,this.scrollBehaviorY=e,this.actionsHandler=o,this.animater=s,this.options=n,this.directionLockAction=new Vr(n.directionLockThreshold,n.freeScroll,n.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return r.prototype.bindActionsHandler=function(){var t=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,function(e){return t.enabled?t.handleStart(e):!0}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,function(e){var o=e.deltaX,s=e.deltaY,n=e.e;if(!t.enabled)return!0;var i=jr(o,s,t.options.quadrant),a=i[0],c=i[1],h={deltaX:a,deltaY:c};return t.hooks.trigger(t.hooks.eventTypes.coordinateTransformation,h),t.handleMove(h.deltaX,h.deltaY,n)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,function(e){return t.enabled?t.handleEnd(e):!0}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,function(e){t.enabled&&!e._constructed&&t.handleClick(e)})},r.prototype.handleStart=function(t){var e=K();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=e,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,t)},r.prototype.handleMove=function(t,e,o){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,o)){var s=this.scrollBehaviorX.getAbsDist(t),n=this.scrollBehaviorY.getAbsDist(e),i=K();if(this.checkMomentum(s,n,i))return!0;if(this.directionLockAction.checkMovingDirection(s,n,o))return this.actionsHandler.setInitiated(),!0;var a=this.directionLockAction.adjustDelta(t,e),c=this.scrollBehaviorX.getCurrentPos(),h=this.scrollBehaviorX.move(a.deltaX),f=this.scrollBehaviorY.getCurrentPos(),p=this.scrollBehaviorY.move(a.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var u=h!==c||p!==f;!this.contentMoved&&!u&&this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&u&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&u&&(this.animater.translate({x:h,y:p}),this.dispatchScroll(i))}}},r.prototype.dispatchScroll=function(t){t-this.startTime>this.options.momentumLimitTime&&(this.startTime=t,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),this.options.probeType===1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},r.prototype.checkMomentum=function(t,e,o){return o-this.endTime>this.options.momentumLimitTime&&e<this.options.momentumLimitDistance&&t<this.options.momentumLimitDistance},r.prototype.handleEnd=function(t){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,t)){var e=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,t,e))return!0;e=this.ensureIntegerPos(e),this.animater.translate(e),this.endTime=K();var o=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,e,o)}},r.prototype.ensureIntegerPos=function(t){this.ensuringInteger=!0;var e=t.x,o=t.y,s=this.scrollBehaviorX,n=s.minScrollPos,i=s.maxScrollPos,a=this.scrollBehaviorY,c=a.minScrollPos,h=a.maxScrollPos;return e=e>0?Math.ceil(e):Math.floor(e),o=o>0?Math.ceil(o):Math.floor(o),e=ae(e,i,n),o=ae(o,h,c),{x:e,y:o}},r.prototype.handleClick=function(t){ct(t.target,this.options.preventDefaultException)||(Ge(t),t.stopPropagation())},r.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},r.prototype.refresh=function(){this.endTime=0},r.prototype.destroy=function(){this.hooks.destroy()},r}();function Gr(r){var t=["click","bindToWrapper","disableMouse","disableTouch","preventDefault","stopPropagation","tagException","preventDefaultException","autoEndDistance"].reduce(function(e,o){return e[o]=r[o],e},{});return t}function de(r,t,e,o){var s=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime","outOfBoundaryDampingFactor","specifiedIndexAsContent"].reduce(function(n,i){return n[i]=r[i],n},{});return s.scrollable=!!r[t],s.bounces=e,s.rect=o,s}function Qt(r,t,e){e.forEach(function(o){var s,n;
18typeof o=="string"?s=n=o:(s=o.source,n=o.target),r.on(s,function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return t.trigger.apply(t,Ve([n],i))})})}function Jr(r,t){for(var e=Object.keys(r),o=0,s=e;o<s.length;o++){var n=s[o];if(r[n]!==t[n])return!1}return!0}var ve=1,Zr=function(){function r(t,e,o){this.wrapper=t,this.content=e,this.resizeTimeout=0,this.hooks=new I(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","resize","touchEnd","end","flick","scrollCancel","momentum","scrollTo","minDistanceScroll","scrollToElement","beforeRefresh"]),this.options=o;var s=this.options.bounce,n=s.left,i=s.right,a=s.top,c=s.bottom;this.scrollBehaviorX=new fe(t,e,de(o,"scrollX",[n,i],{size:"width",position:"left"})),this.scrollBehaviorY=new fe(t,e,de(o,"scrollY",[a,c],{size:"height",position:"top"})),this.translater=new Fr(this.content),this.animater=Wr(this.content,this.translater,this.options),this.actionsHandler=new Nr(this.options.bindToTarget?this.content:t,Gr(this.options)),this.actions=new qr(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var h=this.resize.bind(this);this.resizeRegister=new Ot(window,[{name:"orientationchange",handler:h},{name:"resize",handler:h}]),this.registerTransitionEnd(),this.init()}return r.prototype.init=function(){var t=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,function(){t.togglePointerEvents(!0)})},r.prototype.registerTransitionEnd=function(){this.transitionEndRegister=new Ot(this.content,[{name:W.transitionEnd,handler:this.transitionEnd.bind(this)}])},r.prototype.bindTranslater=function(){var t=this,e=this.translater.hooks;e.on(e.eventTypes.beforeTranslate,function(o){t.options.translateZ&&o.push(t.options.translateZ)}),e.on(e.eventTypes.translate,function(o){var s=t.getCurrentPos();if(t.updatePositions(o),t.actions.ensuringInteger===!0){t.actions.ensuringInteger=!1;return}(o.x!==s.x||o.y!==s.y)&&t.togglePointerEvents(!1)})},r.prototype.bindAnimater=function(){var t=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,function(e){t.resetPosition(t.options.bounceTime)||(t.animater.setPending(!1),t.hooks.trigger(t.hooks.eventTypes.scrollEnd,e))}),Qt(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},r.prototype.bindActions=function(){var t=this,e=this.actions;Qt(e.hooks,this.hooks,[{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:e.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:e.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:e.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:e.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),e.hooks.on(e.hooks.eventTypes.end,function(o,s){if(t.hooks.trigger(t.hooks.eventTypes.touchEnd,s),t.hooks.trigger(t.hooks.eventTypes.end,s)||!e.fingerMoved&&(t.hooks.trigger(t.hooks.eventTypes.scrollCancel),t.checkClick(o)))return!0;if(t.resetPosition(t.options.bounceTime,R.bounce))return t.animater.setForceStopped(!1),!0}),e.hooks.on(e.hooks.eventTypes.scrollEnd,function(o,s){var n=Math.abs(o.x-t.scrollBehaviorX.startPos),i=Math.abs(o.y-t.scrollBehaviorY.startPos);if(t.checkFlick(s,n,i)){t.animater.setForceStopped(!1),t.hooks.trigger(t.hooks.eventTypes.flick);return}if(t.momentum(o,s)){t.animater.setForceStopped(!1);return}e.contentMoved&&t.hooks.trigger(t.hooks.eventTypes.scrollEnd,o),t.animater.forceStopped&&t.animater.setForceStopped(!1)})},r.prototype.checkFlick=function(t,e,o){var s=1;if(this.hooks.events.flick.length>1&&t<this.options.flickLimitTime&&e<this.options.flickLimitDistance&&o<this.options.flickLimitDistance&&(o>s||e>s))return!0},r.prototype.momentum=function(t,e){var o={time:0,easing:R.swiper,newX:t.x,newY:t.y},s=this.scrollBehaviorX.end(e),n=this.scrollBehaviorY.end(e);if(o.newX=Zt(s.destination)?o.newX:s.destination,o.newY=Zt(n.destination)?o.newY:n.destination,o.time=Math.max(s.duration,n.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,o,this),o.newX!==t.x||o.newY!==t.y)return(o.newX>this.scrollBehaviorX.minScrollPos||o.newX<this.scrollBehaviorX.maxScrollPos||o.newY>this.scrollBehaviorY.minScrollPos||o.newY<this.scrollBehaviorY.maxScrollPos)&&(o.easing=R.swipeBounce),this.scrollTo(o.newX,o.newY,o.time,o.easing),!0},r.prototype.checkClick=function(t){var e={preventClick:this.animater.forceStopped};if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return this.animater.setForceStopped(!1),!0;if(!e.preventClick){var o=this.options.dblclick,s=!1;if(o&&this.lastClickTime){var n=o.delay,i=n===void 0?300:n;K()-this.lastClickTime<i&&(s=!0,Ar(t))}return this.options.tap&&$r(t,this.options.tap),this.options.click&&!ct(t.target,this.options.preventDefaultException)&&Ze(t),this.lastClickTime=s?null:K(),!0}return!1},r.prototype.resize=function(){var t=this;this.actions.enabled&&(Sr&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(function(){t.hooks.trigger(t.hooks.eventTypes.resize)},this.options.resizePolling))},r.prototype.transitionEnd=function(t){if(!(t.target!==this.content||!this.animater.pending)){var e=this.animater;e.transitionTime(),this.resetPosition(this.options.bounceTime,R.bounce)||(this.animater.setPending(!1),this.options.probeType!==3&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos()))}},r.prototype.togglePointerEvents=function(t){t===void 0&&(t=!0);for(var e=this.content.children.length?this.content.children:[this.content],o=t?"auto":"none",s=0;s<e.length;s++){var n=e[s];n.isBScrollContainer||(n.style.pointerEvents=o)}},r.prototype.refresh=function(t){var e=this.setContent(t);this.hooks.trigger(this.hooks.eventTypes.beforeRefresh),this.scrollBehaviorX.refresh(t),this.scrollBehaviorY.refresh(t),e&&(this.translater.setContent(t),this.animater.setContent(t),this.transitionEndRegister.destroy(),this.registerTransitionEnd(),this.options.bindToTarget&&this.actionsHandler.setContent(t)),this.actions.refresh(),this.wrapperOffset=le(this.wrapper)},r.prototype.setContent=function(t){var e=t!==this.content;return e&&(this.content=t),e},r.prototype.scrollBy=function(t,e,o,s){o===void 0&&(o=0);var n=this.getCurrentPos(),i=n.x,a=n.y;s=s||R.bounce,t+=i,e+=a,this.scrollTo(t,e,o,s)},r.prototype.scrollTo=function(t,e,o,s,n){o===void 0&&(o=0),s===void 0&&(s=R.bounce),n===void 0&&(n={start:{},end:{}});var i=this.options.useTransition?s.style:s.fn,a=this.getCurrentPos(),c=lt({x:a.x,y:a.y},n.start),h=lt({x:t,y:e},n.end);if(this.hooks.trigger(this.hooks.eventTypes.scrollTo,h),!Jr(c,h)){var f=Math.abs(h.x-c.x),p=Math.abs(h.y-c.y);f<ve&&p<ve&&(o=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(c,h,o,i)}},r.prototype.scrollToElement=function(t,e,o,s,n){var i=qe(t),a=le(i),c=function(f,p,u){return typeof f=="number"?f:f?Math.round(p/2-u/2):0};o=c(o,i.offsetWidth,this.wrapper.offsetWidth),s=c(s,i.offsetHeight,this.wrapper.offsetHeight);var h=function(f,p,u,v){return f-=p,f=v.adjustPosition(f-u),f};a.left=h(a.left,this.wrapperOffset.left,o,this.scrollBehaviorX),a.top=h(a.top,this.wrapperOffset.top,s,this.scrollBehaviorY),!this.hooks.trigger(this.hooks.eventTypes.scrollToElement,i,a)&&this.scrollTo(a.left,a.top,e,n)},r.prototype.resetPosition=function(t,e){t===void 0&&(t=0),e===void 0&&(e=R.bounce);var o=this.scrollBehaviorX.checkInBoundary(),s=o.position,n=o.inBoundary,i=this.scrollBehaviorY.checkInBoundary(),a=i.position,c=i.inBoundary;return n&&c?!1:(xr&&this.reflow(),this.scrollTo(s,a,t,e),!0)},r.prototype.reflow=function(){this._reflow=this.content.offsetHeight},r.prototype.updatePositions=function(t){this.scrollBehaviorX.updatePosition(t.x),this.scrollBehaviorY.updatePosition(t.y)},r.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},r.prototype.enable=function(){this.actions.enabled=!0},r.prototype.disable=function(){V(this.animater.timer),this.actions.enabled=!1},r.prototype.destroy=function(){var t=this,e=["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"];e.forEach(function(o){return t[o].destroy()})},r}(),Nt=function(r){zt(t,r);function t(e,o){var s=r.call(this,["refresh","contentChanged","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,n=qe(e);return n?(s.plugins={},s.options=new zr().merge(o).process(),s.setContent(n).valid&&(s.hooks=new I(["refresh","enable","disable","destroy","beforeInitialScrollTo","contentChanged"]),s.init(n)),s):(Dt
18("Can not resolve the wrapper DOM."),s)}return t.use=function(e){var o=e.pluginName,s=t.plugins.some(function(n){return e===n.ctor});return s?t:Zt(o)?(Dt("Plugin Class must specify plugin's name in static property by 'pluginName' field."),t):(t.pluginsMap[o]=!0,t.plugins.push({name:o,applyOrder:e.applyOrder,ctor:e}),t)},t.prototype.setContent=function(e){var o=!1,s=!0,n=e.children[this.options.specifiedIndexAsContent];return n?(o=this.content!==n,o&&(this.content=n)):(Dt("The wrapper need at least one child element to be content element to scroll."),s=!1),{valid:s,contentChanged:o}},t.prototype.init=function(e){var o=this;this.wrapper=e,e.isBScrollContainer=!0,this.scroller=new Zr(e,this.content,this.options),this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize,function(){o.refresh()}),this.eventBubbling(),this.handleAutoBlur(),this.enable(),this.proxy(br),this.applyPlugins(),this.refreshWithoutReset(this.content);var s=this.options,n=s.startX,i=s.startY,a={x:n,y:i};this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo,a)||this.scroller.scrollTo(a.x,a.y)},t.prototype.applyPlugins=function(){var e=this,o=this.options;t.plugins.sort(function(s,n){var i,a=(i={},i.pre=-1,i.post=1,i),c=s.applyOrder?a[s.applyOrder]:0,h=n.applyOrder?a[n.applyOrder]:0;return c-h}).forEach(function(s){var n=s.ctor;o[s.name]&&typeof n=="function"&&(e.plugins[s.name]=new n(e))})},t.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,function(){var e=document.activeElement;e&&(e.tagName==="INPUT"||e.tagName==="TEXTAREA")&&e.blur()})},t.prototype.eventBubbling=function(){Qt(this.scroller.hooks,this,[this.eventTypes.beforeScrollStart,this.eventTypes.scrollStart,this.eventTypes.scroll,this.eventTypes.scrollEnd,this.eventTypes.scrollCancel,this.eventTypes.touchEnd,this.eventTypes.flick])},t.prototype.refreshWithoutReset=function(e){this.scroller.refresh(e),this.hooks.trigger(this.hooks.eventTypes.refresh,e),this.trigger(this.eventTypes.refresh,e)},t.prototype.proxy=function(e){var o=this;e.forEach(function(s){var n=s.key,i=s.sourceKey;Lr(o,i,n)})},t.prototype.refresh=function(){var e=this.setContent(this.wrapper),o=e.contentChanged,s=e.valid;if(s){var n=this.content;this.refreshWithoutReset(n),o&&(this.hooks.trigger(this.hooks.eventTypes.contentChanged,n),this.trigger(this.eventTypes.contentChanged,n)),this.scroller.resetPosition()}},t.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},t.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},t.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},t.prototype.eventRegister=function(e){this.registerType(e)},t.plugins=[],t.pluginsMap={},t}(I);function Ft(r,t){var e=new Nt(r,t);return e}Ft.use=Nt.use;Ft.plugins=Nt.plugins;Ft.pluginsMap=Nt.pluginsMap;var z=Ft;/*!
19 * better-scroll / mouse-wheel
20 * (c) 2016-2023 ustbhuangyi
21 * Released under the MIT License.
22 */function Qr(r){console.error("[BScroll warn]: "+r)}var ht=typeof window<"u",Mt=ht&&navigator.userAgent.toLowerCase();Mt&&Mt.indexOf("android")>0;(function(){if(typeof Mt=="string"){var r=/os (\d\d?_\d(_\d)?)/,t=r.exec(Mt);if(!t)return!1;var e=t[1].split("_").map(function(o){return parseInt(o,10)});return e[0]===13&&e[1]>=4}return!1})();var rr=!1;if(ht){var to="test-passive";try{var me={};Object.defineProperty(me,"passive",{get:function(){rr=!0}}),window.addEventListener(to,function(){},me)}catch(r){}}var eo=function(r,t){for(var e in t)r[e]=t[e];return r},or=ht&&document.createElement("div").style,G=function(){if(!ht)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=r;t<e.length;t++){var o=e[t];if(or[o.value]!==void 0)return o.key}return!1}();function C(r){return G===!1?r:G==="standard"?r==="transitionEnd"?"transitionend":r:G+r.charAt(0).toUpperCase()+r.substr(1)}function ro(r,t,e,o){var s=rr?{passive:!1,capture:!!o}:!!o;r.addEventListener(t,e,s)}function oo(r,t,e,o){r.removeEventListener(t,e,{capture:!!o})}function so(r){r.cancelable&&r.preventDefault()}G&&G!=="standard"&&""+G.toLowerCase();var no=C("transform"),io=C("transition");ht&&C("perspective")in or;C("transitionTimingFunction"),C("transitionDuration"),C("transitionDelay"),C("transformOrigin"),C("transitionEnd"),C("transitionProperty");function ao(r,t){for(var e in t)if(t[e].test(r[e]))return!0;return!1}var lo=function(){function r(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return r.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},r.prototype.addDOMEvents=function(){this.handleDOMEvents(ro)},r.prototype.removeDOMEvents=function(){this.handleDOMEvents(oo)},r.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;
22this.events.forEach(function(s){t(o,s.name,e,!!s.capture)})},r.prototype.handleEvent=function(t){var e=t.type;this.events.some(function(o){return o.name===e?(o.handler(t),!0):!1})},r}(),co=function(){function r(t){this.scroll=t,this.wheelEndTimer=0,this.wheelMoveTimer=0,this.wheelStart=!1,this.init()}return r.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.registerEvent()},r.prototype.handleBScroll=function(){this.scroll.registerType(["alterOptions","mousewheelStart","mousewheelMove","mousewheelEnd"])},r.prototype.handleOptions=function(){var t=this.scroll.options.mouseWheel===!0?{}:this.scroll.options.mouseWheel,e={speed:20,invert:!1,easeTime:300,discreteTime:400,throttleTime:0,dampingFactor:.1};this.mouseWheelOpt=eo(e,t)},r.prototype.handleHooks=function(){this.hooksFn=[],this.registerHooks(this.scroll.hooks,"destroy",this.destroy)},r.prototype.registerEvent=function(){this.eventRegister=new lo(this.scroll.scroller.wrapper,[{name:"wheel",handler:this.wheelHandler.bind(this)},{name:"mousewheel",handler:this.wheelHandler.bind(this)},{name:"DOMMouseScroll",handler:this.wheelHandler.bind(this)}])},r.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},r.prototype.wheelHandler=function(t){if(this.scroll.enabled){this.beforeHandler(t),this.wheelStart||(this.wheelStartHandler(t),this.wheelStart=!0);var e=this.getWheelDelta(t);this.wheelMoveHandler(e),this.wheelEndDetector(e)}},r.prototype.wheelStartHandler=function(t){this.cleanCache();var e=this.scroll.scroller,o=e.scrollBehaviorX,s=e.scrollBehaviorY;o.setMovingDirection(0),s.setMovingDirection(0),o.setDirection(0),s.setDirection(0),this.scroll.trigger(this.scroll.eventTypes.alterOptions,this.mouseWheelOpt),this.scroll.trigger(this.scroll.eventTypes.mousewheelStart)},r.prototype.cleanCache=function(){this.deltaCache=[]},r.prototype.wheelMoveHandler=function(t){var e=this,o=this.mouseWheelOpt,s=o.throttleTime,n=o.dampingFactor;if(s&&this.wheelMoveTimer)this.deltaCache.push(t);else{var i=this.deltaCache.reduce(function(v,m){return{x:v.x+m.x,y:v.y+m.y}},{x:0,y:0});this.cleanCache();var a=this.scroll.scroller,c=a.scrollBehaviorX,h=a.scrollBehaviorY;c.setMovingDirection(-t.directionX),h.setMovingDirection(-t.directionY),c.setDirection(t.x),h.setDirection(t.y);var f=c.performDampingAlgorithm(Math.round(t.x)+i.x,n),p=h.performDampingAlgorithm(Math.round(t.y)+i.x,n);if(!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove,{x:f,y:p})){var u=this.getEaseTime();(f!==this.scroll.x||p!==this.scroll.y)&&this.scroll.scrollTo(f,p,u)}s&&(this.wheelMoveTimer=window.setTimeout(function(){e.wheelMoveTimer=0},s))}},r.prototype.wheelEndDetector=function(t){var e=this;window.clearTimeout(this.wheelEndTimer),this.wheelEndTimer=window.setTimeout(function(){e.wheelStart=!1,window.clearTimeout(e.wheelMoveTimer),e.wheelMoveTimer=0,e.scroll.trigger(e.scroll.eventTypes.mousewheelEnd,t)},this.mouseWheelOpt.discreteTime)},r.prototype.getWheelDelta=function(t){var e=this.mouseWheelOpt,o=e.speed,s=e.invert,n=0,i=0,a=s?-1:1;switch(!0){case"deltaX"in t:t.deltaMode===1?(n=-t.deltaX*o,i=-t.deltaY*o):(n=-t.deltaX,i=-t.deltaY);break;case"wheelDeltaX"in t:n=t.wheelDeltaX/120*o,i=t.wheelDeltaY/120*o;break;case"wheelDelta"in t:n=i=t.wheelDelta/120*o;break;case"detail"in t:n=i=-t.detail/3*o;break}n*=a,i*=a,this.scroll.hasVerticalScroll||(Math.abs(i)>Math.abs(n)&&(n=i),i=0),this.scroll.hasHorizontalScroll||(n=0);var c=n>0?-1:n<0?1:0,h=i>0?-1:i<0?1:0;return{x:n,y:i,directionX:c,directionY:h}},r.prototype.beforeHandler=function(t){var e=this.scroll.options,o=e.preventDefault,s=e.stopPropagation,n=e.preventDefaultException;o&&!ao(t.target,n)&&so(t),s&&t.stopPropagation()},r.prototype.getEaseTime=function(){var t=100,e=this.mouseWheelOpt.easeTime;return e<t&&Qr("easeTime should be greater than 100.If mouseWheel easeTime is too small,scrollEnd will be triggered many times."),Math.max(e,t)},r.prototype.destroy=function(){this.eventRegister.destroy(),window.clearTimeout(this.wheelEndTimer),window.clearTimeout(this.wheelMoveTimer),this.hooksFn.forEach(function(t){var e=t[0],o=t[1],s=t[2];e.off(o,s)})},r.pluginName="mouseWheel",r.applyOrder="pre",r}();/*!
23 * better-scroll / observe-dom
24 * (c) 2016-2023 ustbhuangyi
25 * Released under the MIT License.
26 */var ut=typeof window<"u",Ct=ut&&navigator.userAgent.toLowerCase();Ct&&Ct.indexOf("android")>0;(function(){if(typeof Ct=="string"){var r=/os (\d\d?_\d(_\d)?)/,t=r.exec(Ct);if(!t)return!1;var e=t[1].split("_").map(function(o){return parseInt(o,10)});return e[0]===13&&e[1]>=4}return!1})();var ho=!1;if(ut){var uo="test-passive";try{var ye={};Object.defineProperty(ye,"passive",{get:function(){ho=!0}}),window.addEventListener(uo,function(){},ye)}catch(r){}}var sr=ut&&document.createElement("div").style,J=function(){if(!ut)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=r;t<e.length;t++){var o=e[t];if(sr[o.value]!==void 0)return o.key}return!1}();function $(r){return J===!1?r:J==="standard"?r==="transitionEnd"?"transitionend":r:J+r.charAt(0).toUpperCase()+r.substr(1)}J&&J!=="standard"&&""+J.toLowerCase();var fo=$("transform"),po=$("transition");ut&&$("perspective")in sr;$("transitionTimingFunction"),$("transitionDuration"),$("transitionDelay"),$("transformOrigin"),$("transitionEnd"),$("transitionProperty");function ge(r){if(r instanceof window.SVGElement){var t=r.getBoundingClientRect();
26return{top:t.top,left:t.left,width:t.width,height:t.height}}else return{top:r.offsetTop,left:r.offsetLeft,width:r.offsetWidth,height:r.offsetHeight}}var vo=function(){function r(t){this.scroll=t,this.stopObserver=!1,this.init()}return r.prototype.init=function(){this.handleMutationObserver(),this.handleHooks()},r.prototype.handleMutationObserver=function(){var t=this;if(typeof MutationObserver<"u"){var e=0;this.observer=new MutationObserver(function(o){t.mutationObserverHandler(o,e)}),this.startObserve(this.observer)}else this.checkDOMUpdate()},r.prototype.handleHooks=function(){var t=this;this.hooksFn=[],this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,function(){t.stopObserve(),t.handleMutationObserver()}),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.enable,function(){t.stopObserver&&t.handleMutationObserver()}),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.disable,function(){t.stopObserve()}),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.destroy,function(){t.destroy()})},r.prototype.mutationObserverHandler=function(t,e){var o=this;if(!this.shouldNotRefresh()){for(var s=!1,n=!1,i=0;i<t.length;i++){var a=t[i];if(a.type!=="attributes"){s=!0;break}else if(a.target!==this.scroll.scroller.content){n=!0;break}}s?this.scroll.refresh():n&&(clearTimeout(e),e=window.setTimeout(function(){o.shouldNotRefresh()||o.scroll.refresh()},60))}},r.prototype.startObserve=function(t){var e={attributes:!0,childList:!0,subtree:!0};t.observe(this.scroll.scroller.content,e)},r.prototype.shouldNotRefresh=function(){var t=this.scroll.scroller,e=t.scrollBehaviorX,o=t.scrollBehaviorY,s=e.currentPos>e.minScrollPos||e.currentPos<e.maxScrollPos||o.currentPos>o.minScrollPos||o.currentPos<o.maxScrollPos;return t.animater.pending||s}
26,r.prototype.checkDOMUpdate=function(){var t=this,e=this.scroll.scroller.content,o=ge(e),s=o.width,n=o.height,i=function(){if(!t.stopObserver){o=ge(e);var c=o.width,h=o.height;(s!==c||n!==h)&&t.scroll.refresh(),s=c,n=h,a()}},a=function(){setTimeout(function(){i()},1e3)};a()},r.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},r.prototype.stopObserve=function(){this.stopObserver=!0,this.observer&&this.observer.disconnect()},r.prototype.destroy=function(){this.stopObserve(),this.hooksFn.forEach(function(t){var e=t[0],o=t[1],s=t[2];e.off(o,s)}),this.hooksFn.length=0},r.pluginName="observeDOM",r}();/*!
27 * better-scroll / observe-image
28 * (c) 2016-2023 ustbhuangyi
29 * Released under the MIT License.
30 */var ft=typeof window<"u",$t=ft&&navigator.userAgent.toLowerCase();$t&&$t.indexOf("android")>0;(function(){if(typeof $t=="string"){var r=/os (\d\d?_\d(_\d)?)/,t=r.exec($t);if(!t)return!1;var e=t[1].split("_").map(function(o){return parseInt(o,10)});return e[0]===13&&e[1]>=4}return!1})();var nr=!1;if(ft){var mo="test-passive";try{var we={};Object.defineProperty(we,"passive",{get:function(){nr=!0}}),window.addEventListener(mo,function(){},we)}catch(r){}}var yo=function(r,t){for(var e in t)r[e]=t[e];return r},ir=ft&&document.createElement("div").style,Z=function(){if(!ft)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=r;t<e.length;t++){var o=e[t];if(ir[o.value]!==void 0)return o.key}return!1}();function A(r){return Z===!1?r:Z==="standard"?r==="transitionEnd"?"transitionend":r:Z+r.charAt(0).toUpperCase()+r.substr(1)}function go(r,t,e,o){var s=nr?{passive:!1,capture:!!o}:!!o;r.addEventListener(t,e,s)}function wo(r,t,e,o){r.removeEventListener(t,e,{capture:!!o})}Z&&Z!=="standard"&&""+Z.toLowerCase();var ko=A("transform"),bo=A("transition");ft&&A("perspective")in ir;A("transitionTimingFunction"),A("transitionDuration"),A("transitionDelay"),A("transformOrigin"),A("transitionEnd"),A("transitionProperty");var ke=function(){function r(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return r.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},r.prototype.addDOMEvents=function(){this.handleDOMEvents(go)},r.prototype.removeDOMEvents=function(){this.handleDOMEvents(wo)},r.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach(function(s){t(o,s.name,e,!!s.capture)})},r.prototype.handleEvent=function(t){var e=t.type;this.events.some(function(o){return o.name===e?(o.handler(t),!0):!1})},r}(),To=function(r){return r.tagName.toLowerCase()==="img"},So=function(){function r(t){this.scroll=t,this.refreshTimer=0,this.init()}return r.prototype.init=function(){this.handleOptions(this.scroll.options.observeImage),this.bindEventsToWrapper()},r.prototype.handleOptions=function(t){t===void 0&&(t={}),t=t===!0?{}:t;var e={debounceTime:100};this.options=yo(e,t)},r.prototype.bindEventsToWrapper=function(){var t=this.scroll.scroller.wrapper;this.imageLoadEventRegister=new ke(t,[{name:"load",handler:this.load.bind(this),capture:!0}]),this.imageErrorEventRegister=new ke(t,[{name:"error",handler:this.load.bind(this),capture:!0}])},r.prototype.load=function(t){var e=this,o=t.target,s=this.options.debounceTime;o&&To(o)&&(s===0?this.scroll.refresh():(clearTimeout(this.refreshTimer),this.refreshTimer=window.setTimeout(function(){e.scroll.refresh()},this.options.debounceTime)))},r.pluginName="observeImage",r}();/*!
31 * better-scroll / pull-down
32 * (c) 2016-2023 ustbhuangyi
33 * Released under the MIT License.
34 */var pt=typeof window<"u",At=pt&&navigator.userAgent.toLowerCase();At&&At.indexOf("android")>0;(function(){if(typeof At=="string"){var r=/os (\d\d?_\d(_\d)?)/,t=r.exec(At);if(!t)return!1;var e=t[1].split("_").map(function(o){return parseInt(o,10)});return e[0]===13&&e[1]>=4}return!1})();var xo=!1;if(pt){var Po="test-passive";try{var be={};Object.defineProperty(be,"passive",{get:function(){xo=!0}}),window.addEventListener(Po,function(){},be)}catch(r){}}var Eo=function(r,t){for(var e in t)r[e]=t[e];return r},ar=pt&&document.createElement("div").style,Q=function(){if(!pt)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=r;t<e.length;t++){var o=e[t];if(ar[o.value]!==void 0)return o.key}return!1}();function _(r){return Q===!1?r:Q==="standard"?r==="transitionEnd"?"transitionend":r:Q+r.charAt(0).toUpperCase()+r.substr(1)}Q&&Q!=="standard"&&""+Q.toLowerCase();var Do=_("transform"),Bo=_("transition");pt&&_("perspective")in ar;_("transitionTimingFunction"),_("transitionDuration"),_("transitionDelay"),_("transformOrigin"),_("transitionEnd"),_("transitionProperty");var Kt={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(r){return 1+--r*r*r*r*r}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(r){return r*(2-r)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(r){return 1- --r*r*r*r}}},Oo="plugins.pullDownRefresh",Mo=[{key:"finishPullDown",name:"finishPullDown"},{key:"openPullDown",name:"openPullDown"},{key:"closePullDown",name:"closePullDown"},{key:"autoPullDownRefresh",name:"autoPullDownRefresh"}],Co=Mo.map(function(r){return{key:r.key,sourceKey:Oo+"."+r.name}}),Vt="pullingDown",Te="enterThreshold",Se="leaveThreshold",$o=function(){function r(t){this.scroll=t,this.pulling=0,this.thresholdBoundary=0,this.init()}return r.prototype.setPulling=function(t){this.pulling=t},r.prototype.setThresholdBoundary=function(t){this.thresholdBoundary=t},r.prototype.init=function(){this.handleBScroll(),this.handleOptions(this.scroll.options.pullDownRefresh),this.handleHooks(),this.watch()},r.prototype.handleBScroll=function(){this.scroll.registerType([
34Vt,Te,Se]),this.scroll.proxy(Co)},r.prototype.handleOptions=function(t){t===void 0&&(t={}),t=t===!0?{}:t;var e={threshold:90,stop:40};this.options=Eo(e,t),this.scroll.options.probeType=3},r.prototype.handleHooks=function(){var t=this;this.hooksFn=[];var e=this.scroll.scroller,o=e.scrollBehaviorY;this.currentMinScrollY=this.cachedOriginanMinScrollY=o.minScrollPos,this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,function(){t.finishPullDown()}),this.registerHooks(o.hooks,o.hooks.eventTypes.computeBoundary,function(s){s.maxScrollPos>0&&(s.maxScrollPos=-1),s.minScrollPos=t.currentMinScrollY}),this.hasMouseWheelPlugin()&&(this.registerHooks(this.scroll,this.scroll.eventTypes.alterOptions,function(s){var n=300,i=350;s.discreteTime=n,s.easeTime=i}),this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelEnd,function(){e.hooks.trigger(e.hooks.eventTypes.end)}))},r.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},r.prototype.hasMouseWheelPlugin=function(){return!!this.scroll.eventTypes.alterOptions},r.prototype.watch=function(){var t=this.scroll.scroller;this.watching=!0,this.registerHooks(t.hooks,t.hooks.eventTypes.end,this.checkPullDown),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollStart,this.resetStateBeforeScrollStart),this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},r.prototype.resetStateBeforeScrollStart=function(){this.isFetchingStatus()||(this.setPulling(1),this.setThresholdBoundary(0))},r.prototype.checkLocationOfThresholdBoundary=function(){if(this.pulling===1){var t=this.scroll,e=this.thresholdBoundary!==1&&this.locateInsideThresholdBoundary(),o=this.thresholdBoundary!==2&&!this.locateInsideThresholdBoundary();e&&(this.setThresholdBoundary(1),t.trigger(Te)),o&&(this.setThresholdBoundary(2),t.trigger(Se))}},r.prototype.locateInsideThresholdBoundary=function(){return this.scroll.y<=this.options.threshold},r.prototype.unwatch=function(){var t=this.scroll,e=t.scroller;this.watching=!1,e.hooks.off(e.hooks.eventTypes.end,this.checkPullDown),t.off(t.eventTypes.scrollStart,this.resetStateBeforeScrollStart),t.off(t.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&t.off(t.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},r.prototype.checkPullDown=function(){var t=this.options,e=t.threshold,o=t.stop;return this.scroll.y<e?!1:(this.pulling===1&&(this.modifyBehaviorYBoundary(o),this.setPulling(2),this.scroll.trigger(Vt)),this.scroll.scrollTo(this.scroll.x,o,this.scroll.options.bounceTime,Kt.bounce),this.isFetchingStatus())},r.prototype.isFetchingStatus=function(){return this.pulling===2},r.prototype.modifyBehaviorYBoundary=function(t){var e=this.scroll.scroller.scrollBehaviorY;this.cachedOriginanMinScrollY=e.minScrollPos,this.currentMinScrollY=t,e.computeBoundary()},r.prototype.finishPullDown=function(){if(this.isFetchingStatus()){var t=this.scroll.scroller.scrollBehaviorY;this.currentMinScrollY=this.cachedOriginanMinScrollY,t.computeBoundary(),this.setPulling(0),this.scroll.resetPosition(this.scroll.options.bounceTime,Kt.bounce)}},r.prototype.openPullDown=function(t){t===void 0&&(t={}),this.handleOptions(t),this.watching||this.watch()},r.prototype.closePullDown=function(){this.unwatch()},r.prototype.autoPullDownRefresh=function(){var t=this.options,e=t.threshold,o=t.stop;this.isFetchingStatus()||!this.watching||(this.modifyBehaviorYBoundary(o),this.scroll.trigger(this.scroll.eventTypes.scrollStart),this.scroll.scrollTo(this.scroll.x,e),this.setPulling(2),this.scroll.trigger(Vt),this.scroll.scrollTo(this.scroll.x,o,this.scroll.options.bounceTime,Kt.bounce))},r.pluginName="pullDownRefresh",r}();/*!
35 * better-scroll / pull-up
36 * (c) 2016-2023 ustbhuangyi
37 * Released under the MIT License.
38 */var dt=typeof window<"u",_t=dt&&navigator.userAgent.toLowerCase();_t&&_t.indexOf("android")>0;(function(){if(typeof _t=="string"){var r=/os (\d\d?_\d(_\d)?)/,t=r.exec(_t);if(!t)return!1;var e=t[1].split("_").map(function(o){return parseInt(o,10)});return e[0]===13&&e[1]>=4}return!1})();var Ao=!1;if(dt){var _o="test-passive";try{var xe={};Object.defineProperty(xe,"passive",{get:function(){Ao=!0}}),window.addEventListener(_o,function(){},xe)}catch(r){}}var Ho=function(r,t){for(var e in t)r[e]=t[e];return r},lr=dt&&document.createElement("div").style,tt=function(){if(!dt)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=r;t<e.length;t++){var o=e[t];if(lr[o.value]!==void 0)return o.key}return!1}();function H(r){return tt===!1?r:tt==="standard"?r==="transitionEnd"?"transitionend":r:tt+r.charAt(0).toUpperCase()+r.substr(1)}tt&&tt!=="standard"&&""+tt.toLowerCase();var Yo=H("transform"),Lo=H("transition");dt&&H("perspective")in lr;H("transitionTimingFunction"),H("transitionDuration"),H("transitionDelay"),H("transformOrigin"),H("transitionEnd"),H("transitionProperty");var Xo="plugins.pullUpLoad",zo=[{key:"finishPullUp",name:"finishPullUp"},{key:"openPullUp",name:"openPullUp"},{key:"closePullUp",name:"closePullUp"},{key:"autoPullUpLoad",name:"autoPullUpLoad"}],No=zo.map(function(r){return{key:r.key,sourceKey:Xo+"."+r.name}}),Pe="pullingUp",Fo=function(){function r(t){this.scroll=t,this.pulling=!1,this.watching=!1,this.init()}return r.prototype.init=function(){this.handleBScroll(),this.handleOptions(this.scroll.options.pullUpLoad),this.handleHooks(),this.watch()},r.prototype.handleBScroll=function(){this.scroll.registerType([Pe]),this.scroll.proxy(No)},r.prototype.handleOptions=function(t){t===void 0&&(t={}),t=t===!0?{}:t;var e={threshold:0};this.options=Ho(e,t),this.scroll.options.probeType=3},r.prototype.handleHooks=function(){var t=this;this.hooksFn=[];
38var e=this.scroll.scroller.scrollBehaviorY;this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,function(){t.finishPullUp()}),this.registerHooks(e.hooks,e.hooks.eventTypes.computeBoundary,function(o){o.maxScrollPos>0&&(o.maxScrollPos=-1)})},r.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},r.prototype.watch=function(){this.watching||(this.watching=!0,this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkPullUp))},r.prototype.unwatch=function(){this.watching=!1,this.scroll.off(this.scroll.eventTypes.scroll,this.checkPullUp)},r.prototype.checkPullUp=function(t){var e=this,o=this.options.threshold;this.scroll.movingDirectionY===1&&t.y<=this.scroll.maxScrollY+o&&(this.pulling=!0,this.scroll.once(this.scroll.eventTypes.scrollEnd,function(){e.pulling=!1}),this.unwatch(),this.scroll.trigger(Pe))},r.prototype.finishPullUp=function(){var t=this;this.scroll.scroller.scrollBehaviorY.setMovingDirection(0),this.pulling?this.scroll.once(this.scroll.eventTypes.scrollEnd,function(){t.watch()}):this.watch()},r.prototype.openPullUp=function(t){t===void 0&&(t={}),this.handleOptions(t),this.watch()},r.prototype.closePullUp=function(){this.unwatch()},r.prototype.autoPullUpLoad=function(){var t=this.options.threshold,e=this.scroll.scroller.scrollBehaviorY;if(!(this.pulling||!this.watching)){var o=-1,s=e.maxScrollPos+t+o;this.scroll.scroller.scrollBehaviorY.setMovingDirection(o),this.scroll.scrollTo(this.scroll.x,s,this.scroll.options.bounceTime)}},r.pluginName="pullUpLoad",r}();/*!
39 * better-scroll / scroll-bar
40 * (c) 2016-2023 ustbhuangyi
41 * Released under the MIT License.
42 *//*! *****************************************************************************
43Copyright (c) Microsoft Corporation.
44
45Permission to use, copy, modify, and/or distribute this software for any
46purpose with or without fee is hereby granted.
47
48THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
49REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
50AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
51INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
52LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
53OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
54PERFORMANCE OF THIS SOFTWARE.
55***************************************************************************** */var Ht=function(){return Ht=Object.assign||function(t){for(var e,o=1,s=arguments.length;o<s;o++){e=arguments[o];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Ht.apply(this,arguments)};function Io(){for(var r=0,t=0,e=arguments.length;t<e;t++)r+=arguments[t].length;for(var o=Array(r),s=0,t=0;t<e;t++)for(var n=arguments[t],i=0,a=n.length;i<a;i++,s++)o[s]=n[i];return o}function Ro(r){console.error("[BScroll warn]: "+r)}var vt=typeof window<"u",Yt=vt&&navigator.userAgent.toLowerCase();Yt&&Yt.indexOf("android")>0;(function(){if(typeof Yt=="string"){var r=/os (\d\d?_\d(_\d)?)/,t=r.exec(Yt);if(!t)return!1;var e=t[1].split("_").map(function(o){return parseInt(o,10)});return e[0]===13&&e[1]>=4}return!1})();var cr=!1;if(vt){var Uo="test-passive";try{var Ee={};Object.defineProperty(Ee,"passive",{get:function(){cr=!0}}),window.addEventListener(Uo,function(){},Ee)}catch(r){}}function De(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var Wo=function(r,t){for(var e in t)r[e]=t[e];return r};function jt(r,t,e){return r<t?t:r>e?e:r}var hr=vt&&document.createElement("div").style,et=function(){if(!vt)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=r;t<e.length;t++){var o=e[t];if(hr[o.value]!==void 0)return o.key}return!1}();function Y(r){return et===!1?r:et==="standard"?r==="transitionEnd"?"transitionend":r:et+r.charAt(0).toUpperCase()+r.substr(1)}function Ko(r,t,e,o){var s=cr?{passive:!1,capture:!!o}:!!o;r.addEventListener(t,e,s)}function Vo(r,t,e,o){r.removeEventListener(t,e,{capture:!!o})}function qt(r){r.cancelable&&r.preventDefault()}et&&et!=="standard"&&""+et.toLowerCase();var jo=Y("transform"),qo=Y("transition");vt&&Y("perspective")in hr;var Tt={transform:jo,transition:qo,transitionTimingFunction:Y("transitionTimingFunction"),transitionDuration:Y("transitionDuration"),transitionDelay:Y("transitionDelay"),transformOrigin:Y("transformOrigin"),transitionEnd:Y("transitionEnd"),transitionProperty:Y("transitionProperty")},Go=function(){function r(t){this.events={},this.eventTypes={},this.registerType(t)}return r.prototype.on=function(t,e,o){return o===void 0&&(o=this),this.hasType(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,o]),this},r.prototype.once=function(t,e,o){var s=this;o===void 0&&(o=this),this.hasType(t);var n=function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];s.off(t,n);var c=e.apply(o,i);if(c===!0)return c};return n.fn=e,this.on(t,n),this},r.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this.hasType(t),!e)return this.events[t]=[],this;var o=this.events[t];if(!o)return this;for(var s=o.length;s--;)(o[s][0]===e||o[s][0]&&o[s][0].fn===e)&&o.splice(s,1);return this}},r.prototype.trigger=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];this.hasType(t);var s=this.events[t];if(s)for(var n=s.length,i=Io(s),a,c=0;c<n;c++){var h=i[c],f=h[0],p=h[1];if(f&&(a=f.apply(p,e),a===!0))return a}},r.prototype.registerType=function(t){var e=this;t.forEach(function(o){e.eventTypes[o]=o})},r.prototype.destroy=function(){this.events={},this.eventTypes={}},r.prototype.hasType=function(t){var e=this.eventTypes,o=e[t]===t;o||Ro('EventEmitter has used unknown event type: "'+t+'", should be oneof ['+(""+Object.keys(e).map(function(s){return JSON.stringify(s)}))+"]")},r}(),Bt=function(){function r(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return r.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},r.prototype.addDOMEvents=function(){this.handleDOMEvents(Ko)},r.prototype.removeDOMEvents=function(){this.handleDOMEvents(Vo)},r.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;
55this.events.forEach(function(s){t(o,s.name,e,!!s.capture)})},r.prototype.handleEvent=function(t){var e=t.type;this.events.some(function(o){return o.name===e?(o.handler(t),!0):!1})},r}(),Jo=function(){function r(t,e){this.indicator=t,this.options=e,this.hooks=new Go(["touchStart","touchMove","touchEnd"]),this.registerEvents()}return r.prototype.registerEvents=function(){var t=this.options,e=t.disableMouse,o=t.disableTouch,s=[],n=[],i=[];e||(s.push({name:"mousedown",handler:this.start.bind(this)}),n.push({name:"mousemove",handler:this.move.bind(this)}),i.push({name:"mouseup",handler:this.end.bind(this)})),o||(s.push({name:"touchstart",handler:this.start.bind(this)}),n.push({name:"touchmove",handler:this.move.bind(this)}),i.push({name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),this.startEventRegister=new Bt(this.indicator.indicatorEl,s),this.moveEventRegister=new Bt(window,n),this.endEventRegister=new Bt(window,i)},r.prototype.BScrollIsDisabled=function(){return!this.indicator.scroll.enabled},r.prototype.start=function(t){if(!this.BScrollIsDisabled()){var e=t.touches?t.touches[0]:t;qt(t),t.stopPropagation(),this.initiated=!0,this.lastPoint=e[this.indicator.keysMap.point],this.hooks.trigger(this.hooks.eventTypes.touchStart)}},r.prototype.move=function(t){if(this.initiated){var e=t.touches?t.touches[0]:t,o=e[this.indicator.keysMap.point];qt(t),t.stopPropagation();var s=o-this.lastPoint;this.lastPoint=o,this.hooks.trigger(this.hooks.eventTypes.touchMove,s)}},r.prototype.end=function(t){this.initiated&&(this.initiated=!1,qt(t),t.stopPropagation(),this.hooks.trigger(this.hooks.eventTypes.touchEnd))},r.prototype.destroy=function(){this.startEventRegister.destroy(),this.moveEventRegister.destroy(),this.endEventRegister.destroy()},r}(),Zo=function(){function r(t,e){this.scroll=t,this.options=e,this.hooksFn=[],this.wrapper=e.wrapper,this.direction=e.direction,this.indicatorEl=this.wrapper.children[0],this.keysMap=this.getKeysMap(),this.handleFade(),this.handleHooks()}return r.prototype.handleFade=function(){this.options.fade&&(this.wrapper.style.opacity="0")},r.prototype.handleHooks=function(){var t=this,e=this.options,o=e.fade,s=e.interactive,n=e.scrollbarTrackClickable,i=this.scroll,a=i.hooks,c=i.scroller.translater.hooks,h=i.scroller.animater.hooks;if(this.registerHooks(a,a.eventTypes.refresh,this.refresh),this.registerHooks(c,c.eventTypes.translate,function(m){var x=t.keysMap.hasScroll;t.scroll[x]&&t.updatePosition(m)}),this.registerHooks(h,h.eventTypes.time,this.transitionTime),this.registerHooks(h,h.eventTypes.timeFunction,this.transitionTimingFunction),o&&(this.registerHooks(i,i.eventTypes.scrollEnd,function(){t.fade()}),this.registerHooks(i,i.eventTypes.scrollStart,function(){t.fade(!0)}),i.eventTypes.mousewheelStart&&i.eventTypes.mousewheelEnd&&(this.registerHooks(i,i.eventTypes.mousewheelStart,function(){t.fade(!0)}),this.registerHooks(i,i.eventTypes.mousewheelMove,function(){t.fade(!0)}),this.registerHooks(i,i.eventTypes.mousewheelEnd,function(){t.fade()}))),s){var f=this.scroll.options,p=f.disableMouse,u=f.disableTouch;this.eventHandler=new Jo(this,{disableMouse:p,disableTouch:u});var v=this.eventHandler.hooks;this.registerHooks(v,v.eventTypes.touchStart,this.startHandler),this.registerHooks(v,v.eventTypes.touchMove,this.moveHandler),this.registerHooks(v,v.eventTypes.touchEnd,this.endHandler)}n&&this.bindClick()},r.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},r.prototype.bindClick=function(){var t=this.wrapper;this.clickEventRegister=new Bt(t,[{name:"click",handler:this.handleClick.bind(this)}])},r.prototype.handleClick=function(t){var e=this.calculateclickOffsetPos(t),o=this.scroll,s=o.x,n=o.y;s=this.direction==="horizontal"?e:s,n=this.direction==="vertical"?e:n,this.scroll.scrollTo(s,n,this.options.scrollbarTrackOffsetTime)},r.prototype.calculateclickOffsetPos=function(t){var e=this.keysMap,o=e.point,s=e.domRect,n=this.options.scrollbarTrackOffsetType,i=t[o]-this.wrapperRect[s],a=i<this.currentPos?-1:1,c=0,h=this.currentPos;return n==="step"?c=this.scrollInfo.baseSize*a:(c=0,h=i),this.newPos(h,c,this.scrollInfo)},r.prototype.getKeysMap=function(){return this.direction==="vertical"?{hasScroll:"hasVerticalScroll",size:"height",wrapperSize:"clientHeight",scrollerSize:"scrollerHeight",maxScrollPos:"maxScrollY",pos:"y",point:"pageY",translateProperty:"translateY",domRect:"top"}:{hasScroll:"hasHorizontalScroll",size:"width",wrapperSize:"clientWidth",scrollerSize:"scrollerWidth",maxScrollPos:"maxScrollX",pos:"x",point:"pageX",translateProperty:"translateX",domRect:"left"}},r.prototype.fade=function(t){var e=this.options,o=e.fadeInTime,s=e.fadeOutTime,n=t?o:s,i=this.wrapper;i.style[Tt.transitionDuration]=n+"ms",i.style.opacity=t?"1":"0"},r.prototype.refresh=function(){var t=this.keysMap.hasScroll,e=this.scroll,o=e.x,s=e.y;if(this.wrapperRect=this.wrapper.getBoundingClientRect(),this.canScroll(e[t])){var n=this.keysMap,i=n.wrapperSize,a=n.scrollerSize,c=n.maxScrollPos;this.scrollInfo=this.refreshScrollInfo(this.wrapper[i],e[a],e[c],this.indicatorEl[i]),this.updatePosition({x:o,y:s}
55)}},r.prototype.transitionTime=function(t){t===void 0&&(t=0),this.indicatorEl.style[Tt.transitionDuration]=t+"ms"},r.prototype.transitionTimingFunction=function(t){this.indicatorEl.style[Tt.transitionTimingFunction]=t},r.prototype.canScroll=function(t){return this.wrapper.style.display=t?"block":"none",t},r.prototype.refreshScrollInfo=function(t,e,o,s){var n=Math.max(Math.round(t*t/(e||t||1)),this.options.minSize);this.options.isCustom&&(n=s);var i=t-n,a=i/o;return{baseSize:n,maxScrollPos:i,minScrollPos:0,sizeRatio:a}},r.prototype.updatePosition=function(t){var e=this.caculatePosAndSize(t,this.scrollInfo),o=e.pos,s=e.size;this.refreshStyle(s,o),this.currentPos=o},r.prototype.caculatePosAndSize=function(t,e){var o=this.keysMap.pos,s=e.sizeRatio,n=e.baseSize,i=e.maxScrollPos,a=e.minScrollPos,c=this.options.minSize,h=Math.round(s*t[o]),f;return h<a?(f=Math.max(n+h*3,c),h=a):h>i?(f=Math.max(n-(h-i)*3,c),h=i+n-f):f=n,{pos:h,size:f}},r.prototype.refreshStyle=function(t,e){var o=this.keysMap,s=o.translateProperty,n=o.size,i=this.scroll.options.translateZ;this.indicatorEl.style[n]=t+"px",this.indicatorEl.style[Tt.transform]=s+"("+e+"px)"+i},r.prototype.startHandler=function(){this.moved=!1,this.startTime=De(),this.transitionTime(),this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.beforeScrollStart)},r.prototype.moveHandler=function(t){if(!this.moved&&!this.indicatorNotMoved(t)&&(this.moved=!0,this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollStart)),this.moved){var e=this.newPos(this.currentPos,t,this.scrollInfo);this.syncBScroll(e)}},r.prototype.endHandler=function(){if(this.moved){var t=this.scroll,e=t.x,o=t.y;this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollEnd,{x:e,y:o})}},r.prototype.indicatorNotMoved=function(t){var e=this.currentPos,o=this.scrollInfo,s=o.maxScrollPos,n=o.minScrollPos,i=e===n&&t<=0||e===s&&t>=0;return i},r.prototype.syncBScroll=function(t){var e=De(),o=this.scroll,s=o.x,n=o.y,i=o.options,a=o.scroller,c=o.maxScrollY,h=o.minScrollY,f=o.maxScrollX,p=o.minScrollX,u=i.probeType,v=i.momentumLimitTime,m={x:s,y:n};this.direction==="vertical"?m.y=jt(t,c,h):m.x=jt(t,f,p),a.translater.translate(m),e-this.startTime>v&&(this.startTime=e,u===1&&a.hooks.trigger(a.hooks.eventTypes.scroll,m)),u>1&&a.hooks.trigger(a.hooks.eventTypes.scroll,m)},r.prototype.newPos=function(t,e,o){var s=o.maxScrollPos,n=o.sizeRatio,i=o.minScrollPos,a=t+e;return a=jt(a,i,s),Math.round(a/n)},r.prototype.destroy=function(){var t=this.options,e=t.interactive,o=t.scrollbarTrackClickable,s=t.isCustom;e&&this.eventHandler.destroy(),o&&this.clickEventRegister.destroy(),s||this.wrapper.parentNode.removeChild(this.wrapper),this.hooksFn.forEach(function(n){var i=n[0],a=n[1],c=n[2];i.off(a,c)}),this.hooksFn.length=0},r}(),Qo=function(){function r(t){this.scroll=t,this.handleOptions(),this.createIndicators(),this.handleHooks()}return r.prototype.handleHooks=function(){var t=this,e=this.scroll;e.hooks.on(e.hooks.eventTypes.destroy,function(){for(var o=0,s=t.indicators;o<s.length;o++){var n=s[o];n.destroy()}})},r.prototype.handleOptions=function(){var t=this.scroll.options.scrollbar===!0?{}:this.scroll.options.scrollbar,e={fade:!0,fadeInTime:250,fadeOutTime:500,interactive:!1,customElements:[],minSize:8,scrollbarTrackClickable:!1,scrollbarTrackOffsetType:"step",scrollbarTrackOffsetTime:300};this.options=Wo(e,t)},r.prototype.createIndicators=function(){for(var t,e=this.scroll,o=[],s=["scrollX","scrollY"],n=["horizontal","vertical"],i=this.options.customElements,a=0;a<s.length;a++){var c=s[a];if(e.options[c]){var h=i.shift(),f=n[a],p=!1,u=h||this.createScrollbarElement(f);u!==h?e.wrapper.appendChild(u):p=!0,t=Ht(Ht({wrapper:u,direction:f},this.options),{isCustom:p}),o.push(new Zo(e,t))}}this.indicators=o},r.prototype.createScrollbarElement=function(t,e){e===void 0&&(e=this.options.scrollbarTrackClickable);var o=document.createElement("div"),s=document.createElement("div");return o.style.cssText="position:absolute;z-index:9999;overflow:hidden;",s.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",s.className="bscroll-indicator",t==="horizontal"?(o.style.cssText+="height:7px;left:2px;right:2px;bottom:0;",s.style.height="100%",o.className="bscroll-horizontal-scrollbar"):(o.style.cssText+="width:7px;bottom:2px;top:2px;right:1px;",s.style.width="100%",o.className="bscroll-vertical-scrollbar"),e||(o.style.cssText+="pointer-events:none;"),o.appendChild(s),o},r.pluginName="scrollbar",r}();/*!
56 * better-scroll / nested-scroll
57 * (c) 2016-2023 ustbhuangyi
58 * Released under the MIT License.
59 *//*! *****************************************************************************
60Copyright (c) Microsoft Corporation.
61
62Permission to use, copy, modify, and/or distribute this software for any
63purpose with or without fee is hereby granted.
64
65THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
66REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
67AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
68INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
69LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
70OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
71PERFORMANCE OF THIS SOFTWARE.
72***************************************************************************** */function Be(){for(var r=0,t=0,e=arguments.length;t<e;t++)r+=arguments[t].length;for(var o=Array(r),s=0,t=0;t<e;t++)for(var n=arguments[t],i=0,a=n.length;i<a;i++,s++)o[s]=n[i];return o}function ts(r){console.error("[BScroll warn]: "+r)}var mt=typeof window<"u",Lt=mt&&navigator.userAgent.toLowerCase();Lt&&Lt.indexOf("android")>0;(function(){if(typeof Lt=="string"){var r=/os (\d\d?_\d(_\d)?)/,t=r.exec(Lt);if(!t)return!1;var e=t[1].split("_").map(function(o){return parseInt(o,10)});return e[0]===13&&e[1]>=4}return!1})();var es=!1;if(mt){var rs="test-passive";try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){es=!0}}),window.addEventListener(rs,function(){},Oe)}catch(r){}}var os=function(r,t){for(var e in t)r[e]=t[e];return r};function j(r,t){if(r.findIndex)return r.findIndex(t);var e=-1;return r.some(function(o,s,n){var i=t(o,s,n);if(i)return e=s,i}),e}var ur=mt&&document.createElement("div").style,rt=function(){if(!mt)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=r;t<e.length;t++){var o=e[t];if(ur[o.value]!==void 0)return o.key}return!1}();function L(r){return rt===!1?r:rt==="standard"?r==="transitionEnd"?"transitionend":r:rt+r.charAt(0).toUpperCase()+r.substr(1)}rt&&rt!=="standard"&&""+rt.toLowerCase();var ss=L("transform"),ns=L("transition");mt&&L("perspective")in ur;L("transitionTimingFunction"),L("transitionDuration"),L("transitionDelay"),L("transformOrigin"),L("transitionEnd"),L("transitionProperty");var is=function(){function r(t){this.ancestors=[],this.descendants=[],this.hooksManager=[],this.analyzed=!1,this.selfScroll=t}return r.create=function(t){return new r(t)},r.prototype.hasAncestors=function(t){var e=j(this.ancestors,function(o){var s=o[0];return s===t});return e>-1},r.prototype.hasDescendants=function(t){var e=j(this.descendants,function(o){var s=o[0];return s===t});return e>-1},r.prototype.addAncestor=function(t,e){var o=this.ancestors;o.push([t,e]),o.sort(function(s,n){return s[1]-n[1]})},r.prototype.addDescendant=function(t,e){var o=this.descendants;o.push([t,e]),o.sort(function(s,n){return s[1]-n[1]})},r.prototype.removeAncestor=function(t){var e=this.ancestors;if(e.length){var o=j(this.ancestors,function(s){var n=s[0];return n===t});if(o>-1)return e.splice(o,1)}},r.prototype.removeDescendant=function(t){var e=this.descendants;if(e.length){var o=j(this.descendants,function(s){var n=s[0];return n===t});if(o>-1)return e.splice(o,1)}},r.prototype.registerHooks=function(t,e,o){t.on(e,o),this.hooksManager.push([t,e,o])},r.prototype.setAnalyzed=function(t){t===void 0&&(t=!1),this.analyzed=t},r.prototype.purge=function(){var t=this;
72this.ancestors.forEach(function(e){var o=e[0];o.removeDescendant(t)}),this.descendants.forEach(function(e){var o=e[0];o.removeAncestor(t)}),this.hooksManager.forEach(function(e){var o=e[0],s=e[1],n=e[2];o.off(s,n)}),this.hooksManager=[]},r}(),as="plugins.nestedScroll",ls=[{key:"purgeNestedScroll",name:"purgeNestedScroll"}],cs=ls.map(function(r){return{key:r.key,sourceKey:as+"."+r.name}}),hs="INTERNAL_NESTED_SCROLL",us=function(r){r.forEach(function(t){t.pending&&(t.stop(),t.resetPosition())})},Me=function(r){r.forEach(function(t){t.enable()})},St=function(r,t){r.forEach(function(e){(e.hasHorizontalScroll===t.hasHorizontalScroll||e.hasVerticalScroll===t.hasVerticalScroll)&&e.disable()})},fs=function(r){r.forEach(function(t){var e=t.scroller,o=e.actions,s=e.scrollBehaviorX,n=e.scrollBehaviorY;o.fingerMoved=!0,o.contentMoved=!1,o.directionLockAction.reset(),s.start(),n.start(),s.resetStartPos(),n.resetStartPos(),o.startTime=+new Date})},ps=function(r){var t=r.hasHorizontalScroll,e=r.hasVerticalScroll,o=r.x,s=r.y,n=r.minScrollX,i=r.maxScrollX,a=r.minScrollY,c=r.maxScrollY,h=r.movingDirectionX,f=r.movingDirectionY,p=!1,u=o>=n&&h===-1,v=o<=i&&h===1,m=s>=a&&f===-1,x=s<=c&&f===1;return e?p=m||x:t&&(p=u||v),p},ds=function(r){var t=r.hasHorizontalScroll,e=r.hasVerticalScroll,o=r.x,s=r.y,n=r.minScrollX,i=r.maxScrollX,a=r.minScrollY,c=r.maxScrollY,h=!1,f=o>n,p=o<i,u=s>a,v=s<c;return e?h=u||v:t&&(h=f||p),h},vs=function(r){r.scroller.reflow(),r.resetPosition(0)},ms=function(r,t){for(var e=0,o=r.parentNode;o&&o!==t;)e++,o=o.parentNode;return e},ys=function(){function r(t){var e=this.handleOptions(t),o=r.instancesMap[e];return o||(o=r.instancesMap[e]=this,o.store=[],o.hooksFn=[]),o.init(t),o}return r.getAllNestedScrolls=function(){var t=r.instancesMap;return Object.keys(t).map(function(e){return t[e]})},r.purgeAllNestedScrolls=function(){var t=r.getAllNestedScrolls();t.forEach(function(e){return e.purgeNestedScroll()})},r.prototype.handleOptions=function(t){var e=t.options.nestedScroll===!0?{}:t.options.nestedScroll,o={groupId:hs};this.options=os(o,e);var s=typeof this.options.groupId;return s!=="string"&&s!=="number"&&ts("groupId must be string or number for NestedScroll plugin"),this.options.groupId},r.prototype.init=function(t){t.proxy(cs),this.addBScroll(t),this.buildBScrollGraph(),this.analyzeBScrollGraph(),this.ensureEventInvokeSequence(),this.handleHooks(t)},r.prototype.handleHooks=function(t){var e=this;this.registerHooks(t.hooks,t.hooks.eventTypes.destroy,function(){e.deleteScroll(t)})},r.prototype.deleteScroll=function(t){var e=t.wrapper;e.isBScrollContainer=void 0;var o=this.store,s=this.hooksFn,n=j(o,function(u){return u.selfScroll===t});if(n>-1){var i=o[n];i.purge(),o.splice(n,1)}var a=j(s,function(u){var v=u[0];return v===t.hooks});if(a>-1){var c=s[a],h=c[0],f=c[1],p=c[2];h.off(f,p),s.splice(a,1)}},r.prototype.addBScroll=function(t){this.store.push(is.create(t))},r.prototype.buildBScrollGraph=function(){for(var t=this.store,e,o,s,n,i=this.store.length,a=0;a<i;a++){e=t[a],s=e.selfScroll.wrapper;for(var c=0;c<i;c++)if(o=t[c],n=o.selfScroll.wrapper,e!==o&&s.contains(n)){var h=ms(n,s);e.hasDescendants(o)||e.addDescendant(o,h),o.hasAncestors(e)||o.addAncestor(e,h)}}},r.prototype.analyzeBScrollGraph=function(){this.store.forEach(function(t){if(!t.analyzed){var e=t.ancestors,o=t.descendants,s=t.selfScroll,n=function(){var c=e.map(function(f){var p=f[0];return p.selfScroll}),h=o.map(function(f){var p=f[0];return p.selfScroll});us(Be(c,h)),ds(s)&&vs(s),fs(c),St(c,s)},i=function(){var c=e.map(function(f){var p=f[0];return p.selfScroll}),h=o.map(function(f){var p=f[0];return p.selfScroll});Me(Be(c,h))};t.registerHooks(s,s.eventTypes.beforeScrollStart,n),t.registerHooks(s,s.eventTypes.touchEnd,i);var a=s.scroller.actions.hooks;t.registerHooks(a,a.eventTypes.detectMovingDirection,function(){var c=e.map(function(v){var m=v[0];return m.selfScroll}),h=c[0],f=c.slice(1),p=s.scroller.actions.contentMoved,u=c.length===0;if(p)St(c,s);else if(!u&&ps(s))return St([s],s),h&&Me([h]),St(f,s),!0}),t.setAnalyzed(!0)}})},r.prototype.ensureEventInvokeSequence=function(){var t=this.store.slice(),e=t.sort(function(o,s){return o.descendants.length-s.descendants.length});e.forEach(function(o){var s=o.selfScroll;s.scroller.actionsHandler.rebindDOMEvents()})},r.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},r.prototype.purgeNestedScroll=function(){var t=this.options.groupId;this.store.forEach(function(e){e.purge()}),this.store=[],this.hooksFn.forEach(function(e){var o=e[0],s=e[1],n=e[2];o.off(s,n)}),this.hooksFn=[],delete r.instancesMap[t]},r.pluginName="nestedScroll",r.instancesMap={},r}();const gs={key:0},ws={key:0},ks={key:1},bs={__name:"ScrollApp",props:{dataNum:{type:Number,default:0},bsWrapper:{type:String,default:"bsWrapper"},isShowPullUp:{type:Boolean,default:!1},probeType:{type:Number,default:1},scrollX:{type:Boolean,default:!1},click:{type:Boolean,default:!0}},emits:["loadMore"],setup(r,{expose:t,emit:e}){z.use(co),z.use(vo),z.use(So),z.use($o),z.use(Fo),z.use(Qo),z.use(ys);const o=r,s=e,n=S(),i=S(null),a=S(),c=S(),h=S(),f=S();S(),S();const p=S(!0),u=S(!1),v=S(!0),m=S(!1),x=S(!1),st=S("fixed bottom-44 right-4 z-40");a.value=o.scrollX?"relative h-full overflow-hidden whitespace-nowrap "+o.bsWrapper:"relative h-full overflow-hidden "+o.bsWrapper,c.value=o.scrollX?"inline-block":"block",h.value=o.scrollX?"hidden":"absolute w-full p-5 text-center text-gray-400 box-border transform -translate-y-full",f.value=o.scrollX?"hidden":"w-full p-5 text-center text-gray-400";const fr=()=>{i.value.enable()},pr=()=>{i.value.disable()},dr=()=>{i.value.destroy()},re=()=>{const D=new z("."+o.bsWrapper,{scrollX:o.scrollX,probeType:o.probeType,click:o.click,mouseWheel:!0,scrollbar:!0,observeDOM:!0,observeImage:!0,pullDownRefresh:!0,pullUpLoad:!0,nestedScroll:{groupId:"shared"},preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|
72SELECT|AUDIO|A)$/,className:/(^|\s)multiselect(\s|$)/},tagException:{tagName:/^TEXTAREA$/,className:/(^|\s)multiselect(\s|$)/}});i.value=D;const P=async()=>{p.value=!1,u.value=!0,await oe(0),u.value=!1,D.finishPullDown(),setTimeout(()=>{p.value=!0,D.refresh()},1e3)},yt=async()=>{v.value=!1,m.value=!0,await oe(o.dataNum),m.value=!1,D.finishPullUp(),setTimeout(()=>{v.value=!0,D.refresh()},1e3)};o.scrollX||D.on("pullingDown",()=>{P()}),o.scrollX||D.on("pullingUp",()=>{m.value||yt()}),o.scrollX||D.on("scrollEnd",se=>{se.y<-1e3?(x.value=!0,st.value="fixed bottom-44 right-4 z-40 backtotop-fade-in"):(st.value="fixed bottom-44 right-4 z-40 backtotop-fade-out",setTimeout(()=>{x.value=!1},1e3)),se.y<D.maxScrollY+1e3&&!m.value&&yt()})};t({enablebs:fr,disablebs:pr,destroybs:dr,createbs:re});const oe=async D=>(n.value=D,new Promise((P,yt)=>{setTimeout(()=>{s("loadMore",n),P("Success"),yt("Failed")},1e3)})),vr=()=>{i.value.scrollTo(0,0,500)};return te(()=>{re()}),(D,P)=>(y(),w("div",null,[l("div",{class:nt(a.value)},[l("div",{class:nt(c.value)},[l("div",{class:nt(h.value)},[U(l("div",null,P[0]||(P[0]=[l("span",null,"下拉刷新",-1)]),512),[[it,p.value]]),U(l("div",null,[U(l("div",null,P[1]||(P[1]=[l("span",null,"加载中...",-1)]),512),[[it,u.value]]),U(l("div",null,P[2]||(P[2]=[l("span",null,"刷新成功",-1)]),512),[[it,!u.value]])],512),[[it,!p.value]])],2),mr(D.$slots,"default"),l("div",{class:nt(f.value)},[m.value?(y(),w("div",ks,P[3]||(P[3]=[l("span",null,"加载中...",-1)]))):(y(),w("div",gs,[r.isShowPullUp?T("",!0):(y(),w("span",ws,"上拉加载"))]))],2)],2)],2),U(l("div",{onClick:vr,class:nt(st.value)},P[4]||(P[4]=[l("img",{class:"w-12 h-12",src:kr},null,-1)]),2),[[it,x.value]])]))}},Ts="/build/assets/[email protected]",Ss="/build/assets/[email protected]",xs={key:0,class:"w-full mt-4 rounded-lg"},Ps=["src"],Es={key:1,class:"w-full mt-4 rounded-lg"},Ds=["src"],Bs={key:2,class:"w-auto px-4 mt-3 rounded-lg"},Os=["src"],Ms={__name:"TopAdApp",props:{adInfos:Array,typeNum:{type:Number,default:0}},emits:["showImg"],setup(r,{emit:t}){const e=r,o=t,s=(p,u)=>{axios({method:"post",url:"/api/statistics",data:{id:p,type:u},headers:{Authorization:"Bearer fvuwGBYPkLSSKNyvqIrPx2jX2Cgw2Dr6QNMvvtdP"}})},n={slidesPerView:1,loop:!0,modules:[Et,It],autoplay:{delay:8e3,disableOnInteraction:!1},pagination:!0,loading:"lazy"},i={slidesPerView:1,loop:!0,modules:[Et,It],autoplay:{delay:5e3,disableOnInteraction:!1},pagination:!0,loading:"lazy"},a={slidesPerView:1,loop:!0,modules:[Et,It],autoplay:{delay:5e3,disableOnInteraction:!1},pagination:{type:"custom",renderCustom:function(p,u,v){return'<span class="px-2 py-1 text-xs text-white bg-black bg-opacity-50">第'+u+"页 / 共"+v+"页</span>"}},loading:"lazy",autoHeight:!1},c=()=>{e.adInfos.forEach(p=>{s(p.id,0)})},h=(p,u)=>{s(u,1),location.href=p},f=p=>{o("showImg",p)};return(p,u)=>r.typeNum==1?(y(),w("div",xs,[k(d(Pt),{class:"rounded-lg w-full","slides-per-view":i.slidesPerView,loop:i.loop,modules:i.modules,autoplay:i.autoplay,pagination:i.pagination,loading:i.loading},{default:g(()=>[(y(!0),w(F,null,at(r.adInfos,v=>(y(),E(d(xt),{class:"text-white w-full"},{default:g(()=>[k(d(b),{href:v.url},{default:g(()=>[l("img",{class:"w-full",src:v.img},null,8,Ps)]),_:2},1032,["href"]),u[0]||(u[0]=l("div",{class:"swiper-lazy-preloader"},null,-1))]),_:2},1024))),256))]),_:1},8,["slides-per-view","loop","modules","autoplay","pagination","loading"])])):r.typeNum==2?(y(),w("div",Es,[k(d(Pt),{class:"rounded-lg w-full","slides-per-view":a.slidesPerView,loop:a.loop,modules:a.modules,autoplay:a.autoplay,pagination:a.pagination,loading:a.loading,autoHeight:a.autoHeight},{default:g(()=>[(y(!0),w(F,null,at(r.adInfos,(v,m)=>(y(),E(d(xt),{class:"text-white w-full",onClick:x=>f(m)},{default:g(()=>[l("img",{class:"mx-auto w-auto h-60",src:v.img},null,8,Ds),u[1]||(u[1]=l("div",{class:"swiper-lazy-preloader"},null,-1))]),_:2},1032,["onClick"]))),256))]),_:1},8,["slides-per-view","loop","modules","autoplay","pagination","loading","autoHeight"])])):(y(),w("div",Bs,[k(d(Pt),{class:"rounded-lg w-full",onAfterInit:c,"slides-per-view":n.slidesPerView,loop:n.loop,modules:n.modules,autoplay:n.autoplay,pagination:n.pagination,loading:n.loading},{default:g(()=>[(y(!0),w(F,null,at(r.adInfos,v=>(y(),E(d(xt),{class:"text-white w-full",onClick:m=>h(v.url,v.id)},{default:g(()=>[l("img",{class:"w-full",src:v.img},null,8,Os),u[2]||(u[2]=l("div",{class:"swiper-lazy-preloader"},null,-1))]),_:2},1032,["onClick"]))),256))]),_:1}
72,8,["slides-per-view","loop","modules","autoplay","pagination","loading"])]))}},Cs={class:"w-full rounded"},$s=["src"],As={__name:"BannerAdApp",props:{adInfos:Array},setup(r){const t=r,e=(i,a)=>{axios({method:"post",url:"/api/statistics",data:{id:i,type:a},headers:{Authorization:"Bearer fvuwGBYPkLSSKNyvqIrPx2jX2Cgw2Dr6QNMvvtdP"}})},o={slidesPerView:1,loop:!0,modules:[Et],autoplay:{delay:8e3,disableOnInteraction:!1}},s=()=>{t.adInfos.forEach(i=>{e(i.id,0)})},n=(i,a)=>{e(a,1),location.href=i};return(i,a)=>(y(),w("div",Cs,[k(d(Pt),{class:"rounded w-full",onAfterInit:s,"slides-per-view":o.slidesPerView,loop:o.loop,modules:o.modules,autoplay:o.autoplay},{default:g(()=>[(y(!0),w(F,null,at(r.adInfos,c=>(y(),E(d(xt),{class:"w-full",onClick:h=>n(c.url,c.id)},{default:g(()=>[l("img",{class:"w-full",src:c.img},null,8,$s)]),_:2},1032,["onClick"]))),256))]),_:1},8,["slides-per-view","loop","modules","autoplay"])]))}},Ce="/build/assets/[email protected]",$e="/build/assets/[email protected]",Ae="/build/assets/[email protected]",_e="/build/assets/[email protected]",He="/build/assets/[email protected]",Ye="/build/assets/[email protected]",Le="/build/assets/[email protected]",Xe="/build/assets/[email protected]",ze="/build/assets/[email protected]",Ne="/build/assets/[email protected]",_s={key:0},Hs={class:"flex flex-row flex-nowrap justify-between content-center items-center w-auto px-4 mt-4"},Ys=["href"],Ls=["href"],Xs=["href"],zs=["href"],Ns=["href"],Fs={class:"flex flex-row flex-nowrap justify-between content-center items-center w-auto px-4 my-2"},Is=["href"],Rs=["href"],Us=["href"],Ws=["href"],Ks=["href"],Vs={key:1},js={class:"flex flex-row flex-nowrap justify-between content-center items-center w-auto px-4 mt-4"},qs={class:"flex flex-row flex-nowrap justify-between content-center items-center w-auto px-4 my-2"},Gs={__name:"NavApp",props:{typeNum:{type:Number,default:0}},setup(r){const t=route("news"),e=route("newcar"),o=route("review"),s=route("guide"),n=route("carcenter"),i=route("seminar"),a=route("events"),c=route("trip"),h=route("picture"),f=route("video");return(p,u)=>r.typeNum==1?(y(),w("div",_s,[l("div",Hs,[l("a",{href:d(t),class:"flex-1 w-3"},u[0]||(u[0]=[l("img",{class:"w-full",src:Ce},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"新闻",-1)]),8,Ys),l("a",{href:d(e),class:"flex-1 w-3 ml-6"},u[1]||(u[1]=[l("img",{class:"w-full",src:$e},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"新车",-1)]),8,Ls),l("a",{href:d(o),class:"flex-1 w-3 ml-6"},u[2]||(u[2]=[l("img",{class:"w-full",src:Ae},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"测评",-1)]),8,Xs),l("a",{href:d(s),class:"flex-1 w-3 ml-6"},u[3]||(u[3]=[l("img",{class:"w-full",src:_e},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"导购",-1)]),8,zs),l("a",{href:d(n),class:"flex-1 w-3 ml-6"},u[4]||(u[4]=[l("img",{class:"w-full",src:He},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"选车",-1)]),8,Ns)]),l("div",Fs,[l("a",{href:d(i),class:"flex-1 w-3"},u[5]||(u[5]=[l("img",{class:"w-full",src:Ye},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"专题",-1)]),8,Is),l("a",{href:d(a),class:"flex-1 w-3 ml-6"},u[6]||(u[6]=[l("img",{class:"w-full",src:Le},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"赛事",-1)]),8,Rs),l("a",{href:d(c),class:"flex-1 w-3 ml-6"},u[7]||(u[7]=[l("img",{class:"w-full",src:Xe},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"摩旅",-1)]),8,Us),l("a",{href:d(h),class:"flex-1 w-3 ml-6"},u[8]||(u[8]=[l("img",{class:"w-full",src:ze},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"图集",-1)]),8,Ws),l("a",{href:d(f),class:"flex-1 w-3 ml-6"},u[9]||(u[9]=[l("img",{class:"w-full",src:Ne},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"视频",-1)]),8,Ks)])])):(y(),w("div",Vs,[l("div",js,[k(d(b),{href:d(t),class:"flex-1 w-3 hover:bg-gray-200"},{default:g(()=>u[10]||(u[10]=[l("img",{class:"w-full",src:Ce},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"新闻",-1)])),_:1},8,["href"]),k(d(b),{href:d(e),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>u[11]||(u[11]=[l("img",{class:"w-full",src:$e},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"新车",-1)])),_:1},8,["href"]),k(d(b),{href:d(o),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>u[12]||(u[12]=[l("img",{class:"w-full",src:Ae},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"测评",-1)])),_:1},8,["href"]),k(d(b),{href:d(s),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>u[13]||(u[13]=[l("img",{class:"w-full",src:_e},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"导购",-1)])),_:1},8,["href"]),k(d(b),{href:d(n),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>u[14]||(u[14]=[l("img",{class:"w-full",src:He},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"选车",-1)])),_:1},8,["href"])]),l("div",qs,[k(d(b),{href:d(i),class:"flex-1 w-3 hover:bg-gray-200"},{default:g(()=>u[15]||(u[15]=[l("img",{class:"w-full",src:Ye},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"专题",-1)])),_:1},8,["href"]),k(d(b),{href:d(a),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>u[16]||(u[16]=[l("img",{class:"w-full",src:Le},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"赛事",-1)])),_:1},8,["href"]),k(d(b),{href:d(c),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>u[17]||(u[17]=[l("img",{class:"w-full",src:Xe},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"摩旅",-1)])),_:1},8,["href"]),k(d(b),{href:d(h),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>u[18]||(u[18]=[l("img",{class:"w-full",src:ze},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"图集",-1)])),_:1},8,["href"]),k(d(b),{href:d(f),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>u[19]||(u[19]=[l("img",{class:"w-full",src:Ne},null,-1),l("span",{class:"block w-full text-center text-gray-400 text-lg font-sans leading-10"},"视频",-1)])),_:1},8,["href"])])]))}},Js={class:"flex flex-row flex-nowrap justify-start content-center items-center w-auto h-4 px-4 mt-4"}
72,Zs={key:0,class:"inline-block ml-1 text-sitetext text-xs font-sans leading-10"},Qs={key:1,class:"inline-block ml-1 text-sitetext text-xs font-sans leading-10"},tn={key:2,class:"inline-block ml-1 text-sitetext text-lg font-sans leading-10 font-semibold"},en={key:0,class:"w-full h-0.5 mt-3 bg-sitebg"},rn={__name:"TitleApp",props:{title:String,titleType:{type:Number,default:0},navUrl:String,detailUrl:String,detailName:{type:String,default:"文章详情"}},setup(r){return(t,e)=>(y(),w(F,null,[e[4]||(e[4]=l("div",{class:"w-full h-3 bg-gray-200 bg-opacity-50"},null,-1)),l("div",Js,[e[3]||(e[3]=l("span",{class:"inline-block w-1 h-5 bg-sitebg"},null,-1)),r.titleType==1?(y(),w("span",Zs,[k(d(b),{href:t.route("mobile")},{default:g(()=>[X(O(t.$page.props.appName),1)]),_:1},8,["href"]),e[0]||(e[0]=X(" > ")),k(d(b),{href:r.navUrl},{default:g(()=>[X(O(r.title),1)]),_:1},8,["href"])])):r.titleType==2?(y(),w("span",Qs,[k(d(b),{href:t.route("mobile")},{default:g(()=>[X(O(t.$page.props.appName),1)]),_:1},8,["href"]),e[1]||(e[1]=X(" > ")),k(d(b),{href:r.navUrl},{default:g(()=>[X(O(r.title),1)]),_:1},8,["href"]),e[2]||(e[2]=X(" > ")),k(d(b),{href:r.detailUrl},{default:g(()=>[X(O(r.detailName),1)]),_:1},8,["href"])])):(y(),w("span",tn,O(r.title),1))]),r.titleType?(y(),w("div",en)):T("",!0)],64))}},on="/build/assets/[email protected]",Fe="/build/assets/[email protected]",sn="/build/assets/[email protected]",Ie="/build/assets/[email protected]",nn="/build/assets/[email protected]",Re="/build/assets/menu03@3x-zlaj_xe2.png",an="/build/assets/[email protected]",Ue="/build/assets/[email protected]",ln="/build/assets/[email protected]",We="/build/assets/menu05@3x-COaDg1_s.png",cn={ref:"btMenu",class:"fixed bottom-0 w-full h-30 z-30 bg-white overflow-hidden"},hn={class:"flex flex-row flex-nowrap justify-between content-center items-center w-auto h-20 px-4 mt-4 mb-4 overflow-hidden"},un=["href"],fn=["href"],pn=["href"],dn=["href"],vn=["href"],mn={__name:"FooterApp",props:{appName:String,menuActive:{type:Number,default:0}},setup(r){const t=route("mobile"),e=route("news"),o=route("carcenter"),s=route("seminar"),n=route("newenergy");return(i,a)=>(y(),w(F,null,[a[16]||(a[16]=l("div",{class:"w-full h-30"},null,-1)),l("div",cn,[a[15]||(a[15]=l("div",{class:"w-full h-2 bg-gray-200 bg-opacity-50"},null,-1)),l("div",hn,[r.menuActive==1?(y(),E(d(b),{key:0,href:d(t),class:"flex-1 w-3 hover:bg-gray-200"},{default:g(()=>a[0]||(a[0]=[l("img",{class:"w-full h-12",src:on},null,-1),l("span",{class:"block w-full h-8 text-center text-sitetext text-lg font-sans leading-8"},"首页",-1)])),_:1},8,["href"])):T("",!0),r.menuActive==10?(y(),w("a",{key:1,href:d(t),class:"flex-1 w-3 hover:bg-gray-200"},a[1]||(a[1]=[l("img",{class:"w-full h-12",src:Fe},null,-1),l("span",{class:"block w-full h-8 text-center text-gray-400 text-lg font-sans leading-8"},"首页",-1)]),8,un)):T("",!0),r.menuActive!=1&&r.menuActive!=10?(y(),E(d(b),{key:2,href:d(t),class:"flex-1 w-3 hover:bg-gray-200"},{default:g(()=>a[2]||(a[2]=[l("img",{class:"w-full h-12",src:Fe},null,-1),l("span",{class:"block w-full h-8 text-center text-gray-400 text-lg font-sans leading-8"},"首页",-1)])),_:1},8,["href"])):T("",!0),r.menuActive==2?(y(),E(d(b),{key:3,href:d(e),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>a[3]||(a[3]=[l("img",{class:"w-full h-12",src:sn},null,-1),l("span",{class:"block w-full h-8 text-center text-sitetext text-lg font-sans leading-8"},"新闻",-1)])),_:1},8,["href"])):T("",!0),r.menuActive==10?(y(),w("a",{key:4,href:d(e),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},a[4]||(a[4]=[l("img",{class:"w-full h-12",src:Ie},null,-1),l("span",{class:"block w-full h-8 text-center text-gray-400 text-lg font-sans leading-8"},"新闻",-1)]),8,fn)):T("",!0),r.menuActive!=2&&r.menuActive!=10?(y(),E(d(b),{key:5,href:d(e),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>a[5]||(a[5]=[l("img",{class:"w-full h-12",src:Ie},null,-1),l("span",{class:"block w-full h-8 text-center text-gray-400 text-lg font-sans leading-8"},"新闻",-1)])),_:1},8,["href"])):T("",!0),r.menuActive==3?(y(),E(d(b),{key:6,href:d(o),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>a[6]||(a[6]=[l("img",{class:"w-full h-12",src:nn},null,-1),l("span",{class:"block w-full h-8 text-center text-sitetext text-lg font-sans leading-8"},"选车",-1)])),_:1},8,["href"])):T("",!0),r.menuActive==10?(y(),w("a",{key:7,href:d(o),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},a[7]||(a[7]=[l("img",{class:"w-full h-12",src:Re},null,-1),l("span",{class:"block w-full h-8 text-center text-gray-400 text-lg font-sans leading-8"},"选车",-1)]),8,pn)):T("",!0),r.menuActive!=3&&r.menuActive!=10?(y(),E(d(b),{key:8,href:d(o),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>a[8]||(a[8]=[l("img",{class:"w-full h-12",src:Re},null,-1),l("span",{class:"block w-full h-8 text-center text-gray-400 text-lg font-sans leading-8"},"选车",-1)])),_:1},8,["href"])):T("",!0),r.menuActive==4?(y(),E(d(b),{key:9,href:d(s),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>a[9]||(a[9]=[l("img",{class:"w-full h-12",src:an},null,-1),l("span",{class:"block w-full h-8 text-center text-sitetext text-lg font-sans leading-8"},"专题",-1)])),_:1},8,["href"])):T("",!0),r.menuActive==10?(y(),w("a",{key:10,href:d(s),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},a[10]||(a[10]=[l("img",{class:"w-full h-12",src:Ue},null,-1),l("span",{class:"block w-full h-8 text-center text-gray-400 text-lg font-sans leading-8"},"专题",-1)]),8,dn)):T("",!0),r.menuActive!=4&&r.menuActive!=10?(y(),E(d(b),{key:11,href:d(s),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>a[11]||(a[11]=[l("img",{class:"w-full h-12",src:Ue},null,-1),l("span",{class:"block w-full h-8 text-center text-gray-400 text-lg font-sans leading-8"},"专题",-1)])),_:1},8,["href"])):T("",!0),r.menuActive==5?(y(),E(d(b),{key:12,href:d(n),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>a[12]||(a[12]=[l("img",{class:"w-full h-12",src:ln},null,-1),l("span",{class:"block w-full h-8 text-center text-sitetext text-base font-sans leading-8"},"新能源",-1)])),_:1},8,["href"])):T("",!0),r.menuActive==10?(y(),w("a",{key:13,href:d(n),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},a[13]||(a[13]=[l("img",{class:"w-full h-12",src:We},null,-1),l("span",{class:"block w-full h-8 text-center text-gray-400 text-base font-sans leading-8"},"新能源",-1)]),8,vn)):T("",!0),r.menuActive!=5&&r.menuActive!=10?(y(),E(d(b),{key:14,href:d(n),class:"flex-1 w-3 ml-6 hover:bg-gray-200"},{default:g(()=>a[14]||(a[14]=[l("img",{class:"w-full h-12",src:We},null,-1),l("span",{class:"block w-full h-8 text-center text-gray-400 text-base font-sans leading-8"},"新能源",-1)])),_:1},8,["href"])):T("",!0)])],512)],64))}},yn={class:"fixed top-0 left-0 z-10 w-full h-full bg-white"},gn={key:0},wn={class:"flex flex-row flex-nowrap w-auto px-4"},kn={class:"flex-1 w-auto h-9 mt-4 bg-gray-50 rounded-3xl relative"},bn={key:0},Tn={class:"w-auto px-4"},Sn={class:"w-full"},xn={key:0,class:"w-full mt-4"},Pn=["href"],En={class:"flex-none w-25 h-20 overflow-hidden"},Dn=["src"],Bn={class:"flex-1 w-auto h-20 ml-4 overflow-hidden"},On={class:"w-full h-14 text-sitetext text-base font-sans leading-7 overflow-hidden"},Mn={class:"w-full h-5 mt-1 text-gray-400 text-xs font-sans leading-5 overflow-hidden"},Cn={class:"inline-block"},$n={class:"inline-block ml-4"},An="bsSearch",_n={__name:"SearchBar",setup(r){const t=S(null),e=S(null),o=S(null),s=S(0),n=S(null),i=async()=>
72{if(t.value!=null&&t.value!=""){let u=await c(t.value,0);o.value=u.adTops,s.value=u.dataNum,n.value=u.newsList}},a=async u=>{let v=await c(t.value,u.value);o.value=v.adTops,s.value=v.dataNum,n.value=v.newsList},c=async(u,v)=>axios({method:"post",url:"/api/search",data:{keyword:u,dataNum:v}}).then(function(x){return x.data}).catch(function(x){return!1}),h=S(!0),f=S(!1),p=()=>{Xt.hide()};return te(()=>{f.value=!0,yr(()=>{e.value.focus()}),window.addEventListener("keydown",u=>{u.key==="Escape"&&Xt.hide()})}),(u,v)=>(y(),w(F,null,[l("div",yn,[f.value?(y(),w("div",gn,[k(bs,{bsWrapper:An,isShowPullUp:h.value,dataNum:s.value,onLoadMore:a,class:"h-screen pb-36"},{default:g(()=>[l("div",wn,[l("div",kn,[v[1]||(v[1]=l("img",{class:"absolute left-3 top-2 w-5 h-5",src:Ss},null,-1)),l("div",{onClick:p,class:"absolute right-2 top-1 w-14 h-7 pt-1.5 text-center font-sans text-xs text-sitetext bg-opacity-50 rounded-2xl bg-white ring-2 ring-sitebg"}," 取 消"),U(l("input",{ref_key:"searchBar",ref:e,"onUpdate:modelValue":v[0]||(v[0]=m=>t.value=m),onInput:i,class:"w-full h-full pl-10 pr-20 bg-white ring-2 ring-sitebg placeholder-gray-400 bg-opacity-50 rounded-3xl block focus:outline-none",placeholder:"请输入"},null,544),[[Ke,t.value,void 0,{trim:!0}]])])]),s.value?(y(),w("div",bn,[k(Ms,{adInfos:o.value},null,8,["adInfos"]),k(Gs,{typeNum:"1"}),k(rn,{title:"搜索"}),l("div",Tn,[(y(!0),w(F,null,at(n.value,m=>(y(),w("div",Sn,[m.type==="advert"?(y(),w("div",xn,[k(As,{adInfos:m.detail},null,8,["adInfos"])])):T("",!0),m.type==="news"?(y(),w("a",{key:1,href:m.detail.url,class:"flex flex-row flex-nowrap w-full mt-4"},[l("div",En,[l("img",{class:"w-24 h-20",src:m.detail.img}
72,null,8,Dn)]),l("div",Bn,[l("div",On,O(m.detail.title),1),l("div",Mn,[l("span",Cn,O(m.detail.timeStr),1),l("span",$n,"阅读 "+O(m.detail.viewNums),1)])])],8,Pn)):T("",!0)]))),256))])])):T("",!0)]),_:1},8,["isShowPullUp","dataNum"])])):T("",!0)]),k(mn,{menuActive:"10"})],64))}};class Hn{constructor(){this.container=document.createElement("div")}show(){let t=gr(_n);ne(t,this.container),document.body.appendChild(this.container)}hide(){ne(null,this.container),document.body.removeChild(this.container)}}let Xt=new Hn;const Yn={class:"flex flex-row flex-nowrap w-auto px-4"},Ln={class:"flex-none w-24 h-8 mt-4"},Xn={class:"flex-1 w-auto h-9 mt-4 ml-4 bg-gray-50 rounded-3xl relative"},Un={__name:"SearchApp",setup(r){const t=()=>{Xt.show()};return te(()=>{window.addEventListener("keydown",e=>{e.metaKey&&e.key==="k"&&Xt.show()})}),(e,o)=>(y(),w("div",Yn,[l("div",Ln,[k(d(b),{href:e.route("mobile")},{default:g(()=>o[3]||(o[3]=[l("img",{class:"w-24 h-8",src:wr},null,-1)])),_:1},8,["href"])]),l("div",Xn,[o[4]||(o[4]=l("img",{class:"absolute left-3 top-2 w-5 h-5",src:Ts},null,-1)),U(l("input",{onClick:t,"onUpdate:modelValue":o[0]||(o[0]=s=>e.inputVal=s),onBlur:o[1]||(o[1]=(...s)=>e.blurInput&&e.blurInput(...s)),onInput:o[2]||(o[2]=(...s)=>e.changeValue&&e.changeValue(...s)),class:"w-full h-full pl-10 pr-20 bg-gray-50 placeholder-gray-400 bg-opacity-50 rounded-3xl block focus:outline-none",placeholder:"请输入"},null,544),[[Ke,e.inputVal]])])]))}};export{rn as _,Ms as a,As as b,Un as c,Gs as d,mn as e};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.