UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 40.2 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),require("@xysfe/actui/es/assets/mixins/gold-visible.js"),require("@xysfe/actui/es/assets/utils/post.js"),require("@xysfe/actui/es/assets/mixins/popup.js"),require("@xysfe/actui/es/assets/mixins/noscroll.js"),require("@xysfe/actui/es/assets/common/popup.js"),require("@xysfe/actui/es/assets/mixins/gold-element.js"),require("@xysfe/actui/es/assets/common/baseelement.js"),require("@xysfe/actui/es/assets/common/scroll.js"),require("@xysfe/actui/es/assets/svgicon.js"),require("@xysfe/actui/es/assets/img/icon-choose.png")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/assets/utils/helpers.js","@xysfe/actui/es/assets/mixins/visible.js","@xysfe/actui/es/assets/mixins/gold-visible.js","@xysfe/actui/es/assets/utils/post.js","@xysfe/actui/es/assets/mixins/popup.js","@xysfe/actui/es/assets/mixins/noscroll.js","@xysfe/actui/es/assets/common/popup.js","@xysfe/actui/es/assets/mixins/gold-element.js","@xysfe/actui/es/assets/common/baseelement.js","@xysfe/actui/es/assets/common/scroll.js","@xysfe/actui/es/assets/svgicon.js","@xysfe/actui/es/assets/img/icon-choose.png"],e):"object"==typeof exports?exports.GoldCoupon=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),require("@xysfe/actui/es/assets/mixins/gold-visible.js"),require("@xysfe/actui/es/assets/utils/post.js"),require("@xysfe/actui/es/assets/mixins/popup.js"),require("@xysfe/actui/es/assets/mixins/noscroll.js"),require("@xysfe/actui/es/assets/common/popup.js"),require("@xysfe/actui/es/assets/mixins/gold-element.js"),require("@xysfe/actui/es/assets/common/baseelement.js"),require("@xysfe/actui/es/assets/common/scroll.js"),require("@xysfe/actui/es/assets/svgicon.js"),require("@xysfe/actui/es/assets/img/icon-choose.png")):t.GoldCoupon=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/utils/helpers.js"],t["@xysfe/actui/es/assets/mixins/visible.js"],t["@xysfe/actui/es/assets/mixins/gold-visible.js"],t["@xysfe/actui/es/assets/utils/post.js"],t["@xysfe/actui/es/assets/mixins/popup.js"],t["@xysfe/actui/es/assets/mixins/noscroll.js"],t["@xysfe/actui/es/assets/common/popup.js"],t["@xysfe/actui/es/assets/mixins/gold-element.js"],t["@xysfe/actui/es/assets/common/baseelement.js"],t["@xysfe/actui/es/assets/common/scroll.js"],t["@xysfe/actui/es/assets/svgicon.js"],t["@xysfe/actui/es/assets/img/icon-choose.png"])}("undefined"!=typeof self?self:this,function(t,e,n,o,s,i,r,c,u,a,l,f,p){return function(t){function e(o){if(n[o])return n[o].exports;var s=n[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1603)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e,n){var o=n(31)("wks"),s=n(24),i=n(0).Symbol,r="function"==typeof i;(t.exports=function(t){return o[t]||(o[t]=r&&i[t]||(r?i:s)("Symbol."+t))}).store=o},10:function(t,e,n){var o=n(4),s=n(41),i=n(38),r=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),s)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},100:function(t,e,n){"use strict";var o=n(9),s=n(2),i=n(0),r=n(64),c=n(67);o(o.P+o.R,"Promise",{finally:function(t){var e=r(this,s.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then(function(){return n})}:t,n?function(n){return c(e,t()).then(function(){throw n})}:t)}})},101:function(t,e,n){"use strict";var o=n(9),s=n(44),i=n(66);o(o.S,"Promise",{try:function(t){var e=s.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},105:function(t,e){t.exports=o},106:function(t,e){t.exports=s},109:function(t,e){t.exports=i},11:function(t,e){t.exports={}},110:function(t,e){t.exports=r},1107:function(t,e,n){"use strict";var o=n(70),s=n.n(o),i=n(71),r=n.n(i),c=n(1606),u=n(1612),a=n(105),l=n.n(a),f=n(119),p=n.n(f),d=n(128),h=n.n(d),v=n(106),m=n.n(v),y=n(143),x=n.n(y);e.a={name:"ActGoldCoupon",mixins:[l.a,p.a],data:function(){return{couponElement:{tit:"优惠券",align:"left",titPadding:!0,colons:!0},priceElement:{tit:"优惠金额",align:"left",colons:!0},coupon:null,unusableList:[],usableList:[]}},props:{price:{type:[Number,String],default:0},couponUrl:{type:String,default:"/coupon/getMyCoupons"},exchangeUrl:{type:String,default:"/coupon/cdkeyExchange"},prams:{type:Object,default:function(){return{}}}},watch:{price:function(t,e){this.coupon&&this.coupon.extra&&this.coupon.extra.payment>0&&(t?this.unusablePaymentList.indexOf(this.coupon.couponId)>-1&&(this.coupon=null):this.coupon=null)},priceText:function(t,e){this.$emit("change",this.coupon,t)}},computed:{codeStyle:function(){var t={};return this.brandColor&&(t.color=this.brandColor),t},couponText:function(){return this.usableList&&this.unusablePaymentList?this.usableList.length-this.unusablePaymentList.length:0},priceText:function(){return this.coupon&&this.price?this.useCoupon(this.coupon,this.price):""},paymentList:function(){var t=[];return this.usableList&&this.usableList.length>0&&this.usableList.forEach(function(e){if(e.extra&&e.extra.payment>0){var n={};n.couponId=e.couponId,n.payment=e.extra.payment,t.push(n)}}),t},unusablePaymentList:function(){var t=this,e=[];return this.paymentList.forEach(function(n){Number(t.price)<Number(n.payment)&&e.push(n.couponId)}),e},reallyUnusableList:function(){var t=this,e=[];if(this.usableList&&this.unusableList){e=this.usableList.filter(function(e){return t.unusablePaymentList.indexOf(e.couponId)>-1}).concat(this.unusableList)}return e},reallyUsableList:function(){var t=this,e=[];return this.usableList&&(e=this.usableList.filter(function(e){return!(t.unusablePaymentList.indexOf(e.couponId)>-1)})),e}},mounted:function(){var t=this;this.initCoupon().then(function(){t.getBestCoupon()}).catch(function(t){})},methods:{initCoupon:function(){var t=this;return new r.a(function(e,n){t.getCoupon("usable").then(function(n){t.usableList=n&&n.data.coupons,e()}).catch(function(e){t.error(e)}),t.getCoupon("unusable").then(function(e){t.unusableList=e&&e.data.coupons}).catch(function(e){t.error(e)})})},getBestCoupon:function(){var t=this.reallyUsableList.length;if(0===t)this.coupon=null;else if(1===t)this.coupon=this.reallyUsableList[0];else if(this.price){for(var e=0,n=0,o=0;o<t;o++){var s=this.useCoupon(this.reallyUsableList[o],this.price);n<s&&(n=s,e=o)}this.coupon=this.reallyUsableList[e]}},useCoupon:function(t,e){var n=0;return e<=0||!t?0:(1===Number(t.type)?(n=e*t.deduction/1e4,t.maxdeduct>0&&e-n>t.maxdeduct&&(n=e-t.maxdeduct),n=Math.ceil(n)):2===Number(t.type)&&(n=e-t.deduction),n<=0?e-1:e-n)},getCoupon:function(t){var e=this,n=s()({type:t},this.prams);return new r.a(function(t,o){m()(e.couponUrl,n).then(function(e){e&&e.data&&0===e.data.ret?t(e.data):o(e.data)}).catch(function(t){})})},showCoupon:function(){this.$refs.couponCode.hide(),this.$refs.couponList.show()},showCouponCode:function(){this.$refs.couponList.hide(),this.$refs.couponCode.show()},changeCoupon:function(t){this.$refs.couponList.hide(),this.coupon=t,this.price||this.$emit("change",this.coupon,this.priceText)},exchange:function(t){var e=this;this.initCoupon().then(function(){e.showCoupon()}).catch(function(t){}),this.$emit("exchange",t)},returnCode:function(t){this.showCoupon()},error:function(t){this.$emit("error",t)}},destroyed:function(){this.$emit("change",null,0)},components:{ActGoldBaseElement:h.a,svgIcon:x.a,couponList:c.a,couponCode:u.a}}},1108:function(t,e,n){"use strict";var o=n(1608),s=n(118),i=n.n(s),r=n(129),c=n.n(r),u=n(40),a=n.n(u),l=n(110),f=n.n(l),p=n(109),d=n.n(p);e.a={name:"CouponList",mixins:[a.a,f.a,d.a],data:function(){return{isShowUsable:!0}},props:{unusableList:{type:Array,default:function(){return[]}},usableList:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"},couponId:{type:Number,default:0}},watch:{list:function(t,e){t&&this.$refs.scroll&&(this.refresh(),this.$refs.scroll.scrollTo(0,0))},isVisible:function(t,e){t&&this.$refs.scroll&&this.refresh()}},computed:{usableStyle:function(){var t={};return this.brandColor&&this.isShowUsable&&(t.color=this.brandColor),t},unusableStyle:function(){var t={};return this.brandColor&&!this.isShowUsable&&(t.color=this.brandColor),t},list:function(){return this.isShowUsable?this.usableList:this.unusableList},checkedStyle:function(){var t={};return!this.couponId&&this.brandColor&&(t.backgroundColor=this.brandColor),t}},methods:{getDesc:function(t){if(t.extra&&t.extra.usage)return t.extra.usage;var e="";return 1===Number(t.prodChnType)?e+="适用于小雨伞保险":2===Number(t.prodChnType)?e+="仅限"+t.prodChnTxt+"平台使用,适用于该平台":3===Number(t.prodChnType)?e+="仅限咔嚓保平台使用,适用于该平台":t.chntxt?e+="仅限"+t.chntxt+"平台使用,适用于该平台":e+="适用于小雨伞保险",e+=t.producttxt?"的"+t.producttxt+"产品":"所有产品(阳光成人定期重疾险、阳光定期寿险、华夏关爱宝终身重疾险除外)"},getState:function(t){var e="";if(!this.isShowUsable){e={2:"使用中",3:"已使用",4:"不可用",5:"未生效",6:"已过期",7:"不适用",8:"不适用"}[Number(t)]||"不适用"}return e},refresh:function(){var t=this;this.$nextTick(function(){t.$refs.scroll.refresh()})},changeChoose:function(t){var e=null;-1!==Number(t)&&this.usableList.some(function(n){return Number(t)===Number(n.couponId)&&(e=n,!0)}),this.$emit("change",e)},changeList:function(t){this.isShowUsable=t},close:function(){this.hide()}},components:{couponItem:o.a,ActPopup:i.a,scroll:c.a}}},1109:function(t,e,n){"use strict";e.a={name:"ActCouponItem",data:function(){return{}},props:{id:{type:Number,default:0},name:{type:String,default:""},begTime:{type:String,default:""},endTime:{type:String,default:""},type:{type:Number,default:1},deduction:{type:Number,default:0},state:{type:String,default:""},description:{type:String,default:""},deduct:{type:Number,default:0},payment:{type:Number,default:0},checked:{type:Boolean,default:!1},checkedColor:{type:String,default:""},backgroundColor:{type:String,default:""}},computed:{checkedStyle:function(){var t={};return this.checked&&this.checkedColor&&(t.backgroundColor=this.checkedColor),t},circleStyle:function(){var t={};return this.backgroundColor&&(t.backgroundColor=this.backgroundColor),t}},methods:{change:function(){this.state||this.$emit("changeChoose",this.id)}}}},1110:function(t,e){t.exports=p},1111:function(t,e,n){"use strict";var o=n(118),s=n.n(o),i=n(106),r=n.n(i),c=n(109),u=n.n(c),a=n(40),l=n.n(a),f=n(110),p=n.n(f),d=n(39);n.n(d);e.a={name:"ActCouponCode",mixins:[l.a,p.a,u.a],data:function(){return{code:""}},components:{ActPopup:s.a},props:{url:{type:String,default:""},brandColor:{type:String,default:""}},computed:{returnStyle:function(){var t={};if(this.brandColor){var e=Object(d.hexToRgb)(this.brandColor,.08);t.borderColor=this.brandColor,t.color=this.brandColor,t.backgroundColor=e}return t},confirmStyle:function(){var t={};return this.brandColor&&(t.backgroundColor=this.brandColor),t}},methods:{inputCode:function(t){var e=t.target.value.replace(/[^0-9a-zA-Z]/g,"");""!==e&&void 0!==e&&(this.code=e,e.length>6&&(this.code=e.substr(0,6)))},exchange:function(){var t=this;this.code&&6===this.code.length?r()(this.url,{cdkey:this.code}).then(function(e){0===e.data.ret?t.$emit("exchange",t.code):t.$emit("error",e.data)}).catch(function(t){}):this.$emit("error",{ret:"",errmsg:"请输入6位优惠码"})},close:function(){this.hide(),this.$emit("closeCode")},codeReturn:function(){this.hide(),this.$emit("returnCode")}}}},118:function(t,e){t.exports=c},119:function(t,e){t.exports=u},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},128:function(t,e){t.exports=a},129:function(t,e){t.exports=l},13:function(t,e,n){var o=n(34),s=n(15);t.exports=function(t){return o(s(t))}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},143:function(t,e){t.exports=f},15:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},16:function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},1603:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(26),s=n.n(o),i=n(1604);i.a.install=function(t){t.component(i.a.name,i.a),t.prototype.$createGoldCoupon=s()(i.a,t)},e.default=i.a},1604:function(t,e,n){"use strict";function o(t){c||n(1605)}var s=n(1107),i=n(1615),r=n(7),c=!1,u=o,a=Object(r.a)(s.a,i.a,i.b,!1,u,"data-v-1c30e598",null);a.options.__file="src\\components\\GoldCoupon\\src\\index.vue",e.a=a.exports},1605:function(t,e){},1606:function(t,e,n){"use strict";function o(t){c||n(1607)}var s=n(1108),i=n(1611),r=n(7),c=!1,u=o,a=Object(r.a)(s.a,i.a,i.b,!1,u,"data-v-e9e80fa8",null);a.options.__file="src\\components\\GoldCoupon\\src\\list.vue",e.a=a.exports},1607:function(t,e){},1608:function(t,e,n){"use strict";function o(t){c||n(1609)}var s=n(1109),i=n(1610),r=n(7),c=!1,u=o,a=Object(r.a)(s.a,i.a,i.b,!1,u,"data-v-fdf2ffbe",null);a.options.__file="src\\components\\GoldCoupon\\src\\item.vue",e.a=a.exports},1609:function(t,e){},1610:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"coupon",on:{click:function(e){return e.stopPropagation(),t.change()}}},[o("div",{staticClass:"coupon-container",class:{unusable:t.state}},[o("span",{staticClass:"circle",style:t.circleStyle}),t._v(" "),o("div",{staticClass:"coupon-text"},[o("div",{staticClass:"coupon-price"},[o("span",{staticClass:"coupon-num"},[t._v(t._s(t.deduction/100))]),t._v("\n "+t._s(1===t.type?"折":"元")+"\n ")]),t._v(" "),o("div",{staticClass:"coupon-content"},[o("div",{staticClass:"coupon-name coupon-hidden"},[t._v("\n "+t._s(t.name)+"\n ")]),t._v(" "),o("div",{staticClass:"coupon-time"},[t._v("\n "+t._s(t.begTime+" 至 "+t.endTime)+"\n ")])])]),t._v(" "),t.state?o("div",{staticClass:"coupon-expire"},[o("div",{staticClass:"coupon-expire-text"},[t._v("\n "+t._s(t.state)+"\n ")]),t._v(" "),o("div",{staticClass:"coupon-expire-triangle"})]):o("div",{staticClass:"coupon-choose",class:{"skin-bg":t.checked},style:t.checkedStyle},[o("img",{attrs:{src:n(1110),alt:""}})]),t._v(" "),o("span",{staticClass:"circle",style:t.circleStyle})]),t._v(" "),o("div",{staticClass:"coupon-footer"},[t.deduct>0?o("div",{staticClass:"coupon-footer-item"},[o("span",{staticClass:"coupon-left"},[t._v("优惠限制:")]),t._v(" "),o("span",{staticClass:"area-text"},[t._v(t._s("最高抵扣"+t.deduct/100+"元"))])]):t._e(),t._v(" "),t.payment>0?o("div",{staticClass:"coupon-footer-item"},[o("span",{staticClass:"coupon-left"},[t._v("使用门槛:")]),t._v(" "),o("span",{staticClass:"area-text"},[t._v(t._s("订单支付金额需不小于"+t.payment/100+"元方可使用"))])]):t._e(),t._v(" "),o("div",{staticClass:"coupon-footer-item"},[o("span",{staticClass:"coupon-left"},[t._v("适用范围:")]),t._v(" "),o("span",{staticClass:"area-text"},[t._v(t._s(t.description))])])])])},s=[];o._withStripped=!0},1611:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("transition",{attrs:{name:"act-picker-fade"}},[o("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{opacity:.4,center:!1,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.close}},[o("transition",{attrs:{name:"act-picker-move"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"popup-content",on:{click:function(t){t.stopPropagation()}}},[o("div",{staticClass:"popup-container act-iphonex-padding"},[o("header",{staticClass:"popup-header"},[o("div",{staticClass:"popup-choose"},[o("div",[t._v("优惠券选择")]),t._v(" "),o("i",{staticClass:"popup-close",on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}})]),t._v(" "),t.unusableList.length>0?o("ul",{staticClass:"popup-type"},[o("li",{on:{click:function(e){return e.stopPropagation(),t.changeList(!0)}}},[o("span",{staticClass:"popup-type-text",style:t.usableStyle},[t._v("可使用\n "),t.isShowUsable?o("i",{staticClass:"popup-type-border",style:{background:t.brandColor}}):t._e()])]),t._v(" "),o("li",{on:{click:function(e){return e.stopPropagation(),t.changeList(!1)}}},[o("span",{staticClass:"popup-type-text",style:t.unusableStyle},[t._v("不可用\n "),t.isShowUsable?t._e():o("i",{staticClass:"popup-type-border",style:{background:t.brandColor}})])])]):t._e()]),t._v(" "),o("section",{staticClass:"coupon-content",class:{"show-unusable":t.unusableList.length>0}},[o("div",{staticClass:"coupon-gradual"}),t._v(" "),o("scroll",{ref:"scroll"},[o("div",{staticClass:"coupon-list"},[t._l(t.list,function(e,n){return o("coupon-item",{key:"coupon"+n,attrs:{id:Number(e.couponId),name:e.name,begTime:e.validBeg,endTime:e.validEnd,type:Number(e.type),deduction:Number(e.deduction),deduct:Number(e.maxdeduct),payment:Number(e.extra&&e.extra.payment||0),checked:!(Number(e.couponId)!==t.couponId),state:t.getState(e.state2),description:t.getDesc(e),checkedColor:t.brandColor},on:{changeChoose:t.changeChoose}})}),t._v(" "),t.isShowUsable?o("div",{staticClass:"coupon-item no-choose",on:{click:function(e){return e.stopPropagation(),t.changeChoose(-1)}}},[o("div",[t._v("不使用优惠券")]),t._v(" "),o("div",{staticClass:"coupon-choose",style:t.checkedStyle},[o("img",{attrs:{src:n(1110),alt:""}})])]):t._e(),t._v(" "),t._t("code")],2)])],1)])])])],1)],1)],1)},s=[];o._withStripped=!0},1612:function(t,e,n){"use strict";function o(t){c||n(1613)}var s=n(1111),i=n(1614),r=n(7),c=!1,u=o,a=Object(r.a)(s.a,i.a,i.b,!1,u,"data-v-071ab5fb",null);a.options.__file="src\\components\\GoldCoupon\\src\\code.vue",e.a=a.exports},1613:function(t,e){},1614:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("transition",{attrs:{name:"act-picker-fade"}},[n("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{opacity:.4,center:!1,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.close}},[n("transition",{attrs:{name:"act-picker-move"}},[n("div",{staticClass:"popup-content"},[n("div",{staticClass:"popup-container act-iphonex-padding"},[n("header",{staticClass:"popup-header"},[n("div",{staticClass:"popup-choose"},[n("div",[t._v("兑换优惠码")]),t._v(" "),n("i",{staticClass:"popup-close",on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}})])]),t._v(" "),n("section",{staticClass:"code-container"},[n("div",{staticClass:"code-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],attrs:{type:"text",placeholder:"点此输入优惠码"},domProps:{value:t.code},on:{input:[function(e){e.target.composing||(t.code=e.target.value)},t.inputCode]}})]),t._v(" "),n("div",{staticClass:"code-text"},[t._v("\n 优惠码是您在参与活动中,收到的6位数字和字母,输入优惠码可兑换相应的优惠券,一个兑换码只能兑换一张优惠券\n ")]),t._v(" "),n("div",{staticClass:"code-btn"},[n("span",{staticClass:"code-item",style:t.returnStyle,on:{click:function(e){return e.stopPropagation(),t.codeReturn.apply(null,arguments)}}},[t._v("返回")]),t._v(" "),n("span",{staticClass:"code-item",style:t.confirmStyle,on:{click:function(e){return e.stopPropagation(),t.exchange.apply(null,arguments)}}},[t._v("确认兑换")])])])])])])],1)],1)],1)},s=[];o._withStripped=!0},1615:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}]},[n("act-gold-base-element",{attrs:{common:t.couponElement,hasArrow:!0},on:{showTips:t.showTips,takenLink:t.takenLink}},[n("p",{staticClass:"element-select element-wrap",style:{"font-size":t.size,color:t.color},on:{click:function(e){return e.stopPropagation(),t.showCoupon.apply(null,arguments)}}},[t.coupon?n("span",[t._v(t._s(t.coupon.name))]):n("span",[n("label",{staticClass:"element-coupon-price"},[t._v(t._s(t.couponText))]),t._v("张可用")])]),t._v(" "),n("i",{staticClass:"icon-arrow"},[n("svg-icon",{attrs:{iconClass:"gold-arrow-right"}})],1)]),t._v(" "),n("act-gold-base-element",{attrs:{common:t.priceElement}},[n("p",{staticClass:"element-text element-coupon-price",style:{"font-size":t.size,color:t.color}},[t._v("\n "+t._s(t.priceText?t.priceText/100+"元":"")+"\n ")])]),t._v(" "),n("coupon-code",{ref:"couponCode",attrs:{visible:!1,url:t.exchangeUrl,brandColor:t.brandColor,zIndex:t.zIndex},on:{returnCode:t.returnCode,error:t.error,exchange:t.exchange}}),t._v(" "),n("coupon-list",{ref:"couponList",attrs:{zIndex:t.zIndex,visible:!1,couponId:t.coupon&&Number(t.coupon.couponId)||0,brandColor:t.brandColor,usableList:t.reallyUsableList,unusableList:t.reallyUnusableList},on:{error:t.error,change:t.changeCoupon}},[n("div",{staticClass:"coupon-attention",attrs:{slot:"code"},slot:"code"},[n("div",[t._v("如果您需使用优惠码,"),n("span",{staticClass:"coupon-code-text",style:{color:t.brandColor},on:{click:t.showCouponCode}},[t._v("点此兑换 >")])])])])],1)},s=[];o._withStripped=!0},17:function(t,e,n){var o=n(19);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,s){return t.call(e,n,o,s)}}return function(){return t.apply(e,arguments)}}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){var o=n(31)("keys"),s=n(24);t.exports=function(t){return o[t]||(o[t]=s(t))}},22:function(t,e,n){var o=n(6),s=n(0).document,i=o(s)&&o(s.createElement);t.exports=function(t){return i?s.createElement(t):{}}},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},26:function(e,n){e.exports=t},27:function(t,e,n){var o=n(10).f,s=n(8),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!s(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},28:function(t,e,n){var o=n(42),s=n(32);t.exports=Object.keys||function(t){return o(t,s)}},3:function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(t,e,n){var o=n(2),s=n(0),i=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},33:function(t,e,n){var o=n(15);t.exports=function(t){return Object(o(t))}},34:function(t,e,n){var o=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},35:function(t,e,n){var o=n(16),s=Math.min;t.exports=function(t){return t>0?s(o(t),9007199254740991):0}},36:function(t,e,n){"use strict";var o=n(18),s=n(9),i=n(54),r=n(5),c=n(11),u=n(60),a=n(27),l=n(62),f=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,m,y){u(n,e,h);var x,b,g,_=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",j="values"==v,w=!1,S=t.prototype,L=S[f]||S["@@iterator"]||v&&S[v],k=L||_(v),P=v?j?_("entries"):k:void 0,O="Array"==e?S.entries||L:L;if(O&&(g=l(O.call(new t)))!==Object.prototype&&g.next&&(a(g,C,!0),o||"function"==typeof g[f]||r(g,f,d)),j&&L&&"values"!==L.name&&(w=!0,k=function(){return L.call(this)}),o&&!y||!p&&!w&&S[f]||r(S,f,k),c[e]=k,c[C]=d,v)if(x={values:j?k:_("values"),keys:m?k:_("keys"),entries:P},y)for(b in x)b in S||i(S,b,x[b]);else s(s.P+s.F*(p||w),e,x);return x}},38:function(t,e,n){var o=n(6);t.exports=function(t,e){if(!o(t))return t;var n,s;if(e&&"function"==typeof(n=t.toString)&&!o(s=n.call(t)))return s;if("function"==typeof(n=t.valueOf)&&!o(s=n.call(t)))return s;if(!e&&"function"==typeof(n=t.toString)&&!o(s=n.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},39:function(t,n){t.exports=e},4:function(t,e,n){var o=n(6);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},40:function(t,e){t.exports=n},41:function(t,e,n){t.exports=!n(3)&&!n(12)(function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a})},42:function(t,e,n){var o=n(8),s=n(13),i=n(46)(!1),r=n(20)("IE_PROTO");t.exports=function(t,e){var n,c=s(t),u=0,a=[];for(n in c)n!=r&&o(c,n)&&a.push(n);for(;e.length>u;)o(c,n=e[u++])&&(~i(a,n)||a.push(n));return a}},43:function(t,e,n){var o=n(0).document;t.exports=o&&o.documentElement},44:function(t,e,n){"use strict";function o(t){var e,n;this.promise=new t(function(t,o){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=o}),this.resolve=s(e),this.reject=s(n)}var s=n(19);t.exports.f=function(t){return new o(t)}},45:function(t,e,n){var o=n(14),s=n(1)("toStringTag"),i="Arguments"==o(function(){return arguments}()),r=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=r(e=Object(t),s))?n:i?o(e):"Object"==(c=o(e))&&"function"==typeof e.callee?"Arguments":c}},46:function(t,e,n){var o=n(13),s=n(35),i=n(47);t.exports=function(t){return function(e,n,r){var c,u=o(e),a=s(u.length),l=i(r,a);if(t&&n!=n){for(;a>l;)if((c=u[l++])!=c)return!0}else for(;a>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},47:function(t,e,n){var o=n(16),s=Math.max,i=Math.min;t.exports=function(t,e){return t=o(t),t<0?s(t+e,0):i(t,e)}},48:function(t,e,n){"use strict";var o=n(59)(!0);n(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=o(e,n),this._i+=t.length,{value:t,done:!1})})},5:function(t,e,n){var o=n(10),s=n(23);t.exports=n(3)?function(t,e,n){return o.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},50:function(t,e,n){n(68);for(var o=n(0),s=n(5),i=n(11),r=n(1)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<c.length;u++){var a=c[u],l=o[a],f=l&&l.prototype;f&&!f[r]&&s(f,r,a),i[a]=i.Array}},51:function(t,e){e.f={}.propertyIsEnumerable},52:function(t,e,n){var o=n(4),s=n(61),i=n(32),r=n(20)("IE_PROTO"),c=function(){},u=function(){var t,e=n(22)("iframe"),o=i.length;for(e.style.display="none",n(43).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;o--;)delete u.prototype[i[o]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=o(t),n=new c,c.prototype=null,n[r]=t):n=u(),void 0===e?n:s(n,e)}},54:function(t,e,n){t.exports=n(5)},56:function(t,e,n){var o=n(45),s=n(1)("iterator"),i=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[s]||t["@@iterator"]||i[o(t)]}},57:function(t,e){e.f=Object.getOwnPropertySymbols},59:function(t,e,n){var o=n(16),s=n(15);t.exports=function(t){return function(e,n){var i,r,c=String(s(e)),u=o(n),a=c.length;return u<0||u>=a?t?"":void 0:(i=c.charCodeAt(u),i<55296||i>56319||u+1===a||(r=c.charCodeAt(u+1))<56320||r>57343?t?c.charAt(u):i:t?c.slice(u,u+2):r-56320+(i-55296<<10)+65536)}}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e,n){"use strict";var o=n(52),s=n(23),i=n(27),r={};n(5)(r,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=o(r,{next:s(1,n)}),i(t,e+" Iterator")}},61:function(t,e,n){var o=n(10),s=n(4),i=n(28);t.exports=n(3)?Object.defineProperties:function(t,e){s(t);for(var n,r=i(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},62:function(t,e,n){var o=n(8),s=n(33),i=n(20)("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=s(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},63:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},64:function(t,e,n){var o=n(4),s=n(19),i=n(1)("species");t.exports=function(t,e){var n,r=o(t).constructor;return void 0===r||void 0==(n=o(r)[i])?e:s(n)}},65:function(t,e,n){var o,s,i,r=n(17),c=n(97),u=n(43),a=n(22),l=n(0),f=l.process,p=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,y={},x=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){x.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++m]=function(){c("function"==typeof t?t:Function(t),e)},o(m),m},d=function(t){delete y[t]},"process"==n(14)(f)?o=function(t){f.nextTick(r(x,t,1))}:v&&v.now?o=function(t){v.now(r(x,t,1))}:h?(s=new h,i=s.port2,s.port1.onmessage=b,o=r(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(o=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):o="onreadystatechange"in a("script")?function(t){u.appendChild(a("script")).onreadystatechange=function(){u.removeChild(this),x.call(t)}}:function(t){setTimeout(r(x,t,1),0)}),t.exports={set:p,clear:d}},66:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},67:function(t,e,n){var o=n(4),s=n(6),i=n(44);t.exports=function(t,e){if(o(t),s(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},68:function(t,e,n){"use strict";var o=n(69),s=n(63),i=n(11),r=n(13);t.exports=n(36)(Array,"Array",function(t,e){this._t=r(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,s(1)):"keys"==e?s(0,n):"values"==e?s(0,t[n]):s(0,[n,t[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},69:function(t,e){t.exports=function(){}},7:function(t,e,n){"use strict";function o(t,e,n,o,s,i,r,c){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var a="function"==typeof t?t.options:t;e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),o&&(a.functional=!0),i&&(a._scopeId=i);var l;if(r?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},a._ssrRegister=l):s&&(l=c?function(){s.call(this,this.$root.$options.shadowRoot)}:s),l)if(a.functional){a._injectStyles=l;var f=a.render;a.render=function(t,e){return l.call(e),f(t,e)}}else{var p=a.beforeCreate;a.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:a}}e.a=o},70:function(t,e,n){t.exports={default:n(79),__esModule:!0}},71:function(t,e,n){t.exports={default:n(95),__esModule:!0}},73:function(t,e){},79:function(t,e,n){n(80),t.exports=n(2).Object.assign},8:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},80:function(t,e,n){var o=n(9);o(o.S+o.F,"Object",{assign:n(81)})},81:function(t,e,n){"use strict";var o=n(3),s=n(28),i=n(57),r=n(51),c=n(33),u=n(34),a=Object.assign;t.exports=!a||n(12)(function(){var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=o})?function(t,e){for(var n=c(t),a=arguments.length,l=1,f=i.f,p=r.f;a>l;)for(var d,h=u(arguments[l++]),v=f?s(h).concat(f(h)):s(h),m=v.length,y=0;m>y;)d=v[y++],o&&!p.call(h,d)||(n[d]=h[d]);return n}:a},82:function(t,e,n){var o=n(17),s=n(83),i=n(84),r=n(4),c=n(35),u=n(56),a={},l={},e=t.exports=function(t,e,n,f,p){var d,h,v,m,y=p?function(){return t}:u(t),x=o(n,f,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=c(t.length);d>b;b++)if((m=e?x(r(h=t[b])[0],h[1]):x(t[b]))===a||m===l)return m}else for(v=y.call(t);!(h=v.next()).done;)if((m=s(v,x,h.value,e))===a||m===l)return m};e.BREAK=a,e.RETURN=l},83:function(t,e,n){var o=n(4);t.exports=function(t,e,n,s){try{return s?e(o(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&o(i.call(t)),e}}},84:function(t,e,n){var o=n(11),s=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||i[s]===t)}},85:function(t,e){t.exports=function(t,e,n,o){if(!(t instanceof e)||void 0!==o&&o in t)throw TypeError(n+": incorrect invocation!");return t}},86:function(t,e,n){var o=n(5);t.exports=function(t,e,n){for(var s in e)n&&t[s]?t[s]=e[s]:o(t,s,e[s]);return t}},87:function(t,e,n){var o=n(1)("iterator"),s=!1;try{var i=[7][o]();i.return=function(){s=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!s)return!1;var n=!1;try{var i=[7],r=i[o]();r.next=function(){return{done:n=!0}},i[o]=function(){return r},t(i)}catch(t){}return n}},9:function(t,e,n){var o=n(0),s=n(2),i=n(17),r=n(5),c=n(8),u=function(t,e,n){var a,l,f,p=t&u.F,d=t&u.G,h=t&u.S,v=t&u.P,m=t&u.B,y=t&u.W,x=d?s:s[e]||(s[e]={}),b=x.prototype,g=d?o:h?o[e]:(o[e]||{}).prototype;d&&(n=e);for(a in n)(l=!p&&g&&void 0!==g[a])&&c(x,a)||(f=l?g[a]:n[a],x[a]=d&&"function"!=typeof g[a]?n[a]:m&&l?i(f,o):y&&g[a]==f?function(t){var e=function(e,n,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((x.virtual||(x.virtual={}))[a]=f,t&u.R&&b&&!b[a]&&r(b,a,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},91:function(t,e,n){"use strict";var o=n(0),s=n(2),i=n(10),r=n(3),c=n(1)("species");t.exports=function(t){var e="function"==typeof s[t]?s[t]:o[t];r&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},95:function(t,e,n){n(73),n(48),n(50),n(96),n(100),n(101),t.exports=n(2).Promise},96:function(t,e,n){"use strict";var o,s,i,r,c=n(18),u=n(0),a=n(17),l=n(45),f=n(9),p=n(6),d=n(19),h=n(85),v=n(82),m=n(64),y=n(65).set,x=n(98)(),b=n(44),g=n(66),_=n(99),C=n(67),j=u.TypeError,w=u.process,S=w&&w.versions,L=S&&S.v8||"",k=u.Promise,P="process"==l(w),O=function(){},T=s=b.f,E=!!function(){try{var t=k.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(O,O)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==L.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;x(function(){for(var o=t._v,s=1==t._s,i=0;n.length>i;)!function(e){var n,i,r,c=s?e.ok:e.fail,u=e.resolve,a=e.reject,l=e.domain;try{c?(s||(2==t._h&&A(t),t._h=1),!0===c?n=o:(l&&l.enter(),n=c(o),l&&(l.exit(),r=!0)),n===e.promise?a(j("Promise-chain cycle")):(i=N(n))?i.call(n,u,a):u(n)):a(o)}catch(t){l&&!r&&l.exit(),a(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&M(t)})}},M=function(t){y.call(u,function(){var e,n,o,s=t._v,i=$(t);if(i&&(e=g(function(){P?w.emit("unhandledRejection",s,t):(n=u.onunhandledrejection)?n({promise:t,reason:s}):(o=u.console)&&o.error&&o.error("Unhandled promise rejection",s)}),t._h=P||$(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},$=function(t){return 1!==t._h&&0===(t._a||t._c).length},A=function(t){y.call(u,function(){var e;P?w.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},q=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},U=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw j("Promise can't be resolved itself");(e=N(t))?x(function(){var o={_w:n,_d:!1};try{e.call(t,a(U,o,1),a(q,o,1))}catch(t){q.call(o,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){q.call({_w:n,_d:!1},t)}}};E||(k=function(t){h(this,k,"Promise","_h"),d(t),o.call(this);try{t(a(U,this,1),a(q,this,1))}catch(t){q.call(this,t)}},o=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},o.prototype=n(86)(k.prototype,{then:function(t,e){var n=T(m(this,k));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new o;this.promise=t,this.resolve=a(U,t,1),this.reject=a(q,t,1)},b.f=T=function(t){return t===k||t===r?new i(t):s(t)}),f(f.G+f.W+f.F*!E,{Promise:k}),n(27)(k,"Promise"),n(91)("Promise"),r=n(2).Promise,f(f.S+f.F*!E,"Promise",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!E),"Promise",{resolve:function(t){return C(c&&this===r?k:this,t)}}),f(f.S+f.F*!(E&&n(87)(function(t){k.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=T(e),o=n.resolve,s=n.reject,i=g(function(){var n=[],i=0,r=1;v(t,!1,function(t){var c=i++,u=!1;n.push(void 0),r++,e.resolve(t).then(function(t){u||(u=!0,n[c]=t,--r||o(n))},s)}),--r||o(n)});return i.e&&s(i.v),n.promise},race:function(t){var e=this,n=T(e),o=n.reject,s=g(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,o)})});return s.e&&o(s.v),n.promise}})},97:function(t,e){t.exports=function(t,e,n){var o=void 0===n;switch(e.length){case 0:return o?t():t.call(n);case 1:return o?t(e[0]):t.call(n,e[0]);case 2:return o?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return o?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return o?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},98:function(t,e,n){var o=n(0),s=n(65).set,i=o.MutationObserver||o.WebKitMutationObserver,r=o.process,c=o.Promise,u="process"==n(14)(r);t.exports=function(){var t,e,n,a=function(){var o,s;for(u&&(o=r.domain)&&o.exit();t;){s=t.fn,t=t.next;try{s()}catch(o){throw t?n():e=void 0,o}}e=void 0,o&&o.enter()};if(u)n=function(){r.nextTick(a)};else if(!i||o.navigator&&o.navigator.standalone)if(c&&c.resolve){var l=c.resolve(void 0);n=function(){l.then(a)}}else n=function(){s.call(o,a)};else{var f=!0,p=document.createTextNode("");new i(a).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(o){var s={fn:o,next:void 0};e&&(e.next=s),t||(t=s,n()),e=s}}},99:function(t,e,n){var o=n(0),s=o.navigator;t.exports=s&&s.userAgent||""}})});