antelope-ui
Version:
A Component Library for Vue.js.
1 lines • 164 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.antelope=e():t.antelope=e()}(window,(function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(i,n,function(e){return t[e]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=44)}([function(t,e,r){"use strict";function i(t,e,r,i,n,o,s,a){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=u):n&&(u=a?function(){n.call(this,this.$root.$options.shadowRoot)}:n),u)if(l.functional){l._injectStyles=u;var f=l.render;l.render=function(t,e){return u.call(e),f(t,e)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:t,options:l}}r.d(e,"a",(function(){return i}))},function(t,e,r){"use strict";e.a={props:{status:{type:[String,Number,Boolean],default:1}}}},function(t,e,r){"use strict";var i=r(9),n=r(5);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a={};e.a={props:{width:{type:String},height:{type:String},backgroundColor:{type:String},backgroundImage:{type:String}},data:function(){return{mixins_load_promise_reject:null,mixins_box_background_image:{src:"",width:0,height:0}}},computed:{mixins_box_style:function(){var t=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({position:"relative"},Object(n.a)(this,["width","height","backgroundColor","backgroundImage"]));return this.mixins_box_background_image.src&&(t.backgroundImage="url(".concat(this.mixins_box_background_image.src,")"),t.backgroundSize="100% 100%",i.a.imageSizeAutoLoader&&(t.width||(t.width=this._getBackgroundImageParams("width")),t.height||(t.height=this._getBackgroundImageParams("height")))),t}},watch:{backgroundImage:function(){this._setBackgroundImage()},status:function(){this._setBackgroundImage()}},mounted:function(){this._setBackgroundImage()},methods:{_getBackgroundImagePath:function(t){var e,r=this.status;switch(this.status){case 1:case!0:r="";break;case 0:case!1:r="disabled"}if(r){var i=t.split(".");i.splice(i.length-1,0,r),t=i.join(".")}return this.$route&&this.$route.meta&&this.$route.meta.aImagesMap&&(e=this.$route.meta.aImagesMap[t]),e||t},_getBackgroundImageParams:function(t){return this.mixins_box_background_image[t]*i.a.imageTimes+i.a.imageSizeUnit},_setBackgroundImage:function(){var t=this;this.mixins_load_promise_reject&&(this.mixins_load_promise_reject(),this.mixins_load_promise_reject=null);var e=Object(n.a)(this,"backgroundImage");if(e){var r=a[e];r?this.mixins_box_background_image={src:r.src,width:r.width,height:r.height}:new Promise((function(r,i){t.mixins_load_promise_reject=i;var n=new Image;n.src=t._getBackgroundImagePath(e),n.onload=function(){r(n)},a[n.src]=n})).then((function(e){t.mixins_box_background_image={src:e.src,width:e.width,height:e.height}})).catch((function(){}))}else this.mixins_box_background_image={src:"",width:0,height:0}}}}},function(t,e,r){"use strict";var i=r(5);function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.a={props:{position:{type:String},zIndex:{type:String},top:{type:String},bottom:{type:String},left:{type:String},right:{type:String},center:{type:String}},computed:{mixins_position_style:function(){var t=o({},this.mixins_box_style);return void 0!==this.position&&(t=o({},t,{},Object(i.a)(this,["zIndex","top","bottom","left","right"]),{position:this.position||"absolute"}),void 0!==this.top&&void 0!==this.bottom&&delete t.height,void 0!==this.left&&void 0!==this.right&&delete t.width,void 0!==this.center&&("x"===this.center?(t.left=t.left||"50%",t.transform="translateX(-50%)"):"y"===this.center?(t.top=t.top||"50%",t.transform="translateY(-50%)"):(t.left=t.left||"50%",t.top=t.top||"50%",t.transform="translate(-50%, -50%)"))),t}}}},function(t,e,r){"use strict";e.a={data:function(){return{mixins_touchstart:function(){},mixins_touchmove:function(){},mixins_touchend:function(){},mixins_is_touch:!1,mixins_is_tap:!1}},mounted:function(){var t=this;this.mixins_touchstart=function(){t.mixins_is_touch=!0,t.mixins_is_tap=!0},this.mixins_touchmove=function(){t.mixins_is_tap=!1},this.mixins_touchend=function(){t.mixins_is_tap&&t.status&&t.$emit("a-tap"),t.mixins_is_touch=!1,t.mixins_is_tap=!1},this.$el.addEventListener("touchstart",this.mixins_touchstart),this.$el.addEventListener("touchmove",this.mixins_touchmove),this.$el.addEventListener("touchend",this.mixins_touchend)},destroyed:function(){this.$el.removeEventListener("touchstart",this.mixins_touchstart),this.$el.removeEventListener("touchmove",this.mixins_touchmove),this.$el.removeEventListener("touchend",this.mixins_touchend)}}},function(t,e,r){"use strict";function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[].concat(e).reduce((function(e,r){return void 0!==t[r]&&(e[r]=t[r]),e}),{});return"string"==typeof e?r[e]:r}r.d(e,"a",(function(){return i}))},function(t,e,r){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("div",{style:this.mixins_position_style},[this._t("default")],2)};i._withStripped=!0;var n=r(1),o=r(2),s=r(3),a=r(4),u={mixins:[n.a,o.a,s.a,a.a],props:{position:{type:String,default:"absolute"}}},l=r(0),f=Object(l.a)(u,i,[],!1,null,null,null);f.options.__file="src/components/basic/Position.vue";e.a=f.exports},function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var n=(s=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(u," */")),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[r].concat(o).concat([n]).join("\n")}var s,a,u;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,i){"string"==typeof t&&(t=[[null,t,""]]);var n={};if(i)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(n[s]=!0)}for(var a=0;a<t.length;a++){var u=[].concat(t[a]);i&&n[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),e.push(u))}},e}},function(t,e,r){"use strict";function i(t,e){for(var r=[],i={},n=0;n<e.length;n++){var o=e[n],s=o[0],a={id:t+":"+n,css:o[1],media:o[2],sourceMap:o[3]};i[s]?i[s].parts.push(a):r.push(i[s]={id:s,parts:[a]})}return r}r.r(e),r.d(e,"default",(function(){return d}));var n="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=n&&(document.head||document.getElementsByTagName("head")[0]),a=null,u=0,l=!1,f=function(){},c=null,h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function d(t,e,r,n){l=r,c=n||{};var s=i(t,e);return p(s),function(e){for(var r=[],n=0;n<s.length;n++){var a=s[n];(u=o[a.id]).refs--,r.push(u)}e?p(s=i(t,e)):s=[];for(n=0;n<r.length;n++){var u;if(0===(u=r[n]).refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete o[u.id]}}}}function p(t){for(var e=0;e<t.length;e++){var r=t[e],i=o[r.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](r.parts[n]);for(;n<r.parts.length;n++)i.parts.push(y(r.parts[n]));i.parts.length>r.parts.length&&(i.parts.length=r.parts.length)}else{var s=[];for(n=0;n<r.parts.length;n++)s.push(y(r.parts[n]));o[r.id]={id:r.id,refs:1,parts:s}}}}function m(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function y(t){var e,r,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(l)return f;i.parentNode.removeChild(i)}if(h){var n=u++;i=a||(a=m()),e=g.bind(null,i,n,!1),r=g.bind(null,i,n,!0)}else i=m(),e=_.bind(null,i),r=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else r()}}var v,b=(v=[],function(t,e){return v[t]=e,v.filter(Boolean).join("\n")});function g(t,e,r,i){var n=r?"":i.css;if(t.styleSheet)t.styleSheet.cssText=b(e,n);else{var o=document.createTextNode(n),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function _(t,e){var r=e.css,i=e.media,n=e.sourceMap;if(i&&t.setAttribute("media",i),c.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),n&&(r+="\n/*# sourceURL="+n.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},function(t,e,r){"use strict";e.a={imageSizeAutoLoader:!1,imageSizeUnit:"px",imageTimes:1}},function(t,e,r){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("div",{style:this.mixins_position_style},[this._t("default")],2)};i._withStripped=!0;var n=r(1),o=r(2),s=r(3),a=r(4),u={mixins:[n.a,o.a,s.a,a.a]},l=r(0),f=Object(l.a)(u,i,[],!1,null,null,null);f.options.__file="src/components/basic/Section.vue";e.a=f.exports},function(t,e,r){var i=r(31);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(8).default)("b03abb9a",i,!1,{})},function(t,e,r){var i=r(33);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(8).default)("5487152e",i,!1,{})},function(t,e,r){var i=r(35);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(8).default)("34055b56",i,!1,{})},function(t,e,r){var i=r(37);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(8).default)("9cf0da8c",i,!1,{})},function(t,e,r){var i=r(39);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(8).default)("c6d0043e",i,!1,{})},function(t,e,r){var i=r(41);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(8).default)("0029711c",i,!1,{})},function(t,e,r){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("a-section",this._g(this._b({staticClass:"a-sections"},"a-section",this.$attrs,!1),this.$listeners),[this._t("default")],2)};i._withStripped=!0;var n={components:{ASection:r(10).a}},o=(r(30),r(0)),s=Object(o.a)(n,i,[],!1,null,null,null);s.options.__file="src/components/basic/Sections.vue";e.a=s.exports},function(t,e,r){"use strict";var i=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{style:this.listStyle},[e("div",{style:this.iStyle},[this._t("default")],2)])};i._withStripped=!0;var n=r(1),o=r(2),s=r(3),a=r(4);function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={mixins:[n.a,o.a,s.a,a.a],props:{direction:{type:String,default:"y"}},computed:{listStyle:function(){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({overflow:"hidden"},this.mixins_position_style)},iStyle:function(){var t,e=this.direction;return l(t={height:"100%",width:"100%",boxSizing:"content-box"},"padding-".concat("y"===e?"right":"bottom"),"0.2rem"),l(t,"overflow-".concat("y"===e?"x":"y"),"hidden"),l(t,"overflow-".concat(e),"scroll"),t}}},c=r(0),h=Object(c.a)(f,i,[],!1,null,null,null);h.options.__file="src/components/basic/List.vue";e.a=h.exports},function(t,e,r){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"a-fps9",style:this.fps9Style})};i._withStripped=!0;var n=r(1),o=r(2),s=r(3),a=r(4);function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={mixins:[n.a,o.a,s.a,a.a],computed:{fps9Style:function(){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},this.mixins_position_style,{backgroundSize:"300% 300%"})}}},c=(r(32),r(0)),h=Object(c.a)(f,i,[],!1,null,null,null);h.options.__file="src/components/basic/Fps9.vue";e.a=h.exports},function(t,e,r){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("div",{style:this.spriteStyle},[this._t("default")],2)};i._withStripped=!0;var n=r(1),o=r(2),s=r(3),a=r(4);function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={mixins:[n.a,o.a,s.a,a.a],props:{size:{type:String,default:""},x:{type:String,default:""},y:{type:String,default:""}},computed:{spriteStyle:function(){var t=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},this.mixins_position_style);return t.backgroundImage&&(this.size&&(t.backgroundSize=this.size),this.x&&(t.backgroundPositionX=this.x),this.y&&(t.backgroundPositionY=this.y)),t}}},c=r(0),h=Object(c.a)(f,i,[],!1,null,null,null);h.options.__file="src/components/basic/Sprite.vue";e.a=h.exports},function(t,e,r){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("div",{style:this.buttonStyle},[this._t("default")],2)};i._withStripped=!0;var n=r(1),o=r(2),s=r(3),a=r(4);function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={mixins:[n.a,o.a,s.a,a.a],props:{moveX:{type:String,default:""},moveY:{type:String,default:""}},computed:{buttonStyle:function(){var t=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},this.mixins_position_style);return t.backgroundImage&&(this.moveX?t.backgroundSize="auto "+t.height:this.moveY&&(t.backgroundSize=t.width+" auto"),this.mixins_is_tap&&this.status&&(this.moveX?t.backgroundPositionX=this.moveX:this.moveY&&(t.backgroundPositionY=this.moveY))),t}}},c=r(0),h=Object(c.a)(f,i,[],!1,null,null,null);h.options.__file="src/components/basic/Button.vue";e.a=h.exports},function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a-position",{staticClass:"a-popup",class:{active:t.active,visible:t.visible},attrs:{position:"fixed","z-index":"100",top:"0",bottom:"0",left:"0",right:"0"}},[r("a-position",{attrs:{"z-index":"1",top:"0",bottom:"0",left:"0",right:"0","background-color":"rgba(0,0,0,0.7)"},on:{"a-tap":function(e){t.iBgClose&&t.close()}}}),t._v(" "),t._l(t.iSlots,(function(e){return r("a-position",t._b({key:e.name,staticClass:"a-popup-item",class:{active:e.active}},"a-position",e.position,!1),[t._t(e.name,null,{row:e.row,active:e.active})],2)}))],2)};i._withStripped=!0;var n=r(6),o=r(5);function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={components:{APosition:n.a},props:{slotNames:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}}},data:function(){return{active:!1,visible:!1,visibleSlots:[],openHandler:Promise.resolve(),defaultOptions:a({bgClose:!1,zIndex:"2",top:"50%",left:"50%",center:"1"},Object(o.a)(this.options,["bgClose","zIndex","top","left","center"]))}},computed:{iSlots:function(){var t=this;return this.slotNames.reduce((function(e,r){var i=a({},t.defaultOptions),n=t.visibleSlots.findIndex((function(t){return t.name===r})),s=t.visibleSlots[n];s&&(i=a({},i,{},s.options));var u=a({},Object(o.a)(i,["zIndex","top","left","center"]));return s?u.zIndex=String(10+n):(u.top="0",u.left="150%",delete u.center),e.push({active:!!s,name:r,position:u,row:s?s.row:{}}),e}),[])},iBgClose:function(){var t=this.visibleSlots[0]||this.defaultOptions;return 1===this.visibleSlots.length&&!!t.options.bgClose}},mounted:function(){this.$parent.$refs["a-popup"]=this},methods:{open:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.name,i=e.row,n=void 0===i?{}:i,s=e.options,a=void 0===s?{}:s,u=e.beforeOpen,l=e.afterOpen;-1!==this.slotNames.indexOf(r)&&(this.openHandler=this.openHandler.then((function(){t.$emit("beforeOpen"),Promise.resolve("function"==typeof u&&u()).then((function(e){t.active=t.visible=!0,t.visibleSlots.push({name:r,row:n,close:0,options:Object(o.a)(a,["bgClose","zIndex","top","left","center"])}),t.$emit("afterOpen"),"function"==typeof l&&l(e)}))})))},close:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.name,i=void 0===r?"":r,n=e.beforeClose,o=e.afterClose;(!i||-1!==this.slotNames.indexOf(i)&&this.visibleSlots.find((function(t){return t.name===i})))&&(this.$emit("beforeClose"),Promise.resolve("function"==typeof n&&n(this.row)).then((function(e){e=e||t.row,t.$emit("afterClose"),i&&t.visibleSlots.length>1?t.visibleSlots.splice(t.visibleSlots.findIndex((function(t){return t.name===i})),1):t.$set(t,"visibleSlots",[]),0===t.visibleSlots.length&&(t.active=!1),t.openHandler=t.openHandler.then((function(){return new Promise((function(t){setTimeout(t,300)})).then((function(){0===t.visibleSlots.length&&(t.visible=!1),t.$emit("afterCloseAnimation"),"function"==typeof o&&o(e)}))}))})))}}},f=(r(34),r(0)),c=Object(f.a)(l,i,[],!1,null,"3612980b",null);c.options.__file="src/components/basic/Popup.vue";e.a=c.exports},function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{style:t.bulletStyle},t._l(t.bullets,(function(e,i){return r("div",{key:i,ref:"bullet",refInFor:!0,staticClass:"bullet",style:{animationDuration:t.duration+"s"}},[r("div",{style:t.itemStyle,domProps:{innerHTML:t._s(e)}})])})),0)};i._withStripped=!0;var n=r(1),o=r(2),s=r(3),a=r(4);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],i=!0,n=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);i=!0);}catch(t){n=!0,o=t}finally{try{i||null==a.return||a.return()}finally{if(n)throw o}}return r}(t,e)||f(t,e)||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 l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p={mixins:[n.a,o.a,s.a,a.a],props:{items:{type:Array,default:function(){return[]}},itemStyle:{type:[String,Object],default:""},duration:{type:String,default:"20"},between:{type:String,default:"50"}},computed:{bulletStyle:function(){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({height:"100%",width:"100%",overflow:"hidden"},this.mixins_position_style)}},data:function(){return{nextTimer:0,nextIndex:0,nextAnimation:function(){},bullets:[].concat(this.items)}},watch:{items:function(t,e){var r=this;t.length&&!e.length?(this.bullets=[].concat(t),this.$nextTick((function(){r.startAnimation()}))):t.length&&e.length?this.bullets.splice.apply(this.bullets,[this.nextIndex,this.bullets.length-this.nextIndex].concat(l(t))):this.endAnimation()}},mounted:function(){this.bullets.length&&this.startAnimation()},destroyed:function(){this.endAnimation()},methods:{startAnimation:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=this.$refs.bullet[e],i=Number(this.duration),n=this.between.split("-").map((function(t){return Number(t)})),o=u(n,2),s=o[0],a=o[1],l=r.offsetWidth;r.classList.add("move"),setTimeout((function(){r.classList.remove("move")}),1e3*i);var f=r.firstChild.offsetWidth;s&&(f+=s),a&&(f+=(a-s)*Math.random());var c=f/(2.5*l/i);this.nextIndex=this.bullets.length-1===e?0:e+1,this.nextAnimation=function(){t.startAnimation(t.nextIndex)},this.nextTimer=setTimeout(this.nextAnimation,1e3*c)},endAnimation:function(){this.nextTimer&&clearTimeout(this.nextTimer),this.nextTimer=0,this.nextIndex=0,this.nextAnimation=function(){}}}},m=(r(36),r(0)),y=Object(m.a)(p,i,[],!1,null,"463dcfbb",null);y.options.__file="src/components/interact/Bullet.vue";e.a=y.exports},function(t,e,r){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("div",{style:this.mixins_position_style},[this.timeSecond>0?this._t("wait",null,{time:this.timePrams}):this._t("arrival")],2)};i._withStripped=!0;var n=r(1),o=r(2),s=r(3),a=r(4),u={mixins:[n.a,o.a,s.a,a.a],props:{start:{type:[String,Number,Date],default:""},end:{type:[String,Number,Date],default:""},second:{type:[String,Number],default:""}},data:function(){return{timer:0,timeSecond:Number(this.second)}},watch:{start:function(){this.initTimer()},end:function(){this.initTimer()},second:function(){this.initTimer()}},computed:{timePrams:function(){var t=this.timeSecond/1e3,e=Math.floor(t/3600),r=Math.floor(t/60)-60*e,i=t-3600*e-60*r;return{h:e=e<10?"0".concat(e):e,m:r=r<10?"0".concat(r):r,s:i=i<10?"0".concat(i):i,all:t}}},mounted:function(){this.initTimer()},methods:{initTimer:function(){if(this.start&&this.end){var t=new Date(this.start).getTime(),e=new Date(this.end).getTime();this.timeSecond=e-t}else{if(!this.second)return;this.timeSecond=Number(this.second)}this.timeSecond&&(this.timeSecond>0?(this.timer&&clearInterval(this.timer),this.startTimer()):this.$emit("timer-end"))},startTimer:function(){var t=this;this.timeSecond>0&&(this.timeSecond-=1e3),this.timer=setInterval((function(){t.timeSecond-=1e3,t.$emit("timer-reduce",t.timeSecond),t.timeSecond<=0&&(clearInterval(t.timer),t.timer=0,t.$emit("timer-end"))}),1e3)}}},l=r(0),f=Object(l.a)(u,i,[],!1,null,null,null);f.options.__file="src/components/interact/Timer.vue";e.a=f.exports},function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{style:t.mixins_position_style},[t._l(t.cItems,(function(e,i){return r("a-position",t._b({key:i},"a-position",e.style,!1),[t._t("default",null,{index:e.index,active:e.active,row:e.row})],2)})),t._v(" "),t.audio?r("audio",{ref:"audio",attrs:{src:t.audio,preload:"auto"}}):t._e()],2)};i._withStripped=!0;var n=r(6),o=r(1),s=r(2),a=r(3),u=r(4),l=r(5);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d={components:{APosition:n.a},mixins:[o.a,s.a,a.a,u.a],props:{items:{type:Array,default:function(){return[]}},itemStyle:{type:Object,default:function(){return{}}},audio:{type:String,default:""}},computed:{cItems:function(){var t=this;return this.items.map((function(e,r){return{index:r,active:r===t.activeIndex,style:c({},t.itemStyle,{},e.position),row:e.row||{}}}))},iOptions:function(){var t=c({},this.defaultOptions,{},this.activeOptions),e=t.maxSpeed,r=t.minSpeed,i=t.toMaxStep;return t.acceleration=(r-e)/i,t}},data:function(){return{activeIndex:-1,defaultOptions:{func:"ease-in-out",maxSpeed:30,minSpeed:960,toMaxStep:4},activeOptions:{}}},methods:{start:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.options,i=void 0===r?{}:r,n=e.steps,o=void 0===n?this.items.length:n,s=e.result,a=void 0===s?0:s,u=e.beforeStart,f=e.afterStart,c=e.afterEnd;this.$set(this,"activeOptions",Object(l.a)(i,["func","maxSpeed","minSpeed","toMaxStep"])),this.$emit("beforeStart"),this.$refs.audio&&(this.$refs.audio.currentTime=0,this.$refs.audio.play()),Promise.resolve("function"==typeof u&&u()).then((function(){t.$emit("afterStart"),"function"==typeof f&&f(),t.$emit("beforeEnd"),t.jumpMain(t.getTotalSteps({steps:o,result:a})).then((function(){t.$emit("afterEnd"),"function"==typeof c&&c()}))}))},init:function(){this.activeIndex=-1,this.$set(this,"activeOptions",{})},jumpMain:function(t){var e=this;return new Array(t).join().split(",").reduce((function(r,i,n){return r.then((function(){return new Promise((function(r){setTimeout((function(){e.activeIndex=e.getNextActive({index:n,total:t}),r()}),n?e.getSpeed({index:n,total:t}):0)}))}))}),Promise.resolve())},getTotalSteps:function(t){var e=t.steps,r=(e-(t.result+1))%this.items.length;return this.activeIndex=this.items.length-r-1,e},getSpeed:function(t){var e=t.index,r=t.total,i=this.iOptions,n=i.func,o=i.maxSpeed,s=i.minSpeed,a=i.toMaxStep,u=i.acceleration;return e>a&&e<r-a-1?o:e<=a?"ease-out"===n?o:s-u*(e-1):e>=r-a-1?"ease-in"===n?o:o+(e-(r-a-2))*u:void 0},getNextActive:function(){var t=this.activeIndex+1;return t===this.items.length?0:t}}},p=r(0),m=Object(p.a)(d,i,[],!1,null,null,null);m.options.__file="src/components/interact/Roulette.vue";e.a=m.exports},function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{style:t.tabStyle},[t._t("tab-bar",null,{active:t.active}),t._v(" "),t._l(t.cItems,(function(e,i){return r("a-position",t._b({key:i,staticClass:"a-tab-item",class:{active:e.name===t.active}},"a-position",e.props,!1),[t._t(e.name)],2)}))],2)};i._withStripped=!0;var n=r(6),o=r(1),s=r(2),a=r(3),u=r(4);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h={components:{APosition:n.a},mixins:[o.a,s.a,a.a,u.a],props:{defaultActive:{type:String,default:""},items:{type:Array,default:function(){return[]}}},computed:{tabStyle:function(){var t=this,e=f({overflow:"hidden"},this.mixins_position_style);if(this.active){var r=this.items.find((function(e){return e.name===t.active})).props;r&&(r.height&&(e.height=r.height),r.width&&(e.width=r.width))}return e},cItems:function(){var t=this;return this.items.map((function(e){var r={name:e.name,props:f({left:"0",right:"0",top:"0",bottom:"0"},e.props||{})};return e.props.width||e.props.height||e.name!==t.active||(r.props.position="relative"),r}))}},data:function(){return{active:this.defaultActive}},methods:{switchName:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.active=t},switchIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.active=t>-1?this.items[t].name:""}}},d=(r(38),r(0)),p=Object(d.a)(h,i,[],!1,null,"954bdba8",null);p.options.__file="src/components/interact/Tab.vue";e.a=p.exports},function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"a-num-slider",style:t.mixins_position_style},t._l(10,(function(e){return r("div",{key:e,staticClass:"item",class:{"slider-in":e-1===t.inValue,"slider-out":e-1===t.outValue}},[t._v(t._s(e-1))])})),0)};i._withStripped=!0;var n=r(1),o=r(2),s=r(3),a=r(4),u={mixins:[n.a,o.a,s.a,a.a],props:{value:{type:[String,Number],default:0},itemClassName:{type:String,default:""}},data:function(){return{inValue:0,outValue:""}},watch:{value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.outValue=Number(e),this.inValue=Number(t)}}},l=(r(40),r(0)),f=Object(l.a)(u,i,[],!1,null,"c526fb44",null);f.options.__file="src/components/interact/NumSlider.vue";e.a=f.exports},function(t,e,r){"use strict";var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{style:t.mixins_position_style},[r("a-section",t._b({on:{"a-tap":t.togglePopoverVisible}},"a-section",t.contentAttr,!1),[t._t("content")],2),t._v(" "),r("a-section",t._b({directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}]},"a-section",t.popoverAttr,!1),[t._t("popover")],2)],1)};i._withStripped=!0;var n=r(1),o=r(2),s=r(3),a=r(4),u={mixins:[n.a,o.a,s.a,a.a],props:{contentAttr:{type:Object,default:function(){return{}}},popoverAttr:{type:Object,default:function(){return{}}}},data:function(){return{visible:!1}},mounted:function(){var t=this;this.$el.addEventListener("touchstart",(function(e){return t.visible&&e.stopPropagation()}))},methods:{togglePopoverVisible:function(){var t=this;this.status&&(this.visible?this.visible=!1:(this.visible=!0,window.addEventListener("touchstart",(function(){t.visible=!1}),{once:!0})))}}},l=r(0),f=Object(l.a)(u,i,[],!1,null,null,null);f.options.__file="src/components/interact/Box.vue";e.a=f.exports},function(t,e,r){"use strict";function i(t){return t.keys().reduce((function(e,r){return e[r.replace("./","")]=t(r),e}),{})}r.d(e,"a",(function(){return i}))},function(t,e,r){"use strict";var i=r(11);r.n(i).a},function(t,e,r){(e=r(7)(!1)).push([t.i,".a-sections > *:not(:first-child) {\n margin-top: -0.02rem;\n}\n",""]),t.exports=e},function(t,e,r){"use strict";var i=r(12);r.n(i).a},function(t,e,r){(e=r(7)(!1)).push([t.i,"\n.a-fps9 {\n animation: fps9-animation 1s infinite both steps(1) 0s;\n}\n@keyframes fps9-animation {\nfrom,\n to {\n background-position: 0 0;\n}\n11.11% {\n background-position: 50% 0;\n}\n22.22% {\n background-position: 100% 0;\n}\n33.33% {\n background-position: 0 50%;\n}\n44.44% {\n background-position: 50% 50%;\n}\n55.55% {\n background-position: 100% 50%;\n}\n66.66% {\n background-position: 0 100%;\n}\n77.77% {\n background-position: 50% 100%;\n}\n88.88% {\n background-position: 100% 100%;\n}\n}\n",""]),t.exports=e},function(t,e,r){"use strict";var i=r(13);r.n(i).a},function(t,e,r){(e=r(7)(!1)).push([t.i,".a-popup[data-v-3612980b] {\n transform: translateX(150%);\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.3s linear;\n}\n.a-popup.visible[data-v-3612980b] {\n transform: translateX(0);\n}\n.a-popup.active[data-v-3612980b] {\n pointer-events: auto;\n opacity: 1;\n}\n.a-popup .a-popup-item[data-v-3612980b] {\n opacity: 0;\n transition: opacity 0.3s linear;\n}\n.a-popup .a-popup-item.active[data-v-3612980b] {\n opacity: 1;\n}\n",""]),t.exports=e},function(t,e,r){"use strict";var i=r(14);r.n(i).a},function(t,e,r){(e=r(7)(!1)).push([t.i,".bullet[data-v-463dcfbb] {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n white-space: nowrap;\n transform: translateX(100%);\n}\n.bullet.move[data-v-463dcfbb] {\n animation: bulletMove-data-v-463dcfbb linear 1;\n}\n@-moz-keyframes bulletMove-data-v-463dcfbb {\n0% {\n transform: translateX(100%);\n}\n100% {\n transform: translateX(-150%);\n}\n}\n@-webkit-keyframes bulletMove-data-v-463dcfbb {\n0% {\n transform: translateX(100%);\n}\n100% {\n transform: translateX(-150%);\n}\n}\n@-o-keyframes bulletMove-data-v-463dcfbb {\n0% {\n transform: translateX(100%);\n}\n100% {\n transform: translateX(-150%);\n}\n}\n@keyframes bulletMove-data-v-463dcfbb {\n0% {\n transform: translateX(100%);\n}\n100% {\n transform: translateX(-150%);\n}\n}\n",""]),t.exports=e},function(t,e,r){"use strict";var i=r(15);r.n(i).a},function(t,e,r){(e=r(7)(!1)).push([t.i,".a-tab-item[data-v-954bdba8] {\n pointer-events: none;\n opacity: 0;\n transform: translateX(100%);\n}\n.a-tab-item.active[data-v-954bdba8] {\n pointer-events: auto;\n opacity: 1;\n transform: translateX(0);\n}\n",""]),t.exports=e},function(t,e,r){"use strict";var i=r(16);r.n(i).a},function(t,e,r){(e=r(7)(!1)).push([t.i,".a-num-slider[data-v-c526fb44] {\n position: relative;\n overflow: hidden;\n}\n.a-num-slider .item[data-v-c526fb44] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n transform: translateY(100%);\n}\n.a-num-slider .item.slider-in[data-v-c526fb44] {\n animation: sliderIn-data-v-c526fb44 0.5s linear;\n animation-fill-mode: forwards;\n}\n.a-num-slider .item.slider-out[data-v-c526fb44] {\n animation: sliderOut-data-v-c526fb44 0.5s linear;\n animation-fill-mode: forwards;\n}\n@-moz-keyframes sliderIn-data-v-c526fb44 {\n0% {\n transform: translateY(100%);\n}\n100% {\n transform: translateY(0);\n}\n}\n@-webkit-keyframes sliderIn-data-v-c526fb44 {\n0% {\n transform: translateY(100%);\n}\n100% {\n transform: translateY(0);\n}\n}\n@-o-keyframes sliderIn-data-v-c526fb44 {\n0% {\n transform: translateY(100%);\n}\n100% {\n transform: translateY(0);\n}\n}\n@keyframes sliderIn-data-v-c526fb44 {\n0% {\n transform: translateY(100%);\n}\n100% {\n transform: translateY(0);\n}\n}\n@-moz-keyframes sliderOut-data-v-c526fb44 {\n0% {\n transform: translateY(0);\n}\n100% {\n transform: translateY(-100%);\n}\n}\n@-webkit-keyframes sliderOut-data-v-c526fb44 {\n0% {\n transform: translateY(0);\n}\n100% {\n transform: translateY(-100%);\n}\n}\n@-o-keyframes sliderOut-data-v-c526fb44 {\n0% {\n transform: translateY(0);\n}\n100% {\n transform: translateY(-100%);\n}\n}\n@keyframes sliderOut-data-v-c526fb44 {\n0% {\n transform: translateY(0);\n}\n100% {\n transform: translateY(-100%);\n}\n}\n",""]),t.exports=e},function(module,exports,__webpack_require__){var t;"undefined"!=typeof self&&self,t=function(){return function(t){function e(i){if(r[i])return r[i].exports;var n=r[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=64)}([function(t,e,r){"use strict";var i,n,o=t.exports=r(1),s=r(20);o.codegen=r(47),o.fetch=r(48),o.path=r(49),o.fs=o.inquire("fs"),o.toArray=function(t){if(t){for(var e=Object.keys(t),r=new Array(e.length),i=0;i<e.length;)r[i]=t[e[i++]];return r}return[]},o.toObject=function(t){for(var e={},r=0;r<t.length;){var i=t[r++],n=t[r++];void 0!==n&&(e[i]=n)}return e};var a=/\\/g,u=/"/g;o.isReserved=function(t){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(t)},o.safeProp=function(t){return!/^[$\w_]+$/.test(t)||o.isReserved(t)?'["'+t.replace(a,"\\\\").replace(u,'\\"')+'"]':"."+t},o.ucFirst=function(t){return t.charAt(0).toUpperCase()+t.substring(1)};var l=/_([a-z])/g;o.camelCase=function(t){return t.substring(0,1)+t.substring(1).replace(l,(function(t,e){return e.toUpperCase()}))},o.compareFieldsById=function(t,e){return t.id-e.id},o.decorateType=function(t,e){if(t.$type)return e&&t.$type.name!==e&&(o.decorateRoot.remove(t.$type),t.$type.name=e,o.decorateRoot.add(t.$type)),t.$type;i||(i=r(22));var n=new i(e||t.name);return o.decorateRoot.add(n),n.ctor=t,Object.defineProperty(t,"$type",{value:n,enumerable:!1}),Object.defineProperty(t.prototype,"$type",{value:n,enumerable:!1}),n};var f=0;o.decorateEnum=function(t){if(t.$type)return t.$type;n||(n=r(2));var e=new n("Enum"+f++,t);return o.decorateRoot.add(e),Object.defineProperty(t,"$type",{value:e,enumerable:!1}),e},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(30)))}})},function(t,e,r){"use strict";(function(t){function i(t,e,r){for(var i=Object.keys(e),n=0;n<i.length;++n)void 0!==t[i[n]]&&r||(t[i[n]]=e[i[n]]);return t}function n(t){function e(t,r){if(!(this instanceof e))return new e(t,r);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&i(this,r)}return(e.prototype=Object.create(Error.prototype)).constructor=e,Object.defineProperty(e.prototype,"name",{get:function(){return t}}),e.prototype.toString=function(){return this.name+": "+this.message},e}var o=e;o.asPromise=r(17),o.base64=r(38),o.EventEmitter=r(39),o.float=r(40),o.inquire=r(18),o.utf8=r(41),o.pool=r(42),o.LongBits=r(43),o.global="undefined"!=typeof window&&window||void 0!==t&&t||"undefined"!=typeof self&&self||this,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isNode=Boolean(o.global.process&&o.global.process.versions&&o.global.process.versions.node),o.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},o.isString=function(t){return"string"==typeof t||t instanceof String},o.isObject=function(t){return t&&"object"==typeof t},o.isset=o.isSet=function(t,e){var r=t[e];return!(null==r||!t.hasOwnProperty(e))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},o.Buffer=function(){try{var t=o.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(t){return"number"==typeof t?o.Buffer?o._Buffer_allocUnsafe(t):new o.Array(t):o.Buffer?o._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(t){return t?o.LongBits.from(t).toHash():o.LongBits.zeroHash},o.longFromHash=function(t,e){var r=o.LongBits.fromHash(t);return o.Long?o.Long.fromBits(r.lo,r.hi,e):r.toNumber(Boolean(e))},o.merge=i,o.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},o.newError=n,o.ProtocolError=n("ProtocolError"),o.oneOfGetter=function(t){for(var e={},r=0;r<t.length;++r)e[t[r]]=1;return function(){for(var t=Object.keys(this),r=t.length-1;r>-1;--r)if(1===e[t[r]]&&void 0!==this[t[r]]&&null!==this[t[r]])return t[r]}},o.oneOfSetter=function(t){return function(e){for(var r=0;r<t.length;++r)t[r]!==e&&delete this[t[r]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},o._configure=function(){var t=o.Buffer;t?(o._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,r){return new t(e,r)},o._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):o._Buffer_from=o._Buffer_allocUnsafe=null}}).call(e,r(37))},function(t,e,r){"use strict";function i(t,e,r,i,o){if(n.call(this,t,r),e&&"object"!=typeof e)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=i,this.comments=o||{},this.reserved=void 0,e)for(var s=Object.keys(e),a=0;a<s.length;++a)"number"==typeof e[s[a]]&&(this.valuesById[this.values[s[a]]=e[s[a]]]=s[a])}t.exports=i;var n=r(3);((i.prototype=Object.create(n.prototype)).constructor=i).className="Enum";var o=r(6),s=r(0);i.fromJSON=function(t,e){var r=new i(t,e.values,e.options,e.comment,e.comments);return r.reserved=e.reserved,r},i.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return s.toObject(["options",this.options,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",e?this.comment:void 0,"comments",e?this.comments:void 0])},i.prototype.add=function(t,e,r){if(!s.isString(t))throw TypeError("name must be a string");if(!s.isInteger(e))throw TypeError("id must be an integer");if(void 0!==this.values[t])throw Error("duplicate name '"+t+"' in "+this);if(this.isReservedId(e))throw Error("id "+e+" is reserved in "+this);if(this.isReservedName(t))throw Error("name '"+t+"' is reserved in "+this);if(void 0!==this.valuesById[e]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+e+" in "+this);this.values[t]=e}else this.valuesById[this.values[t]=e]=t;return this.comments[t]=r||null,this},i.prototype.remove=function(t){if(!s.isString(t))throw TypeError("name must be a string");var e=this.values[t];if(null==e)throw Error("name '"+t+"' does not exist in "+this);return delete this.valuesById[e],delete this.values[t],delete this.comments[t],this},i.prototype.isReservedId=function(t){return o.isReservedId(this.reserved,t)},i.prototype.isReservedName=function(t){return o.isReservedName(this.reserved,t)}},function(t,e,r){"use strict";function i(t,e){if(!o.isString(t))throw TypeError("name must be a string");if(e&&!o.isObject(e))throw TypeError("options must be an object");this.options=e,this.name=t,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}t.exports=i,i.className="ReflectionObject";var n,o=r(0);Object.defineProperties(i.prototype,{root:{get:function(){for(var t=this;null!==t.parent;)t=t.parent;return t}},fullName:{get:function(){for(var t=[this.name],e=this.parent;e;)t.unshift(e.name),e=e.parent;return t.join(".")}}}),i.prototype.toJSON=function(){throw Error()},i.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1;var e=t.root;e instanceof n&&e._handleAdd(this)},i.prototype.onRemove=function(t){var e=t.root;e instanceof n&&e._handleRemove(this),this.parent=null,this.resolved=!1},i.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},i.prototype.getOption=function(t){if(this.options)return this.options[t]},i.prototype.setOption=function(t,e,r){return r&&this.options&&void 0!==this.options[t]||((this.options||(this.options={}))[t]=e),this},i.prototype.setOptions=function(t,e){if(t)for(var r=Object.keys(t),i=0;i<r.length;++i)this.setOption(r[i],t[r[i]],e);return this},i.prototype.toString=function(){var t=this.constructor.className,e=this.fullName;return e.length?t+" "+e:t},i._configure=function(t){n=t}},function(t,e,r){"use strict";function i(t,e,r,i,o,s,f){if(u.isObject(i)?(f=o,s=i,i=o=void 0):u.isObject(o)&&(f=s,s=o,o=void 0),n.call(this,t,s),!u.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!u.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!l.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!u.isString(o))throw TypeError("extend must be a string");this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=e,this.extend=o||void 0,this.required="required"===i,this.optional=!this.required,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!u.Long&&void 0!==a.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=f}t.exports=i;var n=r(3);((i.prototype=Object.create(n.prototype)).constructor=i).className="Field";var o,s=r(2),a=r(7),u=r(0),l=/^required|optional|repeated$/;i.fromJSON=function(t,e){return new i(t,e.id,e.type,e.rule,e.extend,e.options,e.comment)},Object.defineProperty(i.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),i.prototype.setOption=function(t,e,r){return"packed"===t&&(this._packed=null),n.prototype.setOption.call(this,t,e,r)},i.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return u.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:void 0])},i.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=a.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=n