3 lines
21 KiB
JavaScript
3 lines
21 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4983c91c"],{"04a1":function(t,e,r){t.exports=r.p+"static/app/img/qhm_sharepicbg@2x.5286b03c.png"},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("d3b7");function a(t,e,r,a,i,n,o){try{var c=t[n](o),s=c.value}catch(l){return void r(l)}c.done?e(s):Promise.resolve(s).then(a,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var o=t.apply(e,r);function c(t){a(o,i,n,c,s,"next",t)}function s(t){a(o,i,n,c,s,"throw",t)}c(void 0)}))}}},"24dd":function(t,e,r){var a=r("24fb"),i=r("1de5"),n=r("04a1");e=a(!1);var o=i(n);e.push([t.i,".page[data-v-14cc0798]{background-color:#f9f9f9;min-height:100vh;padding-bottom:3.0625rem}.wrapper .items .item[data-v-14cc0798]{margin-bottom:.875rem;padding:1.438rem .844rem .65rem 1.25rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background:#fff}.wrapper .items .item[data-v-14cc0798],.wrapper .items .item .info[data-v-14cc0798]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.wrapper .items .item .info[data-v-14cc0798]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.wrapper .items .item .info .id[data-v-14cc0798]{letter-spacing:.044rem;color:#333}.wrapper .items .item .info .id[data-v-14cc0798],.wrapper .items .item .info .time[data-v-14cc0798]{font-size:.875rem;font-weight:400;font-stretch:normal;line-height:1.5rem}.wrapper .items .item .info .time[data-v-14cc0798]{letter-spacing:0;color:#999}.wrapper .items .item .content[data-v-14cc0798]{text-align:left;margin-top:1.281rem;font-size:1rem;font-weight:400;font-stretch:normal;line-height:1.5rem;letter-spacing:.05rem;color:#000}.wrapper .items .item .btns[data-v-14cc0798]{margin-top:.906rem;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.wrapper .items .item .btns[data-v-14cc0798],.wrapper .items .item .btns .btn[data-v-14cc0798]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.wrapper .items .item .btns .btn[data-v-14cc0798]{width:4.406rem;height:1.625rem;border-radius:.813rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.875rem}.wrapper .items .item .btns .share[data-v-14cc0798]{margin-right:1.063rem;border:.031rem solid #00b075;background-color:#e0fef4;color:#00b075}.wrapper .items .item .btns .data[data-v-14cc0798]{background-color:#00b075;color:#fff}.wrapper .items .optBtns[data-v-14cc0798]{width:5.062rem}.wrapper .items .optBtns[data-v-14cc0798],.wrapper .items .optBtns .optBtn[data-v-14cc0798]{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.wrapper .items .optBtns .optBtn[data-v-14cc0798]{width:2.531rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fff;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.wrapper .items .optBtns .edit[data-v-14cc0798]{background-color:#fc8e5e}.wrapper .items .optBtns .del[data-v-14cc0798]{background-color:#ff9b6f}.explainWrapper[data-v-14cc0798]{width:21.25rem;max-height:22.625rem;background-color:#fff;border-radius:1.531rem;padding-bottom:3rem;-webkit-transition:.3s;transition:.3s;padding-top:.5rem}.explainWrapper .header[data-v-14cc0798]{height:2.596rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:relative}.explainWrapper .header .img[data-v-14cc0798]{width:2.25rem;height:2.25rem;margin-right:.625rem}.explainWrapper .header .img canvas[data-v-14cc0798],.explainWrapper .header .img img[data-v-14cc0798]{width:2.25rem;height:2.25rem;border-radius:50%}.explainWrapper .header .title[data-v-14cc0798]{font-size:1rem;letter-spacing:.05rem;color:#000}.explainWrapper .header .icon-guanbi[data-v-14cc0798]{position:absolute;top:.875rem;right:1.25rem;color:#000}.explainWrapper .content[data-v-14cc0798]{max-height:11rem;padding-top:.562rem;font-size:.875rem;letter-spacing:.066rem;color:#666;padding-left:1.049rem;padding-right:1.469rem;text-align:left;text-indent:1.75rem;line-height:1.5rem}.explainWrapper .img[data-v-14cc0798]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:100%;height:14rem}.explainWrapper .img img[data-v-14cc0798]{width:13rem;height:13rem}.explainWrapper .kf_guide[data-v-14cc0798]{max-height:3rem;padding-top:.506rem;padding-left:2.688rem;padding-right:2.688rem;font-size:.875rem;letter-spacing:0;color:#666;overflow-y:scroll}.shareWrapper[data-v-14cc0798]{height:29rem;width:18rem}.shareWrapper .imgContent[data-v-14cc0798],.shareWrapper .imgContent img[data-v-14cc0798]{width:18rem;height:25rem}.shareWrapper .divContent[data-v-14cc0798]{width:18rem;height:25rem;padding:3rem 1rem;background-image:url("+o+");background-size:cover}.shareWrapper .divContent .header[data-v-14cc0798]{height:8rem;width:16rem}.shareWrapper .divContent .header .userInfo[data-v-14cc0798]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:1rem 0 0 1rem}.shareWrapper .divContent .header .userInfo .image .img[data-v-14cc0798]{width:2rem;height:2rem;border-radius:50%}.shareWrapper .divContent .header .userInfo .title[data-v-14cc0798]{margin-left:1rem;font-size:1rem;color:#333}.shareWrapper .divContent .header .desc[data-v-14cc0798]{height:4rem;text-align:left;padding:.3rem 1rem 2rem 1rem;color:#999;overflow:hidden;text-overflow:ellipsis}.shareWrapper .divContent .footer[data-v-14cc0798]{width:7rem;height:7rem;margin-top:2rem;margin-left:1rem;background-color:red}.shareWrapper .divContent .footer .canvas[data-v-14cc0798]{width:7rem;height:7rem}.shareWrapper .close[data-v-14cc0798]{height:4rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.shareWrapper .close .icon-adsystem_icon_cancle[data-v-14cc0798]{font-size:3rem;color:#fff;width:3rem;height:3rem}",""]),t.exports=e},"25cd":function(t,e,r){var a=r("8b08");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=r("499e").default;i("4e2a1716",a,!0,{sourceMap:!1,shadowMode:!1})},"2d49":function(t,e,r){var a=r("24dd");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=r("499e").default;i("8a122f2a",a,!0,{sourceMap:!1,shadowMode:!1})},"47f4":function(t,e,r){"use strict";r("25cd")},"73f3":function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("img",{attrs:{src:t.imgSrc,alt:""}})},i=[],n=r("53ca"),o=(r("d3b7"),r("b64b"),r("d055")),c=r.n(o),s={data:function(){return{imgSrc:""}},created:function(){},methods:{createQrc:function(t){var e=this;return new Promise((function(r,a){var i="i="+e.fun.getKeyByI();if(i+="&mid="+e.fun.getKeyByMid(),"object"==Object(n["a"])(t)&&Object.keys(t).length>=1)for(var o in t)i+="&"+o+"="+t[o];var s=e.fun.getSiteRoot()+"/addons/yun_shop/?menu#/member/groupCodeLabel?"+i;c.a.toDataURL(s).then((function(t){e.imgSrc=t,e.$nextTick((function(){setTimeout(r,1e3)}))}))}))}}},l=s,d=(r("47f4"),r("2877")),p=Object(d["a"])(l,a,i,!1,null,"ff1749a8",null);e["a"]=p.exports},"88f3":function(t,e,r){"use strict";r("2d49")},"8b08":function(t,e,r){var a=r("24fb");e=a(!1),e.push([t.i,"canvas[data-v-ff1749a8],img[data-v-ff1749a8]{width:13rem;height:13rem}",""]),t.exports=e},ac0d:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var a=document.documentElement,i=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&a.clientHeight?Math.min(i.clientHeight,a.clientHeight):Math.max(i.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(i.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b157:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page"},[r("c-title",{attrs:{text:"记录"}}),r("div",{staticClass:"wrapper"},[r("div",{staticClass:"items"},[t._l(t.listData,(function(e,a){return r("van-swipe-cell",{key:a,scopedSlots:t._u([{key:"right",fn:function(){return[r("div",{staticClass:"optBtns"},[r("div",{staticClass:"optBtn edit",on:{click:function(r){return t.gotoGroupCodeEdit(e)}}},[t._v("编辑")]),r("div",{staticClass:"optBtn del",on:{click:function(r){return t.delGroupCode(e)}}},[t._v("删除")])])]},proxy:!0}],null,!0)},[r("div",{staticClass:"item",on:{click:function(r){return t.gotoGroupCodeLabel(e)}}},[r("div",{staticClass:"info"},[r("div",{staticClass:"id"},[t._v("ID:"+t._s(e.id))]),r("p",{staticClass:"time"},[t._v(t._s(e.created_at))])]),r("div",{staticClass:"content"},[t._v(" "+t._s(e.code_name)+" ")]),r("div",{staticClass:"btns"},[r("div",{staticClass:"btn share",on:{click:function(r){return r.stopPropagation(),t.openShare(e)}}},[t._v("分享")]),r("div",{staticClass:"btn data",on:{click:function(r){return r.stopPropagation(),t.gotoGroupCodeData(e)}}},[t._v("数据")])])])])})),0==t.listData.length?r("van-empty",{attrs:{description:"暂无记录"}}):t._e()],2)]),r("van-overlay",{attrs:{show:t.shareFlag},on:{click:function(e){t.shareFlag=!1}}},[r("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"100%"}},[r("transition",{attrs:{name:"van-slide-up"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.shareFlag,expression:"shareFlag"}],staticClass:"shareWrapper",on:{click:function(t){t.stopPropagation()}}},[t.qrCodeCanvasSrc?r("div",{staticClass:"imgContent"},[r("img",{attrs:{src:t.qrCodeCanvasSrc,alt:""}})]):r("div",{staticClass:"divContent"},[r("div",{staticClass:"header"},[r("div",{staticClass:"userInfo"},[r("div",{staticClass:"image"},[t.shareInfo.member_id?r("img",{staticClass:"img",attrs:{src:t.shareInfo.has_one_member.avatar_image,alt:"图片无效"}}):r("img",{staticClass:"img",attrs:{src:t.shop_log,alt:"图片无效"}})]),r("div",{staticClass:"title"},[t._v(t._s(t.shareInfo.code_name))])]),r("div",{staticClass:"desc"},[t._v(" "+t._s(t.shareInfo.code_guide)+" ")])]),r("div",{staticClass:"footer"},[r("share-canvas",{ref:"share_canvas",staticClass:"canvas"})],1)]),r("div",{staticClass:"close"},[r("i",{staticClass:"iconfont icon-adsystem_icon_cancle",on:{click:function(e){t.shareFlag=!1}}})])])])],1)])],1)},i=[],n=r("c7eb"),o=(r("e7e5"),r("d399")),c=r("1da1"),s=(r("e17f"),r("2241")),l=(r("99af"),r("d3b7"),r("159b"),r("a434"),r("73f3")),d=r("ac0d");s["a"].setDefaultOptions({confirmButtonColor:"#00b075"});var p={mixins:[d["a"]],components:{shareCanvas:l["a"]},data:function(){return{shareFlag:!1,shareInfo:{},listData:[],shop_log:"",page:1,isLoadMore:!0,total_page:0,qrCodeCanvasSrc:""}},activated:function(){this.initData(),this.getListData()},mounted:function(){this.$nextTick((function(){canvas=document.getElementById("group_code_record_canvas")}))},methods:{initData:function(){this.shareFlag=!1,this.page=1,this.isLoadMore=!0,this.total_page=0},getListData:function(){var t=this;return Object(c["a"])(Object(n["a"])().mark((function e(){var r;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o["a"].loading({message:"加载中",forbidClick:!0}),e.next=3,$http.get("plugin.group-code.api.group-code.my-group-code");case 3:if(r=e.sent,o["a"].clear(),1===r.result){e.next=8;break}return Object(o["a"])(r.msg),e.abrupt("return");case 8:t.listData=r.data.list.data,t.shop_log=r.data.shop_log,t.isLoadMore=!0,t.total_page=r.data.list.last_page,t.total_page||(t.total_page=0);case 13:case"end":return e.stop()}}),e)})))()},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.group-code.api.group-code.my-group-code",{page:this.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var r=e.data.list.data;t.listData=t.listData.concat(r)}else t.page=t.page-1,t.isLoadMore=!1})))},openShare:function(t){this.shareFlag=!0,this.shareInfo=t,this.getSharePoster(),this.$nextTick((function(){var e={groupCodeId:t.id};0==t.auth_visit&&(e.scope="base"),this.$refs.share_canvas.createQrc(e)}))},gotoGroupCodeData:function(t){this.$router.push(this.fun.getUrl("groupCodeData",{},{groupCodeId:t.id}))},gotoGroupCodeEdit:function(t){this.$router.push(this.fun.getUrl("groupCodeEdit",{},{groupCodeId:t.id}))},gotoGroupCodeLabel:function(t){this.$router.push(this.fun.getUrl("groupCodeLabel",{},{groupCodeId:t.id}))},delGroupCode:function(t){var e=this,r=this;s["a"].confirm({title:"删除活码",message:"该操作不可撤回,是否继续?",beforeClose:function(){var a=Object(c["a"])(Object(n["a"])().mark((function a(i,o){var c;return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if("confirm"!==i){a.next=11;break}return a.next=3,$http.get("plugin.group-code.api.group-code.deleted-group-code",{id:t.id});case 3:if(c=a.sent,r.$dialog.alert({message:c.msg}),1==c.result){a.next=7;break}return a.abrupt("return");case 7:e.listData.forEach((function(r,a){r.id==t.id&&e.listData.splice(a,1)})),o(),a.next=12;break;case 11:o();case 12:case"end":return a.stop()}}),a)})));function i(t,e){return a.apply(this,arguments)}return i}()})},getSharePoster:function(){var t=this;return Object(c["a"])(Object(n["a"])().mark((function e(){var r;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.get("plugin.group-code.api.group-code.get-share-poster",{id:t.shareInfo.id});case 2:r=e.sent,1==r.result||Object(o["a"])(r.msg);case 4:case"end":return e.stop()}}),e)})))()}}},u=p,f=u,h=(r("88f3"),r("2877")),m=Object(h["a"])(f,a,i,!1,null,"14cc0798",null);e["default"]=m.exports},c7eb:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("d9e2"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var a=r("53ca");function i(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",c=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(O){l=function(t,e,r){return t[e]=r}}function d(t,e,r,a){var i=e&&e.prototype instanceof f?e:f,n=Object.create(i.prototype),o=new j(a||[]);return n._invoke=function(t,e,r){var a="suspendedStart";return function(i,n){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===i)throw n;return E()}for(r.method=i,r.arg=n;;){var o=r.delegate;if(o){var c=k(o,r);if(c){if(c===u)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var s=p(t,e,r);if("normal"===s.type){if(a=r.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a="completed",r.method="throw",r.arg=s.arg)}}}(t,r,o),n}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}t.wrap=d;var u={};function f(){}function h(){}function m(){}var g={};l(g,o,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(L([])));b&&b!==e&&r.call(b,o)&&(g=b);var w=m.prototype=f.prototype=Object.create(g);function y(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(n,o,c,s){var l=p(t[n],t,o);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Object(a["a"])(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){i("next",t,c,s)}),(function(t){i("throw",t,c,s)})):e.resolve(u).then((function(t){d.value=t,c(d)}),(function(t){return i("throw",t,c,s)}))}s(l.arg)}var n;this._invoke=function(t,r){function a(){return new e((function(e,a){i(t,r,e,a)}))}return n=n?n.then(a,a):a()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var a=p(r,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,u;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function e(){for(;++a<t.length;)if(r.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return h.prototype=m,l(w,"constructor",m),l(m,"constructor",h),h.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},y(x.prototype),l(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,a,i,n){void 0===n&&(n=Promise);var o=new x(d(e,r,a,i),n);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(w),l(w,s,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var a=e.pop();if(a in t)return r.value=a,r.done=!1,r}return r.done=!0,r}},t.values=L,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return o.type="throw",o.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i],o=n.completion;if("root"===n.tryLoc)return a("end");if(n.tryLoc<=this.prev){var c=r.call(n,"catchLoc"),s=r.call(n,"finallyLoc");if(c&&s){if(this.prev<n.catchLoc)return a(n.catchLoc,!0);if(this.prev<n.finallyLoc)return a(n.finallyLoc)}else if(c){if(this.prev<n.catchLoc)return a(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return a(n.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,u):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var i=a.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},t}}}]); |