@runeya/runeya 1.33.26 → 1.33.28
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.
- package/node-red-contrib-runeya.tar +0 -0
- package/package.json +1 -1
- package/public/assets/{App-Cuu3qapD.js → App-CsI6OcLx.js} +4 -4
- package/public/assets/{Bugs-H-Otgxln.js → Bugs-MZTedjOE.js} +1 -1
- package/public/assets/{Configs-CS7LQ3j2.js → Configs-BgQMyHZa.js} +1 -1
- package/public/assets/{CurrentEditor-DSg_c1cT.js → CurrentEditor-DWe_jHov.js} +1 -1
- package/public/assets/{DynamicComponent-Cd8cbFTY.js → DynamicComponent-21b6a83j.js} +1 -1
- package/public/assets/{Editor-BUC6Zjcy.js → Editor-DN-ZxIRY.js} +6 -6
- package/public/assets/{Git-CWhmBLgo.js → Git-Cwuf8t1y.js} +1 -1
- package/public/assets/{ImportCreate-BMYQ7CRt.js → ImportCreate-D7EkVr9x.js} +1 -1
- package/public/assets/{Index-DXLLCB8w.js → Index-C0kNw_RG.js} +1 -1
- package/public/assets/Index-CmroLpq5.js +1 -0
- package/public/assets/{Index-CCt5RYhV.js → Index-Dfxab_I2.js} +1 -1
- package/public/assets/{Index-CvSNWhOl.js → Index-DrguhRqW.js} +1 -1
- package/public/assets/Index-DtZrxZqP.js +1 -0
- package/public/assets/{Index-CNTmcq3o.js → Index-DusWDLpW.js} +1 -1
- package/public/assets/{Index-CKyiBy6h.js → Index-Q4_j8YjB.js} +1 -1
- package/public/assets/{Init-ec91xg4K.js → Init-UQADYgJ2.js} +1 -1
- package/public/assets/{LeftLogo-DdpN8uKw.js → LeftLogo-WwcR9Ouh.js} +1 -1
- package/public/assets/{Logs-Dr0aVld6.js → Logs-X8OwrHBK.js} +4 -4
- package/public/assets/{Markdown-CINu7VUT.js → Markdown-h-TQzZmw.js} +1 -1
- package/public/assets/{Modal-CMVKUmmz.js → Modal-BdxNbadF.js} +1 -1
- package/public/assets/{Modals-UgnVGGTd.js → Modals-TRAAm7M1.js} +1 -1
- package/public/assets/{NotUpToDate-Dv1x5laT.js → NotUpToDate-DzOvMb7E.js} +1 -1
- package/public/assets/{Npm-BQOhWPXB.js → Npm-CjJPSo9X.js} +1 -1
- package/public/assets/Overview-CeyyN0oI.js +1 -0
- package/public/assets/{Section-DWZalQSy.js → Section-lgKMkAwG.js} +1 -1
- package/public/assets/{Settings-gQ2r_ArG.js → Settings-CHmRle2O.js} +1 -1
- package/public/assets/{Spinner-BDdyfVPn.js → Spinner-CUHDMnpi.js} +1 -1
- package/public/assets/{StackChooser-D4JG1V6p.js → StackChooser-BevuWQmP.js} +1 -1
- package/public/assets/{StackChooser-Dy0nw-1k.js → StackChooser-_zBnelt3.js} +1 -1
- package/public/assets/{StackMultiple-CXbZO3gp.js → StackMultiple-Csmw3IYP.js} +1 -1
- package/public/assets/StackSingle-Dlt8beq2.js +1 -0
- package/public/assets/{Tabs-zx6MP1w5.js → Tabs-BywdfSIb.js} +1 -1
- package/public/assets/{Theme-CVJqEc74.js → Theme-Crc3Y5Xq.js} +1 -1
- package/public/assets/{Toolbox-CeYvSlof.js → Toolbox-CdJUlTYX.js} +1 -1
- package/public/assets/{cssMode-DRJB02N-.js → cssMode-Dc_mjwBm.js} +1 -1
- package/public/assets/{currentEditor-Mutd140I.js → currentEditor-7U_ffDbK.js} +1 -1
- package/public/assets/{freemarker2-CUNqJsQJ.js → freemarker2-DenoI_EN.js} +1 -1
- package/public/assets/{fs-zCN6KWbV.js → fs--ioNfX4e.js} +1 -1
- package/public/assets/{handlebars-DFPe5IUH.js → handlebars-DE9m4AD9.js} +1 -1
- package/public/assets/{html-iAZ8fYxX.js → html-DWkY5lmD.js} +1 -1
- package/public/assets/{htmlMode-CiLcIJ9M.js → htmlMode-H_uCDovv.js} +1 -1
- package/public/assets/{index-D6ITaiDq.js → index-BDHszrMp.js} +1 -1
- package/public/assets/{index-D7eodgey.js → index-BRb5P6Lf.js} +1 -1
- package/public/assets/{index-DlBh1BN-.js → index-BU5twE5I.js} +1 -1
- package/public/assets/{index-LXuPKlr_.js → index-BgXIYHf3.js} +1 -1
- package/public/assets/{index-CnHkskP1.js → index-C02AjRq4.js} +2 -2
- package/public/assets/{index-r5zB7DkH.js → index-CDIN4LjQ.js} +1 -1
- package/public/assets/{index-BYlmWHqo.js → index-CajhEFGy.js} +1 -1
- package/public/assets/{index-BvK3ngOF.js → index-Cz_I0ncW.js} +1 -1
- package/public/assets/{index-CED4m1pl.js → index-DNGpCJ06.js} +1 -1
- package/public/assets/index-DzbsgEyi.js +1 -0
- package/public/assets/{index-BykKOUV5.js → index-oilsqKTE.js} +1 -1
- package/public/assets/{javascript-DRLQS2xP.js → javascript-JEHh0kiL.js} +1 -1
- package/public/assets/{json-tree-view-vue3.es-BAcuRLYG.js → json-tree-view-vue3.es-rwBZaiwd.js} +1 -1
- package/public/assets/{jsonMode-BKVfjW9m.js → jsonMode-IIPA7cCY.js} +1 -1
- package/public/assets/{liquid-CBIGo8D7.js → liquid-BRkFpgwx.js} +1 -1
- package/public/assets/{mdx-D_MaKLKm.js → mdx-BrIuyYYh.js} +1 -1
- package/public/assets/{python-ROmifk5f.js → python-DeMyHNgB.js} +1 -1
- package/public/assets/{razor-B2BrIgAg.js → razor-JtCeytr2.js} +1 -1
- package/public/assets/router-6vVxI5YF.js +103 -0
- package/public/assets/{system-CmOEECxV.js → system-h6IsCj_l.js} +1 -1
- package/public/assets/{tsMode-ur-_baj-.js → tsMode-z-HPtKEe.js} +1 -1
- package/public/assets/{typescript-BI5fccq7.js → typescript-Doy-VTuU.js} +1 -1
- package/public/assets/{xml-C8ZhN0MF.js → xml-BOYtRcyI.js} +1 -1
- package/public/assets/{yaml-DEXuQlV0.js → yaml-Cu0wuKOc.js} +1 -1
- package/public/index.html +1 -1
- package/www.js +24 -3
- package/www.js.map +1 -1
- package/public/assets/Index-_Myie1IE.js +0 -1
- package/public/assets/Overview-CyhbZrp6.js +0 -1
- package/public/assets/StackSingle-BrA92wNq.js +0 -1
- package/public/assets/router-BmEvmcw4.js +0 -103
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-Dfxab_I2.js","assets/_commonjsHelpers-D6-XlEtG.js","assets/Section-lgKMkAwG.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/index-C02AjRq4.js","assets/index-D9v3u7Fv.css","assets/Section-Dz0BsVYl.css","assets/Theme-Crc3Y5Xq.js","assets/_baseFor-DiPelG4M.js","assets/Editor-DN-ZxIRY.js","assets/Editor-CPPFMOjb.css","assets/Index-Cd-qd5VG.css","assets/Index-CmroLpq5.js","assets/index-DzbsgEyi.js","assets/NotUpToDate-DzOvMb7E.js","assets/Spinner-CUHDMnpi.js","assets/Spinner-BZXOybIg.css","assets/NotUpToDate-Dh9RbAwK.css","assets/Index-Q4_j8YjB.js","assets/Index-DrguhRqW.js","assets/Index-DusWDLpW.js","assets/json-tree-view-vue3.es-rwBZaiwd.js","assets/Index-C66tLKvy.css","assets/Toolbox-CdJUlTYX.js","assets/Toolbox-B5KXz4eX.css","assets/DynamicComponent-21b6a83j.js","assets/DynamicComponent-DgxRO4Pl.css","assets/Modals-TRAAm7M1.js","assets/Modal-BdxNbadF.js","assets/Modal-CGUZawhK.css","assets/index-BgXIYHf3.js","assets/index-DNGpCJ06.js","assets/index-CDIN4LjQ.js","assets/Logs-X8OwrHBK.js","assets/dayjs.min-CfWDS3UC.js","assets/fs--ioNfX4e.js","assets/Logs-C7U-WsYO.css","assets/Git-Cwuf8t1y.js","assets/currentEditor-7U_ffDbK.js","assets/Git-UQIt5ANe.css","assets/Index-DtZrxZqP.js","assets/sort-BibmqbFD.js","assets/Index-BcFahN3S.css","assets/Npm-CjJPSo9X.js","assets/Npm-KBzO1DYv.css","assets/Bugs-MZTedjOE.js","assets/Bugs-DZVuTDKA.css","assets/Configs-BgQMyHZa.js","assets/index-oilsqKTE.js","assets/index-CajhEFGy.js","assets/index-BRb5P6Lf.js","assets/index-Cz_I0ncW.js","assets/index-BDHszrMp.js","assets/lodash-D2RHCRSL.js","assets/Configs-DQRZRhbp.css","assets/Index-C0kNw_RG.js","assets/Markdown-h-TQzZmw.js","assets/Markdown-CqAPHaPe.css","assets/index-BU5twE5I.js","assets/Index-CvhWs0kp.css","assets/StackChooser-BevuWQmP.js","assets/system-h6IsCj_l.js","assets/LeftLogo-WwcR9Ouh.js","assets/LeftLogo-DsGaOcJY.css","assets/StackChooser-_zBnelt3.js","assets/StackChooser-mg-uox7H.css","assets/StackChooser-DRNfmbOi.css","assets/StackSingle-Dlt8beq2.js","assets/Tabs-BywdfSIb.js","assets/Tabs-BGPqRkjE.css","assets/CurrentEditor-DWe_jHov.js","assets/CurrentEditor-CICqnVzc.css","assets/StackSingle-BVHxvisP.css","assets/Overview-CeyyN0oI.js","assets/Overview-D94ypoub.css","assets/StackMultiple-Csmw3IYP.js","assets/StackMultiple-CiXqkibR.css","assets/ImportCreate-D7EkVr9x.js","assets/ImportCreate-D2Vb-Kah.css","assets/Settings-CHmRle2O.js","assets/Settings-DvieCtW4.css","assets/Init-UQADYgJ2.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{P as tn,Q as Ie,L as Lt,R as en,U as xt,V as nn,c as bt,W as Le,X as qt,r as St,w as Ve,i as rn,Y as dt,_ as ot,k as B,Z as on,S as Bt}from"./index-C02AjRq4.js";import{c as Ut,g as an}from"./_commonjsHelpers-D6-XlEtG.js";import{E as sn}from"./Editor-DN-ZxIRY.js";import{_ as cn}from"./Section-lgKMkAwG.js";/*!
|
|
3
|
+
* vue-router v4.5.1
|
|
4
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/const Ft=typeof document<"u";function De(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ln(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&De(e.default)}const rt=Object.assign;function Yt(e,n){const o={};for(const r in n){const s=n[r];o[r]=mt(s)?s.map(e):e(s)}return o}const Vt=()=>{},mt=Array.isArray,He=/#/g,un=/&/g,fn=/\//g,hn=/=/g,pn=/\?/g,Pe=/\+/g,dn=/%5B/g,vn=/%5D/g,Ue=/%5E/g,_n=/%60/g,$e=/%7B/g,gn=/%7C/g,Be=/%7D/g,yn=/%20/g;function ie(e){return encodeURI(""+e).replace(gn,"|").replace(dn,"[").replace(vn,"]")}function mn(e){return ie(e).replace($e,"{").replace(Be,"}").replace(Ue,"^")}function ee(e){return ie(e).replace(Pe,"%2B").replace(yn,"+").replace(He,"%23").replace(un,"%26").replace(_n,"`").replace($e,"{").replace(Be,"}").replace(Ue,"^")}function bn(e){return ee(e).replace(hn,"%3D")}function wn(e){return ie(e).replace(He,"%23").replace(pn,"%3F")}function En(e){return e==null?"":wn(e).replace(fn,"%2F")}function Ht(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Cn=/\/$/,Rn=e=>e.replace(Cn,"");function Jt(e,n,o="/"){let r,s={},R="",t="";const w=n.indexOf("#");let c=n.indexOf("?");return w<c&&w>=0&&(c=-1),c>-1&&(r=n.slice(0,c),R=n.slice(c+1,w>-1?w:n.length),s=e(R)),w>-1&&(r=r||n.slice(0,w),t=n.slice(w,n.length)),r=xn(r??n,o),{fullPath:r+(R&&"?")+R+t,path:r,query:s,hash:Ht(t)}}function kn(e,n){const o=n.query?e(n.query):"";return n.path+(o&&"?")+o+(n.hash||"")}function fe(e,n){return!n||!e.toLowerCase().startsWith(n.toLowerCase())?e:e.slice(n.length)||"/"}function Sn(e,n,o){const r=n.matched.length-1,s=o.matched.length-1;return r>-1&&r===s&&At(n.matched[r],o.matched[s])&&Ne(n.params,o.params)&&e(n.query)===e(o.query)&&n.hash===o.hash}function At(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function Ne(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const o in e)if(!Tn(e[o],n[o]))return!1;return!0}function Tn(e,n){return mt(e)?he(e,n):mt(n)?he(n,e):e===n}function he(e,n){return mt(n)?e.length===n.length&&e.every((o,r)=>o===n[r]):e.length===1&&e[0]===n}function xn(e,n){if(e.startsWith("/"))return e;if(!e)return n;const o=n.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let R=o.length-1,t,w;for(t=0;t<r.length;t++)if(w=r[t],w!==".")if(w==="..")R>1&&R--;else break;return o.slice(0,R).join("/")+"/"+r.slice(t).join("/")}const Rt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Pt;(function(e){e.pop="pop",e.push="push"})(Pt||(Pt={}));var Dt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Dt||(Dt={}));function Fn(e){if(!e)if(Ft){const n=document.querySelector("base");e=n&&n.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Rn(e)}const An=/^[^#]+#/;function jn(e,n){return e.replace(An,"#")+n}function On(e,n){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:n.behavior,left:r.left-o.left-(n.left||0),top:r.top-o.top-(n.top||0)}}const Mt=()=>({left:window.scrollX,top:window.scrollY});function In(e){let n;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),s=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!s)return;n=On(s,e)}else n=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.scrollX,n.top!=null?n.top:window.scrollY)}function pe(e,n){return(history.state?history.state.position-n:-1)+e}const ne=new Map;function Ln(e,n){ne.set(e,n)}function Vn(e){const n=ne.get(e);return ne.delete(e),n}let Dn=()=>location.protocol+"//"+location.host;function Me(e,n){const{pathname:o,search:r,hash:s}=n,R=e.indexOf("#");if(R>-1){let w=s.includes(e.slice(R))?e.slice(R).length:1,c=s.slice(w);return c[0]!=="/"&&(c="/"+c),fe(c,"")}return fe(o,e)+r+s}function Hn(e,n,o,r){let s=[],R=[],t=null;const w=({state:u})=>{const h=Me(e,location),d=o.value,m=n.value;let g=0;if(u){if(o.value=h,n.value=u,t&&t===d){t=null;return}g=m?u.position-m.position:0}else r(h);s.forEach(_=>{_(o.value,d,{delta:g,type:Pt.pop,direction:g?g>0?Dt.forward:Dt.back:Dt.unknown})})};function c(){t=o.value}function a(u){s.push(u);const h=()=>{const d=s.indexOf(u);d>-1&&s.splice(d,1)};return R.push(h),h}function y(){const{history:u}=window;u.state&&u.replaceState(rt({},u.state,{scroll:Mt()}),"")}function f(){for(const u of R)u();R=[],window.removeEventListener("popstate",w),window.removeEventListener("beforeunload",y)}return window.addEventListener("popstate",w),window.addEventListener("beforeunload",y,{passive:!0}),{pauseListeners:c,listen:a,destroy:f}}function de(e,n,o,r=!1,s=!1){return{back:e,current:n,forward:o,replaced:r,position:window.history.length,scroll:s?Mt():null}}function Pn(e){const{history:n,location:o}=window,r={value:Me(e,o)},s={value:n.state};s.value||R(r.value,{back:null,current:r.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function R(c,a,y){const f=e.indexOf("#"),u=f>-1?(o.host&&document.querySelector("base")?e:e.slice(f))+c:Dn()+e+c;try{n[y?"replaceState":"pushState"](a,"",u),s.value=a}catch(h){console.error(h),o[y?"replace":"assign"](u)}}function t(c,a){const y=rt({},n.state,de(s.value.back,c,s.value.forward,!0),a,{position:s.value.position});R(c,y,!0),r.value=c}function w(c,a){const y=rt({},s.value,n.state,{forward:c,scroll:Mt()});R(y.current,y,!0);const f=rt({},de(r.value,c,null),{position:y.position+1},a);R(c,f,!1),r.value=c}return{location:r,state:s,push:w,replace:t}}function Un(e){e=Fn(e);const n=Pn(e),o=Hn(e,n.state,n.location,n.replace);function r(R,t=!0){t||o.pauseListeners(),history.go(R)}const s=rt({location:"",base:e,go:r,createHref:jn.bind(null,e)},n,o);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>n.state.value}),s}function $n(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Un(e)}function Bn(e){return typeof e=="string"||e&&typeof e=="object"}function We(e){return typeof e=="string"||typeof e=="symbol"}const Ge=Symbol("");var ve;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ve||(ve={}));function jt(e,n){return rt(new Error,{type:e,[Ge]:!0},n)}function Ct(e,n){return e instanceof Error&&Ge in e&&(n==null||!!(e.type&n))}const _e="[^/]+?",Nn={sensitive:!1,strict:!1,start:!0,end:!0},Mn=/[.+*?^${}()[\]/\\]/g;function Wn(e,n){const o=rt({},Nn,n),r=[];let s=o.start?"^":"";const R=[];for(const a of e){const y=a.length?[]:[90];o.strict&&!a.length&&(s+="/");for(let f=0;f<a.length;f++){const u=a[f];let h=40+(o.sensitive?.25:0);if(u.type===0)f||(s+="/"),s+=u.value.replace(Mn,"\\$&"),h+=40;else if(u.type===1){const{value:d,repeatable:m,optional:g,regexp:_}=u;R.push({name:d,repeatable:m,optional:g});const b=_||_e;if(b!==_e){h+=10;try{new RegExp(`(${b})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${d}" (${b}): `+v.message)}}let p=m?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(p=g&&a.length<2?`(?:/${p})`:"/"+p),g&&(p+="?"),s+=p,h+=20,g&&(h+=-8),m&&(h+=-20),b===".*"&&(h+=-50)}y.push(h)}r.push(y)}if(o.strict&&o.end){const a=r.length-1;r[a][r[a].length-1]+=.7000000000000001}o.strict||(s+="/?"),o.end?s+="$":o.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const t=new RegExp(s,o.sensitive?"":"i");function w(a){const y=a.match(t),f={};if(!y)return null;for(let u=1;u<y.length;u++){const h=y[u]||"",d=R[u-1];f[d.name]=h&&d.repeatable?h.split("/"):h}return f}function c(a){let y="",f=!1;for(const u of e){(!f||!y.endsWith("/"))&&(y+="/"),f=!1;for(const h of u)if(h.type===0)y+=h.value;else if(h.type===1){const{value:d,repeatable:m,optional:g}=h,_=d in a?a[d]:"";if(mt(_)&&!m)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const b=mt(_)?_.join("/"):_;if(!b)if(g)u.length<2&&(y.endsWith("/")?y=y.slice(0,-1):f=!0);else throw new Error(`Missing required param "${d}"`);y+=b}}return y||"/"}return{re:t,score:r,keys:R,parse:w,stringify:c}}function Gn(e,n){let o=0;for(;o<e.length&&o<n.length;){const r=n[o]-e[o];if(r)return r;o++}return e.length<n.length?e.length===1&&e[0]===80?-1:1:e.length>n.length?n.length===1&&n[0]===80?1:-1:0}function ze(e,n){let o=0;const r=e.score,s=n.score;for(;o<r.length&&o<s.length;){const R=Gn(r[o],s[o]);if(R)return R;o++}if(Math.abs(s.length-r.length)===1){if(ge(r))return 1;if(ge(s))return-1}return s.length-r.length}function ge(e){const n=e[e.length-1];return e.length>0&&n[n.length-1]<0}const zn={type:0,value:""},Qn=/[a-zA-Z0-9_]/;function Kn(e){if(!e)return[[]];if(e==="/")return[[zn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function n(h){throw new Error(`ERR (${o})/"${a}": ${h}`)}let o=0,r=o;const s=[];let R;function t(){R&&s.push(R),R=[]}let w=0,c,a="",y="";function f(){a&&(o===0?R.push({type:0,value:a}):o===1||o===2||o===3?(R.length>1&&(c==="*"||c==="+")&&n(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),R.push({type:1,value:a,regexp:y,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):n("Invalid state to consume buffer"),a="")}function u(){a+=c}for(;w<e.length;){if(c=e[w++],c==="\\"&&o!==2){r=o,o=4;continue}switch(o){case 0:c==="/"?(a&&f(),t()):c===":"?(f(),o=1):u();break;case 4:u(),o=r;break;case 1:c==="("?o=2:Qn.test(c)?u():(f(),o=0,c!=="*"&&c!=="?"&&c!=="+"&&w--);break;case 2:c===")"?y[y.length-1]=="\\"?y=y.slice(0,-1)+c:o=3:y+=c;break;case 3:f(),o=0,c!=="*"&&c!=="?"&&c!=="+"&&w--,y="";break;default:n("Unknown state");break}}return o===2&&n(`Unfinished custom RegExp for param "${a}"`),f(),t(),s}function Xn(e,n,o){const r=Wn(Kn(e.path),o),s=rt(r,{record:e,parent:n,children:[],alias:[]});return n&&!s.record.aliasOf==!n.record.aliasOf&&n.children.push(s),s}function qn(e,n){const o=[],r=new Map;n=we({strict:!1,end:!0,sensitive:!1},n);function s(f){return r.get(f)}function R(f,u,h){const d=!h,m=me(f);m.aliasOf=h&&h.record;const g=we(n,f),_=[m];if("alias"in f){const v=typeof f.alias=="string"?[f.alias]:f.alias;for(const T of v)_.push(me(rt({},m,{components:h?h.record.components:m.components,path:T,aliasOf:h?h.record:m})))}let b,p;for(const v of _){const{path:T}=v;if(u&&T[0]!=="/"){const A=u.record.path,x=A[A.length-1]==="/"?"":"/";v.path=u.record.path+(T&&x+T)}if(b=Xn(v,u,g),h?h.alias.push(b):(p=p||b,p!==b&&p.alias.push(b),d&&f.name&&!be(b)&&t(f.name)),Qe(b)&&c(b),m.children){const A=m.children;for(let x=0;x<A.length;x++)R(A[x],b,h&&h.children[x])}h=h||b}return p?()=>{t(p)}:Vt}function t(f){if(We(f)){const u=r.get(f);u&&(r.delete(f),o.splice(o.indexOf(u),1),u.children.forEach(t),u.alias.forEach(t))}else{const u=o.indexOf(f);u>-1&&(o.splice(u,1),f.record.name&&r.delete(f.record.name),f.children.forEach(t),f.alias.forEach(t))}}function w(){return o}function c(f){const u=Zn(f,o);o.splice(u,0,f),f.record.name&&!be(f)&&r.set(f.record.name,f)}function a(f,u){let h,d={},m,g;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw jt(1,{location:f});g=h.record.name,d=rt(ye(u.params,h.keys.filter(p=>!p.optional).concat(h.parent?h.parent.keys.filter(p=>p.optional):[]).map(p=>p.name)),f.params&&ye(f.params,h.keys.map(p=>p.name))),m=h.stringify(d)}else if(f.path!=null)m=f.path,h=o.find(p=>p.re.test(m)),h&&(d=h.parse(m),g=h.record.name);else{if(h=u.name?r.get(u.name):o.find(p=>p.re.test(u.path)),!h)throw jt(1,{location:f,currentLocation:u});g=h.record.name,d=rt({},u.params,f.params),m=h.stringify(d)}const _=[];let b=h;for(;b;)_.unshift(b.record),b=b.parent;return{name:g,path:m,params:d,matched:_,meta:Jn(_)}}e.forEach(f=>R(f));function y(){o.length=0,r.clear()}return{addRoute:R,resolve:a,removeRoute:t,clearRoutes:y,getRoutes:w,getRecordMatcher:s}}function ye(e,n){const o={};for(const r of n)r in e&&(o[r]=e[r]);return o}function me(e){const n={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(n,"mods",{value:{}}),n}function Yn(e){const n={},o=e.props||!1;if("component"in e)n.default=o;else for(const r in e.components)n[r]=typeof o=="object"?o[r]:o;return n}function be(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Jn(e){return e.reduce((n,o)=>rt(n,o.meta),{})}function we(e,n){const o={};for(const r in e)o[r]=r in n?n[r]:e[r];return o}function Zn(e,n){let o=0,r=n.length;for(;o!==r;){const R=o+r>>1;ze(e,n[R])<0?r=R:o=R+1}const s=tr(e);return s&&(r=n.lastIndexOf(s,r-1)),r}function tr(e){let n=e;for(;n=n.parent;)if(Qe(n)&&ze(e,n)===0)return n}function Qe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function er(e){const n={};if(e===""||e==="?")return n;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const R=r[s].replace(Pe," "),t=R.indexOf("="),w=Ht(t<0?R:R.slice(0,t)),c=t<0?null:Ht(R.slice(t+1));if(w in n){let a=n[w];mt(a)||(a=n[w]=[a]),a.push(c)}else n[w]=c}return n}function Ee(e){let n="";for(let o in e){const r=e[o];if(o=bn(o),r==null){r!==void 0&&(n+=(n.length?"&":"")+o);continue}(mt(r)?r.map(R=>R&&ee(R)):[r&&ee(r)]).forEach(R=>{R!==void 0&&(n+=(n.length?"&":"")+o,R!=null&&(n+="="+R))})}return n}function nr(e){const n={};for(const o in e){const r=e[o];r!==void 0&&(n[o]=mt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return n}const rr=Symbol(""),Ce=Symbol(""),Wt=Symbol(""),oe=Symbol(""),re=Symbol("");function It(){let e=[];function n(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function o(){e=[]}return{add:n,list:()=>e.slice(),reset:o}}function kt(e,n,o,r,s,R=t=>t()){const t=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((w,c)=>{const a=u=>{u===!1?c(jt(4,{from:o,to:n})):u instanceof Error?c(u):Bn(u)?c(jt(2,{from:n,to:u})):(t&&r.enterCallbacks[s]===t&&typeof u=="function"&&t.push(u),w())},y=R(()=>e.call(r&&r.instances[s],n,o,a));let f=Promise.resolve(y);e.length<3&&(f=f.then(a)),f.catch(u=>c(u))})}function Zt(e,n,o,r,s=R=>R()){const R=[];for(const t of e)for(const w in t.components){let c=t.components[w];if(!(n!=="beforeRouteEnter"&&!t.instances[w]))if(De(c)){const y=(c.__vccOpts||c)[n];y&&R.push(kt(y,o,r,t,w,s))}else{let a=c();R.push(()=>a.then(y=>{if(!y)throw new Error(`Couldn't resolve component "${w}" at "${t.path}"`);const f=ln(y)?y.default:y;t.mods[w]=y,t.components[w]=f;const h=(f.__vccOpts||f)[n];return h&&kt(h,o,r,t,w,s)()}))}}return R}function Re(e){const n=xt(Wt),o=xt(oe),r=bt(()=>{const c=Lt(e.to);return n.resolve(c)}),s=bt(()=>{const{matched:c}=r.value,{length:a}=c,y=c[a-1],f=o.matched;if(!y||!f.length)return-1;const u=f.findIndex(At.bind(null,y));if(u>-1)return u;const h=ke(c[a-2]);return a>1&&ke(y)===h&&f[f.length-1].path!==h?f.findIndex(At.bind(null,c[a-2])):u}),R=bt(()=>s.value>-1&&cr(o.params,r.value.params)),t=bt(()=>s.value>-1&&s.value===o.matched.length-1&&Ne(o.params,r.value.params));function w(c={}){if(sr(c)){const a=n[Lt(e.replace)?"replace":"push"](Lt(e.to)).catch(Vt);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>a),a}return Promise.resolve()}return{route:r,href:bt(()=>r.value.href),isActive:R,isExactActive:t,navigate:w}}function ir(e){return e.length===1?e[0]:e}const or=Ie({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Re,setup(e,{slots:n}){const o=nn(Re(e)),{options:r}=xt(Wt),s=bt(()=>({[Se(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[Se(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const R=n.default&&ir(n.default(o));return e.custom?R:Le("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:s.value},R)}}}),ar=or;function sr(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}function cr(e,n){for(const o in n){const r=n[o],s=e[o];if(typeof r=="string"){if(r!==s)return!1}else if(!mt(s)||s.length!==r.length||r.some((R,t)=>R!==s[t]))return!1}return!0}function ke(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Se=(e,n,o)=>e??n??o,lr=Ie({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:o}){const r=xt(re),s=bt(()=>e.route||r.value),R=xt(Ce,0),t=bt(()=>{let a=Lt(R);const{matched:y}=s.value;let f;for(;(f=y[a])&&!f.components;)a++;return a}),w=bt(()=>s.value.matched[t.value]);qt(Ce,bt(()=>t.value+1)),qt(rr,w),qt(re,s);const c=St();return Ve(()=>[c.value,w.value,e.name],([a,y,f],[u,h,d])=>{y&&(y.instances[f]=a,h&&h!==y&&a&&a===u&&(y.leaveGuards.size||(y.leaveGuards=h.leaveGuards),y.updateGuards.size||(y.updateGuards=h.updateGuards))),a&&y&&(!h||!At(y,h)||!u)&&(y.enterCallbacks[f]||[]).forEach(m=>m(a))},{flush:"post"}),()=>{const a=s.value,y=e.name,f=w.value,u=f&&f.components[y];if(!u)return Te(o.default,{Component:u,route:a});const h=f.props[y],d=h?h===!0?a.params:typeof h=="function"?h(a):h:null,g=Le(u,rt({},d,n,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[y]=null)},ref:c}));return Te(o.default,{Component:g,route:a})||g}}});function Te(e,n){if(!e)return null;const o=e(n);return o.length===1?o[0]:o}const ur=lr;function fr(e){const n=qn(e.routes,e),o=e.parseQuery||er,r=e.stringifyQuery||Ee,s=e.history,R=It(),t=It(),w=It(),c=tn(Rt);let a=Rt;Ft&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const y=Yt.bind(null,F=>""+F),f=Yt.bind(null,En),u=Yt.bind(null,Ht);function h(F,l){let i,E;return We(F)?(i=n.getRecordMatcher(F),E=l):E=F,n.addRoute(E,i)}function d(F){const l=n.getRecordMatcher(F);l&&n.removeRoute(l)}function m(){return n.getRoutes().map(F=>F.record)}function g(F){return!!n.getRecordMatcher(F)}function _(F,l){if(l=rt({},l||c.value),typeof F=="string"){const P=Jt(o,F,l.path),Q=n.resolve({path:P.path},l),ft=s.createHref(P.fullPath);return rt(P,Q,{params:u(Q.params),hash:Ht(P.hash),redirectedFrom:void 0,href:ft})}let i;if(F.path!=null)i=rt({},F,{path:Jt(o,F.path,l.path).path});else{const P=rt({},F.params);for(const Q in P)P[Q]==null&&delete P[Q];i=rt({},F,{params:f(P)}),l.params=f(l.params)}const E=n.resolve(i,l),O=F.hash||"";E.params=y(u(E.params));const I=kn(r,rt({},F,{hash:mn(O),path:E.path})),j=s.createHref(I);return rt({fullPath:I,hash:O,query:r===Ee?nr(F.query):F.query||{}},E,{redirectedFrom:void 0,href:j})}function b(F){return typeof F=="string"?Jt(o,F,c.value.path):rt({},F)}function p(F,l){if(a!==F)return jt(8,{from:l,to:F})}function v(F){return x(F)}function T(F){return v(rt(b(F),{replace:!0}))}function A(F){const l=F.matched[F.matched.length-1];if(l&&l.redirect){const{redirect:i}=l;let E=typeof i=="function"?i(F):i;return typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=b(E):{path:E},E.params={}),rt({query:F.query,hash:F.hash,params:E.path!=null?{}:F.params},E)}}function x(F,l){const i=a=_(F),E=c.value,O=F.state,I=F.force,j=F.replace===!0,P=A(i);if(P)return x(rt(b(P),{state:typeof P=="object"?rt({},O,P.state):O,force:I,replace:j}),l||i);const Q=i;Q.redirectedFrom=l;let ft;return!I&&Sn(r,E,i)&&(ft=jt(16,{to:Q,from:E}),Y(E,E,!0,!1)),(ft?Promise.resolve(ft):H(Q,E)).catch(ct=>Ct(ct)?Ct(ct,2)?ct:tt(ct):q(ct,Q,E)).then(ct=>{if(ct){if(Ct(ct,2))return x(rt({replace:j},b(ct.to),{state:typeof ct.to=="object"?rt({},O,ct.to.state):O,force:I}),l||Q)}else ct=Z(Q,E,!0,j,O);return W(Q,E,ct),ct})}function $(F,l){const i=p(F,l);return i?Promise.reject(i):Promise.resolve()}function D(F){const l=k.values().next().value;return l&&typeof l.runWithContext=="function"?l.runWithContext(F):F()}function H(F,l){let i;const[E,O,I]=hr(F,l);i=Zt(E.reverse(),"beforeRouteLeave",F,l);for(const P of E)P.leaveGuards.forEach(Q=>{i.push(kt(Q,F,l))});const j=$.bind(null,F,l);return i.push(j),pt(i).then(()=>{i=[];for(const P of R.list())i.push(kt(P,F,l));return i.push(j),pt(i)}).then(()=>{i=Zt(O,"beforeRouteUpdate",F,l);for(const P of O)P.updateGuards.forEach(Q=>{i.push(kt(Q,F,l))});return i.push(j),pt(i)}).then(()=>{i=[];for(const P of I)if(P.beforeEnter)if(mt(P.beforeEnter))for(const Q of P.beforeEnter)i.push(kt(Q,F,l));else i.push(kt(P.beforeEnter,F,l));return i.push(j),pt(i)}).then(()=>(F.matched.forEach(P=>P.enterCallbacks={}),i=Zt(I,"beforeRouteEnter",F,l,D),i.push(j),pt(i))).then(()=>{i=[];for(const P of t.list())i.push(kt(P,F,l));return i.push(j),pt(i)}).catch(P=>Ct(P,8)?P:Promise.reject(P))}function W(F,l,i){w.list().forEach(E=>D(()=>E(F,l,i)))}function Z(F,l,i,E,O){const I=p(F,l);if(I)return I;const j=l===Rt,P=Ft?history.state:{};i&&(E||j?s.replace(F.fullPath,rt({scroll:j&&P&&P.scroll},O)):s.push(F.fullPath,O)),c.value=F,Y(F,l,i,j),tt()}let G;function X(){G||(G=s.listen((F,l,i)=>{if(!ut.listening)return;const E=_(F),O=A(E);if(O){x(rt(O,{replace:!0,force:!0}),E).catch(Vt);return}a=E;const I=c.value;Ft&&Ln(pe(I.fullPath,i.delta),Mt()),H(E,I).catch(j=>Ct(j,12)?j:Ct(j,2)?(x(rt(b(j.to),{force:!0}),E).then(P=>{Ct(P,20)&&!i.delta&&i.type===Pt.pop&&s.go(-1,!1)}).catch(Vt),Promise.reject()):(i.delta&&s.go(-i.delta,!1),q(j,E,I))).then(j=>{j=j||Z(E,I,!1),j&&(i.delta&&!Ct(j,8)?s.go(-i.delta,!1):i.type===Pt.pop&&Ct(j,20)&&s.go(-1,!1)),W(E,I,j)}).catch(Vt)}))}let U=It(),z=It(),M;function q(F,l,i){tt(F);const E=z.list();return E.length?E.forEach(O=>O(F,l,i)):console.error(F),Promise.reject(F)}function nt(){return M&&c.value!==Rt?Promise.resolve():new Promise((F,l)=>{U.add([F,l])})}function tt(F){return M||(M=!F,X(),U.list().forEach(([l,i])=>F?i(F):l()),U.reset()),F}function Y(F,l,i,E){const{scrollBehavior:O}=e;if(!Ft||!O)return Promise.resolve();const I=!i&&Vn(pe(F.fullPath,0))||(E||!i)&&history.state&&history.state.scroll||null;return rn().then(()=>O(F,l,I)).then(j=>j&&In(j)).catch(j=>q(j,F,l))}const J=F=>s.go(F);let it;const k=new Set,ut={currentRoute:c,listening:!0,addRoute:h,removeRoute:d,clearRoutes:n.clearRoutes,hasRoute:g,getRoutes:m,resolve:_,options:e,push:v,replace:T,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:R.add,beforeResolve:t.add,afterEach:w.add,onError:z.add,isReady:nt,install(F){const l=this;F.component("RouterLink",ar),F.component("RouterView",ur),F.config.globalProperties.$router=l,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Lt(c)}),Ft&&!it&&c.value===Rt&&(it=!0,v(s.location).catch(O=>{}));const i={};for(const O in Rt)Object.defineProperty(i,O,{get:()=>c.value[O],enumerable:!0});F.provide(Wt,l),F.provide(oe,en(i)),F.provide(re,c);const E=F.unmount;k.add(F),F.unmount=function(){k.delete(F),k.size<1&&(a=Rt,G&&G(),G=null,c.value=Rt,it=!1,M=!1),E()}}};function pt(F){return F.reduce((l,i)=>l.then(()=>D(i)),Promise.resolve())}return ut}function hr(e,n){const o=[],r=[],s=[],R=Math.max(n.matched.length,e.matched.length);for(let t=0;t<R;t++){const w=n.matched[t];w&&(e.matched.find(a=>At(a,w))?r.push(w):o.push(w));const c=e.matched[t];c&&(n.matched.find(a=>At(a,c))||s.push(c))}return[o,r,s]}function pr(){return xt(Wt)}function Hr(e){return xt(oe)}var te={exports:{}},xe;function dr(){return xe||(xe=1,function(e,n){var o={};/* @preserve
|
|
7
|
+
* The MIT License (MIT)
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) 2013-2018 Petka Antonov
|
|
10
|
+
*
|
|
11
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
* in the Software without restriction, including without limitation the rights
|
|
14
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
* furnished to do so, subject to the following conditions:
|
|
17
|
+
*
|
|
18
|
+
* The above copyright notice and this permission notice shall be included in
|
|
19
|
+
* all copies or substantial portions of the Software.
|
|
20
|
+
*
|
|
21
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
27
|
+
* THE SOFTWARE.
|
|
28
|
+
*
|
|
29
|
+
*/(function(r){e.exports=r()})(function(){return function r(s,R,t){function w(y,f){if(!R[y]){if(!s[y]){var u=typeof _dereq_=="function"&&_dereq_;if(!f&&u)return u(y,!0);if(c)return c(y,!0);var h=new Error("Cannot find module '"+y+"'");throw h.code="MODULE_NOT_FOUND",h}var d=R[y]={exports:{}};s[y][0].call(d.exports,function(m){var g=s[y][1][m];return w(g||m)},d,d.exports,r,s,R,t)}return R[y].exports}for(var c=typeof _dereq_=="function"&&_dereq_,a=0;a<t.length;a++)w(t[a]);return w}({1:[function(r,s,R){s.exports=function(t){var w=t._SomePromiseArray;function c(a){var y=new w(a),f=y.promise();return y.setHowMany(1),y.setUnwrap(),y.init(),f}t.any=function(a){return c(a)},t.prototype.any=function(){return c(this)}}},{}],2:[function(r,s,R){var t;try{throw new Error}catch(m){t=m}var w=r("./schedule"),c=r("./queue");function a(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new c(16),this._normalQueue=new c(16),this._haveDrainedQueues=!1;var m=this;this.drainQueues=function(){m._drainQueues()},this._schedule=w}a.prototype.setScheduler=function(m){var g=this._schedule;return this._schedule=m,this._customScheduler=!0,g},a.prototype.hasCustomScheduler=function(){return this._customScheduler},a.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},a.prototype.fatalError=function(m,g){g?(process.stderr.write("Fatal "+(m instanceof Error?m.stack:m)+`
|
|
30
|
+
`),process.exit(2)):this.throwLater(m)},a.prototype.throwLater=function(m,g){if(arguments.length===1&&(g=m,m=function(){throw g}),typeof setTimeout<"u")setTimeout(function(){m(g)},0);else try{this._schedule(function(){m(g)})}catch{throw new Error(`No async scheduler available
|
|
31
|
+
|
|
32
|
+
See http://goo.gl/MqrFmX
|
|
33
|
+
`)}};function y(m,g,_){this._lateQueue.push(m,g,_),this._queueTick()}function f(m,g,_){this._normalQueue.push(m,g,_),this._queueTick()}function u(m){this._normalQueue._pushOne(m),this._queueTick()}a.prototype.invokeLater=y,a.prototype.invoke=f,a.prototype.settlePromises=u;function h(m){for(;m.length()>0;)d(m)}function d(m){var g=m.shift();if(typeof g!="function")g._settlePromises();else{var _=m.shift(),b=m.shift();g.call(_,b)}}a.prototype._drainQueues=function(){h(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,h(this._lateQueue)},a.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},a.prototype._reset=function(){this._isTickUsed=!1},s.exports=a,s.exports.firstLineError=t},{"./queue":26,"./schedule":29}],3:[function(r,s,R){s.exports=function(t,w,c,a){var y=!1,f=function(m,g){this._reject(g)},u=function(m,g){g.promiseRejectionQueued=!0,g.bindingPromise._then(f,f,null,this,m)},h=function(m,g){(this._bitField&50397184)===0&&this._resolveCallback(g.target)},d=function(m,g){g.promiseRejectionQueued||this._reject(m)};t.prototype.bind=function(m){y||(y=!0,t.prototype._propagateFrom=a.propagateFromFunction(),t.prototype._boundValue=a.boundValueFunction());var g=c(m),_=new t(w);_._propagateFrom(this,1);var b=this._target();if(_._setBoundTo(g),g instanceof t){var p={promiseRejectionQueued:!1,promise:_,target:b,bindingPromise:g};b._then(w,u,void 0,_,p),g._then(h,d,void 0,_,p),_._setOnCancel(g)}else _._resolveCallback(b);return _},t.prototype._setBoundTo=function(m){m!==void 0?(this._bitField=this._bitField|2097152,this._boundTo=m):this._bitField=this._bitField&-2097153},t.prototype._isBound=function(){return(this._bitField&2097152)===2097152},t.bind=function(m,g){return t.resolve(g).bind(m)}}},{}],4:[function(r,s,R){var t;typeof Promise<"u"&&(t=Promise);function w(){try{Promise===c&&(Promise=t)}catch{}return c}var c=r("./promise")();c.noConflict=w,s.exports=c},{"./promise":22}],5:[function(r,s,R){var t=Object.create;if(t){var w=t(null),c=t(null);w[" size"]=c[" size"]=0}s.exports=function(a){var y=r("./util"),f=y.canEvaluate;y.isIdentifier;var u;function h(_,b){var p;if(_!=null&&(p=_[b]),typeof p!="function"){var v="Object "+y.classString(_)+" has no method '"+y.toString(b)+"'";throw new a.TypeError(v)}return p}function d(_){var b=this.pop(),p=h(_,b);return p.apply(_,this)}a.prototype.call=function(_){var b=[].slice.call(arguments,1);return b.push(_),this._then(d,void 0,void 0,b,void 0)};function m(_){return _[this]}function g(_){var b=+this;return b<0&&(b=Math.max(0,b+_.length)),_[b]}a.prototype.get=function(_){var b=typeof _=="number",p;if(b)p=g;else if(f){var v=u(_);p=v!==null?v:m}else p=m;return this._then(p,void 0,void 0,_,void 0)}}},{"./util":36}],6:[function(r,s,R){s.exports=function(t,w,c,a){var y=r("./util"),f=y.tryCatch,u=y.errorObj,h=t._async;t.prototype.break=t.prototype.cancel=function(){if(!a.cancellation())return this._warn("cancellation is disabled");for(var d=this,m=d;d._isCancellable();){if(!d._cancelBy(m)){m._isFollowing()?m._followee().cancel():m._cancelBranched();break}var g=d._cancellationParent;if(g==null||!g._isCancellable()){d._isFollowing()?d._followee().cancel():d._cancelBranched();break}else d._isFollowing()&&d._followee().cancel(),d._setWillBeCancelled(),m=d,d=g}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(d){return d===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),h.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(d,m){if(y.isArray(d))for(var g=0;g<d.length;++g)this._doInvokeOnCancel(d[g],m);else if(d!==void 0)if(typeof d=="function"){if(!m){var _=f(d).call(this._boundValue());_===u&&(this._attachExtraTrace(_.e),h.throwLater(_.e))}}else d._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var d=this._onCancel();this._unsetOnCancel(),h.invoke(this._doInvokeOnCancel,this,d)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(r,s,R){s.exports=function(t){var w=r("./util"),c=r("./es5").keys,a=w.tryCatch,y=w.errorObj;function f(u,h,d){return function(m){var g=d._boundValue();t:for(var _=0;_<u.length;++_){var b=u[_];if(b===Error||b!=null&&b.prototype instanceof Error){if(m instanceof b)return a(h).call(g,m)}else if(typeof b=="function"){var p=a(b).call(g,m);if(p===y)return p;if(p)return a(h).call(g,m)}else if(w.isObject(m)){for(var v=c(b),T=0;T<v.length;++T){var A=v[T];if(b[A]!=m[A])continue t}return a(h).call(g,m)}}return t}}return f}},{"./es5":13,"./util":36}],8:[function(r,s,R){s.exports=function(t){var w=!1,c=[];t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){};function a(){this._trace=new a.CapturedTrace(f())}a.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,c.push(this._trace))},a.prototype._popContext=function(){if(this._trace!==void 0){var u=c.pop(),h=u._promiseCreated;return u._promiseCreated=null,h}return null};function y(){if(w)return new a}function f(){var u=c.length-1;if(u>=0)return c[u]}return a.CapturedTrace=null,a.create=y,a.deactivateLongStackTraces=function(){},a.activateLongStackTraces=function(){var u=t.prototype._pushContext,h=t.prototype._popContext,d=t._peekContext,m=t.prototype._peekContext,g=t.prototype._promiseCreated;a.deactivateLongStackTraces=function(){t.prototype._pushContext=u,t.prototype._popContext=h,t._peekContext=d,t.prototype._peekContext=m,t.prototype._promiseCreated=g,w=!1},w=!0,t.prototype._pushContext=a.prototype._pushContext,t.prototype._popContext=a.prototype._popContext,t._peekContext=t.prototype._peekContext=f,t.prototype._promiseCreated=function(){var _=this._peekContext();_&&_._promiseCreated==null&&(_._promiseCreated=this)}},a}},{}],9:[function(r,s,R){s.exports=function(t,w,c,a){var y=t._async,f=r("./errors").Warning,u=r("./util"),h=r("./es5"),d=u.canAttachTrace,m,g,_=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,b=/\((?:timers\.js):\d+:\d+\)/,p=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,v=null,T=null,A=!1,x,$=u.env("BLUEBIRD_DEBUG")!=0,D=!!(u.env("BLUEBIRD_WARNINGS")!=0&&($||u.env("BLUEBIRD_WARNINGS"))),H=!!(u.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&($||u.env("BLUEBIRD_LONG_STACK_TRACES"))),W=u.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(D||!!u.env("BLUEBIRD_W_FORGOTTEN_RETURN")),Z;(function(){var C=[];function S(){for(var L=0;L<C.length;++L)C[L]._notifyUnhandledRejection();V()}function V(){C.length=0}Z=function(L){C.push(L),setTimeout(S,1)},h.defineProperty(t,"_unhandledRejectionCheck",{value:S}),h.defineProperty(t,"_unhandledRejectionClear",{value:V})})(),t.prototype.suppressUnhandledRejections=function(){var C=this._target();C._bitField=C._bitField&-1048577|524288},t.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)===0&&(this._setRejectionIsUnhandled(),Z(this))},t.prototype._notifyUnhandledRejectionIsHandled=function(){ce("rejectionHandled",m,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},t.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var C=this._settledValue();this._setUnhandledRejectionIsNotified(),ce("unhandledRejection",g,C,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},t.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},t.prototype._warn=function(C,S,V){return Q(C,S,V||this)},t.onPossiblyUnhandledRejection=function(C){var S=t._getContext();g=u.contextBind(S,C)},t.onUnhandledRejectionHandled=function(C){var S=t._getContext();m=u.contextBind(S,C)};var G=function(){};t.longStackTraces=function(){if(y.haveItemsQueued()&&!lt.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
|
34
|
+
|
|
35
|
+
See http://goo.gl/MqrFmX
|
|
36
|
+
`);if(!lt.longStackTraces&&Qt()){var C=t.prototype._captureStackTrace,S=t.prototype._attachExtraTrace,V=t.prototype._dereferenceTrace;lt.longStackTraces=!0,G=function(){if(y.haveItemsQueued()&&!lt.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
|
37
|
+
|
|
38
|
+
See http://goo.gl/MqrFmX
|
|
39
|
+
`);t.prototype._captureStackTrace=C,t.prototype._attachExtraTrace=S,t.prototype._dereferenceTrace=V,w.deactivateLongStackTraces(),lt.longStackTraces=!1},t.prototype._captureStackTrace=E,t.prototype._attachExtraTrace=O,t.prototype._dereferenceTrace=I,w.activateLongStackTraces()}},t.hasLongStackTraces=function(){return lt.longStackTraces&&Qt()};var X={unhandledrejection:{before:function(){var C=u.global.onunhandledrejection;return u.global.onunhandledrejection=null,C},after:function(C){u.global.onunhandledrejection=C}},rejectionhandled:{before:function(){var C=u.global.onrejectionhandled;return u.global.onrejectionhandled=null,C},after:function(C){u.global.onrejectionhandled=C}}},U=function(){var C=function(V,L){if(V){var N;try{return N=V.before(),!u.global.dispatchEvent(L)}finally{V.after(N)}}else return!u.global.dispatchEvent(L)};try{if(typeof CustomEvent=="function"){var S=new CustomEvent("CustomEvent");return u.global.dispatchEvent(S),function(V,L){V=V.toLowerCase();var N={detail:L,cancelable:!0},et=new CustomEvent(V,N);return h.defineProperty(et,"promise",{value:L.promise}),h.defineProperty(et,"reason",{value:L.reason}),C(X[V],et)}}else if(typeof Event=="function"){var S=new Event("CustomEvent");return u.global.dispatchEvent(S),function(L,N){L=L.toLowerCase();var et=new Event(L,{cancelable:!0});return et.detail=N,h.defineProperty(et,"promise",{value:N.promise}),h.defineProperty(et,"reason",{value:N.reason}),C(X[L],et)}}else{var S=document.createEvent("CustomEvent");return S.initCustomEvent("testingtheevent",!1,!0,{}),u.global.dispatchEvent(S),function(L,N){L=L.toLowerCase();var et=document.createEvent("CustomEvent");return et.initCustomEvent(L,!1,!0,N),C(X[L],et)}}}catch{}return function(){return!1}}(),z=function(){return u.isNode?function(){return process.emit.apply(process,arguments)}:u.global?function(C){var S="on"+C.toLowerCase(),V=u.global[S];return V?(V.apply(u.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}();function M(C,S){return{promise:S}}var q={promiseCreated:M,promiseFulfilled:M,promiseRejected:M,promiseResolved:M,promiseCancelled:M,promiseChained:function(C,S,V){return{promise:S,child:V}},warning:function(C,S){return{warning:S}},unhandledRejection:function(C,S,V){return{reason:S,promise:V}},rejectionHandled:M},nt=function(C){var S=!1;try{S=z.apply(null,arguments)}catch(L){y.throwLater(L),S=!0}var V=!1;try{V=U(C,q[C].apply(null,arguments))}catch(L){y.throwLater(L),V=!0}return V||S};t.config=function(C){if(C=Object(C),"longStackTraces"in C&&(C.longStackTraces?t.longStackTraces():!C.longStackTraces&&t.hasLongStackTraces()&&G()),"warnings"in C){var S=C.warnings;lt.warnings=!!S,W=lt.warnings,u.isObject(S)&&"wForgottenReturn"in S&&(W=!!S.wForgottenReturn)}if("cancellation"in C&&C.cancellation&&!lt.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=ut,t.prototype._propagateFrom=pt,t.prototype._onCancel=it,t.prototype._setOnCancel=k,t.prototype._attachCancellationCallback=J,t.prototype._execute=Y,l=pt,lt.cancellation=!0}if("monitoring"in C&&(C.monitoring&&!lt.monitoring?(lt.monitoring=!0,t.prototype._fireEvent=nt):!C.monitoring&<.monitoring&&(lt.monitoring=!1,t.prototype._fireEvent=tt)),"asyncHooks"in C&&u.nodeSupportsAsyncResource){var V=lt.asyncHooks,L=!!C.asyncHooks;V!==L&&(lt.asyncHooks=L,L?c():a())}return t};function tt(){return!1}t.prototype._fireEvent=tt,t.prototype._execute=function(C,S,V){try{C(S,V)}catch(L){return L}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(C){},t.prototype._attachCancellationCallback=function(C){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._dereferenceTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(C,S){};function Y(C,S,V){var L=this;try{C(S,V,function(N){if(typeof N!="function")throw new TypeError("onCancel must be a function, got: "+u.toString(N));L._attachCancellationCallback(N)})}catch(N){return N}}function J(C){if(!this._isCancellable())return this;var S=this._onCancel();S!==void 0?u.isArray(S)?S.push(C):this._setOnCancel([S,C]):this._setOnCancel(C)}function it(){return this._onCancelField}function k(C){this._onCancelField=C}function ut(){this._cancellationParent=void 0,this._onCancelField=void 0}function pt(C,S){if((S&1)!==0){this._cancellationParent=C;var V=C._branchesRemainingToCancel;V===void 0&&(V=0),C._branchesRemainingToCancel=V+1}(S&2)!==0&&C._isBound()&&this._setBoundTo(C._boundTo)}function F(C,S){(S&2)!==0&&C._isBound()&&this._setBoundTo(C._boundTo)}var l=F;function i(){var C=this._boundTo;return C!==void 0&&C instanceof t?C.isFulfilled()?C.value():void 0:C}function E(){this._trace=new Tt(this._peekContext())}function O(C,S){if(d(C)){var V=this._trace;if(V!==void 0&&S&&(V=V._parent),V!==void 0)V.attachExtraTrace(C);else if(!C.__stackCleaned__){var L=zt(C);u.notEnumerableProp(C,"stack",L.message+`
|
|
40
|
+
`+L.stack.join(`
|
|
41
|
+
`)),u.notEnumerableProp(C,"__stackCleaned__",!0)}}}function I(){this._trace=void 0}function j(C,S,V,L,N){if(C===void 0&&S!==null&&W){if(N!==void 0&&N._returnedNonUndefined()||(L._bitField&65535)===0)return;V&&(V=V+" ");var et="",at="";if(S._trace){for(var K=S._trace.stack.split(`
|
|
42
|
+
`),st=gt(K),ht=st.length-1;ht>=0;--ht){var wt=st[ht];if(!b.test(wt)){var Et=wt.match(p);Et&&(et="at "+Et[1]+":"+Et[2]+":"+Et[3]+" ");break}}if(st.length>0){for(var Je=st[0],ht=0;ht<K.length;++ht)if(K[ht]===Je){ht>0&&(at=`
|
|
43
|
+
`+K[ht-1]);break}}}var Ze="a promise was created in a "+V+"handler "+et+"but was not returned from it, see http://goo.gl/rRqMUw"+at;L._warn(Ze,!0,S)}}function P(C,S){var V=C+" is deprecated and will be removed in a future version.";return S&&(V+=" Use "+S+" instead."),Q(V)}function Q(C,S,V){if(lt.warnings){var L=new f(C),N;if(S)V._attachExtraTrace(L);else if(lt.longStackTraces&&(N=t._peekContext()))N.attachExtraTrace(L);else{var et=zt(L);L.stack=et.message+`
|
|
44
|
+
`+et.stack.join(`
|
|
45
|
+
`)}nt("warning",L)||se(L,"",!0)}}function ft(C,S){for(var V=0;V<S.length-1;++V)S[V].push("From previous event:"),S[V]=S[V].join(`
|
|
46
|
+
`);return V<S.length&&(S[V]=S[V].join(`
|
|
47
|
+
`)),C+`
|
|
48
|
+
`+S.join(`
|
|
49
|
+
`)}function ct(C){for(var S=0;S<C.length;++S)(C[S].length===0||S+1<C.length&&C[S][0]===C[S+1][0])&&(C.splice(S,1),S--)}function yt(C){for(var S=C[0],V=1;V<C.length;++V){for(var L=C[V],N=S.length-1,et=S[N],at=-1,K=L.length-1;K>=0;--K)if(L[K]===et){at=K;break}for(var K=at;K>=0;--K){var st=L[K];if(S[N]===st)S.pop(),N--;else break}S=L}}function gt(C){for(var S=[],V=0;V<C.length;++V){var L=C[V],N=L===" (No stack trace)"||v.test(L),et=N&&Kt(L);N&&!et&&(A&&L.charAt(0)!==" "&&(L=" "+L),S.push(L))}return S}function Ot(C){for(var S=C.stack.replace(/\s+$/g,"").split(`
|
|
50
|
+
`),V=0;V<S.length;++V){var L=S[V];if(L===" (No stack trace)"||v.test(L))break}return V>0&&C.name!="SyntaxError"&&(S=S.slice(V)),S}function zt(C){var S=C.stack,V=C.toString();return S=typeof S=="string"&&S.length>0?Ot(C):[" (No stack trace)"],{message:V,stack:C.name=="SyntaxError"?S:gt(S)}}function se(C,S,V){if(typeof console<"u"){var L;if(u.isObject(C)){var N=C.stack;L=S+T(N,C)}else L=S+String(C);typeof x=="function"?x(L,V):(typeof console.log=="function"||typeof console.log=="object")&&console.log(L)}}function ce(C,S,V,L){var N=!1;try{typeof S=="function"&&(N=!0,C==="rejectionHandled"?S(L):S(V,L))}catch(et){y.throwLater(et)}C==="unhandledRejection"?!nt(C,V,L)&&!N&&se(V,"Unhandled rejection "):nt(C,L)}function le(C){var S;if(typeof C=="function")S="[function "+(C.name||"anonymous")+"]";else{S=C&&typeof C.toString=="function"?C.toString():u.toString(C);var V=/\[object [a-zA-Z0-9$_]+\]/;if(V.test(S))try{var L=JSON.stringify(C);S=L}catch{}S.length===0&&(S="(empty array)")}return"(<"+Xe(S)+">, no stack trace)"}function Xe(C){var S=41;return C.length<S?C:C.substr(0,S-3)+"..."}function Qt(){return typeof ue=="function"}var Kt=function(){return!1},qe=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Xt(C){var S=C.match(qe);if(S)return{fileName:S[1],line:parseInt(S[2],10)}}function Ye(C,S){if(Qt()){for(var V=(C.stack||"").split(`
|
|
51
|
+
`),L=(S.stack||"").split(`
|
|
52
|
+
`),N=-1,et=-1,at,K,st=0;st<V.length;++st){var ht=Xt(V[st]);if(ht){at=ht.fileName,N=ht.line;break}}for(var st=0;st<L.length;++st){var ht=Xt(L[st]);if(ht){K=ht.fileName,et=ht.line;break}}N<0||et<0||!at||!K||at!==K||N>=et||(Kt=function(wt){if(_.test(wt))return!0;var Et=Xt(wt);return!!(Et&&Et.fileName===at&&N<=Et.line&&Et.line<=et)})}}function Tt(C){this._parent=C,this._promisesCreated=0;var S=this._length=1+(C===void 0?0:C._length);ue(this,Tt),S>32&&this.uncycle()}u.inherits(Tt,Error),w.CapturedTrace=Tt,Tt.prototype.uncycle=function(){var C=this._length;if(!(C<2)){for(var S=[],V={},L=0,N=this;N!==void 0;++L)S.push(N),N=N._parent;C=this._length=L;for(var L=C-1;L>=0;--L){var et=S[L].stack;V[et]===void 0&&(V[et]=L)}for(var L=0;L<C;++L){var at=S[L].stack,K=V[at];if(K!==void 0&&K!==L){K>0&&(S[K-1]._parent=void 0,S[K-1]._length=1),S[L]._parent=void 0,S[L]._length=1;var st=L>0?S[L-1]:this;K<C-1?(st._parent=S[K+1],st._parent.uncycle(),st._length=st._parent._length+1):(st._parent=void 0,st._length=1);for(var ht=st._length+1,wt=L-2;wt>=0;--wt)S[wt]._length=ht,ht++;return}}}},Tt.prototype.attachExtraTrace=function(C){if(!C.__stackCleaned__){this.uncycle();for(var S=zt(C),V=S.message,L=[S.stack],N=this;N!==void 0;)L.push(gt(N.stack.split(`
|
|
53
|
+
`))),N=N._parent;yt(L),ct(L),u.notEnumerableProp(C,"stack",ft(V,L)),u.notEnumerableProp(C,"__stackCleaned__",!0)}};var ue=function(){var S=/^\s*at\s*/,V=function(at,K){return typeof at=="string"?at:K.name!==void 0&&K.message!==void 0?K.toString():le(K)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,v=S,T=V;var L=Error.captureStackTrace;return Kt=function(at){return _.test(at)},function(at,K){Error.stackTraceLimit+=6,L(at,K),Error.stackTraceLimit-=6}}var N=new Error;if(typeof N.stack=="string"&&N.stack.split(`
|
|
54
|
+
`)[0].indexOf("stackDetection@")>=0)return v=/@/,T=V,A=!0,function(K){K.stack=new Error().stack};var et;try{throw new Error}catch(at){et="stack"in at}return!("stack"in N)&&et&&typeof Error.stackTraceLimit=="number"?(v=S,T=V,function(K){Error.stackTraceLimit+=6;try{throw new Error}catch(st){K.stack=st.stack}Error.stackTraceLimit-=6}):(T=function(at,K){return typeof at=="string"?at:(typeof K=="object"||typeof K=="function")&&K.name!==void 0&&K.message!==void 0?K.toString():le(K)},null)}();typeof console<"u"&&typeof console.warn<"u"&&(x=function(C){console.warn(C)},u.isNode&&process.stderr.isTTY?x=function(C,S){var V=S?"\x1B[33m":"\x1B[31m";console.warn(V+C+`\x1B[0m
|
|
55
|
+
`)}:!u.isNode&&typeof new Error().stack=="string"&&(x=function(C,S){console.warn("%c"+C,S?"color: darkorange":"color: red")}));var lt={warnings:D,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return H&&t.longStackTraces(),{asyncHooks:function(){return lt.asyncHooks},longStackTraces:function(){return lt.longStackTraces},warnings:function(){return lt.warnings},cancellation:function(){return lt.cancellation},monitoring:function(){return lt.monitoring},propagateFromFunction:function(){return l},boundValueFunction:function(){return i},checkForgottenReturns:j,setBounds:Ye,warn:Q,deprecated:P,CapturedTrace:Tt,fireDomEvent:U,fireGlobalEvent:z}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(r,s,R){s.exports=function(t){function w(){return this.value}function c(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(a){return a instanceof t&&a.suppressUnhandledRejections(),this._then(w,void 0,void 0,{value:a},void 0)},t.prototype.throw=t.prototype.thenThrow=function(a){return this._then(c,void 0,void 0,{reason:a},void 0)},t.prototype.catchThrow=function(a){if(arguments.length<=1)return this._then(void 0,c,void 0,{reason:a},void 0);var y=arguments[1],f=function(){throw y};return this.caught(a,f)},t.prototype.catchReturn=function(a){if(arguments.length<=1)return a instanceof t&&a.suppressUnhandledRejections(),this._then(void 0,w,void 0,{value:a},void 0);var y=arguments[1];y instanceof t&&y.suppressUnhandledRejections();var f=function(){return y};return this.caught(a,f)}}},{}],11:[function(r,s,R){s.exports=function(t,w){var c=t.reduce,a=t.all;function y(){return a(this)}function f(u,h){return c(u,h,w,w)}t.prototype.each=function(u){return c(this,u,w,0)._then(y,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(u){return c(this,u,w,w)},t.each=function(u,h){return c(u,h,w,0)._then(y,void 0,void 0,u,void 0)},t.mapSeries=f}},{}],12:[function(r,s,R){var t=r("./es5"),w=t.freeze,c=r("./util"),a=c.inherits,y=c.notEnumerableProp;function f(x,$){function D(H){if(!(this instanceof D))return new D(H);y(this,"message",typeof H=="string"?H:$),y(this,"name",x),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return a(D,Error),D}var u,h,d=f("Warning","warning"),m=f("CancellationError","cancellation error"),g=f("TimeoutError","timeout error"),_=f("AggregateError","aggregate error");try{u=TypeError,h=RangeError}catch{u=f("TypeError","type error"),h=f("RangeError","range error")}for(var b="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),p=0;p<b.length;++p)typeof Array.prototype[b[p]]=="function"&&(_.prototype[b[p]]=Array.prototype[b[p]]);t.defineProperty(_.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),_.prototype.isOperational=!0;var v=0;_.prototype.toString=function(){var x=Array(v*4+1).join(" "),$=`
|
|
56
|
+
`+x+`AggregateError of:
|
|
57
|
+
`;v++,x=Array(v*4+1).join(" ");for(var D=0;D<this.length;++D){for(var H=this[D]===this?"[Circular AggregateError]":this[D]+"",W=H.split(`
|
|
58
|
+
`),Z=0;Z<W.length;++Z)W[Z]=x+W[Z];H=W.join(`
|
|
59
|
+
`),$+=H+`
|
|
60
|
+
`}return v--,$};function T(x){if(!(this instanceof T))return new T(x);y(this,"name","OperationalError"),y(this,"message",x),this.cause=x,this.isOperational=!0,x instanceof Error?(y(this,"message",x.message),y(this,"stack",x.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}a(T,Error);var A=Error.__BluebirdErrorTypes__;A||(A=w({CancellationError:m,TimeoutError:g,OperationalError:T,RejectionError:T,AggregateError:_}),t.defineProperty(Error,"__BluebirdErrorTypes__",{value:A,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:u,RangeError:h,CancellationError:A.CancellationError,OperationalError:A.OperationalError,TimeoutError:A.TimeoutError,AggregateError:A.AggregateError,Warning:d}},{"./es5":13,"./util":36}],13:[function(r,s,R){var t=function(){return this===void 0}();if(t)s.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:t,propertyIsWritable:function(g,_){var b=Object.getOwnPropertyDescriptor(g,_);return!!(!b||b.writable||b.set)}};else{var w={}.hasOwnProperty,c={}.toString,a={}.constructor.prototype,y=function(g){var _=[];for(var b in g)w.call(g,b)&&_.push(b);return _},f=function(g,_){return{value:g[_]}},u=function(g,_,b){return g[_]=b.value,g},h=function(g){return g},d=function(g){try{return Object(g).constructor.prototype}catch{return a}},m=function(g){try{return c.call(g)==="[object Array]"}catch{return!1}};s.exports={isArray:m,keys:y,names:y,defineProperty:u,getDescriptor:f,freeze:h,getPrototypeOf:d,isES5:t,propertyIsWritable:function(){return!0}}}},{}],14:[function(r,s,R){s.exports=function(t,w){var c=t.map;t.prototype.filter=function(a,y){return c(this,a,y,w)},t.filter=function(a,y,f){return c(a,y,f,w)}}},{}],15:[function(r,s,R){s.exports=function(t,w,c){var a=r("./util"),y=t.CancellationError,f=a.errorObj,u=r("./catch_filter")(c);function h(p,v,T){this.promise=p,this.type=v,this.handler=T,this.called=!1,this.cancelPromise=null}h.prototype.isFinallyHandler=function(){return this.type===0};function d(p){this.finallyHandler=p}d.prototype._resultCancelled=function(){m(this.finallyHandler)};function m(p,v){return p.cancelPromise!=null?(arguments.length>1?p.cancelPromise._reject(v):p.cancelPromise._cancel(),p.cancelPromise=null,!0):!1}function g(){return b.call(this,this.promise._target()._settledValue())}function _(p){if(!m(this,p))return f.e=p,f}function b(p){var v=this.promise,T=this.handler;if(!this.called){this.called=!0;var A=this.isFinallyHandler()?T.call(v._boundValue()):T.call(v._boundValue(),p);if(A===c)return A;if(A!==void 0){v._setReturnedNonUndefined();var x=w(A,v);if(x instanceof t){if(this.cancelPromise!=null)if(x._isCancelled()){var $=new y("late cancellation observer");return v._attachExtraTrace($),f.e=$,f}else x.isPending()&&x._attachCancellationCallback(new d(this));return x._then(g,_,void 0,this,void 0)}}}return v.isRejected()?(m(this),f.e=p,f):(m(this),p)}return t.prototype._passThrough=function(p,v,T,A){return typeof p!="function"?this.then():this._then(T,A,void 0,new h(this,v,p),void 0)},t.prototype.lastly=t.prototype.finally=function(p){return this._passThrough(p,0,b,b)},t.prototype.tap=function(p){return this._passThrough(p,1,b)},t.prototype.tapCatch=function(p){var v=arguments.length;if(v===1)return this._passThrough(p,1,void 0,b);var T=new Array(v-1),A=0,x;for(x=0;x<v-1;++x){var $=arguments[x];if(a.isObject($))T[A++]=$;else return t.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+a.classString($)))}T.length=A;var D=arguments[x];return this._passThrough(u(T,D,this),1,void 0,b)},h}},{"./catch_filter":7,"./util":36}],16:[function(r,s,R){s.exports=function(t,w,c,a,y,f){var u=r("./errors"),h=u.TypeError,d=r("./util"),m=d.errorObj,g=d.tryCatch,_=[];function b(v,T,A){for(var x=0;x<T.length;++x){A._pushContext();var $=g(T[x])(v);if(A._popContext(),$===m){A._pushContext();var D=t.reject(m.e);return A._popContext(),D}var H=a($,A);if(H instanceof t)return H}return null}function p(v,T,A,x){if(f.cancellation()){var $=new t(c),D=this._finallyPromise=new t(c);this._promise=$.lastly(function(){return D}),$._captureStackTrace(),$._setOnCancel(this)}else{var H=this._promise=new t(c);H._captureStackTrace()}this._stack=x,this._generatorFunction=v,this._receiver=T,this._generator=void 0,this._yieldHandlers=typeof A=="function"?[A].concat(_):_,this._yieldedPromise=null,this._cancellationPhase=!1}d.inherits(p,y),p.prototype._isResolved=function(){return this._promise===null},p.prototype._cleanup=function(){this._promise=this._generator=null,f.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},p.prototype._promiseCancelled=function(){if(!this._isResolved()){var v=typeof this._generator.return<"u",T;if(v)this._promise._pushContext(),T=g(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var A=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=A,this._promise._attachExtraTrace(A),this._promise._pushContext(),T=g(this._generator.throw).call(this._generator,A),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(T)}},p.prototype._promiseFulfilled=function(v){this._yieldedPromise=null,this._promise._pushContext();var T=g(this._generator.next).call(this._generator,v);this._promise._popContext(),this._continue(T)},p.prototype._promiseRejected=function(v){this._yieldedPromise=null,this._promise._attachExtraTrace(v),this._promise._pushContext();var T=g(this._generator.throw).call(this._generator,v);this._promise._popContext(),this._continue(T)},p.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var v=this._yieldedPromise;this._yieldedPromise=null,v.cancel()}},p.prototype.promise=function(){return this._promise},p.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},p.prototype._continue=function(v){var T=this._promise;if(v===m)return this._cleanup(),this._cancellationPhase?T.cancel():T._rejectCallback(v.e,!1);var A=v.value;if(v.done===!0)return this._cleanup(),this._cancellationPhase?T.cancel():T._resolveCallback(A);var x=a(A,this._promise);if(!(x instanceof t)&&(x=b(x,this._yieldHandlers,this._promise),x===null)){this._promiseRejected(new h(`A value %s was yielded that could not be treated as a promise
|
|
61
|
+
|
|
62
|
+
See http://goo.gl/MqrFmX
|
|
63
|
+
|
|
64
|
+
`.replace("%s",String(A))+`From coroutine:
|
|
65
|
+
`+this._stack.split(`
|
|
66
|
+
`).slice(1,-7).join(`
|
|
67
|
+
`)));return}x=x._target();var $=x._bitField;($&50397184)===0?(this._yieldedPromise=x,x._proxy(this,null)):($&33554432)!==0?t._async.invoke(this._promiseFulfilled,this,x._value()):($&16777216)!==0?t._async.invoke(this._promiseRejected,this,x._reason()):this._promiseCancelled()},t.coroutine=function(v,T){if(typeof v!="function")throw new h(`generatorFunction must be a function
|
|
68
|
+
|
|
69
|
+
See http://goo.gl/MqrFmX
|
|
70
|
+
`);var A=Object(T).yieldHandler,x=p,$=new Error().stack;return function(){var D=v.apply(this,arguments),H=new x(void 0,void 0,A,$),W=H.promise();return H._generator=D,H._promiseFulfilled(void 0),W}},t.coroutine.addYieldHandler=function(v){if(typeof v!="function")throw new h("expecting a function but got "+d.classString(v));_.push(v)},t.spawn=function(v){if(f.deprecated("Promise.spawn()","Promise.coroutine()"),typeof v!="function")return w(`generatorFunction must be a function
|
|
71
|
+
|
|
72
|
+
See http://goo.gl/MqrFmX
|
|
73
|
+
`);var T=new p(v,this),A=T.promise();return T._run(t.spawn),A}}},{"./errors":12,"./util":36}],17:[function(r,s,R){s.exports=function(t,w,c,a,y){var f=r("./util");f.canEvaluate,f.tryCatch,f.errorObj,t.join=function(){var u=arguments.length-1,h;if(u>0&&typeof arguments[u]=="function"){h=arguments[u];var m}var d=[].slice.call(arguments);h&&d.pop();var m=new w(d).promise();return h!==void 0?m.spread(h):m}}},{"./util":36}],18:[function(r,s,R){s.exports=function(t,w,c,a,y,f){var u=r("./util"),h=u.tryCatch,d=u.errorObj,m=t._async;function g(b,p,v,T){this.constructor$(b),this._promise._captureStackTrace();var A=t._getContext();if(this._callback=u.contextBind(A,p),this._preservedValues=T===y?new Array(this.length()):null,this._limit=v,this._inFlight=0,this._queue=[],m.invoke(this._asyncInit,this,void 0),u.isArray(b))for(var x=0;x<b.length;++x){var $=b[x];$ instanceof t&&$.suppressUnhandledRejections()}}u.inherits(g,w),g.prototype._asyncInit=function(){this._init$(void 0,-2)},g.prototype._init=function(){},g.prototype._promiseFulfilled=function(b,p){var v=this._values,T=this.length(),A=this._preservedValues,x=this._limit;if(p<0){if(p=p*-1-1,v[p]=b,x>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(x>=1&&this._inFlight>=x)return v[p]=b,this._queue.push(p),!1;A!==null&&(A[p]=b);var $=this._promise,D=this._callback,H=$._boundValue();$._pushContext();var W=h(D).call(H,b,p,T),Z=$._popContext();if(f.checkForgottenReturns(W,Z,A!==null?"Promise.filter":"Promise.map",$),W===d)return this._reject(W.e),!0;var G=a(W,this._promise);if(G instanceof t){G=G._target();var X=G._bitField;if((X&50397184)===0)return x>=1&&this._inFlight++,v[p]=G,G._proxy(this,(p+1)*-1),!1;if((X&33554432)!==0)W=G._value();else return(X&16777216)!==0?(this._reject(G._reason()),!0):(this._cancel(),!0)}v[p]=W}var U=++this._totalResolved;return U>=T?(A!==null?this._filter(v,A):this._resolve(v),!0):!1},g.prototype._drainQueue=function(){for(var b=this._queue,p=this._limit,v=this._values;b.length>0&&this._inFlight<p;){if(this._isResolved())return;var T=b.pop();this._promiseFulfilled(v[T],T)}},g.prototype._filter=function(b,p){for(var v=p.length,T=new Array(v),A=0,x=0;x<v;++x)b[x]&&(T[A++]=p[x]);T.length=A,this._resolve(T)},g.prototype.preservedValues=function(){return this._preservedValues};function _(b,p,v,T){if(typeof p!="function")return c("expecting a function but got "+u.classString(p));var A=0;if(v!==void 0)if(typeof v=="object"&&v!==null){if(typeof v.concurrency!="number")return t.reject(new TypeError("'concurrency' must be a number but it is "+u.classString(v.concurrency)));A=v.concurrency}else return t.reject(new TypeError("options argument must be an object but it is "+u.classString(v)));return A=typeof A=="number"&&isFinite(A)&&A>=1?A:0,new g(b,p,A,T).promise()}t.prototype.map=function(b,p){return _(this,b,p,null)},t.map=function(b,p,v,T){return _(b,p,v,T)}}},{"./util":36}],19:[function(r,s,R){s.exports=function(t,w,c,a,y){var f=r("./util"),u=f.tryCatch;t.method=function(h){if(typeof h!="function")throw new t.TypeError("expecting a function but got "+f.classString(h));return function(){var d=new t(w);d._captureStackTrace(),d._pushContext();var m=u(h).apply(this,arguments),g=d._popContext();return y.checkForgottenReturns(m,g,"Promise.method",d),d._resolveFromSyncValue(m),d}},t.attempt=t.try=function(h){if(typeof h!="function")return a("expecting a function but got "+f.classString(h));var d=new t(w);d._captureStackTrace(),d._pushContext();var m;if(arguments.length>1){y.deprecated("calling Promise.try with more than 1 argument");var g=arguments[1],_=arguments[2];m=f.isArray(g)?u(h).apply(_,g):u(h).call(_,g)}else m=u(h)();var b=d._popContext();return y.checkForgottenReturns(m,b,"Promise.try",d),d._resolveFromSyncValue(m),d},t.prototype._resolveFromSyncValue=function(h){h===f.errorObj?this._rejectCallback(h.e,!1):this._resolveCallback(h,!0)}}},{"./util":36}],20:[function(r,s,R){var t=r("./util"),w=t.maybeWrapAsError,c=r("./errors"),a=c.OperationalError,y=r("./es5");function f(m){return m instanceof Error&&y.getPrototypeOf(m)===Error.prototype}var u=/^(?:name|message|stack|cause)$/;function h(m){var g;if(f(m)){g=new a(m),g.name=m.name,g.message=m.message,g.stack=m.stack;for(var _=y.keys(m),b=0;b<_.length;++b){var p=_[b];u.test(p)||(g[p]=m[p])}return g}return t.markAsOriginatingFromRejection(m),m}function d(m,g){return function(_,b){if(m!==null){if(_){var p=h(w(_));m._attachExtraTrace(p),m._reject(p)}else if(!g)m._fulfill(b);else{var v=[].slice.call(arguments,1);m._fulfill(v)}m=null}}}s.exports=d},{"./errors":12,"./es5":13,"./util":36}],21:[function(r,s,R){s.exports=function(t){var w=r("./util"),c=t._async,a=w.tryCatch,y=w.errorObj;function f(d,m){var g=this;if(!w.isArray(d))return u.call(g,d,m);var _=a(m).apply(g._boundValue(),[null].concat(d));_===y&&c.throwLater(_.e)}function u(d,m){var g=this,_=g._boundValue(),b=d===void 0?a(m).call(_,null):a(m).call(_,null,d);b===y&&c.throwLater(b.e)}function h(d,m){var g=this;if(!d){var _=new Error(d+"");_.cause=d,d=_}var b=a(m).call(g._boundValue(),d);b===y&&c.throwLater(b.e)}t.prototype.asCallback=t.prototype.nodeify=function(d,m){if(typeof d=="function"){var g=u;m!==void 0&&Object(m).spread&&(g=f),this._then(g,h,void 0,this,d)}return this}}},{"./util":36}],22:[function(r,s,R){s.exports=function(){var t=function(){return new $(`circular promise resolution chain
|
|
74
|
+
|
|
75
|
+
See http://goo.gl/MqrFmX
|
|
76
|
+
`)},w=function(){return new k.PromiseInspection(this._target())},c=function(l){return k.reject(new $(l))};function a(){}var y={},f=r("./util");f.setReflectHandler(w);var u=function(){var l=process.domain;return l===void 0?null:l},h=function(){return null},d=function(){return{domain:u(),async:null}},m=f.isNode&&f.nodeSupportsAsyncResource?r("async_hooks").AsyncResource:null,g=function(){return{domain:u(),async:new m("Bluebird::Promise")}},_=f.isNode?d:h;f.notEnumerableProp(k,"_getContext",_);var b=function(){_=g,f.notEnumerableProp(k,"_getContext",g)},p=function(){_=d,f.notEnumerableProp(k,"_getContext",d)},v=r("./es5"),T=r("./async"),A=new T;v.defineProperty(k,"_async",{value:A});var x=r("./errors"),$=k.TypeError=x.TypeError;k.RangeError=x.RangeError;var D=k.CancellationError=x.CancellationError;k.TimeoutError=x.TimeoutError,k.OperationalError=x.OperationalError,k.RejectionError=x.OperationalError,k.AggregateError=x.AggregateError;var H=function(){},W={},Z={},G=r("./thenables")(k,H),X=r("./promise_array")(k,H,G,c,a),U=r("./context")(k),z=U.create,M=r("./debuggability")(k,U,b,p);M.CapturedTrace;var q=r("./finally")(k,G,Z),nt=r("./catch_filter")(Z),tt=r("./nodeback"),Y=f.errorObj,J=f.tryCatch;function it(l,i){if(l==null||l.constructor!==k)throw new $(`the promise constructor cannot be invoked directly
|
|
77
|
+
|
|
78
|
+
See http://goo.gl/MqrFmX
|
|
79
|
+
`);if(typeof i!="function")throw new $("expecting a function but got "+f.classString(i))}function k(l){l!==H&&it(this,l),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(l),this._promiseCreated(),this._fireEvent("promiseCreated",this)}k.prototype.toString=function(){return"[object Promise]"},k.prototype.caught=k.prototype.catch=function(l){var i=arguments.length;if(i>1){var E=new Array(i-1),O=0,I;for(I=0;I<i-1;++I){var j=arguments[I];if(f.isObject(j))E[O++]=j;else return c("Catch statement predicate: expecting an object but got "+f.classString(j))}if(E.length=O,l=arguments[I],typeof l!="function")throw new $("The last argument to .catch() must be a function, got "+f.toString(l));return this.then(void 0,nt(E,l,this))}return this.then(void 0,l)},k.prototype.reflect=function(){return this._then(w,w,void 0,this,void 0)},k.prototype.then=function(l,i){if(M.warnings()&&arguments.length>0&&typeof l!="function"&&typeof i!="function"){var E=".then() only accepts functions but was passed: "+f.classString(l);arguments.length>1&&(E+=", "+f.classString(i)),this._warn(E)}return this._then(l,i,void 0,void 0,void 0)},k.prototype.done=function(l,i){var E=this._then(l,i,void 0,void 0,void 0);E._setIsFinal()},k.prototype.spread=function(l){return typeof l!="function"?c("expecting a function but got "+f.classString(l)):this.all()._then(l,void 0,void 0,W,void 0)},k.prototype.toJSON=function(){var l={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(l.fulfillmentValue=this.value(),l.isFulfilled=!0):this.isRejected()&&(l.rejectionReason=this.reason(),l.isRejected=!0),l},k.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new X(this).promise()},k.prototype.error=function(l){return this.caught(f.originatesFromRejection,l)},k.getNewLibraryCopy=s.exports,k.is=function(l){return l instanceof k},k.fromNode=k.fromCallback=function(l){var i=new k(H);i._captureStackTrace();var E=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,O=J(l)(tt(i,E));return O===Y&&i._rejectCallback(O.e,!0),i._isFateSealed()||i._setAsyncGuaranteed(),i},k.all=function(l){return new X(l).promise()},k.cast=function(l){var i=G(l);return i instanceof k||(i=new k(H),i._captureStackTrace(),i._setFulfilled(),i._rejectionHandler0=l),i},k.resolve=k.fulfilled=k.cast,k.reject=k.rejected=function(l){var i=new k(H);return i._captureStackTrace(),i._rejectCallback(l,!0),i},k.setScheduler=function(l){if(typeof l!="function")throw new $("expecting a function but got "+f.classString(l));return A.setScheduler(l)},k.prototype._then=function(l,i,E,O,I){var j=I!==void 0,P=j?I:new k(H),Q=this._target(),ft=Q._bitField;j||(P._propagateFrom(this,3),P._captureStackTrace(),O===void 0&&(this._bitField&2097152)!==0&&((ft&50397184)!==0?O=this._boundValue():O=Q===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,P));var ct=_();if((ft&50397184)!==0){var yt,gt,Ot=Q._settlePromiseCtx;(ft&33554432)!==0?(gt=Q._rejectionHandler0,yt=l):(ft&16777216)!==0?(gt=Q._fulfillmentHandler0,yt=i,Q._unsetRejectionIsUnhandled()):(Ot=Q._settlePromiseLateCancellationObserver,gt=new D("late cancellation observer"),Q._attachExtraTrace(gt),yt=i),A.invoke(Ot,Q,{handler:f.contextBind(ct,yt),promise:P,receiver:O,value:gt})}else Q._addCallbacks(l,i,P,O,ct);return P},k.prototype._length=function(){return this._bitField&65535},k.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},k.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},k.prototype._setLength=function(l){this._bitField=this._bitField&-65536|l&65535},k.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},k.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},k.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},k.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},k.prototype._isFinal=function(){return(this._bitField&4194304)>0},k.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},k.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},k.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},k.prototype._setAsyncGuaranteed=function(){if(!A.hasCustomScheduler()){var l=this._bitField;this._bitField=l|(l&536870912)>>2^134217728}},k.prototype._setNoAsyncGuarantee=function(){this._bitField=(this._bitField|536870912)&-134217729},k.prototype._receiverAt=function(l){var i=l===0?this._receiver0:this[l*4-4+3];if(i!==y)return i===void 0&&this._isBound()?this._boundValue():i},k.prototype._promiseAt=function(l){return this[l*4-4+2]},k.prototype._fulfillmentHandlerAt=function(l){return this[l*4-4+0]},k.prototype._rejectionHandlerAt=function(l){return this[l*4-4+1]},k.prototype._boundValue=function(){},k.prototype._migrateCallback0=function(l){l._bitField;var i=l._fulfillmentHandler0,E=l._rejectionHandler0,O=l._promise0,I=l._receiverAt(0);I===void 0&&(I=y),this._addCallbacks(i,E,O,I,null)},k.prototype._migrateCallbackAt=function(l,i){var E=l._fulfillmentHandlerAt(i),O=l._rejectionHandlerAt(i),I=l._promiseAt(i),j=l._receiverAt(i);j===void 0&&(j=y),this._addCallbacks(E,O,I,j,null)},k.prototype._addCallbacks=function(l,i,E,O,I){var j=this._length();if(j>=65531&&(j=0,this._setLength(0)),j===0)this._promise0=E,this._receiver0=O,typeof l=="function"&&(this._fulfillmentHandler0=f.contextBind(I,l)),typeof i=="function"&&(this._rejectionHandler0=f.contextBind(I,i));else{var P=j*4-4;this[P+2]=E,this[P+3]=O,typeof l=="function"&&(this[P+0]=f.contextBind(I,l)),typeof i=="function"&&(this[P+1]=f.contextBind(I,i))}return this._setLength(j+1),j},k.prototype._proxy=function(l,i){this._addCallbacks(void 0,void 0,i,l,null)},k.prototype._resolveCallback=function(l,i){if((this._bitField&117506048)===0){if(l===this)return this._rejectCallback(t(),!1);var E=G(l,this);if(!(E instanceof k))return this._fulfill(l);i&&this._propagateFrom(E,2);var O=E._target();if(O===this){this._reject(t());return}var I=O._bitField;if((I&50397184)===0){var j=this._length();j>0&&O._migrateCallback0(this);for(var P=1;P<j;++P)O._migrateCallbackAt(this,P);this._setFollowing(),this._setLength(0),this._setFollowee(E)}else if((I&33554432)!==0)this._fulfill(O._value());else if((I&16777216)!==0)this._reject(O._reason());else{var Q=new D("late cancellation observer");O._attachExtraTrace(Q),this._reject(Q)}}},k.prototype._rejectCallback=function(l,i,E){var O=f.ensureErrorObject(l),I=O===l;if(!I&&!E&&M.warnings()){var j="a promise was rejected with a non-error: "+f.classString(l);this._warn(j,!0)}this._attachExtraTrace(O,i?I:!1),this._reject(l)},k.prototype._resolveFromExecutor=function(l){if(l!==H){var i=this;this._captureStackTrace(),this._pushContext();var E=!0,O=this._execute(l,function(I){i._resolveCallback(I)},function(I){i._rejectCallback(I,E)});E=!1,this._popContext(),O!==void 0&&i._rejectCallback(O,!0)}},k.prototype._settlePromiseFromHandler=function(l,i,E,O){var I=O._bitField;if((I&65536)===0){O._pushContext();var j;i===W?!E||typeof E.length!="number"?(j=Y,j.e=new $("cannot .spread() a non-array: "+f.classString(E))):j=J(l).apply(this._boundValue(),E):j=J(l).call(i,E);var P=O._popContext();I=O._bitField,(I&65536)===0&&(j===Z?O._reject(E):j===Y?O._rejectCallback(j.e,!1):(M.checkForgottenReturns(j,P,"",O,this),O._resolveCallback(j)))}},k.prototype._target=function(){for(var l=this;l._isFollowing();)l=l._followee();return l},k.prototype._followee=function(){return this._rejectionHandler0},k.prototype._setFollowee=function(l){this._rejectionHandler0=l},k.prototype._settlePromise=function(l,i,E,O){var I=l instanceof k,j=this._bitField,P=(j&134217728)!==0;(j&65536)!==0?(I&&l._invokeInternalOnCancel(),E instanceof q&&E.isFinallyHandler()?(E.cancelPromise=l,J(i).call(E,O)===Y&&l._reject(Y.e)):i===w?l._fulfill(w.call(E)):E instanceof a?E._promiseCancelled(l):I||l instanceof X?l._cancel():E.cancel()):typeof i=="function"?I?(P&&l._setAsyncGuaranteed(),this._settlePromiseFromHandler(i,E,O,l)):i.call(E,O,l):E instanceof a?E._isResolved()||((j&33554432)!==0?E._promiseFulfilled(O,l):E._promiseRejected(O,l)):I&&(P&&l._setAsyncGuaranteed(),(j&33554432)!==0?l._fulfill(O):l._reject(O))},k.prototype._settlePromiseLateCancellationObserver=function(l){var i=l.handler,E=l.promise,O=l.receiver,I=l.value;typeof i=="function"?E instanceof k?this._settlePromiseFromHandler(i,O,I,E):i.call(O,I,E):E instanceof k&&E._reject(I)},k.prototype._settlePromiseCtx=function(l){this._settlePromise(l.promise,l.handler,l.receiver,l.value)},k.prototype._settlePromise0=function(l,i,E){var O=this._promise0,I=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(O,l,I,i)},k.prototype._clearCallbackDataAtIndex=function(l){var i=l*4-4;this[i+2]=this[i+3]=this[i+0]=this[i+1]=void 0},k.prototype._fulfill=function(l){var i=this._bitField;if(!((i&117506048)>>>16)){if(l===this){var E=t();return this._attachExtraTrace(E),this._reject(E)}this._setFulfilled(),this._rejectionHandler0=l,(i&65535)>0&&((i&134217728)!==0?this._settlePromises():A.settlePromises(this),this._dereferenceTrace())}},k.prototype._reject=function(l){var i=this._bitField;if(!((i&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=l,this._isFinal())return A.fatalError(l,f.isNode);(i&65535)>0?A.settlePromises(this):this._ensurePossibleRejectionHandled()}},k.prototype._fulfillPromises=function(l,i){for(var E=1;E<l;E++){var O=this._fulfillmentHandlerAt(E),I=this._promiseAt(E),j=this._receiverAt(E);this._clearCallbackDataAtIndex(E),this._settlePromise(I,O,j,i)}},k.prototype._rejectPromises=function(l,i){for(var E=1;E<l;E++){var O=this._rejectionHandlerAt(E),I=this._promiseAt(E),j=this._receiverAt(E);this._clearCallbackDataAtIndex(E),this._settlePromise(I,O,j,i)}},k.prototype._settlePromises=function(){var l=this._bitField,i=l&65535;if(i>0){if((l&16842752)!==0){var E=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,E,l),this._rejectPromises(i,E)}else{var O=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,O,l),this._fulfillPromises(i,O)}this._setLength(0)}this._clearCancellationData()},k.prototype._settledValue=function(){var l=this._bitField;if((l&33554432)!==0)return this._rejectionHandler0;if((l&16777216)!==0)return this._fulfillmentHandler0},typeof Symbol<"u"&&Symbol.toStringTag&&v.defineProperty(k.prototype,Symbol.toStringTag,{get:function(){return"Object"}});function ut(l){this.promise._resolveCallback(l)}function pt(l){this.promise._rejectCallback(l,!1)}k.defer=k.pending=function(){M.deprecated("Promise.defer","new Promise");var l=new k(H);return{promise:l,resolve:ut,reject:pt}},f.notEnumerableProp(k,"_makeSelfResolutionError",t),r("./method")(k,H,G,c,M),r("./bind")(k,H,G,M),r("./cancel")(k,X,c,M),r("./direct_resolve")(k),r("./synchronous_inspection")(k),r("./join")(k,X,G,H,A),k.Promise=k,k.version="3.7.2",r("./call_get.js")(k),r("./generators.js")(k,c,H,G,a,M),r("./map.js")(k,X,c,G,H,M),r("./nodeify.js")(k),r("./promisify.js")(k,H),r("./props.js")(k,X,G,c),r("./race.js")(k,H,G,c),r("./reduce.js")(k,X,c,G,H,M),r("./settle.js")(k,X,M),r("./some.js")(k,X,c),r("./timers.js")(k,H,M),r("./using.js")(k,c,G,z,H,M),r("./any.js")(k),r("./each.js")(k,H),r("./filter.js")(k,H),f.toFastProperties(k),f.toFastProperties(k.prototype);function F(l){var i=new k(H);i._fulfillmentHandler0=l,i._rejectionHandler0=l,i._promise0=l,i._receiver0=l}return F({a:1}),F({b:2}),F({c:3}),F(1),F(function(){}),F(void 0),F(!1),F(new k(H)),M.setBounds(T.firstLineError,f.lastLineError),k}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36,async_hooks:void 0}],23:[function(r,s,R){s.exports=function(t,w,c,a,y){var f=r("./util");f.isArray;function u(d){switch(d){case-2:return[];case-3:return{};case-6:return new Map}}function h(d){var m=this._promise=new t(w);d instanceof t&&(m._propagateFrom(d,3),d.suppressUnhandledRejections()),m._setOnCancel(this),this._values=d,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return f.inherits(h,y),h.prototype.length=function(){return this._length},h.prototype.promise=function(){return this._promise},h.prototype._init=function d(m,g){var _=c(this._values,this._promise);if(_ instanceof t){_=_._target();var b=_._bitField;if(this._values=_,(b&50397184)===0)return this._promise._setAsyncGuaranteed(),_._then(d,this._reject,void 0,this,g);if((b&33554432)!==0)_=_._value();else return(b&16777216)!==0?this._reject(_._reason()):this._cancel()}if(_=f.asArray(_),_===null){var p=a("expecting an array or an iterable object but got "+f.classString(_)).reason();this._promise._rejectCallback(p,!1);return}if(_.length===0){g===-5?this._resolveEmptyArray():this._resolve(u(g));return}this._iterate(_)},h.prototype._iterate=function(d){var m=this.getActualLength(d.length);this._length=m,this._values=this.shouldCopyValues()?new Array(m):this._values;for(var g=this._promise,_=!1,b=null,p=0;p<m;++p){var v=c(d[p],g);v instanceof t?(v=v._target(),b=v._bitField):b=null,_?b!==null&&v.suppressUnhandledRejections():b!==null?(b&50397184)===0?(v._proxy(this,p),this._values[p]=v):(b&33554432)!==0?_=this._promiseFulfilled(v._value(),p):(b&16777216)!==0?_=this._promiseRejected(v._reason(),p):_=this._promiseCancelled(p):_=this._promiseFulfilled(v,p)}_||g._setAsyncGuaranteed()},h.prototype._isResolved=function(){return this._values===null},h.prototype._resolve=function(d){this._values=null,this._promise._fulfill(d)},h.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},h.prototype._reject=function(d){this._values=null,this._promise._rejectCallback(d,!1)},h.prototype._promiseFulfilled=function(d,m){this._values[m]=d;var g=++this._totalResolved;return g>=this._length?(this._resolve(this._values),!0):!1},h.prototype._promiseCancelled=function(){return this._cancel(),!0},h.prototype._promiseRejected=function(d){return this._totalResolved++,this._reject(d),!0},h.prototype._resultCancelled=function(){if(!this._isResolved()){var d=this._values;if(this._cancel(),d instanceof t)d.cancel();else for(var m=0;m<d.length;++m)d[m]instanceof t&&d[m].cancel()}},h.prototype.shouldCopyValues=function(){return!0},h.prototype.getActualLength=function(d){return d},h}},{"./util":36}],24:[function(r,s,R){s.exports=function(t,w){var c={},a=r("./util"),y=r("./nodeback"),f=a.withAppended,u=a.maybeWrapAsError,h=a.canEvaluate,d=r("./errors").TypeError,m="Async",g={__isPromisified__:!0},_=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],b=new RegExp("^(?:"+_.join("|")+")$"),p=function(U){return a.isIdentifier(U)&&U.charAt(0)!=="_"&&U!=="constructor"};function v(U){return!b.test(U)}function T(U){try{return U.__isPromisified__===!0}catch{return!1}}function A(U,z,M){var q=a.getDataPropertyOrDefault(U,z+M,g);return q?T(q):!1}function x(U,z,M){for(var q=0;q<U.length;q+=2){var nt=U[q];if(M.test(nt)){for(var tt=nt.replace(M,""),Y=0;Y<U.length;Y+=2)if(U[Y]===tt)throw new d(`Cannot promisify an API that has normal methods with '%s'-suffix
|
|
80
|
+
|
|
81
|
+
See http://goo.gl/MqrFmX
|
|
82
|
+
`.replace("%s",z))}}}function $(U,z,M,q){for(var nt=a.inheritedDataKeys(U),tt=[],Y=0;Y<nt.length;++Y){var J=nt[Y],it=U[J],k=q===p?!0:p(J);typeof it=="function"&&!T(it)&&!A(U,J,z)&&q(J,it,U,k)&&tt.push(J,it)}return x(tt,z,M),tt}var D=function(U){return U.replace(/([$])/,"\\$")},H;function W(U,z,M,q,nt,tt){var Y=function(){return this}(),J=U;typeof J=="string"&&(U=q);function it(){var k=z;z===c&&(k=this);var ut=new t(w);ut._captureStackTrace();var pt=typeof J=="string"&&this!==Y?this[J]:U,F=y(ut,tt);try{pt.apply(k,f(arguments,F))}catch(l){ut._rejectCallback(u(l),!0,!0)}return ut._isFateSealed()||ut._setAsyncGuaranteed(),ut}return a.notEnumerableProp(it,"__isPromisified__",!0),it}var Z=h?H:W;function G(U,z,M,q,nt){for(var tt=new RegExp(D(z)+"$"),Y=$(U,z,tt,M),J=0,it=Y.length;J<it;J+=2){var k=Y[J],ut=Y[J+1],pt=k+z;if(q===Z)U[pt]=Z(k,c,k,ut,z,nt);else{var F=q(ut,function(){return Z(k,c,k,ut,z,nt)});a.notEnumerableProp(F,"__isPromisified__",!0),U[pt]=F}}return a.toFastProperties(U),U}function X(U,z,M){return Z(U,z,void 0,U,null,M)}t.promisify=function(U,z){if(typeof U!="function")throw new d("expecting a function but got "+a.classString(U));if(T(U))return U;z=Object(z);var M=z.context===void 0?c:z.context,q=!!z.multiArgs,nt=X(U,M,q);return a.copyDescriptors(U,nt,v),nt},t.promisifyAll=function(U,z){if(typeof U!="function"&&typeof U!="object")throw new d(`the target of promisifyAll must be an object or a function
|
|
83
|
+
|
|
84
|
+
See http://goo.gl/MqrFmX
|
|
85
|
+
`);z=Object(z);var M=!!z.multiArgs,q=z.suffix;typeof q!="string"&&(q=m);var nt=z.filter;typeof nt!="function"&&(nt=p);var tt=z.promisifier;if(typeof tt!="function"&&(tt=Z),!a.isIdentifier(q))throw new RangeError(`suffix must be a valid identifier
|
|
86
|
+
|
|
87
|
+
See http://goo.gl/MqrFmX
|
|
88
|
+
`);for(var Y=a.inheritedDataKeys(U),J=0;J<Y.length;++J){var it=U[Y[J]];Y[J]!=="constructor"&&a.isClass(it)&&(G(it.prototype,q,nt,tt,M),G(it,q,nt,tt,M))}return G(U,q,nt,tt,M)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(r,s,R){s.exports=function(t,w,c,a){var y=r("./util"),f=y.isObject,u=r("./es5"),h;typeof Map=="function"&&(h=Map);var d=function(){var b=0,p=0;function v(T,A){this[b]=T,this[b+p]=A,b++}return function(A){p=A.size,b=0;var x=new Array(A.size*2);return A.forEach(v,x),x}}(),m=function(b){for(var p=new h,v=b.length/2|0,T=0;T<v;++T){var A=b[v+T],x=b[T];p.set(A,x)}return p};function g(b){var p=!1,v;if(h!==void 0&&b instanceof h)v=d(b),p=!0;else{var T=u.keys(b),A=T.length;v=new Array(A*2);for(var x=0;x<A;++x){var $=T[x];v[x]=b[$],v[x+A]=$}}this.constructor$(v),this._isMap=p,this._init$(void 0,p?-6:-3)}y.inherits(g,w),g.prototype._init=function(){},g.prototype._promiseFulfilled=function(b,p){this._values[p]=b;var v=++this._totalResolved;if(v>=this._length){var T;if(this._isMap)T=m(this._values);else{T={};for(var A=this.length(),x=0,$=this.length();x<$;++x)T[this._values[x+A]]=this._values[x]}return this._resolve(T),!0}return!1},g.prototype.shouldCopyValues=function(){return!1},g.prototype.getActualLength=function(b){return b>>1};function _(b){var p,v=c(b);if(f(v))v instanceof t?p=v._then(t.props,void 0,void 0,void 0,void 0):p=new g(v).promise();else return a(`cannot await properties of a non-object
|
|
89
|
+
|
|
90
|
+
See http://goo.gl/MqrFmX
|
|
91
|
+
`);return v instanceof t&&p._propagateFrom(v,2),p}t.prototype.props=function(){return _(this)},t.props=function(b){return _(b)}}},{"./es5":13,"./util":36}],26:[function(r,s,R){function t(c,a,y,f,u){for(var h=0;h<u;++h)y[h+f]=c[h+a],c[h+a]=void 0}function w(c){this._capacity=c,this._length=0,this._front=0}w.prototype._willBeOverCapacity=function(c){return this._capacity<c},w.prototype._pushOne=function(c){var a=this.length();this._checkCapacity(a+1);var y=this._front+a&this._capacity-1;this[y]=c,this._length=a+1},w.prototype.push=function(c,a,y){var f=this.length()+3;if(this._willBeOverCapacity(f)){this._pushOne(c),this._pushOne(a),this._pushOne(y);return}var u=this._front+f-3;this._checkCapacity(f);var h=this._capacity-1;this[u+0&h]=c,this[u+1&h]=a,this[u+2&h]=y,this._length=f},w.prototype.shift=function(){var c=this._front,a=this[c];return this[c]=void 0,this._front=c+1&this._capacity-1,this._length--,a},w.prototype.length=function(){return this._length},w.prototype._checkCapacity=function(c){this._capacity<c&&this._resizeTo(this._capacity<<1)},w.prototype._resizeTo=function(c){var a=this._capacity;this._capacity=c;var y=this._front,f=this._length,u=y+f&a-1;t(this,0,this,a,u)},s.exports=w},{}],27:[function(r,s,R){s.exports=function(t,w,c,a){var y=r("./util"),f=function(h){return h.then(function(d){return u(d,h)})};function u(h,d){var m=c(h);if(m instanceof t)return f(m);if(h=y.asArray(h),h===null)return a("expecting an array or an iterable object but got "+y.classString(h));var g=new t(w);d!==void 0&&g._propagateFrom(d,3);for(var _=g._fulfill,b=g._reject,p=0,v=h.length;p<v;++p){var T=h[p];T===void 0&&!(p in h)||t.cast(T)._then(_,b,void 0,g,null)}return g}t.race=function(h){return u(h,void 0)},t.prototype.race=function(){return u(this,void 0)}}},{"./util":36}],28:[function(r,s,R){s.exports=function(t,w,c,a,y,f){var u=r("./util"),h=u.tryCatch;function d(p,v,T,A){this.constructor$(p);var x=t._getContext();this._fn=u.contextBind(x,v),T!==void 0&&(T=t.resolve(T),T._attachCancellationCallback(this)),this._initialValue=T,this._currentCancellable=null,A===y?this._eachValues=Array(this._length):A===0?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}u.inherits(d,w),d.prototype._gotAccum=function(p){this._eachValues!==void 0&&this._eachValues!==null&&p!==y&&this._eachValues.push(p)},d.prototype._eachComplete=function(p){return this._eachValues!==null&&this._eachValues.push(p),this._eachValues},d.prototype._init=function(){},d.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},d.prototype.shouldCopyValues=function(){return!1},d.prototype._resolve=function(p){this._promise._resolveCallback(p),this._values=null},d.prototype._resultCancelled=function(p){if(p===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},d.prototype._iterate=function(p){this._values=p;var v,T,A=p.length;this._initialValue!==void 0?(v=this._initialValue,T=0):(v=t.resolve(p[0]),T=1),this._currentCancellable=v;for(var x=T;x<A;++x){var $=p[x];$ instanceof t&&$.suppressUnhandledRejections()}if(!v.isRejected())for(;T<A;++T){var D={accum:null,value:p[T],index:T,length:A,array:this};v=v._then(_,void 0,void 0,D,void 0),(T&127)===0&&v._setNoAsyncGuarantee()}this._eachValues!==void 0&&(v=v._then(this._eachComplete,void 0,void 0,this,void 0)),v._then(m,m,void 0,v,this)},t.prototype.reduce=function(p,v){return g(this,p,v,null)},t.reduce=function(p,v,T,A){return g(p,v,T,A)};function m(p,v){this.isFulfilled()?v._resolve(p):v._reject(p)}function g(p,v,T,A){if(typeof v!="function")return c("expecting a function but got "+u.classString(v));var x=new d(p,v,T,A);return x.promise()}function _(p){this.accum=p,this.array._gotAccum(p);var v=a(this.value,this.array._promise);return v instanceof t?(this.array._currentCancellable=v,v._then(b,void 0,void 0,this,void 0)):b.call(this,v)}function b(p){var v=this.array,T=v._promise,A=h(v._fn);T._pushContext();var x;v._eachValues!==void 0?x=A.call(T._boundValue(),p,this.index,this.length):x=A.call(T._boundValue(),this.accum,p,this.index,this.length),x instanceof t&&(v._currentCancellable=x);var $=T._popContext();return f.checkForgottenReturns(x,$,v._eachValues!==void 0?"Promise.each":"Promise.reduce",T),x}}},{"./util":36}],29:[function(r,s,R){var t=r("./util"),w,c=function(){throw new Error(`No async scheduler available
|
|
92
|
+
|
|
93
|
+
See http://goo.gl/MqrFmX
|
|
94
|
+
`)},a=t.getNativePromise();if(t.isNode&&typeof MutationObserver>"u"){var y=Ut.setImmediate,f=process.nextTick;w=t.isRecentNode?function(h){y.call(Ut,h)}:function(h){f.call(process,h)}}else if(typeof a=="function"&&typeof a.resolve=="function"){var u=a.resolve();w=function(h){u.then(h)}}else typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova))&&"classList"in document.documentElement?w=function(){var h=document.createElement("div"),d={attributes:!0},m=!1,g=document.createElement("div"),_=new MutationObserver(function(){h.classList.toggle("foo"),m=!1});_.observe(g,d);var b=function(){m||(m=!0,g.classList.toggle("foo"))};return function(v){var T=new MutationObserver(function(){T.disconnect(),v()});T.observe(h,d),b()}}():typeof setImmediate<"u"?w=function(h){setImmediate(h)}:typeof setTimeout<"u"?w=function(h){setTimeout(h,0)}:w=c;s.exports=w},{"./util":36}],30:[function(r,s,R){s.exports=function(t,w,c){var a=t.PromiseInspection,y=r("./util");function f(u){this.constructor$(u)}y.inherits(f,w),f.prototype._promiseResolved=function(u,h){this._values[u]=h;var d=++this._totalResolved;return d>=this._length?(this._resolve(this._values),!0):!1},f.prototype._promiseFulfilled=function(u,h){var d=new a;return d._bitField=33554432,d._settledValueField=u,this._promiseResolved(h,d)},f.prototype._promiseRejected=function(u,h){var d=new a;return d._bitField=16777216,d._settledValueField=u,this._promiseResolved(h,d)},t.settle=function(u){return c.deprecated(".settle()",".reflect()"),new f(u).promise()},t.allSettled=function(u){return new f(u).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(r,s,R){s.exports=function(t,w,c){var a=r("./util"),y=r("./errors").RangeError,f=r("./errors").AggregateError,u=a.isArray,h={};function d(g){this.constructor$(g),this._howMany=0,this._unwrap=!1,this._initialized=!1}a.inherits(d,w),d.prototype._init=function(){if(this._initialized){if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var g=u(this._values);!this._isResolved()&&g&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},d.prototype.init=function(){this._initialized=!0,this._init()},d.prototype.setUnwrap=function(){this._unwrap=!0},d.prototype.howMany=function(){return this._howMany},d.prototype.setHowMany=function(g){this._howMany=g},d.prototype._promiseFulfilled=function(g){return this._addFulfilled(g),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},d.prototype._promiseRejected=function(g){return this._addRejected(g),this._checkOutcome()},d.prototype._promiseCancelled=function(){return this._values instanceof t||this._values==null?this._cancel():(this._addRejected(h),this._checkOutcome())},d.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var g=new f,_=this.length();_<this._values.length;++_)this._values[_]!==h&&g.push(this._values[_]);return g.length>0?this._reject(g):this._cancel(),!0}return!1},d.prototype._fulfilled=function(){return this._totalResolved},d.prototype._rejected=function(){return this._values.length-this.length()},d.prototype._addRejected=function(g){this._values.push(g)},d.prototype._addFulfilled=function(g){this._values[this._totalResolved++]=g},d.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},d.prototype._getRangeError=function(g){var _="Input array must contain at least "+this._howMany+" items but contains only "+g+" items";return new y(_)},d.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function m(g,_){if((_|0)!==_||_<0)return c(`expecting a positive integer
|
|
95
|
+
|
|
96
|
+
See http://goo.gl/MqrFmX
|
|
97
|
+
`);var b=new d(g),p=b.promise();return b.setHowMany(_),b.init(),p}t.some=function(g,_){return m(g,_)},t.prototype.some=function(g){return m(this,g)},t._SomePromiseArray=d}},{"./errors":12,"./util":36}],32:[function(r,s,R){s.exports=function(t){function w(d){d!==void 0?(d=d._target(),this._bitField=d._bitField,this._settledValueField=d._isFateSealed()?d._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}w.prototype._settledValue=function(){return this._settledValueField};var c=w.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
|
|
98
|
+
|
|
99
|
+
See http://goo.gl/MqrFmX
|
|
100
|
+
`);return this._settledValue()},a=w.prototype.error=w.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
|
|
101
|
+
|
|
102
|
+
See http://goo.gl/MqrFmX
|
|
103
|
+
`);return this._settledValue()},y=w.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},f=w.prototype.isRejected=function(){return(this._bitField&16777216)!==0},u=w.prototype.isPending=function(){return(this._bitField&50397184)===0},h=w.prototype.isResolved=function(){return(this._bitField&50331648)!==0};w.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},t.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},t.prototype.isPending=function(){return u.call(this._target())},t.prototype.isRejected=function(){return f.call(this._target())},t.prototype.isFulfilled=function(){return y.call(this._target())},t.prototype.isResolved=function(){return h.call(this._target())},t.prototype.value=function(){return c.call(this._target())},t.prototype.reason=function(){var d=this._target();return d._unsetRejectionIsUnhandled(),a.call(d)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=w}},{}],33:[function(r,s,R){s.exports=function(t,w){var c=r("./util"),a=c.errorObj,y=c.isObject;function f(_,b){if(y(_)){if(_ instanceof t)return _;var p=h(_);if(p===a){b&&b._pushContext();var v=t.reject(p.e);return b&&b._popContext(),v}else if(typeof p=="function"){if(m(_)){var v=new t(w);return _._then(v._fulfill,v._reject,void 0,v,null),v}return g(_,p,b)}}return _}function u(_){return _.then}function h(_){try{return u(_)}catch(b){return a.e=b,a}}var d={}.hasOwnProperty;function m(_){try{return d.call(_,"_promise0")}catch{return!1}}function g(_,b,p){var v=new t(w),T=v;p&&p._pushContext(),v._captureStackTrace(),p&&p._popContext();var A=!0,x=c.tryCatch(b).call(_,$,D);A=!1,v&&x===a&&(v._rejectCallback(x.e,!0,!0),v=null);function $(H){v&&(v._resolveCallback(H),v=null)}function D(H){v&&(v._rejectCallback(H,A,!0),v=null)}return T}return f}},{"./util":36}],34:[function(r,s,R){s.exports=function(t,w,c){var a=r("./util"),y=t.TimeoutError;function f(_){this.handle=_}f.prototype._resultCancelled=function(){clearTimeout(this.handle)};var u=function(_){return h(+this).thenReturn(_)},h=t.delay=function(_,b){var p,v;return b!==void 0?(p=t.resolve(b)._then(u,null,null,_,void 0),c.cancellation()&&b instanceof t&&p._setOnCancel(b)):(p=new t(w),v=setTimeout(function(){p._fulfill()},+_),c.cancellation()&&p._setOnCancel(new f(v)),p._captureStackTrace()),p._setAsyncGuaranteed(),p};t.prototype.delay=function(_){return h(_,this)};var d=function(_,b,p){var v;typeof b!="string"?b instanceof Error?v=b:v=new y("operation timed out"):v=new y(b),a.markAsOriginatingFromRejection(v),_._attachExtraTrace(v),_._reject(v),p!=null&&p.cancel()};function m(_){return clearTimeout(this.handle),_}function g(_){throw clearTimeout(this.handle),_}t.prototype.timeout=function(_,b){_=+_;var p,v,T=new f(setTimeout(function(){p.isPending()&&d(p,b,v)},_));return c.cancellation()?(v=this.then(),p=v._then(m,g,void 0,T,void 0),p._setOnCancel(T)):p=this._then(m,g,void 0,T,void 0),p}}},{"./util":36}],35:[function(r,s,R){s.exports=function(t,w,c,a,y,f){var u=r("./util"),h=r("./errors").TypeError,d=r("./util").inherits,m=u.errorObj,g=u.tryCatch,_={};function b(D){setTimeout(function(){throw D},0)}function p(D){var H=c(D);return H!==D&&typeof D._isDisposable=="function"&&typeof D._getDisposer=="function"&&D._isDisposable()&&H._setDisposable(D._getDisposer()),H}function v(D,H){var W=0,Z=D.length,G=new t(y);function X(){if(W>=Z)return G._fulfill();var U=p(D[W++]);if(U instanceof t&&U._isDisposable()){try{U=c(U._getDisposer().tryDispose(H),D.promise)}catch(z){return b(z)}if(U instanceof t)return U._then(X,b,null,null,null)}X()}return X(),G}function T(D,H,W){this._data=D,this._promise=H,this._context=W}T.prototype.data=function(){return this._data},T.prototype.promise=function(){return this._promise},T.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():_},T.prototype.tryDispose=function(D){var H=this.resource(),W=this._context;W!==void 0&&W._pushContext();var Z=H!==_?this.doDispose(H,D):null;return W!==void 0&&W._popContext(),this._promise._unsetDisposable(),this._data=null,Z},T.isDisposer=function(D){return D!=null&&typeof D.resource=="function"&&typeof D.tryDispose=="function"};function A(D,H,W){this.constructor$(D,H,W)}d(A,T),A.prototype.doDispose=function(D,H){var W=this.data();return W.call(D,D,H)};function x(D){return T.isDisposer(D)?(this.resources[this.index]._setDisposable(D),D.promise()):D}function $(D){this.length=D,this.promise=null,this[D-1]=null}$.prototype._resultCancelled=function(){for(var D=this.length,H=0;H<D;++H){var W=this[H];W instanceof t&&W.cancel()}},t.using=function(){var D=arguments.length;if(D<2)return w("you must pass at least 2 arguments to Promise.using");var H=arguments[D-1];if(typeof H!="function")return w("expecting a function but got "+u.classString(H));var W,Z=!0;D===2&&Array.isArray(arguments[0])?(W=arguments[0],D=W.length,Z=!1):(W=arguments,D--);for(var G=new $(D),X=0;X<D;++X){var U=W[X];if(T.isDisposer(U)){var z=U;U=U.promise(),U._setDisposable(z)}else{var M=c(U);M instanceof t&&(U=M._then(x,null,null,{resources:G,index:X},void 0))}G[X]=U}for(var q=new Array(G.length),X=0;X<q.length;++X)q[X]=t.resolve(G[X]).reflect();var nt=t.all(q).then(function(Y){for(var J=0;J<Y.length;++J){var it=Y[J];if(it.isRejected())return m.e=it.error(),m;if(!it.isFulfilled()){nt.cancel();return}Y[J]=it.value()}tt._pushContext(),H=g(H);var k=Z?H.apply(void 0,Y):H(Y),ut=tt._popContext();return f.checkForgottenReturns(k,ut,"Promise.using",tt),k}),tt=nt.lastly(function(){var Y=new t.PromiseInspection(nt);return v(G,Y)});return G.promise=tt,tt._setOnCancel(G),tt},t.prototype._setDisposable=function(D){this._bitField=this._bitField|131072,this._disposer=D},t.prototype._isDisposable=function(){return(this._bitField&131072)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},t.prototype.disposer=function(D){if(typeof D=="function")return new A(D,this,a());throw new h}}},{"./errors":12,"./util":36}],36:[function(r,s,R){var t=r("./es5"),w=typeof navigator>"u",c={e:{}},a,y=typeof self<"u"?self:typeof window<"u"?window:typeof Ut<"u"?Ut:this!==void 0?this:null;function f(){try{var i=a;return a=null,i.apply(this,arguments)}catch(E){return c.e=E,c}}function u(i){return a=i,f}var h=function(i,E){var O={}.hasOwnProperty;function I(){this.constructor=i,this.constructor$=E;for(var j in E.prototype)O.call(E.prototype,j)&&j.charAt(j.length-1)!=="$"&&(this[j+"$"]=E.prototype[j])}return I.prototype=E.prototype,i.prototype=new I,i.prototype};function d(i){return i==null||i===!0||i===!1||typeof i=="string"||typeof i=="number"}function m(i){return typeof i=="function"||typeof i=="object"&&i!==null}function g(i){return d(i)?new Error(Z(i)):i}function _(i,E){var O=i.length,I=new Array(O+1),j;for(j=0;j<O;++j)I[j]=i[j];return I[j]=E,I}function b(i,E,O){if(t.isES5){var I=Object.getOwnPropertyDescriptor(i,E);if(I!=null)return I.get==null&&I.set==null?I.value:O}else return{}.hasOwnProperty.call(i,E)?i[E]:void 0}function p(i,E,O){if(d(i))return i;var I={value:O,configurable:!0,enumerable:!1,writable:!0};return t.defineProperty(i,E,I),i}function v(i){throw i}var T=function(){var i=[Array.prototype,Object.prototype,Function.prototype],E=function(j){for(var P=0;P<i.length;++P)if(i[P]===j)return!0;return!1};if(t.isES5){var O=Object.getOwnPropertyNames;return function(j){for(var P=[],Q=Object.create(null);j!=null&&!E(j);){var ft;try{ft=O(j)}catch{return P}for(var ct=0;ct<ft.length;++ct){var yt=ft[ct];if(!Q[yt]){Q[yt]=!0;var gt=Object.getOwnPropertyDescriptor(j,yt);gt!=null&>.get==null&>.set==null&&P.push(yt)}}j=t.getPrototypeOf(j)}return P}}else{var I={}.hasOwnProperty;return function(j){if(E(j))return[];var P=[];t:for(var Q in j)if(I.call(j,Q))P.push(Q);else{for(var ft=0;ft<i.length;++ft)if(I.call(i[ft],Q))continue t;P.push(Q)}return P}}}(),A=/this\s*\.\s*\S+\s*=/;function x(i){try{if(typeof i=="function"){var E=t.names(i.prototype),O=t.isES5&&E.length>1,I=E.length>0&&!(E.length===1&&E[0]==="constructor"),j=A.test(i+"")&&t.names(i).length>0;if(O||I||j)return!0}return!1}catch{return!1}}function $(i){function E(){}E.prototype=i;var O=new E;function I(){return typeof O.foo}return I(),I(),i}var D=/^[a-z$_][a-z$_0-9]*$/i;function H(i){return D.test(i)}function W(i,E,O){for(var I=new Array(i),j=0;j<i;++j)I[j]=E+j+O;return I}function Z(i){try{return i+""}catch{return"[no string representation]"}}function G(i){return i instanceof Error||i!==null&&typeof i=="object"&&typeof i.message=="string"&&typeof i.name=="string"}function X(i){try{p(i,"isOperational",!0)}catch{}}function U(i){return i==null?!1:i instanceof Error.__BluebirdErrorTypes__.OperationalError||i.isOperational===!0}function z(i){return G(i)&&t.propertyIsWritable(i,"stack")}var M=function(){return"stack"in new Error?function(i){return z(i)?i:new Error(Z(i))}:function(i){if(z(i))return i;try{throw new Error(Z(i))}catch(E){return E}}}();function q(i){return{}.toString.call(i)}function nt(i,E,O){for(var I=t.names(i),j=0;j<I.length;++j){var P=I[j];if(O(P))try{t.defineProperty(E,P,t.getDescriptor(i,P))}catch{}}}var tt=function(i){return t.isArray(i)?i:null};if(typeof Symbol<"u"&&Symbol.iterator){var Y=typeof Array.from=="function"?function(i){return Array.from(i)}:function(i){for(var E=[],O=i[Symbol.iterator](),I;!(I=O.next()).done;)E.push(I.value);return E};tt=function(i){return t.isArray(i)?i:i!=null&&typeof i[Symbol.iterator]=="function"?Y(i):null}}var J=typeof process<"u"&&q(process).toLowerCase()==="[object process]",it=typeof process<"u"&&typeof o<"u";function k(i){return it?o[i]:void 0}function ut(){if(typeof Promise=="function")try{var i=new Promise(function(){});if(q(i)==="[object Promise]")return Promise}catch{}}var pt;function F(i,E){if(i===null||typeof E!="function"||E===pt)return E;i.domain!==null&&(E=i.domain.bind(E));var O=i.async;if(O!==null){var I=E;E=function(){var j=new Array(2).concat([].slice.call(arguments));return j[0]=I,j[1]=this,O.runInAsyncScope.apply(O,j)}}return E}var l={setReflectHandler:function(i){pt=i},isClass:x,isIdentifier:H,inheritedDataKeys:T,getDataPropertyOrDefault:b,thrower:v,isArray:t.isArray,asArray:tt,notEnumerableProp:p,isPrimitive:d,isObject:m,isError:G,canEvaluate:w,errorObj:c,tryCatch:u,inherits:h,withAppended:_,maybeWrapAsError:g,toFastProperties:$,filledRange:W,toString:Z,canAttachTrace:z,ensureErrorObject:M,originatesFromRejection:U,markAsOriginatingFromRejection:X,classString:q,copyDescriptors:nt,isNode:J,hasEnvVariables:it,env:k,global:y,getNativePromise:ut,contextBind:F};l.isRecentNode=l.isNode&&function(){var i;return process.versions&&process.versions.node?i=process.versions.node.split(".").map(Number):process.version&&(i=process.version.split(".").map(Number)),i[0]===0&&i[1]>10||i[0]>0}(),l.nodeSupportsAsyncResource=l.isNode&&function(){var i=!1;try{var E=r("async_hooks").AsyncResource;i=typeof E.prototype.runInAsyncScope=="function"}catch{i=!1}return i}(),l.isNode&&l.toFastProperties(process);try{throw new Error}catch(i){l.lastLineError=i}s.exports=l},{"./es5":13,async_hooks:void 0}]},{},[4])(4)}),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}(te)),te.exports}var vr=dr();const _r=an(vr);let $t;const gr=new Uint8Array(16);function yr(){if(!$t&&($t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$t))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $t(gr)}const _t=[];for(let e=0;e<256;++e)_t.push((e+256).toString(16).slice(1));function mr(e,n=0){return _t[e[n+0]]+_t[e[n+1]]+_t[e[n+2]]+_t[e[n+3]]+"-"+_t[e[n+4]]+_t[e[n+5]]+"-"+_t[e[n+6]]+_t[e[n+7]]+"-"+_t[e[n+8]]+_t[e[n+9]]+"-"+_t[e[n+10]]+_t[e[n+11]]+_t[e[n+12]]+_t[e[n+13]]+_t[e[n+14]]+_t[e[n+15]]}const br=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Fe={randomUUID:br};function wr(e,n,o){if(Fe.randomUUID&&!e)return Fe.randomUUID();e=e||{};const r=e.random||(e.rng||yr)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,mr(r)}function Gt(){this.funcs=[]}Gt.prototype.subscribe=function(e){return this.funcs.push(e),{unsubscribe:()=>this.unsubscribe(e)}};Gt.prototype.next=function(...e){this.funcs.forEach(n=>n(...e))};Gt.prototype.unsubscribe=function(e){this.funcs=[...this.funcs.filter(n=>n!==e)]};const Ae=pr();class Er{constructor(){this.notifs=St([]),this.notifsHistory=St([]),this.openHistory=new Gt,this.mutedNotifications=St(JSON.parse(localStorage.getItem("muted-notifications")||JSON.stringify({error:{}}))),Ve(()=>this.mutedNotifications.value,()=>{localStorage.setItem("muted-notifications",JSON.stringify(this.mutedNotifications.value))},{deep:!0})}next(n,o,r=void 0,s=null,R=null){var w,c;if((w=this.mutedNotifications.value[n])!=null&&w.MUTED_ALL||R&&((c=this.mutedNotifications.value[n])!=null&&c[R]))return;s||(this.next(n,o,r,this.notifsHistory.value,R),s=this.notifs.value);let t=s.find(a=>a.type===n&&a.serviceLabel===r&&r);if(t){const a=t.msgs.find(f=>f.label===o),y=a||{label:o,nb:0};y.nb+=1,a||t.msgs.unshift(y)}else{const a=s.find(u=>u.type===n&&!u.serviceLabel&&u.msgs.find(h=>h.label===o));t=a||{id:wr(),type:n,msgs:[],serviceLabel:r,nb:0};const y=t.msgs.find(u=>u.label===o),f=y||{label:o,nb:0};f.nb+=1,y||t.msgs.unshift(f),a||s.unshift(t)}clearTimeout(t.timeout),t.timeout=setTimeout(()=>{t&&this.remove(t)},5e3)}remove(n,o=!1){const r=this.notifs.value.indexOf(n);r>-1&&this.notifs.value.splice(r,1),o&&n.serviceLabel&&Ae.push({name:"stack-single",params:{label:n.serviceLabel}})}removeHistory(n,o){const r=this.notifsHistory.value.indexOf(n);r>-1&&this.notifsHistory.value.splice(r,1),o&&n.serviceLabel&&Ae.push({name:"stack-single",params:{label:n.serviceLabel}})}}const Cr=new Er,Rr=[{name:"OpenApi",component:dt(()=>ot(()=>import("./Index-Dfxab_I2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])))},{name:"Finder",component:dt(()=>ot(()=>import("./Index-CmroLpq5.js"),__vite__mapDeps([12,4,5,13,1,2,3,6,9,10])))},{name:"Git-NotUpToDate",component:dt(()=>ot(()=>import("./NotUpToDate-DzOvMb7E.js"),__vite__mapDeps([14,2,3,4,5,6,15,16,1,9,10,17])))},{name:"Help",component:dt(()=>ot(()=>import("./Index-Q4_j8YjB.js"),__vite__mapDeps([18,3,4,5])))},{name:"Workflows",component:dt(()=>ot(()=>import("./Index-DrguhRqW.js"),__vite__mapDeps([19,4,5])))},{name:"Docker",component:dt(()=>ot(()=>import("./Index-DusWDLpW.js"),__vite__mapDeps([20,21,4,5,2,3,6,1,9,10,22])))},{name:"Toolbox",component:dt(()=>ot(()=>import("./Toolbox-CdJUlTYX.js"),__vite__mapDeps([23,4,5,3,1,9,10,2,6,24]))),children:[{path:":plugin",component:dt(()=>ot(()=>import("./DynamicComponent-21b6a83j.js"),__vite__mapDeps([25,3,4,5,1,9,10,2,6,26]))),props:{context:"toolbox"}}]}],Ke=[{name:"WorkflowsModals",cmp:dt(()=>ot(()=>import("./Modals-TRAAm7M1.js"),__vite__mapDeps([27,28,4,5,3,29,30,31,32,1,9,10,2,6]))),load:!0},{name:"DynamicComponent",cmp:dt(()=>ot(()=>import("./DynamicComponent-21b6a83j.js"),__vite__mapDeps([25,3,4,5,1,9,10,2,6,26])))},...Rr.map(({name:e,component:n,children:o})=>({name:e,cmp:n,routes:[{path:`/${e}`,name:e,component:n,children:o}]})),{name:"Dynamic",component:dt(()=>ot(()=>import("./DynamicComponent-21b6a83j.js"),__vite__mapDeps([25,3,4,5,1,9,10,2,6,26]))),routes:[{path:"/dynamic/:plugin",name:"dynamic",component:dt(()=>ot(()=>import("./DynamicComponent-21b6a83j.js"),__vite__mapDeps([25,3,4,5,1,9,10,2,6,26]))),props:{context:"sidebar"}}]},{name:"Logs",cmp:dt(()=>ot(()=>import("./Logs-X8OwrHBK.js"),__vite__mapDeps([33,4,5,21,1,34,13,2,3,6,28,29,35,15,16,31,30,32,9,10,36])))},{name:"Git",cmp:dt(()=>ot(()=>import("./Git-Cwuf8t1y.js"),__vite__mapDeps([37,4,5,28,3,29,2,6,7,8,38,1,9,10,39])))},{name:"Github",cmp:dt(()=>ot(()=>import("./Index-DtZrxZqP.js"),__vite__mapDeps([40,4,5,2,3,6,41,1,34,15,16,13,8,9,10,42])))},{name:"Npm",cmp:dt(()=>ot(()=>import("./Npm-CjJPSo9X.js"),__vite__mapDeps([43,2,3,4,5,6,15,16,30,31,32,1,9,10,44])))},{name:"Bugs",cmp:dt(()=>ot(()=>import("./Bugs-MZTedjOE.js"),__vite__mapDeps([45,2,3,4,5,6,15,16,30,31,32,1,9,10,46])))},{name:"Configuration",cmp:dt(()=>ot(()=>import("./Configs-BgQMyHZa.js"),__vite__mapDeps([47,48,31,4,5,32,49,50,30,51,52,2,3,6,28,29,53,1,9,10,54])))},{name:"Documentation",cmp:dt(()=>ot(()=>import("./Index-C0kNw_RG.js"),__vite__mapDeps([55,4,5,2,3,6,48,31,32,56,1,52,57,58,49,9,10,59])))}],Nt=St([]);globalThis.toolboxPlugins=St([]);globalThis.sidebarPlugins=St([]);function kr(e,n){const o=e.toLowerCase();document.querySelectorAll(o).forEach(s=>n(s));const r=new MutationObserver(s=>{var R,t;for(const w of s)for(const c of w.addedNodes)c.nodeType===Node.ELEMENT_NODE&&(c.tagName.toLowerCase()===o&&n(c),(t=(R=c.querySelectorAll)==null?void 0:R.call(c,o))==null||t.forEach(a=>n(a)))});return r.observe(document.body,{childList:!0,subtree:!0}),r}function je(e){Sr(e),document.querySelectorAll('head > style, head > link[rel="stylesheet"]').forEach(r=>{const s=r.cloneNode(!0);e.prepend(s)}),document.querySelectorAll('head > style[data-primevue-style-id="variables"]').forEach(r=>{const s=r.cloneNode(!0);e.appendChild(s)})}function Sr(e){new MutationObserver(o=>{o.forEach(r=>{r.addedNodes.forEach(s=>{if(s instanceof HTMLStyleElement){const R=s.cloneNode(!0);e.appendChild(R)}})})}).observe(document.head,{childList:!0,subtree:!1})}const Oe=(e,n)=>{kr(e,async o=>{try{je(o.shadowRoot)}catch{await new Promise(s=>setTimeout(s,1e3)),je(o.shadowRoot)}}),customElements.define(e,n)},Tr=e=>n=>{n.placements.forEach(o=>{const r=o.component;if(o.location==="toolbox"){const s=e+"-toolbox";Oe(s,r),globalThis.toolboxPlugins.value.push({...o,id:e})}else if(o.location==="sidebar"){const s=e+"-sidebar";Oe(s,r),globalThis.sidebarPlugins.value.push({...o,id:e})}})},xr=(e,n)=>{Tr(e.replaceAll("@","").replaceAll("/","-"))(n)};B.get("/plugins").then(async e=>{Nt.value=e.data.sort((n,o)=>o.name.localeCompare(n.name)),console.log("load plugins...",Nt.value.map(n=>n.name)),await _r.map(Nt.value,async n=>{var o,r;if((r=(o=n.config.runeya.entries)==null?void 0:o.front)!=null&&r.js){const s=n.name;globalThis[s]=R=>{const t=R({assetsBasePath:`/plugins/${encodeURIComponent(s)}/assets`,components:{Editor:sn,Section:cn},callServer:(w,...c)=>B.post(`/plugins/${encodeURIComponent(s)}/call/${encodeURIComponent(w)}`,{args:c}),customCallServer:w=>(c,...a)=>B.post(`/plugins/${encodeURIComponent(s)}/call/${encodeURIComponent(c)}`,{args:a},w),socket:{emit:(w,...c)=>{Bt.emit(encodeURIComponent(s)+"-"+w,...c)},on:(w,c)=>{Bt.on(encodeURIComponent(s)+"-"+w,c)},off:(w,c)=>{Bt.off(encodeURIComponent(s)+"-"+w,c)}},primevueConfig:{theme:{preset:on,options:{}}},router:ae,notification:Cr});xr(s,t)};try{await import(`/plugins/${encodeURIComponent(n.name)}/js`)}catch(R){console.error(`❌ Erreur lors du chargement du plugin ${n.name}:`,R)}}})});const Pr=Object.freeze(Object.defineProperty({__proto__:null,default:Ke,remotePlugins:Nt},Symbol.toStringTag,{value:"Module"}));class Fr{constructor(n){var o,r,s;this.label=n.label||"",this.commands=n.commands||[],this.rootPath=n.rootPath||((s=(r=(o=this.commands)==null?void 0:o[0])==null?void 0:r.spawnOptions)==null?void 0:s.cwd)||"",this.envs={},this.shortcuts=[],this.updateFields(n)}updateFields(n){var o,r,s;if(!n.label)throw new Error("A service should have a label");this.label=n.label,this.description=n.description||"",this.url=n.url||"",this.openapiURL=n.openapiURL||"",this.spawnCmd=n.spawnCmd||"",this.enabled=n.enabled||!1,this.crashed=n.crashed||!1,this.exited=n.exited||!1,this.groups=n.groups||[],this.parsers=n.parsers||[],this.urls=n.urls||[],this.spawnArgs=n.spawnArgs||[],this.health||(this.health={}),this._updateObjectWithReferences(this.health,n.health||{enabled:!1,url:"",interval:"",method:"GET",returnCode:200,responseText:"",timeout:0,startAfter:0}),this.git||(this.git={}),this._updateObjectWithReferences(this.git,n.git||{home:"",remote:"",branches:[],stash:[],delta:0,currentBranch:"",status:[]}),this.spawnOptions||(this.spawnOptions={}),this._updateObjectWithReferences(this.spawnOptions,n.spawnOptions||{cwd:"",env:""}),this.commands||(this.commands=[]),n.commands?this._updateArrayWithReferences(this.commands,n.commands,"spawnCmd"):this.commands.length=0,this.shortcuts||(this.shortcuts=[]),n.shortcuts?this._updateArrayWithReferences(this.shortcuts,n.shortcuts,"label"):this.shortcuts.length=0,this.envs||(this.envs={}),this._updateObjectWithReferences(this.envs,n.envs||{}),this.rootPath=n.rootPath||((s=(r=(o=this.commands)==null?void 0:o[0])==null?void 0:r.spawnOptions)==null?void 0:s.cwd)||"",n.container?(this.container||(this.container={}),this._updateObjectWithReferences(this.container,n.container),this.container.volumes||(this.container.volumes=[]),this.container.ignoreVolumes||(this.container.ignoreVolumes=[])):this.container=n.container,this.meta||(this.meta={}),this._updateObjectWithReferences(this.meta,n.meta||{})}_updateArrayWithReferences(n,o,r){if(!n||!o)return;const s={};n.forEach(R=>{R&&R[r]&&(s[R[r]]=R)}),n.length=0,o.forEach(R=>{if(R&&R[r]&&s[R[r]]){const t=s[R[r]];this._updateObjectWithReferences(t,R),n.push(t)}else n.push(R)})}_updateObjectWithReferences(n,o){!n||!o||(Object.keys(n).forEach(r=>{r in o||delete n[r]}),Object.keys(o).forEach(r=>{const s=o[r];if(s===void 0)return;if(!(r in n)){n[r]=s;return}const R=n[r];if(s===null)n[r]=null;else if(Array.isArray(s))if(!Array.isArray(R))n[r]=s;else if(s.length>0&&typeof s[0]=="object"&&s[0]!==null){const t=s[0],c=["id","name","label","spawnCmd","key"].find(a=>a in t)||Object.keys(t)[0];this._updateArrayWithReferences(R,s,c)}else R.length=0,s.forEach(t=>R.push(t));else typeof s=="object"?typeof R!="object"||R===null?n[r]=s:this._updateObjectWithReferences(R,s):n[r]=s}))}async updateGit(){var n;if((n=this.git)!=null&&n.remote){this.git.branches=await this.getBranches(),this.git.currentBranch=await this.getCurrentBranch(),this.git.status=await this.getStatus();const o=await this.stashList();this.git.stash=o}}async fetch(){const{data:n}=await B.get(`/stack/${this.label}/`);return this.updateFields(n),this}async getLogs(){const{data:n}=await B.get(`/logs/${this.label}/logs`);return n}async sendTerminalPrompt(n){const{data:o}=await B.post(`/logs/${this.label}/prompt`,{...n,service:this.label});return o}async sendTerminalTerminate(n){const{data:o}=await B.post(`/logs/${this.label}/terminate`,{...n,service:this.label});return o}async clear(){const{data:n}=await B.delete(`/logs/${this.label}/logs`);return n}async autocomplete(n,{force:o}={}){const{data:r}=await B.get(`/logs/${this.label}/autocomplete`,{params:{message:n,force:!!o}});return r}async openInVsCode(n,o){return B.get(`/editors/${this.label}/open-in-vs-code`,{params:{path:n,editor:o}})}async openLinkInVsCode(n,o){return B.get(`/editors/${this.label}/open-link-in-vs-code`,{params:{link:n,editor:o}})}async openFolder(n){return B.get(`/stack/${this.label}/open-folder`,{params:{path:n}})}async restart(){return this.enabled=!0,localStorage.setItem(`automatic-toggle-${this.label}`,this.enabled.toString()),B.get(`/stack/${this.label}/restart`)}async start(){return this.enabled=!0,localStorage.setItem(`automatic-toggle-${this.label}`,this.enabled.toString()),B.get(`/stack/${this.label}/start`)}async stop(){return this.enabled=!1,localStorage.setItem(`automatic-toggle-${this.label}`,this.enabled.toString()),B.get(`/stack/${this.label}/stop`)}async getBranches(){const{data:n}=await B.get(`/git/${this.label}/branches`);return n}async getCurrentBranch(){const{data:n}=await B.get(`/git/${this.label}/current-branch`);return n}async addBranch(n,o){const{data:r}=await B.post(`/git/${this.label}/add-branch`,{shouldPush:o,name:n});return r}async getStatus(){const{data:n}=await B.get(`/git/${this.label}/status`);return n}async getDiff(){const{data:n}=await B.get(`/git/${this.label}/diff`);return n}async changeBranch(n){await B.post(`/git/${this.label}/branch/${encodeURIComponent(n)}/change`)}async deleteBranch(n){await B.delete(`/git/${this.label}/branch/${encodeURIComponent(n)}`)}async gitRemoteDelta(n){this.git&&(this.git.delta=null);const{data:o}=await B.get(`/git/${this.label}/branch/${encodeURIComponent(n)}/remote-delta`);return this.git&&(this.git.delta=o),o}async gitFetch(){await B.post(`/git/${this.label}/fetch`)}async getGraph(n){const{data:o}=await B.get(`/git/${this.label}/graph`,{params:{graphOnAll:n}});return o}async reset(){await B.delete(`/git/${this.label}/reset`)}async stash(){return await B.post(`/git/${this.label}/stash`),this.updateGit()}async stashPop(){await B.post(`/git/${this.label}/stash-pop`)}async pull(){await B.post(`/git/${this.label}/pull`)}async stashList(){const{data:n}=await B.post(`/git/${this.label}/stash-list`);return n}async checkoutFile(n){n=encodeURIComponent(n),await B.delete(`/git/${this.label}/checkout/${n}`)}async isNpm(n){const{data:o}=await B.get(`/npm/${this.label}`,{params:{cwd:n}});return o}async getNpmPaths(){const{data:n}=await B.get(`/npm/${this.label}/paths`);return n}async getPackageJSON(n){const{data:o}=await B.get(`/npm/${this.label}/packagejson`,{params:{cwd:n}});return o}async outdatedNpm(n){const{data:o}=await B.get(`/npm/${this.label}/outdated`,{params:{cwd:n}});return o}async getBugs(n){const{data:o}=await B.get(`/bugs/${this.label}`,{params:{cwd:n}});return o||[]}async save(){return await B.post("/stack/services",this),this}static async getTokens(n){const{data:o}=await B.post("/openai/tokenize",{data:n});return o||[]}static async reviewFromAi(n){const{data:o}=await B.post("/openai/review",{data:n});return o||[]}static async findSolutionFromAi(n){const{data:o}=await B.post("/openai/error",{data:n});return o||[]}static async homedir(){const{data:n}=await B.post("/fs/homedir");return n||""}}function vt(){this.services=St([]),Bt.on("conf:update",e=>{e.length&&e.forEach(n=>{const o=this.services.value.find(r=>r.label===n);o&&o.fetch()})})}vt.prototype.loadServices=async function(){const{data:e}=await B.get("/stack/services"),n={};this.services.value.forEach(r=>{n[r.label]=r});const o=e.filter(r=>r).map(r=>n[r.label]?(n[r.label].updateFields(r),n[r.label]):new Fr(r));return this.services.value=o,this.services.value};vt.prototype.scenarios=async function(e,n){const{data:o}=await B.get("/red/flows");return o.filter(r=>e==="services"&&r.launchType===e?r.services.split(",").includes(n):!1)};vt.prototype.getEnvironment=async function(){const{data:e}=await B.get("/stack/environment");return e};vt.prototype.getAdditionalThemes=async function(){const{data:e}=await B.get("/stack/additional-themes");return e};vt.prototype.getEnvironments=async function(){const{data:e}=await B.get("/stack/environments");return e};vt.prototype.changeEnvironment=async function(e){const{data:n}=await B.post("/stack/environment",{environment:e});return n};vt.prototype.shouldSetup=async function(){const{data:e}=await B.get("/crypto/should-setup");return e};vt.prototype.createEnvironment=async function(e){const{data:n}=await B.post("/stack/environment/create",{environment:e});return n};vt.prototype.getAllConfsPath=async function(){const{data:e}=await B.get("/stack/all-confs-path");return e};vt.prototype.selectConf=async function(e){await B.post("/stack/select-conf/",{path:e})};vt.prototype.deleteConf=async function(e){await B.post("/stack/delete-conf/",{path:e})};vt.prototype.launchServices=async function(e){return await B.post("/stack/choose",e),this.loadServices()};vt.prototype.getService=async function(e){return this.services.value.length||await this.loadServices(),this.services.value.filter(n=>n.label===e).pop()};vt.prototype.restartAllServices=async function(){return await B.get("/stack/restart-all"),this.loadServices()};vt.prototype.restartApplication=async function(){try{await B.get("/system/restart"),console.log("Application restarting...")}catch(e){throw console.error("Error while restarting the application:",e),e}};vt.prototype.getAvailableEditors=async function(){const{data:e}=await B.get("/editors/available-editors");return e};vt.prototype.getEnabledServices=async function(){return this.services.value.length||await this.loadServices(),this.services.value.filter(e=>e.enabled)};const Ar=new vt,jr=Ke.map(e=>e.routes).filter(e=>e).flat(),Or=[{path:"/stack-chooser",name:"stack-chooser",component:()=>ot(()=>import("./StackChooser-BevuWQmP.js"),__vite__mapDeps([60,61,4,5,62,3,63,64,2,6,65,1,9,10,66]))},{path:"/stack-single/:label",name:"stack-single",component:()=>ot(()=>import("./StackSingle-Dlt8beq2.js"),__vite__mapDeps([67,61,4,5,3,2,6,68,69,70,38,15,16,71,1,9,10,72]))},{path:"/stack-single",name:"stack-single-no-view",component:()=>ot(()=>import("./StackSingle-Dlt8beq2.js"),__vite__mapDeps([67,61,4,5,3,2,6,68,69,70,38,15,16,71,1,9,10,72]))},{path:"/overview",name:"overview",component:()=>ot(()=>import("./Overview-CeyyN0oI.js"),__vite__mapDeps([73,2,3,4,5,6,64,61,62,63,65,15,16,1,9,10,74]))},{path:"/stack-multiple",name:"stack-multiple",component:()=>ot(()=>import("./StackMultiple-Csmw3IYP.js"),__vite__mapDeps([75,2,3,4,5,6,68,69,1,9,10,76]))},{path:"/import-create",name:"import-create",component:()=>ot(()=>import("./ImportCreate-D7EkVr9x.js"),__vite__mapDeps([77,62,4,5,3,63,2,6,28,29,35,61,1,9,10,78]))},{path:"/settings",name:"settings-no-view",component:()=>ot(()=>import("./Settings-CHmRle2O.js"),__vite__mapDeps([79,4,5,2,3,6,32,31,50,30,48,49,51,28,29,52,70,38,15,16,71,58,1,9,10,80])),children:[{path:":setting",name:"settings",component:()=>ot(()=>import("./Settings-CHmRle2O.js"),__vite__mapDeps([79,4,5,2,3,6,32,31,50,30,48,49,51,28,29,52,70,38,15,16,71,58,1,9,10,80]))}]},{path:"/init",name:"init",component:()=>ot(()=>import("./Init-UQADYgJ2.js"),__vite__mapDeps([81,3,4,5]))},...jr,{name:"not-found",path:"/:pathMatch(.*)*",redirect:{name:"stack-chooser"}}],ae=fr({history:$n(),routes:Or});ae.beforeEach(async(e,n)=>{if((e.name!=="settings"||e.params.setting!=="crypto")&&await Ar.shouldSetup())return{name:"settings",params:{setting:"crypto"},query:{wrongKey:"true"}}});const Ur=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));export{Gt as C,_r as P,Ar as S,Fr as a,Hr as b,Pr as c,Cr as n,Ke as p,Ur as r,pr as u,wr as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as o,r as a,k as e}from"./index-
|
|
1
|
+
import{V as o,r as a,k as e}from"./index-C02AjRq4.js";function s(){this.infos=o({cpu:0,mem:0}),this.globalInfos=o({nbCpus:0,totalmem:0,freemem:0,memPercentage:0,cpu:0}),this.version=a("0.0.0")}s.prototype.getInfos=async function(t){const{data:n}=await e.get(`/system/${t}/infos`);return this.infos=n,this.infos};s.prototype.proxyImg=function(t){return`${e.defaults.baseURL==="/"?"":e.defaults.baseURL}/system/proxy-img?url=${encodeURIComponent(t)}`};s.prototype.getVersion=async function(){const{data:t}=await e.get("/version");return this.version.value=t,this.version.value};s.prototype.disconnect=async function(){return e.get("/system/disconnect")};s.prototype.hasUpdate=async function(){const{data:t}=await e.get("/stack/has-update");return t};const i=new s;export{i as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as O,m as I}from"./Editor-
|
|
1
|
+
import{t as O,m as I}from"./Editor-DN-ZxIRY.js";import"./index-C02AjRq4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as s}from"./Editor-
|
|
1
|
+
import{m as s}from"./Editor-DN-ZxIRY.js";import"./index-C02AjRq4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as r}from"./Editor-
|
|
1
|
+
import{m as r}from"./Editor-DN-ZxIRY.js";import"./index-C02AjRq4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as l}from"./Editor-
|
|
1
|
+
import{m as l}from"./Editor-DN-ZxIRY.js";import"./index-C02AjRq4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
package/public/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/assets/favicon-ClgyP8FQ.ico"><title>runeya</title><style>:host(*),html{margin:0;font-family:Jost,sans-serif;font-size:.9em}.pre-loading{width:100vw;height:100vh;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;backdrop-filter:blur(10px);color:#0076bc;background-color:rgba(255,255,255,.5)}.spinner{border:3px solid #0076bc;width:70px;height:70px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;border-bottom-color:transparent;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);-ms-flex-negative:0;flex-shrink:0}.spinner::before{content:" ";-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;background-color:#0076bc;position:absolute;border-radius:100%}.spinner::after{content:" ";width:30%;height:30%;background-color:#0076bc;position:absolute;border-radius:100%}@-webkit-keyframes spin{0%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}100%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}}@keyframes spin{0%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}100%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}}@-webkit-keyframes pulse{0%{width:0%;height:0%;opacity:1}100%{width:100%;height:100%;opacity:0}}@keyframes pulse{0%{width:0%;height:0%;opacity:1}100%{width:100%;height:100%;opacity:0}}</style><script type="module" crossorigin src="/assets/index-
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/assets/favicon-ClgyP8FQ.ico"><title>runeya</title><style>:host(*),html{margin:0;font-family:Jost,sans-serif;font-size:.9em}.pre-loading{width:100vw;height:100vh;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;backdrop-filter:blur(10px);color:#0076bc;background-color:rgba(255,255,255,.5)}.spinner{border:3px solid #0076bc;width:70px;height:70px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;border-bottom-color:transparent;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);-ms-flex-negative:0;flex-shrink:0}.spinner::before{content:" ";-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;background-color:#0076bc;position:absolute;border-radius:100%}.spinner::after{content:" ";width:30%;height:30%;background-color:#0076bc;position:absolute;border-radius:100%}@-webkit-keyframes spin{0%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}100%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}}@keyframes spin{0%{-webkit-transform:rotateZ(360deg);transform:rotateZ(360deg)}100%{-webkit-transform:rotateZ(0);transform:rotateZ(0)}}@-webkit-keyframes pulse{0%{width:0%;height:0%;opacity:1}100%{width:100%;height:100%;opacity:0}}@keyframes pulse{0%{width:0%;height:0%;opacity:1}100%{width:100%;height:100%;opacity:0}}</style><script type="module" crossorigin src="/assets/index-C02AjRq4.js"></script><link rel="stylesheet" crossorigin href="/assets/index-D9v3u7Fv.css"></head><body><noscript><strong>We're sorry but runeya doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"><div class="pre-loading"><div class="spinner" v-if="display" :style="{
|
|
2
2
|
width: size + 'px',
|
|
3
3
|
height: size + 'px',
|
|
4
4
|
}"></div>Loading...</div></div></body></html>
|
package/www.js
CHANGED
|
@@ -2182,8 +2182,25 @@ var require_Environment = __commonJS({
|
|
|
2182
2182
|
const overridesDB = dbs2.getDb(`overrides/${label}-environment`);
|
|
2183
2183
|
if (!existsSync(await overridesDB.getPath())) await new _Environment(environmentDB).save();
|
|
2184
2184
|
const overrides = await dbs2.getDb(`overrides/${label}-environment`).read();
|
|
2185
|
+
let shouldMigrateOverrides = false;
|
|
2186
|
+
Object.keys(environmentDB?.envs || {}).forEach((key) => {
|
|
2187
|
+
if (key.endsWith("_STACK_MONITOR_OVERRIDE")) {
|
|
2188
|
+
shouldMigrateOverrides = true;
|
|
2189
|
+
overrides.envs[key.replace("_STACK_MONITOR_OVERRIDE", "_RUNEYA_OVERRIDE")] = environmentDB.envs[key];
|
|
2190
|
+
delete environmentDB.envs[key];
|
|
2191
|
+
}
|
|
2192
|
+
if (key.endsWith("_RUNEYA_OVERRIDE")) {
|
|
2193
|
+
shouldMigrateOverrides = true;
|
|
2194
|
+
overrides.envs[key] = environmentDB.envs[key];
|
|
2195
|
+
delete environmentDB.envs[key];
|
|
2196
|
+
}
|
|
2197
|
+
});
|
|
2185
2198
|
merge(environmentDB?.envs || {}, overrides?.envs || {});
|
|
2186
|
-
|
|
2199
|
+
const env = new _Environment(environmentDB, Stack);
|
|
2200
|
+
if (shouldMigrateOverrides) {
|
|
2201
|
+
await env.save();
|
|
2202
|
+
}
|
|
2203
|
+
return env;
|
|
2187
2204
|
}
|
|
2188
2205
|
static async all() {
|
|
2189
2206
|
const allDbds = await dbs2.getDbs("envs");
|
|
@@ -2491,6 +2508,7 @@ var require_Service = __commonJS({
|
|
|
2491
2508
|
const environments = await Environment.all();
|
|
2492
2509
|
const overrides = await dbs2.getDb(`overrides/${this.label}-envs`).read();
|
|
2493
2510
|
if (!isUpdate) {
|
|
2511
|
+
let shouldMigrateOverrides = false;
|
|
2494
2512
|
environments.forEach((environment) => {
|
|
2495
2513
|
const envs = this.envs[environment.label] || {};
|
|
2496
2514
|
Object.keys(envs).forEach((key) => {
|
|
@@ -2499,9 +2517,11 @@ var require_Service = __commonJS({
|
|
|
2499
2517
|
if (tag) envs[key].override = `{{${tag}_RUNEYA_OVERRIDE}}`;
|
|
2500
2518
|
const override = overrides[environment.label]?.[key];
|
|
2501
2519
|
if (!env || !override) return;
|
|
2502
|
-
|
|
2520
|
+
if (override.includes("STACK_MONITOR_OVERRIDE")) shouldMigrateOverrides = true;
|
|
2521
|
+
envs[key].override = override.replace("STACK_MONITOR_OVERRIDE", "RUNEYA_OVERRIDE");
|
|
2503
2522
|
});
|
|
2504
2523
|
});
|
|
2524
|
+
if (shouldMigrateOverrides) await this.save();
|
|
2505
2525
|
}
|
|
2506
2526
|
this.meta = service.meta || {};
|
|
2507
2527
|
await PromiseB2.map(this.commands || [], async (command) => {
|
|
@@ -2546,7 +2566,8 @@ var require_Service = __commonJS({
|
|
|
2546
2566
|
await dbs2.getDb(`services/${this.label}`).delete();
|
|
2547
2567
|
};
|
|
2548
2568
|
Service.load = async function(label, Stack) {
|
|
2549
|
-
|
|
2569
|
+
const db = await dbs2.getDb(`services/${label}`).read();
|
|
2570
|
+
return new Service(db, Stack);
|
|
2550
2571
|
};
|
|
2551
2572
|
Service.prototype.loadCustomEnv = function(path2) {
|
|
2552
2573
|
const dotEnvPath = pathfs.resolve(path2, ".env");
|