1 |
- !function(){function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}System.register(["./index-legacy.59567947.js"],(function(t){"use strict";var n,r,o,i,a,s,c,f,l,u,p,d,m,v,h,y,b,g,w,x,O,S,j;return{setters:[function(e){n=e.S,r=e.C,o=e.m,i=e.n,a=e.aT,s=e.w,c=e.t,f=e.O,l=e.d,u=e.W,p=e.a_,d=e.a7,m=e.aZ,v=e.k,h=e.P,y=e.E,b=e.av,g=e.F,w=e.X,x=e.N,O=e.a1,S=e.aJ,j=e.y}],execute:function(){function k(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function E(e){return e instanceof k(e).Element||e instanceof Element}function A(e){return e instanceof k(e).HTMLElement||e instanceof HTMLElement}function P(e){return"undefined"!=typeof ShadowRoot&&(e instanceof k(e).ShadowRoot||e instanceof ShadowRoot)}var C=Math.round;function D(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function M(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&A(e)&&(o=e.offsetWidth>0&&C(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&C(r.height)/e.offsetHeight||1);var a=(E(e)?k(e):window).visualViewport,s=!!/^((?!chrome|android).)*safari/i.test(D())&&n,c=(r.left+(s&&a?a.offsetLeft:0))/o,f=(r.top+(s&&a?a.offsetTop:0))/i,l=r.width/o,u=r.height/i;return{width:l,height:u,top:f,right:c+l,bottom:f+u,left:c,x:c,y:f}}function q(e){var t=k(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function L(e){return e?(e.nodeName||"").toLowerCase():null}function T(e){return((E(e)?e.ownerDocument:e.document)||window.document).documentElement}function R(e){return k(e).getComputedStyle(e)}function W(e){var t=R(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function I(e,t,n){void 0===n&&(n=!1);var r,o,i=A(t),a=A(t)&&function(e){var t=e.getBoundingClientRect(),n=C(t.width)/e.offsetWidth||1,r=C(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=T(t),c=M(e,a,n),f={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==L(t)||W(s))&&(f=(r=t)!==k(r)&&A(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:q(r)),A(t)?((l=M(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=function(e){return M(T(e)).left+q(e).scrollLeft}(s))),{x:c.left+f.scrollLeft-l.x,y:c.top+f.scrollTop-l.y,width:c.width,height:c.height}}function H(e){return"html"===L(e)?e:e.assignedSlot||e.parentNode||(P(e)?e.host:null)||T(e)}function V(e){return["html","body","#document"].indexOf(L(e))>=0?e.ownerDocument.body:A(e)&&W(e)?e:V(H(e))}function B(e,t){var n;void 0===t&&(t=[]);var r=V(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=k(r),a=o?[i].concat(i.visualViewport||[],W(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(B(H(a)))}function F(e){return["table","td","th"].indexOf(L(e))>=0}function N(e){return A(e)&&"fixed"!==R(e).position?e.offsetParent:null}function U(e){for(var t=k(e),n=N(e);n&&F(n)&&"static"===R(n).position;)n=N(n);return n&&("html"===L(n)||"body"===L(n)&&"static"===R(n).position)?t:n||function(e){var t=/firefox/i.test(D());if(/Trident/i.test(D())&&A(e)&&"fixed"===R(e).position)return null;var n=H(e);for(P(n)&&(n=n.host);A(n)&&["html","body"].indexOf(L(n))<0;){var r=R(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var z="top",X="bottom",J="right",Y="left",Z="auto",$="start",_="end",G=[].concat([z,X,J,Y],[Z]).reduce((function(e,t){return e.concat([t,t+"-"+$,t+"-"+_])}),[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Q(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function ee(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var te='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ne=["name","enabled","phase","fn","effect","requires","options"];function re(e){return e.split("-")[0]}function oe(e){return e.split("-")[1]}var ie="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ae={placement:"bottom",modifiers:[],strategy:"absolute"};function se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ce(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ae:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ae,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],f=!1,l={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;u(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:E(e)?B(e):e.contextElement?B(e.contextElement):[],popper:B(t)};var a=function(e){var t=Q(e);return K.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));(s.orderedModifiers=a.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){[].concat(Object.keys(t),ne).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(ee(te,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(ee(te,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":K.indexOf(t.phase)<0&&console.error(ee(te,t.name,'"phase"',"either "+K.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(ee(te,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(ee(te,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(ee(te,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(ee(te,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+ne.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(ee('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((f=[].concat(a,s.options.modifiers),p=function(e){return e.name},d=new Set,f.filter((function(e){var t=p(e);if(!d.has(t))return d.add(t),!0})))),re(s.options.placement)===Z)&&(s.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var f,p,d,m=R(t);return[m.marginTop,m.marginRight,m.marginBottom,m.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:l,options:r}),a=function(){};c.push(i||a)}})),l.update()},forceUpdate:function(){if(!f){var e=s.elements,t=e.reference,n=e.popper;if(se(t,n)){var r,o,i,a;s.rects={reference:I(t,U(n),"fixed"===s.options.strategy),popper:(r=n,o=M(r),i=r.offsetWidth,a=r.offsetHeight,Math.abs(o.width-i)<=1&&(i=o.width),Math.abs(o.height-a)<=1&&(a=o.height),{x:r.offsetLeft,y:r.offsetTop,width:i,height:a})},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var c=0,u=0;u<s.orderedModifiers.length;u++){if((c+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var p=s.orderedModifiers[u],d=p.fn,m=p.options,v=void 0===m?{}:m,h=p.name;"function"==typeof d&&(s=d({state:s,options:v,name:h,instance:l})||s)}else s.reset=!1,u=-1}}else console.error(ie)}},update:(o=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){u(),f=!0}};if(!se(e,t))return console.error(ie),l;function u(){c.forEach((function(e){return e()})),c=[]}return l.setOptions(n).then((function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var fe={passive:!0};var le={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=function(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?re(o):null,a=o?oe(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case z:t={x:s,y:n.y-r.height};break;case X:t={x:s,y:n.y+n.height};break;case J:t={x:n.x+n.width,y:c};break;case Y:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var f=i?function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}(i):null;if(null!=f){var l="y"===f?"height":"width";switch(a){case $:t[f]=t[f]-(n[l]/2-r[l]/2);break;case _:t[f]=t[f]+(n[l]/2-r[l]/2)}}return t}({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,u=e.isFixed,p=a.x,d=void 0===p?0:p,m=a.y,v=void 0===m?0:m,h="function"==typeof l?l({x:d,y:v}):{x:d,y:v};d=h.x,v=h.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=Y,w=z,x=window;if(f){var O=U(n),S="clientHeight",j="clientWidth";if(O===k(n)&&"static"!==R(O=T(n)).position&&"absolute"===s&&(S="scrollHeight",j="scrollWidth"),o===z||(o===Y||o===J)&&i===_)w=X,v-=(u&&O===x&&x.visualViewport?x.visualViewport.height:O[S])-r.height,v*=c?1:-1;if(o===Y||(o===z||o===X)&&i===_)g=J,d-=(u&&O===x&&x.visualViewport?x.visualViewport.width:O[j])-r.width,d*=c?1:-1}var E,A=Object.assign({position:s},f&&ue),P=!0===l?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:C(t*r)/r||0,y:C(n*r)/r||0}}({x:d,y:v}):{x:d,y:v};return d=P.x,v=P.y,c?Object.assign({},A,((E={})[w]=b?"0":"",E[g]=y?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+d+"px, "+v+"px)":"translate3d("+d+"px, "+v+"px, 0)",E)):Object.assign({},A,((t={})[w]=b?v+"px":"",t[g]=y?d+"px":"",t.transform="",t))}var de={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];A(o)&&L(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});A(r)&&L(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},me=ce({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=k(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach((function(e){e.addEventListener("scroll",n.update,fe)})),s&&c.addEventListener("resize",n.update,fe),function(){i&&f.forEach((function(e){e.removeEventListener("scroll",n.update,fe)})),s&&c.removeEventListener("resize",n.update,fe)}},data:{}},le,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,f=R(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return f.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var l={placement:re(t.placement),variation:oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,pe(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,pe(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},de]});var ve={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=G.reduce((function(e,n){return e[n]=function(e,t,n){var r=re(e),o=[Y,z].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Y,J].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,f=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}},he=e(o("popover"),2),ye=he[0],be=he[1],ge=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],we={show:Boolean,theme:i("light"),overlay:Boolean,actions:a(),trigger:i("click"),duration:s,showArrow:c,placement:i("bottom"),iconPrefix:String,overlayClass:f,overlayStyle:Object,closeOnClickAction:c,closeOnClickOverlay:c,closeOnClickOutside:c,offset:{type:Array,default:function(){return[0,8]}},teleport:{type:[String,Object],default:"body"}},xe=l({name:ye,props:we,emits:["select","touchstart","update:show"],setup:function(e,t){var o,i,a,s,c=t.emit,f=t.slots,l=t.attrs,j=n(),k=n(),E=n(),A=(a=function(e){return c("update:show",e)},s=n((i=function(){return e.show})()),r(i,(function(e){e!==s.value&&(s.value=e)})),r(s,(function(e){e!==i()&&a(e)})),s),P=function(){return{placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},x({},ve,{options:{offset:e.offset}})]}},C=function(){w((function(){A.value&&(o?o.setOptions(P()):o=k.value&&E.value?me(k.value,E.value.popupRef.value,P()):null)}))},D=function(e){A.value=e},M=function(){"click"===e.trigger&&(A.value=!A.value)},q=function(t,n){return f.action?f.action({action:t,index:n}):[t.icon&&v(O,{name:t.icon,classPrefix:e.iconPrefix,class:be("action-icon")},null),v("div",{class:[be("action-text"),S]},[t.text])]},L=function(t,n){var r=t.icon,o=t.color,i=t.disabled,a=t.className;return v("div",{role:"menuitem",class:[be("action",{disabled:i,"with-icon":r}),a],style:{color:o},tabindex:i?void 0:0,"aria-disabled":i||void 0,onClick:function(){return function(t,n){t.disabled||(c("select",t,n),e.closeOnClickAction&&(A.value=!1))}(t,n)}},[q(t,n)])};return u((function(){C(),p((function(){var e;j.value=null==(e=E.value)?void 0:e.popupRef.value}))})),d((function(){o&&(o.destroy(),o=null)})),r((function(){return[A.value,e.offset,e.placement]}),C),m([k,j],(function(){A.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(A.value=!1)}),{eventName:"touchstart"}),function(){var t;return v(g,null,[v("span",{ref:k,class:be("wrapper"),onClick:M},[null==(t=f.reference)?void 0:t.call(f)]),v(h,y({ref:E,show:A.value,class:be([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":D},l,b(e,ge)),{default:function(){return[e.showArrow&&v("div",{class:be("arrow")},null),v("div",{role:"menu",class:be("content")},[f.default?f.default():e.actions.map(L)])]}})])}}});t("P",j(xe))}}}))}();
|