index-legacy-ba19bfa0.js 17 KB

1
  1. System.register(["./index-legacy-a314c7dd.js"],(function(e,t){"use strict";var n,o,r,i,a,s,c,f,l,u,p,d,m,v,h,y,b,g,w,x,O,S,j,k,E;return{setters:[e=>{n=e.r,o=e.w,r=e.c,i=e.d,a=e.y,s=e.ay,c=e.ar,f=e.f,l=e.a,u=e.Q,p=e.h,d=e.ae,m=e.F,v=e.m,h=e.ab,y=e.n,b=e.t,g=e.a5,w=e.z,x=e.aG,O=e.aH,S=e.ac,j=e.I,k=e.aI,E=e.k}],execute:function(){function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function P(e){return e instanceof t(e).Element||e instanceof Element}function C(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function D(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}var L=Math.round;function A(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function q(e,n,o){void 0===n&&(n=!1),void 0===o&&(o=!1);var r=e.getBoundingClientRect(),i=1,a=1;n&&C(e)&&(i=e.offsetWidth>0&&L(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&L(r.height)/e.offsetHeight||1);var s=(P(e)?t(e):window).visualViewport,c=!!/^((?!chrome|android).)*safari/i.test(A())&&o,f=(r.left+(c&&s?s.offsetLeft:0))/i,l=(r.top+(c&&s?s.offsetTop:0))/a,u=r.width/i,p=r.height/a;return{width:u,height:p,top:l,right:f+u,bottom:l+p,left:f,x:f,y:l}}function M(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function R(e){return e?(e.nodeName||"").toLowerCase():null}function T(e){return((P(e)?e.ownerDocument:e.document)||window.document).documentElement}function W(e){return t(e).getComputedStyle(e)}function H(e){var t=W(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function I(e,n,o){void 0===o&&(o=!1);var r,i,a=C(n),s=C(n)&&function(e){var t=e.getBoundingClientRect(),n=L(t.width)/e.offsetWidth||1,o=L(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(n),c=T(n),f=q(e,s,o),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!o)&&(("body"!==R(n)||H(c))&&(l=(r=n)!==t(r)&&C(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:M(r)),C(n)?((u=q(n,!0)).x+=n.clientLeft,u.y+=n.clientTop):c&&(u.x=function(e){return q(T(e)).left+M(e).scrollLeft}(c))),{x:f.left+l.scrollLeft-u.x,y:f.top+l.scrollTop-u.y,width:f.width,height:f.height}}function V(e){return"html"===R(e)?e:e.assignedSlot||e.parentNode||(D(e)?e.host:null)||T(e)}function z(e){return["html","body","#document"].indexOf(R(e))>=0?e.ownerDocument.body:C(e)&&H(e)?e:z(V(e))}function B(e,n){var o;void 0===n&&(n=[]);var r=z(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=t(r),s=i?[a].concat(a.visualViewport||[],H(r)?r:[]):r,c=n.concat(s);return i?c:c.concat(B(V(s)))}function F(e){return["table","td","th"].indexOf(R(e))>=0}function N(e){return C(e)&&"fixed"!==W(e).position?e.offsetParent:null}function U(e){for(var n=t(e),o=N(e);o&&F(o)&&"static"===W(o).position;)o=N(o);return o&&("html"===R(o)||"body"===R(o)&&"static"===W(o).position)?n:o||function(e){var t=/firefox/i.test(A());if(/Trident/i.test(A())&&C(e)&&"fixed"===W(e).position)return null;var n=V(e);for(D(n)&&(n=n.host);C(n)&&["html","body"].indexOf(R(n))<0;){var o=W(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||n}var X="top",Y="bottom",G="right",J="left",Q="auto",K="start",Z="end",$=[].concat([X,Y,G,J],[Q]).reduce((function(e,t){return e.concat([t,t+"-"+K,t+"-"+Z])}),[]),_=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ee(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var ne='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',oe='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',re=["name","enabled","phase","fn","effect","requires","options"];function ie(e){return e.split("-")[0]}function ae(e){return e.split("-")[1]}var se="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ce={placement:"bottom",modifiers:[],strategy:"absolute"};function fe(){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 le(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?ce:r;return function(e,t,n){void 0===n&&(n=i);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ce,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],f=!1,l={state:s,setOptions:function(n){var r="function"==typeof n?n(s.options):n;u(),s.options=Object.assign({},i,s.options,r),s.scrollParents={reference:P(e)?B(e):e.contextElement?B(e.contextElement):[],popper:B(t)};var a=function(e){var t=ee(e);return _.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(o,s.options.modifiers)));s.orderedModifiers=a.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){[].concat(Object.keys(t),re).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(te(ne,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(te(ne,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":_.indexOf(t.phase)<0&&console.error(te(ne,t.name,'"phase"',"either "+_.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(te(ne,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(te(ne,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(te(ne,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(te(ne,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 '+re.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(te(oe,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})))),ie(s.options.placement)===Q&&(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=W(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,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:s,name:t,instance:l,options:o}),a=function(){};c.push(i||a)}})),l.update()},forceUpdate:function(){if(!f){var e=s.elements,t=e.reference,n=e.popper;if(fe(t,n)){var o,r,i,a;s.rects={reference:I(t,U(n),"fixed"===s.options.strategy),popper:(o=n,r=q(o),i=o.offsetWidth,a=o.offsetHeight,Math.abs(r.width-i)<=1&&(i=r.width),Math.abs(r.height-a)<=1&&(a=r.height),{x:o.offsetLeft,y:o.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(se)}},update:(r=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(r())}))}))),a}),destroy:function(){u(),f=!0}};if(!fe(e,t))return console.error(se),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 ue={passive:!0},pe={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,o=e.element,r=e.placement,i=r?ie(r):null,a=r?ae(r):null,s=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2;switch(i){case X:t={x:s,y:n.y-o.height};break;case Y:t={x:s,y:n.y+n.height};break;case G:t={x:n.x+n.width,y:c};break;case J:t={x:n.x-o.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 K:t[f]=t[f]-(n[l]/2-o[l]/2);break;case Z:t[f]=t[f]+(n[l]/2-o[l]/2)}}return t}({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},de={top:"auto",right:"auto",bottom:"auto",left:"auto"};function me(e){var n,o=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,c=e.position,f=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,p=e.isFixed,d=s.x,m=void 0===d?0:d,v=s.y,h=void 0===v?0:v,y="function"==typeof u?u({x:m,y:h}):{x:m,y:h};m=y.x,h=y.y;var b=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),w=J,x=X,O=window;if(l){var S=U(o),j="clientHeight",k="clientWidth";S===t(o)&&"static"!==W(S=T(o)).position&&"absolute"===c&&(j="scrollHeight",k="scrollWidth"),(i===X||(i===J||i===G)&&a===Z)&&(x=Y,h-=(p&&S===O&&O.visualViewport?O.visualViewport.height:S[j])-r.height,h*=f?1:-1),i!==J&&(i!==X&&i!==Y||a!==Z)||(w=G,m-=(p&&S===O&&O.visualViewport?O.visualViewport.width:S[k])-r.width,m*=f?1:-1)}var E,P=Object.assign({position:c},l&&de),C=!0===u?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:L(t*o)/o||0,y:L(n*o)/o||0}}({x:m,y:h}):{x:m,y:h};return m=C.x,h=C.y,f?Object.assign({},P,((E={})[x]=g?"0":"",E[w]=b?"0":"",E.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",E)):Object.assign({},P,((n={})[x]=g?h+"px":"",n[w]=b?m+"px":"",n.transform="",n))}var ve={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]||{},o=t.attributes[e]||{},r=t.elements[e];C(r)&&R(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.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 o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});C(o)&&R(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]},he=le({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,o=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,s=r.resize,c=void 0===s||s,f=t(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",o.update,ue)})),c&&f.addEventListener("resize",o.update,ue),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",o.update,ue)})),c&&f.removeEventListener("resize",o.update,ue)}},data:{}},pe,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,f=W(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:ie(t.placement),variation:ae(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,me(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,me(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:{}},ve]}),ye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,a=$.reduce((function(e,n){return e[n]=function(e,t,n){var o=ie(e),r=[J,X].indexOf(o)>=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)*r,[J,G].indexOf(o)>=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[o]=a}};const[be,ge]=r("popover"),we=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],xe={show:Boolean,theme:v("light"),overlay:Boolean,actions:h(),actionsDirection:v("vertical"),trigger:v("click"),duration:y,showArrow:b,placement:v("bottom"),iconPrefix:String,overlayClass:g,overlayStyle:Object,closeOnClickAction:b,closeOnClickOverlay:b,closeOnClickOutside:b,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Oe=i({name:be,props:xe,emits:["select","touchstart","update:show"],setup(e,{emit:t,slots:r,attrs:i}){let v;const h=n(),y=n(),b=n(),g=((e,t)=>{const r=n(e());return o(e,(e=>{e!==r.value&&(r.value=e)})),o(r,(n=>{n!==e()&&t(n)})),r})((()=>e.show),(e=>t("update:show",e))),E=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},S({},ye,{options:{offset:e.offset}})]}),P=()=>{w((()=>{g.value&&(v?v.setOptions(E()):(v=y.value&&b.value?he(y.value,b.value.popupRef.value,E()):null,x&&(window.addEventListener("animationend",P),window.addEventListener("transitionend",P))))}))},C=e=>{g.value=e},D=()=>{"click"===e.trigger&&(g.value=!g.value)},L=(t,n)=>r.action?r.action({action:t,index:n}):[t.icon&&l(j,{name:t.icon,classPrefix:e.iconPrefix,class:ge("action-icon")},null),l("div",{class:[ge("action-text"),{[k]:"vertical"===e.actionsDirection}]},[t.text])],A=(n,o)=>{const{icon:r,color:i,disabled:a,className:s}=n;return l("div",{role:"menuitem",class:[ge("action",{disabled:a,"with-icon":r}),{[O]:"horizontal"===e.actionsDirection},s],style:{color:i},tabindex:a?void 0:0,"aria-disabled":a||void 0,onClick:()=>((n,o)=>{n.disabled||(t("select",n,o),e.closeOnClickAction&&(g.value=!1))})(n,o)},[L(n,o)])};return a((()=>{P(),s((()=>{var e;h.value=null==(e=b.value)?void 0:e.popupRef.value}))})),c((()=>{v&&(x&&(window.removeEventListener("animationend",P),window.removeEventListener("transitionend",P)),v.destroy(),v=null)})),o((()=>[g.value,e.offset,e.placement]),P),f([y,h],(()=>{g.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(g.value=!1)}),{eventName:"touchstart"}),()=>{var t;return l(m,null,[l("span",{ref:y,class:ge("wrapper"),onClick:D},[null==(t=r.reference)?void 0:t.call(r)]),l(u,p({ref:b,show:g.value,class:ge([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":C},i,d(e,we)),{default:()=>[e.showArrow&&l("div",{class:ge("arrow")},null),l("div",{role:"menu",class:ge("content",e.actionsDirection)},[r.default?r.default():e.actions.map(A)])]})])}}});e("P",E(Oe))}}}));