ecinc-cloud-moahygl 9.5.242 → 9.5.243

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1902,7 +1902,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".contain-box[data-v-8b74d980]{width:50
1902
1902
 
1903
1903
  /***/ }),
1904
1904
 
1905
- /***/ 5873:
1905
+ /***/ 3925:
1906
1906
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1907
1907
 
1908
1908
  "use strict";
@@ -1916,7 +1916,7 @@ __webpack_require__.r(__webpack_exports__);
1916
1916
 
1917
1917
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
1918
1918
  // Module
1919
- ___CSS_LOADER_EXPORT___.push([module.id, ".lyy-collapse[data-v-0875343a] .van-collapse-item .van-cell{padding:15px 16px 16px}[data-v-0875343a] .van-collapse-item__content{padding:0 16px}a[data-v-0875343a]{color:#333}.sidebarBox[data-v-0875343a]{position:fixed;left:0;top:0;width:5.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:80px;padding-top:30px;height:calc(100vh - 100px);border-right:1px solid #e0e0e0}.contain[data-v-0875343a]{height:100vh;width:100%}.content[data-v-0875343a]{width:calc(100% - 5.5rem);height:calc(100% - 80px);padding-left:5.5rem;background:#f9f9f9}.side-item[data-v-0875343a]{height:6.25rem;width:100%;color:#333;font-size:calc(16px + var(--fontSizeSetup))}.side-item .item-box[data-v-0875343a]{margin-top:1rem;text-align:center}.side-item .item-box .box-img[data-v-0875343a]{width:2rem;height:2rem;margin:0 auto}.side-item .item-box .box-img img[data-v-0875343a]{width:100%;height:100%}.header-box[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex;background:#53a8ff;text-align:center;position:relative;font-size:calc(18px + var(--fontSizeSetup));height:80px;line-height:90px}.title[data-v-0875343a]{display:inline-block;color:#fff;font-weight:700;overflow:hidden;-webkit-box-flex:1;-ms-flex:1;flex:1;white-space:nowrap;text-overflow:ellipsis}.active[data-v-0875343a]{color:#53a8ff;background:rgba(83,168,255,.1)}.back[data-v-0875343a]{position:absolute;left:1rem;line-height:90px}[data-v-0875343a] .van-popup--left{left:inherit!important;top:80px;-webkit-transform:none;transform:none}.paper-box[data-v-0875343a]{margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.ziliao-title[data-v-0875343a]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333}.ziliao-img[data-v-0875343a]{width:1.5rem;height:1.5rem;margin-right:.5rem}.ziliao-content[data-v-0875343a]{padding:1.25rem 0 1.25rem 2.7rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.ziliao-content[data-v-0875343a]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;bottom:0;left:1.5rem;border-bottom:1px solid #e0e0e0;-webkit-transform:scaleY(.5);transform:scaleY(.5);display:block}.ziliao-content .ziliao-content-img[data-v-0875343a]{width:1.82rem;height:2.25rem}.ziliao-content .ziliao-content-img img[data-v-0875343a]{width:100%;height:100%}.ziliao-content .title-ziliao[data-v-0875343a]{font-size:calc(14px + var(--fontSizeSetup));font-weight:400;color:#333}.ziliao-content .ziliao-content-title[data-v-0875343a]{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:1rem}.nbcontent .ziliao-content[data-v-0875343a]:last-child:after{border-bottom:none}.yiti-box[data-v-0875343a]{background:#fff;margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.yiti-box .ziliao-title[data-v-0875343a]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333}.yiti-box .ziliao-img[data-v-0875343a]{width:1.5rem;height:1.5rem;margin-right:.5rem}.yiti-box .yiti-title[data-v-0875343a]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333;padding:15px 16px 16px}.yiti-box .yiti-orderNo[data-v-0875343a]{color:#ec8423;width:1.5rem;height:1.5rem;text-align:center;margin-right:.8rem;border:2px solid #ec8423;border-radius:50%}.flex-box[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex}.between-box[data-v-0875343a]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.Marg15[data-v-0875343a]{margin-right:1.5rem}.MarL15[data-v-0875343a]{margin-left:1.25rem}.btn[data-v-0875343a]{width:5.63rem}.saveBtn[data-v-0875343a]{width:calc(100% - 40px);margin-bottom:20px;padding:10px 0;color:#fff;background:#53a8ff;text-align:center;margin-left:20px}.input-box[data-v-0875343a]{height:200px;width:100%}[data-v-0875343a] .van-field__body,[data-v-0875343a] .van-field__control{height:100%}.header-dialog[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px;height:54px;background:#f3f4f4;font-size:18px;border-radius:4px 4px 0 0}.containmeet[data-v-0875343a]{height:100%}#bodyfilebox[data-v-0875343a]{height:100%;border:1px solid #ebeef5}#bodyfilebox .edit-button[data-v-0875343a]{position:fixed;bottom:50px;right:30px;border:1px solid #494949;color:#fff;background:#494949;height:40px;width:40px;text-align:center;line-height:40px;border-radius:50%;font-size:23px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.24);box-shadow:0 3px 8px rgba(0,0,0,.24)}#bodyfilebox .color-group[data-v-0875343a]{bottom:110px;padding:6px}#bodyfilebox .color-group[data-v-0875343a],#bodyfilebox .line-group[data-v-0875343a]{position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;right:80px;background:#fff;border-radius:5px;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.24);box-shadow:0 3px 8px rgba(0,0,0,.24)}#bodyfilebox .line-group[data-v-0875343a]{bottom:170px;padding:6px 18px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:29px;width:130px}#bodyfilebox .color-group-item[data-v-0875343a]{display:block;height:30px;width:30px;border-radius:50%;background:#000;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #494949;margin:0 5px}#bodyfilebox .color-button[data-v-0875343a],#bodyfilebox .line-button-outside[data-v-0875343a]{background:#fff;padding:5px;border:none}#bodyfilebox .line-button-outside[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}#bodyfilebox .color-view[data-v-0875343a]{width:100%;height:100%;border-radius:50%}#bodyfilebox .line-view[data-v-0875343a]{width:80%;background:#000;height:1px;border-radius:2px}#bodyfilebox .line-button[data-v-0875343a]{width:22px;color:#fff;font-size:10px;line-height:18px;text-align:center;background-color:#1989fa;border-radius:100px}#bodyfilebox .success[data-v-0875343a]{background:#07c160;border:1px solid #07c160}[data-v-0875343a] #viewerContainer{top:0!important}[data-v-0875343a] .toolbar{position:fixed!important;bottom:0!important}.headerMessageName[data-v-0875343a]{text-align:left;padding-left:50px}.keywordDialog[data-v-0875343a]{top:60%}.van-cell__title[data-v-0875343a]{width:calc(100% - 32px)}.cell-flex-title[data-v-0875343a]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.cell-flex-label .cell-flex-item[data-v-0875343a],.cell-flex-title[data-v-0875343a],.cell-flex-title .cell-flex-item[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex}.text-overflow[data-v-0875343a]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-0875343a] .van-dialog__content{height:90%;overflow-y:auto}[data-v-0875343a] .van-dialog__header{padding-top:16px!important;padding-bottom:9px!important;margin-bottom:1px!important;border-bottom:1px solid #999!important}.recordMask[data-v-0875343a]{position:fixed;min-height:560px;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);z-index:3000}.recordDiv[data-v-0875343a]{width:600px;height:500px;background:#fff;border-radius:4px;top:54%;left:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.footer[data-v-0875343a]{width:100%;height:64px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box;border-top:1px solid #dee2e6}.btn[data-v-0875343a],.footer[data-v-0875343a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.btn[data-v-0875343a]{width:85px;height:35px;border-radius:3px;font-size:14px;padding:0 12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.cbtn[data-v-0875343a]{background:#fff;color:#333}.cbtn[data-v-0875343a],.qbtn[data-v-0875343a]{border:1px solid #ebeef5}.qbtn[data-v-0875343a]{background:#53a8ff;color:#fff}.btn[data-v-0875343a] .van-button__content{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.btn[data-v-0875343a] .van-button__content .van-button__icon{font-size:10px}.cell-flex-box[data-v-0875343a]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.cell-flex-box .delete-button[data-v-0875343a]{color:#53a8ff;position:absolute;right:0}.cell-flex-box .add-button[data-v-0875343a]{color:#53a8ff;font-size:14px;text-align:center;line-height:50px}.cell-flex-item[data-v-0875343a]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-wrap:nowrap;text-overflow:ellipsis;margin-right:45px}.cell-flex-box .cell-flex-item[data-v-0875343a]:nth-child(2){text-align:right}.no-more[data-v-0875343a]{color:#969799;font-size:14px;line-height:50px;text-align:center}", ""]);
1919
+ ___CSS_LOADER_EXPORT___.push([module.id, ".lyy-collapse[data-v-1fb9c8f8] .van-collapse-item .van-cell{padding:15px 16px 16px}[data-v-1fb9c8f8] .van-collapse-item__content{padding:0 16px}a[data-v-1fb9c8f8]{color:#333}.sidebarBox[data-v-1fb9c8f8]{position:fixed;left:0;top:0;width:5.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:80px;padding-top:30px;height:calc(100vh - 100px);border-right:1px solid #e0e0e0}.contain[data-v-1fb9c8f8]{height:100vh;width:100%}.content[data-v-1fb9c8f8]{width:calc(100% - 5.5rem);height:calc(100% - 80px);padding-left:5.5rem;background:#f9f9f9}.side-item[data-v-1fb9c8f8]{height:6.25rem;width:100%;color:#333;font-size:calc(16px + var(--fontSizeSetup))}.side-item .item-box[data-v-1fb9c8f8]{margin-top:1rem;text-align:center}.side-item .item-box .box-img[data-v-1fb9c8f8]{width:2rem;height:2rem;margin:0 auto}.side-item .item-box .box-img img[data-v-1fb9c8f8]{width:100%;height:100%}.header-box[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex;background:#53a8ff;text-align:center;position:relative;font-size:calc(18px + var(--fontSizeSetup));height:80px;line-height:90px}.title[data-v-1fb9c8f8]{display:inline-block;color:#fff;font-weight:700;overflow:hidden;-webkit-box-flex:1;-ms-flex:1;flex:1;white-space:nowrap;text-overflow:ellipsis}.active[data-v-1fb9c8f8]{color:#53a8ff;background:rgba(83,168,255,.1)}.back[data-v-1fb9c8f8]{position:absolute;left:1rem;line-height:90px}[data-v-1fb9c8f8] .van-popup--left{left:inherit!important;top:80px;-webkit-transform:none;transform:none}.paper-box[data-v-1fb9c8f8]{margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.ziliao-title[data-v-1fb9c8f8]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333}.ziliao-img[data-v-1fb9c8f8]{width:1.5rem;height:1.5rem;margin-right:.5rem}.ziliao-content[data-v-1fb9c8f8]{padding:1.25rem 0 1.25rem 2.7rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.ziliao-content[data-v-1fb9c8f8]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;bottom:0;left:1.5rem;border-bottom:1px solid #e0e0e0;-webkit-transform:scaleY(.5);transform:scaleY(.5);display:block}.ziliao-content .ziliao-content-img[data-v-1fb9c8f8]{width:1.82rem;height:2.25rem}.ziliao-content .ziliao-content-img img[data-v-1fb9c8f8]{width:100%;height:100%}.ziliao-content .title-ziliao[data-v-1fb9c8f8]{font-size:calc(14px + var(--fontSizeSetup));font-weight:400;color:#333}.ziliao-content .ziliao-content-title[data-v-1fb9c8f8]{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:1rem}.nbcontent .ziliao-content[data-v-1fb9c8f8]:last-child:after{border-bottom:none}.yiti-box[data-v-1fb9c8f8]{background:#fff;margin:.63rem;border:1px solid #ebedf0;border-radius:4px}.yiti-box .ziliao-title[data-v-1fb9c8f8]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333}.yiti-box .ziliao-img[data-v-1fb9c8f8]{width:1.5rem;height:1.5rem;margin-right:.5rem}.yiti-box .yiti-title[data-v-1fb9c8f8]{font-size:calc(16px + var(--fontSizeSetup));font-weight:600;color:#333;padding:15px 16px 16px}.yiti-box .yiti-orderNo[data-v-1fb9c8f8]{color:#ec8423;width:1.5rem;height:1.5rem;text-align:center;margin-right:.8rem;border:2px solid #ec8423;border-radius:50%}.flex-box[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex}.between-box[data-v-1fb9c8f8]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.Marg15[data-v-1fb9c8f8]{margin-right:1.5rem}.MarL15[data-v-1fb9c8f8]{margin-left:1.25rem}.btn[data-v-1fb9c8f8]{width:5.63rem}.saveBtn[data-v-1fb9c8f8]{width:calc(100% - 40px);margin-bottom:20px;padding:10px 0;color:#fff;background:#53a8ff;text-align:center;margin-left:20px}.input-box[data-v-1fb9c8f8]{height:200px;width:100%}[data-v-1fb9c8f8] .van-field__body,[data-v-1fb9c8f8] .van-field__control{height:100%}.header-dialog[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px;height:54px;background:#f3f4f4;font-size:18px;border-radius:4px 4px 0 0}.containmeet[data-v-1fb9c8f8]{height:100%}#bodyfilebox[data-v-1fb9c8f8]{height:100%;border:1px solid #ebeef5}#bodyfilebox .edit-button[data-v-1fb9c8f8]{position:fixed;bottom:50px;right:30px;border:1px solid #494949;color:#fff;background:#494949;height:40px;width:40px;text-align:center;line-height:40px;border-radius:50%;font-size:23px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.24);box-shadow:0 3px 8px rgba(0,0,0,.24)}#bodyfilebox .color-group[data-v-1fb9c8f8]{bottom:110px;padding:6px}#bodyfilebox .color-group[data-v-1fb9c8f8],#bodyfilebox .line-group[data-v-1fb9c8f8]{position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;right:80px;background:#fff;border-radius:5px;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.24);box-shadow:0 3px 8px rgba(0,0,0,.24)}#bodyfilebox .line-group[data-v-1fb9c8f8]{bottom:170px;padding:6px 18px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:29px;width:130px}#bodyfilebox .color-group-item[data-v-1fb9c8f8]{display:block;height:30px;width:30px;border-radius:50%;background:#000;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #494949;margin:0 5px}#bodyfilebox .color-button[data-v-1fb9c8f8],#bodyfilebox .line-button-outside[data-v-1fb9c8f8]{background:#fff;padding:5px;border:none}#bodyfilebox .line-button-outside[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}#bodyfilebox .color-view[data-v-1fb9c8f8]{width:100%;height:100%;border-radius:50%}#bodyfilebox .line-view[data-v-1fb9c8f8]{width:80%;background:#000;height:1px;border-radius:2px}#bodyfilebox .line-button[data-v-1fb9c8f8]{width:22px;color:#fff;font-size:10px;line-height:18px;text-align:center;background-color:#1989fa;border-radius:100px}#bodyfilebox .success[data-v-1fb9c8f8]{background:#07c160;border:1px solid #07c160}[data-v-1fb9c8f8] #viewerContainer{top:0!important}[data-v-1fb9c8f8] .toolbar{position:fixed!important;bottom:0!important}.headerMessageName[data-v-1fb9c8f8]{text-align:left;padding-left:50px}.keywordDialog[data-v-1fb9c8f8]{top:60%}.van-cell__title[data-v-1fb9c8f8]{width:calc(100% - 32px)}.cell-flex-title[data-v-1fb9c8f8]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.cell-flex-label .cell-flex-item[data-v-1fb9c8f8],.cell-flex-title[data-v-1fb9c8f8],.cell-flex-title .cell-flex-item[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex}.text-overflow[data-v-1fb9c8f8]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-1fb9c8f8] .van-dialog__content{height:90%;overflow-y:auto}[data-v-1fb9c8f8] .van-dialog__header{padding-top:16px!important;padding-bottom:9px!important;margin-bottom:1px!important;border-bottom:1px solid #999!important}.recordMask[data-v-1fb9c8f8]{position:fixed;min-height:560px;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);z-index:3000}.recordDiv[data-v-1fb9c8f8]{width:600px;height:500px;background:#fff;border-radius:4px;top:54%;left:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.footer[data-v-1fb9c8f8]{width:100%;height:64px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box;border-top:1px solid #dee2e6}.btn[data-v-1fb9c8f8],.footer[data-v-1fb9c8f8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.btn[data-v-1fb9c8f8]{width:85px;height:35px;border-radius:3px;font-size:14px;padding:0 12px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.cbtn[data-v-1fb9c8f8]{background:#fff;color:#333}.cbtn[data-v-1fb9c8f8],.qbtn[data-v-1fb9c8f8]{border:1px solid #ebeef5}.qbtn[data-v-1fb9c8f8]{background:#53a8ff;color:#fff}.btn[data-v-1fb9c8f8] .van-button__content{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.btn[data-v-1fb9c8f8] .van-button__content .van-button__icon{font-size:10px}.cell-flex-box[data-v-1fb9c8f8]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.cell-flex-box .delete-button[data-v-1fb9c8f8]{color:#53a8ff;position:absolute;right:0}.cell-flex-box .add-button[data-v-1fb9c8f8]{color:#53a8ff;font-size:14px;text-align:center;line-height:50px}.cell-flex-item[data-v-1fb9c8f8]{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-wrap:nowrap;text-overflow:ellipsis;margin-right:45px}.cell-flex-box .cell-flex-item[data-v-1fb9c8f8]:nth-child(2){text-align:right}.no-more[data-v-1fb9c8f8]{color:#969799;font-size:14px;line-height:50px;text-align:center}", ""]);
1920
1920
  // Exports
1921
1921
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
1922
1922
 
@@ -35335,19 +35335,19 @@ var update = add("63eb1800", content, true, {"sourceMap":false,"shadowMode":fals
35335
35335
 
35336
35336
  /***/ }),
35337
35337
 
35338
- /***/ 7807:
35338
+ /***/ 9183:
35339
35339
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
35340
35340
 
35341
35341
  // style-loader: Adds some css to the DOM by adding a <style> tag
35342
35342
 
35343
35343
  // load the styles
35344
- var content = __webpack_require__(5873);
35344
+ var content = __webpack_require__(3925);
35345
35345
  if(content.__esModule) content = content.default;
35346
35346
  if(typeof content === 'string') content = [[module.id, content, '']];
35347
35347
  if(content.locals) module.exports = content.locals;
35348
35348
  // add the styles to the DOM
35349
35349
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
35350
- var update = add("1d0a4ff6", content, true, {"sourceMap":false,"shadowMode":false});
35350
+ var update = add("399d6623", content, true, {"sourceMap":false,"shadowMode":false});
35351
35351
 
35352
35352
  /***/ }),
35353
35353
 
@@ -37120,8 +37120,8 @@ var staticRenderFns = [];
37120
37120
 
37121
37121
  ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/index.vue?vue&type=template&id=edaf50ae&scoped=true
37122
37122
 
37123
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=0875343a&scoped=true
37124
- var FileViewvue_type_template_id_0875343a_scoped_true_render = function render() {
37123
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=1fb9c8f8&scoped=true
37124
+ var FileViewvue_type_template_id_1fb9c8f8_scoped_true_render = function render() {
37125
37125
  var _vm = this,
37126
37126
  _c = _vm._self._c;
37127
37127
  return _c('div', [_c('div', {
@@ -37819,7 +37819,7 @@ var FileViewvue_type_template_id_0875343a_scoped_true_render = function render()
37819
37819
  ref: "ServeDialog"
37820
37820
  })], 1)])]);
37821
37821
  };
37822
- var FileViewvue_type_template_id_0875343a_scoped_true_staticRenderFns = [function () {
37822
+ var FileViewvue_type_template_id_1fb9c8f8_scoped_true_staticRenderFns = [function () {
37823
37823
  var _vm = this,
37824
37824
  _c = _vm._self._c;
37825
37825
  return _c('div', {
@@ -37878,3046 +37878,7 @@ var FileViewvue_type_template_id_0875343a_scoped_true_staticRenderFns = [functio
37878
37878
  })]);
37879
37879
  }];
37880
37880
 
37881
- ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=0875343a&scoped=true
37882
-
37883
- ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
37884
- var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
37885
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
37886
- ;// CONCATENATED MODULE: ./node_modules/vue-router/dist/vue-router.esm.js
37887
- /*!
37888
- * vue-router v3.6.5
37889
- * (c) 2022 Evan You
37890
- * @license MIT
37891
- */
37892
- /* */
37893
-
37894
- function assert (condition, message) {
37895
- if (!condition) {
37896
- throw new Error(("[vue-router] " + message))
37897
- }
37898
- }
37899
-
37900
- function warn (condition, message) {
37901
- if (!condition) {
37902
- typeof console !== 'undefined' && console.warn(("[vue-router] " + message));
37903
- }
37904
- }
37905
-
37906
- function extend (a, b) {
37907
- for (var key in b) {
37908
- a[key] = b[key];
37909
- }
37910
- return a
37911
- }
37912
-
37913
- /* */
37914
-
37915
- var encodeReserveRE = /[!'()*]/g;
37916
- var encodeReserveReplacer = function (c) { return '%' + c.charCodeAt(0).toString(16); };
37917
- var commaRE = /%2C/g;
37918
-
37919
- // fixed encodeURIComponent which is more conformant to RFC3986:
37920
- // - escapes [!'()*]
37921
- // - preserve commas
37922
- var encode = function (str) { return encodeURIComponent(str)
37923
- .replace(encodeReserveRE, encodeReserveReplacer)
37924
- .replace(commaRE, ','); };
37925
-
37926
- function decode (str) {
37927
- try {
37928
- return decodeURIComponent(str)
37929
- } catch (err) {
37930
- if (false) {}
37931
- }
37932
- return str
37933
- }
37934
-
37935
- function resolveQuery (
37936
- query,
37937
- extraQuery,
37938
- _parseQuery
37939
- ) {
37940
- if ( extraQuery === void 0 ) extraQuery = {};
37941
-
37942
- var parse = _parseQuery || parseQuery;
37943
- var parsedQuery;
37944
- try {
37945
- parsedQuery = parse(query || '');
37946
- } catch (e) {
37947
- false && 0;
37948
- parsedQuery = {};
37949
- }
37950
- for (var key in extraQuery) {
37951
- var value = extraQuery[key];
37952
- parsedQuery[key] = Array.isArray(value)
37953
- ? value.map(castQueryParamValue)
37954
- : castQueryParamValue(value);
37955
- }
37956
- return parsedQuery
37957
- }
37958
-
37959
- var castQueryParamValue = function (value) { return (value == null || typeof value === 'object' ? value : String(value)); };
37960
-
37961
- function parseQuery (query) {
37962
- var res = {};
37963
-
37964
- query = query.trim().replace(/^(\?|#|&)/, '');
37965
-
37966
- if (!query) {
37967
- return res
37968
- }
37969
-
37970
- query.split('&').forEach(function (param) {
37971
- var parts = param.replace(/\+/g, ' ').split('=');
37972
- var key = decode(parts.shift());
37973
- var val = parts.length > 0 ? decode(parts.join('=')) : null;
37974
-
37975
- if (res[key] === undefined) {
37976
- res[key] = val;
37977
- } else if (Array.isArray(res[key])) {
37978
- res[key].push(val);
37979
- } else {
37980
- res[key] = [res[key], val];
37981
- }
37982
- });
37983
-
37984
- return res
37985
- }
37986
-
37987
- function stringifyQuery (obj) {
37988
- var res = obj
37989
- ? Object.keys(obj)
37990
- .map(function (key) {
37991
- var val = obj[key];
37992
-
37993
- if (val === undefined) {
37994
- return ''
37995
- }
37996
-
37997
- if (val === null) {
37998
- return encode(key)
37999
- }
38000
-
38001
- if (Array.isArray(val)) {
38002
- var result = [];
38003
- val.forEach(function (val2) {
38004
- if (val2 === undefined) {
38005
- return
38006
- }
38007
- if (val2 === null) {
38008
- result.push(encode(key));
38009
- } else {
38010
- result.push(encode(key) + '=' + encode(val2));
38011
- }
38012
- });
38013
- return result.join('&')
38014
- }
38015
-
38016
- return encode(key) + '=' + encode(val)
38017
- })
38018
- .filter(function (x) { return x.length > 0; })
38019
- .join('&')
38020
- : null;
38021
- return res ? ("?" + res) : ''
38022
- }
38023
-
38024
- /* */
38025
-
38026
- var trailingSlashRE = /\/?$/;
38027
-
38028
- function createRoute (
38029
- record,
38030
- location,
38031
- redirectedFrom,
38032
- router
38033
- ) {
38034
- var stringifyQuery = router && router.options.stringifyQuery;
38035
-
38036
- var query = location.query || {};
38037
- try {
38038
- query = clone(query);
38039
- } catch (e) {}
38040
-
38041
- var route = {
38042
- name: location.name || (record && record.name),
38043
- meta: (record && record.meta) || {},
38044
- path: location.path || '/',
38045
- hash: location.hash || '',
38046
- query: query,
38047
- params: location.params || {},
38048
- fullPath: getFullPath(location, stringifyQuery),
38049
- matched: record ? formatMatch(record) : []
38050
- };
38051
- if (redirectedFrom) {
38052
- route.redirectedFrom = getFullPath(redirectedFrom, stringifyQuery);
38053
- }
38054
- return Object.freeze(route)
38055
- }
38056
-
38057
- function clone (value) {
38058
- if (Array.isArray(value)) {
38059
- return value.map(clone)
38060
- } else if (value && typeof value === 'object') {
38061
- var res = {};
38062
- for (var key in value) {
38063
- res[key] = clone(value[key]);
38064
- }
38065
- return res
38066
- } else {
38067
- return value
38068
- }
38069
- }
38070
-
38071
- // the starting route that represents the initial state
38072
- var START = createRoute(null, {
38073
- path: '/'
38074
- });
38075
-
38076
- function formatMatch (record) {
38077
- var res = [];
38078
- while (record) {
38079
- res.unshift(record);
38080
- record = record.parent;
38081
- }
38082
- return res
38083
- }
38084
-
38085
- function getFullPath (
38086
- ref,
38087
- _stringifyQuery
38088
- ) {
38089
- var path = ref.path;
38090
- var query = ref.query; if ( query === void 0 ) query = {};
38091
- var hash = ref.hash; if ( hash === void 0 ) hash = '';
38092
-
38093
- var stringify = _stringifyQuery || stringifyQuery;
38094
- return (path || '/') + stringify(query) + hash
38095
- }
38096
-
38097
- function isSameRoute (a, b, onlyPath) {
38098
- if (b === START) {
38099
- return a === b
38100
- } else if (!b) {
38101
- return false
38102
- } else if (a.path && b.path) {
38103
- return a.path.replace(trailingSlashRE, '') === b.path.replace(trailingSlashRE, '') && (onlyPath ||
38104
- a.hash === b.hash &&
38105
- isObjectEqual(a.query, b.query))
38106
- } else if (a.name && b.name) {
38107
- return (
38108
- a.name === b.name &&
38109
- (onlyPath || (
38110
- a.hash === b.hash &&
38111
- isObjectEqual(a.query, b.query) &&
38112
- isObjectEqual(a.params, b.params))
38113
- )
38114
- )
38115
- } else {
38116
- return false
38117
- }
38118
- }
38119
-
38120
- function isObjectEqual (a, b) {
38121
- if ( a === void 0 ) a = {};
38122
- if ( b === void 0 ) b = {};
38123
-
38124
- // handle null value #1566
38125
- if (!a || !b) { return a === b }
38126
- var aKeys = Object.keys(a).sort();
38127
- var bKeys = Object.keys(b).sort();
38128
- if (aKeys.length !== bKeys.length) {
38129
- return false
38130
- }
38131
- return aKeys.every(function (key, i) {
38132
- var aVal = a[key];
38133
- var bKey = bKeys[i];
38134
- if (bKey !== key) { return false }
38135
- var bVal = b[key];
38136
- // query values can be null and undefined
38137
- if (aVal == null || bVal == null) { return aVal === bVal }
38138
- // check nested equality
38139
- if (typeof aVal === 'object' && typeof bVal === 'object') {
38140
- return isObjectEqual(aVal, bVal)
38141
- }
38142
- return String(aVal) === String(bVal)
38143
- })
38144
- }
38145
-
38146
- function isIncludedRoute (current, target) {
38147
- return (
38148
- current.path.replace(trailingSlashRE, '/').indexOf(
38149
- target.path.replace(trailingSlashRE, '/')
38150
- ) === 0 &&
38151
- (!target.hash || current.hash === target.hash) &&
38152
- queryIncludes(current.query, target.query)
38153
- )
38154
- }
38155
-
38156
- function queryIncludes (current, target) {
38157
- for (var key in target) {
38158
- if (!(key in current)) {
38159
- return false
38160
- }
38161
- }
38162
- return true
38163
- }
38164
-
38165
- function handleRouteEntered (route) {
38166
- for (var i = 0; i < route.matched.length; i++) {
38167
- var record = route.matched[i];
38168
- for (var name in record.instances) {
38169
- var instance = record.instances[name];
38170
- var cbs = record.enteredCbs[name];
38171
- if (!instance || !cbs) { continue }
38172
- delete record.enteredCbs[name];
38173
- for (var i$1 = 0; i$1 < cbs.length; i$1++) {
38174
- if (!instance._isBeingDestroyed) { cbs[i$1](instance); }
38175
- }
38176
- }
38177
- }
38178
- }
38179
-
38180
- var View = {
38181
- name: 'RouterView',
38182
- functional: true,
38183
- props: {
38184
- name: {
38185
- type: String,
38186
- default: 'default'
38187
- }
38188
- },
38189
- render: function render (_, ref) {
38190
- var props = ref.props;
38191
- var children = ref.children;
38192
- var parent = ref.parent;
38193
- var data = ref.data;
38194
-
38195
- // used by devtools to display a router-view badge
38196
- data.routerView = true;
38197
-
38198
- // directly use parent context's createElement() function
38199
- // so that components rendered by router-view can resolve named slots
38200
- var h = parent.$createElement;
38201
- var name = props.name;
38202
- var route = parent.$route;
38203
- var cache = parent._routerViewCache || (parent._routerViewCache = {});
38204
-
38205
- // determine current view depth, also check to see if the tree
38206
- // has been toggled inactive but kept-alive.
38207
- var depth = 0;
38208
- var inactive = false;
38209
- while (parent && parent._routerRoot !== parent) {
38210
- var vnodeData = parent.$vnode ? parent.$vnode.data : {};
38211
- if (vnodeData.routerView) {
38212
- depth++;
38213
- }
38214
- if (vnodeData.keepAlive && parent._directInactive && parent._inactive) {
38215
- inactive = true;
38216
- }
38217
- parent = parent.$parent;
38218
- }
38219
- data.routerViewDepth = depth;
38220
-
38221
- // render previous view if the tree is inactive and kept-alive
38222
- if (inactive) {
38223
- var cachedData = cache[name];
38224
- var cachedComponent = cachedData && cachedData.component;
38225
- if (cachedComponent) {
38226
- // #2301
38227
- // pass props
38228
- if (cachedData.configProps) {
38229
- fillPropsinData(cachedComponent, data, cachedData.route, cachedData.configProps);
38230
- }
38231
- return h(cachedComponent, data, children)
38232
- } else {
38233
- // render previous empty view
38234
- return h()
38235
- }
38236
- }
38237
-
38238
- var matched = route.matched[depth];
38239
- var component = matched && matched.components[name];
38240
-
38241
- // render empty node if no matched route or no config component
38242
- if (!matched || !component) {
38243
- cache[name] = null;
38244
- return h()
38245
- }
38246
-
38247
- // cache component
38248
- cache[name] = { component: component };
38249
-
38250
- // attach instance registration hook
38251
- // this will be called in the instance's injected lifecycle hooks
38252
- data.registerRouteInstance = function (vm, val) {
38253
- // val could be undefined for unregistration
38254
- var current = matched.instances[name];
38255
- if (
38256
- (val && current !== vm) ||
38257
- (!val && current === vm)
38258
- ) {
38259
- matched.instances[name] = val;
38260
- }
38261
- }
38262
-
38263
- // also register instance in prepatch hook
38264
- // in case the same component instance is reused across different routes
38265
- ;(data.hook || (data.hook = {})).prepatch = function (_, vnode) {
38266
- matched.instances[name] = vnode.componentInstance;
38267
- };
38268
-
38269
- // register instance in init hook
38270
- // in case kept-alive component be actived when routes changed
38271
- data.hook.init = function (vnode) {
38272
- if (vnode.data.keepAlive &&
38273
- vnode.componentInstance &&
38274
- vnode.componentInstance !== matched.instances[name]
38275
- ) {
38276
- matched.instances[name] = vnode.componentInstance;
38277
- }
38278
-
38279
- // if the route transition has already been confirmed then we weren't
38280
- // able to call the cbs during confirmation as the component was not
38281
- // registered yet, so we call it here.
38282
- handleRouteEntered(route);
38283
- };
38284
-
38285
- var configProps = matched.props && matched.props[name];
38286
- // save route and configProps in cache
38287
- if (configProps) {
38288
- extend(cache[name], {
38289
- route: route,
38290
- configProps: configProps
38291
- });
38292
- fillPropsinData(component, data, route, configProps);
38293
- }
38294
-
38295
- return h(component, data, children)
38296
- }
38297
- };
38298
-
38299
- function fillPropsinData (component, data, route, configProps) {
38300
- // resolve props
38301
- var propsToPass = data.props = resolveProps(route, configProps);
38302
- if (propsToPass) {
38303
- // clone to prevent mutation
38304
- propsToPass = data.props = extend({}, propsToPass);
38305
- // pass non-declared props as attrs
38306
- var attrs = data.attrs = data.attrs || {};
38307
- for (var key in propsToPass) {
38308
- if (!component.props || !(key in component.props)) {
38309
- attrs[key] = propsToPass[key];
38310
- delete propsToPass[key];
38311
- }
38312
- }
38313
- }
38314
- }
38315
-
38316
- function resolveProps (route, config) {
38317
- switch (typeof config) {
38318
- case 'undefined':
38319
- return
38320
- case 'object':
38321
- return config
38322
- case 'function':
38323
- return config(route)
38324
- case 'boolean':
38325
- return config ? route.params : undefined
38326
- default:
38327
- if (false) {}
38328
- }
38329
- }
38330
-
38331
- /* */
38332
-
38333
- function resolvePath (
38334
- relative,
38335
- base,
38336
- append
38337
- ) {
38338
- var firstChar = relative.charAt(0);
38339
- if (firstChar === '/') {
38340
- return relative
38341
- }
38342
-
38343
- if (firstChar === '?' || firstChar === '#') {
38344
- return base + relative
38345
- }
38346
-
38347
- var stack = base.split('/');
38348
-
38349
- // remove trailing segment if:
38350
- // - not appending
38351
- // - appending to trailing slash (last segment is empty)
38352
- if (!append || !stack[stack.length - 1]) {
38353
- stack.pop();
38354
- }
38355
-
38356
- // resolve relative path
38357
- var segments = relative.replace(/^\//, '').split('/');
38358
- for (var i = 0; i < segments.length; i++) {
38359
- var segment = segments[i];
38360
- if (segment === '..') {
38361
- stack.pop();
38362
- } else if (segment !== '.') {
38363
- stack.push(segment);
38364
- }
38365
- }
38366
-
38367
- // ensure leading slash
38368
- if (stack[0] !== '') {
38369
- stack.unshift('');
38370
- }
38371
-
38372
- return stack.join('/')
38373
- }
38374
-
38375
- function parsePath (path) {
38376
- var hash = '';
38377
- var query = '';
38378
-
38379
- var hashIndex = path.indexOf('#');
38380
- if (hashIndex >= 0) {
38381
- hash = path.slice(hashIndex);
38382
- path = path.slice(0, hashIndex);
38383
- }
38384
-
38385
- var queryIndex = path.indexOf('?');
38386
- if (queryIndex >= 0) {
38387
- query = path.slice(queryIndex + 1);
38388
- path = path.slice(0, queryIndex);
38389
- }
38390
-
38391
- return {
38392
- path: path,
38393
- query: query,
38394
- hash: hash
38395
- }
38396
- }
38397
-
38398
- function cleanPath (path) {
38399
- return path.replace(/\/(?:\s*\/)+/g, '/')
38400
- }
38401
-
38402
- var isarray = Array.isArray || function (arr) {
38403
- return Object.prototype.toString.call(arr) == '[object Array]';
38404
- };
38405
-
38406
- /**
38407
- * Expose `pathToRegexp`.
38408
- */
38409
- var pathToRegexp_1 = pathToRegexp;
38410
- var parse_1 = parse;
38411
- var compile_1 = compile;
38412
- var tokensToFunction_1 = tokensToFunction;
38413
- var tokensToRegExp_1 = tokensToRegExp;
38414
-
38415
- /**
38416
- * The main path matching regexp utility.
38417
- *
38418
- * @type {RegExp}
38419
- */
38420
- var PATH_REGEXP = new RegExp([
38421
- // Match escaped characters that would otherwise appear in future matches.
38422
- // This allows the user to escape special characters that won't transform.
38423
- '(\\\\.)',
38424
- // Match Express-style parameters and un-named parameters with a prefix
38425
- // and optional suffixes. Matches appear as:
38426
- //
38427
- // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
38428
- // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
38429
- // "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
38430
- '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
38431
- ].join('|'), 'g');
38432
-
38433
- /**
38434
- * Parse a string for the raw tokens.
38435
- *
38436
- * @param {string} str
38437
- * @param {Object=} options
38438
- * @return {!Array}
38439
- */
38440
- function parse (str, options) {
38441
- var tokens = [];
38442
- var key = 0;
38443
- var index = 0;
38444
- var path = '';
38445
- var defaultDelimiter = options && options.delimiter || '/';
38446
- var res;
38447
-
38448
- while ((res = PATH_REGEXP.exec(str)) != null) {
38449
- var m = res[0];
38450
- var escaped = res[1];
38451
- var offset = res.index;
38452
- path += str.slice(index, offset);
38453
- index = offset + m.length;
38454
-
38455
- // Ignore already escaped sequences.
38456
- if (escaped) {
38457
- path += escaped[1];
38458
- continue
38459
- }
38460
-
38461
- var next = str[index];
38462
- var prefix = res[2];
38463
- var name = res[3];
38464
- var capture = res[4];
38465
- var group = res[5];
38466
- var modifier = res[6];
38467
- var asterisk = res[7];
38468
-
38469
- // Push the current path onto the tokens.
38470
- if (path) {
38471
- tokens.push(path);
38472
- path = '';
38473
- }
38474
-
38475
- var partial = prefix != null && next != null && next !== prefix;
38476
- var repeat = modifier === '+' || modifier === '*';
38477
- var optional = modifier === '?' || modifier === '*';
38478
- var delimiter = res[2] || defaultDelimiter;
38479
- var pattern = capture || group;
38480
-
38481
- tokens.push({
38482
- name: name || key++,
38483
- prefix: prefix || '',
38484
- delimiter: delimiter,
38485
- optional: optional,
38486
- repeat: repeat,
38487
- partial: partial,
38488
- asterisk: !!asterisk,
38489
- pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
38490
- });
38491
- }
38492
-
38493
- // Match any characters still remaining.
38494
- if (index < str.length) {
38495
- path += str.substr(index);
38496
- }
38497
-
38498
- // If the path exists, push it onto the end.
38499
- if (path) {
38500
- tokens.push(path);
38501
- }
38502
-
38503
- return tokens
38504
- }
38505
-
38506
- /**
38507
- * Compile a string to a template function for the path.
38508
- *
38509
- * @param {string} str
38510
- * @param {Object=} options
38511
- * @return {!function(Object=, Object=)}
38512
- */
38513
- function compile (str, options) {
38514
- return tokensToFunction(parse(str, options), options)
38515
- }
38516
-
38517
- /**
38518
- * Prettier encoding of URI path segments.
38519
- *
38520
- * @param {string}
38521
- * @return {string}
38522
- */
38523
- function encodeURIComponentPretty (str) {
38524
- return encodeURI(str).replace(/[\/?#]/g, function (c) {
38525
- return '%' + c.charCodeAt(0).toString(16).toUpperCase()
38526
- })
38527
- }
38528
-
38529
- /**
38530
- * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
38531
- *
38532
- * @param {string}
38533
- * @return {string}
38534
- */
38535
- function encodeAsterisk (str) {
38536
- return encodeURI(str).replace(/[?#]/g, function (c) {
38537
- return '%' + c.charCodeAt(0).toString(16).toUpperCase()
38538
- })
38539
- }
38540
-
38541
- /**
38542
- * Expose a method for transforming tokens into the path function.
38543
- */
38544
- function tokensToFunction (tokens, options) {
38545
- // Compile all the tokens into regexps.
38546
- var matches = new Array(tokens.length);
38547
-
38548
- // Compile all the patterns before compilation.
38549
- for (var i = 0; i < tokens.length; i++) {
38550
- if (typeof tokens[i] === 'object') {
38551
- matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options));
38552
- }
38553
- }
38554
-
38555
- return function (obj, opts) {
38556
- var path = '';
38557
- var data = obj || {};
38558
- var options = opts || {};
38559
- var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;
38560
-
38561
- for (var i = 0; i < tokens.length; i++) {
38562
- var token = tokens[i];
38563
-
38564
- if (typeof token === 'string') {
38565
- path += token;
38566
-
38567
- continue
38568
- }
38569
-
38570
- var value = data[token.name];
38571
- var segment;
38572
-
38573
- if (value == null) {
38574
- if (token.optional) {
38575
- // Prepend partial segment prefixes.
38576
- if (token.partial) {
38577
- path += token.prefix;
38578
- }
38579
-
38580
- continue
38581
- } else {
38582
- throw new TypeError('Expected "' + token.name + '" to be defined')
38583
- }
38584
- }
38585
-
38586
- if (isarray(value)) {
38587
- if (!token.repeat) {
38588
- throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
38589
- }
38590
-
38591
- if (value.length === 0) {
38592
- if (token.optional) {
38593
- continue
38594
- } else {
38595
- throw new TypeError('Expected "' + token.name + '" to not be empty')
38596
- }
38597
- }
38598
-
38599
- for (var j = 0; j < value.length; j++) {
38600
- segment = encode(value[j]);
38601
-
38602
- if (!matches[i].test(segment)) {
38603
- throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
38604
- }
38605
-
38606
- path += (j === 0 ? token.prefix : token.delimiter) + segment;
38607
- }
38608
-
38609
- continue
38610
- }
38611
-
38612
- segment = token.asterisk ? encodeAsterisk(value) : encode(value);
38613
-
38614
- if (!matches[i].test(segment)) {
38615
- throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
38616
- }
38617
-
38618
- path += token.prefix + segment;
38619
- }
38620
-
38621
- return path
38622
- }
38623
- }
38624
-
38625
- /**
38626
- * Escape a regular expression string.
38627
- *
38628
- * @param {string} str
38629
- * @return {string}
38630
- */
38631
- function escapeString (str) {
38632
- return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
38633
- }
38634
-
38635
- /**
38636
- * Escape the capturing group by escaping special characters and meaning.
38637
- *
38638
- * @param {string} group
38639
- * @return {string}
38640
- */
38641
- function escapeGroup (group) {
38642
- return group.replace(/([=!:$\/()])/g, '\\$1')
38643
- }
38644
-
38645
- /**
38646
- * Attach the keys as a property of the regexp.
38647
- *
38648
- * @param {!RegExp} re
38649
- * @param {Array} keys
38650
- * @return {!RegExp}
38651
- */
38652
- function attachKeys (re, keys) {
38653
- re.keys = keys;
38654
- return re
38655
- }
38656
-
38657
- /**
38658
- * Get the flags for a regexp from the options.
38659
- *
38660
- * @param {Object} options
38661
- * @return {string}
38662
- */
38663
- function flags (options) {
38664
- return options && options.sensitive ? '' : 'i'
38665
- }
38666
-
38667
- /**
38668
- * Pull out keys from a regexp.
38669
- *
38670
- * @param {!RegExp} path
38671
- * @param {!Array} keys
38672
- * @return {!RegExp}
38673
- */
38674
- function regexpToRegexp (path, keys) {
38675
- // Use a negative lookahead to match only capturing groups.
38676
- var groups = path.source.match(/\((?!\?)/g);
38677
-
38678
- if (groups) {
38679
- for (var i = 0; i < groups.length; i++) {
38680
- keys.push({
38681
- name: i,
38682
- prefix: null,
38683
- delimiter: null,
38684
- optional: false,
38685
- repeat: false,
38686
- partial: false,
38687
- asterisk: false,
38688
- pattern: null
38689
- });
38690
- }
38691
- }
38692
-
38693
- return attachKeys(path, keys)
38694
- }
38695
-
38696
- /**
38697
- * Transform an array into a regexp.
38698
- *
38699
- * @param {!Array} path
38700
- * @param {Array} keys
38701
- * @param {!Object} options
38702
- * @return {!RegExp}
38703
- */
38704
- function arrayToRegexp (path, keys, options) {
38705
- var parts = [];
38706
-
38707
- for (var i = 0; i < path.length; i++) {
38708
- parts.push(pathToRegexp(path[i], keys, options).source);
38709
- }
38710
-
38711
- var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));
38712
-
38713
- return attachKeys(regexp, keys)
38714
- }
38715
-
38716
- /**
38717
- * Create a path regexp from string input.
38718
- *
38719
- * @param {string} path
38720
- * @param {!Array} keys
38721
- * @param {!Object} options
38722
- * @return {!RegExp}
38723
- */
38724
- function stringToRegexp (path, keys, options) {
38725
- return tokensToRegExp(parse(path, options), keys, options)
38726
- }
38727
-
38728
- /**
38729
- * Expose a function for taking tokens and returning a RegExp.
38730
- *
38731
- * @param {!Array} tokens
38732
- * @param {(Array|Object)=} keys
38733
- * @param {Object=} options
38734
- * @return {!RegExp}
38735
- */
38736
- function tokensToRegExp (tokens, keys, options) {
38737
- if (!isarray(keys)) {
38738
- options = /** @type {!Object} */ (keys || options);
38739
- keys = [];
38740
- }
38741
-
38742
- options = options || {};
38743
-
38744
- var strict = options.strict;
38745
- var end = options.end !== false;
38746
- var route = '';
38747
-
38748
- // Iterate over the tokens and create our regexp string.
38749
- for (var i = 0; i < tokens.length; i++) {
38750
- var token = tokens[i];
38751
-
38752
- if (typeof token === 'string') {
38753
- route += escapeString(token);
38754
- } else {
38755
- var prefix = escapeString(token.prefix);
38756
- var capture = '(?:' + token.pattern + ')';
38757
-
38758
- keys.push(token);
38759
-
38760
- if (token.repeat) {
38761
- capture += '(?:' + prefix + capture + ')*';
38762
- }
38763
-
38764
- if (token.optional) {
38765
- if (!token.partial) {
38766
- capture = '(?:' + prefix + '(' + capture + '))?';
38767
- } else {
38768
- capture = prefix + '(' + capture + ')?';
38769
- }
38770
- } else {
38771
- capture = prefix + '(' + capture + ')';
38772
- }
38773
-
38774
- route += capture;
38775
- }
38776
- }
38777
-
38778
- var delimiter = escapeString(options.delimiter || '/');
38779
- var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
38780
-
38781
- // In non-strict mode we allow a slash at the end of match. If the path to
38782
- // match already ends with a slash, we remove it for consistency. The slash
38783
- // is valid at the end of a path match, not in the middle. This is important
38784
- // in non-ending mode, where "/test/" shouldn't match "/test//route".
38785
- if (!strict) {
38786
- route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';
38787
- }
38788
-
38789
- if (end) {
38790
- route += '$';
38791
- } else {
38792
- // In non-ending mode, we need the capturing groups to match as much as
38793
- // possible by using a positive lookahead to the end or next path segment.
38794
- route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';
38795
- }
38796
-
38797
- return attachKeys(new RegExp('^' + route, flags(options)), keys)
38798
- }
38799
-
38800
- /**
38801
- * Normalize the given path string, returning a regular expression.
38802
- *
38803
- * An empty array can be passed in for the keys, which will hold the
38804
- * placeholder key descriptions. For example, using `/user/:id`, `keys` will
38805
- * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
38806
- *
38807
- * @param {(string|RegExp|Array)} path
38808
- * @param {(Array|Object)=} keys
38809
- * @param {Object=} options
38810
- * @return {!RegExp}
38811
- */
38812
- function pathToRegexp (path, keys, options) {
38813
- if (!isarray(keys)) {
38814
- options = /** @type {!Object} */ (keys || options);
38815
- keys = [];
38816
- }
38817
-
38818
- options = options || {};
38819
-
38820
- if (path instanceof RegExp) {
38821
- return regexpToRegexp(path, /** @type {!Array} */ (keys))
38822
- }
38823
-
38824
- if (isarray(path)) {
38825
- return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
38826
- }
38827
-
38828
- return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
38829
- }
38830
- pathToRegexp_1.parse = parse_1;
38831
- pathToRegexp_1.compile = compile_1;
38832
- pathToRegexp_1.tokensToFunction = tokensToFunction_1;
38833
- pathToRegexp_1.tokensToRegExp = tokensToRegExp_1;
38834
-
38835
- /* */
38836
-
38837
- // $flow-disable-line
38838
- var regexpCompileCache = Object.create(null);
38839
-
38840
- function fillParams (
38841
- path,
38842
- params,
38843
- routeMsg
38844
- ) {
38845
- params = params || {};
38846
- try {
38847
- var filler =
38848
- regexpCompileCache[path] ||
38849
- (regexpCompileCache[path] = pathToRegexp_1.compile(path));
38850
-
38851
- // Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
38852
- // and fix #3106 so that you can work with location descriptor object having params.pathMatch equal to empty string
38853
- if (typeof params.pathMatch === 'string') { params[0] = params.pathMatch; }
38854
-
38855
- return filler(params, { pretty: true })
38856
- } catch (e) {
38857
- if (false) {}
38858
- return ''
38859
- } finally {
38860
- // delete the 0 if it was added
38861
- delete params[0];
38862
- }
38863
- }
38864
-
38865
- /* */
38866
-
38867
- function normalizeLocation (
38868
- raw,
38869
- current,
38870
- append,
38871
- router
38872
- ) {
38873
- var next = typeof raw === 'string' ? { path: raw } : raw;
38874
- // named target
38875
- if (next._normalized) {
38876
- return next
38877
- } else if (next.name) {
38878
- next = extend({}, raw);
38879
- var params = next.params;
38880
- if (params && typeof params === 'object') {
38881
- next.params = extend({}, params);
38882
- }
38883
- return next
38884
- }
38885
-
38886
- // relative params
38887
- if (!next.path && next.params && current) {
38888
- next = extend({}, next);
38889
- next._normalized = true;
38890
- var params$1 = extend(extend({}, current.params), next.params);
38891
- if (current.name) {
38892
- next.name = current.name;
38893
- next.params = params$1;
38894
- } else if (current.matched.length) {
38895
- var rawPath = current.matched[current.matched.length - 1].path;
38896
- next.path = fillParams(rawPath, params$1, ("path " + (current.path)));
38897
- } else if (false) {}
38898
- return next
38899
- }
38900
-
38901
- var parsedPath = parsePath(next.path || '');
38902
- var basePath = (current && current.path) || '/';
38903
- var path = parsedPath.path
38904
- ? resolvePath(parsedPath.path, basePath, append || next.append)
38905
- : basePath;
38906
-
38907
- var query = resolveQuery(
38908
- parsedPath.query,
38909
- next.query,
38910
- router && router.options.parseQuery
38911
- );
38912
-
38913
- var hash = next.hash || parsedPath.hash;
38914
- if (hash && hash.charAt(0) !== '#') {
38915
- hash = "#" + hash;
38916
- }
38917
-
38918
- return {
38919
- _normalized: true,
38920
- path: path,
38921
- query: query,
38922
- hash: hash
38923
- }
38924
- }
38925
-
38926
- /* */
38927
-
38928
- // work around weird flow bug
38929
- var toTypes = [String, Object];
38930
- var eventTypes = [String, Array];
38931
-
38932
- var noop = function () {};
38933
-
38934
- var warnedCustomSlot;
38935
- var warnedTagProp;
38936
- var warnedEventProp;
38937
-
38938
- var Link = {
38939
- name: 'RouterLink',
38940
- props: {
38941
- to: {
38942
- type: toTypes,
38943
- required: true
38944
- },
38945
- tag: {
38946
- type: String,
38947
- default: 'a'
38948
- },
38949
- custom: Boolean,
38950
- exact: Boolean,
38951
- exactPath: Boolean,
38952
- append: Boolean,
38953
- replace: Boolean,
38954
- activeClass: String,
38955
- exactActiveClass: String,
38956
- ariaCurrentValue: {
38957
- type: String,
38958
- default: 'page'
38959
- },
38960
- event: {
38961
- type: eventTypes,
38962
- default: 'click'
38963
- }
38964
- },
38965
- render: function render (h) {
38966
- var this$1$1 = this;
38967
-
38968
- var router = this.$router;
38969
- var current = this.$route;
38970
- var ref = router.resolve(
38971
- this.to,
38972
- current,
38973
- this.append
38974
- );
38975
- var location = ref.location;
38976
- var route = ref.route;
38977
- var href = ref.href;
38978
-
38979
- var classes = {};
38980
- var globalActiveClass = router.options.linkActiveClass;
38981
- var globalExactActiveClass = router.options.linkExactActiveClass;
38982
- // Support global empty active class
38983
- var activeClassFallback =
38984
- globalActiveClass == null ? 'router-link-active' : globalActiveClass;
38985
- var exactActiveClassFallback =
38986
- globalExactActiveClass == null
38987
- ? 'router-link-exact-active'
38988
- : globalExactActiveClass;
38989
- var activeClass =
38990
- this.activeClass == null ? activeClassFallback : this.activeClass;
38991
- var exactActiveClass =
38992
- this.exactActiveClass == null
38993
- ? exactActiveClassFallback
38994
- : this.exactActiveClass;
38995
-
38996
- var compareTarget = route.redirectedFrom
38997
- ? createRoute(null, normalizeLocation(route.redirectedFrom), null, router)
38998
- : route;
38999
-
39000
- classes[exactActiveClass] = isSameRoute(current, compareTarget, this.exactPath);
39001
- classes[activeClass] = this.exact || this.exactPath
39002
- ? classes[exactActiveClass]
39003
- : isIncludedRoute(current, compareTarget);
39004
-
39005
- var ariaCurrentValue = classes[exactActiveClass] ? this.ariaCurrentValue : null;
39006
-
39007
- var handler = function (e) {
39008
- if (guardEvent(e)) {
39009
- if (this$1$1.replace) {
39010
- router.replace(location, noop);
39011
- } else {
39012
- router.push(location, noop);
39013
- }
39014
- }
39015
- };
39016
-
39017
- var on = { click: guardEvent };
39018
- if (Array.isArray(this.event)) {
39019
- this.event.forEach(function (e) {
39020
- on[e] = handler;
39021
- });
39022
- } else {
39023
- on[this.event] = handler;
39024
- }
39025
-
39026
- var data = { class: classes };
39027
-
39028
- var scopedSlot =
39029
- !this.$scopedSlots.$hasNormal &&
39030
- this.$scopedSlots.default &&
39031
- this.$scopedSlots.default({
39032
- href: href,
39033
- route: route,
39034
- navigate: handler,
39035
- isActive: classes[activeClass],
39036
- isExactActive: classes[exactActiveClass]
39037
- });
39038
-
39039
- if (scopedSlot) {
39040
- if (false) {}
39041
- if (scopedSlot.length === 1) {
39042
- return scopedSlot[0]
39043
- } else if (scopedSlot.length > 1 || !scopedSlot.length) {
39044
- if (false) {}
39045
- return scopedSlot.length === 0 ? h() : h('span', {}, scopedSlot)
39046
- }
39047
- }
39048
-
39049
- if (false) {}
39050
-
39051
- if (this.tag === 'a') {
39052
- data.on = on;
39053
- data.attrs = { href: href, 'aria-current': ariaCurrentValue };
39054
- } else {
39055
- // find the first <a> child and apply listener and href
39056
- var a = findAnchor(this.$slots.default);
39057
- if (a) {
39058
- // in case the <a> is a static node
39059
- a.isStatic = false;
39060
- var aData = (a.data = extend({}, a.data));
39061
- aData.on = aData.on || {};
39062
- // transform existing events in both objects into arrays so we can push later
39063
- for (var event in aData.on) {
39064
- var handler$1 = aData.on[event];
39065
- if (event in on) {
39066
- aData.on[event] = Array.isArray(handler$1) ? handler$1 : [handler$1];
39067
- }
39068
- }
39069
- // append new listeners for router-link
39070
- for (var event$1 in on) {
39071
- if (event$1 in aData.on) {
39072
- // on[event] is always a function
39073
- aData.on[event$1].push(on[event$1]);
39074
- } else {
39075
- aData.on[event$1] = handler;
39076
- }
39077
- }
39078
-
39079
- var aAttrs = (a.data.attrs = extend({}, a.data.attrs));
39080
- aAttrs.href = href;
39081
- aAttrs['aria-current'] = ariaCurrentValue;
39082
- } else {
39083
- // doesn't have <a> child, apply listener to self
39084
- data.on = on;
39085
- }
39086
- }
39087
-
39088
- return h(this.tag, data, this.$slots.default)
39089
- }
39090
- };
39091
-
39092
- function guardEvent (e) {
39093
- // don't redirect with control keys
39094
- if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) { return }
39095
- // don't redirect when preventDefault called
39096
- if (e.defaultPrevented) { return }
39097
- // don't redirect on right click
39098
- if (e.button !== undefined && e.button !== 0) { return }
39099
- // don't redirect if `target="_blank"`
39100
- if (e.currentTarget && e.currentTarget.getAttribute) {
39101
- var target = e.currentTarget.getAttribute('target');
39102
- if (/\b_blank\b/i.test(target)) { return }
39103
- }
39104
- // this may be a Weex event which doesn't have this method
39105
- if (e.preventDefault) {
39106
- e.preventDefault();
39107
- }
39108
- return true
39109
- }
39110
-
39111
- function findAnchor (children) {
39112
- if (children) {
39113
- var child;
39114
- for (var i = 0; i < children.length; i++) {
39115
- child = children[i];
39116
- if (child.tag === 'a') {
39117
- return child
39118
- }
39119
- if (child.children && (child = findAnchor(child.children))) {
39120
- return child
39121
- }
39122
- }
39123
- }
39124
- }
39125
-
39126
- var _Vue;
39127
-
39128
- function install (Vue) {
39129
- if (install.installed && _Vue === Vue) { return }
39130
- install.installed = true;
39131
-
39132
- _Vue = Vue;
39133
-
39134
- var isDef = function (v) { return v !== undefined; };
39135
-
39136
- var registerInstance = function (vm, callVal) {
39137
- var i = vm.$options._parentVnode;
39138
- if (isDef(i) && isDef(i = i.data) && isDef(i = i.registerRouteInstance)) {
39139
- i(vm, callVal);
39140
- }
39141
- };
39142
-
39143
- Vue.mixin({
39144
- beforeCreate: function beforeCreate () {
39145
- if (isDef(this.$options.router)) {
39146
- this._routerRoot = this;
39147
- this._router = this.$options.router;
39148
- this._router.init(this);
39149
- Vue.util.defineReactive(this, '_route', this._router.history.current);
39150
- } else {
39151
- this._routerRoot = (this.$parent && this.$parent._routerRoot) || this;
39152
- }
39153
- registerInstance(this, this);
39154
- },
39155
- destroyed: function destroyed () {
39156
- registerInstance(this);
39157
- }
39158
- });
39159
-
39160
- Object.defineProperty(Vue.prototype, '$router', {
39161
- get: function get () { return this._routerRoot._router }
39162
- });
39163
-
39164
- Object.defineProperty(Vue.prototype, '$route', {
39165
- get: function get () { return this._routerRoot._route }
39166
- });
39167
-
39168
- Vue.component('RouterView', View);
39169
- Vue.component('RouterLink', Link);
39170
-
39171
- var strats = Vue.config.optionMergeStrategies;
39172
- // use the same hook merging strategy for route hooks
39173
- strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created;
39174
- }
39175
-
39176
- /* */
39177
-
39178
- var vue_router_esm_inBrowser = typeof window !== 'undefined';
39179
-
39180
- /* */
39181
-
39182
- function createRouteMap (
39183
- routes,
39184
- oldPathList,
39185
- oldPathMap,
39186
- oldNameMap,
39187
- parentRoute
39188
- ) {
39189
- // the path list is used to control path matching priority
39190
- var pathList = oldPathList || [];
39191
- // $flow-disable-line
39192
- var pathMap = oldPathMap || Object.create(null);
39193
- // $flow-disable-line
39194
- var nameMap = oldNameMap || Object.create(null);
39195
-
39196
- routes.forEach(function (route) {
39197
- addRouteRecord(pathList, pathMap, nameMap, route, parentRoute);
39198
- });
39199
-
39200
- // ensure wildcard routes are always at the end
39201
- for (var i = 0, l = pathList.length; i < l; i++) {
39202
- if (pathList[i] === '*') {
39203
- pathList.push(pathList.splice(i, 1)[0]);
39204
- l--;
39205
- i--;
39206
- }
39207
- }
39208
-
39209
- if (false) { var pathNames, found; }
39210
-
39211
- return {
39212
- pathList: pathList,
39213
- pathMap: pathMap,
39214
- nameMap: nameMap
39215
- }
39216
- }
39217
-
39218
- function addRouteRecord (
39219
- pathList,
39220
- pathMap,
39221
- nameMap,
39222
- route,
39223
- parent,
39224
- matchAs
39225
- ) {
39226
- var path = route.path;
39227
- var name = route.name;
39228
- if (false) {}
39229
-
39230
- var pathToRegexpOptions =
39231
- route.pathToRegexpOptions || {};
39232
- var normalizedPath = normalizePath(path, parent, pathToRegexpOptions.strict);
39233
-
39234
- if (typeof route.caseSensitive === 'boolean') {
39235
- pathToRegexpOptions.sensitive = route.caseSensitive;
39236
- }
39237
-
39238
- var record = {
39239
- path: normalizedPath,
39240
- regex: compileRouteRegex(normalizedPath, pathToRegexpOptions),
39241
- components: route.components || { default: route.component },
39242
- alias: route.alias
39243
- ? typeof route.alias === 'string'
39244
- ? [route.alias]
39245
- : route.alias
39246
- : [],
39247
- instances: {},
39248
- enteredCbs: {},
39249
- name: name,
39250
- parent: parent,
39251
- matchAs: matchAs,
39252
- redirect: route.redirect,
39253
- beforeEnter: route.beforeEnter,
39254
- meta: route.meta || {},
39255
- props:
39256
- route.props == null
39257
- ? {}
39258
- : route.components
39259
- ? route.props
39260
- : { default: route.props }
39261
- };
39262
-
39263
- if (route.children) {
39264
- // Warn if route is named, does not redirect and has a default child route.
39265
- // If users navigate to this route by name, the default child will
39266
- // not be rendered (GH Issue #629)
39267
- if (false) {}
39268
- route.children.forEach(function (child) {
39269
- var childMatchAs = matchAs
39270
- ? cleanPath((matchAs + "/" + (child.path)))
39271
- : undefined;
39272
- addRouteRecord(pathList, pathMap, nameMap, child, record, childMatchAs);
39273
- });
39274
- }
39275
-
39276
- if (!pathMap[record.path]) {
39277
- pathList.push(record.path);
39278
- pathMap[record.path] = record;
39279
- }
39280
-
39281
- if (route.alias !== undefined) {
39282
- var aliases = Array.isArray(route.alias) ? route.alias : [route.alias];
39283
- for (var i = 0; i < aliases.length; ++i) {
39284
- var alias = aliases[i];
39285
- if (false) {}
39286
-
39287
- var aliasRoute = {
39288
- path: alias,
39289
- children: route.children
39290
- };
39291
- addRouteRecord(
39292
- pathList,
39293
- pathMap,
39294
- nameMap,
39295
- aliasRoute,
39296
- parent,
39297
- record.path || '/' // matchAs
39298
- );
39299
- }
39300
- }
39301
-
39302
- if (name) {
39303
- if (!nameMap[name]) {
39304
- nameMap[name] = record;
39305
- } else if (false) {}
39306
- }
39307
- }
39308
-
39309
- function compileRouteRegex (
39310
- path,
39311
- pathToRegexpOptions
39312
- ) {
39313
- var regex = pathToRegexp_1(path, [], pathToRegexpOptions);
39314
- if (false) { var keys; }
39315
- return regex
39316
- }
39317
-
39318
- function normalizePath (
39319
- path,
39320
- parent,
39321
- strict
39322
- ) {
39323
- if (!strict) { path = path.replace(/\/$/, ''); }
39324
- if (path[0] === '/') { return path }
39325
- if (parent == null) { return path }
39326
- return cleanPath(((parent.path) + "/" + path))
39327
- }
39328
-
39329
- /* */
39330
-
39331
-
39332
-
39333
- function createMatcher (
39334
- routes,
39335
- router
39336
- ) {
39337
- var ref = createRouteMap(routes);
39338
- var pathList = ref.pathList;
39339
- var pathMap = ref.pathMap;
39340
- var nameMap = ref.nameMap;
39341
-
39342
- function addRoutes (routes) {
39343
- createRouteMap(routes, pathList, pathMap, nameMap);
39344
- }
39345
-
39346
- function addRoute (parentOrRoute, route) {
39347
- var parent = (typeof parentOrRoute !== 'object') ? nameMap[parentOrRoute] : undefined;
39348
- // $flow-disable-line
39349
- createRouteMap([route || parentOrRoute], pathList, pathMap, nameMap, parent);
39350
-
39351
- // add aliases of parent
39352
- if (parent && parent.alias.length) {
39353
- createRouteMap(
39354
- // $flow-disable-line route is defined if parent is
39355
- parent.alias.map(function (alias) { return ({ path: alias, children: [route] }); }),
39356
- pathList,
39357
- pathMap,
39358
- nameMap,
39359
- parent
39360
- );
39361
- }
39362
- }
39363
-
39364
- function getRoutes () {
39365
- return pathList.map(function (path) { return pathMap[path]; })
39366
- }
39367
-
39368
- function match (
39369
- raw,
39370
- currentRoute,
39371
- redirectedFrom
39372
- ) {
39373
- var location = normalizeLocation(raw, currentRoute, false, router);
39374
- var name = location.name;
39375
-
39376
- if (name) {
39377
- var record = nameMap[name];
39378
- if (false) {}
39379
- if (!record) { return _createRoute(null, location) }
39380
- var paramNames = record.regex.keys
39381
- .filter(function (key) { return !key.optional; })
39382
- .map(function (key) { return key.name; });
39383
-
39384
- if (typeof location.params !== 'object') {
39385
- location.params = {};
39386
- }
39387
-
39388
- if (currentRoute && typeof currentRoute.params === 'object') {
39389
- for (var key in currentRoute.params) {
39390
- if (!(key in location.params) && paramNames.indexOf(key) > -1) {
39391
- location.params[key] = currentRoute.params[key];
39392
- }
39393
- }
39394
- }
39395
-
39396
- location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
39397
- return _createRoute(record, location, redirectedFrom)
39398
- } else if (location.path) {
39399
- location.params = {};
39400
- for (var i = 0; i < pathList.length; i++) {
39401
- var path = pathList[i];
39402
- var record$1 = pathMap[path];
39403
- if (matchRoute(record$1.regex, location.path, location.params)) {
39404
- return _createRoute(record$1, location, redirectedFrom)
39405
- }
39406
- }
39407
- }
39408
- // no match
39409
- return _createRoute(null, location)
39410
- }
39411
-
39412
- function redirect (
39413
- record,
39414
- location
39415
- ) {
39416
- var originalRedirect = record.redirect;
39417
- var redirect = typeof originalRedirect === 'function'
39418
- ? originalRedirect(createRoute(record, location, null, router))
39419
- : originalRedirect;
39420
-
39421
- if (typeof redirect === 'string') {
39422
- redirect = { path: redirect };
39423
- }
39424
-
39425
- if (!redirect || typeof redirect !== 'object') {
39426
- if (false) {}
39427
- return _createRoute(null, location)
39428
- }
39429
-
39430
- var re = redirect;
39431
- var name = re.name;
39432
- var path = re.path;
39433
- var query = location.query;
39434
- var hash = location.hash;
39435
- var params = location.params;
39436
- query = re.hasOwnProperty('query') ? re.query : query;
39437
- hash = re.hasOwnProperty('hash') ? re.hash : hash;
39438
- params = re.hasOwnProperty('params') ? re.params : params;
39439
-
39440
- if (name) {
39441
- // resolved named direct
39442
- var targetRecord = nameMap[name];
39443
- if (false) {}
39444
- return match({
39445
- _normalized: true,
39446
- name: name,
39447
- query: query,
39448
- hash: hash,
39449
- params: params
39450
- }, undefined, location)
39451
- } else if (path) {
39452
- // 1. resolve relative redirect
39453
- var rawPath = resolveRecordPath(path, record);
39454
- // 2. resolve params
39455
- var resolvedPath = fillParams(rawPath, params, ("redirect route with path \"" + rawPath + "\""));
39456
- // 3. rematch with existing query and hash
39457
- return match({
39458
- _normalized: true,
39459
- path: resolvedPath,
39460
- query: query,
39461
- hash: hash
39462
- }, undefined, location)
39463
- } else {
39464
- if (false) {}
39465
- return _createRoute(null, location)
39466
- }
39467
- }
39468
-
39469
- function alias (
39470
- record,
39471
- location,
39472
- matchAs
39473
- ) {
39474
- var aliasedPath = fillParams(matchAs, location.params, ("aliased route with path \"" + matchAs + "\""));
39475
- var aliasedMatch = match({
39476
- _normalized: true,
39477
- path: aliasedPath
39478
- });
39479
- if (aliasedMatch) {
39480
- var matched = aliasedMatch.matched;
39481
- var aliasedRecord = matched[matched.length - 1];
39482
- location.params = aliasedMatch.params;
39483
- return _createRoute(aliasedRecord, location)
39484
- }
39485
- return _createRoute(null, location)
39486
- }
39487
-
39488
- function _createRoute (
39489
- record,
39490
- location,
39491
- redirectedFrom
39492
- ) {
39493
- if (record && record.redirect) {
39494
- return redirect(record, redirectedFrom || location)
39495
- }
39496
- if (record && record.matchAs) {
39497
- return alias(record, location, record.matchAs)
39498
- }
39499
- return createRoute(record, location, redirectedFrom, router)
39500
- }
39501
-
39502
- return {
39503
- match: match,
39504
- addRoute: addRoute,
39505
- getRoutes: getRoutes,
39506
- addRoutes: addRoutes
39507
- }
39508
- }
39509
-
39510
- function matchRoute (
39511
- regex,
39512
- path,
39513
- params
39514
- ) {
39515
- var m = path.match(regex);
39516
-
39517
- if (!m) {
39518
- return false
39519
- } else if (!params) {
39520
- return true
39521
- }
39522
-
39523
- for (var i = 1, len = m.length; i < len; ++i) {
39524
- var key = regex.keys[i - 1];
39525
- if (key) {
39526
- // Fix #1994: using * with props: true generates a param named 0
39527
- params[key.name || 'pathMatch'] = typeof m[i] === 'string' ? decode(m[i]) : m[i];
39528
- }
39529
- }
39530
-
39531
- return true
39532
- }
39533
-
39534
- function resolveRecordPath (path, record) {
39535
- return resolvePath(path, record.parent ? record.parent.path : '/', true)
39536
- }
39537
-
39538
- /* */
39539
-
39540
- // use User Timing api (if present) for more accurate key precision
39541
- var Time =
39542
- vue_router_esm_inBrowser && window.performance && window.performance.now
39543
- ? window.performance
39544
- : Date;
39545
-
39546
- function genStateKey () {
39547
- return Time.now().toFixed(3)
39548
- }
39549
-
39550
- var _key = genStateKey();
39551
-
39552
- function getStateKey () {
39553
- return _key
39554
- }
39555
-
39556
- function setStateKey (key) {
39557
- return (_key = key)
39558
- }
39559
-
39560
- /* */
39561
-
39562
- var positionStore = Object.create(null);
39563
-
39564
- function setupScroll () {
39565
- // Prevent browser scroll behavior on History popstate
39566
- if ('scrollRestoration' in window.history) {
39567
- window.history.scrollRestoration = 'manual';
39568
- }
39569
- // Fix for #1585 for Firefox
39570
- // Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
39571
- // Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with
39572
- // window.location.protocol + '//' + window.location.host
39573
- // location.host contains the port and location.hostname doesn't
39574
- var protocolAndPath = window.location.protocol + '//' + window.location.host;
39575
- var absolutePath = window.location.href.replace(protocolAndPath, '');
39576
- // preserve existing history state as it could be overriden by the user
39577
- var stateCopy = extend({}, window.history.state);
39578
- stateCopy.key = getStateKey();
39579
- window.history.replaceState(stateCopy, '', absolutePath);
39580
- window.addEventListener('popstate', handlePopState);
39581
- return function () {
39582
- window.removeEventListener('popstate', handlePopState);
39583
- }
39584
- }
39585
-
39586
- function handleScroll (
39587
- router,
39588
- to,
39589
- from,
39590
- isPop
39591
- ) {
39592
- if (!router.app) {
39593
- return
39594
- }
39595
-
39596
- var behavior = router.options.scrollBehavior;
39597
- if (!behavior) {
39598
- return
39599
- }
39600
-
39601
- if (false) {}
39602
-
39603
- // wait until re-render finishes before scrolling
39604
- router.app.$nextTick(function () {
39605
- var position = getScrollPosition();
39606
- var shouldScroll = behavior.call(
39607
- router,
39608
- to,
39609
- from,
39610
- isPop ? position : null
39611
- );
39612
-
39613
- if (!shouldScroll) {
39614
- return
39615
- }
39616
-
39617
- if (typeof shouldScroll.then === 'function') {
39618
- shouldScroll
39619
- .then(function (shouldScroll) {
39620
- scrollToPosition((shouldScroll), position);
39621
- })
39622
- .catch(function (err) {
39623
- if (false) {}
39624
- });
39625
- } else {
39626
- scrollToPosition(shouldScroll, position);
39627
- }
39628
- });
39629
- }
39630
-
39631
- function saveScrollPosition () {
39632
- var key = getStateKey();
39633
- if (key) {
39634
- positionStore[key] = {
39635
- x: window.pageXOffset,
39636
- y: window.pageYOffset
39637
- };
39638
- }
39639
- }
39640
-
39641
- function handlePopState (e) {
39642
- saveScrollPosition();
39643
- if (e.state && e.state.key) {
39644
- setStateKey(e.state.key);
39645
- }
39646
- }
39647
-
39648
- function getScrollPosition () {
39649
- var key = getStateKey();
39650
- if (key) {
39651
- return positionStore[key]
39652
- }
39653
- }
39654
-
39655
- function getElementPosition (el, offset) {
39656
- var docEl = document.documentElement;
39657
- var docRect = docEl.getBoundingClientRect();
39658
- var elRect = el.getBoundingClientRect();
39659
- return {
39660
- x: elRect.left - docRect.left - offset.x,
39661
- y: elRect.top - docRect.top - offset.y
39662
- }
39663
- }
39664
-
39665
- function isValidPosition (obj) {
39666
- return isNumber(obj.x) || isNumber(obj.y)
39667
- }
39668
-
39669
- function normalizePosition (obj) {
39670
- return {
39671
- x: isNumber(obj.x) ? obj.x : window.pageXOffset,
39672
- y: isNumber(obj.y) ? obj.y : window.pageYOffset
39673
- }
39674
- }
39675
-
39676
- function normalizeOffset (obj) {
39677
- return {
39678
- x: isNumber(obj.x) ? obj.x : 0,
39679
- y: isNumber(obj.y) ? obj.y : 0
39680
- }
39681
- }
39682
-
39683
- function isNumber (v) {
39684
- return typeof v === 'number'
39685
- }
39686
-
39687
- var hashStartsWithNumberRE = /^#\d/;
39688
-
39689
- function scrollToPosition (shouldScroll, position) {
39690
- var isObject = typeof shouldScroll === 'object';
39691
- if (isObject && typeof shouldScroll.selector === 'string') {
39692
- // getElementById would still fail if the selector contains a more complicated query like #main[data-attr]
39693
- // but at the same time, it doesn't make much sense to select an element with an id and an extra selector
39694
- var el = hashStartsWithNumberRE.test(shouldScroll.selector) // $flow-disable-line
39695
- ? document.getElementById(shouldScroll.selector.slice(1)) // $flow-disable-line
39696
- : document.querySelector(shouldScroll.selector);
39697
-
39698
- if (el) {
39699
- var offset =
39700
- shouldScroll.offset && typeof shouldScroll.offset === 'object'
39701
- ? shouldScroll.offset
39702
- : {};
39703
- offset = normalizeOffset(offset);
39704
- position = getElementPosition(el, offset);
39705
- } else if (isValidPosition(shouldScroll)) {
39706
- position = normalizePosition(shouldScroll);
39707
- }
39708
- } else if (isObject && isValidPosition(shouldScroll)) {
39709
- position = normalizePosition(shouldScroll);
39710
- }
39711
-
39712
- if (position) {
39713
- // $flow-disable-line
39714
- if ('scrollBehavior' in document.documentElement.style) {
39715
- window.scrollTo({
39716
- left: position.x,
39717
- top: position.y,
39718
- // $flow-disable-line
39719
- behavior: shouldScroll.behavior
39720
- });
39721
- } else {
39722
- window.scrollTo(position.x, position.y);
39723
- }
39724
- }
39725
- }
39726
-
39727
- /* */
39728
-
39729
- var supportsPushState =
39730
- vue_router_esm_inBrowser &&
39731
- (function () {
39732
- var ua = window.navigator.userAgent;
39733
-
39734
- if (
39735
- (ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
39736
- ua.indexOf('Mobile Safari') !== -1 &&
39737
- ua.indexOf('Chrome') === -1 &&
39738
- ua.indexOf('Windows Phone') === -1
39739
- ) {
39740
- return false
39741
- }
39742
-
39743
- return window.history && typeof window.history.pushState === 'function'
39744
- })();
39745
-
39746
- function pushState (url, replace) {
39747
- saveScrollPosition();
39748
- // try...catch the pushState call to get around Safari
39749
- // DOM Exception 18 where it limits to 100 pushState calls
39750
- var history = window.history;
39751
- try {
39752
- if (replace) {
39753
- // preserve existing history state as it could be overriden by the user
39754
- var stateCopy = extend({}, history.state);
39755
- stateCopy.key = getStateKey();
39756
- history.replaceState(stateCopy, '', url);
39757
- } else {
39758
- history.pushState({ key: setStateKey(genStateKey()) }, '', url);
39759
- }
39760
- } catch (e) {
39761
- window.location[replace ? 'replace' : 'assign'](url);
39762
- }
39763
- }
39764
-
39765
- function replaceState (url) {
39766
- pushState(url, true);
39767
- }
39768
-
39769
- // When changing thing, also edit router.d.ts
39770
- var NavigationFailureType = {
39771
- redirected: 2,
39772
- aborted: 4,
39773
- cancelled: 8,
39774
- duplicated: 16
39775
- };
39776
-
39777
- function createNavigationRedirectedError (from, to) {
39778
- return createRouterError(
39779
- from,
39780
- to,
39781
- NavigationFailureType.redirected,
39782
- ("Redirected when going from \"" + (from.fullPath) + "\" to \"" + (stringifyRoute(
39783
- to
39784
- )) + "\" via a navigation guard.")
39785
- )
39786
- }
39787
-
39788
- function createNavigationDuplicatedError (from, to) {
39789
- var error = createRouterError(
39790
- from,
39791
- to,
39792
- NavigationFailureType.duplicated,
39793
- ("Avoided redundant navigation to current location: \"" + (from.fullPath) + "\".")
39794
- );
39795
- // backwards compatible with the first introduction of Errors
39796
- error.name = 'NavigationDuplicated';
39797
- return error
39798
- }
39799
-
39800
- function createNavigationCancelledError (from, to) {
39801
- return createRouterError(
39802
- from,
39803
- to,
39804
- NavigationFailureType.cancelled,
39805
- ("Navigation cancelled from \"" + (from.fullPath) + "\" to \"" + (to.fullPath) + "\" with a new navigation.")
39806
- )
39807
- }
39808
-
39809
- function createNavigationAbortedError (from, to) {
39810
- return createRouterError(
39811
- from,
39812
- to,
39813
- NavigationFailureType.aborted,
39814
- ("Navigation aborted from \"" + (from.fullPath) + "\" to \"" + (to.fullPath) + "\" via a navigation guard.")
39815
- )
39816
- }
39817
-
39818
- function createRouterError (from, to, type, message) {
39819
- var error = new Error(message);
39820
- error._isRouter = true;
39821
- error.from = from;
39822
- error.to = to;
39823
- error.type = type;
39824
-
39825
- return error
39826
- }
39827
-
39828
- var propertiesToLog = ['params', 'query', 'hash'];
39829
-
39830
- function stringifyRoute (to) {
39831
- if (typeof to === 'string') { return to }
39832
- if ('path' in to) { return to.path }
39833
- var location = {};
39834
- propertiesToLog.forEach(function (key) {
39835
- if (key in to) { location[key] = to[key]; }
39836
- });
39837
- return JSON.stringify(location, null, 2)
39838
- }
39839
-
39840
- function isError (err) {
39841
- return Object.prototype.toString.call(err).indexOf('Error') > -1
39842
- }
39843
-
39844
- function isNavigationFailure (err, errorType) {
39845
- return (
39846
- isError(err) &&
39847
- err._isRouter &&
39848
- (errorType == null || err.type === errorType)
39849
- )
39850
- }
39851
-
39852
- /* */
39853
-
39854
- function runQueue (queue, fn, cb) {
39855
- var step = function (index) {
39856
- if (index >= queue.length) {
39857
- cb();
39858
- } else {
39859
- if (queue[index]) {
39860
- fn(queue[index], function () {
39861
- step(index + 1);
39862
- });
39863
- } else {
39864
- step(index + 1);
39865
- }
39866
- }
39867
- };
39868
- step(0);
39869
- }
39870
-
39871
- /* */
39872
-
39873
- function resolveAsyncComponents (matched) {
39874
- return function (to, from, next) {
39875
- var hasAsync = false;
39876
- var pending = 0;
39877
- var error = null;
39878
-
39879
- flatMapComponents(matched, function (def, _, match, key) {
39880
- // if it's a function and doesn't have cid attached,
39881
- // assume it's an async component resolve function.
39882
- // we are not using Vue's default async resolving mechanism because
39883
- // we want to halt the navigation until the incoming component has been
39884
- // resolved.
39885
- if (typeof def === 'function' && def.cid === undefined) {
39886
- hasAsync = true;
39887
- pending++;
39888
-
39889
- var resolve = once(function (resolvedDef) {
39890
- if (isESModule(resolvedDef)) {
39891
- resolvedDef = resolvedDef.default;
39892
- }
39893
- // save resolved on async factory in case it's used elsewhere
39894
- def.resolved = typeof resolvedDef === 'function'
39895
- ? resolvedDef
39896
- : _Vue.extend(resolvedDef);
39897
- match.components[key] = resolvedDef;
39898
- pending--;
39899
- if (pending <= 0) {
39900
- next();
39901
- }
39902
- });
39903
-
39904
- var reject = once(function (reason) {
39905
- var msg = "Failed to resolve async component " + key + ": " + reason;
39906
- false && 0;
39907
- if (!error) {
39908
- error = isError(reason)
39909
- ? reason
39910
- : new Error(msg);
39911
- next(error);
39912
- }
39913
- });
39914
-
39915
- var res;
39916
- try {
39917
- res = def(resolve, reject);
39918
- } catch (e) {
39919
- reject(e);
39920
- }
39921
- if (res) {
39922
- if (typeof res.then === 'function') {
39923
- res.then(resolve, reject);
39924
- } else {
39925
- // new syntax in Vue 2.3
39926
- var comp = res.component;
39927
- if (comp && typeof comp.then === 'function') {
39928
- comp.then(resolve, reject);
39929
- }
39930
- }
39931
- }
39932
- }
39933
- });
39934
-
39935
- if (!hasAsync) { next(); }
39936
- }
39937
- }
39938
-
39939
- function flatMapComponents (
39940
- matched,
39941
- fn
39942
- ) {
39943
- return flatten(matched.map(function (m) {
39944
- return Object.keys(m.components).map(function (key) { return fn(
39945
- m.components[key],
39946
- m.instances[key],
39947
- m, key
39948
- ); })
39949
- }))
39950
- }
39951
-
39952
- function flatten (arr) {
39953
- return Array.prototype.concat.apply([], arr)
39954
- }
39955
-
39956
- var hasSymbol =
39957
- typeof Symbol === 'function' &&
39958
- typeof Symbol.toStringTag === 'symbol';
39959
-
39960
- function isESModule (obj) {
39961
- return obj.__esModule || (hasSymbol && obj[Symbol.toStringTag] === 'Module')
39962
- }
39963
-
39964
- // in Webpack 2, require.ensure now also returns a Promise
39965
- // so the resolve/reject functions may get called an extra time
39966
- // if the user uses an arrow function shorthand that happens to
39967
- // return that Promise.
39968
- function once (fn) {
39969
- var called = false;
39970
- return function () {
39971
- var args = [], len = arguments.length;
39972
- while ( len-- ) args[ len ] = arguments[ len ];
39973
-
39974
- if (called) { return }
39975
- called = true;
39976
- return fn.apply(this, args)
39977
- }
39978
- }
39979
-
39980
- /* */
39981
-
39982
- var History = function History (router, base) {
39983
- this.router = router;
39984
- this.base = normalizeBase(base);
39985
- // start with a route object that stands for "nowhere"
39986
- this.current = START;
39987
- this.pending = null;
39988
- this.ready = false;
39989
- this.readyCbs = [];
39990
- this.readyErrorCbs = [];
39991
- this.errorCbs = [];
39992
- this.listeners = [];
39993
- };
39994
-
39995
- History.prototype.listen = function listen (cb) {
39996
- this.cb = cb;
39997
- };
39998
-
39999
- History.prototype.onReady = function onReady (cb, errorCb) {
40000
- if (this.ready) {
40001
- cb();
40002
- } else {
40003
- this.readyCbs.push(cb);
40004
- if (errorCb) {
40005
- this.readyErrorCbs.push(errorCb);
40006
- }
40007
- }
40008
- };
40009
-
40010
- History.prototype.onError = function onError (errorCb) {
40011
- this.errorCbs.push(errorCb);
40012
- };
40013
-
40014
- History.prototype.transitionTo = function transitionTo (
40015
- location,
40016
- onComplete,
40017
- onAbort
40018
- ) {
40019
- var this$1$1 = this;
40020
-
40021
- var route;
40022
- // catch redirect option https://github.com/vuejs/vue-router/issues/3201
40023
- try {
40024
- route = this.router.match(location, this.current);
40025
- } catch (e) {
40026
- this.errorCbs.forEach(function (cb) {
40027
- cb(e);
40028
- });
40029
- // Exception should still be thrown
40030
- throw e
40031
- }
40032
- var prev = this.current;
40033
- this.confirmTransition(
40034
- route,
40035
- function () {
40036
- this$1$1.updateRoute(route);
40037
- onComplete && onComplete(route);
40038
- this$1$1.ensureURL();
40039
- this$1$1.router.afterHooks.forEach(function (hook) {
40040
- hook && hook(route, prev);
40041
- });
40042
-
40043
- // fire ready cbs once
40044
- if (!this$1$1.ready) {
40045
- this$1$1.ready = true;
40046
- this$1$1.readyCbs.forEach(function (cb) {
40047
- cb(route);
40048
- });
40049
- }
40050
- },
40051
- function (err) {
40052
- if (onAbort) {
40053
- onAbort(err);
40054
- }
40055
- if (err && !this$1$1.ready) {
40056
- // Initial redirection should not mark the history as ready yet
40057
- // because it's triggered by the redirection instead
40058
- // https://github.com/vuejs/vue-router/issues/3225
40059
- // https://github.com/vuejs/vue-router/issues/3331
40060
- if (!isNavigationFailure(err, NavigationFailureType.redirected) || prev !== START) {
40061
- this$1$1.ready = true;
40062
- this$1$1.readyErrorCbs.forEach(function (cb) {
40063
- cb(err);
40064
- });
40065
- }
40066
- }
40067
- }
40068
- );
40069
- };
40070
-
40071
- History.prototype.confirmTransition = function confirmTransition (route, onComplete, onAbort) {
40072
- var this$1$1 = this;
40073
-
40074
- var current = this.current;
40075
- this.pending = route;
40076
- var abort = function (err) {
40077
- // changed after adding errors with
40078
- // https://github.com/vuejs/vue-router/pull/3047 before that change,
40079
- // redirect and aborted navigation would produce an err == null
40080
- if (!isNavigationFailure(err) && isError(err)) {
40081
- if (this$1$1.errorCbs.length) {
40082
- this$1$1.errorCbs.forEach(function (cb) {
40083
- cb(err);
40084
- });
40085
- } else {
40086
- if (false) {}
40087
- console.error(err);
40088
- }
40089
- }
40090
- onAbort && onAbort(err);
40091
- };
40092
- var lastRouteIndex = route.matched.length - 1;
40093
- var lastCurrentIndex = current.matched.length - 1;
40094
- if (
40095
- isSameRoute(route, current) &&
40096
- // in the case the route map has been dynamically appended to
40097
- lastRouteIndex === lastCurrentIndex &&
40098
- route.matched[lastRouteIndex] === current.matched[lastCurrentIndex]
40099
- ) {
40100
- this.ensureURL();
40101
- if (route.hash) {
40102
- handleScroll(this.router, current, route, false);
40103
- }
40104
- return abort(createNavigationDuplicatedError(current, route))
40105
- }
40106
-
40107
- var ref = resolveQueue(
40108
- this.current.matched,
40109
- route.matched
40110
- );
40111
- var updated = ref.updated;
40112
- var deactivated = ref.deactivated;
40113
- var activated = ref.activated;
40114
-
40115
- var queue = [].concat(
40116
- // in-component leave guards
40117
- extractLeaveGuards(deactivated),
40118
- // global before hooks
40119
- this.router.beforeHooks,
40120
- // in-component update hooks
40121
- extractUpdateHooks(updated),
40122
- // in-config enter guards
40123
- activated.map(function (m) { return m.beforeEnter; }),
40124
- // async components
40125
- resolveAsyncComponents(activated)
40126
- );
40127
-
40128
- var iterator = function (hook, next) {
40129
- if (this$1$1.pending !== route) {
40130
- return abort(createNavigationCancelledError(current, route))
40131
- }
40132
- try {
40133
- hook(route, current, function (to) {
40134
- if (to === false) {
40135
- // next(false) -> abort navigation, ensure current URL
40136
- this$1$1.ensureURL(true);
40137
- abort(createNavigationAbortedError(current, route));
40138
- } else if (isError(to)) {
40139
- this$1$1.ensureURL(true);
40140
- abort(to);
40141
- } else if (
40142
- typeof to === 'string' ||
40143
- (typeof to === 'object' &&
40144
- (typeof to.path === 'string' || typeof to.name === 'string'))
40145
- ) {
40146
- // next('/') or next({ path: '/' }) -> redirect
40147
- abort(createNavigationRedirectedError(current, route));
40148
- if (typeof to === 'object' && to.replace) {
40149
- this$1$1.replace(to);
40150
- } else {
40151
- this$1$1.push(to);
40152
- }
40153
- } else {
40154
- // confirm transition and pass on the value
40155
- next(to);
40156
- }
40157
- });
40158
- } catch (e) {
40159
- abort(e);
40160
- }
40161
- };
40162
-
40163
- runQueue(queue, iterator, function () {
40164
- // wait until async components are resolved before
40165
- // extracting in-component enter guards
40166
- var enterGuards = extractEnterGuards(activated);
40167
- var queue = enterGuards.concat(this$1$1.router.resolveHooks);
40168
- runQueue(queue, iterator, function () {
40169
- if (this$1$1.pending !== route) {
40170
- return abort(createNavigationCancelledError(current, route))
40171
- }
40172
- this$1$1.pending = null;
40173
- onComplete(route);
40174
- if (this$1$1.router.app) {
40175
- this$1$1.router.app.$nextTick(function () {
40176
- handleRouteEntered(route);
40177
- });
40178
- }
40179
- });
40180
- });
40181
- };
40182
-
40183
- History.prototype.updateRoute = function updateRoute (route) {
40184
- this.current = route;
40185
- this.cb && this.cb(route);
40186
- };
40187
-
40188
- History.prototype.setupListeners = function setupListeners () {
40189
- // Default implementation is empty
40190
- };
40191
-
40192
- History.prototype.teardown = function teardown () {
40193
- // clean up event listeners
40194
- // https://github.com/vuejs/vue-router/issues/2341
40195
- this.listeners.forEach(function (cleanupListener) {
40196
- cleanupListener();
40197
- });
40198
- this.listeners = [];
40199
-
40200
- // reset current history route
40201
- // https://github.com/vuejs/vue-router/issues/3294
40202
- this.current = START;
40203
- this.pending = null;
40204
- };
40205
-
40206
- function normalizeBase (base) {
40207
- if (!base) {
40208
- if (vue_router_esm_inBrowser) {
40209
- // respect <base> tag
40210
- var baseEl = document.querySelector('base');
40211
- base = (baseEl && baseEl.getAttribute('href')) || '/';
40212
- // strip full URL origin
40213
- base = base.replace(/^https?:\/\/[^\/]+/, '');
40214
- } else {
40215
- base = '/';
40216
- }
40217
- }
40218
- // make sure there's the starting slash
40219
- if (base.charAt(0) !== '/') {
40220
- base = '/' + base;
40221
- }
40222
- // remove trailing slash
40223
- return base.replace(/\/$/, '')
40224
- }
40225
-
40226
- function resolveQueue (
40227
- current,
40228
- next
40229
- ) {
40230
- var i;
40231
- var max = Math.max(current.length, next.length);
40232
- for (i = 0; i < max; i++) {
40233
- if (current[i] !== next[i]) {
40234
- break
40235
- }
40236
- }
40237
- return {
40238
- updated: next.slice(0, i),
40239
- activated: next.slice(i),
40240
- deactivated: current.slice(i)
40241
- }
40242
- }
40243
-
40244
- function extractGuards (
40245
- records,
40246
- name,
40247
- bind,
40248
- reverse
40249
- ) {
40250
- var guards = flatMapComponents(records, function (def, instance, match, key) {
40251
- var guard = extractGuard(def, name);
40252
- if (guard) {
40253
- return Array.isArray(guard)
40254
- ? guard.map(function (guard) { return bind(guard, instance, match, key); })
40255
- : bind(guard, instance, match, key)
40256
- }
40257
- });
40258
- return flatten(reverse ? guards.reverse() : guards)
40259
- }
40260
-
40261
- function extractGuard (
40262
- def,
40263
- key
40264
- ) {
40265
- if (typeof def !== 'function') {
40266
- // extend now so that global mixins are applied.
40267
- def = _Vue.extend(def);
40268
- }
40269
- return def.options[key]
40270
- }
40271
-
40272
- function extractLeaveGuards (deactivated) {
40273
- return extractGuards(deactivated, 'beforeRouteLeave', bindGuard, true)
40274
- }
40275
-
40276
- function extractUpdateHooks (updated) {
40277
- return extractGuards(updated, 'beforeRouteUpdate', bindGuard)
40278
- }
40279
-
40280
- function bindGuard (guard, instance) {
40281
- if (instance) {
40282
- return function boundRouteGuard () {
40283
- return guard.apply(instance, arguments)
40284
- }
40285
- }
40286
- }
40287
-
40288
- function extractEnterGuards (
40289
- activated
40290
- ) {
40291
- return extractGuards(
40292
- activated,
40293
- 'beforeRouteEnter',
40294
- function (guard, _, match, key) {
40295
- return bindEnterGuard(guard, match, key)
40296
- }
40297
- )
40298
- }
40299
-
40300
- function bindEnterGuard (
40301
- guard,
40302
- match,
40303
- key
40304
- ) {
40305
- return function routeEnterGuard (to, from, next) {
40306
- return guard(to, from, function (cb) {
40307
- if (typeof cb === 'function') {
40308
- if (!match.enteredCbs[key]) {
40309
- match.enteredCbs[key] = [];
40310
- }
40311
- match.enteredCbs[key].push(cb);
40312
- }
40313
- next(cb);
40314
- })
40315
- }
40316
- }
40317
-
40318
- /* */
40319
-
40320
- var HTML5History = /*@__PURE__*/(function (History) {
40321
- function HTML5History (router, base) {
40322
- History.call(this, router, base);
40323
-
40324
- this._startLocation = getLocation(this.base);
40325
- }
40326
-
40327
- if ( History ) HTML5History.__proto__ = History;
40328
- HTML5History.prototype = Object.create( History && History.prototype );
40329
- HTML5History.prototype.constructor = HTML5History;
40330
-
40331
- HTML5History.prototype.setupListeners = function setupListeners () {
40332
- var this$1$1 = this;
40333
-
40334
- if (this.listeners.length > 0) {
40335
- return
40336
- }
40337
-
40338
- var router = this.router;
40339
- var expectScroll = router.options.scrollBehavior;
40340
- var supportsScroll = supportsPushState && expectScroll;
40341
-
40342
- if (supportsScroll) {
40343
- this.listeners.push(setupScroll());
40344
- }
40345
-
40346
- var handleRoutingEvent = function () {
40347
- var current = this$1$1.current;
40348
-
40349
- // Avoiding first `popstate` event dispatched in some browsers but first
40350
- // history route not updated since async guard at the same time.
40351
- var location = getLocation(this$1$1.base);
40352
- if (this$1$1.current === START && location === this$1$1._startLocation) {
40353
- return
40354
- }
40355
-
40356
- this$1$1.transitionTo(location, function (route) {
40357
- if (supportsScroll) {
40358
- handleScroll(router, route, current, true);
40359
- }
40360
- });
40361
- };
40362
- window.addEventListener('popstate', handleRoutingEvent);
40363
- this.listeners.push(function () {
40364
- window.removeEventListener('popstate', handleRoutingEvent);
40365
- });
40366
- };
40367
-
40368
- HTML5History.prototype.go = function go (n) {
40369
- window.history.go(n);
40370
- };
40371
-
40372
- HTML5History.prototype.push = function push (location, onComplete, onAbort) {
40373
- var this$1$1 = this;
40374
-
40375
- var ref = this;
40376
- var fromRoute = ref.current;
40377
- this.transitionTo(location, function (route) {
40378
- pushState(cleanPath(this$1$1.base + route.fullPath));
40379
- handleScroll(this$1$1.router, route, fromRoute, false);
40380
- onComplete && onComplete(route);
40381
- }, onAbort);
40382
- };
40383
-
40384
- HTML5History.prototype.replace = function replace (location, onComplete, onAbort) {
40385
- var this$1$1 = this;
40386
-
40387
- var ref = this;
40388
- var fromRoute = ref.current;
40389
- this.transitionTo(location, function (route) {
40390
- replaceState(cleanPath(this$1$1.base + route.fullPath));
40391
- handleScroll(this$1$1.router, route, fromRoute, false);
40392
- onComplete && onComplete(route);
40393
- }, onAbort);
40394
- };
40395
-
40396
- HTML5History.prototype.ensureURL = function ensureURL (push) {
40397
- if (getLocation(this.base) !== this.current.fullPath) {
40398
- var current = cleanPath(this.base + this.current.fullPath);
40399
- push ? pushState(current) : replaceState(current);
40400
- }
40401
- };
40402
-
40403
- HTML5History.prototype.getCurrentLocation = function getCurrentLocation () {
40404
- return getLocation(this.base)
40405
- };
40406
-
40407
- return HTML5History;
40408
- }(History));
40409
-
40410
- function getLocation (base) {
40411
- var path = window.location.pathname;
40412
- var pathLowerCase = path.toLowerCase();
40413
- var baseLowerCase = base.toLowerCase();
40414
- // base="/a" shouldn't turn path="/app" into "/a/pp"
40415
- // https://github.com/vuejs/vue-router/issues/3555
40416
- // so we ensure the trailing slash in the base
40417
- if (base && ((pathLowerCase === baseLowerCase) ||
40418
- (pathLowerCase.indexOf(cleanPath(baseLowerCase + '/')) === 0))) {
40419
- path = path.slice(base.length);
40420
- }
40421
- return (path || '/') + window.location.search + window.location.hash
40422
- }
40423
-
40424
- /* */
40425
-
40426
- var HashHistory = /*@__PURE__*/(function (History) {
40427
- function HashHistory (router, base, fallback) {
40428
- History.call(this, router, base);
40429
- // check history fallback deeplinking
40430
- if (fallback && checkFallback(this.base)) {
40431
- return
40432
- }
40433
- ensureSlash();
40434
- }
40435
-
40436
- if ( History ) HashHistory.__proto__ = History;
40437
- HashHistory.prototype = Object.create( History && History.prototype );
40438
- HashHistory.prototype.constructor = HashHistory;
40439
-
40440
- // this is delayed until the app mounts
40441
- // to avoid the hashchange listener being fired too early
40442
- HashHistory.prototype.setupListeners = function setupListeners () {
40443
- var this$1$1 = this;
40444
-
40445
- if (this.listeners.length > 0) {
40446
- return
40447
- }
40448
-
40449
- var router = this.router;
40450
- var expectScroll = router.options.scrollBehavior;
40451
- var supportsScroll = supportsPushState && expectScroll;
40452
-
40453
- if (supportsScroll) {
40454
- this.listeners.push(setupScroll());
40455
- }
40456
-
40457
- var handleRoutingEvent = function () {
40458
- var current = this$1$1.current;
40459
- if (!ensureSlash()) {
40460
- return
40461
- }
40462
- this$1$1.transitionTo(getHash(), function (route) {
40463
- if (supportsScroll) {
40464
- handleScroll(this$1$1.router, route, current, true);
40465
- }
40466
- if (!supportsPushState) {
40467
- replaceHash(route.fullPath);
40468
- }
40469
- });
40470
- };
40471
- var eventType = supportsPushState ? 'popstate' : 'hashchange';
40472
- window.addEventListener(
40473
- eventType,
40474
- handleRoutingEvent
40475
- );
40476
- this.listeners.push(function () {
40477
- window.removeEventListener(eventType, handleRoutingEvent);
40478
- });
40479
- };
40480
-
40481
- HashHistory.prototype.push = function push (location, onComplete, onAbort) {
40482
- var this$1$1 = this;
40483
-
40484
- var ref = this;
40485
- var fromRoute = ref.current;
40486
- this.transitionTo(
40487
- location,
40488
- function (route) {
40489
- pushHash(route.fullPath);
40490
- handleScroll(this$1$1.router, route, fromRoute, false);
40491
- onComplete && onComplete(route);
40492
- },
40493
- onAbort
40494
- );
40495
- };
40496
-
40497
- HashHistory.prototype.replace = function replace (location, onComplete, onAbort) {
40498
- var this$1$1 = this;
40499
-
40500
- var ref = this;
40501
- var fromRoute = ref.current;
40502
- this.transitionTo(
40503
- location,
40504
- function (route) {
40505
- replaceHash(route.fullPath);
40506
- handleScroll(this$1$1.router, route, fromRoute, false);
40507
- onComplete && onComplete(route);
40508
- },
40509
- onAbort
40510
- );
40511
- };
40512
-
40513
- HashHistory.prototype.go = function go (n) {
40514
- window.history.go(n);
40515
- };
40516
-
40517
- HashHistory.prototype.ensureURL = function ensureURL (push) {
40518
- var current = this.current.fullPath;
40519
- if (getHash() !== current) {
40520
- push ? pushHash(current) : replaceHash(current);
40521
- }
40522
- };
40523
-
40524
- HashHistory.prototype.getCurrentLocation = function getCurrentLocation () {
40525
- return getHash()
40526
- };
40527
-
40528
- return HashHistory;
40529
- }(History));
40530
-
40531
- function checkFallback (base) {
40532
- var location = getLocation(base);
40533
- if (!/^\/#/.test(location)) {
40534
- window.location.replace(cleanPath(base + '/#' + location));
40535
- return true
40536
- }
40537
- }
40538
-
40539
- function ensureSlash () {
40540
- var path = getHash();
40541
- if (path.charAt(0) === '/') {
40542
- return true
40543
- }
40544
- replaceHash('/' + path);
40545
- return false
40546
- }
40547
-
40548
- function getHash () {
40549
- // We can't use window.location.hash here because it's not
40550
- // consistent across browsers - Firefox will pre-decode it!
40551
- var href = window.location.href;
40552
- var index = href.indexOf('#');
40553
- // empty path
40554
- if (index < 0) { return '' }
40555
-
40556
- href = href.slice(index + 1);
40557
-
40558
- return href
40559
- }
40560
-
40561
- function getUrl (path) {
40562
- var href = window.location.href;
40563
- var i = href.indexOf('#');
40564
- var base = i >= 0 ? href.slice(0, i) : href;
40565
- return (base + "#" + path)
40566
- }
40567
-
40568
- function pushHash (path) {
40569
- if (supportsPushState) {
40570
- pushState(getUrl(path));
40571
- } else {
40572
- window.location.hash = path;
40573
- }
40574
- }
40575
-
40576
- function replaceHash (path) {
40577
- if (supportsPushState) {
40578
- replaceState(getUrl(path));
40579
- } else {
40580
- window.location.replace(getUrl(path));
40581
- }
40582
- }
40583
-
40584
- /* */
40585
-
40586
- var AbstractHistory = /*@__PURE__*/(function (History) {
40587
- function AbstractHistory (router, base) {
40588
- History.call(this, router, base);
40589
- this.stack = [];
40590
- this.index = -1;
40591
- }
40592
-
40593
- if ( History ) AbstractHistory.__proto__ = History;
40594
- AbstractHistory.prototype = Object.create( History && History.prototype );
40595
- AbstractHistory.prototype.constructor = AbstractHistory;
40596
-
40597
- AbstractHistory.prototype.push = function push (location, onComplete, onAbort) {
40598
- var this$1$1 = this;
40599
-
40600
- this.transitionTo(
40601
- location,
40602
- function (route) {
40603
- this$1$1.stack = this$1$1.stack.slice(0, this$1$1.index + 1).concat(route);
40604
- this$1$1.index++;
40605
- onComplete && onComplete(route);
40606
- },
40607
- onAbort
40608
- );
40609
- };
40610
-
40611
- AbstractHistory.prototype.replace = function replace (location, onComplete, onAbort) {
40612
- var this$1$1 = this;
40613
-
40614
- this.transitionTo(
40615
- location,
40616
- function (route) {
40617
- this$1$1.stack = this$1$1.stack.slice(0, this$1$1.index).concat(route);
40618
- onComplete && onComplete(route);
40619
- },
40620
- onAbort
40621
- );
40622
- };
40623
-
40624
- AbstractHistory.prototype.go = function go (n) {
40625
- var this$1$1 = this;
40626
-
40627
- var targetIndex = this.index + n;
40628
- if (targetIndex < 0 || targetIndex >= this.stack.length) {
40629
- return
40630
- }
40631
- var route = this.stack[targetIndex];
40632
- this.confirmTransition(
40633
- route,
40634
- function () {
40635
- var prev = this$1$1.current;
40636
- this$1$1.index = targetIndex;
40637
- this$1$1.updateRoute(route);
40638
- this$1$1.router.afterHooks.forEach(function (hook) {
40639
- hook && hook(route, prev);
40640
- });
40641
- },
40642
- function (err) {
40643
- if (isNavigationFailure(err, NavigationFailureType.duplicated)) {
40644
- this$1$1.index = targetIndex;
40645
- }
40646
- }
40647
- );
40648
- };
40649
-
40650
- AbstractHistory.prototype.getCurrentLocation = function getCurrentLocation () {
40651
- var current = this.stack[this.stack.length - 1];
40652
- return current ? current.fullPath : '/'
40653
- };
40654
-
40655
- AbstractHistory.prototype.ensureURL = function ensureURL () {
40656
- // noop
40657
- };
40658
-
40659
- return AbstractHistory;
40660
- }(History));
40661
-
40662
- /* */
40663
-
40664
-
40665
-
40666
- var VueRouter = function VueRouter (options) {
40667
- if ( options === void 0 ) options = {};
40668
-
40669
- if (false) {}
40670
- this.app = null;
40671
- this.apps = [];
40672
- this.options = options;
40673
- this.beforeHooks = [];
40674
- this.resolveHooks = [];
40675
- this.afterHooks = [];
40676
- this.matcher = createMatcher(options.routes || [], this);
40677
-
40678
- var mode = options.mode || 'hash';
40679
- this.fallback =
40680
- mode === 'history' && !supportsPushState && options.fallback !== false;
40681
- if (this.fallback) {
40682
- mode = 'hash';
40683
- }
40684
- if (!vue_router_esm_inBrowser) {
40685
- mode = 'abstract';
40686
- }
40687
- this.mode = mode;
40688
-
40689
- switch (mode) {
40690
- case 'history':
40691
- this.history = new HTML5History(this, options.base);
40692
- break
40693
- case 'hash':
40694
- this.history = new HashHistory(this, options.base, this.fallback);
40695
- break
40696
- case 'abstract':
40697
- this.history = new AbstractHistory(this, options.base);
40698
- break
40699
- default:
40700
- if (false) {}
40701
- }
40702
- };
40703
-
40704
- var prototypeAccessors = { currentRoute: { configurable: true } };
40705
-
40706
- VueRouter.prototype.match = function match (raw, current, redirectedFrom) {
40707
- return this.matcher.match(raw, current, redirectedFrom)
40708
- };
40709
-
40710
- prototypeAccessors.currentRoute.get = function () {
40711
- return this.history && this.history.current
40712
- };
40713
-
40714
- VueRouter.prototype.init = function init (app /* Vue component instance */) {
40715
- var this$1$1 = this;
40716
-
40717
- false &&
40718
- 0;
40719
-
40720
- this.apps.push(app);
40721
-
40722
- // set up app destroyed handler
40723
- // https://github.com/vuejs/vue-router/issues/2639
40724
- app.$once('hook:destroyed', function () {
40725
- // clean out app from this.apps array once destroyed
40726
- var index = this$1$1.apps.indexOf(app);
40727
- if (index > -1) { this$1$1.apps.splice(index, 1); }
40728
- // ensure we still have a main app or null if no apps
40729
- // we do not release the router so it can be reused
40730
- if (this$1$1.app === app) { this$1$1.app = this$1$1.apps[0] || null; }
40731
-
40732
- if (!this$1$1.app) { this$1$1.history.teardown(); }
40733
- });
40734
-
40735
- // main app previously initialized
40736
- // return as we don't need to set up new history listener
40737
- if (this.app) {
40738
- return
40739
- }
40740
-
40741
- this.app = app;
40742
-
40743
- var history = this.history;
40744
-
40745
- if (history instanceof HTML5History || history instanceof HashHistory) {
40746
- var handleInitialScroll = function (routeOrError) {
40747
- var from = history.current;
40748
- var expectScroll = this$1$1.options.scrollBehavior;
40749
- var supportsScroll = supportsPushState && expectScroll;
40750
-
40751
- if (supportsScroll && 'fullPath' in routeOrError) {
40752
- handleScroll(this$1$1, routeOrError, from, false);
40753
- }
40754
- };
40755
- var setupListeners = function (routeOrError) {
40756
- history.setupListeners();
40757
- handleInitialScroll(routeOrError);
40758
- };
40759
- history.transitionTo(
40760
- history.getCurrentLocation(),
40761
- setupListeners,
40762
- setupListeners
40763
- );
40764
- }
40765
-
40766
- history.listen(function (route) {
40767
- this$1$1.apps.forEach(function (app) {
40768
- app._route = route;
40769
- });
40770
- });
40771
- };
40772
-
40773
- VueRouter.prototype.beforeEach = function beforeEach (fn) {
40774
- return registerHook(this.beforeHooks, fn)
40775
- };
40776
-
40777
- VueRouter.prototype.beforeResolve = function beforeResolve (fn) {
40778
- return registerHook(this.resolveHooks, fn)
40779
- };
40780
-
40781
- VueRouter.prototype.afterEach = function afterEach (fn) {
40782
- return registerHook(this.afterHooks, fn)
40783
- };
40784
-
40785
- VueRouter.prototype.onReady = function onReady (cb, errorCb) {
40786
- this.history.onReady(cb, errorCb);
40787
- };
40788
-
40789
- VueRouter.prototype.onError = function onError (errorCb) {
40790
- this.history.onError(errorCb);
40791
- };
40792
-
40793
- VueRouter.prototype.push = function push (location, onComplete, onAbort) {
40794
- var this$1$1 = this;
40795
-
40796
- // $flow-disable-line
40797
- if (!onComplete && !onAbort && typeof Promise !== 'undefined') {
40798
- return new Promise(function (resolve, reject) {
40799
- this$1$1.history.push(location, resolve, reject);
40800
- })
40801
- } else {
40802
- this.history.push(location, onComplete, onAbort);
40803
- }
40804
- };
40805
-
40806
- VueRouter.prototype.replace = function replace (location, onComplete, onAbort) {
40807
- var this$1$1 = this;
40808
-
40809
- // $flow-disable-line
40810
- if (!onComplete && !onAbort && typeof Promise !== 'undefined') {
40811
- return new Promise(function (resolve, reject) {
40812
- this$1$1.history.replace(location, resolve, reject);
40813
- })
40814
- } else {
40815
- this.history.replace(location, onComplete, onAbort);
40816
- }
40817
- };
40818
-
40819
- VueRouter.prototype.go = function go (n) {
40820
- this.history.go(n);
40821
- };
40822
-
40823
- VueRouter.prototype.back = function back () {
40824
- this.go(-1);
40825
- };
40826
-
40827
- VueRouter.prototype.forward = function forward () {
40828
- this.go(1);
40829
- };
40830
-
40831
- VueRouter.prototype.getMatchedComponents = function getMatchedComponents (to) {
40832
- var route = to
40833
- ? to.matched
40834
- ? to
40835
- : this.resolve(to).route
40836
- : this.currentRoute;
40837
- if (!route) {
40838
- return []
40839
- }
40840
- return [].concat.apply(
40841
- [],
40842
- route.matched.map(function (m) {
40843
- return Object.keys(m.components).map(function (key) {
40844
- return m.components[key]
40845
- })
40846
- })
40847
- )
40848
- };
40849
-
40850
- VueRouter.prototype.resolve = function resolve (
40851
- to,
40852
- current,
40853
- append
40854
- ) {
40855
- current = current || this.history.current;
40856
- var location = normalizeLocation(to, current, append, this);
40857
- var route = this.match(location, current);
40858
- var fullPath = route.redirectedFrom || route.fullPath;
40859
- var base = this.history.base;
40860
- var href = createHref(base, fullPath, this.mode);
40861
- return {
40862
- location: location,
40863
- route: route,
40864
- href: href,
40865
- // for backwards compat
40866
- normalizedTo: location,
40867
- resolved: route
40868
- }
40869
- };
40870
-
40871
- VueRouter.prototype.getRoutes = function getRoutes () {
40872
- return this.matcher.getRoutes()
40873
- };
40874
-
40875
- VueRouter.prototype.addRoute = function addRoute (parentOrRoute, route) {
40876
- this.matcher.addRoute(parentOrRoute, route);
40877
- if (this.history.current !== START) {
40878
- this.history.transitionTo(this.history.getCurrentLocation());
40879
- }
40880
- };
40881
-
40882
- VueRouter.prototype.addRoutes = function addRoutes (routes) {
40883
- if (false) {}
40884
- this.matcher.addRoutes(routes);
40885
- if (this.history.current !== START) {
40886
- this.history.transitionTo(this.history.getCurrentLocation());
40887
- }
40888
- };
40889
-
40890
- Object.defineProperties( VueRouter.prototype, prototypeAccessors );
40891
-
40892
- var VueRouter$1 = VueRouter;
40893
-
40894
- function registerHook (list, fn) {
40895
- list.push(fn);
40896
- return function () {
40897
- var i = list.indexOf(fn);
40898
- if (i > -1) { list.splice(i, 1); }
40899
- }
40900
- }
40901
-
40902
- function createHref (base, fullPath, mode) {
40903
- var path = mode === 'hash' ? '#' + fullPath : fullPath;
40904
- return base ? cleanPath(base + '/' + path) : path
40905
- }
40906
-
40907
- // We cannot remove this as it would be a breaking change
40908
- VueRouter.install = install;
40909
- VueRouter.version = '3.6.5';
40910
- VueRouter.isNavigationFailure = isNavigationFailure;
40911
- VueRouter.NavigationFailureType = NavigationFailureType;
40912
- VueRouter.START_LOCATION = START;
40913
-
40914
- if (vue_router_esm_inBrowser && window.Vue) {
40915
- window.Vue.use(VueRouter);
40916
- }
40917
-
40918
- var version = '3.6.5';
40919
-
40920
-
37881
+ ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=template&id=1fb9c8f8&scoped=true
40921
37882
 
40922
37883
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
40923
37884
  function _extends() {
@@ -40930,6 +37891,9 @@ function _extends() {
40930
37891
  }, _extends.apply(null, arguments);
40931
37892
  }
40932
37893
 
37894
+ ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
37895
+ var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
37896
+ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
40933
37897
  ;// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/bem.js
40934
37898
  /**
40935
37899
  * bem helper
@@ -40977,7 +37941,7 @@ function createBEM(name) {
40977
37941
  var utils_inBrowser = typeof window !== 'undefined';
40978
37942
  var isServer = (external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function
40979
37943
 
40980
- function utils_noop() {}
37944
+ function noop() {}
40981
37945
  function isDef(val) {
40982
37946
  return val !== undefined && val !== null;
40983
37947
  }
@@ -41096,7 +38060,7 @@ var SlotsMixin = {
41096
38060
 
41097
38061
 
41098
38062
 
41099
- function component_install(Vue) {
38063
+ function install(Vue) {
41100
38064
  var name = this.name;
41101
38065
  Vue.component(name, this);
41102
38066
  Vue.component(camelize("-" + name), this);
@@ -41140,7 +38104,7 @@ function createComponent(name) {
41140
38104
  }
41141
38105
 
41142
38106
  sfc.name = name;
41143
- sfc.install = component_install;
38107
+ sfc.install = install;
41144
38108
  return sfc;
41145
38109
  };
41146
38110
  }
@@ -41496,7 +38460,7 @@ function Overlay(h, props, slots, ctx) {
41496
38460
  "style": style,
41497
38461
  "class": [bem(), props.className],
41498
38462
  "on": {
41499
- "touchmove": props.lockScroll ? preventTouchMove : utils_noop
38463
+ "touchmove": props.lockScroll ? preventTouchMove : noop
41500
38464
  }
41501
38465
  }, inherit(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);
41502
38466
  }
@@ -42938,7 +39902,7 @@ function vuex_esm_isPromise (val) {
42938
39902
  return val && typeof val.then === 'function'
42939
39903
  }
42940
39904
 
42941
- function vuex_esm_assert (condition, msg) {
39905
+ function assert (condition, msg) {
42942
39906
  if (!condition) { throw new Error(("[vuex] " + msg)) }
42943
39907
  }
42944
39908
 
@@ -42961,9 +39925,9 @@ var Module = function Module (rawModule, runtime) {
42961
39925
  this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
42962
39926
  };
42963
39927
 
42964
- var vuex_esm_prototypeAccessors = { namespaced: { configurable: true } };
39928
+ var prototypeAccessors = { namespaced: { configurable: true } };
42965
39929
 
42966
- vuex_esm_prototypeAccessors.namespaced.get = function () {
39930
+ prototypeAccessors.namespaced.get = function () {
42967
39931
  return !!this._rawModule.namespaced
42968
39932
  };
42969
39933
 
@@ -43018,7 +39982,7 @@ Module.prototype.forEachMutation = function forEachMutation (fn) {
43018
39982
  }
43019
39983
  };
43020
39984
 
43021
- Object.defineProperties( Module.prototype, vuex_esm_prototypeAccessors );
39985
+ Object.defineProperties( Module.prototype, prototypeAccessors );
43022
39986
 
43023
39987
  var ModuleCollection = function ModuleCollection (rawRootModule) {
43024
39988
  // register root module (Vuex.Store options)
@@ -43139,7 +40103,7 @@ function assertRawModule (path, rawModule) {
43139
40103
  var assertOptions = assertTypes[key];
43140
40104
 
43141
40105
  forEachValue(rawModule[key], function (value, type) {
43142
- vuex_esm_assert(
40106
+ assert(
43143
40107
  assertOptions.assert(value),
43144
40108
  makeAssertionMessage(path, key, type, value, assertOptions.expected)
43145
40109
  );
@@ -43156,7 +40120,7 @@ function makeAssertionMessage (path, key, type, value, expected) {
43156
40120
  return buf
43157
40121
  }
43158
40122
 
43159
- var Vue; // bind on install
40123
+ var vuex_esm_Vue; // bind on install
43160
40124
 
43161
40125
  var Store = function Store (options) {
43162
40126
  var this$1 = this;
@@ -43165,7 +40129,7 @@ var Store = function Store (options) {
43165
40129
  // Auto install if it is not done yet and `window` has `Vue`.
43166
40130
  // To allow users to avoid auto-installation in some cases,
43167
40131
  // this code should be placed here. See #731
43168
- if (!Vue && typeof window !== 'undefined' && window.Vue) {
40132
+ if (!vuex_esm_Vue && typeof window !== 'undefined' && window.Vue) {
43169
40133
  vuex_esm_install(window.Vue);
43170
40134
  }
43171
40135
 
@@ -43183,7 +40147,7 @@ var Store = function Store (options) {
43183
40147
  this._modules = new ModuleCollection(options);
43184
40148
  this._modulesNamespaceMap = Object.create(null);
43185
40149
  this._subscribers = [];
43186
- this._watcherVM = new Vue();
40150
+ this._watcherVM = new vuex_esm_Vue();
43187
40151
  this._makeLocalGettersCache = Object.create(null);
43188
40152
 
43189
40153
  // bind commit and dispatch to self
@@ -43215,7 +40179,7 @@ var Store = function Store (options) {
43215
40179
  // apply plugins
43216
40180
  plugins.forEach(function (plugin) { return plugin(this$1); });
43217
40181
 
43218
- var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
40182
+ var useDevtools = options.devtools !== undefined ? options.devtools : vuex_esm_Vue.config.devtools;
43219
40183
  if (useDevtools) {
43220
40184
  devtoolPlugin(this);
43221
40185
  }
@@ -43359,7 +40323,7 @@ Store.prototype.unregisterModule = function unregisterModule (path) {
43359
40323
  this._modules.unregister(path);
43360
40324
  this._withCommit(function () {
43361
40325
  var parentState = getNestedState(this$1.state, path.slice(0, -1));
43362
- Vue.delete(parentState, path[path.length - 1]);
40326
+ vuex_esm_Vue.delete(parentState, path[path.length - 1]);
43363
40327
  });
43364
40328
  resetStore(this);
43365
40329
  };
@@ -43435,15 +40399,15 @@ function resetStoreVM (store, state, hot) {
43435
40399
  // use a Vue instance to store the state tree
43436
40400
  // suppress warnings just in case the user has added
43437
40401
  // some funky global mixins
43438
- var silent = Vue.config.silent;
43439
- Vue.config.silent = true;
43440
- store._vm = new Vue({
40402
+ var silent = vuex_esm_Vue.config.silent;
40403
+ vuex_esm_Vue.config.silent = true;
40404
+ store._vm = new vuex_esm_Vue({
43441
40405
  data: {
43442
40406
  $$state: state
43443
40407
  },
43444
40408
  computed: computed
43445
40409
  });
43446
- Vue.config.silent = silent;
40410
+ vuex_esm_Vue.config.silent = silent;
43447
40411
 
43448
40412
  // enable strict mode for new vm
43449
40413
  if (store.strict) {
@@ -43458,7 +40422,7 @@ function resetStoreVM (store, state, hot) {
43458
40422
  oldVm._data.$$state = null;
43459
40423
  });
43460
40424
  }
43461
- Vue.nextTick(function () { return oldVm.$destroy(); });
40425
+ vuex_esm_Vue.nextTick(function () { return oldVm.$destroy(); });
43462
40426
  }
43463
40427
  }
43464
40428
 
@@ -43478,7 +40442,7 @@ function installModule (store, rootState, path, module, hot) {
43478
40442
  var moduleName = path[path.length - 1];
43479
40443
  store._withCommit(function () {
43480
40444
  if ((false)) {}
43481
- Vue.set(parentState, moduleName, module.state);
40445
+ vuex_esm_Vue.set(parentState, moduleName, module.state);
43482
40446
  });
43483
40447
  }
43484
40448
 
@@ -43653,12 +40617,12 @@ function unifyObjectStyle (type, payload, options) {
43653
40617
  }
43654
40618
 
43655
40619
  function vuex_esm_install (_Vue) {
43656
- if (Vue && _Vue === Vue) {
40620
+ if (vuex_esm_Vue && _Vue === vuex_esm_Vue) {
43657
40621
  if ((false)) {}
43658
40622
  return
43659
40623
  }
43660
- Vue = _Vue;
43661
- applyMixin(Vue);
40624
+ vuex_esm_Vue = _Vue;
40625
+ applyMixin(vuex_esm_Vue);
43662
40626
  }
43663
40627
 
43664
40628
  /**
@@ -44307,10 +41271,7 @@ function FileViewvue_type_script_lang_js_defineProperty(e, r, t) { return (r = F
44307
41271
  function FileViewvue_type_script_lang_js_toPropertyKey(t) { var i = FileViewvue_type_script_lang_js_toPrimitive(t, "string"); return "symbol" == FileViewvue_type_script_lang_js_typeof(i) ? i : i + ""; }
44308
41272
  function FileViewvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != FileViewvue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != FileViewvue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
44309
41273
 
44310
-
44311
-
44312
- external_commonjs_vue_commonjs2_vue_root_Vue_default().use(toast);
44313
- external_commonjs_vue_commonjs2_vue_root_Vue_default().use(VueRouter$1);
41274
+ Vue.use(toast);
44314
41275
 
44315
41276
 
44316
41277
  var moment = __webpack_require__(5093);
@@ -45018,9 +41979,9 @@ var moment = __webpack_require__(5093);
45018
41979
  });
45019
41980
  ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=script&lang=js
45020
41981
  /* harmony default export */ var view_FileViewvue_type_script_lang_js = (FileViewvue_type_script_lang_js);
45021
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=style&index=0&id=0875343a&prod&scoped=true&lang=scss
45022
- var FileViewvue_type_style_index_0_id_0875343a_prod_scoped_true_lang_scss = __webpack_require__(7807);
45023
- ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=style&index=0&id=0875343a&prod&scoped=true&lang=scss
41982
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=style&index=0&id=1fb9c8f8&prod&scoped=true&lang=scss
41983
+ var FileViewvue_type_style_index_0_id_1fb9c8f8_prod_scoped_true_lang_scss = __webpack_require__(9183);
41984
+ ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue?vue&type=style&index=0&id=1fb9c8f8&prod&scoped=true&lang=scss
45024
41985
 
45025
41986
  ;// CONCATENATED MODULE: ./packages/ecmoa/hygl/src/ipad/view/FileView.vue
45026
41987
 
@@ -45033,11 +41994,11 @@ var FileViewvue_type_style_index_0_id_0875343a_prod_scoped_true_lang_scss = __we
45033
41994
 
45034
41995
  var FileView_component = normalizeComponent(
45035
41996
  view_FileViewvue_type_script_lang_js,
45036
- FileViewvue_type_template_id_0875343a_scoped_true_render,
45037
- FileViewvue_type_template_id_0875343a_scoped_true_staticRenderFns,
41997
+ FileViewvue_type_template_id_1fb9c8f8_scoped_true_render,
41998
+ FileViewvue_type_template_id_1fb9c8f8_scoped_true_staticRenderFns,
45038
41999
  false,
45039
42000
  null,
45040
- "0875343a",
42001
+ "1fb9c8f8",
45041
42002
  null
45042
42003
 
45043
42004
  )
@@ -61580,10 +58541,10 @@ var Dialog_createNamespace = createNamespace('dialog'),
61580
58541
  var onEventType = {
61581
58542
  Enter: this.showConfirmButton ? function () {
61582
58543
  return _this3.handleAction('confirm');
61583
- } : utils_noop,
58544
+ } : noop,
61584
58545
  Escape: this.showCancelButton ? function () {
61585
58546
  return _this3.handleAction('cancel');
61586
- } : utils_noop
58547
+ } : noop
61587
58548
  };
61588
58549
  onEventType[event.key]();
61589
58550
  this.$emit('keydown', event);